/* === START: KONTEN LENGKAP UNTUK stylenew.css (FIXED RESPONSIVE) === */

/* 1. Base, Fonts & IMDb Theme */
:root {
  --bg: #000000;
  --card-bg-subtle: #111;
  --primary: #e50914; /* Merah Netflix/Badland */
  --text: #ffffff;
  --muted: #aaaaaa;
  --border: #333333;
  --card-border: #333;
  --card-hover-border: #555;
  --card-shadow: 0 4px 15px rgba(0,0,0,.5);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

* { 
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Roboto', 'Inter', system-ui, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}
a:hover { opacity: 0.8; }

.container {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 15px; /* Padding lebih kecil di mobile */
}

.sr-only {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}

/* 2. Header Profesional (RESPONSIVE FIXED) */
.header {
  position: sticky; top: 0; left: 0; right: 0; z-index: 1000;
  background-color: rgba(0,0,0,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 10px 15px;
  
  /* Flex Layout Mobile First */
  display: flex;
  flex-wrap: wrap; /* Izinkan elemen turun baris */
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Brand / Logo */
.brand {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 10px;
  color: var(--primary);
  font-weight: 800; font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  order: 1; /* Posisi 1 di mobile */
}

/* Hamburger (Mobile Only) */
.hamburger {
  display: block;
  background: none; border: none;
  color: var(--text); font-size: 1.8rem;
  cursor: pointer; padding: 5px;
  order: 2; /* Posisi 2 di mobile (sebelah logo) */
}

/* Navigasi Desktop (Hidden di Mobile) */
.nav {
  display: none; /* Default hidden */
  gap: 20px;
}
.nav a { 
  color: #ddd; font-weight: 500; font-size: 0.95rem; 
  text-transform: uppercase; letter-spacing: 0.5px;
}
.nav a:hover { color: var(--primary); }

/* Form Pencarian (Responsive) */
.search {
  position: relative;
  width: 100%; /* Full width di mobile */
  order: 3; /* Turun ke baris baru di mobile */
  margin-top: 5px;
}
.search form { display: flex; width: 100%; }

.search-input {
  width: 100%;
  padding: 10px 15px; padding-right: 40px;
  background: #222; color: var(--text);
  border: 1px solid #444; border-radius: 20px;
  outline: none; font-size: 0.95rem;
  transition: border-color .2s ease, background .2s ease;
}
.search-input:focus { border-color: var(--primary); background: #333; }

.search-btn {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #aaa;
  cursor: pointer; padding: 5px 10px;
}
.search-btn:hover { color: var(--text); }

/* --- DESKTOP BREAKPOINT ( > 768px ) --- */
@media (min-width: 768px) {
  .header {
    flex-wrap: nowrap; /* Satu baris */
    padding: 15px 30px;
    gap: 30px;
  }
  
  .hamburger { display: none; } /* Sembunyikan hamburger */
  
  .nav {
    display: flex; /* Munculkan navigasi */
    order: 2;
    margin-right: auto; /* Dorong search ke kanan */
  }
  
  .search {
    width: auto; min-width: 250px;
    order: 3; margin-top: 0;
  }
}

/* 3. Drawer (Mobile Menu) */
.drawer-backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,.8);
  z-index: 9998; opacity:0; pointer-events:none;
  transition:opacity .3s ease;
}
.drawer-backdrop.show{ opacity:1; pointer-events:auto; }

.drawer{
  position:fixed; top:0; right:0; height:100vh; width:min(80vw, 300px);
  background: #111;
  border-left:1px solid var(--border);
  z-index:9999; transform:translateX(100%); transition:transform .3s ease;
  display:flex; flex-direction:column; padding:20px;
}
.drawer.open{ transform:translateX(0); }
.drawer .brand-mini{ margin-bottom:20px; color:var(--primary); font-weight:800; font-size:1.4rem; }
.drawer nav a{ 
  display:block; padding:12px 0; border-bottom:1px solid #222; 
  color:#ddd; font-size:1rem; font-weight: 500;
}
.drawer nav a:hover{ color:var(--primary); padding-left: 5px; }
.drawer .close-row{ display:flex; justify-content:flex-end; margin-bottom:10px; }
.drawer .btn-close{ background:none; border:none; color:#fff; font-size:1.5rem; cursor:pointer; }


/* 4. Live Search Dropdown */
.live-search{
  position:absolute; top:100%; left:0; right:0; z-index:999;
  background: #1a1a1a;
  border:1px solid var(--border); border-radius: 8px;
  margin-top:5px; padding:5px;
  display:none; max-height:60vh; overflow:auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.live-search.show{ display:block; }
.live-empty{ padding:15px; color:var(--muted); text-align: center; }
.live-item{
  display:flex; align-items:center; gap:12px;
  padding:8px; border-radius:4px; cursor:pointer;
  border-bottom: 1px solid #222;
}
.live-item:last-child { border-bottom: none; }
.live-item:hover{ background:#333; }
.live-thumb{ width:40px; height:60px; background:#000; border-radius:4px; overflow:hidden; flex-shrink: 0; }
.live-thumb img{ width:100%; height:100%; object-fit:cover; }
.live-meta{ flex: 1; min-width: 0; }
.live-title{ font-weight:600; font-size:0.95rem; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.live-sub{ color:var(--muted); font-size:.8rem; }

/* 5. Main Content Spacing */
main.container { padding-top: 30px; padding-bottom: 40px; }
.section { padding: 20px 0; }
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; border-left: 4px solid var(--primary); padding-left: 15px;
}
.section-head h2 { font-size: 1.4rem; font-weight: 700; color: #fff; margin: 0; }
.section-head a { color: var(--primary); font-size: 0.9rem; font-weight: 600; }

/* 6. Footer (Profesional) */
footer {
  background: #0a0a0a; border-top: 1px solid #222;
  padding: 50px 0 20px; margin-top: 50px; color: #888;
}
footer h3 { color: #fff; font-size: 1.1rem; margin-bottom: 15px; font-weight: 600; }
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 8px; }
footer a { color: #888; font-size: 0.9rem; transition: color 0.2s; }
footer a:hover { color: var(--primary); }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 30px; }
footer .footer-links-columns { columns: 2; }
footer .bottom { border-top: 1px solid #222; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; }

/* === STYLING CARD (SUDAH DIPERBAIKI SEBELUMNYA DI partials/card.php) === */
/* Style card sekarang dihandle langsung di file partials/card.php agar modular. 
   Namun jika ada elemen global yang butuh reset, biarkan di sini. */

/* === END: stylenew.css === */