/* ============================================
   BIGBOX OTT — HOTSTAR-STYLE FLOATING SIDEBAR
   Luxury Floating Navigation Rail
   ============================================ */

:root {
    --user-primary: #FF7A00;
    --user-primary-glow: rgba(255, 122, 0, 0.4);
    --user-secondary: #7B2FF7;
    --user-gold-bright: #FF7A00;
    --user-accent: #E91E63;
    --user-bg: #050B18;
    --user-surface: #08111F;
    --user-card: #0B1424;
    --user-text: #ffffff;
    --user-muted: #A0A7B5;
    --user-hover-bg: #0F1A2E;
    --user-border: rgba(255, 255, 255, 0.08);
    --brand-gradient: linear-gradient(90deg, #FF7A00, #FF3D00, #E91E63, #7B2FF7, #3F51FF);
    --brand-gradient-short: linear-gradient(135deg, #FF7A00 0%, #E91E63 50%, #7B2FF7 100%);
    --brand-gradient-hover: linear-gradient(90deg, #FF8A1A, #FF4D1A, #F02E73, #8B3FFF, #4F61FF);

    --sidebar-w-collapsed: 72px;
    --sidebar-w-expanded: 250px;
    --topbar-h: 70px;
}

body {
    background: #050B18;
    background-attachment: fixed;
    color: var(--user-text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* ─── Layout Wrapper ─── */
.user-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* ─── Floating Navigation Rail (Hotstar-inspired UI) ─── */
.user-sidebar {
    width: var(--sidebar-w-collapsed);
    height: 100vh;
    background: rgba(7, 13, 24, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0 24px 24px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s ease, box-shadow 0.3s ease;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.6);
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
}

.user-sidebar::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

/* Desktop Hover Expansion */
@media (min-width: 992px) {
    .user-sidebar:hover,
    .user-sidebar.expanded {
        width: var(--sidebar-w-expanded);
        background: rgba(7, 13, 24, 0.96);
        box-shadow: 15px 0 50px rgba(0, 0, 0, 0.85);
        border-right-color: rgba(255, 122, 0, 0.3);
    }
}

/* ─── Logo Area ─── */
.sidebar-logo {
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 0.85rem;
    flex-shrink: 0;
}

.sidebar-logo a {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--user-secondary);
    text-decoration: none;
    width: 100%;
}

.logo-icon-wrap {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-img {
    max-height: 36px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(255, 122, 0, 0.4));
    transition: transform 0.3s ease;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--user-primary);
    filter: drop-shadow(0 0 10px rgba(255, 122, 0, 0.6));
    transition: transform 0.3s ease;
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #FFFFFF 0%, #FF7A00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (min-width: 992px) {
    .user-sidebar:hover .logo-text,
    .user-sidebar.expanded .logo-text {
        opacity: 1;
        visibility: visible;
    }
    .user-sidebar:hover .logo-icon,
    .user-sidebar:hover .logo-img {
        transform: scale(1.1);
    }
}

/* ─── Navigation Menu ─── */
.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0 0.85rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0.5rem;
    color: var(--user-muted);
    border-radius: 50px; /* Pill background */
    transition: all 0.28s cubic-bezier(0.25, 1, 0.5, 1);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    border: 1px solid transparent;
    cursor: pointer;
}

.icon-box {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.icon-box i {
    font-size: 1.3rem;
    color: var(--user-muted);
    transition: all 0.3s ease;
}

.nav-text {
    font-weight: 500;
    font-size: 0.93rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    color: var(--user-text);
}

@media (min-width: 992px) {
    .user-sidebar:hover .nav-text,
    .user-sidebar.expanded .nav-text {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
}

/* Hover State */
.nav-item:hover {
    background: var(--user-hover-bg);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.08);
}

.nav-item:hover .icon-box i {
    color: #FFFFFF;
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

/* Active State */
.nav-item.active {
    background: var(--brand-gradient-short);
    background-size: 150% 100%;
    border: 1px solid transparent;
    box-shadow: 0 4px 20px rgba(255, 122, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-item.active .nav-text {
    color: #FFFFFF;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 122, 0, 0.5);
}

.nav-item.active .icon-box i {
    color: var(--user-primary);
    filter: drop-shadow(0 0 8px rgba(255, 122, 0, 0.6));
    animation: iconPulse 2.5s infinite ease-in-out;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

/* ─── Bottom Section ─── */
.sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem 0.85rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.5rem;
    border-radius: 50px;
    text-decoration: none;
    color: #FFF;
    transition: background 0.3s ease;
}

.sidebar-user-card:hover {
    background: var(--user-hover-bg);
}

.user-avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--user-primary) 0%, var(--user-secondary) 100%);
    border: 2px solid var(--user-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #FFF;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.user-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    white-space: nowrap;
}

@media (min-width: 992px) {
    .user-sidebar:hover .user-details,
    .user-sidebar.expanded .user-details {
        opacity: 1;
        visibility: visible;
    }
}

.user-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #FFF;
}

.user-plan-badge {
    font-size: 0.72rem;
    color: var(--user-secondary);
    font-weight: 600;
}

/* ─── Content Wrapper ─── */
.user-content-wrapper {
    flex: 1;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ─── Top Navbar Adjustments ─── */
.user-top-navbar {
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    gap: 1.5rem;
    background: rgba(7, 13, 24, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    position: sticky;
    top: 0;
    z-index: 1040;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    /* Allow search dropdown to overflow below the navbar. */
    overflow: visible;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.brand-logo {
    max-height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(255,122,0,0.4));
}

.brand-text i {
    color: var(--user-primary);
    margin-right: 0.25rem;
    font-size: 1.8rem;
}

.header-nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
}

.header-nav-links a {
    color: var(--user-muted);
    padding: 0.55rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.header-nav-links a:hover {
    color: #fff;
    background: rgba(255, 122, 0, 0.12);
    box-shadow: 0 0 15px rgba(255, 122, 0, 0.15);
}
.header-nav-links a.active {
    color: #fff;
    background: var(--brand-gradient-short);
    background-size: 150% 100%;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255,122,0,0.25);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0;
    margin-right: 0.5rem;
}

/* ─── Mobile Navigation Drawer ─── */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: rgba(7, 13, 24, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1060;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: none;
}
.mobile-nav-drawer::-webkit-scrollbar { display: none; }
.mobile-nav-drawer.open {
    transform: translateX(0);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.8);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    background: rgba(7, 13, 24, 0.98);
    z-index: 1;
}
.drawer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}
.drawer-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}
.drawer-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.drawer-nav {
    padding: 0.75rem 0;
    display: flex;
    flex-direction: column;
}
.drawer-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.drawer-link i {
    font-size: 1.15rem;
    width: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}
.drawer-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
.drawer-link.active {
    color: #fff;
    background: var(--brand-gradient-short);
    background-size: 150% 100%;
    box-shadow: 0 4px 15px rgba(255,122,0,0.2);
}
.drawer-link.active i {
    color: #fff;
}
.drawer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.5rem 1.5rem;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1055;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-nav-overlay.show {
    opacity: 1;
    visibility: visible;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.header-search { position: relative; }
.header-search input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 0.6rem 1.2rem 0.6rem 2.5rem;
    color: #fff;
    width: 250px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}
.header-search input:focus {
    width: 350px;
    background: rgba(0, 0, 0, 0.65);
    border-color: var(--user-primary);
    box-shadow: 0 0 15px rgba(255, 122, 0, 0.25), inset 0 2px 4px rgba(0,0,0,0.5);
    outline: none;
}
.header-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--user-muted);
}

.text-gold { color: var(--user-primary) !important; text-shadow: 0 0 10px rgba(255,122,0,0.4); }

.user-main-content {
    flex: 1;
    padding: 0;
}

/* Hide legacy headers */
body > .user-header { display: none !important; }
body > .mobile-nav { display: none !important; }
body > .mobile-nav-overlay { display: none !important; }
body > .user-main { margin-top: 0; min-height: auto; }
.user-footer { display: none !important; }

/* ─── Hero Banner ─── */
.hero-banner {
    height: 56vh;
    min-height: 360px;
    max-height: 620px;
    border-radius: 0 0 1.5rem 1.5rem;
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
}
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: brightness(0.8) contrast(1.1);
    transition: transform 8s ease;
}
.hero-slide.active img {
    transform: scale(1.05);
}
.hero-overlay {
    background: linear-gradient(90deg, rgba(5, 11, 24, 0.92) 0%, rgba(5, 11, 24, 0.5) 40%, transparent 70%),
                linear-gradient(0deg, var(--user-bg) 0%, rgba(5, 11, 24, 0.2) 30%, transparent 60%);
}
.hero-content {
    padding: 0 4.5rem;
    bottom: 18%;
    z-index: 5;
}
.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    text-transform: uppercase;
    letter-spacing: -1px;
    font-weight: 900;
    text-shadow: 0 4px 30px rgba(0,0,0,0.9);
    color: #fff;
}

