:root {
    --red: #e50914; 
    --neon-red: #ff2a36; 
    --bg: #050505; 
    --neon-blue: #00f3ff;
    --neon-purple: #bc13fe;
}

body { background: var(--bg); color: white; font-family: 'Segoe UI', Tahoma, sans-serif; margin: 0; overflow-x: hidden; }

/* SPLASH SCREEN & BG GRID */
#splash-screen { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #000; z-index: 99999; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.3s ease; }
.splash-logo { font-family: 'Rajdhani'; font-size: 80px; font-weight: 900; color: transparent; -webkit-text-stroke: 2px rgba(229, 9, 20, 0.4); position: relative; letter-spacing: 5px; }
.splash-logo::before { content: 'UN'; position: absolute; left: 0; top: 0; width: 100%; height: 100%; color: var(--neon-red); overflow: hidden; animation: fill-logo-fast 0.6s forwards ease-in-out; white-space: nowrap; text-shadow: 0 0 15px var(--neon-red); }
.splash-text { font-family: 'Rajdhani'; font-size: 20px; font-weight: 700; color: #fff; letter-spacing: 10px; margin-top: 15px; opacity: 0; transform: translateY(15px); animation: fade-up-fast 0.4s forwards 0.4s; }
@keyframes fill-logo-fast { 0% { width: 0%; } 100% { width: 100%; } }
@keyframes fade-up-fast { to { opacity: 1; transform: translateY(0); } }

#bg-grid { position: fixed; top: -50vh; left: -50vw; width: 200vw; height: 200vh; z-index: -1; transform: rotate(-15deg) scale(1.2); display: flex; flex-wrap: wrap; gap: 15px; opacity: 0.15; filter: blur(4px) contrast(1.2); pointer-events: none; justify-content: center; }
#bg-grid img { width: 120px; border-radius: 8px; box-shadow: 0 0 10px rgba(229,9,20,0.2); }

/* HEADER IDLIX STYLE - BENING & SUPER SMOOTH */
#main-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 9999;
    padding: 15px 5%; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center;
    background-color: transparent;
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%); 
    border-radius: 0px; border: 1px solid transparent;
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: top, left, width, border-radius, background-color, backdrop-filter, padding;
}

#main-header.scrolled-capsule {
    top: 15px; left: 5%; width: 90%;
    background-image: none; 
    background-color: rgba(10, 10, 10, 0.4); 
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border-radius: 50px; padding: 10px 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 10px rgba(255,255,255,0.05); 
    border: 1px solid rgba(255,255,255,0.1);
}

