/* ============================================
   DRAMA21 - PREMIUM STREAMING THEME v2.5 (Fixed Header)
   Fixed: Header Floating Logic (Changed to Fixed Position)
=============================================== */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    /* MAIN COLORS - TEMA BIRU DONGKER (YESHD STYLE) */
    --bg-main: #0f172a;      /* Biru dongker utama */
    --bg-card: #0f172a;      /* Samakan dengan bg-main agar tampilannya flat */
    --bg-header: #070b14;    /* Dongker sangat pekat untuk Header agar kontras */
    --bg-footer: #070b14;    /* Samakan dengan Header */
    --bg-dropdown: #1e293b;  /* Dongker sedikit lebih terang untuk kotak menu dropdown */
    
    /* TEXT COLORS */
    --text-main: #ffffff;
    --text-secondary: #f8fafc;
    --text-muted: #94a3b8;   /* Warna teks redup disesuaikan dengan tone biru */
    --text-footer: #cbd5e1;
    
    /* ACCENT COLORS */
    --accent-primary: #7d5fff;
    --accent-hover: #6c5ce7;
    --accent-gradient: linear-gradient(135deg, #7d5fff 0%, #6c5ce7 100%);
    --accent-light: rgba(125, 95, 255, 0.1);
    
    /* UI COLORS */
    --hd-bg: #ffc107;
    --hd-text: #000000;
    --success: #25D366;
    --facebook: #1877F2;
    --telegram: #0088cc;
    
    /* SHADOWS */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.3);
    --shadow-accent: 0 5px 20px rgba(125, 95, 255, 0.3);
    
    /* BORDERS */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-color: #1e293b; /* Garis pembatas disesuaikan menjadi kebiruan */
}

/* ========== RESET & BASE STYLES ========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    /* PERBAIKAN: Padding top untuk konten utama (Desktop) */
    padding-top: 70px !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== HEADER & NAVIGATION ========== */
/* PERBAIKAN UTAMA: Header FIXED dengan z-index tinggi */
header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background-color: var(--bg-header);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    height: 70px;
}

nav {
    background-color: var(--bg-header);
    height: 70px;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* ========== HAMBURGER MENU ========== */
.hamburger {
    font-size: 1.8rem;
    cursor: pointer;
    color: #fff;
    display: none;
    background: none;
    border: none;
    padding: 5px;
    margin-right: 15px;
}

/* ========== LOGO (GAMBAR) - KIRI ========== */
.logo-link {
    display: flex;
    align-items: center;
    margin-right: 30px;
    flex-shrink: 0;
}

.logo-img {
    height: 45px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

/* ========== MAIN MENU DESKTOP ========== */
ul.menu {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

ul.menu li {
    position: relative;
}

ul.menu li a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ccc;
    padding: 25px 0;
    display: block;
}

ul.menu li a:hover {
    color: var(--accent-primary);
}

/* ========== DROPDOWN DESKTOP ========== */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-header);
    min-width: 220px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-top: 3px solid var(--accent-primary);
    padding: 10px 0;
    z-index: 1002;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    padding: 12px 20px !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dropdown-content a:hover {
    background-color: var(--bg-card);
    color: #fff;
    padding-left: 25px !important;
}

/* ========== SEARCH BAR - DEFAULT (DESKTOP) ========== */
.search-box {
    display: flex;
    background: var(--bg-card);
    border-radius: 30px;
    padding: 8px 15px;
    border: 1px solid #333;
    margin-left: auto;
    align-items: center;
    width: auto;
}

.search-box input {
    background: transparent;
    border: none;
    color: #fff;
    width: 200px;
    font-size: 0.9rem;
    padding: 0 10px;
}

.search-box input:focus {
    outline: none;
}

.search-box button {
    background: transparent;
    border: none;
    color: var(--accent-primary);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    padding: 0;
}

/* ========== CONTAINER UTAMA ========== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px; /* GANTI JADI 10px */
    flex: 1;
    margin-top: 0;
}


