/* DracinKu — "midnight theater": cinematic dark, merah-emas, mobile-first */
:root {
  --bg: #0d0b10;
  --bg-2: #16121c;
  --panel: #1d1725;
  --line: #2e2438;
  --text: #f2ecf5;
  --muted: #a898b8;
  --red: #e0293b;
  --red-deep: #8f1524;
  --gold: #e8b54d;
  --radius: 14px;
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background:
    radial-gradient(60% 40% at 50% -5%, rgba(224, 41, 59, .22), transparent 70%),
    radial-gradient(40% 30% at 90% 20%, rgba(232, 181, 77, .07), transparent 70%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}
/* grain overlay */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.wrap { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 0 18px 60px; }

/* header */
header.site { display: flex; align-items: baseline; gap: 10px; padding: 22px 0 8px; }
.brand {
  font-family: var(--font-display); font-size: 30px; letter-spacing: .04em;
  color: var(--text); text-decoration: none; text-transform: uppercase;
}
.brand em { font-style: normal; color: var(--red); }
.brand-dot { color: var(--gold); }
.tagline { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* hero (home) */
.hero { padding: 26px 0 10px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(38px, 9vw, 64px); line-height: .98; letter-spacing: .01em;
}
.hero h1 .accent { color: var(--red); display: block; }
.hero p { color: var(--muted); margin-top: 14px; max-width: 46ch; }
.hero .rule { height: 3px; width: 74px; background: linear-gradient(90deg, var(--red), var(--gold)); margin-top: 20px; border-radius: 2px; }

/* drama cards */
.grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 30px; }
@media (min-width: 560px) { .grid { grid-template-columns: 1fr 1fr; } }
.card {
  position: relative; display: block; text-decoration: none; color: inherit;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s ease, border-color .25s ease;
  animation: rise .6s ease backwards;
}
.card:nth-child(2) { animation-delay: .08s; }
.card:nth-child(3) { animation-delay: .16s; }
.card:nth-child(4) { animation-delay: .24s; }
.card:hover { transform: translateY(-4px); border-color: var(--red); }
.card .thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.card:hover .thumb img { transform: scale(1.05); }
.card .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13, 11, 16, .92));
}
.card .eps {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--red); color: #fff; font-weight: 700; font-size: 11px;
  padding: 4px 9px; border-radius: 99px; letter-spacing: .06em; text-transform: uppercase;
}
.card .body { padding: 14px 16px 18px; margin-top: -34px; position: relative; z-index: 2; }
.card h2 { font-family: var(--font-display); font-weight: 400; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: 11px; color: var(--gold); border: 1px solid rgba(232, 181, 77, .35); padding: 2px 8px; border-radius: 99px; }
.card .cta { margin-top: 12px; font-weight: 700; font-size: 13px; color: var(--red); letter-spacing: .04em; }
.card .cta::after { content: " →"; }

/* drama page */
.back { display: inline-block; color: var(--muted); text-decoration: none; font-size: 13px; margin: 14px 0 4px; }
.back:hover { color: var(--text); }
.d-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 7.5vw, 48px); line-height: 1.02; margin-top: 8px; }
.d-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 4px; }
.d-meta .badge { background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 99px; text-transform: uppercase; letter-spacing: .06em; }
.player-shell {
  margin-top: 16px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #000;
  box-shadow: 0 18px 50px -18px rgba(224, 41, 59, .45);
}
.player-shell iframe { width: 100%; aspect-ratio: 16/9; display: block; border: 0; }
.now-playing { font-size: 13px; color: var(--muted); margin-top: 10px; }
.now-playing b { color: var(--gold); }

.syn { margin-top: 22px; color: var(--muted); }
.syn strong { color: var(--text); }

/* episode grid */
.ep-head { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 12px; }
.ep-head h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 22px; letter-spacing: .03em; }
.ep-head span { font-size: 12px; color: var(--muted); }
.ep-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
@media (min-width: 560px) { .ep-grid { grid-template-columns: repeat(8, 1fr); } }
.ep {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1; border-radius: 10px; font-weight: 700; font-size: 14px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text);
  text-decoration: none; cursor: pointer; transition: transform .15s ease, border-color .15s ease;
}
.ep:hover { transform: translateY(-2px); }
.ep.free { border-color: rgba(224, 41, 59, .6); }
.ep.free.active { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 6px 18px -6px rgba(224, 41, 59, .8); }
.ep.locked { color: var(--muted); }
.ep.locked::after {
  content: "🔒"; position: absolute; top: -5px; right: -4px; font-size: 10px;
  filter: grayscale(1) brightness(1.4);
}
.ep.locked:hover { border-color: var(--gold); color: var(--gold); }

/* CTA lanjut nonton */
.cta-box {
  margin-top: 26px; padding: 22px 20px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(224, 41, 59, .16), rgba(232, 181, 77, .08)), var(--panel);
  border: 1px solid rgba(232, 181, 77, .35); text-align: center;
}
.cta-box h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 20px; letter-spacing: .03em; }
.cta-box p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.btn-gold {
  display: inline-block; margin-top: 14px; padding: 13px 30px; border-radius: 99px;
  background: linear-gradient(180deg, #f3c86a, var(--gold)); color: #241a05;
  font-weight: 800; text-decoration: none; font-size: 15px; letter-spacing: .02em;
  box-shadow: 0 10px 26px -8px rgba(232, 181, 77, .55);
  transition: transform .15s ease;
}
.btn-gold:hover { transform: translateY(-2px); }

/* rekap + faq (SEO) */
.article { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 24px; }
.article h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 22px; margin-bottom: 12px; letter-spacing: .03em; }
.article p { color: var(--muted); margin-bottom: 12px; }
.faq details {
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2);
  padding: 12px 16px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.faq p { margin: 10px 0 2px; font-size: 14px; }

/* ad slots */
.ad-slot { margin: 26px 0 0; display: flex; justify-content: center; }
.ad-slot:empty { display: none; }

footer.site {
  margin-top: 50px; border-top: 1px solid var(--line); padding-top: 18px;
  font-size: 12px; color: var(--muted);
}
footer.site a { color: var(--gold); text-decoration: none; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