.brand { cursor: pointer; flex-shrink: 0; }
.logo { color: var(--neon-red); font-size: 24px; font-weight: 900; font-family: 'Rajdhani'; letter-spacing: 2px; transition: 0.3s; }
.brand:hover .logo { text-shadow: 0 0 15px var(--neon-red); }
.dev-tag { color: #aaa; font-size: 10px; font-weight: 800; letter-spacing: 2px; }

.nav-tools { display: flex; gap: 15px; align-items: center; }
.btn-setting { background: rgba(0, 243, 255, 0.1); border: 1px solid var(--neon-blue); color: var(--neon-blue); padding: 8px 15px; border-radius: 20px; font-weight: bold; cursor: pointer; font-family: 'Rajdhani'; font-size: 14px;}

/* SEARCH CONTAINER (KACA PEMBESAR) */
.search-container { position: relative; display: flex; align-items: center; }
.search-icon { display: none; } /* Sembunyiin di PC, muncul di HP */
.search-box { background: rgba(255, 255, 255, 0.1); border: none; padding: 8px 15px; color: white; border-radius: 20px; outline: none; width: 180px; transition: 0.4s; font-family: 'Segoe UI'; font-size: 13px;}
.search-box:focus { background: rgba(255, 255, 255, 0.2); width: 250px; box-shadow: 0 0 15px rgba(255,255,255,0.2); }

.btn-login-top { background: var(--neon-red); border: 1px solid var(--neon-red); color: white; height: 35px; border-radius: 20px; padding: 0 20px; font-weight: bold; cursor: pointer; transition: 0.3s; font-family: 'Rajdhani'; letter-spacing: 1px; }

/* MODAL MODERN (GLASSMORPHISM) */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px); z-index: 10000; justify-content: center; align-items: center; padding: 20px; box-sizing: border-box;}
.modal-box { width: 100%; max-width: 350px; border-radius: 20px; padding: 30px; text-align: center; }
.glass-modal { background: linear-gradient(145deg, rgba(30,30,30,0.9), rgba(10,10,10,0.95)); box-shadow: 0 30px 60px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.1); position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
.modal-header-glow { position: absolute; top: -50px; left: 50%; transform: translateX(-50%); width: 150px; height: 150px; background: var(--neon-red); filter: blur(80px); opacity: 0.5; z-index: 0; }
.modal-title-new { position: relative; z-index: 1; font-family: 'Rajdhani'; font-size: 28px; font-weight: 900; color: white; letter-spacing: 1px; margin: 0 0 10px 0; }
.modal-subtitle { position: relative; z-index: 1; font-size: 13px; color: #aaa; line-height: 1.5; margin-bottom: 25px; }
.btn-google-login { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 100%; padding: 14px; background: white; color: black; border: none; border-radius: 12px; font-weight: 800; font-size: 15px; font-family: 'Segoe UI'; cursor: pointer; transition: 0.3s; }
.btn-google-login:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255,255,255,0.2); }
.btn-cancel-login { position: relative; z-index: 1; background: transparent; border: none; color: #777; font-weight: bold; font-family: 'Segoe UI'; margin-top: 15px; cursor: pointer; transition: 0.3s; }
.btn-cancel-login:hover { color: white; }

#search-dropdown { position: fixed; top: 70px; right: 5%; width: 350px; max-height: 60vh; background: rgba(15, 15, 15, 0.95); backdrop-filter: blur(10px); border-radius: 12px; z-index: 1001; display: none; flex-direction: column; overflow-y: auto; border: 1px solid rgba(255,255,255,0.1); }
#search-dropdown::-webkit-scrollbar { width: 6px; }
#search-dropdown::-webkit-scrollbar-thumb { background: var(--neon-red); border-radius: 5px; }
.s-item { display: flex; padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer; transition: 0.3s;}
.s-item:hover { background: rgba(255,255,255,0.1); }
.s-item img { width: 45px; height: 65px; object-fit: cover; border-radius: 6px; margin-right: 15px; }
.s-info { display: flex; flex-direction: column; justify-content: center; }
.s-title { font-weight: bold; font-family: 'Rajdhani'; font-size: 16px; }

/* FLOAT BOLA KANAN BAWAH */
.float-btn-group { position: fixed; right: 25px; bottom: 25px; display: flex; flex-direction: column; gap: 15px; z-index: 9999; }
.float-ball { width: 55px; height: 55px; border-radius: 50%; background: rgba(15, 15, 15, 0.85); border: 1px solid rgba(255,255,255,0.2); display: flex; justify-content: center; align-items: center; font-size: 22px; cursor: pointer; backdrop-filter: blur(10px); transition: 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.float-ball:hover { transform: scale(1.15); }
.fav-ball:hover { border-color: var(--neon-red); box-shadow: 0 0 15px var(--neon-red); }
.wl-ball:hover { border-color: var(--neon-blue); box-shadow: 0 0 15px var(--neon-blue); }

/* HERO HOME */
#hero-banner { width: 100%; height: 80vh; position: relative; display: flex; align-items: flex-end; padding: 0 5% 60px 5%; background-size: cover; background-position: center top; transition: background-image 0.5s ease-in-out; }
.hero-gradient { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, var(--bg) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.8) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-title { font-family: 'Rajdhani'; font-size: 60px; font-weight: 900; text-transform: uppercase; margin-bottom: 10px; line-height: 1; text-shadow: 2px 2px 10px black; }
.hero-desc { font-size: 16px; color: #ddd; margin-bottom: 25px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 1px 1px 5px black; }
.btn-hero-play { background: white; color: black; border: none; padding: 15px 35px; font-size: 18px; font-weight: bold; border-radius: 8px; cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 10px;}
.btn-hero-play:hover { background: var(--neon-red); color: white; transform: scale(1.05); box-shadow: 0 5px 20px rgba(229,9,20,0.5);}

/* GRID & CARDS */
.genre-container { display: flex; overflow-x: auto; gap: 10px; padding: 10px 5%; margin-bottom: 20px; }
.genre-container::-webkit-scrollbar { height: 0px; }
.genre-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); padding: 8px 18px; border-radius: 20px; cursor: pointer; font-family: 'Rajdhani'; font-weight: bold; white-space: nowrap; transition: 0.3s; font-size: 14px;}
.genre-btn.active, .genre-btn:hover { background: rgba(0, 243, 255, 0.15); color: var(--neon-blue); border-color: var(--neon-blue); }

.content { padding: 0 5% 40px; }
.row-title { font-size: 22px; margin-bottom: 20px; font-weight: bold; font-family: 'Rajdhani'; border-left: 4px solid var(--neon-red); padding-left: 10px; letter-spacing: 1px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }

/* 🌟 KARTU POSTER "KURUNG DI KACA" 🌟 */
.card { 
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: 16px; 
    padding: 10px; 
    display: flex; flex-direction: column; cursor: pointer; transition: 0.3s; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    box-sizing: border-box; 
}
.card:hover { transform: translateY(-10px) scale(1.03); border-color: rgba(0, 243, 255, 0.4); box-shadow: 0 15px 30px rgba(0, 243, 255, 0.2); }

.card-img-wrap { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 2/3; background: #111; width: 100%; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.rating { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.85); color: #ffd700; padding: 4px 8px; border-radius: 8px; font-size: 11px; font-weight: bold; z-index: 2; box-shadow: 0 2px 10px black; }
.age-badge-grid { position: absolute; top: 8px; left: 8px; background: rgba(0, 153, 255, 0.85); backdrop-filter: blur(5px); color: white; padding: 4px 8px; border-radius: 8px; font-size: 11px; font-weight: 900; z-index: 2; box-shadow: 0 2px 10px black; }

.card-title-text { font-family: 'Rajdhani'; font-size: 14px; font-weight: bold; color: white; margin-top: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; background: rgba(255,255,255,0.05); padding: 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); }

.poster-actions { position: absolute; bottom: 8px; right: 8px; display: flex; gap: 8px; z-index: 5; }
.poster-btn { width: 32px; height: 32px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.2); display: flex; justify-content: center; align-items: center; font-size: 14px; transition: 0.3s; }
.poster-btn:hover { background: rgba(229, 9, 20, 0.6); transform: scale(1.1); border-color: var(--neon-red); }
.poster-btn.active-fav { color: #ff2a36; text-shadow: 0 0 10px #ff2a36; border-color: #ff2a36;}
.poster-btn.active-wl { color: #00f3ff; text-shadow: 0 0 10px #00f3ff; border-color: #00f3ff;}

/* 🎬 DETAIL FULL PAGE (IDLIX STYLE) 🎬 */
.detail-hero-section { position: relative; width: 100%; height: 90vh; display: flex; align-items: flex-end; padding: 0 5% 50px 5%; box-sizing: border-box; overflow: hidden; }
#trailer-bg-container { position: absolute; top: 0; left: 0; width: 100vw; height: 100%; z-index: 0; background-size: cover; background-position: center; pointer-events: none; }
#trailer-bg-container iframe { width: 150vw; height: 150vh; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0.6; pointer-events: none; }
.detail-hero-gradient { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, var(--bg) 0%, rgba(5,5,5,0.6) 50%, rgba(5,5,5,0.3) 100%); z-index: 1; }
.detail-hero-content { position: relative; z-index: 2; max-width: 900px; }

.btn-back-detail { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; padding: 8px 15px; border-radius: 20px; font-weight: bold; cursor: pointer; margin-bottom: 20px; transition: 0.3s; backdrop-filter: blur(5px); font-family: 'Rajdhani'; letter-spacing: 1px;}
.btn-back-detail:hover { background: rgba(255,255,255,0.3); }

.d-title { font-family: 'Rajdhani'; font-size: 55px; font-weight: 900; text-transform: uppercase; margin-bottom: 10px; line-height: 1.1; text-shadow: 0 5px 15px black; }
.d-meta { font-size: 15px; margin-bottom: 20px; color: #ccc; font-weight: bold; }
.age-badge { background: var(--neon-red); color: white; padding: 3px 8px; border-radius: 4px; font-weight: 900; font-size: 12px; }
.d-synopsis { font-size: 16px; line-height: 1.6; color: #ddd; margin-bottom: 30px; text-shadow: 0 2px 5px black; }

.action-buttons-detail { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-play-detail { background: var(--neon-red); color: white; border: none; padding: 15px 40px; font-size: 18px; font-weight: bold; border-radius: 8px; cursor: pointer; transition: 0.3s; box-shadow: 0 0 20px rgba(229, 9, 20, 0.4); }
.btn-play-detail:hover { background: white; color: var(--neon-red); transform: scale(1.05); }
.btn-action-outline { background: rgba(0,0,0,0.5); color: white; border: 2px solid rgba(255,255,255,0.3); padding: 12px 25px; font-size: 14px; font-weight: bold; border-radius: 8px; cursor: pointer; transition: 0.3s; backdrop-filter: blur(5px); }
.btn-action-outline.active { background: white; color: black; border-color: white; }

/* PLAYER & EPISODES */
.player-wrapper { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 20px 50px rgba(0,0,0,0.9); }
.player-wrapper iframe { width: 100%; height: 100%; border: none; }

.cast-grid, .ep-grid { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 10px; }
.cast-grid::-webkit-scrollbar, .ep-grid::-webkit-scrollbar { height: 5px; }
.cast-grid::-webkit-scrollbar-thumb, .ep-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }

.cast-item { min-width: 80px; text-align: center; }
.cast-item img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; border: 2px solid rgba(255,255,255,0.1); }
.cast-name { font-size: 12px; font-weight: bold; }
.cast-role { font-size: 10px; color: gray; }

.ep-card { min-width: 200px; background: #111; border-radius: 8px; overflow: hidden; cursor: pointer; border: 1px solid rgba(255,255,255,0.1); transition: 0.3s; }
.ep-card.active-ep { border-color: var(--neon-red); box-shadow: 0 0 10px var(--neon-red); }
.ep-card img { width: 100%; height: 110px; object-fit: cover; border-bottom: 2px solid var(--neon-red); }
.ep-info { padding: 10px; font-size: 12px; font-weight: bold; }

/* PROFESSIONAL FOOTER */
.pro-footer { background: #0a0a0a; border-top: 1px solid rgba(255,255,255,0.1); padding: 50px 5% 20px 5%; margin-top: 50px; font-family: 'Segoe UI', Tahoma, sans-serif; }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; margin-bottom: 40px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.footer-col { flex: 1; min-width: 250px; }
.footer-logo { font-family: 'Rajdhani'; font-size: 35px; font-weight: 900; color: var(--neon-red); letter-spacing: 2px; margin-bottom: 15px; }
.footer-desc { color: #888; font-size: 13px; line-height: 1.6; }
.footer-col h3 { font-family: 'Rajdhani'; color: white; font-size: 18px; margin-bottom: 20px; letter-spacing: 1px; border-bottom: 2px solid var(--neon-red); padding-bottom: 5px; display: inline-block; }
.footer-col p { color: #888; font-size: 13px; margin-bottom: 10px; }
.footer-col a { display: block; color: #888; text-decoration: none; font-size: 13px; margin-bottom: 10px; transition: 0.3s; }
.footer-col a:hover { color: var(--neon-blue); padding-left: 5px; }
.dana-footer { display: flex; align-items: center; gap: 15px; background: rgba(255,255,255,0.05); padding: 10px 15px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); width: max-content; }
.dana-footer span { font-family: 'Rajdhani'; font-weight: bold; font-size: 18px; color: white; letter-spacing: 2px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); color: #555; font-size: 12px; font-family: 'Rajdhani'; letter-spacing: 1px; }

/* =========================================
   📱 RESPONSIVE MOBILE (SUPER SLIM) 📱
   ========================================= */
@media (max-width: 768px) {
    /* HEADER FIX */
    #main-header { padding: 10px 15px; width: 100%; box-sizing: border-box; overflow: hidden; }
    #main-header.scrolled-capsule { width: 96%; left: 2%; padding: 8px 15px; }
    
    .brand .logo { font-size: 18px; letter-spacing: 1px; }
    .dev-tag { display: none; } 
    
    .nav-tools { gap: 8px; flex: 1; justify-content: flex-end; align-items: center; }
    .btn-setting { display: none; } 
    
    /* SEARCH BOX KACA PEMBESAR */
    .search-container { display: flex; align-items: center; position: relative; }
    .search-icon { display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; border-radius: 50%; background: rgba(255,255,255,0.1); cursor: pointer; transition: 0.3s; z-index: 11; font-size: 16px; }
    
    .search-box { position: absolute; right: 0; width: 35px; height: 35px; border-radius: 20px; padding: 0; font-size: 13px; opacity: 0; transition: all 0.4s ease; background: rgba(10,10,10,0.95); z-index: 10; cursor: pointer; }
    .search-box::placeholder { color: transparent; }
    
    /* Pas di klik (fokus), melar ke kiri */
    .search-box:focus { width: calc(100vw - 140px); opacity: 1; padding: 0 15px 0 40px; cursor: text; border: 1px solid var(--neon-blue); }
    .search-box:focus + .search-icon { background: transparent; } /* Ikonnya tetep disitu sebagai hiasan */
    .search-box:focus::placeholder { color: #aaa; }
    
    .btn-login-top { padding: 0 10px; font-size: 10px; height: 30px; max-width: 80px; flex-shrink: 0;}

    /* HAPUS HERO BANNER DI HP */
    #hero-banner { display: none !important; }
    #home-view { padding-top: 80px; } 

    /* GENRE & KONTEN */
    .genre-container { padding: 5px 15px; gap: 8px; margin-bottom: 15px; }
    .genre-btn { padding: 6px 12px; font-size: 12px; }
    .content { padding: 0 15px 30px; }
    .row-title { font-size: 18px; margin-bottom: 15px; }

    /* 🌟 KARTU POSTER HP SLIM FIX 🌟 */
    .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } /* Jarak antar kartu dikecilin */
    .card { padding: 5px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05); }
    .card-img-wrap { border-radius: 6px; }
    
    .card-title-text { font-size: 11px; padding: 4px; margin-top: 5px; border-radius: 4px;}
    .rating { top: 4px; right: 4px; padding: 2px 4px; font-size: 9px; border-radius: 4px; }
    .age-badge-grid { top: 4px; left: 4px; padding: 2px 4px; font-size: 9px; border-radius: 4px; }
    
    .poster-actions { bottom: 4px; right: 4px; gap: 4px; }
    .poster-btn { width: 24px; height: 24px; font-size: 10px; } /* Dikecilin biar pas */

    /* BOLA MELAYANG */
    .float-btn-group { right: 15px; bottom: 20px; gap: 10px; }
    .float-ball { width: 40px; height: 40px; font-size: 16px; }

    /* DETAIL MOVIE */
    .d-title { font-size: 28px; }
    .detail-hero-section { padding: 0 15px 30px 15px; height: auto; min-height: 70vh; }
    .btn-play-detail { padding: 12px 25px; font-size: 15px; width: 100%; text-align: center; justify-content: center; }
    .action-buttons-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .btn-action-outline { width: 100%; padding: 10px; font-size: 12px; box-sizing: border-box;}
    #d-btn-play { grid-column: span 2; }

    /* FOOTER */
    .pro-footer { padding: 30px 15px 20px 15px; }
    .footer-col { min-width: 100%; text-align: center; margin-bottom: 20px; }
    .footer-col h3 { border-bottom: none; display: inline-block; margin-bottom: 10px; }
    .dana-footer { margin: 0 auto; }
}