.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    border-left: 5px solid var(--accent-primary);
    padding-left: 15px;
    color: #fff;
    margin-top: 10px !important;
    padding-top: 0 !important;
}

/* ========== GRID FILM (DESKTOP) ========== */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 35px 25px; /* DIUBAH: Jarak atas-bawah 35px, kiri-kanan 25px biar lega */
    margin-bottom: 40px;
}

/* ========== KARTU FILM ========== */
.card {
    background: var(--bg-card);
    border-radius: 0; /* POJOK LANCIP  */
    overflow: hidden;
    position: relative;
    transition: opacity 0.2s;
    box-shadow: none; /* Hapus shadow */
    border: none; /* Hapus border */
}

.card:hover {
    opacity: 0.9; /* Simple hover */
}

/* Efek klik pada thumbnail */
.card:active {
    transform: scale(0.98);
    opacity: 0.8;
}

/* POSTER */
.poster-box {
    position: relative;
    width: 100%;
    padding-top: 155%;
    background: #000;
    overflow: hidden;
    border-radius: 0; /* POJOK LANCIP */
}


.poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    border-radius: 0; /* POJOK LANCIP */
}

.card:hover .poster {
    transform: scale(1.05);
}

.badge-quality {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #e50914; /* Merah solid */
    color: #fff; /* Putih */
    padding: 3px 6px;
    font-size: 9px; /* Lebih kecil */
    font-weight: 700;
    border-radius: 2px; /* Corner lebih tajam */
    border: none; /* Hapus border */
    z-index: 5;
    text-transform: uppercase;
}

/* RATING BADGE - TAMBAHAN */
.rating-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0,0,0,0.7);
    color: #ffd700;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 2px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 3px;
}


/* INFO KARTU */
.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 40%, transparent 100%);
    padding: 20px 8px 8px; /* Kurangi dari 30px */
    z-index: 5;
    pointer-events: none;
}



/* INFO KARTU (JUDUL FILM) */
.card-title {
    color: #ffffff;
    font-size: 11px; /* KECIL - YESHD STYLE */
    font-weight: 500; /* Medium weight */
    line-height: 1.3;
    margin-bottom: 2px;
    text-align: center; /* CENTER */
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9); /* Shadow lebih kuat */
}



.card-meta {
    display: none !important;
}

/* ========== HERO DETAIL ========== */
.movie-hero {
    position: relative;
    padding: 80px 0;
    margin-bottom: 10px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    /* PERBAIKAN: Pastikan hero tidak overlap header */
    margin-top: 0;
}

.movie-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(24,22,34,0.7) 0%, rgba(24,22,34,1) 100%);
    backdrop-filter: blur(5px);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-poster {
    width: 240px;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-info {
    flex: 1;
    margin-top: 10px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    line-height: 1.2;
}

.hero-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.hero-meta span {
    background: rgba(255,255,255,0.1);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-desc {
    color: #ccc;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 10px;
    height: auto;        /* Biarkan tinggi menyesuaikan teks */
    overflow: visible;   /* Tampilkan semua teks tanpa scroll */
}

.btn-watch {
    display: inline-block;
    padding: 12px 40px;
    background: var(--accent-primary);
    color: #fff;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(125, 95, 255, 0.3);
    transition: all 0.3s;
}

.hero-actions {
    margin-bottom: 5px; /* Pastikan jarak setelah tombol kecil saja */
}

.btn-watch:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(125, 95, 255, 0.4);
}

.btn-watch:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(125, 95, 255, 0.3);
}

