:root {
    --bg-dark: #290053; /* Ungu Gelap lu */
    --gold: #D4AF37;    /* Warna Gold */
    --abu-abu: #A0A0A0; /* Warna teks sekunder */
    --putih: #F5F5F5;
}


body {
    background-color: var(--bg-dark);
    color: var(--putih);
    font-family: sans-serif;
    margin: 0;
    padding-bottom: 70px;
}

.ad-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 10px 0;
    overflow: hidden;
}

#transition-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f0f0f; /* Samain sama bg-main lu */
    z-index: 9999;
    pointer-events: none; /* Biar gak ngehalangin klik pas transparan */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Class ini bakal dipasang lewat JS */
.fade-out {
    opacity: 1 !important;
}

/* Header & Search */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: #16023af4;
    z-index: 999;
    box-sizing: border-box;
}

.section-container:first-of-type {
    margin-top: 150px; /* Kasih space biar konten gak ketutupan header */
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 9999;
    position: fixed; 
    top: 25px;
    right: 20px;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-menu.active {
    right: 260px;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: white; /* Sesuaikan warna dengan tema AgusPlay */
    border-radius: 10px;
    transition: all 0.3s ease; /* Biar halus pas diklik */
    z-index: 1005; /* Pastikan di atas header yang sticky */
}

/* Styling Area Profil */
.user-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.269);
    margin-bottom: 10px;
}

.menu-divider {
    border: none;
    border-top: 3px solid rgba(255, 255, 255, 0.269);
    margin: 0;
    margin-top: 10px;
}

/* Kotak inisial (Opsional biar keren) */
.user-avatar {
    width: 40px;
    height: 40px;
    background-color: yellow;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    border-radius: 50px;
    margin-right: 15px;
    z-index: 1001; 
}

.user-name {
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    opacity: 1;
}

.user-id {
    color: var(--abu-abu); /* Pake variabel warna abu-abu lu */
    font-size: 12px;
    margin-top: 2px; /* Kasih jarak dikit sama username */
}

.koin {
    display: flex;
    color: var(--gold);
    font-size: 14px;
    font-weight: bold;
    margin-left: 15px;
}

.uang {
    display: flex;
    color: var(--gold);
    font-size: 14px;
    font-weight: bold;
    margin-left: 28px;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -250px; /* Sembunyikan ke kanan luar layar */
    width: 250px;
    height: 60%;
    background-color: #1a0033; /* Warna tema AgusPlay */
    z-index: 1002;
    transition: 0.8s ease; /* Durasi animasi muncul */
    padding-top: 5px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

/* Class ini akan ditambahkan lewat JavaScript */
.side-menu.show {
    right: 0; /* Geser masuk ke layar */
}

.settings-btn {
    display: block;
    color: var(--gold);
    font-size: 14px;
    font-weight: bold;
    margin-left: 15px;
    margin-top: 20px;
    text-decoration: none;
}

.sign-out {
    display: block;
    color: var(--gold);
    font-size: 14px;
    font-weight: bold;
    margin-left: 15px;
    margin-top: 20px;
    text-decoration: none;
}


.logo-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.logo-box {
    background: yellow; /* Sesuai kotak kuning di gambar lu */
    width: 40px;
    height: 40px;
    color: black;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-input {
    width: 95%;
    display: flex;
    padding: 10px;
    border-radius: 20px;
    border: none;
    background: #e0e0e0;
    justify-content: center;
    align-items: center;
    outline: none;
}

/* Layout Recommendation */
.section-container { padding: 15px; }
.section-title { font-size: 16px; margin-left: 10px; margin-bottom: 10px; margin-top: 50px; color: var(--gold); }
.section-title1 { font-size: 16px; margin-left: 10px; margin-bottom: 10px; margin-top: 1px; color: var(--gold); }


.recommend-grid {
    display: flex;             
    overflow-x: auto;         
    gap: 10px;
    width: 100%;
    padding: 10px 1px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}  
    
    .recommend-grid::-webkit-scrollbar { display: none; }

  #series-list-horizontal {
    display: flex;             
    overflow-x: auto;         
    gap: 10px;
    width: 100%;
    padding: 10px 1px;
    scroll-behavior: smooth;
    scrollbar-width: none;    /* Firefox[cite: 5] */
}

#series-list-horizontal::-webkit-scrollbar {
    display: none;          
}