/* ─── Buttons ─── */
.btn-primary {
    background: var(--brand-gradient-short);
    background-size: 150% 100%;
    border: none;
    color: #FFF !important;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(255, 122, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
.btn-primary:hover {
    background: var(--brand-gradient-hover);
    background-size: 150% 100%;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 35px rgba(255, 122, 0, 0.5);
}

.btn-outline-light.glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFF;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
.btn-outline-light.glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #FFF;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* ─── 3D Content Cards ─── */
.content-section {
    position: relative;
    z-index: 10;
}

.content-card {
    perspective: 1000px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d;
}
.content-card:hover {
    transform: translateY(-8px) scale(1.04);
    z-index: 30;
}

.card-poster {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    background: var(--user-card);
}
.content-card:hover .card-poster {
    border-color: rgba(255, 122, 0, 0.5);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.95), 0 0 25px rgba(255, 122, 0, 0.3);
}

.card-overlay {
    background: linear-gradient(0deg, rgba(5, 11, 24, 0.95) 0%, rgba(5, 11, 24, 0.3) 60%, transparent 100%);
    backdrop-filter: blur(3px);
    border-radius: 14px;
}

.card-play {
    color: #FFF;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
    transform: scale(0.85);
    transition: all 0.35s ease;
}
.content-card:hover .card-play {
    color: var(--user-primary);
    transform: scale(1.15);
    filter: drop-shadow(0 0 12px rgba(255, 122, 0, 0.6));
}

.badge-premium {
    background: var(--brand-gradient-short) !important;
    color: #FFF !important;
    font-weight: 800;
}

.badge-status {
    background: rgba(255, 122, 0, 0.2) !important;
    border: 1px solid rgba(255, 122, 0, 0.5) !important;
    color: var(--user-primary) !important;
}

/* ─── Sidebar Overlay ─── */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1045;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ─── Responsive Adjustments ─── */
@media (max-width: 991px) {
    /* Tablet & Mobile Off-canvas Drawer behavior */
    .user-sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-w-expanded);
        border-radius: 0 24px 24px 0;
    }
    .user-sidebar.expanded,
    .user-sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 20px 0 60px rgba(0, 0, 0, 0.9);
        background: rgba(7, 13, 24, 0.98);
    }
    .user-sidebar.expanded .nav-text,
    .user-sidebar.expanded .logo-text,
    .user-sidebar.expanded .user-details,
    .user-sidebar.mobile-open .nav-text,
    .user-sidebar.mobile-open .logo-text,
    .user-sidebar.mobile-open .user-details {
        opacity: 1;
        visibility: visible;
    }
    .user-content-wrapper {
        margin-left: 0 !important;
    }
    .mobile-menu-toggle { display: block; }
    .header-search input { width: 180px; }
    .header-search input:focus { width: 220px; }
    .hero-banner { border-radius: 0; height: 50vh; min-height: 300px; }
    .hero-content { padding: 0 2rem; bottom: 12%; }
    .row-scroll-btn { display: none !important; }
}

/* ─── Content Row Wrapper & Hover Chevron Buttons ─── */
.content-row-wrapper {
    position: relative;
    width: 100%;
}

.row-scroll-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    z-index: 25;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(7, 13, 24, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8);
}

.content-row-wrapper:hover .row-scroll-btn {
    opacity: 1;
    visibility: visible;
}

.row-scroll-left { left: 5px; }
.row-scroll-right { right: 5px; }

.row-scroll-btn:hover {
    background: var(--brand-gradient-short);
    color: #FFFFFF;
    border-color: transparent;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 0 20px rgba(255, 122, 0, 0.4);
}

/* ─── Genre Pills Bar ─── */
.genre-pills-bar {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0 1.5rem;
    scrollbar-width: none;
}
.genre-pills-bar::-webkit-scrollbar { display: none; }
.genre-pill {
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFF;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.genre-pill:hover, .genre-pill.active {
    background: var(--brand-gradient-short);
    color: #FFF;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.3);
    transform: translateY(-2px);
}

/* ─── Homepage Reference Additions ─── */

/* Hero Meta / Tags */
.hero-badge-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--brand-gradient-short);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}
.hero-badge-line .meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
}

/* Hero dots center + pill active */
.hero-dots {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 2.2rem;
    gap: 0.5rem;
}
.hero-dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.35);
}
.hero-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--user-primary);
}

.hero-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 1.5rem;
    pointer-events: none;
    z-index: 15;
}
.hero-arrow {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
}
.hero-arrow:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--user-primary);
    color: var(--user-primary);
}

/* Section header like reference */
.content-section { padding: 1.25rem 0; }
.section-header {
    padding: 0 3rem;
    margin-bottom: 1rem;
}
.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.section-title i { color: var(--user-primary); }
.section-view-all {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--user-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.25s;
}
.section-view-all:hover { color: var(--user-hover); gap: 0.5rem; }

/* Continue watching progress bar */
.continue-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: rgba(0,0,0,0.5);
    border-radius: 0 0 14px 14px;
    overflow: hidden;
}
.continue-progress-bar > div {
    height: 100%;
    background: var(--brand-gradient);
    border-radius: 0 4px 4px 0;
}

/* Top Genres Row */
.top-genres-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0 3rem 0.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.top-genres-row::-webkit-scrollbar { display: none; }
.genre-icon-card {
    flex: 0 0 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 0.6rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}
.genre-icon-card:hover {
    background: rgba(255,122,0,0.1);
    transform: translateY(-4px);
    border-color: rgba(255,122,0,0.35);
}
.genre-icon-card .icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,122,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--user-primary);
}
.genre-icon-card span {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    color: rgba(255,255,255,0.85);
}

/* Live TV Row */
.live-tv-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0 3rem 0.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.live-tv-row::-webkit-scrollbar { display: none; }
.live-channel-card {
    flex: 0 0 110px;
    position: relative;
    aspect-ratio: 1;
    background: var(--user-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: all 0.3s ease;
    overflow: hidden;
}
.live-channel-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,122,0,0.4);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.live-channel-card img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}
.live-channel-card .live-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background: #FF2E2E;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255,46,46,0.5);
}

/* Feature bar */
.feature-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    padding: 1.5rem 3rem;
    margin: 2rem 0;
}
.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
    font-weight: 600;
}
.feature-item i {
    font-size: 1.1rem;
    color: var(--user-primary);
}

/* Card badges New / Hot / New Episode */
.card-ribbon {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    z-index: 5;
}
.card-ribbon.new { background: #00C853; color: #000; }
.card-ribbon.hot { background: #FF2E2E; color: #fff; }
.card-ribbon.new-episode { background: var(--brand-gradient-short); color: #fff; }

@media (max-width: 768px) {
    .section-header { padding: 0 1.25rem; }
    .top-genres-row, .live-tv-row { padding: 0 1.25rem 0.5rem; }
    .feature-bar { padding: 1rem 1.25rem; grid-template-columns: repeat(2, 1fr); }
    .hero-content { padding: 0 1.25rem; }
}

/* ═══════════════════════════════════════════════════════
   MOVIES LISTING & MOVIE DETAIL — REFERENCE STYLES
   ═══════════════════════════════════════════════════════ */

/* ─── Page Hero (used on movies page) ─── */
.page-container-fluid { padding: 0; }
.page-hero {
    position: relative;
    height: 320px;
    background: linear-gradient(135deg, rgba(5,11,24,0.95) 0%, rgba(11,20,36,0.9) 50%, rgba(5,11,24,0.95) 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 50%, rgba(255,107,44,0.15) 0%, transparent 50%);
}
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.6) 50%, transparent 100%),
                linear-gradient(0deg, var(--user-bg) 0%, transparent 70%);
}
.page-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 3rem;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}
.page-hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    margin: 0.75rem 0 0.5rem;
    letter-spacing: -1px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.6);
}
.page-hero-desc {
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    max-width: 600px;
    margin-bottom: 0.75rem;
}
.page-hero-webseries::before { background: radial-gradient(circle at 80% 50%, rgba(255,46,99,0.15) 0%, transparent 50%); }
.card-subline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.25rem;
}
.card-episode-count {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.page-hero-count {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--user-secondary);
    font-weight: 700;
    font-size: 0.95rem;
}

