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

:root { /* ... Variabel warna sama ... */ }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: #121212; color: #fff; font-family: 'Poppins', sans-serif; }

/* --- HEADER --- */
header { background-color: transparent; padding: 15px 2%; position: fixed; top: 0; width: 100%; z-index: 1000; transition: background-color 0.3s; }
header.scrolled { background-color: #1e1e1e; }
.header-container { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 20px; }
.header-left { display: flex; align-items: center; gap: 30px; flex-shrink: 0; }
.logo { font-size: 1.8rem; font-weight: 700; color: #e50914; text-decoration: none; text-transform: uppercase; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 20px; }
.main-nav a, .lang-icon { color: #fff; text-decoration: none; font-weight: 600; transition: color 0.3s; padding: 5px 0; font-size: 0.95rem; white-space: nowrap; }
.header-right { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
#searchForm { display: flex; }
.search-input { width: 180px; padding: 8px; border: 1px solid #888; border-radius: 5px 0 0 5px; background-color: #121212; color: #fff; font-size: 0.9rem; }
.search-button { padding: 8px 12px; border: none; background-color: #e50914; color: #fff; border-radius: 0 5px 5px 0; cursor: pointer; font-size: 0.9rem; }
.dropdown { position: relative; }
.dropdown > a { cursor: pointer; }
.dropdown-content { display: none; position: absolute; top: 150%; background-color: rgba(0,0,0,0.9); border-top: 3px solid #e50914; min-width: 180px; box-shadow: 0 8px 16px rgba(0,0,0,0.2); z-index: 1; max-height: 400px; overflow-y: auto; border-radius: 0 0 4px 4px; }
.dropdown.open .dropdown-content { display: block; }
.dropdown-content a { color: #fff; padding: 10px 15px; text-decoration: none; display: block; font-weight: 400; white-space: nowrap; }
.lang-dropdown .dropdown-content { left: auto; right: 0; min-width: 160px; }
.lang-icon { font-size: 1.5rem; cursor: pointer; }
.lang-option { display: flex; align-items: center; gap: 10px; }
.lang-option .checkmark { font-weight: bold; color: #e50914; opacity: 0; }
.lang-option.active .checkmark { opacity: 1; }

/* --- KONTEN & LAYOUT --- */
#hero-banner { height: 90vh; background-size: cover; background-position: center top; display: flex; align-items: flex-end; padding: 0 5%; position: relative; color: white; margin-bottom: -100px; }
#hero-banner::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(18, 18, 18, 0) 50%, rgba(18, 18, 18, 1) 95%);}
.hero-content { position: relative; z-index: 2; max-width: 50%; margin-bottom: 150px; }
.hero-title { font-size: 3.5rem; }
.hero-overview { font-size: 1.1rem; }
.hero-buttons button { padding: 12px 30px; font-size: 1.1rem; }

/* PERBAIKAN KRUSIAL UNTUK LAYOUT HALAMAN HASIL */
#main-content-area {
    padding-top: 100px; /* Jarak dari header yang fixed */
    position: relative;
    z-index: 10;
    min-height: 50vh;
}
.hero-banner-active #main-content-area {
    padding-top: 20px; /* Kembalikan padding normal saat ada banner */
}
.results-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 5% 20px 5%;
}
.movie-row { margin-bottom: 40px; }
.row-title { font-size: 1.8rem; font-weight: 600; margin-left: 5%; margin-bottom: 15px; }
.row-content { display: flex; overflow-x: auto; overflow-y: hidden; padding: 0 5% 20px 5%; gap: 15px; }
.row-content::-webkit-scrollbar { display: none; }
.movie-card { background-color: #1e1e1e; border-radius: 5px; overflow: hidden; position: relative; transition: transform 0.2s ease-in-out; cursor: pointer; flex-shrink: 0; width: 200px; }
.movie-card:hover { transform: scale(1.08); z-index: 10; }
.movie-card img { width: 100%; height: 300px; object-fit: cover; display: block; }
.movie-grid { padding: 0 5%; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 25px; }

/* ... (Gaya Modal sama persis, tidak perlu diubah) ... */
.modal-backdrop { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: 9999; }
.modal { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9); background-color: #1e1e1e; width: 90%; max-width: 800px; max-height: 90vh; overflow-y: auto; border-radius: 10px; z-index: 10000; transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; opacity: 0; }
.modal.open { display: block; transform: translate(-50%, -50%) scale(1); opacity: 1; }
.modal-backdrop.open { display: block; }
.modal-content { padding: 30px; position: relative; }
.close-button { position: absolute; top: 15px; right: 20px; font-size: 2.5rem; color: #888; cursor: pointer; transition: color 0.3s; }
.close-button:hover { color: #fff; }
.modal-body-content { display: flex; gap: 30px; margin-bottom: 30px; }
.modal-poster img { width: 250px; border-radius: 8px; }
.modal-details h2 { font-size: 2rem; color: #e50914; margin-bottom: 10px; }
.modal-details p { margin-bottom: 10px; line-height: 1.7; }
.modal-details .genres { margin: 15px 0; }
.genres span { background-color: #121212; padding: 5px 10px; border-radius: 15px; font-size: 0.9rem; margin-right: 8px; margin-bottom: 8px; display: inline-block; }
.rating { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; margin-bottom: 15px; }
.rating .star { color: #f5c518; font-size: 1.5rem; }
.rating .score { font-weight: 600; }
.cast-section h3, .trailer-container h3 { font-size: 1.5rem; margin-bottom: 15px; border-top: 1px solid #888; padding-top: 20px; }
.cast-list { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 15px; }
.cast-list::-webkit-scrollbar { height: 8px; }
.cast-list::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }
.cast-card { text-align: center; flex-shrink: 0; width: 100px; }
.cast-photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; background-color: #333; }
.cast-name { font-size: 0.9rem; font-weight: 600; }
.trailer-container { margin-top: 30px; }
.trailer-container iframe { width: 100%; height: 315px; border: none; border-radius: 8px; }