: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;
}

/* Header & Search */
.main-header {
    position: sticky;
    top: 0;
    padding: 15px;
    background: #16023af4;
    z-index: 999;
}

.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);
}

/* 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 */
}

.side-menu {
    position: fixed;
    top: 0;
    right: -250px; /* Sembunyikan ke kanan luar layar */
    width: 250px;
    height: 100%;
    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 */
}

.side-menu ul {
    list-style: none;
    padding: 20px;
}

.side-menu ul li {
    margin-bottom: 25px;
}

.side-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    display: block;
}

.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 {
    flex: 0 0 auto;
    width: 110px;
    
}

.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;
}

/* Layout Series Unggulan (Pake Flexbox buat isi abu-abu) */
.series-card {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 15px; /* Jarak antar kartu ke bawah */
    overflow: hidden;
    gap: 10px;
    opacity: 1; /* Biar langsung kelihatan */
    transform: none;
}

.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;
}

/* Status awal kartu sebelum muncul */
.series-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out; /* Durasi animasi[cite: 5] */
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    border-radius: 10px;
}


.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;
    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 {
    text-decoration: none;
}