/* ─── Filter Bar (reference style) ─── */
.filters-bar-ref {
    padding: 1.25rem 3rem;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: var(--topbar-h, 72px);
    z-index: 1030;
    backdrop-filter: blur(12px);
}
.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.filter-group .form-select,
.filter-group .search-input {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    border-radius: 10px;
    font-size: 0.85rem;
    padding: 0.55rem 2rem 0.55rem 0.9rem;
    min-width: 130px;
}
.filter-group .form-select option { background: #1a1a20; color: #fff; }
.filter-group .search-input { min-width: 180px; flex: 1; }
.filter-group .search-input::placeholder { color: rgba(255,255,255,0.4); }
.btn-filter {
    background: var(--brand-gradient-short);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.55rem 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.btn-filter:hover { opacity: 0.9; color: #fff; }

/* ─── Page Body ─── */
.page-body { padding: 1.5rem 3rem 3rem; }

/* ─── Content Grid (reference cards) ─── */
.content-grid-ref {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
    padding: 0.5rem 0;
}
.content-card-ref {
    position: relative;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease;
    display: block;
}
.content-card-ref:hover { transform: translateY(-6px) scale(1.02); }
.content-card-ref:hover .card-poster-ref img { transform: scale(1.08); }
.content-card-ref:hover .card-overlay-ref { opacity: 1; }
.content-row-scroll .content-card-ref { min-width: 140px; max-width: 140px; }

/* ─── SEARCH PAGE (Redesigned) ─── */
.search-hero {
    position: relative;
    padding: 3.5rem 1.5rem 2.5rem;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(123,47,247,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(255,122,0,0.10) 0%, transparent 50%),
        linear-gradient(135deg, rgba(8,17,31,0.98) 0%, rgba(11,20,36,0.95) 50%, rgba(5,11,24,0.98) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}
.search-hero::before {
    content: '';
    position: absolute;
    top: -30%; left: -5%;
    width: 50%; height: 160%;
    background: radial-gradient(ellipse, rgba(255,122,0,0.06) 0%, transparent 60%);
    pointer-events: none;
    animation: searchHeroGlow 8s ease-in-out infinite alternate;
}
.search-hero::after {
    content: '';
    position: absolute;
    bottom: -30%; right: -5%;
    width: 50%; height: 160%;
    background: radial-gradient(ellipse, rgba(123,47,247,0.06) 0%, transparent 60%);
    pointer-events: none;
    animation: searchHeroGlow 8s ease-in-out infinite alternate-reverse;
}
@keyframes searchHeroGlow {
    0% { transform: scale(1) rotate(0deg); opacity: 0.7; }
    100% { transform: scale(1.2) rotate(5deg); opacity: 1; }
}
.search-hero-content { position: relative; max-width: 900px; margin: 0 auto; text-align: center; z-index: 2; }
.search-hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; margin-bottom: 0.6rem;
    background: linear-gradient(135deg, #FF7A00 0%, #E91E63 50%, #7B2FF7 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    letter-spacing: -1px;
}
.search-hero-desc { color: rgba(255,255,255,0.65); font-size: 1.05rem; margin-bottom: 2rem; font-weight: 400; }

.search-bar-wrapper {
    position: relative; display: flex; align-items: center;
    max-width: 700px; margin: 0 auto;
    background: rgba(11,20,36,0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.25,1,0.5,1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.search-bar-wrapper:focus-within {
    border-color: rgba(255,122,0,0.5);
    box-shadow: 0 0 0 4px rgba(255,122,0,0.12), 0 8px 32px rgba(0,0,0,0.4);
    background: rgba(11,20,36,0.95);
}
.search-bar-icon { font-size: 1.25rem; color: var(--user-muted); flex-shrink: 0; transition: color 0.3s; }
.search-bar-wrapper:focus-within .search-bar-icon { color: var(--user-primary); }
.search-bar-input {
    flex: 1; border: none; background: transparent; color: var(--user-text);
    font-size: 1.05rem; padding: 0.7rem 0.75rem; outline: none; font-weight: 500;
}
.search-bar-input::placeholder { color: var(--user-muted); font-weight: 400; }
.search-bar-btn {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
    border: none; background: var(--brand-gradient); color: #fff;
    font-size: 1.15rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.25s;
    box-shadow: 0 4px 15px rgba(255,122,0,0.3);
}
.search-bar-btn:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(255,122,0,0.4); }
.search-bar-btn:active { transform: scale(0.95); }

/* ─── Suggestions Dropdown (Redesigned) ─── */
.search-suggestions {
    position: relative; max-width: 700px; margin: 0 auto;
    background: rgba(11,20,36,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    display: none;
    z-index: 100;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    animation: suggSlideDown 0.25s cubic-bezier(0.25,1,0.5,1);
}
/* Header search dropdown — position: absolute to escape the navbar's
   fixed height and backdrop-filter clipping context. */
.header-search .search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 100%;
    width: 380px;
    max-width: 90vw;
    max-height: 70vh;
    overflow-y: auto;
    margin: 0;
    z-index: 10000;
}
@keyframes suggSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.search-suggestions.show { display: block; }
.suggestion-item {
    display: flex; align-items: center; gap: 0.85rem;
    padding: 0.7rem 1.25rem; text-decoration: none; color: var(--user-text);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: all 0.2s;
    position: relative;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--brand-gradient-short);
    opacity: 0;
    transition: opacity 0.2s;
}
.suggestion-item:hover {
    background: rgba(255,255,255,0.04);
    padding-left: 1.5rem;
}
.suggestion-item:hover::before { opacity: 1; }
.suggestion-item img {
    width: 44px; height: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.06);
}
.sugg-no-img {
    width: 44px; height: 60px; border-radius: 6px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--user-surface), var(--user-card));
    display: flex; align-items: center; justify-content: center;
    color: var(--user-muted); font-size: 1.3rem;
    border: 1px solid rgba(255,255,255,0.06);
}
.sugg-info { flex: 1; min-width: 0; }
.sugg-title { font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sugg-type {
    font-size: 0.75rem; color: var(--user-muted); margin-top: 3px;
    display: inline-flex; align-items: center; gap: 0.3rem;
    text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
}
.sugg-type i { font-size: 0.7rem; }
.sugg-arrow {
    color: var(--user-muted); font-size: 0.85rem;
    opacity: 0; transform: translateX(-4px);
    transition: all 0.2s;
}
.suggestion-item:hover .sugg-arrow { opacity: 1; transform: translateX(0); color: var(--user-primary); }

/* ─── Results Count Banner ─── */
.search-results-count {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: rgba(255,255,255,0.7); font-size: 0.9rem; font-weight: 500;
    margin-bottom: 1.5rem; padding: 0.6rem 1.25rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 50px;
}
.search-results-count strong { color: var(--user-primary); font-weight: 700; }

/* ─── Empty State ─── */
.search-empty {
    text-align: center; padding: 5rem 1rem;
}
.search-empty i { font-size: 4.5rem; color: rgba(255,255,255,0.15); margin-bottom: 1.5rem; display: block; }
.search-empty h3 { font-size: 1.4rem; margin-bottom: 0.6rem; font-weight: 700; }
.search-empty p { color: rgba(255,255,255,0.5); font-size: 0.95rem; }

/* ─── Search Tags (Trending / Recent) (Redesigned) ─── */
.search-tags-section {
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.4s ease;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.search-tags-section h3 {
    font-size: 1.1rem; margin-bottom: 1rem; font-weight: 700;
    display: flex; align-items: center; gap: 0.5rem;
}
.search-tags-section h3 i { color: var(--user-accent); font-size: 1rem; }
.search-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.search-tag {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1.1rem; border-radius: 50px;
    background: rgba(11,20,36,0.6); border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7); font-size: 0.88rem; font-weight: 500;
    cursor: pointer; text-decoration: none;
    transition: all 0.25s cubic-bezier(0.25,1,0.5,1);
}
.search-tag:hover {
    border-color: rgba(255,122,0,0.4); color: #fff;
    background: rgba(255,122,0,0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,122,0,0.15);
}
.search-tag i { font-size: 0.82rem; }
.search-tag.trending {
    border-color: rgba(255,122,0,0.15);
    background: linear-gradient(135deg, rgba(255,122,0,0.06), rgba(233,30,99,0.04));
}
.search-tag.trending i { color: var(--user-primary); }
.search-tag.trending:hover {
    border-color: rgba(255,122,0,0.5);
    background: linear-gradient(135deg, rgba(255,122,0,0.12), rgba(233,30,99,0.08));
    box-shadow: 0 4px 18px rgba(255,122,0,0.2);
}
.search-tag.recent i { color: var(--user-muted); }
.search-tag.recent:hover i { color: rgba(255,255,255,0.8); }

/* ─── Search Results Sections (Redesigned) ─── */
.search-result-section { margin-bottom: 2.5rem; }
.search-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.25rem; padding: 0 0.25rem;
}
.search-section-title {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 1.15rem; font-weight: 700; color: #fff;
}
.search-section-title .section-icon {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem; flex-shrink: 0;
}
.search-section-title .section-icon.movie { background: rgba(255,122,0,0.15); color: var(--user-primary); }
.search-section-title .section-icon.series { background: rgba(123,47,247,0.15); color: var(--user-secondary); }
.search-section-title .section-icon.story { background: rgba(233,30,99,0.15); color: var(--user-accent); }
.search-section-title .section-icon.kids { background: rgba(59,130,246,0.15); color: #3b82f6; }
.search-section-count {
    font-size: 0.8rem; font-weight: 600; color: var(--user-muted);
    background: rgba(255,255,255,0.06);
    padding: 0.25rem 0.75rem; border-radius: 50px;
}
.search-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
}
.search-result-grid .content-card-ref { min-width: unset; max-width: unset; }

@media (max-width: 768px) {
    .search-hero { padding: 2.5rem 1rem 2rem; }
    .search-hero-title { font-size: 1.8rem; }
    .search-hero-desc { font-size: 0.95rem; margin-bottom: 1.5rem; }
    .search-bar-input { font-size: 0.95rem; }
    .search-result-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.85rem; }
    .search-section-title { font-size: 1rem; }
    .search-section-title .section-icon { width: 28px; height: 28px; font-size: 0.85rem; }
}
@media (max-width: 480px) {
    .search-result-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.65rem; }
}
.card-poster-ref {
    position: relative;
    aspect-ratio: 2/3;
    border-radius: 14px;
    overflow: hidden;
    background: var(--user-card);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}