/* ========== PLAYER & SHARE ========== */
.player-container {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    padding-top: 56.25%;
    border: 1px solid #333;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.player-container video,
.player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.share-area {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 40px;
}

.share-label {
    font-weight: bold;
    color: var(--text-muted);
    font-size: 1rem;
    margin-right: 10px;
}

.btn-share {
    padding: 10px 20px;
    border-radius: 5px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.share-wa { background: #25D366; }
.share-fb { background: #1877F2; }
.share-tele { background: #0088cc; }
.share-copy { background: #555; }

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-share:active {
    transform: translateY(0);
}

.btn-share.share-all {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-share.share-all:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-share.share-all:active {
    transform: translateY(0);
}

/* ========== BREADCRUMBS STYLING ========== */
.breadcrumbs {
    font-size: 0.9rem;
    margin: 10px 0 20px 0;
    padding: 10px 0;
    color: var(--text-muted);
    position: relative;
    z-index: 1; /* Pastikan tidak mengganggu menu */
}

.breadcrumbs a {
    color: var(--accent-primary);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.breadcrumbs a:hover {
    color: #fff;
    background-color: rgba(125, 95, 255, 0.1);
    text-decoration: none;
}

.breadcrumbs span {
    color: var(--text-main);
    padding: 4px 8px;
    border-radius: 4px;
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: var(--text-muted);
}

/* PERBAIKAN: Breadcrumb untuk header fixed */
.breadcrumb {
    position: relative;
    z-index: 10;
    /* PERBAIKAN: Tambah margin-top untuk desktop */
    margin-top: 70px;
    background: var(--bg-main);
    padding: 10px 0;
}

/* Responsive breadcrumbs */
@media (max-width: 480px) {
    .breadcrumbs {
        font-size: 0.85rem;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }
    
    .breadcrumbs::-webkit-scrollbar {
        height: 3px;
    }
}

/* ========== PAGINATION ========== */
.pagination-simple {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.pagination-info {
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.movie-count {
    color: var(--text-muted);
    font-size: 0.9em;
    margin-left: 5px;
}

.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* BUTTON UTAMA (PREV/NEXT) */
.pagination-btn {
    padding: 14px 20px;
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    min-width: 100px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.pagination-btn:hover:not(.disabled) {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(125, 95, 255, 0.3);
}

/* BUTTON NOMOR Halaman */
.page-numbers {
    display: flex;
    gap: 8px;
}

.page-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* HOVER EFFECT */
.page-btn:hover:not(.current) {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(125, 95, 255, 0.2);
}

/* ACTIVE STATE (UNTUK MOBILE) */
.pagination-btn:active:not(.disabled),
.page-btn:active:not(.current) {
    transform: scale(0.95);
}

/* CURRENT PAGE - Warna Biru */
.page-btn.current {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-hover) 100%);
    color: white;
    border-color: var(--accent-primary);
    font-weight: bold;
    cursor: default;
    box-shadow: 0 2px 8px rgba(125, 95, 255, 0.3);
    transform: translateY(0);
}

/* DISABLED STATE */
.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--bg-card);
    color: var(--text-muted);
    border-color: var(--border-color);
}

.pagination-btn.disabled:hover {
    background: var(--bg-card);
    color: var(--text-muted);
    border-color: var(--border-color);
    transform: none;
    box-shadow: none;
}

/* RESPONSIVE UNTUK MOBILE */
@media (max-width: 768px) {
    .pagination-nav {
        gap: 8px;
    }
    
    .pagination-btn {
        padding: 12px 16px;
        min-width: 90px;
        min-height: 48px;
        font-size: 0.95rem;
    }
    
    .page-btn {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
    
    .page-numbers {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .pagination-nav {
        gap: 6px;
    }
    
    .pagination-btn {
        padding: 10px 14px;
        min-width: 80px;
        min-height: 46px;
        font-size: 0.9rem;
    }
    
    .page-btn {
        width: 46px;
        height: 46px;
        font-size: 0.95rem;
    }
    
    .page-numbers {
        gap: 5px;
    }
    
    .pagination-info {
        font-size: 0.9rem;
    }
}

@media (max-width: 380px) {
    .pagination-btn {
        padding: 8px 12px;
        min-width: 70px;
        min-height: 44px;
        font-size: 0.85rem;
    }
    
    .page-btn {
        width: 44px;
        height: 44px;
        font-size: 0.9rem;
    }
    
    .page-numbers {
        gap: 4px;
    }
}

/* Untuk layar sangat kecil (tampilan vertikal) */
@media (max-width: 320px) {
    .pagination-nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .page-numbers {
        order: 1;
    }
    
    .prev-btn {
        order: 2;
    }
    
    .next-btn {
        order: 3;
    }
}

/* ========== FOOTER ========== */
footer {
    background-color: var(--bg-footer);
    padding: 50px 20px 30px;
    text-align: center;
    color: var(--text-footer);
    font-size: 0.9rem;
    border-top: 1px solid #333;
    margin-top: 60px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.social-links a {
    color: #fff;
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(125, 95, 255, 0.3);
}

.footer-info p {
    margin-bottom: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-info .disclaimer {
    font-size: 0.8rem;
    opacity: 0.6;
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
}

.author {
    display: inline-block;
    margin-top: 5px;
    opacity: 0.8;
}

.author span {
    color: var(--accent-primary);
    font-weight: bold;
}

/* ========== STATIC PAGES ========== */
.page-hero {
    background: linear-gradient(135deg, var(--bg-header) 0%, var(--bg-card) 100%);
    padding: 60px 20px;
    text-align: center;
    margin-bottom: -40px;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid #333;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.page-subtitle {
    color: var(--text-muted);
    margin-top: 10px;
    font-size: 1rem;
}

.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.page-card {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    border: 1px solid #3e3b52;
    margin-bottom: 50px;
}

/* ========== RESPONSIF TABLET (768px - 1024px) ========== */
@media (max-width: 1024px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px; /* Jarak standar untuk tablet */
    }
    
    /* Search box pada tablet agak diperkecil */
    .search-box input { width: 150px; }
}


/* ========== RESPONSIF MOBILE (Max 768px) ========== */
@media (max-width: 768px) {
    /* PERBAIKAN UTAMA: Padding body untuk mobile */
    body {
        padding-top: 65px !important;
    }

    /* PERBAIKAN: Header Mobile dengan position fixed */
    header {
        height: 65px !important;
        z-index: 9999 !important;
    }
    
    nav {
        padding: 0 15px;
        height: 65px;
    }
    
    .nav-container {
        position: relative;
        justify-content: space-between;
        gap: 10px;
    }
    
    /* 1. Hamburger Menu (Kiri) */
    .hamburger {
        display: block;
        order: 1;
        margin-right: 0;
        font-size: 1.6rem;
    }
    
    /* 2. Logo (Tengah/Fleksibel) */
    .logo-link {
        order: 2;
        margin-right: 0;
        flex: 1;
        justify-content: flex-start;
        min-width: 0;
        overflow: hidden;
    }
    
    .logo-img {
        height: 38px;
        max-width: 100%;
    }
    
    /* 3. Search Bar Statis (Kanan) - PERBAIKAN UTAMA */
    .search-box {
        order: 3;
        margin-left: 0;
        height: 40px;
        padding: 0 10px;
        background: var(--bg-card);
        width: auto;
        flex: 0 1 auto;
        min-width: 120px;
        max-width: 45%;
        border-radius: 20px;
    }
    
    /* Input Selalu Terlihat (Tanpa Toggle) */
    .search-box input {
        width: 100%;
        min-width: 80px;
        opacity: 1;
        padding: 0 5px;
        font-size: 0.85rem;
    }
    
    /* Tombol Search (Icon) */
    .search-box button {
        width: 25px;
        font-size: 1rem;
    }
    
    /* PERBAIKAN: Menu Mobile - Pastikan di bawah header */
    ul.menu {
        display: none;
        position: fixed !important; /* FIXED bukan absolute */
        top: 65px !important; /* Tepat di bawah header */
        left: 0;
        width: 100%;
        background: var(--bg-header);
        flex-direction: column;
        padding: 0;
        border-top: 1px solid #333;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        z-index: 9998 !important; /* Lebih rendah dari header */
        max-height: 80vh;
        overflow-y: auto;
    }
    
    ul.menu.active {
        display: flex;
    }
    
    ul.menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    ul.menu li a {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    /* PERBAIKAN: Breadcrumb untuk mobile */
    .breadcrumb {
        margin-top: 65px !important; /* Sesuaikan dengan tinggi header mobile */
        padding: 8px 0;
    }
    
    /* Dropdown Mobile - Tampil sebagai Sub-Menu Terbuka */
    .dropdown-content {
        position: static;
        display: block;
        background: #0f0d15;
        box-shadow: inset 0 5px 10px rgba(0,0,0,0.2);
        border: none;
        padding: 5px 0;
        margin: 0;
        width: 100%;
        min-width: 100%;
    }
    
    /* Indentasi untuk Sub-Menu */
    .dropdown-content a {
        padding-left: 40px !important;
        font-size: 0.9rem;
        color: var(--text-muted);
        border-bottom: 1px solid rgba(255,255,255,0.02);
    }
    
    .dropdown-content a:hover {
        background: rgba(255,255,255,0.05);
        color: #fff;
    }
    
    /* ✅ Grid Mobile - YESHD STYLE */
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px; /* Seimbang */
        padding: 0 4px;
    }
    
    /* ✅ Font Title - KECIL & CENTER */
    .card-title {
        font-size: 11px !important; /* YESHD: lebih kecil */
        font-weight: 500;
    }
    
    /* ✅ Container - Lebih rapat dari pinggir */
    .container {
        padding: 16px 16px;
    }
    
    /* ✅ Card Info - Compact */
    .card-info {
        padding: 15px 6px 6px;
    }
    
    /* Hero Mobile */
    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .hero-poster {
        width: 160px;
        margin-bottom: 20px;
    }
    
    .hero-title { font-size: 1.6rem; }
    
    .page-hero { 
        padding: 40px 20px; 
        margin-top: 0;
    }
    
    .page-title { font-size: 1.8rem; }
}

/* ========== SMALL MOBILE (Max 400px) ========== */
@media (max-width: 400px) {
    /* Penyesuaian ekstra untuk layar sangat kecil */
    .logo-img {
        max-width: 90px;
        height: 32px;
    }
    
    .search-box {
        min-width: 110px;
        padding: 0 8px;
    }
    
    .search-box input {
        font-size: 0.8rem;
    }
    
    /* ✅ Gap tetap 16px, jangan terlalu rapat */
    .movie-grid {
        gap: 12px; /* Sedikit lebih kecil tapi tidak terlalu rapat */
        padding: 0 2px;
    }
    
    /* ✅ Font lebih kecil untuk layar sempit */
    .card-title {
        font-size: 11px !important;
    }
}

/* ========== UTILITY CLASSES ========== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========== FORM STYLING ========== */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}
.form-input, .form-textarea {
    width: 100%;
    padding: 14px 20px;
    background-color: #12101a;
    border: 1px solid #3e3b52;
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}
.form-input:focus, .form-textarea:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(125, 95, 255, 0.15);
}
.form-textarea { min-height: 150px; resize: vertical; }

/* ========== CONTENT TEXT ========== */
.content-text p { margin-bottom: 15px; color: #ddd; line-height: 1.8; }
.content-text ul { list-style: none; padding-left: 0; }
.content-text li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
}
.content-text li i { color: var(--accent-primary); }

/* ========== LOADING ANIMATION ========== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--accent-primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--accent-primary); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }

/* PERBAIKAN TAMBAHAN: Pastikan semua elemen konten berada di bawah header */
main, .container, .movie-hero, .page-hero {
    position: relative;
    z-index: 1;
}

/* PERBAIKAN: Pastikan tidak ada element dengan z-index lebih tinggi dari header */
* {
    max-z-index: 9998 !important; /* Batasi maksimal z-index selain header */
}

header, nav {
    max-z-index: none !important;
}
/* === REKOMENDASI BLOG STYLE (DARK MODE) === */
.rec-section { 
    margin-top: 50px; 
    border-top: 1px solid #333; 
    padding-top: 20px; 
    padding-bottom: 40px;
}
.rec-header { 
    font-size: 20px; 
    font-weight: 700; 
    margin-bottom: 20px; 
    border-left: 5px solid #007bff; /* Aksen Biru sesuai Tombol */
    padding-left: 15px; 
    color: #fff; 
}

.rec-list { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 15px; 
}

.rec-card {
    display: flex;
    background: #1e293b; /* Biru dongker terang */
    border: 1px solid #334155; /* Garis pinggir dongker tegas */
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: #ddd;
    align-items: flex-start;
    padding: 10px;
    transition: all 0.2s ease;
}

.rec-card:hover { 
    background: #334155; /* Makin terang saat disentuh */
    border-color: #7d5fff; /* Warna garis jadi ungu ngikutin aksen utama */
    transform: translateY(-2px);
}


.rec-info {
    flex: 1;
    padding-right: 12px;
    display: flex;
    flex-direction: column;
}

/* THUMBNAIL PORTRAIT */
.rec-thumb {
    width: 85px;       
    height: 125px;      
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
}

.rec-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rec-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rec-meta { 
    font-size: 11px; 
    color: #bbb;
    margin-bottom: 6px; 
}
.rec-quality {
    display: inline-block;
    background: #d32f2f;
    color: #fff;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
}

.rec-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 5px;
}

/* RESPONSIVE HP */
@media (max-width: 480px) {
    .rec-list { grid-template-columns: 1fr; }
}

/* ============================================
   TOMBOL GENRE (RED STYLE - FINAL)
=============================================== */
.genre-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px; 
    margin-bottom: 20px;
    justify-content: center; /* Biar posisi di tengah (opsional, hapus kalau mau rata kiri) */
}

.btn-genre {
    display: inline-block;
    background: rgba(211, 47, 47, 0.1); /* Latar Merah Transparan */
    color: #ff4d4d;                      /* Teks MERAH TERANG */
    border: 1px solid #ff4d4d;           /* Garis Pinggir MERAH */
    padding: 6px 18px;
    border-radius: 50px;                 /* Bentuk Kapsul/Bulat */
    font-size: 0.9rem;
    font-weight: 600;                    /* Teks agak tebal */
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: capitalize;          /* Huruf depan otomatis besar */
    letter-spacing: 0.5px;
}

.btn-genre:hover {
    background: #ff4d4d;                 /* Merah Full saat disentuh */
    color: #fff;                         /* Teks jadi Putih */
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.6); /* Efek Cahaya Neon */
    transform: translateY(-3px);         /* Efek naik dikit */
}

/* RESPONSIVE HP */
@media (max-width: 480px) {
    .btn-genre {
        padding: 5px 14px;
        font-size: 0.8rem;
    }
}

/* ============================================
   GENRE FOOTER MINIMALIS (KECIL & RAPI)
=============================================== */
.title-genre {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 12px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-genre-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px; 
    justify-content: center;
}

.btn-genre-mini {
    display: inline-block;
    padding: 4px 8px; 
    background: transparent; 
    border: 1px solid #334155; 
    border-radius: 4px; 
    color: #94a3b8; 
    font-size: 11px; 
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-genre-mini:hover {
    background: rgba(125, 95, 255, 0.1); 
    color: #ffffff; 
    border-color: var(--accent-primary); 
    transform: translateY(-2px); 
}

/* ============================================
   FOOTER SPECIAL BUTTONS (CONTACT, JAV, KOREA)
=============================================== */
.special-nav {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px; 
    justify-content: center; 
}

.cat-btn {
    display: inline-flex; 
    align-items: center;
    padding: 4px 8px; 
    border-radius: 4px; 
    font-size: 11px; 
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-netflix {
    background: rgba(229, 9, 20, 0.1) !important; 
    color: #ff4d4d !important; 
    border: 1px solid rgba(229, 9, 20, 0.4) !important; 
}

.btn-netflix:hover {
    background: #e50914 !important; 
    color: #ffffff !important; 
    border-color: #e50914 !important;
    transform: translateY(-1px); 
    box-shadow: 0 4px 10px rgba(229, 9, 20, 0.3); 
}

.btn-netflix svg {
    margin-right: 4px;
    width: 12px; /* <--- INI YANG AKAN MENGECILKAN LOGO RAKSASA */
    height: 12px;
}
