:root {
  --bg: #0a0b0e;
  --card: #151922;
  --text: #f4f5f7;
  --muted: #9aa3b2;
  --gold: #e8c44a;
  --red: #c42026;
  --green: #2e8c3a;
  --line: rgba(255, 255, 255, 0.08);
  --font: "Outfit", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

img { display: block; max-width: 100%; }
button, a { font-family: inherit; }

.wrap { width: min(980px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand img { width: 42px; height: 42px; }

.back {
  color: var(--text);
  background: transparent;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.story-head { padding: 12px 0 18px; }

.kicker {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.story-head h1 {
  margin: 4px 0 0;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.story-head p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 66ch;
}

.stage-row { display: none; }

body.is-episode .stage-row {
  display: grid;
  grid-template-columns: minmax(240px, 440px) 1fr;
  gap: 22px;
  align-items: start;
}

.stage {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ratio, 1 / 1);
  background: #000;
  border-radius: 18px;
  overflow: hidden;
}

.stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: #14110a;
  font-size: 28px;
  cursor: pointer;
}

.stage.is-playing .play { display: none; }
.stage.is-playing video { cursor: auto; }

.stripe { display: flex; height: 8px; border-radius: 0 0 8px 8px; overflow: hidden; }
.stripe i { display: block; height: 8px; }
.stripe i:nth-child(1) { width: 34%; background: var(--red); }
.stripe i:nth-child(2) { width: 33%; background: var(--gold); }
.stripe i:nth-child(3) { width: 33%; background: var(--green); }

.episode h2 {
  margin: 6px 0 0;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.episode p { color: var(--muted); }

.path {
  list-style: none;
  margin: 28px 0 48px;
  padding: 0;
}

.path li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.path li.is-ready { cursor: pointer; }
.path li.is-on .thumb { outline: 2px solid var(--gold); outline-offset: 2px; }

.thumb, .num {
  width: 72px;
  height: 72px;
  border-radius: 12px;
}

.thumb { object-fit: cover; background: #10141c; }

.num {
  display: grid;
  place-items: center;
  background: #10141c;
  color: #667;
  font-weight: 800;
  border: 1px solid var(--line);
}

.path strong { display: block; }
.path small { color: var(--muted); }
.path .is-locked strong { color: #8b93a3; font-weight: 560; }

.tag {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.foot {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  padding: 16px 0 28px;
}

.foot a { color: var(--text); }

@media (max-width: 800px) {
  body.is-episode .stage-row { grid-template-columns: 1fr; }
  .stage { max-width: 460px; }
}
