/* Palet mengikuti logo DutaMovie21: ungu neon, magenta, dan sian di atas ungu tua
   (bukan hitam), supaya logo & poster tetap menonjol tanpa bertabrakan warnanya. */
:root {
  --bg: #171233;
  --bg-top: #1e1748;
  --surface: #241c4d;
  --surface-2: #2e2560;
  --border: #3a2f6b;
  --text: #efebff;
  --muted: #ada2d0;
  --accent: #a855f7;
  --accent-2: #ec4899;
  --cyan: #22d3ee;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 68px;
  --container: min(var(--max), calc(100% - 2 * var(--gutter)));
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  /* Cahaya ungu & sian yang lembut di bagian atas — menghidupkan latar tanpa mengganggu poster. */
  background:
    radial-gradient(1100px 560px at 10% -12%, rgba(168, 85, 247, .22), transparent 62%),
    radial-gradient(900px 480px at 88% -6%, rgba(34, 211, 238, .14), transparent 58%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 46%);
  background-attachment: fixed;
  background-color: var(--bg);
  color: var(--text);
  font: 15px/1.55 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* Footer tetap di dasar layar pada halaman pendek. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1; }

a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Header ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: linear-gradient(to bottom, rgba(16, 11, 38, .82), rgba(16, 11, 38, 0));
  transition: background-color .25s ease, box-shadow .25s ease;
}
.topbar.is-scrolled {
  background: rgba(23, 18, 51, .86);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}

.topbar-inner {
  width: var(--container);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img {
  display: block;
  height: 40px;
  width: auto;
  /* Logo berlatar transparan: sedikit cahaya agar tetap tegas di atas gambar hero. */
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .55));
  transition: opacity .15s;
}
.brand:hover img { opacity: .85; }

.search { position: relative; margin-left: auto; }
.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, .5);
  pointer-events: none;
}
.search input {
  width: 260px;
  height: 40px;
  padding: 0 14px 0 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  transition: width .25s ease, background-color .2s, border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: rgba(255, 255, 255, .45); }
.search input:hover { background: rgba(255, 255, 255, .09); }
.search input:focus {
  outline: none;
  width: 320px;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .28);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, .18);
}

/* ---------- Tata letak ---------- */

#app { padding: calc(var(--header-h) + 32px) 0 80px; }
/* Semua blok halaman berbagi lebar kontainer; hero beranda sengaja selebar layar. */
#app > * { width: var(--container); margin-left: auto; margin-right: auto; }
#app > .hero-bleed { width: 100%; }
#app:has(> .hero-bleed:first-child) { padding-top: 0; }

.placeholder {
  color: var(--muted);
  text-align: center;
  padding: 64px 0;
}

