/* ==========================================================================
   DRACHINO — design system
   Palet "flame": crimson -> amber. Gelap, sinematik, ramah layar kecil.
   ========================================================================== */

:root {
  --bg: #08080b;
  --bg-2: #0d0d12;
  --surface: #14141b;
  --surface-2: #1c1c25;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f6f6f8;
  --muted: #9a9aa8;
  --muted-2: #6d6d7a;
  --brand: #ff2e63;
  --brand-2: #ff7a18;
  --brand-grad: linear-gradient(135deg, #ff2e63 0%, #ff7a18 100%);
  --gold: #ffc861;
  --ok: #45d6a5;
  --danger: #ff4d6d;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #050507;
  color: var(--text);
  font-family: var(--font);
  overscroll-behavior: none;
}

body {
  display: grid;
  place-items: center;
  background:
    radial-gradient(900px 600px at 20% -10%, rgba(255, 46, 99, 0.1), transparent 60%),
    radial-gradient(700px 500px at 110% 110%, rgba(255, 122, 24, 0.08), transparent 55%),
    #050507;
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.tiny { font-size: 11px; line-height: 1.35; }
.muted { color: var(--muted); }
.wordmark { font-weight: 800; letter-spacing: 0.14em; }
.wordmark.sm { font-size: 14px; letter-spacing: 0.18em; }

/* ---------------------------------------------------------------- frame -- */
.phone {
  position: relative;
  width: min(430px, 100vw);
  height: min(932px, 100vh);
  height: min(932px, 100dvh);
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 520px) and (min-height: 780px) {
  .phone {
    border-radius: 42px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8), 0 0 0 10px #0b0b0f, 0 0 0 11px rgba(255, 255, 255, 0.06);
  }
}

.frame-hint { display: none; }

.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: var(--bg);
}
.screen.active { display: flex; }

/* --------------------------------------------------------------- splash -- */
.splash {
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(520px 380px at 50% 32%, rgba(255, 46, 99, 0.22), transparent 70%),
    radial-gradient(420px 320px at 50% 78%, rgba(255, 122, 24, 0.14), transparent 70%),
    #08080b;
}
.splash-mark { text-align: center; animation: rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.splash-mark svg { margin: 0 auto 18px; filter: drop-shadow(0 12px 30px rgba(255, 46, 99, 0.45)); }
.splash .wordmark { font-size: 30px; }
.tagline { margin-top: 8px; color: var(--muted); font-size: 13px; letter-spacing: 0.02em; }
.splash-foot { position: absolute; bottom: 54px; left: 0; right: 0; text-align: center; }
.loader {
  width: 120px; height: 3px; margin: 0 auto 12px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.1); overflow: hidden;
}
.loader span {
  display: block; height: 100%; width: 40%; border-radius: 3px;
  background: var(--brand-grad);
  animation: slide 1.1s ease-in-out infinite;
}
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(320%); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ----------------------------------------------------------- onboarding -- */
.onboard { padding: calc(16px + env(safe-area-inset-top, 0px)) 18px calc(16px + var(--safe-b)); }
.ob-head { display: flex; align-items: center; gap: 12px; }
.ob-progress { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.ob-progress > div { height: 100%; width: 20%; background: var(--brand-grad); border-radius: 4px; transition: width 320ms ease; }
.ob-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.ob-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.ob-sub { font-size: 12.5px; max-width: 30ch; }
.ob-cards { display: grid; gap: 12px; margin-top: 14px; }
.ob-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden; height: 148px;
  border: 1px solid var(--line-strong); background: var(--surface);
  transition: transform 180ms ease, border-color 180ms ease;
  text-align: left; width: 100%;
}
.ob-card:active { transform: scale(0.985); }
.ob-card.chosen { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(255, 46, 99, 0.35); }
.ob-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ob-card .ob-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4, 4, 6, 0.94) 8%, rgba(4, 4, 6, 0.2) 70%);
}
.ob-card .ob-copy { position: absolute; left: 14px; right: 14px; bottom: 12px; }
.ob-card .ob-copy strong { display: block; font-size: 14px; line-height: 1.3; }
.ob-card .ob-copy span { font-size: 11px; color: var(--muted); }
.ob-foot { display: flex; justify-content: center; padding-top: 6px; }

/* --------------------------------------------------------------- topbar -- */
.app { background: var(--bg); }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 10px;
  background: linear-gradient(to bottom, rgba(8, 8, 11, 0.96), rgba(8, 8, 11, 0.72));
  position: relative; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand svg { border-radius: 8px; }
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; color: var(--text); background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line); transition: background 160ms ease;
}
.icon-btn:active { background: rgba(255, 255, 255, 0.12); }
.icon-btn.sm { width: 30px; height: 30px; font-size: 13px; }
.icon-btn.dot { background: rgba(255, 46, 99, 0.14); border-color: rgba(255, 46, 99, 0.32); }
#quotaChip { font-size: 12px; font-weight: 700; color: var(--brand); }

/* ---------------------------------------------------------------- scroll -- */
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; }
.scroll::-webkit-scrollbar { width: 0; }
.tail-space { height: calc(76px + var(--safe-b)); }

/* --------------------------------------------------------------- tabbar -- */
.tabbar {
  position: relative; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(58px + var(--safe-b)); padding-bottom: var(--safe-b);
  border-top: 1px solid var(--line);
  background: rgba(10, 10, 14, 0.94);
  backdrop-filter: blur(18px); z-index: 20;
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: var(--muted-2); font-size: 10px; transition: color 160ms ease;
}
.tab.active { color: var(--text); }
.tab.active svg { color: var(--brand); filter: drop-shadow(0 0 10px rgba(255, 46, 99, 0.5)); }

