/* The embedded story stage: the framed player that both the story page and
   the download page put a reader in front of. Kept apart from story.css so a
   page that only shows the stage does not carry the comment thread with it. */
.v2-stage { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--bg-2); overflow: hidden; }
.v2-stage-chrome { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg); }
.v2-stage-chrome .dots { display: flex; gap: 6px; }
.v2-stage-chrome .dots i { display: block; width: 9px; height: 9px; border-radius: var(--radius-round); background: var(--line); }
.v2-stage-url {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 4px 12px; border-radius: var(--radius-round); background: var(--bg-3);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--fg-2);
}
.v2-stage-tag { margin-left: auto; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--fg-3); }

.v2-stage-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); }
/* Keep intrinsic media dimensions out of layout so portrait posters cannot
   stretch the stage, and starting playback preserves the preview's size. */
.v2-stage-view iframe, .v2-stage-poster { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.v2-stage-poster { object-fit: contain; }
.v2-stage-scrim {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: oklch(8% 0.02 265 / 0.62); text-align: center; padding: 20px;
}
.v2-stage[data-state="live"] .v2-stage-scrim { display: none; }
.v2-stage-play {
  display: grid; place-items: center; width: 78px; height: 78px; margin-bottom: 10px;
  border: 0; border-radius: var(--radius-round); background: var(--sig); color: var(--bg);
  box-shadow: var(--shadow-md); cursor: pointer;
  transition: transform var(--duration-short) var(--ease-out);
}
.v2-stage-play:hover { transform: scale(1.04); background: var(--sig-hover); }
.v2-stage-lead { font-family: var(--font-display); font-size: 21px; font-weight: 800; letter-spacing: -0.035em; }
.v2-stage-sub { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.07em; color: var(--fg-2); }

.v2-stage-bar { display: flex; align-items: center; gap: 18px; height: 58px; padding: 0 16px; border-top: 1px solid var(--line); background: var(--bg); }
.v2-stage-start {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px;
  border: 0; border-radius: var(--radius-round); background: var(--sig); color: var(--bg); cursor: pointer;
}
.v2-stage-start:hover { background: var(--sig-hover); }
.v2-stage[data-state="live"] .v2-stage-start { display: none; }
.v2-stage-count, .v2-stage-time { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--fg-2); white-space: nowrap; }
.v2-stage-time { color: var(--fg-3); }
.v2-ruler { display: flex; align-items: center; gap: 5px; flex: 1; min-width: 40px; }
.v2-ruler i { display: block; flex: 1; height: 5px; border-radius: var(--radius-round); background: var(--ruler-tick); }

@media (max-width: 900px) {
  .v2-stage-url, .v2-stage-tag { display: none; }
  .v2-stage-count, .v2-stage-time { display: none; }
}