[hidden] { display: none !important; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  position: relative;
  padding: 8px 0;
  color: rgba(255, 255, 255, .68);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  transition: color .15s;
}
.nav a:hover { color: #fff; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- 18+ ---------- */

.small { font-size: 13px; }

.adult-pill {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  background: #f43f5e;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .02em;
}
.adult-pill.big { font-size: 20px; padding: 4px 14px; border-radius: 10px; }
.nav a.nav-adult {
  padding: 3px 8px;
  border: 1px solid rgba(244, 63, 94, .5);
  border-radius: 6px;
  color: #ff93a8;
  font-size: 12.5px;
  font-weight: 700;
}
.nav a.nav-adult::after { display: none; }
.nav a.nav-adult[aria-current="page"] { background: rgba(244, 63, 94, .22); color: #fff; }

.adult-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border: 1px solid rgba(244, 63, 94, .4);
  border-radius: 10px;
  background: rgba(244, 63, 94, .08);
  color: var(--muted);
  font-size: 13px;
}

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.tab {
  padding: 8px 14px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 600;
}
.tab:hover { color: var(--text); }
.tab[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.tabs-adult .tab[aria-current="page"] { border-bottom-color: #f43f5e; }
.page-head + .tabs { margin-top: -4px; }
.tabs + .small { margin: -8px 0 16px; }

.age-gate {
  max-width: 460px;
  margin: 48px auto;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  text-align: center;
}
.age-gate h1 { margin: 16px 0 8px; font-size: 24px; }
.age-gate p { margin: 0 0 20px; color: var(--muted); }
.age-gate-actions { display: flex; flex-direction: column; gap: 10px; }
.age-gate-actions .btn { justify-content: center; }

/* ---------- Halaman daftar (grid) ---------- */

.page-head { margin-bottom: 20px; }
.page-head h1 { margin: 0 0 4px; font-size: 28px; letter-spacing: -.02em; }
.page-head p { margin: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 22px 14px;
}

.load-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 0 8px;
  min-height: 80px;
}

.muted { color: var(--muted); }
.link { color: var(--accent); }

/* ---------- Tombol ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color .15s, transform .15s, filter .15s;
}
.btn:hover { background: rgba(255, 255, 255, .16); }
.btn:active { transform: scale(.98); }
.btn svg { flex-shrink: 0; }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #ec4899);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(168, 85, 247, .8);
}
.btn.primary:hover { filter: brightness(1.08); }
/* Tombol putar utama ala layanan streaming: putih solid. */
.btn.play { background: #fff; border-color: #fff; color: #171233; }
.btn.play:hover { background: rgba(255, 255, 255, .86); }
.btn.lg { min-height: 50px; padding: 0 26px; font-size: 15.5px; border-radius: 12px; }

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--muted); }

/* ---------- Hero ---------- */

.hero {
  --edge: 40px; /* jarak isi hero dari tepi */
  position: relative;
  aspect-ratio: 16 / 7;
  min-height: 360px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 40px;
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
}
.hero-slide.active { opacity: 1; visibility: visible; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.06);
  transition: transform 8s ease-out;
}
.hero-slide.active img { transform: scale(1); }

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(23, 18, 51, .95) 0%, rgba(23, 18, 51, .7) 30%, rgba(23, 18, 51, 0) 65%),
    linear-gradient(to top, rgba(23, 18, 51, .9) 0%, rgba(23, 18, 51, 0) 45%);
}

.hero-body {
  position: absolute;
  left: var(--edge);
  bottom: 64px;
  width: min(560px, calc(100% - 2 * var(--edge)));
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}
.hero-eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.hero-body h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.2vw, 58px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(23, 18, 51, .55);
}

.hero-meta {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .78);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 14.5px;
  font-weight: 500;
}
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .4); }

.hero-rating { display: inline-flex; align-items: center; gap: 4px; color: #ffc940; font-weight: 700; }
.hero-rating svg { margin-top: -1px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(23, 18, 51, .45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s, background-color .2s;
}
.hero-arrow:hover { background: rgba(23, 18, 51, .7); }
.hero:hover .hero-arrow, .hero-arrow:focus-visible { opacity: 1; }
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }

/* Indikator slide berupa bar progres yang terisi selama slide tampil. */
.hero-dots {
  position: absolute;
  left: var(--edge);
  bottom: 28px;
  z-index: 3;
  display: flex;
  gap: 6px;
}
.hero-dots button {
  position: relative;
  width: 26px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, .28);
  overflow: hidden;
  cursor: pointer;
}
.hero-dots button::before { content: ""; position: absolute; inset: -10px 0; } /* area klik lebih besar */
.hero-dots button span {
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}
.hero-dots button[aria-current="true"] { width: 44px; }
.hero-dots button[aria-current="true"] span { animation: hero-progress var(--rotate, 7000ms) linear forwards; }
.hero.is-paused .hero-dots button[aria-current="true"] span { animation-play-state: paused; }
@keyframes hero-progress { to { transform: scaleX(1); } }

/* Varian beranda: selebar layar, header melayang di atasnya, rak pertama menumpuk. */
.hero.hero-bleed {
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2));
  aspect-ratio: auto;
  height: clamp(480px, 84vh, 780px);
  min-height: 0;
  margin-bottom: 0;
  border-radius: 0;
  background: #0d0922;
}
.hero-bleed .hero-slide::after {
  background:
    linear-gradient(to bottom, rgba(23, 18, 51, .6) 0%, rgba(23, 18, 51, 0) 22%),
    linear-gradient(to right, rgba(23, 18, 51, .92) 0%, rgba(23, 18, 51, .6) 30%, rgba(23, 18, 51, 0) 62%),
    linear-gradient(to top, var(--bg) 0%, rgba(23, 18, 51, .75) 18%, rgba(23, 18, 51, 0) 48%);
}
.hero-bleed .hero-body { bottom: clamp(120px, 20vh, 190px); }
.hero-bleed .hero-dots { left: auto; right: var(--edge); bottom: clamp(128px, 21vh, 198px); }
.hero-bleed .hero-arrow.prev { left: calc(var(--edge) - 62px); }
.hero-bleed .hero-arrow.next { right: calc(var(--edge) - 62px); }
@media (max-width: 1500px) {
  .hero-bleed .hero-arrow.prev { left: 12px; }
  .hero-bleed .hero-arrow.next { right: 12px; }
}
#app > .hero-bleed + .shelves,
#app > .hero-bleed + .loading-note { position: relative; z-index: 2; margin-top: -84px; }
#app > .hero-bleed + .loading-note + .shelf { position: relative; z-index: 2; }

