/* ============================================================
       CHOLOCHITRO ZONE v10 — MODERN CINEMA REDESIGN + SOURCE-FIRST
    ============================================================ */
    :root {
        --bg-base: #060608;
        --bg-surface: #0e0e13;
        --bg-surface-2: #15151d;
        --bg-surface-3: #1e1e29;
        --bg-glass: rgba(12, 12, 18, 0.84);
        --bg-card: #12121b;

        --brand-primary: #E50914;
        --brand-primary-hover: #ff1420;
        --brand-primary-dim: rgba(229, 9, 20, 0.14);
        --brand-accent: #00D4FF;
        --brand-accent-dim: rgba(0, 212, 255, 0.12);
        --brand-gold: #FFD700;
        --brand-green: #46d369;
        --brand-green-dim: rgba(70, 211, 105, 0.14);
        --brand-glow: 0 0 28px rgba(229, 9, 20, 0.38);

        --text-primary: #FFFFFF;
        --text-secondary: #b5b5c7;
        --text-tertiary: #707087;
        --text-muted: #4a4a5c;

        --border-subtle: rgba(255, 255, 255, 0.06);
        --border-light: rgba(255, 255, 255, 0.10);
        --border-medium: rgba(255, 255, 255, 0.18);
        --border-focus: rgba(229, 9, 20, 0.65);

        --radius-xs: 5px;
        --radius-sm: 8px;
        --radius-md: 12px;
        --radius-lg: 16px;
        --radius-xl: 24px;
        --radius-pill: 999px;

        --transition-snap: 0.15s ease;
        --transition-fast: 0.22s ease;
        --transition-normal: 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        --transition-spring: 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275);

        --shadow-sm: 0 4px 12px rgba(0,0,0,0.45);
        --shadow-md: 0 10px 28px rgba(0,0,0,0.65);
        --shadow-lg: 0 20px 54px rgba(0,0,0,0.85);

        --navbar-h: 68px;
        --bottom-nav-h: 60px;
    }

    *, *::before, *::after {
        margin: 0; padding: 0; box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
    }
    html { scroll-behavior: smooth; }
    body {
        background: radial-gradient(circle at 15% 0%, rgba(229,9,20,0.06) 0%, transparent 42%),
                    radial-gradient(circle at 85% 10%, rgba(0,212,255,0.05) 0%, transparent 40%),
                    var(--bg-base);
        color: var(--text-primary);
        font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        -webkit-font-smoothing: antialiased;
        min-height: 100vh; overflow-x: hidden; line-height: 1.5;
    }
    a { text-decoration: none; color: inherit; }
    ul { list-style: none; }
    button, input, select { font-family: inherit; outline: none; }
    img { display: block; max-width: 100%; height: auto; }

    ::-webkit-scrollbar { width: 6px; height: 6px; }
    ::-webkit-scrollbar-track { background: var(--bg-base); }
    ::-webkit-scrollbar-thumb { background: var(--bg-surface-3); border-radius: var(--radius-pill); }
    ::-webkit-scrollbar-thumb:hover { background: var(--brand-primary); }

    /* ============================================================
       LOADING BAR & TOAST
    ============================================================ */
    #progress-bar-outer {
        position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 99999;
        pointer-events: none; opacity: 0; transition: opacity 0.25s;
    }
    #progress-bar-inner {
        height: 100%; width: 0;
        background: linear-gradient(90deg, var(--brand-primary), #ff6b6b, var(--brand-accent));
        box-shadow: 0 0 12px var(--brand-primary);
        transition: width 0.25s ease-out;
    }

    .toast-wrap {
        position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%) translateY(20px);
        z-index: 99998; opacity: 0; transition: var(--transition-normal); pointer-events: none;
    }
    .toast-wrap.show { transform: translateX(-50%) translateY(0); opacity: 1; }
    .toast-inner {
        background: var(--bg-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--border-light); color: white;
        padding: 10px 22px 10px 16px; border-radius: var(--radius-pill);
        font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 9px;
        box-shadow: var(--shadow-md); white-space: nowrap;
    }
    .toast-inner.success .toast-icon { color: var(--brand-green); }
    .toast-inner.error .toast-icon { color: var(--brand-primary); }
    .toast-inner.info .toast-icon { color: var(--brand-accent); }

    .pf-ad-section { width: 100%; text-align: center; overflow: hidden; padding: 8px 4%; }
    .pf-ad-section:empty { display: none; padding: 0; }
    .pf-header-section, #main-widget-area { display: none !important; }

    /* ============================================================
       NAVBAR (MODERN FLOATING GLASS)
    ============================================================ */
    .navbar {
        position: fixed; top: 0; left: 0; width: 100%; height: var(--navbar-h); z-index: 5000;
        display: flex; justify-content: space-between; align-items: center; padding: 0 4%;
        background: linear-gradient(to bottom, rgba(6,6,8,0.94) 0%, rgba(6,6,8,0.4) 75%, transparent 100%);
        transition: var(--transition-normal);
    }
    .navbar.scrolled {
        background: var(--bg-glass); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
        border-bottom: 1px solid var(--border-subtle); box-shadow: 0 6px 32px rgba(0,0,0,0.65);
    }
    .navbar.nav-hidden { transform: translateY(-100%); }

    .nav-left { display: flex; align-items: center; gap: 28px; }
    .logo {
        display: flex; align-items: center; gap: 10px; cursor: pointer;
        font-size: 24px; font-weight: 900; letter-spacing: -1.2px; color: #fff;
        transition: var(--transition-fast); user-select: none;
    }
    .logo span.brand-red { color: var(--brand-primary); }
    .logo:hover { transform: scale(1.03); }
    .logo-icon {
        width: 34px; height: 34px; background: linear-gradient(135deg, var(--brand-primary), #b80610);
        border-radius: 9px; display: flex; align-items: center; justify-content: center;
        font-size: 15px; color: white; box-shadow: var(--brand-glow); flex-shrink: 0;
    }

    .nav-links {
        display: flex; gap: 4px; background: rgba(255,255,255,0.04);
        padding: 4px; border-radius: var(--radius-pill); border: 1px solid var(--border-subtle);
    }
    .nav-btn {
        background: transparent; border: none; color: var(--text-secondary);
        font-size: 13.5px; font-weight: 600; cursor: pointer; padding: 7px 16px;
        border-radius: var(--radius-pill); transition: var(--transition-fast);
        display: inline-flex; align-items: center; gap: 6px;
    }
    .nav-btn:hover { color: var(--text-primary); }
    .nav-btn.active { background: var(--brand-primary); color: #fff; box-shadow: 0 2px 12px rgba(229,9,20,0.4); }

    .nav-right { display: flex; align-items: center; gap: 10px; }

    /* Permanent Playable-Only Status Badge in Navbar */
    .source-mode-pill {
        display: inline-flex; align-items: center; gap: 7px;
        background: var(--brand-green-dim); border: 1px solid rgba(70, 211, 105, 0.38);
        color: var(--brand-green); padding: 7px 13px; border-radius: var(--radius-pill);
        font-size: 12px; font-weight: 800; white-space: nowrap; user-select: none;
    }
    .source-mode-pill .dot {
        width: 7px; height: 7px; border-radius: 50%; background: var(--brand-green);
        box-shadow: 0 0 8px var(--brand-green);
    }

    .search-wrap { position: relative; }
    .search-bar {
        display: flex; align-items: center; gap: 8px;
        background: rgba(255,255,255,0.06); border: 1px solid var(--border-light);
        border-radius: var(--radius-pill); padding: 8px 16px;
        width: 260px; transition: var(--transition-normal); backdrop-filter: blur(10px);
    }
    .search-bar:focus-within {
        background: rgba(255,255,255,0.1); border-color: var(--border-focus);
        width: 340px; box-shadow: 0 0 0 3px rgba(229,9,20,0.12);
    }
    .search-bar input { background: transparent; border: none; color: var(--text-primary); font-size: 13.5px; flex: 1; }
    .search-bar input::placeholder { color: var(--text-tertiary); }
    .search-icon-btn, .voice-btn { color: var(--text-tertiary); cursor: pointer; transition: var(--transition-fast); }
    .search-icon-btn:hover, .voice-btn:hover { color: var(--text-primary); }
    .voice-btn.recording { color: var(--brand-primary); }

    .search-dropdown {
        position: absolute; top: calc(100% + 10px); right: 0; width: 100%; min-width: 380px;
        background: var(--bg-surface-2); border: 1px solid var(--border-light);
        border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
        z-index: 5001; display: none; flex-direction: column; overflow: hidden;
    }
    .search-dropdown.active { display: flex; }
    .sdrop-label { padding: 10px 16px 6px; font-size: 10.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-tertiary); }
    .sdrop-item { display: flex; align-items: center; gap: 12px; padding: 9px 16px; cursor: pointer; border-top: 1px solid var(--border-subtle); }
    .sdrop-item:hover { background: rgba(255,255,255,0.05); }
    .sdrop-img { width: 38px; height: 54px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
    .sdrop-info { flex: 1; min-width: 0; }
    .sdrop-title { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .sdrop-meta { font-size: 11.5px; color: var(--text-secondary); margin-top: 2px; display: flex; gap: 8px; align-items: center; }
    .sdrop-type { background: var(--brand-primary-dim); color: var(--brand-primary); padding: 1px 7px; border-radius: 4px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
    .sdrop-recent { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px; }
    .sdrop-pill { background: var(--bg-surface-3); border: 1px solid var(--border-light); color: var(--text-secondary); padding: 4px 12px; border-radius: var(--radius-pill); font-size: 12px; cursor: pointer; }
    .sdrop-pill:hover { color: #fff; border-color: var(--border-medium); }

    .notif-wrap { position: relative; }
    .notif-btn {
        width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.06);
        border: 1px solid var(--border-light); color: var(--text-secondary);
        display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative;
    }
    .notif-btn:hover { color: #fff; background: rgba(255,255,255,0.12); }
    .notif-badge { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; background: var(--brand-primary); border-radius: 50%; }
    .notif-dropdown {
        position: absolute; top: calc(100% + 10px); right: 0; width: 320px; max-width: 90vw;
        background: var(--bg-surface-2); border: 1px solid var(--border-light);
        border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 5002; display: none; flex-direction: column; overflow: hidden;
    }
    .notif-dropdown.active { display: flex; }
    .notif-head { padding: 11px 16px; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--text-secondary); border-bottom: 1px solid var(--border-subtle); display: flex; justify-content: space-between; }
    .notif-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer; border-bottom: 1px solid var(--border-subtle); }
    .notif-item:hover { background: rgba(255,255,255,0.04); }
    .notif-thumb { width: 36px; height: 52px; border-radius: 5px; object-fit: cover; flex-shrink: 0; }
    .notif-title { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .notif-sub { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }

    .mobile-search-toggle { display: none; background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; padding: 6px; }

    /* ============================================================
       HERO STAGE (SPLIT SPOTLIGHT + QUICK SOURCE STRIP)
    ============================================================ */
    .hero-section {
        padding: calc(var(--navbar-h) + 12px) 4% 26px;
    }
    .hero-stage {
        position: relative; width: 100%; height: 64vh; min-height: 460px; max-height: 680px;
        border-radius: var(--radius-xl); overflow: hidden;
        border: 1px solid var(--border-light);
        box-shadow: 0 24px 64px rgba(0,0,0,0.88);
    }
    .hero-track { display: flex; height: 100%; transition: transform 0.8s cubic-bezier(0.25,1,0.5,1); }
    .hero-slide {
        min-width: 100%; height: 100%; position: relative;
        background-size: cover; background-position: center 18%; background-repeat: no-repeat;
    }
    .hero-slide::before {
        content: ''; position: absolute; inset: 0;
        background: linear-gradient(95deg, rgba(6,6,8,0.97) 0%, rgba(6,6,8,0.62) 48%, rgba(6,6,8,0.12) 100%);
    }
    .hero-slide::after {
        content: ''; position: absolute; inset: 0;
        background: linear-gradient(0deg, rgba(6,6,8,1) 0%, rgba(6,6,8,0.2) 38%, transparent 75%);
    }
    .hero-content { position: absolute; bottom: 11%; left: 4.5%; max-width: 660px; z-index: 2; }
    .hero-badges { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
    .badge-rank { background: var(--brand-primary); color: #fff; padding: 3px 10px; border-radius: var(--radius-xs); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; }
    .badge-playable { background: var(--brand-green-dim); color: var(--brand-green); border: 1px solid rgba(70,211,105,0.4); padding: 3px 10px; border-radius: var(--radius-xs); font-size: 11px; font-weight: 800; letter-spacing: 0.6px; }
    .badge-type { background: rgba(255,255,255,0.12); color: #e2e2ec; padding: 3px 10px; border-radius: var(--radius-xs); font-size: 11px; font-weight: 700; text-transform: uppercase; }
    .hero-title {
        font-size: clamp(2rem, 4.4vw, 4rem); font-weight: 900; line-height: 1.05;
        margin-bottom: 12px; color: #fff; letter-spacing: -1px; text-shadow: 0 4px 24px rgba(0,0,0,0.75);
    }
    .hero-meta-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; font-size: 14px; color: #d5d5e2; font-weight: 600; flex-wrap: wrap; }
    .hero-rating { display: flex; align-items: center; gap: 5px; color: var(--brand-gold); }
    .hero-desc {
        font-size: 15px; color: #b8b8ca; line-height: 1.6; margin-bottom: 24px;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 560px;
    }
    .hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
    .btn-hero-play {
        background: var(--brand-primary); color: #fff; border: none;
        padding: 13px 28px; border-radius: var(--radius-pill);
        font-size: 15px; font-weight: 800; display: inline-flex; align-items: center; gap: 9px;
        cursor: pointer; transition: var(--transition-fast); box-shadow: var(--brand-glow);
    }
    .btn-hero-play:hover { background: var(--brand-primary-hover); transform: scale(1.04); }
    .btn-hero-info {
        background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.16);
        padding: 13px 24px; border-radius: var(--radius-pill);
        font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 9px;
        cursor: pointer; transition: var(--transition-fast); backdrop-filter: blur(10px);
    }
    .btn-hero-info:hover { background: rgba(255,255,255,0.18); }
    .btn-hero-watchlist {
        width: 46px; height: 46px; border-radius: 50%;
        background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.28);
        color: #fff; font-size: 16px; display: flex; align-items: center; justify-content: center; cursor: pointer;
    }
    .btn-hero-watchlist.in-list, .btn-hero-watchlist:hover { background: var(--brand-primary); border-color: var(--brand-primary); }

    .hero-controls { position: absolute; bottom: 22px; right: 4%; z-index: 2; display: flex; align-items: center; gap: 8px; }
    .hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.28); cursor: pointer; transition: var(--transition-normal); }
    .hero-dot.active { background: #fff; width: 24px; border-radius: var(--radius-pill); }

    /* ============================================================
       ACTIVE SOURCES & OTT CHIPS BAR
    ============================================================ */
    .discovery-bar { padding: 0 4% 24px; display: flex; flex-direction: column; gap: 14px; }
    .sources-strip {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        background: var(--bg-surface-2); border: 1px solid var(--border-subtle);
        border-radius: var(--radius-lg); padding: 10px 16px; flex-wrap: wrap;
    }
    .sources-strip-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
    .sources-label { font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--brand-accent); display: flex; align-items: center; gap: 6px; }
    .source-badge-pill {
        background: rgba(255,255,255,0.05); border: 1px solid var(--border-light);
        color: var(--text-secondary); padding: 3px 10px; border-radius: var(--radius-pill);
        font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px;
    }
    .source-badge-pill i { color: var(--brand-green); font-size: 9px; }

    .ott-scroll { display: flex; gap: 9px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
    .ott-scroll::-webkit-scrollbar { display: none; }
    .ott-chip {
        flex-shrink: 0; display: flex; align-items: center; justify-content: center;
        height: 38px; min-width: 76px; padding: 0 16px;
        background: var(--bg-surface-2); border: 1px solid var(--border-light);
        border-radius: var(--radius-pill); cursor: pointer; transition: var(--transition-fast);
    }
    .ott-chip:hover { border-color: var(--border-medium); transform: translateY(-1px); }
    .ott-chip.active { border-color: var(--brand-primary); background: var(--brand-primary-dim); }
    .ott-logo { height: 18px; max-width: 76px; object-fit: contain; }
    .ott-logo.invert { filter: invert(1) brightness(0.92); }
    .ott-text { font-size: 12.5px; font-weight: 800; }

    /* ============================================================
       CATEGORY TABS & CONTENT ROWS
    ============================================================ */
    .content-rows { padding: 0 4% 20px; }
    .row-section { margin-bottom: 40px; }
    .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
    .section-title-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
    .section-title { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 9px; letter-spacing: -0.3px; }
    .section-title i { color: var(--brand-primary); font-size: 16px; }
    .section-source-tag {
        background: var(--brand-green-dim); color: var(--brand-green);
        border: 1px solid rgba(70,211,105,0.3); font-size: 10.5px; font-weight: 800;
        padding: 2px 9px; border-radius: var(--radius-pill); letter-spacing: 0.4px;
    }
    .see-all-btn {
        font-size: 12.5px; font-weight: 700; color: var(--brand-accent);
        cursor: pointer; display: inline-flex; align-items: center; gap: 5px; border: none; background: none;
    }
    .see-all-btn:hover { color: #fff; }

    .hz-row { display: flex; gap: 13px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
    .hz-row::-webkit-scrollbar { display: none; }

    .row-card {
        flex-shrink: 0; width: 162px; cursor: pointer;
        transition: var(--transition-normal); border-radius: var(--radius-md);
        overflow: hidden; position: relative; background: var(--bg-card);
        border: 1px solid var(--border-subtle);
    }
    .row-card:hover { transform: translateY(-6px) scale(1.04); z-index: 5; border-color: var(--border-medium); box-shadow: var(--shadow-md); }
    .row-card-img-wrap { position: relative; aspect-ratio: 2/3; overflow: hidden; }
    .row-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
    .row-card:hover img { transform: scale(1.05); }
    .row-card-overlay {
        position: absolute; inset: 0;
        background: linear-gradient(0deg, rgba(6,6,8,0.95) 0%, rgba(6,6,8,0.2) 52%, transparent 100%);
        opacity: 0; transition: var(--transition-fast);
        display: flex; flex-direction: column; justify-content: flex-end; padding: 10px;
    }
    .row-card:hover .row-card-overlay { opacity: 1; }
    .row-card-play {
        width: 36px; height: 36px; background: var(--brand-primary); border-radius: 50%;
        display: flex; align-items: center; justify-content: center; font-size: 13px; color: #fff;
        margin-bottom: 7px; box-shadow: var(--brand-glow);
    }
    .row-card-title { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .row-card-meta { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

    .rank-badge {
        position: absolute; top: 8px; left: 8px; z-index: 3;
        background: var(--brand-primary); color: #fff; border-radius: 5px;
        font-size: 10.5px; font-weight: 900; padding: 2px 7px;
    }
    .ready-badge {
        position: absolute; top: 8px; right: 8px; z-index: 3;
        background: rgba(6,6,8,0.82); color: var(--brand-green);
        border: 1px solid rgba(70,211,105,0.45); border-radius: 5px;
        font-size: 9.5px; font-weight: 800; padding: 2px 6px; letter-spacing: 0.3px;
    }

    .row-skel {
        flex-shrink: 0; width: 162px; aspect-ratio: 2/3; border-radius: var(--radius-md);
        background: var(--bg-surface-2); position: relative; overflow: hidden;
    }
    .row-skel::after {
        content: ''; position: absolute; inset: 0;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
        animation: shimmer 1.6s infinite;
    }
    @keyframes shimmer { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }

    /* ============================================================
       BROWSE VIEW, FILTERS & MEDIA GRID
    ============================================================ */
    #browse-view { padding-top: calc(var(--navbar-h) + 14px); }
    .mood-bar { padding: 0 4% 16px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
    .mood-bar::-webkit-scrollbar { display: none; }
    .mood-chip {
        flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
        background: var(--bg-surface-2); border: 1px solid var(--border-light);
        color: var(--text-secondary); padding: 6px 14px; border-radius: var(--radius-pill);
        font-size: 12.5px; font-weight: 600; cursor: pointer; transition: var(--transition-fast);
    }
    .mood-chip:hover { color: #fff; border-color: var(--border-medium); }
    .mood-chip.active { background: var(--brand-primary-dim); border-color: rgba(229,9,20,0.45); color: var(--brand-primary); }


    .controls-bar {
        display: flex; justify-content: space-between; align-items: center;
        margin-bottom: 20px; flex-wrap: wrap; gap: 14px; padding: 0 4%;
    }
    .controls-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
    .view-heading { font-size: 24px; font-weight: 900; display: flex; align-items: center; gap: 9px; }
    .view-heading i { color: var(--brand-primary); }

    .lang-tabs { display: flex; background: var(--bg-surface-2); border-radius: var(--radius-pill); padding: 4px; gap: 2px; border: 1px solid var(--border-subtle); }
    .lang-btn { background: transparent; border: none; color: var(--text-secondary); padding: 6px 14px; border-radius: var(--radius-pill); cursor: pointer; font-size: 12.5px; font-weight: 600; }
    .lang-btn.active { background: var(--bg-surface-3); color: #fff; }

    .controls-right { display: flex; align-items: center; gap: 8px; }
    .ctrl-btn {
        width: 40px; height: 40px; border-radius: var(--radius-md);
        background: var(--bg-surface-2); border: 1px solid var(--border-subtle);
        color: var(--text-secondary); font-size: 14px; display: flex; align-items: center; justify-content: center; cursor: pointer;
    }
    .ctrl-btn.active, .ctrl-btn:hover { color: #fff; border-color: var(--border-light); }
    .ctrl-btn.active { background: var(--brand-primary-dim); color: var(--brand-primary); border-color: rgba(229,9,20,0.35); }

    .filter-panel {
        display: none; padding: 24px 4%; background: var(--bg-surface-2);
        border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); margin-bottom: 24px;
    }
    .filter-panel.open { display: block; }
    .filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
    .filter-group h4 { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.4px; color: var(--text-tertiary); margin-bottom: 12px; }
    .genre-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
    .genre-tag { background: var(--bg-surface-3); border: 1px solid var(--border-light); color: var(--text-secondary); padding: 5px 13px; border-radius: var(--radius-pill); font-size: 12.5px; cursor: pointer; }
    .genre-tag.active { background: var(--brand-primary-dim); border-color: rgba(229,9,20,0.4); color: var(--brand-primary); }
    .range-slider { width: 100%; accent-color: var(--brand-primary); }
    .range-display { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12.5px; color: var(--text-secondary); }
    .filter-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
    .btn-ghost { background: transparent; border: 1px solid var(--border-medium); color: var(--text-secondary); padding: 8px 20px; border-radius: var(--radius-pill); cursor: pointer; font-size: 13px; font-weight: 600; }
    .btn-primary { background: var(--brand-primary); color: #fff; border: none; padding: 8px 22px; border-radius: var(--radius-pill); cursor: pointer; font-size: 13px; font-weight: 700; }

    .media-section { padding: 0 4%; }
    .media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 16px; padding-bottom: 36px; }
    .media-grid.list-view { grid-template-columns: 1fr; gap: 12px; }
    .media-card { position: relative; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; transition: var(--transition-normal); display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border-subtle); }
    .media-grid:not(.list-view) .media-card:hover { transform: translateY(-8px) scale(1.03); z-index: 10; box-shadow: var(--shadow-lg); border-color: var(--border-medium); }
    .card-img-wrap { position: relative; aspect-ratio: 2/3; overflow: hidden; width: 100%; }
    .card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, filter 0.3s ease; }
    .media-card:hover .card-img { transform: scale(1.05); filter: brightness(0.48); }
    .card-rank { position: absolute; top: 9px; left: 9px; z-index: 4; background: var(--brand-primary); color: #fff; border-radius: 4px; font-size: 10px; font-weight: 900; padding: 2px 7px; }
    .card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,6,8,0.96) 0%, rgba(6,6,8,0.2) 48%, transparent 100%); opacity: 0; transition: opacity 0.25s ease; display: flex; flex-direction: column; justify-content: space-between; padding: 11px; }
    .media-card:hover .card-overlay { opacity: 1; }
    .card-top-row { display: flex; justify-content: space-between; align-items: flex-start; }
    .card-wl-btn { width: 29px; height: 29px; border-radius: 50%; background: rgba(0,0,0,0.72); border: 1px solid rgba(255,255,255,0.16); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 11px; }
    .card-wl-btn.in-list { color: var(--brand-primary); }
    .card-star { background: rgba(0,0,0,0.72); color: var(--brand-gold); border-radius: 5px; font-size: 11px; font-weight: 700; padding: 2px 7px; }
    .card-center { display: flex; align-items: center; justify-content: center; flex: 1; }
    .card-play-btn { width: 48px; height: 48px; background: var(--brand-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; box-shadow: var(--brand-glow); }
    .card-title { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .card-meta { font-size: 11px; color: var(--text-secondary); }

    .media-grid.list-view .media-card { flex-direction: row; height: 175px; }
    .media-grid.list-view .card-img-wrap { width: 118px; height: 100%; aspect-ratio: unset; flex-shrink: 0; }
    .media-grid.list-view .card-overlay { display: none; }
    .card-list-info { padding: 18px 22px; flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
    .media-grid:not(.list-view) .card-list-info { display: none; }
    .card-list-title { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
    .card-list-meta { font-size: 13px; color: var(--text-secondary); display: flex; gap: 12px; margin-bottom: 8px; }
    .card-list-desc { font-size: 13.5px; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .card-list-actions { display: flex; gap: 10px; margin-top: 12px; }
    .card-list-btn { padding: 7px 16px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
    .card-list-btn.play { background: var(--brand-primary); color: #fff; }
    .card-list-btn.info { background: rgba(255,255,255,0.08); color: #fff; }

    .card-skel { background: var(--bg-surface-2); border-radius: var(--radius-md); aspect-ratio: 2/3; position: relative; overflow: hidden; }
    .card-skel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent); animation: shimmer 1.6s infinite; }

    .empty-state { grid-column: 1 / -1; text-align: center; padding: 70px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
    .empty-icon-wrap { width: 80px; height: 80px; border-radius: 50%; background: var(--bg-surface-2); display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--text-muted); }
    .load-more-area { text-align: center; padding: 10px 0 50px; }
    .btn-load-more { background: var(--bg-surface-2); color: #fff; border: 1px solid var(--border-light); padding: 12px 34px; border-radius: var(--radius-pill); cursor: pointer; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }

    /* Continue Watching */
    .continue-card { flex-shrink: 0; width: 230px; cursor: pointer; border-radius: var(--radius-md); overflow: hidden; position: relative; background: var(--bg-card); border: 1px solid var(--border-subtle); }
    .continue-img-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; }
    .continue-img { width: 100%; height: 100%; object-fit: cover; }
    .continue-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.48); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition-fast); }
    .continue-card:hover .continue-overlay { opacity: 1; }
    .continue-play { width: 46px; height: 46px; background: var(--brand-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; }
    .continue-progress { height: 3px; background: rgba(255,255,255,0.15); }
    .continue-progress-bar { height: 100%; background: var(--brand-primary); }
    .continue-info { padding: 9px 12px; }
    .continue-title { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .continue-sub { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
    .continue-remove { position: absolute; top: 7px; right: 7px; width: 24px; height: 24px; background: rgba(0,0,0,0.75); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; border: none; cursor: pointer; }

    /* ============================================================
       MODALS & VIEWPORT-FITTED 16:9 PLAYER + 9+ SERVER BAR
    ============================================================ */
    .modal-veil {
        position: fixed; inset: 0; background: rgba(0,0,0,0.9);
        backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        z-index: 8000; display: none; align-items: center; justify-content: center;
        opacity: 0; transition: opacity 0.25s ease;
    }
    .modal-veil.open { display: flex; opacity: 1; }

    .modal-x-btn {
        position: absolute; top: 14px; right: 14px; padding: 7px 14px; border-radius: var(--radius-pill);
        background: rgba(14,14,18,0.88); border: 1px solid rgba(255,255,255,0.18);
        color: #fff; font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px;
        cursor: pointer; z-index: 8010;
    }
    .modal-x-btn:hover { background: var(--brand-primary); border-color: var(--brand-primary); }

    .player-close-btn {
        position: absolute; top: 12px; right: 12px; z-index: 25; padding: 6px 14px; border-radius: var(--radius-pill);
        background: rgba(6,6,8,0.84); border: 1px solid rgba(255,255,255,0.22);
        color: #fff; font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px;
        cursor: pointer;
    }
    .player-close-btn:hover { background: var(--brand-primary); border-color: var(--brand-primary); }
    .player-wrapper:fullscreen .player-close-btn,
    .player-wrapper:-webkit-full-screen .player-close-btn { display: none; }

    .qv-box {
        background: var(--bg-surface); width: 92%; max-width: 840px;
        border-radius: var(--radius-xl); border: 1px solid var(--border-light);
        display: none; overflow: hidden; position: relative; box-shadow: var(--shadow-lg); max-height: 92vh; overflow-y: auto;
    }
    .qv-layout { display: flex; min-height: 380px; }
    .qv-poster-col { width: 300px; flex-shrink: 0; position: relative; background: var(--bg-base); }
    .qv-poster-col img { width: 100%; height: 100%; object-fit: cover; }
    .qv-body { padding: 32px 28px; flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
    .qv-title { font-size: 28px; font-weight: 900; line-height: 1.1; margin-bottom: 10px; }
    .qv-meta-row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
    .qv-year { color: var(--text-secondary); font-size: 13.5px; font-weight: 600; }
    .qv-rating-pill { background: rgba(255,193,7,0.12); color: var(--brand-gold); border: 1px solid rgba(255,193,7,0.25); padding: 3px 10px; border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 800; display: inline-flex; align-items: center; gap: 5px; }
    .qv-quality { background: var(--brand-green-dim); color: var(--brand-green); border: 1px solid rgba(70,211,105,0.35); padding: 3px 10px; border-radius: var(--radius-xs); font-size: 11px; font-weight: 800; }
    .qv-genres { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
    .qv-genre-tag { background: var(--bg-surface-3); border: 1px solid var(--border-light); color: var(--text-secondary); padding: 3px 11px; border-radius: var(--radius-pill); font-size: 11.5px; }
    .qv-desc { font-size: 14.5px; color: #c0c0ce; line-height: 1.6; margin-bottom: 22px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
    .qv-actions { display: flex; gap: 10px; flex-wrap: wrap; }
    .btn-qv-play { background: var(--brand-primary); color: #fff; border: none; padding: 11px 24px; border-radius: var(--radius-pill); font-size: 14.5px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
    .btn-qv-trailer { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid var(--border-medium); padding: 11px 20px; border-radius: var(--radius-pill); font-size: 14.5px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
    .btn-qv-wl { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid var(--border-medium); color: #fff; font-size: 16px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
    .btn-qv-wl.in-list { background: var(--brand-primary); border-color: var(--brand-primary); }

    .fv-box { width: 100%; height: 100%; background: var(--bg-base); display: none; overflow-y: auto; position: relative; }
    .fv-ambient {
        position: fixed; top: 0; left: 0; width: 100%; height: 70vh;
        background-size: cover; background-position: center; opacity: 0.1;
        mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
        z-index: -1; filter: blur(30px); pointer-events: none;
    }

    .fv-content {
        width: 100%;
        max-width: min(1680px, calc((100vh - 64px) * 16 / 9));
        max-width: min(1680px, calc((100dvh - 64px) * 16 / 9));
        margin: 0 auto;
        padding: 8px 1.2% 48px;
    }

    .player-wrapper {
        width: 100%; aspect-ratio: 16/9;
        background: #000; border-radius: var(--radius-lg); overflow: hidden;
        position: relative; margin-bottom: 6px;
        box-shadow: 0 30px 70px rgba(0,0,0,0.92);
        border: 1px solid rgba(255,255,255,0.08);
    }
    .player-iframe { width: 100%; height: 100%; border: none; display: block; }
    .player-shield { position: absolute; inset: 0; z-index: 15; background: transparent; cursor: pointer; display: none; }
    @media (hover: hover) and (pointer: fine) {
        .player-shield.locked { display: block; }
    }

    .player-controls {
        background: var(--bg-surface-2); border: 1px solid var(--border-subtle);
        border-radius: var(--radius-md); padding: 7px 12px; margin-bottom: 24px;
        display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 8px;
    }
    .server-tabs { display: flex; gap: 5px; flex-wrap: nowrap; align-items: center; overflow-x: auto; scrollbar-width: none; }
    .server-tabs::-webkit-scrollbar { display: none; }
    .server-tab {
        background: rgba(255,255,255,0.05); color: var(--text-secondary);
        border: 1px solid transparent; padding: 5px 10px; border-radius: var(--radius-pill);
        cursor: pointer; font-size: 11.5px; font-weight: 700; transition: var(--transition-fast);
        display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; flex-shrink: 0;
    }
    .server-tab:hover { background: rgba(255,255,255,0.1); color: #fff; }
    .server-tab.active { background: var(--brand-primary-dim); border-color: rgba(229,9,20,0.4); color: var(--brand-primary); }
    .server-tab i { color: var(--brand-accent); font-size: 10.5px; }
    .server-tab.active i { color: var(--brand-primary); }

    .player-right-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
    .ep-row { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
    .ep-input-box { display: flex; align-items: center; background: var(--bg-surface-3); border: 1px solid var(--border-light); border-radius: var(--radius-xs); overflow: hidden; }
    .ep-label { padding: 4px 7px; font-size: 11px; font-weight: 800; color: var(--brand-primary); border-right: 1px solid var(--border-light); }
    .ep-input-box input { background: transparent; border: none; color: #fff; width: 32px; font-size: 12px; font-weight: 700; text-align: center; padding: 4px 2px; }
    .btn-ep-play { background: var(--brand-primary); color: #fff; border: none; padding: 5px 11px; border-radius: var(--radius-xs); cursor: pointer; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

    .btn-player-sub {
        background: rgba(255,255,255,0.07); color: #fff; border: 1px solid var(--border-light);
        padding: 5px 10px; border-radius: var(--radius-pill); cursor: pointer;
        font-size: 11.5px; font-weight: 700; transition: var(--transition-fast);
        display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; flex-shrink: 0;
    }
    .btn-player-sub:hover { background: rgba(255,255,255,0.14); }
    .btn-player-sub.next-srv { background: var(--brand-accent-dim); border-color: rgba(0,212,255,0.35); color: var(--brand-accent); }
    .btn-player-sub.next-srv:hover { background: var(--brand-accent); color: #060608; }
    .btn-player-sub.next-ep { background: var(--brand-primary-dim); border-color: rgba(229,9,20,0.35); color: var(--brand-primary); }
    .btn-player-sub.next-ep:hover { background: var(--brand-primary); color: #fff; }

    .ep-browser {
        display: none; background: var(--bg-surface-2); border: 1px solid var(--border-subtle);
        border-radius: var(--radius-lg); padding: 14px 16px; margin-top: -12px; margin-bottom: 28px;
    }
    .ep-browser.active { display: block; }
    .ep-browser-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
    .ep-browser-title { font-size: 13px; font-weight: 800; }
    .ep-season-select { background: var(--bg-surface-3); color: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 5px 10px; font-size: 12px; font-weight: 700; }
    .ep-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
    .ep-strip::-webkit-scrollbar { display: none; }
    .ep-card { flex-shrink: 0; width: 165px; background: var(--bg-surface-3); border: 1px solid var(--border-light); border-radius: var(--radius-md); overflow: hidden; cursor: pointer; }
    .ep-card.active { border-color: var(--brand-primary); box-shadow: 0 0 0 1px var(--brand-primary); }
    .ep-card-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #0a0a0e; }
    .ep-card-body { padding: 8px 10px; }
    .ep-card-num { font-size: 11px; font-weight: 800; color: var(--brand-primary); }
    .ep-card-name { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

    .fv-info-grid { display: grid; grid-template-columns: 260px 1fr; gap: 40px; margin-bottom: 40px; }
    .fv-poster { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
    .fv-title { font-size: 38px; font-weight: 900; line-height: 1.08; margin-bottom: 12px; letter-spacing: -0.8px; }
    .fv-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--text-secondary); font-size: 14.5px; font-weight: 600; margin-bottom: 18px; align-items: center; }
    .fv-rating-pill { background: rgba(255,193,7,0.12); color: var(--brand-gold); border: 1px solid rgba(255,193,7,0.25); padding: 3px 12px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; gap: 5px; font-weight: 800; }
    .fv-desc { font-size: 16px; color: #c4c4d4; line-height: 1.68; margin-bottom: 24px; }

    .fv-tabs { display: flex; gap: 4px; margin-bottom: 22px; border-bottom: 1px solid var(--border-subtle); }
    .fv-tab { background: transparent; border: none; color: var(--text-tertiary); padding: 10px 18px; font-size: 13.5px; font-weight: 700; cursor: pointer; position: relative; }
    .fv-tab.active { color: #fff; }
    .fv-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--brand-primary); }
    .fv-tab-pane { display: none; }
    .fv-tab-pane.active { display: block; }

    .social-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 22px; }
    .social-btn { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.07); border: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--text-secondary); cursor: pointer; }
    .social-btn:hover, .social-btn.wl.in-list { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }

    .hz-people { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
    .hz-people::-webkit-scrollbar { display: none; }
    .person-card { flex-shrink: 0; width: 96px; text-align: center; }
    .person-avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; margin: 0 auto 7px; }
    .person-name { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .person-role { font-size: 11px; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    .hz-related { display: flex; gap: 13px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
    .hz-related::-webkit-scrollbar { display: none; }
    .related-card { flex-shrink: 0; width: 145px; cursor: pointer; border-radius: var(--radius-md); overflow: hidden; }
    .related-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
    .related-title { font-size: 12.5px; font-weight: 600; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* ============================================================
       FOOTER & MOBILE BOTTOM NAV
    ============================================================ */
    .cz-footer {
        margin-top: 44px; background: linear-gradient(180deg, rgba(14,14,18,0.5) 0%, #050507 100%);
        border-top: 1px solid var(--border-light); color: var(--text-secondary);
    }
    .cz-footer-inner { max-width: 1640px; margin: 0 auto; padding: 28px 4% 22px; }
    .cz-footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--border-subtle); }
    .cz-footer-logo { display: inline-flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 900; color: #fff; cursor: pointer; }
    .cz-footer-logo span.brand-red { color: var(--brand-primary); }
    .cz-footer-tagline { font-size: 13px; color: var(--text-tertiary); margin-top: 4px; }
    .cz-sub-btn {
        display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
        background: var(--brand-primary); color: #fff; border-radius: var(--radius-pill);
        font-size: 13px; font-weight: 700; box-shadow: var(--brand-glow);
    }
    .cz-footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 16px; font-size: 12px; color: var(--text-tertiary); }
    .cz-footer-nav { display: flex; gap: 16px; flex-wrap: wrap; }
    .cz-footer-nav button { background: none; border: none; color: var(--text-secondary); font-size: 12.5px; font-weight: 600; cursor: pointer; }
    .cz-footer-nav button:hover { color: #fff; }

    .bottom-nav {
        display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 6000;
        background: var(--bg-glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
        border-top: 1px solid var(--border-subtle); justify-content: space-around; align-items: stretch; height: var(--bottom-nav-h);
    }
    .bnav-btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: none; border: none; color: var(--text-muted); font-size: 9px; font-weight: 700; cursor: pointer; text-transform: uppercase; }
    .bnav-btn i { font-size: 18px; }
    .bnav-btn.active { color: var(--brand-primary); }

    @media (max-width: 992px) {
        .nav-links { display: none; }
        .fv-info-grid { grid-template-columns: 1fr; }
        .fv-poster { display: none; }
        .qv-poster-col { width: 230px; }
    }
    @media (max-width: 768px) {
        :root { --navbar-h: 58px; }
        .bottom-nav { display: flex; }
        body { padding-bottom: var(--bottom-nav-h); }
        .search-bar { display: none; }
        .mobile-search-toggle { display: block; }
        .search-wrap.mobile-open .search-bar {
            display: flex; position: absolute; top: calc(100% + 8px); right: 0;
            width: calc(100vw - 32px); background: var(--bg-surface-2); border: 1px solid var(--border-light);
        }
        .search-wrap.mobile-open .search-dropdown { right: 0; width: calc(100vw - 32px); min-width: auto; }
        .source-mode-pill span.mode-text { display: none; }
        .hero-stage { height: 54vh; min-height: 360px; }
        .hero-title { font-size: 2rem; }
        .media-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
        .row-card, .row-skel { width: 132px; }
        .qv-layout { flex-direction: column; }
        .qv-poster-col { width: 100%; height: 240px; }
        .fv-content { max-width: 100%; padding: 18px 3% 44px; }
        .fv-title { font-size: 24px; }
        .player-controls { flex-direction: column; align-items: stretch; }
        .player-right-actions { justify-content: space-between; }
    }
    @media (hover: none), (max-width: 768px) {
        .media-grid:not(.list-view) .media-card .card-overlay,
        .row-card .row-card-overlay { opacity: 1; }
    }

    /* Keep player shield active on seek/cursor move and suppress center HUD overlay flash */
    .player-wrapper.keyboard-seeking .player-close-btn { opacity: 0.25; }
    .player-wrapper.keyboard-seeking::after {
        content: ''; position: absolute; inset: 0; z-index: 16; pointer-events: none;
        background: transparent;
    }


    .region-select-wrap { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--text-secondary); }
    .region-select {
        background: var(--bg-surface-3); color: #fff; border: 1px solid var(--border-light);
        border-radius: var(--radius-pill); padding: 4px 10px; font-size: 11.5px; font-weight: 800; cursor: pointer;
    }
    .region-select:focus { border-color: var(--brand-accent); }

    .year-chip-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
    .year-chip {
        background: var(--bg-surface-3); border: 1px solid var(--border-light);
        color: var(--text-secondary); padding: 5px 12px; border-radius: var(--radius-pill);
        font-size: 12px; font-weight: 700; cursor: pointer; transition: var(--transition-fast);
    }
    .year-chip:hover { color: #fff; border-color: var(--border-medium); }
    .year-chip.active { background: var(--brand-primary-dim); border-color: rgba(229,9,20,0.45); color: var(--brand-primary); }