/* ==========================================================================
           1. ROOT VARIABLES & PREMIUM COLOR PALETTE
           ========================================================================== */
        :root {
            --bg-base: #050507;
            --bg-surface: #0f0f13;
            --bg-surface-elevated: #1a1a20;
            --bg-glass: rgba(15, 15, 19, 0.75);
            --bg-glass-heavy: rgba(5, 5, 7, 0.9);
            --brand-primary: #E50914;
            --brand-primary-hover: #f40612;
            --brand-accent: #00E5FF;
            --brand-glow: rgba(229, 9, 20, 0.4);
            --text-primary: #FFFFFF;
            --text-secondary: #A0A0B0;
            --text-tertiary: #707080;
            --border-light: rgba(255, 255, 255, 0.08);
            --border-hover: rgba(255, 255, 255, 0.2);
            --radius-sm: 6px;
            --radius-md: 8px;
            --radius-lg: 16px;
            --radius-xl: 30px;
            --radius-pill: 100px;
            --transition-fast: 0.2s ease;
            --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            --shadow-subtle: 0 4px 20px rgba(0,0,0,0.3);
            --shadow-glow: 0 0 20px rgba(229, 9, 20, 0.3);
        }

        /* ==========================================================================
           2. GLOBAL RESET & TYPOGRAPHY
           ========================================================================== */
        *, *::before, *::after {
            margin: 0; padding: 0; box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }
        body {
            background-color: var(--bg-base);
            color: var(--text-primary);
            font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            min-height: 100vh;
            overflow-x: hidden;
            line-height: 1.5;
        }
        ::-webkit-scrollbar { width: 8px; height: 8px; }
        ::-webkit-scrollbar-track { background: var(--bg-base); }
        ::-webkit-scrollbar-thumb { background: #2a2a35; border-radius: var(--radius-pill); }
        ::-webkit-scrollbar-thumb:hover { background: var(--brand-primary); }
        a { text-decoration: none; color: inherit; }
        ul { list-style: none; }
        button { font-family: inherit; outline: none; }
        input { font-family: inherit; outline: none; }
        .container { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 4%; }

        /* ==========================================================================
           3. UI COMPONENTS (Progress, Toast)
           ========================================================================== */
        #progress-container {
            position: fixed; top: 0; left: 0; width: 100%; height: 4px; z-index: 9999;
            pointer-events: none; opacity: 0; transition: opacity var(--transition-normal);
        }
        #progress-bar {
            height: 100%; width: 0%;
            background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
            box-shadow: 0 0 15px var(--brand-primary);
            transition: width 0.2s ease-out;
        }
        .toast-notification {
            position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
            background: rgba(229, 9, 20, 0.95); color: white; padding: 12px 30px;
            border-radius: var(--radius-pill); font-weight: 600; font-size: 15px;
            box-shadow: var(--shadow-glow); opacity: 0; transition: var(--transition-slow);
            z-index: 10000; display: flex; align-items: center; gap: 10px; backdrop-filter: blur(10px);
        }
        .toast-notification.show { transform: translateX(-50%) translateY(0); opacity: 1; }

        /* ==========================================================================
           4. NAVBAR & SEARCH
           ========================================================================== */
        .navbar {
            position: fixed; top: 0; left: 0; width: 100%; z-index: 2000;
            background: linear-gradient(to bottom, rgba(5,5,7,0.9) 0%, rgba(5,5,7,0) 100%);
            padding: 20px 4%; display: flex; justify-content: space-between; align-items: center;
            transition: var(--transition-normal);
        }
        .navbar.scrolled {
            background: var(--bg-glass); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
            padding: 15px 4%; border-bottom: 1px solid var(--border-light);
            box-shadow: 0 4px 30px rgba(0,0,0,0.5);
        }
        .nav-brand { display: flex; align-items: center; gap: 40px; }
        .logo {
            font-size: 32px; font-weight: 900; color: var(--brand-primary);
            letter-spacing: -1px; cursor: pointer; display: flex; align-items: center; gap: 10px;
            text-shadow: 0 2px 10px rgba(229,9,20,0.3);
        }
        .logo i { font-size: 28px; }
        .nav-links { display: flex; gap: 10px; }
        .nav-btn {
            background: transparent; border: none; color: var(--text-secondary);
            font-size: 16px; font-weight: 500; cursor: pointer; padding: 10px 18px;
            border-radius: var(--radius-pill); transition: var(--transition-fast);
        }
        .nav-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
        .nav-btn.active { color: var(--text-primary); background: rgba(229,9,20,0.15); font-weight: 600; }
        .nav-actions { display: flex; align-items: center; gap: 20px; }
        .search-wrapper { position: relative; display: flex; align-items: center; }
        .search-bar-modern {
            display: flex; align-items: center; background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-pill);
            padding: 8px 20px; transition: var(--transition-normal); width: 320px;
            backdrop-filter: blur(10px);
        }
        .search-bar-modern:focus-within {
            background: rgba(255,255,255,0.1); border-color: var(--brand-primary);
            width: 400px; box-shadow: 0 0 20px rgba(229,9,20,0.2);
        }
        .search-bar-modern input {
            background: transparent; border: none; color: var(--text-primary);
            padding: 5px 10px; width: 100%; font-size: 15px; font-weight: 400;
        }
        .search-bar-modern input::placeholder { color: var(--text-tertiary); }
        .search-icon { color: var(--text-secondary); font-size: 16px; cursor: pointer; }
        .voice-search-btn {
            color: var(--text-secondary); cursor: pointer; transition: var(--transition-fast);
            padding: 5px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
        }
        .voice-search-btn:hover { color: var(--brand-primary); background: rgba(229,9,20,0.1); }
        .voice-search-btn.recording {
            color: white; background: var(--brand-primary); animation: pulse-record 1.5s infinite;
        }
        @keyframes pulse-record {
            0% { box-shadow: 0 0 0 0 rgba(229,9,20,0.7); }
            70% { box-shadow: 0 0 0 10px rgba(229,9,20,0); }
            100% { box-shadow: 0 0 0 0 rgba(229,9,20,0); }
        }
        .search-dropdown {
            position: absolute; top: 120%; right: 0; width: 100%; min-width: 400px;
            background: var(--bg-surface-elevated); border: 1px solid var(--border-light);
            border-radius: var(--radius-md); box-shadow: 0 20px 50px rgba(0,0,0,0.8);
            z-index: 2001; display: none; flex-direction: column; overflow: hidden;
        }
        .search-dropdown.active { display: flex; animation: slideDown 0.3s ease forwards; }
        @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
        .dropdown-header {
            padding: 15px 20px; font-size: 12px; font-weight: 700; color: var(--text-secondary);
            text-transform: uppercase; letter-spacing: 1.5px; background: rgba(0,0,0,0.2);
            border-bottom: 1px solid var(--border-light);
        }
        .suggestion-item {
            display: flex; align-items: center; padding: 12px 20px; gap: 15px;
            cursor: pointer; transition: var(--transition-fast); border-bottom: 1px solid rgba(255,255,255,0.03);
        }
        .suggestion-item:hover { background: rgba(255,255,255,0.05); }
        .suggestion-img { width: 45px; height: 65px; border-radius: 6px; object-fit: cover; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
        .suggestion-details { display: flex; flex-direction: column; gap: 4px; }
        .suggestion-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
        .suggestion-meta { font-size: 13px; color: var(--text-secondary); display: flex; gap: 10px; align-items: center; }
        .mobile-search-toggle { display: none; color: white; font-size: 22px; background: none; border: none; cursor: pointer; }

        /* ==========================================================================
           5. OTT PLATFORMS HORIZONTAL SCROLL
           ========================================================================== */
        .ott-universe {
            padding: 120px 4% 30px;
            width: 100%; max-width: 1600px; margin: 0 auto;
        }
        .ott-title-label {
            font-size: 16px; font-weight: 600; color: var(--text-secondary); margin-bottom: 20px;
            text-transform: uppercase; letter-spacing: 2px; display: flex; align-items: center; gap: 10px;
        }
        .ott-scroll-wrapper {
            display: flex; gap: 12px; overflow-x: auto; padding-bottom: 15px; scrollbar-width: none; -ms-overflow-style: none;
        }
        .ott-scroll-wrapper::-webkit-scrollbar { display: none; }
        .ott-card {
            background: var(--bg-surface); border: 1px solid var(--border-light);
            border-radius: var(--radius-pill); padding: 8px 20px; display: flex; align-items: center; justify-content: center;
            cursor: pointer; transition: var(--transition-normal); flex-shrink: 0; min-width: 90px; height: 44px;
            position: relative; overflow: hidden;
        }
        .ott-card::after {
            content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
            background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
            transform: skewX(-20deg); transition: 0.5s;
        }
        .ott-card:hover::after { left: 150%; }
        .ott-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.4); border-color: rgba(255,255,255,0.2); }
        .ott-card.active { border-color: var(--brand-primary); background: rgba(229,9,20,0.1); box-shadow: var(--shadow-glow); }
        .ott-logo-img {
            height: 22px; max-width: 90px; object-fit: contain; transition: var(--transition-fast);
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
        }
        .invert-logo { filter: invert(1) drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }

        /* ==========================================================================
           6. HERO SLIDER
           ========================================================================== */
        .hero-showcase {
            width: 100%; height: 75vh; min-height: 600px; max-height: 900px;
            position: relative; margin-bottom: 50px; overflow: hidden;
            border-radius: var(--radius-lg); box-shadow: 0 20px 50px rgba(0,0,0,0.8);
        }
        .hero-track { width: 100%; height: 100%; display: flex; 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 20%; background-repeat: no-repeat;
        }
        .hero-slide::before {
            content: ''; position: absolute; inset: 0;
            background: linear-gradient(90deg, rgba(5,5,7,0.95) 0%, rgba(5,5,7,0.4) 50%, transparent 100%);
        }
        .hero-slide::after {
            content: ''; position: absolute; inset: 0;
            background: linear-gradient(0deg, rgba(5,5,7,1) 0%, rgba(5,5,7,0) 40%);
        }
        .hero-content { position: absolute; bottom: 10%; left: 5%; width: 90%; max-width: 800px; z-index: 10; }
        .hero-badge {
            display: inline-block; background: var(--brand-primary); color: white;
            padding: 4px 12px; border-radius: var(--radius-pill); font-size: 12px;
            font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px;
        }
        .hero-title { font-size: 4.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 20px; color: white; text-shadow: 0 4px 20px rgba(0,0,0,0.8); }
        .hero-meta { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; font-size: 16px; font-weight: 500; color: #E0E0E0; }
        .hero-rating { display: flex; align-items: center; gap: 5px; color: #FFC107; font-weight: 700; }
        .hero-quality { border: 1px solid rgba(255,255,255,0.4); padding: 2px 8px; border-radius: 4px; font-size: 12px; }
        .hero-desc {
            font-size: 18px; color: #C0C0C0; line-height: 1.6; margin-bottom: 35px;
            display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
            text-shadow: 0 2px 10px rgba(0,0,0,0.5);
        }
        .hero-actions { display: flex; gap: 20px; }
        .btn-play {
            background: white; color: black; border: none; padding: 16px 35px;
            border-radius: var(--radius-pill); font-size: 18px; font-weight: 700;
            display: flex; align-items: center; gap: 12px; cursor: pointer; transition: var(--transition-fast);
        }
        .btn-play:hover { background: rgba(255,255,255,0.8); transform: scale(1.05); }
        .btn-info {
            background: rgba(109, 109, 110, 0.7); color: white; border: none;
            padding: 16px 35px; border-radius: var(--radius-pill); font-size: 18px; font-weight: 700;
            display: flex; align-items: center; gap: 12px; cursor: pointer; transition: var(--transition-fast);
            backdrop-filter: blur(10px);
        }
        .btn-info:hover { background: rgba(109, 109, 110, 0.9); transform: scale(1.05); }
        .hero-pagination { position: absolute; bottom: 30px; right: 5%; display: flex; gap: 12px; z-index: 10; }
        .hero-dot {
            width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.3);
            cursor: pointer; transition: var(--transition-normal); border: 2px solid transparent;
        }
        .hero-dot.active { background: white; border-color: rgba(255,255,255,0.8); transform: scale(1.3); }

        /* ==========================================================================
           7. FILTERS & VIEW CONTROLS
           ========================================================================== */
        .controls-section {
            display: flex; justify-content: space-between; align-items: center;
            margin-bottom: 25px; flex-wrap: wrap; gap: 20px; padding: 0 10px;
        }
        .section-heading { font-size: 28px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
        .section-heading i { color: var(--brand-primary); }
        .controls-tools { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
        .lang-tabs {
            display: flex; background: var(--bg-surface); padding: 5px; border-radius: var(--radius-pill);
            border: 1px solid var(--border-light);
        }
        .lang-btn {
            background: transparent; border: none; color: var(--text-secondary); padding: 8px 20px;
            border-radius: var(--radius-pill); cursor: pointer; font-weight: 600; font-size: 14px;
            transition: var(--transition-fast);
        }
        .lang-btn.active { background: var(--border-hover); color: white; }
        .icon-btn {
            width: 45px; height: 45px; border-radius: 50%; background: var(--bg-surface);
            border: 1px solid var(--border-light); color: var(--text-primary);
            display: flex; align-items: center; justify-content: center; cursor: pointer;
            transition: var(--transition-fast); font-size: 16px;
        }
        .icon-btn:hover, .icon-btn.active { background: var(--brand-primary); border-color: var(--brand-primary); }
        .filter-dropdown {
            background: var(--bg-surface-elevated); border: 1px solid var(--border-light);
            border-radius: var(--radius-lg); padding: 30px; margin-bottom: 40px;
            display: none; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px;
            animation: slideDownFade 0.4s ease forwards; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        }
        .filter-dropdown.show { display: grid; }
        @keyframes slideDownFade { from{opacity:0; transform:translateY(-20px);} to{opacity:1; transform:translateY(0);} }
        .filter-block h4 { font-size: 14px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
        .genre-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
        .genre-tag {
            background: rgba(255,255,255,0.05); border: 1px solid var(--border-light);
            padding: 8px 16px; border-radius: var(--radius-pill); font-size: 14px;
            cursor: pointer; transition: var(--transition-fast); color: var(--text-secondary);
        }
        .genre-tag:hover { background: rgba(255,255,255,0.1); color: white; }
        .genre-tag.active { background: var(--brand-primary); border-color: var(--brand-primary); color: white; }
        .range-container { margin-top: 15px; }
        .custom-range { width: 100%; accent-color: var(--brand-primary); cursor: pointer; }
        .range-vals { display: flex; justify-content: space-between; margin-top: 10px; font-size: 14px; color: var(--text-secondary); }
        .range-vals span.highlight { color: white; font-weight: 700; font-size: 16px; }
        .filter-footer { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 20px; border-top: 1px solid var(--border-light); padding-top: 25px; }
        .btn-outline { background: transparent; color: white; border: 1px solid var(--border-hover); padding: 10px 25px; border-radius: var(--radius-pill); cursor: pointer; font-weight: 600; transition: var(--transition-fast); }
        .btn-outline:hover { background: rgba(255,255,255,0.1); }
        .btn-solid { background: var(--brand-primary); color: white; border: none; padding: 10px 25px; border-radius: var(--radius-pill); cursor: pointer; font-weight: 600; transition: var(--transition-fast); }
        .btn-solid:hover { background: var(--brand-primary-hover); }

        /* ==========================================================================
           8. MEDIA GRID & MOVIE CARDS
           ========================================================================== */
        .media-grid {
            display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px; transition: var(--transition-normal); padding-bottom: 40px;
        }
        .media-grid.list-view { grid-template-columns: 1fr; gap: 20px; }
        .media-card {
            position: relative; border-radius: var(--radius-md); overflow: hidden;
            background: transparent; cursor: pointer; transition: var(--transition-normal);
            display: flex; flex-direction: column;
        }
        .media-grid:not(.list-view) .media-card:hover {
            transform: translateY(-8px) scale(1.05); z-index: 10; box-shadow: 0 15px 30px rgba(0,0,0,0.8);
        }
        .card-image-wrapper { position: relative; aspect-ratio: 2/3; overflow: hidden; width: 100%; border-radius: var(--radius-md); }
        .card-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
        .media-card:hover .card-image { transform: scale(1.05); filter: brightness(0.5); }
        .card-hover-overlay {
            position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
            opacity: 0; transition: opacity 0.3s ease; display: flex; flex-direction: column; justify-content: space-between; padding: 15px;
        }
        .media-card:hover .card-hover-overlay { opacity: 1; }
        .card-top-actions { display: flex; justify-content: space-between; align-items: flex-start; }
        .btn-watchlist {
            width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
            border: 1px solid var(--border-light); color: white; display: flex; align-items: center; justify-content: center;
            cursor: pointer; transition: var(--transition-fast); z-index: 5; font-size: 12px;
        }
        .btn-watchlist:hover { background: var(--brand-primary); border-color: var(--brand-primary); transform: scale(1.1); }
        .btn-watchlist.in-list { color: var(--brand-primary); }
        .btn-watchlist.in-list:hover { color: white; }
        .card-rating {
            background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); padding: 4px 8px; border-radius: var(--radius-sm);
            font-size: 12px; font-weight: 700; color: #FFC107; display: flex; align-items: center; gap: 4px; border: 1px solid rgba(255,193,7,0.3);
        }
        .play-circle {
            align-self: center; margin-top: auto; margin-bottom: auto; width: 50px; height: 50px;
            background: rgba(229, 9, 20, 0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center;
            font-size: 18px; color: white; transform: scale(0.5); opacity: 0; transition: var(--transition-normal);
            box-shadow: 0 0 20px rgba(229,9,20,0.6);
        }
        .media-card:hover .play-circle { transform: scale(1); opacity: 1; }
        .card-bottom-info {
            display: flex; flex-direction: column; gap: 4px;
            transform: translateY(10px); opacity: 0; transition: var(--transition-normal);
        }
        .media-card:hover .card-bottom-info { transform: translateY(0); opacity: 1; }
        .card-title-hover { font-size: 15px; font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,0.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .card-meta-hover { font-size: 12px; color: #ddd; text-shadow: 0 1px 3px rgba(0,0,0,0.9); font-weight: 500; }
        .media-grid:not(.list-view) .card-details { display: none; }
        .media-grid.list-view .media-card { flex-direction: row; height: 200px; align-items: center; background: var(--bg-surface); border: 1px solid var(--border-light); }
        .media-grid.list-view .card-image-wrapper { width: 135px; height: 100%; border-radius: var(--radius-md) 0 0 var(--radius-md); }
        .media-grid.list-view .card-hover-overlay { display: none; }
        .media-grid.list-view .card-details { display: flex; padding: 25px; flex: 1; flex-direction: column; justify-content: center; }
        .media-grid.list-view .card-title-text { font-size: 24px; white-space: normal; margin-bottom: 10px; font-weight: 700; }
        .media-grid.list-view .card-meta-text { font-size: 14px; color: var(--text-secondary); display: flex; gap: 15px; }
        .media-grid.list-view .card-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text-secondary); margin-top: 10px; font-size: 15px; line-height: 1.5; }
        .skel { background: rgba(255,255,255,0.05); position: relative; overflow: hidden; border-radius: var(--radius-md); }
        .skel::after {
            content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent); animation: shimmer 1.5s infinite;
        }
        @keyframes shimmer { 100% { transform: translateX(100%); } }
        .skel-card { aspect-ratio: 2/3; }
        .load-more-wrap { text-align: center; margin: 20px 0 60px; }
        .empty-state { grid-column: 1/-1; text-align: center; padding: 100px 20px; }
        .empty-icon { font-size: 60px; color: var(--text-tertiary); margin-bottom: 20px; }
        .empty-text { font-size: 24px; font-weight: 600; color: var(--text-secondary); margin-bottom: 10px; }
        .empty-subtext { color: var(--text-tertiary); margin-bottom: 30px; }

        /* ==========================================================================
           9. MODALS (QUICK VIEW & FULL DETAILS)
           ========================================================================== */
        .modal-backdrop {
            position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(10px);
            z-index: 3000; display: none; align-items: center; justify-content: center;
            opacity: 0; transition: opacity 0.3s ease;
        }
        .modal-backdrop.active { display: flex; opacity: 1; }
        .modal-close-global {
            position: absolute; top: 25px; right: 30px; width: 50px; height: 50px; border-radius: 50%;
            background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white;
            font-size: 24px; display: flex; align-items: center; justify-content: center;
            cursor: pointer; z-index: 3010; transition: var(--transition-fast);
        }
        .modal-close-global:hover { background: var(--brand-primary); border-color: var(--brand-primary); transform: rotate(90deg); }
        .quick-view-container {
            background: var(--bg-surface); width: 90%; max-width: 900px; border-radius: var(--radius-lg);
            border: 1px solid var(--border-light); display: none; overflow: hidden; position: relative;
            transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 25px 50px rgba(0,0,0,0.7);
        }
        .modal-backdrop.active .quick-view-container { transform: scale(1); }
        .qv-layout { display: flex; }
        .qv-poster { width: 350px; flex-shrink: 0; position: relative; }
        .qv-poster img { width: 100%; height: 100%; object-fit: cover; }
        .qv-content { padding: 40px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
        .qv-title { font-size: 36px; font-weight: 800; line-height: 1.1; margin-bottom: 15px; }
        .qv-meta { display: flex; gap: 20px; color: var(--text-secondary); font-size: 15px; margin-bottom: 20px; font-weight: 500; }
        .qv-meta i { color: var(--brand-primary); }
        .qv-desc { font-size: 16px; color: #ccc; line-height: 1.6; margin-bottom: 30px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
        .qv-genres { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
        .qv-badge { background: rgba(255,255,255,0.08); padding: 6px 15px; border-radius: var(--radius-pill); font-size: 13px; color: white; }
        .qv-actions { display: flex; gap: 15px; }
        .full-view-container {
            width: 100%; height: 100%; background: var(--bg-base); display: none; overflow-y: auto;
            transform: translateY(100px); transition: transform 0.4s ease; position: relative;
        }
        .modal-backdrop.active .full-view-container { transform: translateY(0); }
        .ambient-bg {
            position: absolute; top: 0; left: 0; width: 100%; height: 80vh;
            background-size: cover; background-position: center; opacity: 0.15;
            mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
            -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
            z-index: 0; pointer-events: none; filter: blur(20px);
        }
        .full-content-wrapper { position: relative; z-index: 1; width: 100%; max-width: 1400px; margin: 0 auto; padding: 40px 4%; }
        .player-frame-wrapper {
            width: 100%; aspect-ratio: 16/9; background: #000; border-radius: var(--radius-lg);
            overflow: hidden; position: relative; box-shadow: 0 30px 60px rgba(0,0,0,0.8);
            border: 1px solid rgba(255,255,255,0.1); margin-bottom: 30px;
        }
        .player-iframe { width: 100%; height: 100%; border: none; }

        .player-tools {
            display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
            background: var(--bg-surface-elevated); padding: 20px 30px; border-radius: var(--radius-md);
            border: 1px solid var(--border-light); margin-bottom: 50px;
        }
        .server-list { display: flex; gap: 15px; flex-wrap: wrap; }
        .server-btn {
            background: rgba(255,255,255,0.05); color: var(--text-secondary); border: 1px solid transparent;
            padding: 10px 20px; border-radius: var(--radius-pill); cursor: pointer; font-weight: 600;
            transition: var(--transition-fast); display: flex; align-items: center; gap: 8px;
        }
        .server-btn:hover { background: rgba(255,255,255,0.1); color: white; }
        .server-btn.active { background: rgba(229,9,20,0.1); border-color: var(--brand-primary); color: var(--brand-primary); box-shadow: 0 0 15px rgba(229,9,20,0.2); }
        .episode-controls { display: flex; align-items: center; gap: 15px; }
        .ep-box { display: flex; align-items: center; background: rgba(0,0,0,0.5); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 5px 15px; }
        .ep-box span { color: var(--brand-primary); font-weight: 700; margin-right: 10px; }
        .ep-box input { background: transparent; border: none; color: white; width: 40px; font-size: 16px; font-weight: 600; text-align: center; }
        .info-grid { display: grid; grid-template-columns: 300px 1fr; gap: 50px; margin-bottom: 50px; }
        .info-poster { width: 100%; border-radius: var(--radius-md); box-shadow: 0 15px 30px rgba(0,0,0,0.6); }
        .info-text h1 { font-size: 48px; font-weight: 900; line-height: 1.1; margin-bottom: 15px; }
        .info-meta { display: flex; flex-wrap: wrap; gap: 20px; color: var(--text-secondary); font-size: 16px; margin-bottom: 25px; font-weight: 500; }
        .info-desc { font-size: 18px; color: #ddd; line-height: 1.6; margin-bottom: 35px; }
        .social-actions { display: flex; gap: 15px; margin-bottom: 40px; }
        .action-round {
            width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.08);
            display: flex; align-items: center; justify-content: center; font-size: 20px; color: white;
            cursor: pointer; transition: var(--transition-fast); border: 1px solid var(--border-light);
        }
        .action-round:hover { transform: translateY(-5px); background: white; color: black; }
        .action-round.color-twitter:hover { background: #1DA1F2; color: white; border-color: #1DA1F2; }
        .action-round.color-whatsapp:hover { background: #25D366; color: white; border-color: #25D366; }
        .section-sub { font-size: 22px; font-weight: 700; margin-bottom: 20px; border-left: 4px solid var(--brand-primary); padding-left: 15px; }
        .hz-scroll { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; scrollbar-width: none; margin-bottom: 40px; }
        .hz-scroll::-webkit-scrollbar { display: none; }
        .person-card { width: 110px; flex-shrink: 0; text-align: center; cursor: pointer; }
        .person-img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; border: 2px solid transparent; transition: var(--transition-fast); }
        .person-card:hover .person-img { border-color: var(--brand-primary); transform: scale(1.05); }
        .person-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .person-role { font-size: 12px; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .related-card { width: 160px; flex-shrink: 0; cursor: pointer; transition: var(--transition-fast); }
        .related-card:hover { transform: translateY(-5px); }
        .related-img { width: 100%; aspect-ratio: 2/3; border-radius: var(--radius-sm); object-fit: cover; margin-bottom: 10px; }
        .related-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

        /* ==========================================================================
           HOME CONTENT ROWS
           ========================================================================== */
        #home-rows { padding-bottom: 40px; }
        .home-row-section { margin-bottom: 45px; }
        .home-row-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; padding: 0 5px; }
        .home-row-title { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
        .home-row-title i { color: var(--brand-primary); }
        .home-row-see-all { color: var(--brand-accent); font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition-fast); letter-spacing: 0.5px; }
        .home-row-see-all:hover { color: white; }
        .home-hz-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 15px; scrollbar-width: none; -ms-overflow-style: none; }
        .home-hz-row::-webkit-scrollbar { display: none; }
        .home-row-card { flex-shrink: 0; width: 160px; cursor: pointer; transition: var(--transition-normal); border-radius: var(--radius-md); overflow: hidden; position: relative; }
        .home-row-card:hover { transform: scale(1.07); z-index: 5; }
        .home-row-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; border-radius: var(--radius-md); }
        .home-row-card-info {
            position: absolute; bottom: 0; left: 0; right: 0;
            background: linear-gradient(0deg, rgba(5,5,7,0.95) 0%, transparent 100%);
            padding: 25px 10px 10px; border-radius: 0 0 var(--radius-md) var(--radius-md);
            opacity: 0; transition: var(--transition-fast);
        }
        .home-row-card:hover .home-row-card-info { opacity: 1; }
        .home-row-card-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .home-row-card-meta { font-size: 11px; color: var(--text-secondary); margin-top: 3px; }
        .home-row-skel { flex-shrink: 0; width: 160px; aspect-ratio: 2/3; background: var(--bg-surface-elevated); border-radius: var(--radius-md); animation: shimmer 1.5s infinite; }

        /* ==========================================================================
           MOBILE BOTTOM NAVIGATION
           ========================================================================== */
        .mobile-bottom-nav {
            display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 3000;
            background: var(--bg-glass-heavy); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
            border-top: 1px solid var(--border-light);
            padding: 8px 0 max(8px, env(safe-area-inset-bottom));
            justify-content: space-around; align-items: center;
        }
        .mob-nav-btn {
            flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
            background: none; border: none; color: var(--text-tertiary);
            font-size: 10px; font-weight: 600; cursor: pointer; padding: 6px 5px;
            transition: var(--transition-fast); text-transform: uppercase; letter-spacing: 0.5px;
        }
        .mob-nav-btn i { font-size: 20px; transition: var(--transition-fast); }
        .mob-nav-btn.active { color: var(--brand-primary); }
        .mob-nav-btn.active i { transform: scale(1.2); }
        .mob-nav-btn:not(.active):hover { color: var(--text-secondary); }

        /* ==========================================================================
           10. RESPONSIVE DESIGN
           ========================================================================== */
        @media (max-width: 1200px) { .info-grid { grid-template-columns: 250px 1fr; gap: 30px; } }
        @media (max-width: 992px) {
            .nav-brand { gap: 20px; }
            .nav-links { display: none; }
            .search-bar-modern { width: 250px; }
            .search-bar-modern:focus-within { width: 300px; }
            .hero-title { font-size: 3.5rem; }
            .info-grid { grid-template-columns: 1fr; }
            .info-poster { display: none; }
            .info-text h1 { font-size: 36px; }
            .quick-view-container { flex-direction: column; width: 95%; max-height: 90vh; overflow-y: auto; }
            .qv-layout { flex-direction: column; }
            .qv-poster { width: 100%; height: 300px; }
            .qv-poster img { object-position: top; }
        }
        @media (max-width: 768px) {
            .mobile-bottom-nav { display: flex; }
            body { padding-bottom: 70px; }
            #home-rows { padding-bottom: 20px; }
            .home-row-card { width: 130px; }
            .home-row-skel { width: 130px; }
            .navbar { padding: 15px 4%; }
            .logo { font-size: 24px; }
            .search-bar-modern { display: none; }
            .mobile-search-toggle { display: block; }
            .search-wrapper.mobile-active .search-bar-modern {
                display: flex; position: absolute; top: 100%; right: -20px; width: calc(100vw - 40px);
                background: var(--bg-surface-elevated); border: 1px solid var(--border-light);
            }
            .search-wrapper.mobile-active .search-dropdown { right: -20px; width: calc(100vw - 40px); min-width: auto; }
            .hero-showcase { height: 60vh; min-height: 400px; }
            .hero-title { font-size: 2.5rem; }
            .hero-desc { font-size: 15px; -webkit-line-clamp: 2; }
            .btn-play, .btn-info { padding: 12px 20px; font-size: 15px; }
            .controls-section { flex-direction: column; align-items: flex-start; }
            .media-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
            .media-grid.list-view .media-card { height: 140px; }
            .media-grid.list-view .card-image-wrapper { width: 95px; }
            .media-grid.list-view .card-title-text { font-size: 16px; }
            .player-tools { flex-direction: column; align-items: stretch; }
            .server-list { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 10px; }
            .server-btn { flex-shrink: 0; }
        }
        @media (max-width: 480px) {
            .home-row-card { width: 110px; }
            .home-row-skel { width: 110px; }
            .home-row-title { font-size: 18px; }
            .hero-actions { flex-direction: column; width: 100%; }
            .btn-play, .btn-info { justify-content: center; }
            .action-round { width: 40px; height: 40px; font-size: 16px; }
        }

/* Admin-managed branding images */
.logo .pf-header-logo { display:block; width:auto; max-width:190px; height:auto; max-height:48px; object-fit:contain; }
.pf-footer-image-wrap { width:100%; padding:24px 4%; box-sizing:border-box; text-align:center; }
.pf-footer-image { display:inline-block; max-width:100%; height:auto; max-height:220px; object-fit:contain; }
