:root {
    --bg-main: #0a0a0c;       /* Hitam Pekat */
    --bg-card: #151518;       /* Abu Gelap */
    --primary: #e50914;       /* Merah Netflix */
    --text-main: #ffffff;
    --text-muted: #8c8c9e;
    --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* NAVBAR */
.navbar {
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky; top: 0; z-index: 1000; padding: 15px 0;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { font-size: 1.5rem; font-weight: 800; color: white; display: flex; align-items: center; gap: 8px; letter-spacing: -1px; }
.brand-icon { color: var(--primary); }

.search-wrapper { position: relative; flex: 1; max-width: 500px; }
.search-wrapper input {
    width: 100%; background: #1f1f22; border: 1px solid #333;
    padding: 10px 15px 10px 40px; border-radius: 50px; color: white;
}
.search-wrapper input:focus { border-color: var(--primary); background: #000; }
.search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #666; }

.btn-login { padding: 8px 20px; background: var(--primary); color: white; border-radius: 4px; font-weight: bold; font-size: 0.9rem; }
.btn-login:hover { background: #b2070f; }

/* HERO SLIDER */
.hero-section { margin-top: 20px; margin-bottom: 40px; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.swiper { width: 100%; height: 450px; }
.swiper-slide { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.slide-backdrop {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    filter: blur(20px) brightness(0.4); transform: scale(1.1);
}
.slide-content { position: relative; z-index: 2; display: flex; gap: 40px; align-items: center; max-width: 1000px; padding: 20px; width: 100%; }
.slide-poster img { width: 220px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.6); transform: rotate(-3deg); border: 2px solid rgba(255,255,255,0.2); }
.slide-info h1 { font-size: 2.5rem; font-weight: 800; margin: 10px 0; line-height: 1.2; }
.slide-meta { font-size: 1rem; color: #ccc; margin-bottom: 25px; }
.badge-hd { background: var(--primary); padding: 3px 8px; border-radius: 4px; font-weight: bold; font-size: 0.8rem; }
.btn-watch-hero { display: inline-block; padding: 12px 30px; background: var(--primary); color: white; border-radius: 50px; font-weight: bold; }

/* MOVIE GRID */
.section-header { margin: 40px 0 20px; border-left: 4px solid var(--primary); padding-left: 15px; }
.section-title { font-size: 1.5rem; color: white; font-weight: 700; text-transform: uppercase; }

.movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
.movie-card { background: var(--bg-card); border-radius: 12px; overflow: hidden; position: relative; display: block; transition: 0.3s; }
.movie-card:hover { transform: translateY(-7px); box-shadow: 0 10px 25px rgba(0,0,0,0.4); z-index: 2; }
.card-img-wrap { position: relative; aspect-ratio: 2/3; overflow: hidden; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.movie-card:hover img { transform: scale(1.1); filter: brightness(0.6); }
.card-detail { padding: 12px; }
.card-detail h3 { font-size: 0.9rem; color: #ddd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.eps-tag { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.7); color: white; padding: 3px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; }

/* PAGINATION & EMPTY STATE */
.pagination-area { margin-top: 50px; text-align: center; display: flex; justify-content: center; gap: 15px; padding-bottom: 50px;}
.btn-nav { padding: 10px 20px; background: #222; color: white; border-radius: 30px; border: 1px solid #333; }
.empty-state { padding: 50px; text-align: center; color: #666; grid-column: 1 / -1; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .slide-poster { display: none; }
    .slide-content { text-align: center; justify-content: center; }
    .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .nav-content { flex-wrap: wrap; }
    .search-wrapper { order: 3; width: 100%; max-width: 100%; margin-top: 10px; }
}