/* --- ANIMASI & UMUM --- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.6s ease-out; }
.section-header { margin: 40px 0 20px; border-left: 4px solid #e50914; padding-left: 15px; }
.section-title { font-size: 1.5rem; color: white; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* --- HERO SLIDER (CAROUSEL) --- */
.hero-section { margin-bottom: 50px; 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; }

/* Background Blur di Belakang Slider */
.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 { color: white; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.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; display: flex; align-items: center; gap: 10px; }
.badge-hd { background: #e50914; padding: 3px 8px; border-radius: 4px; font-weight: bold; font-size: 0.8rem; }

.btn-watch-hero {
    display: inline-block; padding: 12px 30px; background: #e50914; color: white;
    border-radius: 50px; font-weight: bold; font-size: 1rem; transition: 0.3s;
    box-shadow: 0 5px 20px rgba(229, 9, 20, 0.4); text-decoration: none;
}
.btn-watch-hero:hover { background: white; color: #e50914; transform: scale(1.05); }

/* --- MOVIE GRID REFINED --- */
.movie-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px;
}
.movie-card {
    background: #1b1e26; border-radius: 12px; overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s; position: relative; display: block;
    text-decoration: none;
}
.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-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: 0.3s;
}
.movie-card:hover .card-overlay { opacity: 1; }
.play-button {
    width: 50px; height: 50px; background: rgba(229, 9, 20, 0.9);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.5rem; backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.6);
}

.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;
    backdrop-filter: blur(4px); font-weight: 600;
}

.card-detail { padding: 12px; }
.card-detail h3 { font-size: 0.9rem; color: #ddd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.movie-card:hover h3 { color: white; }

/* --- PAGINATION --- */
.pagination-area { margin-top: 50px; text-align: center; display: flex; justify-content: center; align-items: center; gap: 15px; }
.btn-nav {
    padding: 10px 20px; background: #222; color: white; border-radius: 30px;
    border: 1px solid #333; font-weight: 500; transition: 0.3s;
}
.btn-nav:hover { background: #e50914; border-color: #e50914; }
.page-current { color: #888; font-size: 0.9rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .swiper { height: 350px; }
    .slide-poster { display: none; } /* Sembunyikan poster di HP agar teks muat */
    .slide-content { text-align: center; justify-content: center; }
    .slide-info h1 { font-size: 1.8rem; }
    .slide-meta { justify-content: center; }
    .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}