:root {
    /* UBAH TEMA: Dark mode premium ala VOD / Movie Site */
    --bg-dark: #090a0c; 
    --bg-card: #141519;
    --accent: #e50914; /* Merah Netflix/Bioskop */
    --accent-hover: #b80710;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --border-color: #2d3139;
    --header-height: 76px;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #090a0c; }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth; /* Ditambahkan agar saat klik tombol header heart scrollnya halus */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- MENGHILANGKAN GARIS BIRU BAWAAN BROWSER PADA SEMUA LINK --- */
a {
    text-decoration: none;
    color: inherit;
    outline: none;
}

/* --- HEADER & NAVIGATION --- */
header {
    height: var(--header-height);
    background: linear-gradient(to bottom, rgba(9, 10, 12, 0.9) 0%, transparent 100%);
    border-bottom: none; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: none; 
    box-shadow: none; 
}

.logo {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.logo span.demo { color: var(--text-main); }
.logo span.slot { color: var(--text-main); font-weight: 500; }
.logo span.pro { color: var(--accent); text-shadow: 0 0 20px rgba(229, 9, 20, 0.4); }

/* --- DITAMBAHKAN: STYLE PENCARIAN & LOVE HEADER --- */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.search-icon {
    color: var(--text-muted);
    margin-right: 10px;
}

.search-box input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    width: 220px;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.header-heart {
    color: white;
    transition: color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
}

.header-heart:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.search-results {
    position: absolute;
    top: 120%;
    right: 0;
    width: 320px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: none;
    flex-direction: column;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.search-result-item {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: white;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(255,255,255,0.05);
}

.search-result-item img {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    object-fit: cover;
}

.search-result-item .info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.search-result-item .title {
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-item .provider {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- LANDING / HERO SECTION --- */
#landingView {
    margin-top: 0;
    padding: 0 0 2rem 0; 
    min-height: 100vh;
    background-color: var(--bg-dark);
    width: 100%;
}

.hero-slider-wrapper {
    width: 100%;
    max-width: 100%;
    height: 55vw; 
    max-height: 700px; 
    min-height: 400px;
    margin: 0 auto 3rem auto;
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.hero-slides { width: 100%; height: 100%; position: relative; }

.hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 1s ease-in-out;
    background-size: cover; 
    background-position: center top; 
    background-repeat: no-repeat;
}
.hero-slide.active { opacity: 1; z-index: 2; }

.hero-slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, #090a0c 0%, rgba(9, 10, 12, 0.6) 40%, rgba(9, 10, 12, 0.1) 100%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 0 4rem 5rem 4rem;
}

.trending-badge {
    background-color: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    width: fit-content;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-slide-title { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 4rem; color: var(--text-main); margin-bottom: 10px; text-shadow: 2px 2px 10px rgba(0,0,0,0.8); max-width: 800px; line-height: 1.1; }
.hero-slide-desc { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 25px; max-width: 600px; line-height: 1.6; text-shadow: 1px 1px 5px rgba(0,0,0,0.8); }

.hero-play-btn {
    background: #ffffff; color: #000; padding: 12px 28px; border-radius: 4px;
    font-weight: 700; font-family: 'Inter', sans-serif; font-size: 1rem;
    text-transform: uppercase; letter-spacing: 1px; display: inline-flex;
    align-items: center; gap: 10px; cursor: pointer; border: none; transition: all 0.3s;
    width: fit-content;
}
.hero-play-btn:hover { background: #e6e6e6; transform: scale(1.05); }

.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 4rem;
    display: flex;
    gap: 8px;
    z-index: 10;
    align-items: center;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    background-color: #4b5563; 
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    width: 24px; 
    background-color: var(--accent); 
    border-radius: 4px;
}

/* --- CATALOG & CARDS --- */
.catalog-section { 
    width: 100%; 
    max-width: 100%; 
    padding: 0;      
    margin: 0 0 3rem 0; 
}

.catalog-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 1rem; 
    padding-bottom: 10px; 
    padding-left: 2rem;  
    padding-right: 2rem; 
}

.catalog-header h2 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.4rem; color: var(--text-main); display: flex; align-items: center; gap: 10px; }
.catalog-header h2::before { content: ''; display: block; width: 4px; height: 24px; background: var(--accent); border-radius: 0; }

.view-all-btn { background: transparent; color: var(--accent); border: none; padding: 0; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-family: 'Inter', sans-serif; }
.view-all-btn:hover { text-decoration: underline; color: var(--accent-hover); }

.cards-container { 
    display: flex; 
    gap: 16px;
    overflow-x: auto; 
    padding-bottom: 25px; 
    scroll-behavior: smooth; 
    cursor: grab; 
    -ms-overflow-style: none; 
    scrollbar-width: none;
    padding-left: 2rem; 
    padding-right: 2rem; 
}
.cards-container::-webkit-scrollbar { display: none; }
.cards-container.active { cursor: grabbing; }

.cards-container.grid-view { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
    gap: 16px; 
    overflow-x: visible;
    padding-right: 2rem; 
}

.game-card { 
    flex: 0 0 180px; 
    width: 180px; 
    background: transparent; 
    border: none; 
    overflow: visible; 
    cursor: pointer; 
    position: relative; 
    text-decoration: none; 
    color: inherit; 
    display: flex; 
    flex-direction: column;
    transition: transform 0.3s;
}
.cards-container.grid-view .game-card { flex: unset; width: 100%; min-width: 180px; max-width: none; }
.game-card:hover { transform: translateY(-5px); }

.game-card-thumb { 
    width: 100%; 
    aspect-ratio: 2 / 3; 
    position: relative; 
    border-radius: 8px; 
    overflow: hidden; 
    border: 1px solid transparent; 
    transition: border-color 0.3s;
    display: block;
    flex-shrink: 0;
}

.game-card-thumb img { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block;
    transition: transform 0.4s ease; 
    background-color: #141519; 
}
.game-card:hover .game-card-thumb { border-color: var(--text-muted); }
.game-card:hover .game-card-thumb img { transform: scale(1.05); }

/* --- DITAMBAHKAN: Animasi Klik & Style Love Badge --- */
.top-badges { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; z-index: 2; pointer-events: none; }
.heart-icon, .rating-badge { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); border-radius: 4px; padding: 4px 6px; font-size: 0.75rem; display: flex; align-items: center; gap: 4px; pointer-events: auto; }
.rating-badge { color: #facc15; font-weight: bold; }

.heart-icon { color: white; border-radius: 50%; padding: 6px; cursor: pointer; transition: all 0.3s ease; }
.heart-icon:hover { transform: scale(1.15); background: rgba(0, 0, 0, 0.9); }
/* Jika disukai, maka merah */
.heart-icon.loved svg { fill: var(--accent); stroke: var(--accent); }

.play-overlay { display: none; }

.game-card-info { padding: 10px 0; text-align: left; }
.game-card-info h3 { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-main); }
.game-card-info .provider-tag { font-size: 0.75rem; color: var(--text-muted); background: transparent; padding: 0; display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%;}

/* ========================================================= */
/* PENGATURAN TAMPILAN MOBILE (HP)                           */
/* ========================================================= */
@media (max-width: 860px) {
    header { padding: 0 1.5rem; }
    /* MODIFIKASI: Mengembalikan logo PRO dan menyesuaikan ukurannya agar muat di HP */
    .logo { font-size: 1.3rem; } 
    .logo span.pro { display: inline; } /* Mengembalikan tampilan tulisan PRO */
    
    .header-right { gap: 10px; }
    
    /* MODIFIKASI: Pindahkan Search Bar melayang (fixed) di bawah layar khusus Mobile */
    .search-box { 
        position: fixed;
        bottom: 20px; /* Jarak dari bawah */
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 3rem); /* Lebar dikurangi margin */
        background: #141519; /* Warna solid sesuai desain */
        padding: 12px 16px; 
        border-radius: 30px;
        z-index: 1000; /* Selalu di atas layer lain */
        box-shadow: 0 10px 30px rgba(0,0,0,0.8);
        border: 1px solid var(--border-color);
        /* Flexbox untuk mengatur urutan icon dan input */
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    /* Mengubah urutan agar input di kiri dan kaca pembesar di kanan (sesuai gambar) */
    .search-box input { 
        width: 100%; 
        font-size: 0.95rem;
        order: 1; /* Input urutan pertama */
    }
    .search-box .search-icon {
        order: 2; /* Icon urutan kedua (di kanan) */
        margin-right: 0;
        margin-left: 10px;
    }

    /* Hasil pencarian (dropdown) diubah menjadi drop-up agar muncul ke ATAS */
    .search-results { 
        width: 100%; 
        top: auto;
        bottom: calc(100% + 15px); /* Muncul di atas form search */
        max-height: 300px;
    }
    
    /* Memberi padding bawah pada body agar konten (kaki website) tidak tertutup search bar yang melayang */
    body {
        padding-bottom: 90px;
    }

    .hero-slider-wrapper { height: 60vw; min-height: 300px; max-height: 500px; width: 100%; margin-bottom: 2rem;} 
    .hero-slide-overlay { padding: 0 2rem 3rem 2rem; }
    .slider-indicators { left: 2rem; bottom: 15px; } 
    .hero-slide-title { font-size: 2rem; }
    .hero-slide-desc { font-size: 0.95rem; }
    
    .catalog-section { margin: 0 0 2rem 0; }
    .catalog-header { padding-left: 1.5rem; padding-right: 1.5rem; }
    .cards-container { padding-left: 1.5rem; padding-right: 1.5rem; gap: 12px;}
    
    .game-card { flex: 0 0 140px; width: 140px;}
    .cards-container.grid-view { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* ========================================================= */
/* GLOBAL FOOTER STYLES (TETAP ADA)                          */
/* ========================================================= */
.sk-footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 3rem 3rem;
    margin-top: 4rem;
    width: 100%;
    position: relative;
    z-index: 10;
}
.sk-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}
.sk-top-left h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    line-height: 1.2;
    color: var(--text-main);
    margin: 0;
}
.sk-top-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.sk-app-icon {
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
}
.sk-footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.sk-col h4 {
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    font-size: 1.1rem;
}
.sk-li {
    display: block;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 0.9rem;
    transition: 0.3s;
    text-decoration: none;
}
.sk-li:hover {
    color: var(--accent);
    transform: translateX(5px);
}
.sk-bottom-info {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    line-height: 1.6;
}
.sk-office-title {
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 5px;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.5px;
}
@media(max-width:768px) {
    .sk-footer { padding: 2rem 1.5rem; }
    .sk-footer-top { flex-direction: column; text-align: center; gap: 20px; align-items: flex-start; }
    .sk-top-right { width: 100%; justify-content: flex-start; }
    .sk-bottom-info { flex-direction: column; gap: 1rem; }
}


