/* --- DRAMA21 ROBUST THEME (Desktop Fixed) --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --bg-main: #181622;
    --bg-card: #242133;
    --bg-header: #12101a;
    --bg-footer: #080012;
    --text-main: #ffffff;
    --text-footer: #dddddd;
    --text-muted: #a8a5c2;
    --accent: #7d5fff;
    --accent-hover: #6c5ce7;
    --hd-bg: #ffc107;
    --hd-text: #000000;
}

/* RESET */
* { 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.5;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex; flex-direction: column;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
img { max-width: 100%; height: auto; display: block; }

/* HEADER */
nav {
    background-color: var(--bg-header);
    height: 70px; /* Tinggi Header Desktop */
    display: flex; align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    position: sticky; top: 0; z-index: 1000;
    padding: 0 20px;
}

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

.logo {
    font-size: 1.8rem; font-weight: 800; color: #fff;
    letter-spacing: 1px; text-transform: uppercase; z-index: 1001;
}
.logo span { color: var(--accent); }

/* MENU DESKTOP */
ul.menu { display: flex; gap: 25px; list-style: none; margin: 0; padding: 0; }
ul.menu li { position: relative; }
ul.menu li a { font-size: 0.95rem; font-weight: 500; color: #ccc; padding: 25px 0; display: block; } /* Padding biar mudah diklik */
ul.menu li a:hover { color: var(--accent); }

/* 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);
    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 */
.search-box { display: flex; background: var(--bg-card); border-radius: 30px; padding: 8px 15px; border: 1px solid #333; }
.search-box input { background: transparent; border: none; color: #fff; width: 200px; font-size: 0.9rem; }
.search-box input:focus { outline: none; }
.search-box button { background: transparent; border: none; color: var(--accent); cursor: pointer; font-size: 1.1rem; }

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

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

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

/* --- GRID FILM (ROBUST SYSTEM) --- */
.movie-grid {
    display: grid;
    /* DEFAULT (DESKTOP): Minimal 180px per kartu */
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px 20px; /* Jarak atas-bawah 25px, kiri-kanan 20px */
}

.card {
    background: var(--bg-card); border-radius: 8px; overflow: hidden;
    position: relative; transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.card:hover { transform: translateY(-7px); z-index: 5; box-shadow: 0 10px 25px rgba(125, 95, 255, 0.2); border: 1px solid var(--accent); }

/* POSTER */
.poster-box { position: relative; width: 100%; padding-top: 145%; background: #000; }
.poster { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.badge-quality { position: absolute; top: 0; right: 0; background: var(--hd-bg); color: var(--hd-text); padding: 3px 8px; font-size: 0.75rem; font-weight: bold; border-radius: 0 0 0 8px; z-index: 2; }

/* INFO KARTU */
.card-info { padding: 12px; }
.card-title { font-size: 0.95rem; font-weight: 500; margin-bottom: 5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; justify-content: space-between; }

/* --- HERO DETAIL --- */
.movie-hero {
    position: relative; padding: 80px 0; margin-bottom: 40px;
    background-size: cover; background-position: center top; background-repeat: no-repeat;
}
.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: 30px; max-height: 150px; overflow-y: auto; }
.btn-watch { display: inline-block; padding: 12px 40px; background: var(--accent); color: #fff; border-radius: 50px; font-weight: bold; font-size: 1.1rem; box-shadow: 0 10px 25px 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; }
.share-wa { background: #25D366; }
.share-fb { background: #1877F2; }
.share-tele { background: #0088cc; }
.share-copy { background: #555; }

/* PAGINATION */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 50px; }
.page-btn { padding: 12px 25px; background: var(--bg-card); color: var(--text-main); border-radius: 6px; font-weight: 500; border: 1px solid #3e3b52; }
.page-btn:hover { background: var(--accent); color: #fff; }

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

/* --- RESPONSIF TABLET (768px - 1024px) --- */
@media (max-width: 1024px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Agak kecil dikit buat tablet */
        gap: 15px;
    }
    .hero-title { font-size: 2rem; }
    .hero-poster { width: 200px; }
}

/* --- RESPONSIF MOBILE (Max 768px) --- */
@media (max-width: 768px) {
    nav { padding: 0 15px; height: 60px; }
    .hamburger { display: block; }
    
    /* Menu Mobile */
    ul.menu { display: none; position: absolute; top: 60px; left: 0; width: 100%; background: var(--bg-header); flex-direction: column; padding: 10px 0; border-top: 1px solid #333; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
    ul.menu.active { display: flex; }
    ul.menu li a { padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .dropdown:hover .dropdown-content { position: static; display: block; background: #181622; box-shadow: none; border: none; padding-left: 20px; }
    
    /* Grid Mobile (2 Kolom Rapi) */
    .movie-grid { 
        grid-template-columns: repeat(2, 1fr); /* Paksa 2 kolom */
        gap: 10px; /* Jarak lebih rapat */
    }
    .card-title { font-size: 0.85rem; }
    .card-meta { font-size: 0.7rem; }
    
    /* Hero Mobile */
    .hero-content { flex-direction: column; align-items: center; text-align: center; }
    .hero-poster { width: 160px; margin-bottom: 20px; }
    .hero-info { width: 100%; }
    .hero-title { font-size: 1.6rem; }
    .hero-meta { justify-content: center; }
    .search-box input { width: 120px; }
}
/* --- FOOTER STYLING UPDATE --- */

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

/* Ikon Medsos */
.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%; /* Bulat */
    transition: 0.3s;
}

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

/* Teks Footer */
.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 & Author */
.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); font-weight: bold; }
