:root{
    --border-color: rgba(255, 255, 255, 0.164);
    --text-color: white;
    --text-color-secondary: #F5A543;
    --text-color-tetiary: #af4217;
    --text-color-white : white;
    --tile-color: rgb(43, 43, 43);
    --background-color:rgb(20, 20, 20);
    --header-footer-background: linear-gradient(180deg, #2f2f2f, #161616);
    --line-color: #fff;
    --accent-color: linear-gradient(180deg, #bb2d45, #5e0000);
    --accent-color-secondary: linear-gradient(180deg, #ec933f, #9b611b);
    --accent-color-tetiary: linear-gradient(180deg, #faa640, #ff9900); 
    --font: 'Inter', 'Roboto', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    --selected-color: linear-gradient(to left, rgba(255, 0, 0, 0.596),rgba(255, 0, 212, 0.274));
}

.video-root-container {
    width: 100%;
    height: auto; 
    overflow: visible;
    padding-right: 80px;
}

a{
    text-decoration:none
}

.video-layout-inner-wrapper {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding-bottom: 10px;
    padding-right: 10px;
    padding-right: 0px;
}

.video-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-bottom: 8px;
    flex-shrink: 0;
    width: 190px; 
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    position: sticky;
    top: 0;
    margin-left: 0.0
    
}
.video-sidebar::-webkit-scrollbar {
    display: none;
}

.video-sidebar-tile {
    width: 100%;
    height: auto;
    background: var(--tile-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: small;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    overflow: hidden;
    word-break: break-word;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border-radius: 8px;
}

.video-sidebar-tile:hover {
    border-color: var(--text-color-tetiary);
    border-width: 2px;
}

.video-sidebar-tile.active {
    height: 50px;
    border-color: var(--text-color-secondary);
    border-width: 2px;
}

.video-grid-stream {
    flex-grow: 1;
    height: 100%;
    overflow-y: visible;
    padding-right: 14px;
    padding-top: 8px;
}

.video-cinema-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    margin-top: -8px;
}

.video-shorts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
    width: 100%;
    margin-top: -8px;
}

.video-card-tile {
    background-color: var(--background-color);
    border: 4px solid var(--background-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.5);
    width: 100%;
    margin: 0 auto;
    margin-right: 14px;
}

.video-card-tile:hover {
    transform: translateY(2px);
}

.video-thumb-frame-cinema {
    position: relative;
    width: 100%;
    padding-top: 56.25%; 
    background: #000;
    overflow: hidden;
}

.video-thumb-frame-shorts {
    position: relative;
    width: 100%;
    padding-top: 140%; 
    background: #000;
    overflow: hidden; 
}

.video-thumb-frame-cinema img,
.video-thumb-frame-shorts img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.video-thumb-frame-shorts img {
    transform: scale(1.30);
}

.video-duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.video-control-strip {
    padding: 12px;
    background: transparent;
}

.video-card-title {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-color, #fff);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-wrap: break-word;
}


@media (max-width: 768px) {
    .video-layout-inner-wrapper {
        flex-direction: column;
        gap: 16px;
    }

    .video-sidebar {
        flex-direction: row;
        width: 100%;
        height: auto;
        overflow-x: auto;
        overflow-y: hidden;
        padding-top: 4px;
        padding-bottom: 14px;
        gap: 12px;
        z-index: 100;
        background: var(--tile-color);
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .video-sidebar::-webkit-scrollbar {
        display: none;           
    }

    .video-sidebar-tile {
        width: auto;
        height: 38px;
        border-radius: 8px;
        padding: 4px 4px;
        white-space: nowrap;
        flex-shrink: 0;
        box-shadow: none;
        font-size: 12px;
    }

    .video-sidebar-tile.active {
        height: 38px;
    }

    .video-cinema-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: -24px;
    }

    .video-shorts-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 16px;
        margin-top: -24px;
    }
    .video-grid-stream {
    padding-right: 8px;
}
}








.home-cinema-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 99%;
    align-self: center;
}