/* ========================================================= */
/* PLAY PAGE STYLES (TETAP ADA)                              */
/* ========================================================= */
.game-wrapper {
    margin-top: var(--header-height);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-dark);
    min-height: 100vh;
}

.theater-stage {
    width: 100%;
    max-width: 1280px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    background: #000;
    aspect-ratio: 16/9;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.play-gate {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s;
}

.gate-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 10, 12, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.gate-btn {
    padding: 15px 40px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 300px;
    text-align: center;
}

.btn-real {
    background: var(--accent);
    color: white;
    border: none;
}
.btn-real:hover { background: var(--accent-hover); transform: scale(1.05); }

.btn-demo {
    background: #fff;
    color: #000;
    border: none;
}
.btn-demo:hover { background: #e6e6e6; transform: scale(1.05); }

iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
}

.control-bar {
    width: 100%;
    max-width: 1280px;
    background: var(--bg-card);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.game-title h1 {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 6px;
    color: var(--text-main);
    text-transform: uppercase;
}

.game-meta { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.actions { display: flex; gap: 12px; }

.btn {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.8rem 1.4rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}
.btn:hover { background: #232730; border-color: var(--text-muted); }
.btn-primary { background: var(--accent); color: #fff; border: none; }
.btn-primary:hover { background: var(--accent-hover); }

.content-area {
    width: 100%;
    max-width: 1280px;
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

.content-area h2 {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.content-area h2::before { content: ''; display: block; width: 4px; height: 24px; background: var(--accent); border-radius: 0; }
.content-area a { color: var(--accent); font-weight: bold; text-decoration: none; border-bottom: 1px dashed var(--accent); }

@media (max-width: 860px) {
    .gate-btn { width: 80%; max-width: 300px; font-size: 1rem; }
    .control-bar { flex-direction: column; text-align: center; }
    .actions { width: 100%; flex-direction: column; }
    
    /* --- TAMBAHAN FIX UNTUK MOBILE THEATER STAGE --- */
    .theater-stage {
        aspect-ratio: auto !important; /* Mematikan fix rasio 16:9 di HP */
        height: 75vh !important;       /* Menggunakan 75% dari tinggi layar HP */
        min-height: 500px !important;  /* Memastikan tinggi minimal agar tombol tidak terpotong */
    }
    .gate-overlay img {
        width: 120px !important;       /* Sedikit mengecilkan poster di HP */
        margin-bottom: 12px !important;
    }
    .gate-btn {
        padding: 12px 20px !important; /* Menyesuaikan jarak padding tombol */
        font-size: 0.95rem !important;
        margin-bottom: 8px !important;
    }
}