.content-card-ref:hover .card-poster-ref {
    border-color: rgba(255,122,0,0.4);
    box-shadow: 0 12px 30px rgba(0,0,0,0.6), 0 0 20px rgba(255,122,0,0.2);
}
.card-poster-ref img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.card-overlay-ref {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-play-ref {
    font-size: 2.8rem;
    color: var(--user-primary);
    filter: drop-shadow(0 0 12px rgba(255,122,0,0.5));
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.content-card-ref:hover .card-play-ref { transform: scale(1); }
.card-add-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}
.card-add-btn:hover { background: var(--user-primary); border-color: var(--user-primary); }
.card-info-ref { padding: 0.7rem 0.25rem 0; }
.card-title-ref {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-meta-ref {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    flex-wrap: wrap;
}
.card-meta-ref .meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
}
.card-meta-ref .meta-rating { color: var(--user-warning); font-weight: 600; }
.card-meta-ref .meta-rating i { font-size: 0.65rem; }
.badge-premium-mini {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: var(--user-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 0.3rem;
}

/* ─── Movie Detail Page ─── */
.detail-hero {
    position: relative;
    height: 75vh;
    min-height: 500px;
    max-height: 750px;
    overflow: hidden;
}
.detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.1);
}
.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5,11,24,0.92) 0%, rgba(5,11,24,0.45) 55%, transparent 100%),
                linear-gradient(0deg, var(--user-bg) 0%, transparent 55%),
                radial-gradient(circle at 70% 40%, rgba(255,122,0,0.1) 0%, transparent 40%);
}
.detail-hero-content {
    position: absolute;
    bottom: 12%;
    left: 0;
    right: 0;
    padding: 0 3rem;
    max-width: 1600px;
    margin: 0 auto;
    z-index: 2;
}
.detail-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.7);
}
.detail-meta-line {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1rem;
}
.detail-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--user-warning);
    font-weight: 700;
}
.detail-rating i { color: var(--user-warning); }
.detail-4k { color: #00D2FF; font-weight: 600; }
.detail-4k i { color: #00D2FF; }
.detail-cert {
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}
.detail-desc {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    max-width: 650px;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}
.detail-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.btn-play {
    background: var(--brand-gradient-short);
    background-size: 150% 100%;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 0.7rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(255,122,0,0.35);
    transition: transform 0.2s, box-shadow 0.2s, background-position 0.3s;
}
.btn-play:hover { color: #fff; transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 12px 30px rgba(255,122,0,0.5); }
.btn-list, .btn-like, .btn-share {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}
.btn-list { border-radius: 30px; width: auto; padding: 0 1.25rem; gap: 0.4rem; font-weight: 600; }
.btn-like:hover, .btn-like.active { background: #FF2E2E; border-color: #FF2E2E; color: #fff; }
.btn-list:hover { background: rgba(255,255,255,0.15); }

/* ─── Detail Body ─── */
.detail-body {
    padding: 3rem;
    max-width: 1600px;
    margin: 0 auto;
}
.detail-main {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}
.detail-poster {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.08);
    background: var(--user-card);
}
.detail-poster img { width: 100%; height: auto; display: block; }
.detail-info { color: rgba(255,255,255,0.85); }
.detail-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #fff;
}
.detail-synopsis {
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

/* Credits grid */
.detail-credits {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.credit-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.credit-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.credit-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

/* Detail sections */
.detail-section { margin-bottom: 3rem; }

/* Trailer */
.trailer-grid { display: flex; gap: 1rem; flex-wrap: wrap; }
.trailer-thumb {
    position: relative;
    width: 280px;
    aspect-ratio: 16/9;
    border-radius: 14px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    transition: transform 0.3s;
}
.trailer-thumb:hover { transform: scale(1.03); }
.trailer-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    transition: background 0.3s;
}
.trailer-thumb:hover::before { background: rgba(0,0,0,0.3); }
.trailer-overlay {
    position: relative;
    z-index: 2;
    font-size: 3rem;
    color: #fff;
    filter: drop-shadow(0 0 12px rgba(0,0,0,0.5));
}
.trailer-label {
    position: absolute;
    bottom: 12px;
    left: 14px;
    z-index: 2;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
}

/* ─── Series Seasons / Episodes ─── */
.seasons-section { margin-bottom: 3rem; }
.seasons-count {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
}
.season-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.season-tab {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    border-radius: 10px;
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.season-tab:hover { background: rgba(255,255,255,0.1); color: #fff; }
.season-tab.active {
    background: var(--brand-gradient-short);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255,122,0,0.25);
}
.episodes-list-ref {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.episode-row-ref {
    display: grid;
    grid-template-columns: 40px 180px 1fr 50px;
    gap: 1rem;
    align-items: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 0.75rem;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s;
}
.episode-row-ref:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,122,0,0.2); }
.episode-row-ref.active { border-color: var(--user-primary); background: rgba(255,122,0,0.08); }
.episode-index {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-align: center;
}
.episode-thumb-ref {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
    background: var(--user-card);
}
.episode-thumb-ref img { width: 100%; height: 100%; object-fit: cover; }
.episode-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    font-size: 2rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s;
}
.episode-row-ref:hover .episode-play-icon { opacity: 1; }
.episode-body-ref { flex: 1; }
.episode-head-ref {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
    flex-wrap: wrap;
}
.episode-title-ref {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}
.episode-date {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}
.episode-desc-ref {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.35rem;
    line-height: 1.45;
}
.episode-meta-ref {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}
.episode-download {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.2s;
}
.episode-row-ref:hover .episode-download { background: rgba(255,255,255,0.12); color: #fff; }

/* ═══ Responsive ═══ */
@media (max-width: 991px) {
    .content-grid-ref { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
    .filter-group { flex-wrap: wrap; }
    .detail-hero { height: 60vh; min-height: 400px; }
    .detail-title { font-size: 2.2rem; }
    .detail-main { grid-template-columns: 160px 1fr; gap: 1.5rem; }
    .detail-credits { grid-template-columns: repeat(2, 1fr); }
    .page-hero-content, .detail-hero-content, .detail-body, .page-body, .filters-bar-ref, .feature-bar { padding-left: 1.25rem; padding-right: 1.25rem; }
}

@media (max-width: 768px) {
    .content-grid-ref { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .filter-group .search-input { width: 100%; order: -1; }
    .page-hero { height: 260px; }
    .page-hero-title { font-size: 2rem; }
    .detail-hero-content { bottom: 8%; }
    .detail-title { font-size: 1.8rem; }
    .detail-actions { gap: 0.6rem; }
    .btn-play { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
    .detail-main { grid-template-columns: 1fr; }
    .detail-poster { max-width: 180px; margin: 0 auto; }
    .detail-credits { grid-template-columns: 1fr; }
    .trailer-thumb { width: 100%; }
    .trailer-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
}

/* ─── Site Footer ─── */
.site-footer {
    background: rgba(0,0,0,0.35);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 3rem 3rem 0;
    margin-top: 2rem;
}
.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.footer-logo {
    max-height: 42px;
    width: auto;
}
.footer-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-desc {
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 300px;
    margin: 0;
}
.footer-social {
    display: flex;
    gap: 0.75rem;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}
.footer-social a:hover {
    background: var(--user-primary);
    color: #fff;
    border-color: var(--user-primary);
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.footer-col h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}
.footer-col a {
    display: block;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 0.55rem;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--user-secondary); }
.footer-bottom {
    text-align: center;
    padding: 1.25rem 0;
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
}
@media (max-width: 768px) {
    .site-footer { padding: 2rem 1.25rem 0; }
    .footer-container { grid-template-columns: 1fr; gap: 2rem; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Admin Page Banners ─── */
.page-banner {
    position: relative;
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    border-radius: 0 0 var(--user-radius) var(--user-radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5,11,24,0.92) 0%, rgba(5,11,24,0.5) 55%, transparent 100%);
}
.page-banner-content {
    position: absolute;
    bottom: 2rem;
    left: 3rem;
    right: 3rem;
    z-index: 2;
    max-width: 650px;
}
.page-banner-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: #fff;
}
.page-banner-content p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 1rem;
    line-height: 1.5;
}
@media (max-width: 768px) {
    .page-banner { height: 200px; }
    .page-banner-content { left: 1.25rem; right: 1.25rem; }
    .page-banner-content h2 { font-size: 1.4rem; }
    .page-banner-content p { font-size: 0.85rem; }
}

/* ─── RENT BADGE & BUTTON ─── */
.badge-rent-mini {
    display: inline-flex; align-items: center; gap: 0.25rem;
    background: rgba(255,193,7,0.15); color: #ffc107;
    padding: 0.2rem 0.6rem; border-radius: 50px;
    font-size: 0.75rem; font-weight: 600;
    border: 1px solid rgba(255,193,7,0.3);
}
.btn-rent {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.65rem 1.5rem; border-radius: 50px;
    background: linear-gradient(90deg, #ffc107, #ff9800);
    border: none; color: #1a1a1a; font-weight: 700; font-size: 0.95rem;
    cursor: pointer; transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255,193,7,0.4);
}
.btn-rent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,193,7,0.55);
}
.btn-rent:disabled { opacity: 0.7; cursor: wait; }

/* ─── DOWNLOAD BUTTON & CARDS ─── */
.btn-download {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.65rem 1.5rem; border-radius: 50px;
    background: rgba(255,255,255,0.1); border: 1px solid var(--user-border);
    color: var(--user-text); font-weight: 600; font-size: 0.95rem;
    cursor: pointer; transition: all 0.3s ease; text-decoration: none;
}
.btn-download:hover {
    background: rgba(255,255,255,0.15); border-color: var(--user-accent);
    transform: translateY(-2px);
}
.btn-download.downloaded {
    background: rgba(40, 200, 100, 0.15); border-color: rgba(40, 200, 100, 0.4);
    color: #28c864;
}
.btn-download.downloaded:hover { background: rgba(40, 200, 100, 0.25); }
.btn-download:disabled { opacity: 0.7; cursor: wait; }

/* Downloads info bar */
.downloads-info-bar {
    background: rgba(255,122,0,0.1); border: 1px solid rgba(255,122,0,0.3);
    border-radius: var(--user-radius); padding: 0.75rem 1rem;
    color: var(--user-text-secondary); font-size: 0.9rem;
    margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem;
}
.downloads-info-bar i { color: var(--user-accent); }

/* Download card */
.download-card {
    background: var(--user-card); border: 1px solid var(--user-border);
    border-radius: var(--user-radius); overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}
.download-card:hover { transform: translateY(-4px); border-color: var(--user-accent); }
.download-card .card-poster {
    position: relative; aspect-ratio: 2/3; overflow: hidden;
    background: var(--user-surface);
}
.download-card .card-poster img { width: 100%; height: 100%; object-fit: cover; }
.download-card .card-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
}
.download-card:hover .card-overlay { opacity: 1; }
.download-card .card-play { font-size: 2.5rem; color: #fff; }
.download-card .card-info { padding: 0.75rem; }
.download-card .card-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.25rem; }
.download-card .card-sub { font-size: 0.8rem; color: var(--user-muted); margin-bottom: 0.5rem; }

.download-badge {
    position: absolute; top: 0.5rem; left: 0.5rem;
    background: rgba(40, 200, 100, 0.9); color: #fff;
    padding: 0.25rem 0.6rem; border-radius: 50px;
    font-size: 0.7rem; font-weight: 600;
    display: flex; align-items: center; gap: 0.25rem;
}
.download-badge.downloading {
    background: rgba(255,122,0,0.9);
}
.download-badge i { font-size: 0.65rem; }

.download-progress-bar {
    width: 100%; height: 6px; background: rgba(255,255,255,0.1);
    border-radius: 50px; overflow: hidden; margin-bottom: 0.75rem;
}
.download-progress-fill {
    height: 100%; background: var(--brand-gradient);
    border-radius: 50px; transition: width 0.5s ease;
}

.download-expiry {
    font-size: 0.8rem; color: var(--user-text-secondary);
    display: flex; align-items: center; gap: 0.3rem;
    margin-bottom: 0.75rem;
}
.download-expiry i { font-size: 0.75rem; }
.download-expiry.expiry-soon { color: #ffc107; }
.download-expiry.expiry-urgent { color: #ff4444; font-weight: 600; }

.download-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.download-actions .btn { padding: 0.3rem 0.7rem; font-size: 0.8rem; }
.download-actions .btn-danger { margin-left: auto; }

/* Premium CTA */
.premium-cta-section {
    position: relative;
    overflow: hidden;
    padding: 1.25rem 1.5rem;
    margin: 1rem 0;
    background: linear-gradient(95deg, #0f0b15 0%, #1a1225 45%, #241233 55%, #0f0b15 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
}
.premium-cta-section::before,
.premium-cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 200px;
    z-index: 0;
    pointer-events: none;
}
.premium-cta-section::before {
    left: -50px;
    background: radial-gradient(circle at 30% 50%, rgba(255,122,0,0.18) 0%, transparent 70%);
}
.premium-cta-section::after {
    right: -50px;
    background: radial-gradient(circle at 70% 50%, rgba(123,77,255,0.18) 0%, transparent 70%);
}
.premium-cta-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255,122,0,0.12) 0%, transparent 60%);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}
.premium-cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 0;
}
.premium-cta-left { flex: 0 0 auto; }
.premium-cta-logo {
    max-height: 70px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(255,122,0,0.4));
}
.premium-cta-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}
.premium-cta-center { flex: 1 1 auto; min-width: 0; }
.premium-cta-title {
    font-size: clamp(1.3rem, 2.6vw, 2.1rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.6rem;
    line-height: 1.2;
}
.premium-cta-accent {
    background: linear-gradient(90deg, #FF7A00 0%, #FF2D6D 50%, #7B4DFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.premium-cta-features {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.2rem;
    margin-bottom: 0.4rem;
}
.premium-cta-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
}
.premium-cta-feature i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #FF7A00;
    font-size: 0.75rem;
}
.premium-cta-safe {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}
.premium-cta-right { flex: 0 0 auto; }
.btn-premium-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(90deg, #FF7A00 0%, #FF2D6D 55%, #7B4DFF 100%);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(255,45,109,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.btn-premium-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255,45,109,0.55);
}
@media (max-width: 768px) {
    .premium-cta-section { padding: 1.25rem 1rem; }
    .premium-cta-content { flex-direction: column; text-align: center; gap: 1rem; }
    .premium-cta-left { order: 1; }
    .premium-cta-center { order: 2; }
    .premium-cta-right { order: 3; }
    .premium-cta-logo { max-height: 55px; }
    .premium-cta-features { justify-content: center; }
    .premium-cta-safe { display: flex; justify-content: center; }
    .btn-premium-cta { padding: 0.65rem 1.25rem; font-size: 0.85rem; }
}