/* ------------------------------------------------------------ components -- */
.section { padding: 16px 0 4px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 16px 10px; }
.section-head h3 { font-size: 15px; font-weight: 750; letter-spacing: -0.01em; }
.section-head .sub { font-size: 11px; color: var(--muted); }
.section-head button { font-size: 11px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  background: var(--brand-grad); color: #fff; border: 0;
  box-shadow: 0 8px 24px rgba(255, 46, 99, 0.28); transition: transform 140ms ease, filter 140ms ease;
}
.btn:active { transform: scale(0.97); filter: brightness(1.06); }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; border: 1px solid var(--line-strong); box-shadow: none; color: var(--text); }
.btn.soft { background: rgba(255, 255, 255, 0.08); box-shadow: none; color: var(--text); }
.btn.sm { height: 34px; font-size: 12px; padding: 0 14px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; height: 32px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
  font-size: 12px; color: var(--muted); white-space: nowrap;
  transition: all 160ms ease;
}
.chip.active { background: #fff; color: #0a0a0d; border-color: #fff; font-weight: 700; }

/* hero */
.hero { position: relative; height: 224px; margin: 0 0 4px; overflow: hidden; border-radius: 0 0 22px 22px; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 11, 1) 2%, rgba(8, 8, 11, 0.55) 40%, rgba(8, 8, 11, 0.05) 75%);
}
.hero-copy { position: absolute; left: 16px; right: 16px; bottom: 14px; }
.hero-badges { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.badge {
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--line-strong); backdrop-filter: blur(6px);
}
.badge.origin { background: rgba(255, 46, 99, 0.2); border-color: rgba(255, 46, 99, 0.4); color: #ffd0dc; }
.badge.age { background: rgba(0, 0, 0, 0.45); }
.hero-copy h2 { font-size: 21px; font-weight: 850; letter-spacing: -0.025em; line-height: 1.14; }
.hero-copy p { margin-top: 6px; font-size: 12px; color: #cfcfd8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; gap: 8px; margin-top: 12px; }
.hero-dots { position: absolute; right: 16px; bottom: 14px; display: flex; gap: 4px; }
.hero-dots i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); }
.hero-dots i.on { width: 14px; border-radius: 3px; background: #fff; }

/* rails & cards */
.rail { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 6px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail.wrap { flex-wrap: wrap; overflow: visible; row-gap: 14px; }
.card { flex: 0 0 auto; width: 112px; text-align: left; }
.card .poster {
  position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
}
.card .poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.card:active .poster img { transform: scale(1.05); }
.card .poster .tag {
  position: absolute; top: 6px; left: 6px; font-size: 8.5px; font-weight: 800;
  letter-spacing: 0.06em; padding: 3px 6px; border-radius: 5px;
  background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(4px);
}
.card .poster .eps {
  position: absolute; right: 6px; bottom: 6px; font-size: 9px; padding: 2px 6px;
  border-radius: 5px; background: rgba(0, 0, 0, 0.6);
}
.card .name {
  margin-top: 7px; font-size: 11.5px; font-weight: 650; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card .meta { margin-top: 3px; font-size: 10px; color: var(--muted-2); }

/* continue watching */
.cw-list { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 6px; scrollbar-width: none; }
.cw-list::-webkit-scrollbar { display: none; }
.cw {
  flex: 0 0 auto; width: 208px; border-radius: 14px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); text-align: left; position: relative;
}
.cw .thumb { position: relative; height: 118px; }
.cw .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cw .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 14, 0.94), transparent 65%);
}
.cw .thumb .play {
  position: absolute; inset: 0; margin: auto; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.4);
  display: grid; place-items: center; backdrop-filter: blur(6px); font-size: 13px;
}
.cw .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.18); }
.cw .bar i { display: block; height: 100%; background: var(--brand); }
.cw .copy { padding: 9px 11px 11px; }
.cw .copy strong { font-size: 12px; display: block; line-height: 1.3; }
.cw .copy span { font-size: 10.5px; color: var(--muted); }

/* promo banner */
.promo {
  margin: 8px 16px 14px; padding: 16px; border-radius: var(--r-lg); position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 46, 99, 0.22), rgba(255, 122, 24, 0.16)), var(--surface);
  border: 1px solid rgba(255, 46, 99, 0.28);
}
.promo h4 { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.promo p { margin-top: 5px; font-size: 12px; color: #d6d6de; max-width: 26ch; }
.promo .btn { margin-top: 12px; height: 36px; font-size: 12px; }

/* ----------------------------------------------------------- explore/me -- */
.search-box {
  margin: 4px 16px 12px; display: flex; align-items: center; gap: 9px;
  height: 42px; padding: 0 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
}
.search-box input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font-size: 13px; }
.search-box input::placeholder { color: var(--muted-2); }

.tag-grid { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.tag-grid .chip { height: 30px; }

.coll { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 8px; scrollbar-width: none; }
.coll::-webkit-scrollbar { display: none; }
.coll .box {
  flex: 0 0 auto; width: 150px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  position: relative; height: 92px; text-align: left;
}
.coll .box img { width: 100%; height: 100%; object-fit: cover; }
.coll .box span {
  position: absolute; left: 10px; bottom: 9px; font-size: 12px; font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.list { padding: 0 16px; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--line); width: 100%; text-align: left;
}
.row:last-child { border-bottom: 0; }
.row .rank { width: 22px; font-size: 13px; font-weight: 800; color: var(--muted-2); }
.row .rank.top { color: var(--brand); }
.row img.thumb { width: 52px; height: 68px; border-radius: 9px; object-fit: cover; }
.row .grow { flex: 1; min-width: 0; }
.row .grow strong { display: block; font-size: 12.5px; font-weight: 650; }
.row .grow span { font-size: 10.5px; color: var(--muted); }
.row .val { font-size: 11px; color: var(--muted); }
.row .chev { color: var(--muted-2); font-size: 16px; }

/* profile */
.profile { padding: 8px 16px 6px; }
.profile-card {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(255, 46, 99, 0.16), rgba(255, 122, 24, 0.08)), var(--surface);
  border: 1px solid var(--line);
}
.avatar {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-grad); font-weight: 800; font-size: 18px; color: #fff;
}
.profile-card .who strong { font-size: 15px; display: block; }
.profile-card .who span { font-size: 11px; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 4px; }
.stat {
  padding: 12px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  text-align: center;
}
.stat b { display: block; font-size: 16px; }
.stat span { font-size: 10px; color: var(--muted); }

