:root {
  --bg: #07080a;
  --bg-2: #101318;
  --surface: #14181f;
  --border: #243018;
  --text: #f3f6f2;
  --muted: #8fa08a;
  --accent: #7cff2e;
  --accent-2: #18e7ff;
  --danger: #ff2a3a;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

body { display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: none; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 22px;
  position: sticky;
  top: 0;
  background: rgba(7, 8, 10, 0.94);
  border-bottom: 1px solid var(--border);
  z-index: 5;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: lowercase;
}

.logo img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px rgba(124, 255, 46, 0.35);
}

.logo-text { color: var(--text); }
.logo .dot { color: var(--accent); }

.topnav { display: flex; gap: 0; align-items: center; flex-wrap: wrap; }
.topnav a, .topnav button {
  color: var(--text);
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  padding: 4px 0;
}
.topnav > a:not(:last-of-type)::after {
  content: "|";
  color: var(--muted);
  margin: 0 10px;
  font-weight: 400;
  pointer-events: none;
}
.topnav a:hover, .topnav button:hover { color: var(--accent); }
.topnav a.active { color: var(--accent); font-weight: 650; }

.page { flex: 1; padding: 0 0 48px; }
.flash, .error {
  margin: 0 22px 12px;
  padding: 12px 14px;
  border-radius: 10px;
}
.flash { background: #10240e; color: var(--accent); border: 1px solid #2c6a18; }
.error { background: #2a1014; color: #ffb3b8; border: 1px solid var(--danger); }

.hero-rotator {
  position: relative;
}
.hero, .series-hero {
  min-height: 28vh;
  padding: 28px 22px 24px;
  background:
    linear-gradient(180deg, rgba(7,8,10,0.25), rgba(7,8,10,0.92)),
    var(--hero, #101318) center/cover no-repeat;
}
.hero-rotator .hero {
  display: none;
}
.hero-rotator .hero.is-on {
  display: block;
}
.hero-dots {
  position: absolute;
  left: 22px;
  bottom: 14px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}
.hero-dot.is-on {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(124, 255, 46, 0.45);
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--accent);
}

h1 { font-size: clamp(32px, 6vw, 56px); margin: 8px 0 12px; }
h2 { font-size: 22px; }
.lede, .muted, .meta, .empty { color: var(--muted); }
.body { max-width: 40rem; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.btn, button.btn {
  display: inline-block;
  background: var(--accent);
  color: #071105;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 16px rgba(124, 255, 46, 0.25);
}

.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: #1c2420; color: var(--accent); box-shadow: none; border: 1px solid var(--border); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn.small { padding: 6px 10px; font-size: 14px; }
.btn.danger { background: var(--danger); color: #fff; box-shadow: none; }

.shelf, .season, .player-page, .narrow, .notify, .studio-head { padding: 8px 22px 0; }
.narrow { max-width: 640px; }
.narrow.wide { max-width: 880px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.card { color: inherit; text-decoration: none; }
.poster {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background: #1c1c24 center/cover no-repeat;
  display: grid;
  place-items: center;
  font-size: 42px;
}
.pop-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 8px 0 10px;
  border-radius: 999px;
  background: rgba(7, 8, 10, 0.82);
  color: #fff;
  font: 700 13px/1 system-ui, sans-serif;
  pointer-events: none;
}
.pop-badge svg { color: var(--accent); display: block; }
.poster .pop-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 1;
}
.poster.is-vertical { aspect-ratio: 9 / 14; }
.card-copy h3 { margin: 8px 0 2px; font-size: 18px; }
.card-copy p { margin: 0; color: var(--muted); font-size: 14px; }

.card-block, .notify {
  margin: 28px 22px 0;
  padding: 22px;
  background: var(--surface);
  border-radius: var(--radius);
}

.upload-status { margin: 0 0 14px; }
.upload-track {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.upload-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}
.notify-form { display: flex; gap: 8px; flex-wrap: wrap; }
.notify-form input { flex: 1; min-width: 200px; }

input, textarea, select {
  width: 100%;
  margin: 6px 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}

textarea { min-height: 90px; }
label { display: block; color: var(--muted); font-size: 14px; }
.check { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.check input { width: auto; margin: 0; }

.episodes { list-style: none; padding: 0; }
.episode {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.episode.is-draft { opacity: 0.7; }
.ep-num { margin: 0; color: var(--accent); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.episode h3 { margin: 4px 0; }
.ep-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.player {
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  margin: 16px 0;
  position: relative;
}
.player video, .player iframe { width: 100%; display: block; background: #000; border: 0; }
.player iframe { aspect-ratio: 16 / 9; }
.player.is-vertical { max-width: 420px; margin-left: auto; margin-right: auto; }
.player.is-vertical video, .player.is-vertical iframe { aspect-ratio: 9 / 16; object-fit: contain; }
.watermark {
  position: absolute;
  right: 12px;
  bottom: 44px;
  z-index: 2;
  color: rgba(124, 255, 46, 0.55);
  font-family: system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.studio-head, .studio-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.studio-row { padding: 16px 22px; border-bottom: 1px solid var(--border); }
.studio-eps { padding-left: 18px; }
.slide-admin { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.slide-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 12px;
  align-items: start;
}
.slide-row img { width: 120px; height: 180px; object-fit: cover; border-radius: 10px; }

.foot {
  padding: 24px 22px 32px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
}
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-links a { color: var(--text); }
.legal { padding-top: 28px; padding-bottom: 12px; }
.legal h1 { margin: 0 0 12px; }
.legal h2 { margin: 22px 0 8px; font-size: 18px; }
.legal h3 { margin: 16px 0 6px; font-size: 16px; }
.legal ul { padding-left: 20px; color: var(--muted); }
.legal li { margin: 0 0 8px; }
.contact-line { font-size: 20px; font-weight: 650; }

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

.story-body {
  margin: 0;
  background: #050505;
  min-height: 100dvh;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.story-stage {
  position: relative;
  width: min(100vw, calc(100dvh * 9 / 16));
  aspect-ratio: 9 / 16;
  height: auto;
  max-height: 100dvh;
  background: #000;
  overflow: hidden;
}
.story-bars {
  display: flex;
  gap: 4px;
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 3;
}
.bar { flex: 1; height: 3px; background: rgba(255,255,255,0.25); border-radius: 99px; overflow: hidden; }
.bar.is-done { background: var(--accent); }
.bar.is-on { background: linear-gradient(var(--accent), var(--accent)) left/100% 100% no-repeat; }
.story-head {
  position: absolute;
  top: 22px;
  left: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  color: #fff;
  font-family: system-ui, sans-serif;
  font-size: 13px;
  transition: opacity 0.35s ease;
}
.story-head a { color: #fff; }
.story-dock {
  position: absolute;
  top: auto;
  left: auto;
  right: 12px;
  bottom: 20px;
  z-index: 4;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  transition: opacity 0.35s ease;
}
.story-menu { position: relative; transition: opacity 0.35s ease; }
.story-chip {
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font: 600 11px/1.2 system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.story-chip.is-on { background: var(--accent); color: #111; }
.story-chip[data-story-lang],
.story-chip[data-story-lang-current] { text-transform: none; letter-spacing: 0.02em; }
.story-chip.story-settings {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
}
.story-chip.story-settings svg {
  width: 18px;
  height: 18px;
  display: block;
}
.story-pop {
  position: absolute;
  top: auto;
  bottom: calc(100% + 8px);
  right: 0;
  left: auto;
  transform: none;
  display: none;
  flex-direction: column;
  gap: 8px;
  min-width: 196px;
  max-width: min(260px, 72vw);
  padding: 12px;
  border-radius: 16px;
  background: rgba(8, 8, 10, 0.94);
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
}
.story-menu.is-open .story-pop {
  display: flex;
}
.story-pop-label {
  margin: 0;
  color: rgba(255,255,255,0.62);
  font: 600 10px/1.3 system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.story-pop-kicker {
  margin: 4px 0 0;
  color: #fff;
  font: 600 11px/1.3 system-ui, sans-serif;
}
.story-pop-kicker span { color: var(--accent); }
.story-lang-row,
.story-mix-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.story-pop .story-chip {
  background: rgba(255,255,255,0.08);
}
.story-pop .story-chip.is-on { background: var(--accent); color: #111; }
.story-stage.is-chrome-off .story-dock,
.story-stage.is-chrome-off .story-head {
  opacity: 0;
  pointer-events: none;
}
.story-stage.is-chrome-off .story-bars { opacity: 0.35; }
.story-stage.is-narration-off .story-caption { display: none; }
.story-stage.is-dialogue-off .story-dialogue { display: none; }
.story-stage.is-narration-off.is-dialogue-off .story-slide figcaption { display: none; }
.story-stage.is-narration-off:not(.is-dialogue-off) .story-slide:not(:has(.story-dialogue:not([hidden]))) figcaption { display: none; }
.story-stage.is-dialogue-off:not(.is-narration-off) .story-slide:not(:has(.story-caption:not([hidden]))) figcaption { display: none; }
.story-slide {
  display: none;
  margin: 0;
  position: absolute;
  inset: 0;
}
.story-slide.is-on { display: block; }
.story-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 48%;
  overflow-y: auto;
  padding: 40px 88px 22px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.92));
  color: #fff;
}
.story-dialogue {
  margin: 0 0 10px;
  color: #f0c57a;
  font-size: 17px;
  font-weight: 700;
  white-space: pre-wrap;
  line-height: 1.35;
}
.story-caption {
  font-weight: 600;
  font-size: 15px;
  margin: 0;
  color: #eceef4;
  line-height: 1.35;
}
.hit {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 42%;
  background: transparent;
  border: 0;
  z-index: 2;
}
.hit.left { left: 0; }
.hit.right { right: 0; }

.login-mark {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: block;
  margin: 12px 0 8px;
}

@media (max-width: 720px) {
  .logo img { width: 40px; height: 40px; }
  .logo-text { font-size: 14px; }
  .topnav { justify-content: flex-end; row-gap: 4px; }
  .hero, .series-hero { min-height: 0; padding: 20px 16px 18px; }
  .hero-dots { left: 16px; bottom: 10px; }
  h1 { font-size: 28px; }
  .episode, .studio-head, .studio-row, .slide-row { display: block; }
  .slide-row img { width: 100%; height: 220px; }
  .form-grid { grid-template-columns: 1fr; }
}

.engage { margin-top: 28px; max-width: 40rem; }
.engage-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn.is-liked {
  background: #1c2420;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}
.share-box { position: relative; }
.share-pop {
  position: absolute;
  z-index: 6;
  top: calc(100% + 8px);
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
  padding: 10px;
  border-radius: 16px;
  background: #121814;
  border: 1px solid var(--border);
}
.share-pop[hidden] { display: none !important; }
.share-pop button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: #1c2420;
  color: var(--text);
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.comment-form { margin: 12px 0 18px; }
.comments { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.comments li { border-top: 1px solid var(--border); padding-top: 12px; }
.comment-body { white-space: pre-wrap; margin: 6px 0; }
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.story-dock { flex-wrap: wrap; max-width: calc(100% - 16px); }
.story-dock form { margin: 0; }
.story-comments {
  width: min(280px, 78vw);
  max-height: min(52vh, 420px);
  overflow: auto;
}
.story-pop input,
.story-pop textarea {
  width: 100%;
  margin: 0 0 8px;
  box-sizing: border-box;
}
.story-pop textarea { min-height: 72px; }
.story-comment { color: #fff; font: 500 13px/1.35 system-ui, sans-serif; margin: 0; white-space: pre-wrap; }
.story-note { color: var(--accent); font: 600 12px/1.3 system-ui, sans-serif; margin: 0; }

.range-row { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 22px 0; }
.analytics-note {
  margin: 16px 22px 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
}
.analytics-note strong { color: var(--text); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  padding: 16px 22px 0;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px 16px;
}
.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stat-card strong { display: block; margin-top: 6px; font-size: 30px; line-height: 1.1; }
.stat-card small { display: block; margin-top: 6px; color: var(--muted); }
.analytics-block { padding: 22px 22px 0; }
.analytics-block h2 { margin-bottom: 12px; }
.table-scroll { overflow-x: auto; }
.analytics-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.analytics-table th {
  text-align: left;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 650;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.analytics-table td { padding: 10px; border-bottom: 1px solid #1c241c; vertical-align: top; }
.day-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.day-list li { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; }
.day-label, .day-count { color: var(--muted); font-size: 14px; }
.bar-track { display: block; height: 8px; border-radius: 99px; background: #1c2420; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

.logo-copy { display: flex; flex-direction: column; line-height: 1.15; }
.logo-tag { color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.top-tools { display: none; }
.has-dock .top-tools a { color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none; }
.phone-home { display: block; }
.hero { position: relative; }
.hero > .pop-badge { position: absolute; top: 16px; right: 16px; z-index: 2; }
.more-box { position: relative; flex: 0 0 auto; }
.more-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.more-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  min-width: 168px;
  padding: 8px;
  border-radius: 14px;
  background: #121814;
  border: 1px solid var(--border);
}
.more-pop[hidden] { display: none !important; }
.more-pop a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.more-pop a:hover { background: #1c2420; color: var(--accent); }
.stack-form { max-width: 28rem; }
.shelf-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.shelf-head h2 { margin: 8px 0; }
.shelf-head a { color: var(--accent); font-size: 14px; font-weight: 700; }
.rail { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.rail-card { flex: 0 0 148px; color: inherit; text-decoration: none; scroll-snap-align: start; }
.rail-poster {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: #1c1c24 center/cover no-repeat;
  overflow: hidden;
}
.rail-card strong { display: block; margin-top: 8px; font-size: 14px; }
.pill {
  display: inline-block;
  margin: 0;
  background: var(--accent);
  color: #071105;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 3px 6px;
}
.rail-poster .pill, .ep-title-row .pill { position: static; }
.rail-poster .pill { position: absolute; top: 8px; left: 8px; }
.ep-list { padding: 0 22px 12px; }
.ep-card {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
}
.ep-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: #1c1c24 center/cover no-repeat;
  overflow: hidden;
}
.ep-copy p { margin: 4px 0; color: var(--muted); font-size: 13px; }
.ep-title-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ep-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #243018; }
.ep-progress::after { content: ""; display: block; height: 100%; width: var(--progress); background: var(--accent); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 22px 8px; }
.chip {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}
.chip.is-on { background: var(--accent); color: #071105; border-color: var(--accent); }
.page-head { padding: 8px 22px 0; }
.page-head h1 { font-size: 28px; margin: 0 0 8px; }
.find input { margin-bottom: 8px; }
.promo {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--border);
}
.promo strong, .promo .meta { display: block; }
.promo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #10240e;
  color: var(--accent);
  font-size: 18px;
}
.profile-links { display: grid; padding: 8px 22px 24px; }
.profile-links a { color: var(--text); padding: 14px 0; border-bottom: 1px solid var(--border); }
.player-page h1 { font-size: 32px; }
.dock {
  display: none;
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(480px, 100%);
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: rgba(7, 8, 10, 0.96);
  border-top: 1px solid var(--border);
  padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
}
.dock a {
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.dock a.is-on { color: var(--accent); }

@media (max-width: 860px) {
  .desk-home { display: none; }
  .phone-home { display: block; }
  .has-dock .top-tools { display: flex; gap: 14px; align-items: center; }
  .has-dock .topnav { display: none; }
  .has-dock .topbar { width: min(480px, 100%); margin-left: auto; margin-right: auto; }
  .has-dock .page { padding-bottom: 120px; }
  .has-dock .foot { margin-bottom: 64px; }
  .lobby { max-width: 480px; margin: 0 auto; }
  .phone-home .hero { min-height: 68vh; align-items: flex-end; }
  .phone-home .hero-rotator .hero.is-on { display: flex; }
  .phone-home .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .phone-home .card-copy h3 { font-size: 15px; }
  .dock { display: grid; }
}

.desk-nav { display: none; }

@media (min-width: 861px) {
  .phone-home { display: none; }
  .desk-home { display: block; }
  .dock { display: none; }
  .more-box { display: none; }
  .has-dock .topnav.phone-nav { display: none; }
  .has-dock .topnav.desk-nav { display: flex; }
  .has-dock .topbar { width: auto; margin: 0; }
  .has-dock .page { padding-bottom: 48px; }
  .has-dock .foot { margin-bottom: 0; }
}

.stage-toast {
  position: absolute;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  z-index: 8;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(7, 8, 10, 0.9);
  color: var(--accent);
  font-weight: 700;
  pointer-events: none;
}
.stage-toast[hidden] { display: none !important; }

body.is-watching { overflow: hidden; height: 100%; background: #07080a; }
body.is-watching .topbar,
body.is-watching .foot,
body.is-watching .dock,
body.is-watching > .flash { display: none !important; }
body.is-watching .page { padding: 0 !important; margin: 0; }

.stage {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #07080a;
  display: grid;
  place-items: center;
}
.stage-frame {
  position: relative;
  height: 100%;
  width: min(100vw, calc(100dvh * 16 / 9));
  background: #000;
  overflow: hidden;
}
.stage-frame.is-vertical { width: min(100vw, calc(100dvh * 9 / 16)); }
.stage-frame video,
.stage-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  object-fit: contain;
}
.stage-frame.is-vertical video,
.stage-frame.is-vertical iframe { object-fit: cover; }
.stage-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.stage-play {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  z-index: 4;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 0;
  border-radius: 50%;
  background: rgba(7, 8, 10, 0.55);
  color: var(--accent);
  font-size: 26px;
  cursor: pointer;
  pointer-events: auto;
}
.stage-play[hidden] { display: none; }
.stage .watermark { z-index: 1; pointer-events: none; bottom: 72px; }
.stage-chrome {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.35s ease;
}
.stage.is-immersive .stage-chrome,
.stage.is-immersive .stage-play { opacity: 0; }
.stage.is-sheet .stage-chrome,
.stage.is-sheet .stage-play { opacity: 0; pointer-events: none; }
.stage-chrome a,
.stage-chrome button,
.stage-progress,
.stage-sheet,
.stage-sheet button,
.stage-sheet input,
.stage-sheet textarea,
.stage-sheet a { pointer-events: auto; }
.stage.is-immersive .stage-chrome,
.stage.is-immersive .stage-chrome a,
.stage.is-immersive .stage-chrome button { pointer-events: none; }
.stage-leave {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 6;
  display: flex;
  gap: 8px;
}
.stage-leave a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(7, 8, 10, 0.62);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.series-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 8px;
}
.stage-kicker {
  position: absolute;
  top: 22px;
  right: 14px;
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.stage-actions {
  position: absolute;
  right: 10px;
  bottom: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 4;
}
.player-page .stage-actions {
  position: static;
  flex-direction: row;
  align-items: center;
  margin-top: 18px;
}
.stage-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.stage-btn.is-on,
.stage-btn.is-on .stage-glyph { color: var(--accent); }
.stage-glyph { display: grid; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65)); }
.stage-label {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}
.stage-actions .share-box { position: relative; }
.stage-actions .share-pop {
  top: auto;
  bottom: 0;
  left: auto;
  right: calc(100% + 10px);
}
.stage-caption {
  position: absolute;
  left: 14px;
  right: 84px;
  bottom: 42px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}
.stage-caption h1 { font-size: 22px; margin: 0 0 4px; }
.stage-caption p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.stage-story {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #071105;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.stage-caption .actions { gap: 12px; }
.stage-caption .actions a { color: #fff; font-size: 13px; font-weight: 700; }
.ep-jumps {
  position: absolute;
  left: 12px;
  right: 78px;
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.ep-jump {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(7, 8, 10, 0.72);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.ep-jump.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #071105;
}
.stage-frame:has(.ep-jumps) .stage-caption { bottom: 84px; }
.stage-progress {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.stage-scrub {
  position: relative;
  height: 18px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.stage-scrub::before,
.stage-scrub span {
  position: absolute;
  left: 0;
  top: 7px;
  height: 4px;
  border-radius: 99px;
}
.stage-scrub::before {
  content: "";
  right: 0;
  background: rgba(255, 255, 255, 0.28);
}
.stage-scrub span {
  width: 0;
  background: var(--accent);
}
.stage-progress [data-stage-clock] {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stage-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  max-height: 72%;
  overflow: auto;
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
  background: rgba(7, 8, 10, 0.96);
  border-top: 1px solid var(--border);
}
.stage.is-sheet {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.stage.is-sheet .stage-frame {
  flex: 0 0 auto;
  height: auto;
  max-height: 42%;
  width: min(100%, calc(42dvh * 16 / 9));
  aspect-ratio: 16 / 9;
}
.stage.is-sheet .stage-frame.is-vertical {
  width: min(100%, calc(42dvh * 9 / 16));
  aspect-ratio: 9 / 16;
}
.stage.is-sheet .stage-sheet {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  flex: 1 1 auto;
  width: min(480px, 100%);
  max-height: none;
  min-height: 0;
  margin-top: 8px;
}
.stage.is-sheet .stage-sheet::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin: 2px auto 12px;
  border-radius: 99px;
  background: #3a4438;
}
.stage-sheet[hidden] { display: none !important; }
.player-page .stage-sheet {
  position: static;
  max-height: none;
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.player-page .stage-sheet[hidden] { display: block !important; }
.stage-sheet-head { display: flex; justify-content: space-between; align-items: center; }
.stage-sheet-head h2 { margin: 0; }
.stage-sheet .stage-btn { color: var(--text); font-size: 28px; line-height: 1; }