/* ═══════════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE RESPONSIVENESS — ALL PAGES
   Breakpoints: 991px (tablet), 768px (mobile), 576px (small), 380px (tiny)
   ═══════════════════════════════════════════════════════════ */

/* ─── TABLET (max-width: 991px) ─── */
@media (max-width: 991px) {
    /* Header / Navbar */
    .header-nav-links { display: none !important; }
    .header-search { max-width: 200px; }
    .header-search input { width: 160px; }
    .header-search input:focus { width: 200px; }
    .header-search .search-suggestions { width: 300px; }
    .header-user-info { display: none !important; }
    .navbar-brand { gap: 0.5rem; }
    .brand-logo { max-height: 40px; }

    /* Page heroes */
    .page-hero { height: 280px; }
    .page-hero-content { padding: 0 1.5rem; }
    .page-hero-title { font-size: 2.2rem; }
    .page-hero-desc { font-size: 0.9rem; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; display: -webkit-box; }

    /* Page body & containers */
    .page-body { padding: 1.5rem 1.25rem; }
    .page-container { padding: 1rem; }
    .page-container-fluid { padding: 0; }

    /* Content grids */
    .content-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; padding: 0 1rem; }
    .content-grid-ref { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
    .content-row-scroll { padding: 0 1rem 0.5rem; gap: 0.75rem; }
    .content-row-scroll .content-card-ref { min-width: 130px; max-width: 130px; }
    .content-row-scroll .content-card { min-width: 140px; max-width: 140px; }

    /* Section headers */
    .section-header { padding: 0 1rem; }
    .section-title { font-size: 1.1rem; }

    /* Feature bar */
    .feature-bar { grid-template-columns: repeat(2, 1fr); padding: 1rem 1.25rem; gap: 0.75rem; }
    .feature-item { font-size: 0.8rem; }

    /* Detail pages */
    .detail-hero { height: 55vh; min-height: 350px; }
    .detail-hero-content { padding: 0 1.5rem; }
    .detail-title { font-size: 2rem; }
    .detail-meta-line { flex-wrap: wrap; gap: 0.4rem; font-size: 0.85rem; }
    .detail-desc { font-size: 0.9rem; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; display: -webkit-box; }
    .detail-body { padding: 1.5rem 1.25rem; }
    .detail-main { grid-template-columns: 150px 1fr; gap: 1.25rem; }
    .detail-credits { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .detail-actions { flex-wrap: wrap; gap: 0.6rem; }

    /* Seasons & episodes */
    .season-tabs { flex-wrap: wrap; gap: 0.4rem; }
    .season-tab { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
    .episode-item-ref { flex-direction: row; gap: 0.75rem; }
    .episode-thumb-ref { width: 120px; min-width: 120px; }

    /* Profile */
    .profile-header { padding: 1.5rem; gap: 1.25rem; }
    .profile-avatar { width: 80px; height: 80px; font-size: 2rem; }
    .profile-tabs { flex-wrap: wrap; gap: 0.25rem; }
    .profile-tab { padding: 0.4rem 0.8rem; font-size: 0.85rem; }

    /* Filters bar */
    .filters-bar { flex-wrap: wrap; gap: 0.5rem; padding: 0.75rem; }
    .filters-bar .search-input { flex: 1; min-width: 200px; }
    .filters-bar .form-select { min-width: 120px; }
    .filters-bar-ref { flex-wrap: wrap; gap: 0.5rem; padding: 0.75rem 1.25rem; }

    /* Auth pages */
    .auth-card { max-width: 380px; padding: 2rem; }

    /* Subscriptions */
    .plans-grid { grid-template-columns: 1fr; gap: 1.25rem; }

    /* Footer */
    .site-footer { padding: 2rem 1.5rem 0; }
    .footer-container { grid-template-columns: 1fr; gap: 2rem; }

    /* Search page */
    .search-hero { padding: 2rem 1rem; }
    .search-hero-title { font-size: 2rem; }
    .search-bar-wrapper { max-width: 100%; }

    /* Download cards */
    .download-card .card-info { padding: 0.6rem; }
    .download-actions { gap: 0.3rem; }
    .download-actions .btn { padding: 0.25rem 0.5rem; font-size: 0.75rem; }

    /* Player */
    .player-container { aspect-ratio: 16/9; }

    /* Pagination */
    .pagination-bar { flex-wrap: wrap; gap: 0.25rem; }
    .pagination-bar button { min-width: 36px; height: 36px; font-size: 0.85rem; }

    /* Modal */
    .modal-dialog { margin: 0.5rem; }
}

/* ─── MOBILE (max-width: 768px) ─── */
@media (max-width: 768px) {
    /* Header / Navbar */
    .user-top-navbar { padding: 0.5rem 0.75rem; }
    .header-search { display: none; }
    .navbar-brand { gap: 0.25rem; }
    .brand-logo { max-height: 36px; }
    .brand-text { font-size: 1rem; }
    .header-icon-btn { width: 36px; height: 36px; font-size: 1.1rem; }
    .header-avatar { width: 36px; height: 36px; }
    .header-actions { gap: 0.4rem; }
    .header-auth-btn { padding: 0.3rem 0.55rem; font-size: 0.7rem; }

    /* Hero banner */
    .hero-banner { height: 45vh; min-height: 260px; border-radius: 0; }
    .hero-content { padding: 0 1rem; bottom: 10%; }
    .hero-title { font-size: 1.5rem; }
    .hero-desc { font-size: 0.85rem; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; display: -webkit-box; }
    .hero-buttons { flex-wrap: wrap; gap: 0.5rem; }
    .hero-buttons .btn { padding: 0.5rem 1rem; font-size: 0.85rem; }

    /* Page heroes */
    .page-hero { height: 220px; }
    .page-hero-content { padding: 0 1rem; }
    .page-hero-title { font-size: 1.6rem; }
    .page-hero-desc { display: none; }
    .page-hero-count { font-size: 0.8rem; }
    .hero-tag { font-size: 0.75rem; padding: 0.2rem 0.6rem; }

    /* Page body */
    .page-body { padding: 1rem 0.75rem; }
    .page-container { padding: 0.75rem; }

    /* Content grids — 2 columns on mobile */
    .content-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; padding: 0 0.75rem; }
    .content-grid-ref { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .content-row-scroll { padding: 0 0.75rem 0.5rem; gap: 0.5rem; }
    .content-row-scroll .content-card-ref { min-width: 110px; max-width: 110px; }
    .content-row-scroll .content-card { min-width: 120px; max-width: 120px; }
    .row-scroll-btn { display: none !important; }

    /* Cards */
    .card-title { font-size: 0.8rem; }
    .card-title-ref { font-size: 0.8rem; }
    .card-sub { font-size: 0.7rem; }
    .card-meta-ref { font-size: 0.65rem; gap: 0.2rem; }
    .card-meta-ref .meta-dot { width: 2px; height: 2px; }
    .card-ribbon { font-size: 0.6rem; padding: 0.15rem 0.4rem; }
    .card-add-btn { width: 24px; height: 24px; font-size: 0.8rem; }
    .card-rating { font-size: 0.7rem; }

    /* Section headers */
    .section-header { padding: 0 0.75rem; margin-bottom: 0.6rem; }
    .section-title { font-size: 1rem; }
    .section-view-all { font-size: 0.75rem; }

    /* Feature bar */
    .feature-bar { grid-template-columns: 1fr; padding: 0.75rem; gap: 0.5rem; }
    .feature-item { font-size: 0.75rem; padding: 0.4rem; }

    /* Detail pages */
    .detail-hero { height: 45vh; min-height: 280px; }
    .detail-hero-content { padding: 0 1rem; bottom: 6%; }
    .detail-title { font-size: 1.5rem; }
    .detail-meta-line { font-size: 0.75rem; gap: 0.3rem; }
    .detail-meta-line .meta-dot { width: 2px; height: 2px; }
    .detail-desc { font-size: 0.85rem; -webkit-line-clamp: 2; line-clamp: 2; }
    .detail-actions { gap: 0.4rem; flex-wrap: wrap; }
    .btn-play { padding: 0.5rem 1rem; font-size: 0.85rem; }
    .btn-list, .btn-like, .btn-share, .btn-download { padding: 0.5rem 0.8rem; font-size: 0.8rem; }
    .detail-body { padding: 1rem 0.75rem; }
    .detail-main { grid-template-columns: 1fr; gap: 1rem; }
    .detail-poster { max-width: 140px; margin: 0 auto; }
    .detail-section-title { font-size: 1.1rem; }
    .detail-credits { grid-template-columns: 1fr; gap: 0.75rem; }
    .credit-label { font-size: 0.75rem; }
    .credit-value { font-size: 0.85rem; }
    .detail-synopsis { font-size: 0.85rem; }

    /* Seasons & episodes */
    .seasons-section { margin-bottom: 1.5rem; }
    .season-tabs { gap: 0.3rem; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .season-tab { padding: 0.35rem 0.7rem; font-size: 0.8rem; white-space: nowrap; }
    .episode-item-ref { flex-direction: column; gap: 0.5rem; padding: 0.6rem; }
    .episode-thumb-ref { width: 100%; min-width: 100%; aspect-ratio: 16/9; }
    .episode-info-ref { width: 100%; }
    .episode-title-ref { font-size: 0.85rem; }
    .episode-desc-ref { font-size: 0.75rem; -webkit-line-clamp: 2; line-clamp: 2; }

    /* Trailer */
    .trailer-grid { grid-template-columns: 1fr; }


    /* Profile */
    .profile-header { flex-direction: column; text-align: center; padding: 1.25rem 1rem; gap: 1rem; }
    .profile-avatar { width: 70px; height: 70px; font-size: 1.8rem; }
    .profile-tabs { display: flex; overflow-x: auto; flex-wrap: nowrap; gap: 0.25rem; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; }
    .profile-tab { white-space: nowrap; padding: 0.4rem 0.7rem; font-size: 0.8rem; }
    .glass { padding: 1rem !important; }

    /* Filters bar */
    .filters-bar { flex-direction: column; align-items: stretch; gap: 0.5rem; padding: 0.6rem; }
    .filters-bar .search-input { width: 100%; }
    .filters-bar .form-select { width: 100%; }
    .filters-bar-ref { flex-direction: column; padding: 0.6rem 0.75rem; }

    /* Auth pages */
    .auth-card { padding: 1.5rem; margin: 0.75rem; max-width: 100%; }
    .auth-logo img { max-height: 40px; }
    .auth-logo h1 { font-size: 1.2rem; }
    .auth-title { font-size: 1.25rem; }

    /* Subscriptions */
    .plans-grid { grid-template-columns: 1fr; gap: 1rem; }
    .plan-card { padding: 1.5rem; }
    .plan-price { font-size: 2rem; }
    .plan-features li { font-size: 0.85rem; }

    /* Footer */
    .site-footer { padding: 1.5rem 1rem 0; }
    .footer-container { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-links { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .footer-bottom { font-size: 0.75rem; padding: 1rem 0; }

    /* Search page */
    .search-hero { padding: 1.5rem 0.75rem; }
    .search-hero-title { font-size: 1.5rem; }
    .search-hero-desc { font-size: 0.85rem; margin-bottom: 1rem; }
    .search-bar-wrapper { padding: 0.4rem 0.4rem 0.4rem 1rem; }
    .search-bar-input { font-size: 0.95rem; padding: 0.5rem 0.5rem; }
    .search-bar-btn { width: 38px; height: 38px; }
    .search-suggestions { max-width: 100%; }
    .suggestion-item { padding: 0.5rem 0.75rem; }
    .suggestion-item img, .sugg-no-img { width: 32px; height: 44px; }
    .sugg-title { font-size: 0.85rem; }
    .sugg-type { font-size: 0.7rem; }
    .search-results-count { font-size: 0.85rem; margin-bottom: 1rem; }
    .search-tags { gap: 0.4rem; }
    .search-tag { padding: 0.4rem 0.75rem; font-size: 0.8rem; }

    /* Download cards */
    .downloads-info-bar { font-size: 0.8rem; padding: 0.5rem 0.75rem; }
    .download-card .card-title { font-size: 0.85rem; }
    .download-card .card-sub { font-size: 0.7rem; }
    .download-expiry { font-size: 0.7rem; }
    .download-badge { font-size: 0.6rem; padding: 0.15rem 0.4rem; }
    .download-actions { gap: 0.25rem; }
    .download-actions .btn { padding: 0.2rem 0.5rem; font-size: 0.7rem; }

    /* Player */
    .player-page { padding: 0; }
    .player-container { aspect-ratio: 16/9; max-height: 50vh; }
    .player-overlay { font-size: 0.8rem; }

    /* Pagination */
    .pagination-bar { gap: 0.2rem; padding: 0.5rem 0; }
    .pagination-bar button { min-width: 32px; height: 32px; font-size: 0.8rem; padding: 0 0.4rem; }

    /* Notifications */
    .notification-item { flex-direction: column; gap: 0.5rem; padding: 0.75rem; }

    /* Modal */
    .modal-dialog { margin: 0.5rem 0.25rem; }
    .modal-content { border-radius: 12px; }
    .modal-header { padding: 0.75rem 1rem; }
    .modal-body { padding: 1rem; }
    .modal-footer { padding: 0.75rem 1rem; }

    /* Page banner */
    .page-banner { height: 180px; }
    .page-banner-content { left: 1rem; right: 1rem; bottom: 1rem; }
    .page-banner-content h2 { font-size: 1.2rem; }
    .page-banner-content p { font-size: 0.8rem; }

    /* Misc */
    .loading-spinner { width: 36px; height: 36px; }
    .empty-state { padding: 2rem 1rem; }
    .empty-state i { font-size: 2.5rem; }
    .empty-state h3 { font-size: 1.1rem; }
}

/* ─── SMALL MOBILE (max-width: 576px) ─── */
@media (max-width: 576px) {
    /* Header */
    .user-top-navbar { padding: 0.4rem 0.5rem; }
    .brand-logo { max-height: 32px; }
    .brand-text { font-size: 0.9rem; }
    .header-icon-btn { width: 34px; height: 34px; font-size: 1rem; }
    .header-avatar { width: 34px; height: 34px; }

    /* Hero */
    .hero-banner { height: 40vh; min-height: 220px; }
    .hero-title { font-size: 1.25rem; }
    .hero-desc { display: none; }
    .hero-buttons .btn { padding: 0.4rem 0.8rem; font-size: 0.8rem; }

    /* Page heroes */
    .page-hero { height: 180px; }
    .page-hero-title { font-size: 1.3rem; }
    .page-hero-count { display: none; }
    .hero-tag { font-size: 0.7rem; }

    /* Content grids — still 2 columns but tighter */
    .content-grid { gap: 0.5rem; padding: 0 0.5rem; }
    .content-grid-ref { gap: 0.5rem; }
    .content-row-scroll .content-card-ref { min-width: 100px; max-width: 100px; }
    .content-row-scroll .content-card { min-width: 110px; max-width: 110px; }

    /* Cards */
    .card-title, .card-title-ref { font-size: 0.75rem; }
    .card-sub { font-size: 0.65rem; }
    .card-meta-ref { font-size: 0.6rem; }
    .card-ribbon { font-size: 0.55rem; padding: 0.1rem 0.3rem; }
    .card-add-btn { width: 22px; height: 22px; font-size: 0.7rem; }

    /* Detail pages */
    .detail-hero { height: 40vh; min-height: 220px; }
    .detail-title { font-size: 1.25rem; }
    .detail-meta-line { font-size: 0.7rem; }
    .detail-desc { display: none; }
    .detail-actions { gap: 0.3rem; }
    .btn-play { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
    .btn-list, .btn-like, .btn-share, .btn-download { padding: 0.4rem 0.6rem; font-size: 0.75rem; }
    .detail-body { padding: 0.75rem 0.5rem; }
    .detail-poster { max-width: 110px; }
    .detail-section-title { font-size: 1rem; }

    /* Seasons & episodes */
    .season-tab { padding: 0.3rem 0.5rem; font-size: 0.75rem; }

    /* Profile */
    .profile-header { padding: 1rem 0.75rem; }
    .profile-avatar { width: 60px; height: 60px; font-size: 1.5rem; }
    .profile-tab { padding: 0.35rem 0.5rem; font-size: 0.75rem; }

    /* Auth */
    .auth-card { padding: 1.25rem; margin: 0.5rem; }
    .auth-title { font-size: 1.1rem; }

    /* Subscriptions */
    .plan-card { padding: 1.25rem; }
    .plan-price { font-size: 1.75rem; }
    .plan-features li { font-size: 0.8rem; padding: 0.4rem 0; }

    /* Footer */
    .footer-links { grid-template-columns: 1fr; gap: 0.75rem; }
    .footer-bottom { font-size: 0.7rem; }

    /* Search */
    .search-hero { padding: 1rem 0.5rem; }
    .search-hero-title { font-size: 1.25rem; }
    .search-hero-desc { display: none; }
    .search-bar-input { font-size: 0.85rem; }

    /* Download */
    .download-actions { flex-wrap: wrap; }
    .download-actions .btn-danger { margin-left: 0; width: 100%; margin-top: 0.25rem; }

    /* Pagination */
    .pagination-bar button { min-width: 28px; height: 28px; font-size: 0.75rem; }

    /* Modal */
    .modal-dialog { margin: 0.25rem; }
    .modal-body { padding: 0.75rem; }
}

/* ─── TINY MOBILE (max-width: 380px) ─── */
@media (max-width: 380px) {
    /* Header */
    .brand-text { display: none; }
    .brand-logo { max-height: 28px; }
    .header-auth-btn { padding: 0.25rem 0.45rem; font-size: 0.65rem; }

    /* Hero */
    .hero-banner { height: 38vh; min-height: 190px; }
    .hero-title { font-size: 1.1rem; }
    .hero-buttons .btn { padding: 0.35rem 0.6rem; font-size: 0.75rem; }

    /* Page heroes */
    .page-hero { height: 160px; }
    .page-hero-title { font-size: 1.1rem; }
    .hero-tag { font-size: 0.65rem; }

    /* Content grids — 2 columns minimum, very tight */
    .content-grid { gap: 0.4rem; padding: 0 0.4rem; }
    .content-grid-ref { gap: 0.4rem; }
    .content-row-scroll .content-card-ref { min-width: 90px; max-width: 90px; }
    .content-row-scroll .content-card { min-width: 100px; max-width: 100px; }

    /* Cards */
    .card-title, .card-title-ref { font-size: 0.7rem; }
    .card-sub { font-size: 0.6rem; }
    .card-meta-ref { display: none; }
    .card-ribbon { font-size: 0.5rem; }

    /* Detail */
    .detail-title { font-size: 1.1rem; }
    .detail-meta-line { font-size: 0.65rem; }
    .btn-play { padding: 0.35rem 0.7rem; font-size: 0.75rem; }
    .btn-list, .btn-like, .btn-share, .btn-download { padding: 0.35rem 0.5rem; font-size: 0.7rem; }

    /* Profile */
    .profile-avatar { width: 50px; height: 50px; font-size: 1.25rem; }

    /* Auth */
    .auth-card { padding: 1rem; margin: 0.25rem; }

    /* Subscriptions */
    .plan-card { padding: 1rem; }
    .plan-price { font-size: 1.5rem; }

    /* Search */
    .search-hero-title { font-size: 1.1rem; }
    .search-bar-input { font-size: 0.8rem; }
    .search-bar-btn { width: 34px; height: 34px; }

    /* Pagination */
    .pagination-bar button { min-width: 26px; height: 26px; font-size: 0.7rem; }
}

/* ─── LANDSCAPE ORIENTATION FIXES ─── */
@media (max-width: 991px) and (orientation: landscape) {
    .hero-banner { height: 60vh; }
    .detail-hero { height: 50vh; min-height: 300px; }
    .player-container { aspect-ratio: 16/9; max-height: 80vh; }
}

/* ─── SMOOTH SCROLLING FOR TABS ─── */
.profile-tabs, .season-tabs {
    scrollbar-width: thin;
    scrollbar-color: var(--user-border) transparent;
}
.profile-tabs::-webkit-scrollbar, .season-tabs::-webkit-scrollbar {
    height: 3px;
}
.profile-tabs::-webkit-scrollbar-track, .season-tabs::-webkit-scrollbar-track {
    background: transparent;
}
.profile-tabs::-webkit-scrollbar-thumb, .season-tabs::-webkit-scrollbar-thumb {
    background: var(--user-border);
    border-radius: 50px;
}

/* ─── TOUCH-FRIENDLY TAP TARGETS ─── */
@media (max-width: 768px) {
    .content-card, .content-card-ref { -webkit-tap-highlight-color: transparent; }
    .btn-play, .btn-list, .btn-share, .btn-download,
    .profile-tab, .season-tab, .pagination-bar button,
    .search-tag, .card-add-btn, .download-actions .btn {
        min-height: 36px;
        -webkit-tap-highlight-color: transparent;
    }
}

/* ─── ADDITIONAL MOBILE FIXES ─── */
@media (max-width: 768px) {
    /* Player controls — tighter spacing, hide text labels */
    .player-top-bar { padding: 0.5rem 0.75rem; }
    .player-bottom-bar { padding: 0.5rem 0.75rem; gap: 0.35rem; }
    .player-controls { gap: 0.5rem; flex-wrap: nowrap; }
    .player-btn { font-size: 1rem; }
    .player-time { font-size: 0.75rem; }
    .player-settings-menu { min-width: 140px; }

    /* Player info section */
    .player-page .page-container { padding: 0.75rem; }
    .player-page h2 { font-size: 1.25rem !important; }
    .player-page .details-meta { gap: 0.75rem !important; font-size: 0.8rem !important; }

    /* Notifications header — stack vertically */
    .page-container > .d-flex.justify-content-between {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start !important;
    }

    /* Profile tables — horizontal scroll */
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table { min-width: 500px; font-size: 0.8rem; }
    .table th, .table td { padding: 0.5rem 0.4rem; white-space: nowrap; }

    /* Contact/about page */
    .page-container[style*="max-width:600px"], .page-container[style*="max-width:800px"] { max-width: 100% !important; padding: 0.75rem; }

    /* Checkout modal body */
    .modal-body { padding: 0.75rem; }
    #checkoutBody .row { flex-direction: column; gap: 0.5rem; }
    #checkoutBody .col-6 { width: 100%; }

    /* Watch history page */
    .episode-item { flex-direction: column; gap: 0.5rem; }
    .episode-thumb { width: 100% !important; min-width: 100% !important; }
}

@media (max-width: 576px) {
    /* Player controls — hide rewind/forward text on tiny screens */
    .player-btn#rewindBtn, .player-btn#forwardBtn { font-size: 0; }
    .player-btn#rewindBtn::before { content: '\F4A5'; font-size: 1rem; font-family: 'bootstrap-icons'; }
    .player-btn#forwardBtn::before { content: '\F4A0'; font-size: 1rem; font-family: 'bootstrap-icons'; }
    .player-btn#rewindBtn i, .player-btn#forwardBtn i { display: none; }

    /* Profile table even tighter */
    .table { min-width: 400px; font-size: 0.75rem; }

    /* Hero actions single button full width */
    .hero-actions { width: 100%; }
    .hero-actions .btn { flex: 1; justify-content: center; }
}

@media (max-width: 380px) {
    /* Player — hide PiP and speed on tiny screens */
    .player-btn#pipBtn, .player-btn#speedBtn { display: none; }
    .player-controls { gap: 0.35rem; }
    .player-time { font-size: 0.7rem; }
}

/* ============================================
   INFO PAGES (About / Privacy / Contact)
   ============================================ */
.info-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* ─── Large Logo at Top ─── */
.info-logo-wrap {
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.info-logo {
    max-height: 120px;
    width: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 20px rgba(255,122,0,0.5));
    transition: max-height 0.3s ease;
}
.info-logo-fallback {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    text-align: center;
    display: block;
}
.info-logo-fallback i {
    color: var(--user-primary);
    margin-right: 0.5rem;
    font-size: 3rem;
}

/* ─── Container ─── */
.info-container {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--user-border);
    border-radius: calc(var(--user-radius) * 1.5);
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ─── Page Title ─── */
.info-page-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    background: var(--brand-gradient-short);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.info-effective-date {
    color: var(--user-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-style: italic;
}

/* ─── Sections ─── */
.info-section {
    margin-bottom: 2.5rem;
    line-height: 1.8;
    color: var(--user-text);
}
.info-section p {
    margin-bottom: 1rem;
    color: #d0d5dd;
    font-size: 0.95rem;
}
.info-section strong {
    color: #fff;
}

/* ─── Section Titles ─── */
.info-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--user-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255,122,0,0.2);
}
.info-subtitle {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin: 1.5rem 0 0.75rem;
}

/* ─── Lists ─── */
.info-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}
.info-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.5rem;
    color: #d0d5dd;
    font-size: 0.93rem;
    line-height: 1.6;
}
.info-list li::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--user-primary);
}

/* ─── Card Row (Mission/Vision/Contact cards) ─── */
.info-card-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.info-card {
    padding: 2rem;
    border-radius: var(--user-radius);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255,122,0,0.15);
}
.info-card-icon {
    font-size: 2.5rem;
    color: var(--user-primary);
    margin-bottom: 1rem;
}
.info-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}
.info-card p {
    color: #d0d5dd;
    font-size: 0.93rem;
    line-height: 1.7;
    margin: 0;
}
.info-card a {
    color: var(--user-primary);
    text-decoration: none;
    transition: color 0.2s;
}
.info-card a:hover {
    color: var(--user-hover);
    text-decoration: underline;
}

