:root {
    --bg-dark: #0A0D14;
    --bg-card: #1C212B;
    --bg-card-hover: #252b36;
    --accent: #E50914; /* Merah MikuNime */
    --accent-glow: rgba(229, 9, 20, 0.5);
    --text-main: #E2E8F0;
    --text-muted: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient-red: linear-gradient(135deg, #E50914 0%, #b30710 100%);
}

body {
    background-color: var(--bg-dark) !important;
    color: var(--text-main) !important;
    font-family: 'Outfit', sans-serif !important;
    margin: 0;
    overflow-x: hidden;
    padding-bottom: 80px; /* Space for bottom nav */
}

/* --- HERO SECTION (Banner) --- */
.hero-section {
    position: relative;
    height: 30vh; /* Ubah ke 30vh */
    min-height: 250px;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%); 
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(12px) brightness(0.3);
    transform: scale(1.1);
    object-position: center 20%; /* Fokus gambar agak ke atas sedikit */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-dark) 90%);
}

/* --- CONTENT CONTAINER --- */
.content-wrapper {
    position: relative;
    max-width: 1200px;
    margin: -100px auto 0; /* Naik 100px saja */
    padding: 0 25px;
    z-index: 10;
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

/* --- POSTER (Floating) --- */
.anime-poster-card {
    flex-shrink: 0;
    width: 280px; /* Sedikit lebih besar */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    background: var(--bg-card);
    position: relative;
    /* Tidak perlu border di sini agar lebih menyatu */
}

.anime-poster-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- INFO AREA (KANAN) --- */
.anime-info-area {
    flex-grow: 1;
    padding-top: 60px; /* Align dengan judul */
}

.anime-title {
    font-size: 3rem; /* Judul Besar */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
    color: white;
    letter-spacing: -1px;
}

/* --- META TAGS (Minimalis) --- */
.anime-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.meta-divider {
    width: 4px;
    height: 4px;
    background-color: var(--text-muted);
    border-radius: 50%;
    opacity: 0.5;
}

.score-badge {
    color: #ffd700; /* Gold */
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- BUTTONS --- */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn-primary-custom {
    background: var(--accent);
    color: white;
    border: none;
    padding: 14px 35px; /* Tombol lebih besar */
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary-custom:hover {
    background: #c90812;
    transform: scale(1.02);
    color: white;
}

/* --- CLEAN SECTIONS (Tanpa Kotak) --- */
.clean-section {
    margin-bottom: 35px;
}

.clean-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.synopsis-text {
    color: #cccccc; /* Lebih terang dikit dari muted */
    line-height: 1.8;
    font-size: 1rem;
    font-weight: 300;
}

/* --- GENRE BADGES (Minimalis) --- */
.genre-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.genre-tag {
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.2s;
    text-decoration: none;
}

.genre-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(229, 9, 20, 0.05);
}

/* --- INFO LIST (Horizontal Flow) --- */
.info-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* Jarak antar info */
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1rem;
    font-weight: 500;
    color: white;
}

/* --- EPISODE GRID --- */
.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
    gap: 12px;
    margin-top: 15px;
    
    /* SCROLL SETUP */
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar Style */
.episode-grid::-webkit-scrollbar { width: 4px; }
.episode-grid::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }


.ep-btn {
    background: #18181b; /* Lebih gelap dari sebelumnya */
    border-radius: 6px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
}

.ep-btn:hover {
    background: #27272a;
    color: white;
    transform: translateY(-2px);
}

.ep-btn.active {
    background: var(--accent);
    color: white;
}


/* --- MOBILE RESPONSIVE --- */
@media (max-width: 900px) {
    .hero-section {
        height: 35vh; /* Pendekkan jadi 35vh */
        mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    }

    .content-wrapper {
        flex-direction: column;
        margin-top: -80px; /* Sesuaikan posisi naik */
        padding: 0 20px;
        gap: 20px;
    }

    .anime-poster-card {
        width: 160px; /* Poster HP size */
        margin: 0 auto; /* Center poster */
        box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    }

    .anime-info-area {
        padding-top: 0;
        width: 100%;
        text-align: center; /* Center text di HP */
    }

    .anime-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .anime-meta {
        justify-content: center;
        font-size: 0.85rem;
        gap: 10px;
    }
    
    .action-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .btn-primary-custom {
        width: 100%; /* Tombol Full Width di HP */
        justify-content: center;
    }

    /* Info text rata kiri di section bawah */
    .clean-section {
        text-align: left; 
    }
    
    .info-flow {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2 kolom info di HP */
        gap: 20px;
        text-align: left;
    }
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }