        /* =========================================
           UI NETFLIX/MODERN VARIABLES & RESET
        ========================================= */
        :root {
            --primary: #f20b79; /* Netflix Red */
            --primary-hover: #ff2b91;
            --bg: #141414; /* Netflix Deep Dark */
            --card: #181818;
            --border: #2b2b2b;
            --gold: #D4AF37;
            --text: #ffffff;
            --muted: #808080;
        }

        * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
        
        body {
            margin: 0; background: var(--bg); color: var(--text);
            font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
            overflow-x: hidden; position: relative; padding-bottom: 70px; /* Space for Bottom Nav */
        }

        a { text-decoration: none; color: inherit; }
        img { display: block; border-radius: 4px; }
        
        /* AJAX Loading Bar */
        #top-progress-bar {
            position: fixed; top: 0; left: 0; height: 3px; background: var(--primary);
            z-index: 10000; width: 0%; transition: width 0.3s, opacity 0.3s;
            box-shadow: 0 0 10px var(--primary);
        }

        /* BATCH SCROLL CSS */
        .hidden-batch { display: none !important; }
        .pagination-container { display: none; justify-content: center; align-items: center; gap: 8px; padding: 40px 15px; flex-wrap: nowrap; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
        .pagination-container::-webkit-scrollbar { display: none; }
        .pagination-container.show-pagination { display: flex; }

        /* =========================================
           GLASSMORPHISM DESKTOP NAVBAR
        ========================================= */
        nav {
            position: fixed; top: 0; z-index: 9999;
            display: flex; justify-content: space-between; align-items: center;
            padding: 15px 4%; background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(20,20,20,0) 100%);
            transition: background 0.4s ease; width: 100%;
        }
        nav.scrolled { background: rgba(20, 20, 20, 0.95); backdrop-filter: blur(10px); box-shadow: 0 4px 10px rgba(0,0,0,0.5); }

        .logo { display: flex; align-items: center; gap: 6px; letter-spacing: 2px; color: #fff; font-size: 18px; font-weight: 800; }
        .nav-logo-img { height: 28px; width: auto; border-radius: 0; }
        .logo-hub { color: var(--primary); }

        .hamburger { display: none; } /* Disembunyikan karena diganti Bottom Nav di Mobile */

        /* DESKTOP MENU */
        .menu-links { display: flex; align-items: center; gap: 20px; }
        .menu-links a { color: #e5e5e5; font-size: 14px; font-weight: 500; transition: color 0.3s; display: flex; align-items: center; gap: 6px;}
        .menu-links a:hover { color: #fff; }
        .btn-upgrade { background: var(--primary); color: #fff !important; padding: 6px 14px; border-radius: 4px; font-weight: bold; }
        .btn-upgrade:hover { background: var(--primary-hover); }

        /* =========================================
           MOBILE BOTTOM NAVIGATION (APP-LIKE)
        ========================================= */
        .bottom-nav {
            display: none; position: fixed; bottom: 0; width: 100%; z-index: 9998;
            background: rgba(20, 20, 20, 0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
            border-top: 1px solid rgba(255,255,255,0.1); padding: 10px 15px; padding-bottom: calc(10px + env(safe-area-inset-bottom));
            justify-content: space-around; align-items: center; box-shadow: 0 -5px 15px rgba(0,0,0,0.5);
        }
        .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 10px; font-weight: 500; transition: 0.3s; }
        .bottom-nav a i { font-size: 20px; margin-bottom: 2px; }
        .bottom-nav a.active, .bottom-nav a:hover { color: #fff; }
        .bottom-nav a.active i { color: var(--primary); }

        /* =========================================
           CINEMATIC HERO SECTION
        ========================================= */
        .hero {
            min-height: 400px; display: flex; align-items: center; justify-content: center; text-align: center;
            padding: 80px 5% 40px;
            background: url('https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?q=80&w=1600&auto=format') top center/cover no-repeat;
            position: relative; width: 100%; margin-top: -70px; /* Tarik ke bawah nav */
        }
        /* Netflix Vignette/Gradient Mask */
        .hero::before {
            content: ''; position: absolute; inset: 0;
            background: linear-gradient(to bottom, rgba(20,20,20,0.5) 0%, rgba(20,20,20,0.2) 50%, var(--bg) 100%);
        }
        .hero-content { width: 100%; max-width: 700px; position: relative; z-index: 2; margin-top: 50px;}
        .hero h1 { font-size: 56px; margin-bottom: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; text-shadow: 2px 2px 20px rgba(0,0,0,0.8); }
        .hero h1 span { color: var(--primary); }
        
        /* FIX IKON SEARCH */
        .search-hero { position: relative; width: 100%; max-width: 550px; margin: 0 auto; }
        .search-hero form { position: relative; width: 100%; display: block; }
        .search-hero i { 
            position: absolute; 
            left: 20px; 
            top: 50%; 
            transform: translateY(-50%); 
            color: #aaa; 
            font-size: 18px; 
            z-index: 5; /* Memaksa ikon tampil di atas input */
            pointer-events: none; /* Agar klik diteruskan ke kotak input */
        }
        .search-hero input {
            width: 100%; padding: 18px 20px 18px 50px; border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.3); background: rgba(0,0,0,0.6); color: white;
            font-size: 16px; outline: none; backdrop-filter: blur(10px); transition: 0.3s;
        }
        .search-hero input:focus { border-color: var(--primary); background: rgba(0,0,0,0.8); }

        /* =========================================
           SKELETON LOADING ANIMATION
        ========================================= */
        .skeleton {
            background: #2a2a2a;
            background-image: linear-gradient(90deg, #2a2a2a 0px, #3a3a3a 40px, #2a2a2a 80px);
            background-size: 200vw 100%;
            animation: shimmer 1.5s infinite linear;
        }
        @keyframes shimmer { 0% { background-position: -100vw 0; } 100% { background-position: 100vw 0; } }

        /* =========================================
           GRIDS & NETFLIX CARDS
        ========================================= */
        .container { padding: 0 4% 30px; width: 100%; margin: 0 auto; position: relative; z-index: 2; margin-top: -40px;}
        .section-title {
            display: block; margin-bottom: 12px; color: #e5e5e5; font-size: 20px; font-weight: bold;
        }

        .horizontal-grid, .artist-bar, .filter-bar {
            display: flex; gap: 12px; overflow-x: auto; padding-bottom: 15px; margin-bottom: 25px;
            scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth; cursor: grab;
        }
        .horizontal-grid::-webkit-scrollbar, .artist-bar::-webkit-scrollbar, .filter-bar::-webkit-scrollbar { display: none; }
        .horizontal-grid:active { cursor: grabbing; }

        /* Horizontal Card (History/Bookmark) */
        .card-wide {
            min-width: 260px; max-width: 260px; background: transparent; transition: transform 0.3s ease; position: relative; border-radius: 4px;
        }
        .card-wide:hover { transform: scale(1.05); z-index: 10; }
        
        /* ================= KUNCI PERBAIKAN UKURAN ================= */
        .thumb-wrapper { 
            position: relative; 
            width: 100%; 
            aspect-ratio: 16/9; 
            overflow: hidden; 
            border-radius: 4px; 
            background-color: #2a2a2a;
        }

        .poster-wrapper { 
            position: relative; 
            width: 100%; 
            aspect-ratio: 2/3; /* Portrait rasio yang stabil */
            overflow: hidden; 
            border-radius: 4px; 
            box-shadow: 0 4px 10px rgba(0,0,0,0.5);
            background-color: #2a2a2a;
        }

        /* Penambahan 'position: absolute' memaksa gambar patuh 100% pada ukuran container (wrapper) */
        .thumb, .poster-wrapper img { 
            position: absolute;
            top: 0;
            left: 0;
            width: 100%; 
            height: 100%; 
            object-fit: cover; 
            object-position: center;
            opacity: 0; 
            transition: opacity 0.5s ease, transform 0.5s ease; 
            border-radius: 4px;
        }
        
        .thumb.loaded, .poster-wrapper img.loaded { 
            opacity: 1; 
        }

        .play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.4); opacity: 0; transition: 0.3s; z-index: 2; }
        .play-overlay i { font-size: 36px; color: #fff; text-shadow: 0 0 15px rgba(0,0,0,0.8); }
        .card-wide:hover .play-overlay, .video-card:hover .play-overlay { opacity: 1; }
        
        .title-small { padding: 8px 0 0 0; font-size: 14px; font-weight: 500; color: #d2d2d2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

        /* Main Video Grid */
        .video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; row-gap: 25px; }
        
        .video-card { 
            background: transparent; 
            transition: 0.3s ease; 
            position: relative; 
            border-radius: 4px; 
            min-width: 0; /* KUNCI 1: Paksa item tidak melar mengikuti gambar */
            width: 100%;  /* KUNCI 2: Paksa agar presisi 100% dari kolom grid */
        }
        .video-card:hover { transform: scale(1.08) translateY(-5px); z-index: 10; }
        
        .video-title { 
            margin: 8px 0 0 0; 
            font-size: 14px; 
            line-height: 1.3; 
            font-weight: 500; 
            color: #e5e5e5; 
            display: -webkit-box; 
            -webkit-line-clamp: 2; /* Judul maksimal 2 baris */
            -webkit-box-orient: vertical; 
            overflow: hidden; 
            height: 36px; /* KUNCI TINGGI JUDUL AGAR KARTU SAMA RATA */
        }
        /* ========================================================== */

        /* Badges */
        .badge-series { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,0.8); border: 1px solid var(--primary); color: #fff; font-size: 9px; font-weight: bold; padding: 3px 6px; border-radius: 3px; z-index: 2; }
        .badge-premium-card { position: absolute; top: 6px; left: 6px; background: var(--primary); color: #fff; font-size: 10px; padding: 4px; border-radius: 3px; z-index: 2; }
        .badge-populer { position: absolute; top: 6px; left: 6px; background: var(--primary); color: #fff; font-size: 9px; font-weight: bold; padding: 4px 6px; border-radius: 3px; z-index: 2; box-shadow: 0 2px 5px rgba(0,0,0,0.5); text-transform: uppercase; letter-spacing: 1px;}

        /* Filters */
        .filter-item { padding: 8px 18px; border-radius: 4px; background: #2a2a2a; color: #fff; border: 1px solid transparent; white-space: nowrap; font-size: 14px; font-weight: 500; transition: 0.3s; }
        .filter-item:hover { background: #3a3a3a; }
        .filter-item.active { background: #fff; color: #000; font-weight: bold; }

        /* Artists */
        .artist-item { text-align: center; min-width: 90px; transition: 0.3s; }
        .artist-item:hover { transform: scale(1.1); }
        .artist-img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin: 0 auto; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
        .artist-name { display: block; margin-top: 8px; color: #e5e5e5; font-size: 12px; font-weight: 500; }

        .pagination-link { padding: 10px 16px; background: #222; color: #fff; border-radius: 4px; text-decoration: none; font-size: 14px; font-weight: bold; transition: 0.2s; }
        .pagination-link:hover:not(.disabled) { background: #444; }
        .pagination-link.active { background: var(--primary); color: #fff; }

        /* =========================================
           RESPONSIVE MOBILE
        ========================================= */
        @media (max-width: 768px) {
            .hero { min-height: 300px; padding: 60px 5% 30px; }
            .hero h1 { font-size: 32px; margin-bottom: 15px;}
            .search-hero input { padding: 14px 15px 14px 45px; font-size: 14px; }
            .search-hero i { left: 15px; }
            
            nav { display: none; } /* Sembunyikan Navbar Atas di Mobile */
            .bottom-nav { display: flex; } /* Tampilkan Bottom Nav */
            body { padding-bottom: 80px; } /* Jarak untuk Bottom Nav */
            
            /* KUNCI 3: Ganti 1fr menjadi minmax(0, 1fr) agar ke-3 kolom BENAR-BENAR dikunci sama rata 33.3% */
            .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; row-gap: 15px; }
            
            .poster-wrapper { border-radius: 4px; }
            
            /* FIX JUDUL MOBILE: Atur line-height dan tinggi tetap agar presisi 2 baris tanpa bocor baris ketiga */
            .video-title { 
                font-size: 11px; 
                margin-top: 5px; 
                line-height: 1.4; 
                height: 31px; 
            }
            
            .card-wide { min-width: 160px; max-width: 160px; }
            .title-small { font-size: 11px; padding-top: 5px;}
            .artist-img { width: 70px; height: 70px; }
            .section-title { font-size: 16px; margin-bottom: 8px;}
        }

        @media (min-width: 992px) {
            .video-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; row-gap: 30px; }
            .menu-drawer, .menu-overlay, .hamburger, .close-menu { display: none !important; }
        }
        /* =========================================
           KONDISI KHUSUS JIKA DIBUKA DI APLIKASI
        ========================================= */
        body.in-app-mode {
            padding-bottom: 0 !important; 
        }
        body.in-app-mode .bottom-nav {
            display: none !important;
        }
        /* =========================================
           FIX: MATIKAN EFEK MEMBESAR DI LAYAR HP
        ========================================= */
        @media (hover: none), (max-width: 991px) {
            /* Batalkan efek membesar saat disentuh/discroll */
            .video-card:hover, .card-wide:hover { 
                transform: none !important; 
                z-index: 1 !important; 
            }
            .video-card:hover .thumb, .card-wide:hover .thumb {
                transform: none !important;
                filter: none !important;
            }
            .play-overlay { display: none !important; } 
            
            /* Ganti dengan efek tombol ditekan yang lebih nyaman (mengecil sedikit) */
            .video-card:active, .card-wide:active { 
                transform: scale(0.97) !important; 
                opacity: 0.8; 
                transition: 0.1s ease; 
            }
        }
      /* =========================================
           ANNOUNCEMENT BANNER (EDGE-TO-EDGE ATAS & DIPERCEPAT)
        ========================================= */
        .announcement-banner {
            position: relative;
            width: 100%;
            background: rgba(242, 11, 121, 0.9); /* Merah Netflix */
            backdrop-filter: blur(5px);
            padding: 8px 0; /* Padding vertikal pas */
            display: flex;
            align-items: center;
            gap: 12px;
            z-index: 998;
            overflow: hidden;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            
            /* Menempel pas di bawah top navbar tanpa jarak berlebih */
            margin-top: 56px; 
        }

        /* Jarak ikon toa di sebelah kiri */
        .announcement-banner > i {
            margin-left: 20px; 
            flex-shrink: 0;
            z-index: 2;
        }

        /* Container teks berjalan */
        .marquee-content {
            display: inline-block;
            white-space: nowrap;
            /* Dipercepat dari 30s menjadi 20s */
            animation: marqueeRightToLeft 20s linear infinite; 
            font-size: 14px;
            font-weight: 600;
        }

        /* Animasi Kanan ke Kiri */
        @keyframes marqueeRightToLeft {
            0% {
                transform: translateX(100vw);
            }
            100% {
                transform: translateX(-100%);
            }
        }

        /* Penyesuaian untuk perangkat Mobile */
        @media (max-width: 768px) {
            .announcement-banner {
                margin-top: 0; /* Di mobile karena navbar atas tersembunyi, posisinya paling atas layar */
            }
        }
    


/* Keep pagination visible after the final video batch. */
.pagination-container { display: flex !important; }

.hero-slide .hero-feature__content p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