/* ─── Values Grid (About page) ─── */
.info-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}
.info-value-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--user-border);
    border-radius: var(--user-radius);
    color: #d0d5dd;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.info-value-item:hover {
    background: rgba(255,122,0,0.08);
    border-color: rgba(255,122,0,0.3);
    color: #fff;
}
.info-value-item i {
    color: var(--user-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ─── Highlight Text ─── */
.info-highlight {
    font-size: 1.05rem !important;
    font-weight: 600;
    color: var(--user-primary) !important;
    font-style: italic;
    margin-top: 1.5rem !important;
}

/* ─── Contact Block (Privacy page) ─── */
.info-contact-block {
    padding: 1.5rem 2rem;
    border-radius: var(--user-radius);
    margin-top: 1rem;
}
.info-contact-block p {
    margin-bottom: 1rem;
    color: #d0d5dd;
}
.info-contact-block p:last-child {
    margin-bottom: 0;
}
.info-contact-block a {
    color: var(--user-primary);
    text-decoration: none;
}
.info-contact-block a:hover {
    text-decoration: underline;
}
.info-contact-block i {
    color: var(--user-primary);
    margin-right: 0.5rem;
}

/* ─── 3-Dot Header Dropdown ─── */
.header-info-dropdown {
    position: relative;
}
.header-info-dropdown .header-icon-btn {
    cursor: pointer;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .info-page { padding: 1rem 0.75rem 3rem; }
    .info-logo { max-height: 80px; }
    .info-logo-fallback { font-size: 1.75rem; }
    .info-logo-fallback i { font-size: 2rem; }
    .info-container { padding: 1.5rem 1.25rem; }
    .info-page-title { font-size: 1.5rem; }
    .info-section-title { font-size: 1.15rem; }
    .info-card-row { grid-template-columns: 1fr; gap: 1rem; }
    .info-card { padding: 1.5rem 1.25rem; }
    .info-values-grid { grid-template-columns: 1fr; }
    .info-contact-block { padding: 1.25rem; }
}

@media (max-width: 380px) {
    .info-page { padding: 0.75rem 0.5rem 2.5rem; }
    .info-logo { max-height: 60px; }
    .info-container { padding: 1.25rem 1rem; }
    .info-page-title { font-size: 1.25rem; }
    .info-section p { font-size: 0.88rem; }
    .info-list li { font-size: 0.85rem; }
}

/* ============================================
   LANGUAGE SELECTOR MODAL
   ============================================ */
.lang-selector-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 11, 24, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lang-selector-overlay.lang-selector-visible {
    opacity: 1;
}
.lang-selector-modal {
    background: linear-gradient(135deg, #0B1424 0%, #08111F 100%);
    border: 1px solid var(--user-border);
    border-radius: 20px;
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,122,0,0.1);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
}
.lang-selector-visible .lang-selector-modal {
    transform: scale(1) translateY(0);
}
.lang-selector-header {
    text-align: center;
    margin-bottom: 2rem;
}
.lang-selector-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--brand-gradient-short);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fff;
    box-shadow: 0 8px 24px rgba(255,122,0,0.3);
}
.lang-selector-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    background: var(--brand-gradient-short);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lang-selector-subtitle {
    color: var(--user-muted);
    font-size: 0.95rem;
}
.lang-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.lang-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.04);
    border: 2px solid var(--user-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}