.movie-card-sm {
    opacity: 0;
    transform: translateX('20px');
    transition: all 0.5s ease-out;
    flex: 0 0 auto;
    width: 110px;
}

.movie-card-sm.appear {
    opacity: 1;
    transform: translateX(0);
}

.movie-card-sm img {
    width: 100%;         
    height: 150px;     
    border-radius: 8px;
    object-fit: cover;
}

.movie-card-sm p {
    font-size: 10px;
    text-align: center;
    margin-top: 5px;
}

.movie-link {
    text-decoration: none; /* Ngilangin garis bawah */
    color: inherit;        /* Biar warnanya ngikutin warna asli tulisan lu */
    display: block;        /* Biar seluruh area kartu bisa diklik */
}

/* Layout Series Unggulan (Pake Flexbox buat isi abu-abu) */
.series-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden; /* Tambahin ini biar gambar gak keluar dari radius */
}

.series-img {
    width: 90px;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    margin: 5px;
}

.series-details {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}


.series-card.appear {
    opacity: 1;
    transform: translateY(0);
}

.series-details h3 { color: var(--gold); margin: 0; font-size: 14px; }
.series-details .meta { font-size: 11px; color: var(--abu-abu); margin: 5px 0; }
.series-details .synopsis { font-size: 10px; color: #ccc; line-height: 1.3; }

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #0d0b14;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #333;
}

.nav-item { font-size: 10px; color: var(--abu-abu); text-align: center; }
.nav-item.active { color: var(--gold); }
.nav-item.active img {
    filter: brightness(0) saturate(100%) invert(85%) sepia(87%) saturate(574%) hue-rotate(352deg) brightness(105%) contrast(102%);
}
.nav-item.active {
    filter: brightness(1.2);
    border-top: 2px solid var(--gold); /* Kasih tanda warna gold di atas icon */
}

.nav-item {
    text-decoration: none;
}

.player-container {
    padding: 15px;
    margin-top: 10px; /* Kasih space dari header[cite: 8] */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-detail-card {
    background: #1a0133a2;
    color: #333;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
}

.server-label { font-weight: bold; color: white; }
.server-list { display: flex; gap: 15px; color: #aaa; }
.server-list span.active { color: #f1c40f; font-weight: bold; }
.movie-title { font-size: 18px; margin-bottom: 10px; color: #ffffff; }
.movie-meta { display: flex; gap: 5px; align-items: center; font-size: 14px; color: #ffffff; margin-bottom: 15px; line-height: 1; }
.rating { display: flex; align-items: center; color: #ffffff; font-weight: bold; }

.genre-tags { display: flex; gap: 5px; margin-bottom: 15px; }
.genre-tags span {
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
}


.synopsis { font-size: 13px; line-height: 1.5; color: #ffffff; }

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    aspect-ratio: 16 / 9;
}

#main-video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Biar video gak kepotong */
}

.video-wrapper video {
    width: 100%;
    display: block;
}

.video-info {
    padding: 15px 5px;
}

.video-info h1 {
    font-size: 1.2rem;
    color: var(--putih);
    margin-bottom: 5px;
}

.video-meta {
    font-size: 0.8rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.video-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-action {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    cursor: pointer;
}

.video-description {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--abu-abu);
    margin-top: 10px;
}

/* --- HILANGIN SCROLL BAR TAPI TETEP BISA DI-SCROLL --- */
html, body {
    scrollbar-width: none;          /* Buat Firefox */
    -ms-overflow-style: none;       /* Buat IE/Edge */
    overflow-x: hidden;             /* Biar gak goyang kiri-kanan */
}

body::-webkit-scrollbar {
    display: none;                  /* Buat Chrome, Safari, dan Opera */
  }
  