/* ---------------------------------------------------------------- player -- */
.watch { background: #000; }
.stage { position: relative; flex: 1; overflow: hidden; background: #000; }
.stage-media, .stage-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-media { object-fit: cover; z-index: 1; background: #000; }
.stage-scene[hidden], .stage-media[hidden] { display: none; }
.stage-vignette, .danmaku-layer, .watermark, .watch-head, .subtitle, .action-rail, .coin-orb, .coin-tab,
.stage-tap, .pause-badge, .watch-foot, .ad, .choice { z-index: 2; }
.stage.buffering::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 3px solid rgba(255,255,255,0.25); border-top-color: #fff; border-radius: 50%;
  animation: spin 0.9s linear infinite; z-index: 3; pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.stage-scene {
  background-size: cover; background-position: center;
  animation: kenburns 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.16) translate3d(-1.5%, -2%, 0); }
}
.stage-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.62) 0%, transparent 22%, transparent 62%, rgba(0, 0, 0, 0.86) 100%);
}
.danmaku-layer { position: absolute; left: 0; right: 0; top: 74px; height: 46%; overflow: hidden; pointer-events: none; }
.danmaku-item {
  position: absolute; white-space: nowrap; font-size: 13px; font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9); will-change: transform;
}
.watermark {
  position: absolute; right: 14px; top: 120px; font-size: 9px; letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.16); transform: rotate(-14deg); pointer-events: none;
}

.watch-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 6;
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 8px;
}
.watch-title { flex: 1; min-width: 0; }
.watch-title strong { display: block; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.watch-title span { color: rgba(255, 255, 255, 0.66); }

.subtitle {
  position: absolute; left: 16px; right: 78px; bottom: 176px; text-align: center;
  font-size: 14.5px; font-weight: 600; line-height: 1.4; z-index: 5;
  opacity: 0; transition: opacity 200ms ease; pointer-events: none;
}
.subtitle.on { opacity: 1; }
.subtitle .who { display: block; font-size: 10.5px; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 3px; }
.subtitle .txt {
  display: inline-block; padding: 6px 10px; border-radius: 8px;
  background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(4px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.action-rail {
  position: absolute; right: 8px; bottom: 196px; display: flex; flex-direction: column;
  gap: 16px; z-index: 6; align-items: center;
}
.rail-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 52px; }
.rail-btn .emoji {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 17px; backdrop-filter: blur(8px); transition: transform 150ms ease, background 150ms ease;
}
.rail-btn:active .emoji { transform: scale(0.9); background: rgba(255, 255, 255, 0.24); }
.rail-btn em { font-style: normal; font-size: 9.5px; color: rgba(255, 255, 255, 0.82); text-shadow: 0 1px 4px #000; }
.rail-btn.on .emoji { background: var(--brand); border-color: var(--brand); }

.stage-tap { position: absolute; inset: 0; z-index: 4; }
.pause-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.9);
  font-size: 34px; opacity: 0; transition: opacity 180ms ease, transform 180ms ease; z-index: 7;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.8); pointer-events: none;
}
.pause-badge.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.watch-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 0 14px calc(12px + var(--safe-b)); }
.timeline {
  position: relative; height: 22px; display: flex; align-items: center; cursor: pointer;
}
.timeline::before {
  content: ""; position: absolute; left: 0; right: 0; height: 3px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
}
.timeline-buffer { position: absolute; left: 0; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.32); }
.timeline-fill { position: absolute; left: 0; height: 3px; border-radius: 3px; background: var(--brand-grad); }
.timeline-knob {
  position: absolute; width: 11px; height: 11px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 46, 99, 0.35); transform: translateX(-50%);
}
.watch-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.watch-meta-right { display: flex; align-items: center; gap: 8px; }
.pill {
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}
.watch-hint { margin-top: 8px; text-align: center; color: rgba(255, 255, 255, 0.42); }

/* iklan pre-roll */
.ad { position: absolute; inset: 0; z-index: 30; background: #000; }
.ad-creative {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(420px 320px at 70% 20%, rgba(90, 200, 255, 0.35), transparent 65%),
    radial-gradient(380px 300px at 20% 80%, rgba(255, 210, 120, 0.3), transparent 65%),
    linear-gradient(160deg, #0a1b2a, #131018);
  padding: 24px;
}
.ad-badge {
  position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); left: 16px;
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.14em; padding: 4px 8px;
  border-radius: 5px; background: #f5c542; color: #1a1200;
}
.ad-copy { animation: rise 520ms ease both; }
.ad-brand { font-size: 26px; font-weight: 850; letter-spacing: -0.02em; }
.ad-line { margin-top: 8px; font-size: 13px; color: #cfd8e3; }
.ad-count {
  position: absolute; right: 18px; top: calc(16px + env(safe-area-inset-top, 0px));
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.35);
}
.ad-skip {
  position: absolute; right: 16px; bottom: 88px; height: 34px; padding: 0 14px;
  border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}
.ad-skip:disabled { opacity: 0.55; }
.ad-note { position: absolute; left: 16px; right: 16px; bottom: 52px; color: rgba(255, 255, 255, 0.5); }

/* cabang */
.choice { position: absolute; inset: 0; z-index: 28; display: grid; place-items: center; background: rgba(4, 4, 6, 0.78); backdrop-filter: blur(6px); padding: 22px; }
.choice-card { width: 100%; }
.choice-card #choiceOptions { display: grid; gap: 10px; margin: 14px 0; }
.choice-opt {
  width: 100%; text-align: left; padding: 14px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-strong);
  transition: all 160ms ease;
}
.choice-opt strong { display: block; font-size: 14px; }
.choice-opt span { font-size: 11px; color: var(--muted); }
.choice-opt:active { background: rgba(255, 46, 99, 0.18); border-color: var(--brand); }