.lang-card:hover {
    background: rgba(255,122,0,0.08);
    border-color: rgba(255,122,0,0.3);
    transform: translateY(-2px);
}
.lang-card-selected {
    background: rgba(255,122,0,0.12) !important;
    border-color: var(--user-primary) !important;
    box-shadow: 0 4px 16px rgba(255,122,0,0.2);
}
.lang-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.lang-card-icon-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--brand-gradient-short);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.lang-card-info {
    flex: 1;
    min-width: 0;
}
.lang-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}
.lang-card-native {
    font-size: 0.85rem;
    color: var(--user-muted);
    margin-top: 2px;
}
.lang-card-check {
    color: var(--user-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}
.lang-selector-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--user-border);
}
.lang-skip-btn {
    color: var(--user-muted);
    border: 1px solid var(--user-border);
    background: transparent;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}
.lang-skip-btn:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}
.lang-continue-btn {
    background: var(--brand-gradient-short);
    border: none;
    color: #fff;
    padding: 0.6rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}
.lang-continue-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.lang-continue-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255,122,0,0.3);
}

/* ─── Empty State ─── */
.lang-switcher-btn {
    background: rgba(255,255,255,0.08);
    border: none;
    color: var(--user-text);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.lang-switcher-btn:hover {
    background: rgba(255,255,255,0.15);
}
.lang-switcher-btn i {
    font-size: 1.1rem;
    color: var(--user-text);
}
.lang-switcher-label {
    display: none;
}

/* ─── Empty State ─── */
.empty-state-content {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--user-muted);
}
.empty-state-content i {
    font-size: 3rem;
    color: rgba(255,255,255,0.1);
    margin-bottom: 1rem;
    display: block;
}
.empty-state-content p {
    font-size: 1rem;
    margin: 0;
}

@media (max-width: 768px) {
    .lang-selector-modal { padding: 1.5rem 1.25rem; }
    .lang-selector-title { font-size: 1.35rem; }
    .lang-selector-grid { grid-template-columns: 1fr; }
    .lang-selector-footer { flex-direction: column-reverse; }
    .lang-selector-footer button { width: 100%; }
    .lang-switcher-btn { width: 36px; height: 36px; font-size: 1.1rem; }
}