/* ---------- Rak judul ---------- */

.shelf { margin-bottom: 40px; }

.shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.shelf-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
}
/* Garis aksen kecil di kiri judul rak, mengambil warna gradien logo. */
.shelf-head h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  margin-right: 10px;
  vertical-align: -3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--accent) 55%, var(--accent-2));
}

.shelf-nav { display: flex; gap: 6px; }
.shelf-head h2 { margin-right: auto; }
.shelf-more {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.shelf-more::after { content: " ›"; }
.shelf-more:hover { color: var(--accent); }

.shelf-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 168px;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.shelf-track::-webkit-scrollbar { display: none; }

.card {
  display: block;
  scroll-snap-align: start;
  min-width: 0;
}

.card-poster {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 10px 26px -18px rgba(13, 9, 34, .95);
  transition: box-shadow .25s ease, transform .25s ease;
}
a.card:hover .card-poster {
  box-shadow: 0 16px 34px -18px rgba(168, 85, 247, .65);
  transform: translateY(-2px);
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
a.card:hover .card-poster img { transform: scale(1.05); }
a.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

.card-rating, .card-badge, .card-upcoming {
  position: absolute;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(13, 9, 34, .78);
}
.card-rating { top: 8px; right: 8px; color: #ffc940; }
.card-badge { top: 8px; left: 8px; }
.card-upcoming { left: 8px; bottom: 8px; background: var(--accent); color: #fff; }

.card-title {
  margin-top: 8px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Status muat ---------- */

.is-loading { position: relative; overflow: hidden; }
.card.is-loading .card-title { height: 14px; width: 80%; background: var(--surface); border-radius: 4px; }
.shelf-head h2.is-loading { width: 220px; background: var(--surface); border-radius: 6px; }
.is-loading::after, .card.is-loading .card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .05), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.loading-note { color: var(--muted); font-size: 13px; margin: -16px 0 24px; }

/* ---------- Trailer ---------- */

dialog.trailer {
  width: min(960px, 94vw);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0d0922;
  color: var(--text);
  overflow: hidden;
}
dialog.trailer::backdrop { background: rgba(13, 9, 34, .82); }
.trailer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 16px;
  background: var(--surface);
}
.trailer-title { font-weight: 600; }
dialog.trailer video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0d0922; }

/* ---------- Halaman judul ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.title-page {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}
.title-page.is-busy .title-info > :not(h1) { opacity: .6; }
.title-page h1 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 36px); line-height: 1.15; text-wrap: balance; }
.title-poster { display: block; width: 100%; border-radius: 12px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); }
.title-info .hero-meta { margin-bottom: 12px; }
.title-info .hero-actions { margin-bottom: 4px; }
.title-desc { max-width: 65ch; line-height: 1.65; margin: 20px 0; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 20px; padding: 0; }
.chips li {
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  margin: 0;
  font-size: 14px;
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.episodes { margin-top: 40px; }
.episodes-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.episodes-head h2 { margin: 0; font-size: 20px; }
.season-pick select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 8px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
a.episode-chip:hover, a.episode-chip:focus-visible { border-color: var(--accent); color: var(--accent); }

/* ---------- Pemutar ---------- */

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 78vh;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: #0d0922;
}
.player-shell video { display: block; width: 100%; height: 100%; background: #0d0922; }
.player-shell video::cue { background: rgba(0, 0, 0, .65); font-size: 1.05em; }

.player-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 16px 0 8px;
}
.player-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.player-title strong { font-size: 18px; }
.link-muted { color: var(--muted); font-size: 14px; }
.link-muted:hover { color: var(--text); }
.player-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.select-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}
.select-pill select {
  padding: 6px 8px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.episode-chip {
  display: block;
  padding: 10px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 14px;
}
.notice {
  margin-top: 24px;
  padding: 12px 14px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 960px) {
  .topbar-inner { gap: 24px; }
  .nav { gap: 20px; }
  .search input, .search input:focus { width: 220px; }
}

@media (max-width: 720px) {
  /* Header dua baris: logo + cari, lalu menu yang bisa digeser. */
  :root { --header-h: 108px; }
  .topbar-inner {
    flex-wrap: wrap;
    align-content: center;
    gap: 10px 16px;
  }
  .brand img { height: 32px; }
  .search { flex: 1; min-width: 0; }
  .search input, .search input:focus { width: 100%; height: 38px; }
  .nav {
    order: 3;
    width: 100%;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .topbar { background: linear-gradient(to bottom, rgba(16, 11, 38, .92) 40%, rgba(16, 11, 38, 0)); }

  .hero { --edge: 20px; aspect-ratio: auto; height: 440px; border-radius: 14px; }
  .hero-slide::after {
    background: linear-gradient(to top, rgba(23, 18, 51, .97) 0%, rgba(23, 18, 51, .55) 50%, rgba(23, 18, 51, 0) 80%);
  }
  .hero-body { bottom: 52px; }
  .hero-body h1 { font-size: clamp(28px, 8vw, 38px); }
  .hero-meta { margin-bottom: 18px; font-size: 13.5px; }
  /* Belasan slide tidak muat sebagai bar tetap: bagi rata selebar hero. */
  .hero-dots { bottom: 22px; right: var(--edge); gap: 4px; }
  .hero-dots button, .hero-dots button[aria-current="true"] { flex: 1; width: auto; min-width: 0; }
  .hero-dots button[aria-current="true"] { flex: 2.5; }
  .hero-arrow { display: none; }
  .btn.lg { min-height: 46px; padding: 0 20px; font-size: 15px; }

  .hero.hero-bleed { --edge: var(--gutter); height: min(88vh, 620px); }
  .hero-bleed .hero-slide::after {
    background:
      linear-gradient(to bottom, rgba(23, 18, 51, .7) 0%, rgba(23, 18, 51, 0) 30%),
      linear-gradient(to top, var(--bg) 0%, rgba(23, 18, 51, .8) 30%, rgba(23, 18, 51, 0) 70%);
  }
  .hero-bleed .hero-body { bottom: 96px; }
  .hero-bleed .hero-dots { left: var(--edge); right: var(--edge); bottom: 72px; }
  #app > .hero-bleed + .shelves,
  #app > .hero-bleed + .loading-note { margin-top: -40px; }

  .shelf-nav { display: none; }
  .shelf-track { grid-auto-columns: 40vw; gap: 10px; }
  .title-page { grid-template-columns: 1fr; }
  .title-poster { max-width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide img, .card-poster img { transition: none; }
  .hero-slide.active img { transform: none; }
  .hero-dots button[aria-current="true"] span { animation: none; transform: scaleX(1); }
  .is-loading::after, .card.is-loading .card-poster::after { animation: none; }
}

/* ---------- Footer ---------- */

.footer {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(46, 37, 96, .35), rgba(23, 18, 51, .9));
  color: var(--muted);
  font-size: 14px;
}
.footer-inner {
  width: var(--container);
  margin: 0 auto;
  padding: 44px 0 36px;
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(150px, 1fr));
  gap: 32px 40px;
  align-items: start;
}
.footer-logo { display: block; height: 34px; width: auto; margin-bottom: 16px; }
.footer-brand p { margin: 0; max-width: 42ch; line-height: 1.65; }

.footer-col h2 {
  margin: 6px 0 16px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
/* Kategori dibagi dua kolom seperti kolom lain yang lebih pendek. */
.footer-col-wide ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 24px; }
.footer-col a { transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-social a { display: inline-flex; align-items: center; gap: 9px; }
.footer-social svg { flex-shrink: 0; opacity: .75; }
.footer-social a:hover svg { opacity: 1; }

.footer-bottom {
  width: var(--container);
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  font-size: 13px;
}
.footer-social-handle { color: var(--accent); font-weight: 600; }

@media (max-width: 860px) {
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-col-wide ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