/* ---------------------------------------------------------------- sheets -- */
.sheet-wrap { position: absolute; inset: 0; z-index: 40; }
.sheet-wrap[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); animation: fade 200ms ease both; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 82%;
  background: var(--bg-2); border-radius: 22px 22px 0 0; border-top: 1px solid var(--line-strong);
  display: flex; flex-direction: column; animation: up 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6);
}
.sheet-grip { width: 38px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.2); margin: 9px auto 4px; }
.sheet-body { padding: 8px 18px calc(20px + var(--safe-b)); overflow-y: auto; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.sheet h3 { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.sheet .lead { font-size: 12px; color: var(--muted); margin-top: 4px; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 13px 14px; margin-top: 9px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
}
.opt .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); font-size: 15px; }
.opt .grow { flex: 1; min-width: 0; }
.opt .grow strong { display: block; font-size: 13px; }
.opt .grow span { font-size: 10.5px; color: var(--muted); }
.opt .right { font-size: 11px; font-weight: 700; color: var(--gold); }
.opt.primary { border-color: rgba(255, 46, 99, 0.4); background: linear-gradient(135deg, rgba(255, 46, 99, 0.16), rgba(255, 122, 24, 0.08)), var(--surface); }
.opt:active { border-color: var(--line-strong); }

.ep-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.ep-cell {
  aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); position: relative;
}
.ep-cell.free { color: var(--text); }
.ep-cell.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.ep-cell.locked::after { content: "🔒"; position: absolute; font-size: 8px; right: 3px; top: 2px; opacity: 0.7; }

.cmt { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.cmt .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--surface-2); flex: 0 0 auto; }
.cmt .grow { flex: 1; min-width: 0; }
.cmt .who { font-size: 11px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.cmt p { font-size: 12.5px; margin-top: 2px; line-height: 1.45; }
.cmt .acts { display: flex; gap: 12px; margin-top: 6px; font-size: 10.5px; color: var(--muted-2); }
.cmt .acts button { font-size: 10.5px; color: var(--muted-2); }
.spoiler {
  filter: blur(4px); cursor: pointer; transition: filter 200ms ease;
}
.spoiler.show { filter: none; }

.cmt-form { display: flex; gap: 8px; margin-top: 12px; }
.cmt-form input {
  flex: 1; height: 40px; padding: 0 14px; border-radius: 999px; outline: none;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 12.5px;
}

.field { margin-top: 10px; }
.field label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border-radius: 12px; outline: none;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 12.5px;
  font-family: inherit;
}
.field textarea { min-height: 78px; resize: vertical; }