.home-shorts-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    width: 99%;
}

@media (max-width: 992px) {
    .home-cinema-grid, .home-shorts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-cinema-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 96%;
    }
    
    .home-shorts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        width: 96%;
    }
}























.theater-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
}

.theater-close-btn {
    position: fixed;
    color: var(--text-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5200;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
    top: 0px;
    right: 0px;
    background: var(--background-color);
    width: 100%;
    height: 28px;
    border-radius: 4px;
    border: 0px;
    font-size: 30px;
}
.theater-close-btn:hover {
    background: var(--accent-color);
    color: white;
}

.theater-shell {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1600px;
    height: 100vh;
    background: transparent;
    overflow: hidden;
    padding: 16px;
    padding-top: 0px;
    gap: 24px;
    box-sizing: border-box;
}

.theater-stage-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: transparent;
    box-sizing: border-box;
    justify-content: center;
    height: auto;
}

.theater-aspect-box-container {
    width: 100%;
    height: auto;
}

.theater-shell:not(.mode-shorts) .theater-aspect-box {
    position: relative;
    width: 100%;
    padding-top: 56.25%; 
    background: var(--tile-color);
    border-radius: 8px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    overflow: hidden;
    border: 4px solid var(--background-color);
    margin-top: 40px;
}

.theater-shell.mode-shorts .theater-aspect-box {
    position: relative;
    height: 100%;
    max-height: 84vh; 
    aspect-ratio: 9 / 16; 
    width: auto; 
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease;
    background: var(--tile-color);
    border: 4px solid var(--tile-color);
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.5);
}

.theater-shell.mode-shorts .theater-aspect-box iframe {
    transform: scale(1.02) !important;
    transform-origin: center center;
}
/* 🎬 SLIDE TRANSITION CLASSES FOR SHORTS */
.slide-exit-up {
    transform: translateY(-100%) !important;
    opacity: 0 !important;
}
.slide-exit-down {
    transform: translateY(100%) !important;
    opacity: 0 !important;
}
.slide-enter-up {
    transform: translateY(100%) !important;
    opacity: 0 !important;
    transition: none !important;
}
.slide-enter-down {
    transform: translateY(-100%) !important;
    opacity: 0 !important;
    transition: none !important;
}

.theater-aspect-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.theater-meta-title {
    margin: 4px 0 0 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.5);
    background: var(--background-color);
    border-radius: 16px;
    border-top-left-radius: 0px;
    border-bottom-right-radius: 0px;
    padding: 4px;
}

.theater-playlist-pane {
    width: 400px;
    background: var(--background-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100%;
    overflow: hidden;
}

.theater-shell.mode-shorts .theater-playlist-pane {
    display: none !important;
}

.theater-playlist-header {
    margin: 0;
    padding: 2px;
    font-size: 0.9rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.theater-queue-scroll {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.theater-queue-card {
    display: flex;
    gap: 12px;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    background-color: var(--tile-color);
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.theater-queue-card:hover {
    border-color: var(--text-color-tetiary);
}
.theater-queue-card.active-playing {
    border-color: var(--text-color-secondary);
    border-width: 2px;
}

.theater-queue-thumb {
    position: relative;
    width: 200px;
    aspect-ratio: 16/9;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--tile-color);
}

.theater-queue-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theater-queue-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: bolder;
    line-height: 1.3;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.theater-shorts-nav {
    display: none;
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 12px;
    z-index: 5100;
}

.theater-backdrop:has(.mode-shorts) .theater-shorts-nav {
    display: flex;
}

.theater-nav-arrow-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--tile-color);
    border: 1px solid var(--tile-color);
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.1s ease;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.5);
}
.theater-nav-arrow-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: scale(1.05);
}