/* ---------------------------------------------------------------- toast -- */
.toast {
  position: absolute; left: 50%; bottom: 96px; transform: translate(-50%, 16px);
  background: rgba(28, 28, 38, 0.96); border: 1px solid var(--line-strong);
  padding: 10px 16px; border-radius: 999px; font-size: 12px; z-index: 60;
  opacity: 0; pointer-events: none; transition: all 220ms ease; max-width: 86%;
  text-align: center; box-shadow: var(--shadow);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------------- states -- */
.skeleton { background: linear-gradient(90deg, #16161d 25%, #1e1e27 37%, #16161d 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 12px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.empty { padding: 40px 24px; text-align: center; color: var(--muted); font-size: 12.5px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ======================= perbaikan & penyesuaian ======================== */
[hidden] { display: none !important; }

/* logo mark (menggantikan SVG bergradien) */
.logo {
  width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center;
  background: var(--brand-grad); box-shadow: 0 4px 14px rgba(255, 46, 99, 0.4); flex: 0 0 auto;
}
.logo.lg { width: 74px; height: 74px; border-radius: 22px; margin: 0 auto 20px; box-shadow: 0 16px 44px rgba(255, 46, 99, 0.45); }

/* onboarding: ritme vertikal lebih rapat */
.ob-body { justify-content: flex-start; padding-top: 6vh; }
.ob-title { margin-bottom: 2px; }

/* hero: titik navigasi pindah ke kanan atas agar tidak menabrak tombol */
.hero-dots { right: 16px; bottom: auto; top: 16px; }
.hero-copy h2 { font-size: 22px; }

/* pemutar: naikkan pencahayaan adegan generatif */
.stage-scene { filter: brightness(1.18) saturate(1.06) contrast(1.02); }

/* kartu episode bercabang */
.ep-cell.branch { border-color: rgba(255, 200, 97, 0.5); color: var(--gold); }

/* preroll: tanda merek + penataan kolom */
.ad-creative { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; }
.ad-mark {
  width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 26px; font-weight: 850; margin-bottom: 18px; backdrop-filter: blur(8px);
}

/* tombol tutup lembar */
.sheet { overflow: visible; }
.sheet-close {
  position: absolute; top: 10px; right: 12px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; color: var(--muted);
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); z-index: 2;
}
.sheet-close:active { background: rgba(255, 255, 255, 0.14); }

/* tautan berbentuk baris (portal kreator, dasbor) */
a.row, a.row:visited { color: var(--text); text-decoration: none; }
a.row:active { background: rgba(255, 255, 255, 0.03); }
.row .ic { width: 22px; text-align: center; color: var(--muted); font-size: 15px; flex: 0 0 22px; }
.row .ic + .grow { margin-left: 0; }

/* kartu pilihan cabang */
.choice-card {
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 20px;
  padding: 18px; max-width: 340px; margin: 0 auto; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.choice-kicker {
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.16em; color: var(--brand); margin-bottom: 6px;
}
.choice-card h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.choice-card #choiceOptions { display: grid; gap: 9px; margin: 14px 0 12px; }

/* onboarding: pusatkan blok & cerahkan adegan */
.ob-body { justify-content: center; padding-top: 0; }
.ob-card img { filter: brightness(1.32) saturate(1.06); }
.ob-card .ob-veil { background: linear-gradient(to top, rgba(4, 4, 6, 0.92) 4%, rgba(4, 4, 6, 0.12) 62%, transparent 90%); }
.ob-card:active img { filter: brightness(1.5); }

/* ===================== masuk / daftar (auth) ========================== */
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-top: 14px; }
.auth-tab { height: 34px; border-radius: 9px; font-size: 12.5px; font-weight: 650; color: var(--muted); }
.auth-tab.on { background: var(--brand-grad); color: #fff; box-shadow: 0 6px 16px rgba(255, 46, 99, 0.28); }
.auth-tab:not(.on):active { background: rgba(255, 255, 255, 0.05); }
.linkbtn { color: var(--brand); font-size: inherit; text-decoration: underline; text-underline-offset: 2px; }
code { font-family: Consolas, monospace; font-size: 10.5px; color: #ffb3c8; }

.auth-card {
  margin-top: 12px; padding: 14px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(255, 46, 99, 0.14), rgba(255, 122, 24, 0.06)), var(--surface);
  border: 1px solid rgba(255, 46, 99, 0.3);
}
.auth-card.verified { background: linear-gradient(135deg, rgba(69, 214, 165, 0.12), rgba(255, 255, 255, 0.02)), var(--surface); border-color: rgba(69, 214, 165, 0.3); }
.auth-card-copy strong { display: block; font-size: 13px; }
.auth-card-copy span { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.auth-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ===================== ajak teman (referral) ==================== */
.referral-card {
  margin: 10px 0; padding: 14px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.14), rgba(255, 46, 99, 0.05)), var(--surface);
  border: 1px solid rgba(255, 122, 24, 0.3);
}
.referral-head { display: flex; align-items: center; gap: 10px; }
.referral-head strong { display: block; font-size: 13px; }
.referral-head span { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.referral-head .refcode { color: var(--text); letter-spacing: 1px; font-weight: 800; }
.referral-redeem { display: flex; gap: 8px; margin-top: 12px; }
.referral-redeem input {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line-strong);
  color: var(--text); font-size: 13px; font-weight: 700; letter-spacing: 1px;
}
.referral-redeem .btn { white-space: nowrap; }

/* ===================== geser episode (swipe up/down) ==================== */
.stage { touch-action: none; will-change: transform; }
.stage.dragging { cursor: grabbing; }
.swipe-hint {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) scale(0.92);
  padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: rgba(12, 12, 18, 0.86); border: 1px solid var(--line-strong);
  color: var(--text); opacity: 0; pointer-events: none; z-index: 9;
  transition: opacity 140ms ease, transform 140ms ease; white-space: nowrap;
  backdrop-filter: blur(10px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.swipe-hint.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.swipe-hint .arw { color: var(--brand); margin-right: 4px; font-size: 15px; }
.swipe-hint:not(.ok) { color: var(--muted); border-color: var(--line); }

/* ==================== koin gratis berjalan (kiri pemutar) =============== */
.coin-widget {
  position: absolute; left: 10px; top: 104px; width: 116px; z-index: 7;
  padding: 10px 10px 9px; border-radius: 14px;
  background: rgba(12, 12, 18, 0.72); border: 1px solid rgba(255, 200, 97, 0.34);
  backdrop-filter: blur(10px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  transition: opacity 180ms ease, transform 180ms ease;
}
.coin-widget[hidden] { display: none; }
.coin-top { display: flex; align-items: center; gap: 7px; }
.coin-glyph {
  color: var(--gold); font-size: 15px; line-height: 1;
  filter: drop-shadow(0 0 8px rgba(255, 200, 97, 0.55));
}
.coin-num strong { font-size: 17px; font-weight: 850; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.coin-num em { font-style: normal; font-size: 9.5px; color: rgba(255, 255, 255, 0.6); margin-left: 3px; }
.coin-progress { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); margin-top: 7px; overflow: hidden; }
.coin-progress i { display: block; height: 100%; width: 0%; border-radius: 4px; background: linear-gradient(90deg, #ffc861, #ff7a18); transition: width 220ms linear; }
.coin-next { margin-top: 4px; font-size: 9px; color: rgba(255, 255, 255, 0.58); font-variant-numeric: tabular-nums; }
.coin-today { margin-top: 3px; font-size: 8.5px; color: rgba(255, 255, 255, 0.38); }
.coin-today b { color: rgba(255, 255, 255, 0.72); font-weight: 700; }
.coin-close {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}
.coin-close:active { background: rgba(255, 255, 255, 0.16); }
.coin-float {
  position: absolute; left: 12px; top: 6px; font-size: 15px; font-weight: 850; color: var(--gold);
  opacity: 0; pointer-events: none; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}
.coin-float.on { animation: coinUp 900ms ease-out forwards; }
@keyframes coinUp {
  0% { opacity: 0; transform: translateY(6px) scale(0.9); }
  18% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-26px) scale(1.05); }
}
.coin-tab {
  position: absolute; left: 0; top: 118px; z-index: 7;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 7px 9px; border-radius: 0 12px 12px 0;
  background: rgba(12, 12, 18, 0.72); border: 1px solid rgba(255, 200, 97, 0.34); border-left: 0;
  color: var(--gold); font-size: 10px; font-weight: 800; backdrop-filter: blur(10px);
}
.coin-tab[hidden] { display: none; }
.coin-tab .coin-glyph { font-size: 13px; }
.coin-tab span:last-child { color: #fff; font-size: 11px; }

/* ================= koin bulat dengan cincin berputar (v2) =============== */
.coin-widget, .coin-top, .coin-num, .coin-progress, .coin-next, .coin-today { display: none !important; }

.coin-orb {
  position: absolute; left: 10px; top: 100px; width: 92px; z-index: 8;
  text-align: center; user-select: none;
}
.coin-orb[hidden] { display: none; }
.orb-wrap { position: relative; width: 92px; height: 92px; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45)); }
.orb-wrap.bump { animation: orbBump 460ms cubic-bezier(.2, .9, .2, 1); }
@keyframes orbBump {
  0% { transform: scale(1); }
  35% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.orb-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.orb-track, .orb-fill, .orb-comet { fill: none; stroke-width: 7; }
.orb-track { stroke: rgba(255, 255, 255, 0.13); }
.orb-fill {
  stroke: #ffc861; stroke-linecap: round;
  stroke-dasharray: 276.46; stroke-dashoffset: 276.46;
  transition: stroke-dashoffset 260ms linear;
  filter: drop-shadow(0 0 6px rgba(255, 200, 97, 0.55));
}
.orb-comet {
  stroke: #fff3d0; stroke-linecap: round; opacity: 0.92;
  stroke-dasharray: 12 264.46;
  animation: orbit 2.8s linear infinite;
  transform-origin: 50% 50%;
}
@keyframes orbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.orb-center {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 0;
  border-radius: 50%; background: radial-gradient(circle at 50% 40%, rgba(255, 200, 97, 0.16), rgba(10, 10, 16, 0.72) 70%);
  border: 1px solid rgba(255, 200, 97, 0.28);
}
.orb-center strong {
  font-size: 22px; font-weight: 850; letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums; color: #fff;
  text-shadow: 0 1px 8px rgba(255, 200, 97, 0.35);
}
.orb-center em { font-style: normal; font-size: 8.5px; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.6); margin-top: 2px; }
.orb-caption { margin-top: 3px; font-size: 8.5px; color: rgba(255, 255, 255, 0.5); font-variant-numeric: tabular-nums; }
.coin-orb .coin-close {
  position: absolute; top: -4px; right: -4px; width: 20px; height: 20px; border-radius: 50%; z-index: 2;
  display: grid; place-items: center; font-size: 11px; color: rgba(255, 255, 255, 0.7);
  background: rgba(16, 16, 22, 0.92); border: 1px solid rgba(255, 255, 255, 0.18);
}
.coin-orb .coin-float { left: 50%; top: 22px; transform: translateX(-50%); }

/* tombol mini saat disembunyikan */
.coin-tab {
  position: absolute; left: 8px; top: 112px; z-index: 8;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-content: center; gap: 1px;
  background: radial-gradient(circle at 50% 38%, rgba(255, 200, 97, 0.2), rgba(10, 10, 16, 0.86) 70%);
  border: 1px solid rgba(255, 200, 97, 0.42); color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.coin-tab[hidden] { display: none; }
.coin-tab .coin-glyph { font-size: 9px; color: var(--gold); line-height: 1; }
.coin-tab #coinTabNum { font-size: 13px; font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1; }

/* cincin berhenti saat video dijeda */
.coin-orb.paused .orb-comet { animation-play-state: paused; }
.coin-orb.paused .orb-center strong { color: rgba(255, 255, 255, 0.72); }
.coin-orb.paused .orb-caption { opacity: 0.55; }

/* penyempurnaan koin bulat */
.coin-orb .coin-close { top: -7px; right: -7px; width: 19px; height: 19px; font-size: 10px; }
.orb-track { stroke: rgba(255, 255, 255, 0.16); stroke-width: 6.5; }
.orb-fill { stroke-width: 6.5; }
.orb-comet { stroke: #fff6dd; stroke-width: 6.5; }
.coin-orb .orb-caption { font-size: 9px; letter-spacing: 0.01em; }

/* cincin berputar dipindah ke pembungkus HTML agar animasinya pasti jalan */
.orb-spin {
  position: absolute; inset: 0; pointer-events: none;
  animation: orbit 2.8s linear infinite;
  transform-origin: 50% 50%;
  will-change: transform;
}
.orb-spin .orb-svg { transform: rotate(-90deg); }
.orb-comet { stroke-dasharray: 12 264.46; stroke-dashoffset: 0; }
.coin-orb.paused .orb-spin { animation-play-state: paused; }

/* Cincin koin tetap berputar meski pengguna mematikan animasi sistem,
   karena putaran ini bagian dari indikator progres (diperlambat agar tidak mengganggu). */
@media (prefers-reduced-motion: reduce) {
  .orb-spin {
    animation-name: orbit !important;
    animation-duration: 3.6s !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
  }
}

.coin-orb .coin-close { top: -9px; right: -9px; }

/* kartu onboarding: latar bertema agar tidak pernah tampak kosong saat gambar dimuat */
.ob-card {
  background:
    radial-gradient(320px 180px at 30% 20%, rgba(255, 46, 99, 0.22), transparent 70%),
    linear-gradient(150deg, #24111a, #0b0b12);
}

/* ===================== fase gratis (2027) ============================== */
.promo.free { border-color: rgba(69, 214, 165, 0.35); background: linear-gradient(135deg, rgba(69, 214, 165, 0.16), rgba(255, 200, 97, 0.08)), var(--surface); }
.promo-tag {
  display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: 0.14em;
  padding: 3px 7px; border-radius: 5px; background: rgba(69, 214, 165, 0.2);
  color: var(--ok); margin-bottom: 8px;
}
.free-banner {
  margin: 4px 0 10px; padding: 14px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(69, 214, 165, 0.14), rgba(255, 200, 97, 0.06)), var(--surface);
  border: 1px solid rgba(69, 214, 165, 0.32);
}
.free-banner strong { display: block; font-size: 13.5px; color: var(--ok); }
.free-banner span { display: block; margin-top: 5px; font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.pill.free { border-color: rgba(69, 214, 165, 0.4); color: var(--ok); background: rgba(69, 214, 165, 0.12); font-weight: 700; }

/* ============ kontrol pemutar: tampil/sembunyi + target sentuh ========== */
.watch-head, .action-rail, .coin-orb, .coin-tab, .watch-foot {
  transition: opacity 200ms ease;
}
#watch.chrome-off .watch-head,
#watch.chrome-off .action-rail,
#watch.chrome-off .coin-orb,
#watch.chrome-off .coin-tab,
#watch.chrome-off .watch-foot {
  opacity: 0;
  pointer-events: none;
}
#watch.chrome-off .stage-tap { cursor: pointer; }

/* target sentuh lebih besar (pedoman 44–48 px) */
.watch-head .icon-btn { width: 44px; height: 44px; }
.coin-orb .coin-close { width: 24px; height: 24px; font-size: 12px; top: -8px; right: -8px; }
.coin-tab { width: 48px; height: 48px; }
.watch-head { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ============================ gerbang wajib daftar ====================== */
.gate { background: radial-gradient(120% 90% at 50% -10%, rgba(255, 46, 99, 0.16), transparent 60%), var(--bg); }
.gate-wrap {
  height: 100%; overflow-y: auto; padding: calc(28px + env(safe-area-inset-top, 0px)) 22px calc(28px + var(--safe-b));
  display: flex; flex-direction: column; gap: 14px;
}
.gate-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.gate-head strong { display: block; font-size: 15px; letter-spacing: -0.01em; }
.gate-head .logo { width: 34px; height: 34px; }
.gate-title { font-size: 25px; line-height: 1.18; letter-spacing: -0.03em; margin-top: 8px; }
.gate-sub { font-size: 13px; line-height: 1.6; color: var(--muted); }
.gate-sub b { color: var(--text); }
.gate-terms { margin-top: auto; padding-top: 14px; line-height: 1.55; font-size: 10.5px; }
.gate-back { align-self: flex-start; font-size: 12px; color: var(--muted); }
.gate #gateBody .field input { font-size: 16px; }
.gate .auth-tabs { margin-top: 6px; }


/* ===================== pita iklan atas & bawah video ==================== */
.watch { --ad-top: 0px; --ad-bottom: 0px; }

/* pita adalah anak flex: tingginya memakan ruang, sehingga .stage (flex:1) menyusut
   dan video drama tidak pernah tertutup */
.ad-strip {
  position: relative; z-index: 7; flex: 0 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #0b0b10;
}
.ad-strip[hidden] { display: none; }
.ad-strip.top { height: var(--ad-top); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.ad-strip.bottom { height: var(--ad-bottom); border-top: 1px solid rgba(255, 255, 255, 0.1); }
.ad-strip .ad-slot { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.ad-strip .ad-slot a { display: block; width: 100%; height: 100%; }
.ad-strip .ad-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-strip .ad-slot iframe { border: 0; display: block; max-width: 100%; max-height: 100%; }
.ad-tag {
  position: absolute; left: 6px; top: 4px; z-index: 2;
  font-size: 8px; letter-spacing: 0.1em; font-weight: 800; color: rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.45); padding: 1px 5px; border-radius: 4px; pointer-events: none;
}


/* ==========================================================================
   PENYEGARAN UI 2026-12 — lebih rapi & modern, tetap simpel.
   Prinsip: satu skala jarak (8/12/16), radius konsisten (14/18/24), kontras
   lembut, warna merek hanya untuk aksi utama. Blok ini menimpa aturan di atas.
   ========================================================================== */
:root {
  --bg: #0a0a0f;
  --bg-2: #0f0f16;
  --surface: #15151e;
  --surface-2: #1d1d28;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --muted: #a0a0b0;
  --muted-2: #70707f;
  --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 24px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
body { background: #07070a; }

/* judul bagian & tombol "lihat semua" */
.section { padding: 18px 0 6px; }
.section-head { padding: 0 16px 12px; }
.section-head h3 { font-size: 16px; font-weight: 800; letter-spacing: -0.015em; }
.section-head .sub { margin-top: 2px; }
.section-head button {
  font-size: 11px; font-weight: 650; color: var(--text); padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

/* bilah atas: kaca tipis, tombol ikon datar */
.topbar {
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  background: rgba(10, 10, 15, 0.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.icon-btn { width: 36px; height: 36px; background: rgba(255, 255, 255, 0.06); border: 0; border-radius: 12px; }
.icon-btn:active { background: rgba(255, 255, 255, 0.14); }

/* tombol: radius 14, bayangan lembut */
.btn { height: 46px; border-radius: 14px; font-size: 14px; letter-spacing: 0.005em; box-shadow: 0 10px 24px rgba(255, 46, 99, 0.22); }
.btn.sm { height: 34px; border-radius: 10px; font-size: 12px; }
.btn.ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.03); }
.btn.soft { background: rgba(255, 255, 255, 0.07); }

/* chip filter */
.chips { padding: 2px 16px 14px; gap: 6px; }
.chip { height: 30px; padding: 0 13px; border: 0; background: rgba(255, 255, 255, 0.06); font-weight: 600; }
.chip.active { background: #fff; color: #0a0a0d; }

/* hero */
.hero { height: 236px; border-radius: 0 0 26px 26px; }
.hero-veil { background: linear-gradient(to top, rgba(10, 10, 15, 0.98) 12%, rgba(10, 10, 15, 0.35) 55%, transparent 100%); }
.hero-copy { left: 18px; right: 18px; bottom: 16px; }
.hero-copy h2 { font-size: 22px; letter-spacing: -0.03em; }
.hero-copy p { color: #d2d2dc; }
.badge { font-size: 9.5px; padding: 3px 7px; border-radius: 6px; letter-spacing: 0.08em; }

/* kartu judul */
.rail { gap: 11px; padding: 0 16px 8px; }
.card { width: 118px; }
.card .poster { border-radius: 14px; border: 0; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35); }
.card .poster::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 45%);
}
.card .poster .tag { top: 7px; left: 7px; font-size: 8.5px; padding: 3px 7px; border-radius: 6px; background: rgba(0, 0, 0, 0.5); }
.card .poster .eps { right: 7px; bottom: 7px; font-size: 9px; padding: 3px 7px; border-radius: 6px; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); z-index: 1; }
.card .name { margin-top: 8px; font-size: 12px; font-weight: 650; }
.card .meta { font-size: 10.5px; color: var(--muted); }

/* lanjut menonton & promo */
.cw { width: 216px; border-radius: 16px; border: 0; background: var(--surface); }
.cw .thumb { height: 122px; }
.promo { margin: 10px 16px 16px; border-radius: var(--r-lg); border: 1px solid rgba(255, 46, 99, 0.22); }
.promo .btn { border-radius: 10px; }

/* daftar / baris */
.row { padding: 11px 0; }
.row img.thumb { border-radius: 10px; }

/* navigasi bawah: kaca, indikator aktif lembut */
.tabbar { background: rgba(10, 10, 15, 0.9); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border-top: 1px solid var(--line); }
.tab { font-size: 10.5px; font-weight: 600; gap: 3px; position: relative; }
.tab svg { transition: transform 160ms ease; }
.tab.active svg { filter: none; transform: translateY(-1px); }
.tab.active::before {
  content: ""; position: absolute; top: 0; width: 28px; height: 2px; border-radius: 0 0 3px 3px;
  background: var(--brand-grad);
}

/* lembar (sheet) */
.sheet { border-radius: 24px 24px 0 0; background: var(--bg-2); border-top: 1px solid var(--line-strong); }
.sheet-grip { width: 42px; background: rgba(255, 255, 255, 0.18); margin: 10px auto 6px; }
.sheet h3 { font-size: 17px; }
.sheet-close { border-radius: 50%; }

/* gerbang daftar / masuk */
.gate-title { font-size: 23px; letter-spacing: -0.025em; }
.auth-tabs { border-radius: 14px; padding: 4px; }
.auth-tab { height: 36px; border-radius: 10px; }
.auth-tab.on { box-shadow: none; }
.auth-card { border-radius: 16px; }

/* kolom isian */
input[type="text"], input[type="tel"], input[type="search"], input[type="email"], input[type="number"], textarea {
  border-radius: 14px;
}

/* onboarding */
.ob-card { border-radius: 18px; border: 1px solid var(--line); }
.ob-card.chosen { box-shadow: 0 0 0 2px rgba(255, 46, 99, 0.45); }
.ob-title { font-size: 25px; }

/* pemutar: pil kuota & rail aksi sedikit lebih bersih */
.action-rail .icon-btn { background: rgba(0, 0, 0, 0.32); backdrop-filter: blur(6px); }

/* ------------------------------------------------------------- cuplikan -- */
.clips { scroll-snap-type: y mandatory; }
.clip { position: relative; height: calc(100% - 0px); min-height: 520px; scroll-snap-align: start; overflow: hidden; background: #000; }
.clip-bg, .clip-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip-video { opacity: 0; transition: opacity 300ms ease; }
.clip.playing .clip-video { opacity: 1; }
.clip-veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 8, 12, 0.96) 0%, rgba(8, 8, 12, 0.45) 40%, transparent 70%); }
.clip-copy { position: absolute; left: 16px; right: 70px; bottom: 22px; }
.clip-copy h2 { font-size: 22px; font-weight: 850; letter-spacing: -0.025em; line-height: 1.15; margin-top: 8px; }
.clip-copy p { margin-top: 6px; font-size: 12.5px; color: #d6d6de; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.clip-actions { display: flex; gap: 8px; margin-top: 12px; }
.clip-actions .btn { height: 40px; font-size: 13px; padding: 0 16px; }
.clip-rail { position: absolute; right: 12px; bottom: 34px; display: flex; flex-direction: column; gap: 10px; }
.clip-rail .icon-btn { width: 44px; height: 44px; font-size: 20px; background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(6px); }
.clip-rail .icon-btn.on { color: var(--brand); }
/* --------------------------------------------------------------- hadiah -- */
.reward-hero { margin: 0 16px; padding: 20px 18px; border-radius: var(--r-lg); background: linear-gradient(135deg, rgba(255, 200, 97, 0.18), rgba(255, 46, 99, 0.12)), var(--surface); border: 1px solid rgba(255, 200, 97, 0.28); text-align: center; }
.reward-hero b { display: block; font-size: 42px; font-weight: 850; letter-spacing: -0.03em; color: var(--gold); margin: 4px 0; }
.reward-bar { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin: 12px 0 6px; }
.reward-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--brand)); }
.bar.mini { height: 3px; margin-top: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.bar.mini i { display: block; height: 100%; background: var(--brand); }