.theater-shell.mode-shorts .theater-meta-title {
    text-align: center;
    margin-top: 2px;
    margin: 8px 0 0 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.5);
    background: var(--background-color);
    border-radius: 16px;
    border-top-left-radius: 0px;
    border-bottom-right-radius: 0px;
    padding: 4px;
    padding-left: 8px;
    padding-right: 8px;
    align-self: center;
}

    .theater-shell.mode-shorts .theater-stage-pane {
        margin-bottom: -44px;
    }

@media (max-width: 992px) {
    .theater-shell {
        padding: 0 20px;
    }
    .theater-shorts-nav {
        right: 20px;
    }
}

@media (max-width: 768px) {
.theater-backdrop {
        align-items: flex-start;
        padding: 0 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        height: 100vh !important;
        height: 100dvh !important; 
        overflow: hidden !important;
    }

    .theater-close-btn {
        top: 0px;
        right: 0px;
        background: var(--background-color);
        width: 100%;
        border-radius: 0px;
        border: 0px;
        height: 20px;
        color: var(--text-color);
        box-shadow: none;
    }

.theater-shell {
        flex-direction: column !important;
        height: auto;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0;
        overflow: visible !important;
    }

    .theater-shell:not(.mode-shorts) .theater-stage-pane {
        position: sticky;
        top: 16px;
        z-index: 100;
        padding: 0 !important;
        width: 100% !important;
    }

    .theater-shell:not(.mode-shorts) .theater-aspect-box {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important; 
        margin-top: 0px;
    }

    .theater-meta-title {
        margin: 0;
        font-size: 1rem;
        padding: 8px;
        border-top-right-radius: 0px;
        border-bottom-right-radius: 8px;
        border-bottom-left-radius: 8px;
        box-shadow: 0 8px 8px rgba(0, 0, 0, 0.5);
        background: var(--background-color);
    }

    .theater-playlist-pane {
        width: 100% !important;
        border-radius: 0 !important;
        border: none !important;
        height: auto !important;
        margin-top: -16px;
    }

    .theater-shell.mode-shorts {
        height: 100vh !important;
        height: 100dvh !important;
        overflow: hidden !important;
    }

    .theater-shell.mode-shorts .theater-stage-pane {
        height: 100vh !important;
        height: 100dvh !important;
        width: 100vw !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box;
        overflow: hidden !important;
        background-color: var(--background-color);
    }

    .theater-shell.mode-shorts .theater-aspect-box-container {
        height: 100vh !important;
        height: 100dvh !important;
        width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .theater-shell.mode-shorts .theater-aspect-box {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        max-width: 56.25vh !important;
        max-height: 100vh !important; 
        aspect-ratio: 9 / 16 !important;
        border-radius: 0 !important;
        margin: auto !important;
        padding: 0 !important;
        overflow: hidden !important;
        top: 0 !important;
        border: none !important;
        background: #000;
        box-shadow: none;
    }

    @supports (max-height: 100dvh) {
        .theater-shell.mode-shorts .theater-aspect-box {
            max-width: 56.25dvh !important;
            max-height: 100dvh !important;
        }
    }

    .theater-shell.mode-shorts .theater-aspect-box iframe {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        border: none !important;
        pointer-events: none !important; 
    }
 
    .theater-shorts-nav {
        display: none !important;
    }

    .theater-shell.mode-shorts .theater-meta-title {
        display: none !important;
    }

    .theater-queue-card {
        flex-direction: column;
    }

    .theater-queue-thumb {
    width: 100%;
    }
}











.swipe-tutorial {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 5150; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.swipe-tutorial.hidden {
    opacity: 0;
    pointer-events: none;
}

.swipe-tutorial-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    pointer-events: none; 
}

.swipe-tutorial p {
    color: white !important;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
}

.swipe-hand-icon {
    animation: swipeUpAnimation 1.8s infinite ease-in-out;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.6));
}

@keyframes swipeUpAnimation {
    0% { transform: translateY(25px); opacity: 0; }
    25% { transform: translateY(25px); opacity: 1; }
    75% { transform: translateY(-35px); opacity: 1; }
    100% { transform: translateY(-35px); opacity: 0; }
}