/* Hero flow — figure#story (story.js): the whole flow, one real frame or scene film per beat,
   a step counter and ‹ › at the bottom. The frame shape is the station flow frame's, without its player. */
.story-flow { position: relative; align-self: stretch; min-height: 560px; padding: 0; overflow: hidden; background: linear-gradient(145deg, rgba(20,23,31,.92), rgba(8,9,14,.96)); outline: none; }
.story-flow:focus-visible { box-shadow: 0 0 0 2px var(--blue-hi, #7ab0ff); }
.story-flow .flow-progress { gap: 3px; }
.story-flow .flow-progress i.is-on b { width: 0; }
.story-flow.is-manual .flow-progress i.is-on b { width: 100%; }
.story-flow .beat { padding: 40px 24px 68px; }
.story-flow .beat-line .story-keys { display: inline-flex; gap: 6px; margin-left: 10px; vertical-align: middle; opacity: 1; transform: none; }
.story-flow .beat-line .story-keys .key { font-size: .6em; }

.st-film { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; min-height: 0; }
.st-film video, .st-film .st-main { width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center; border-radius: 14px; }
.st-film video { background: #07080c; cursor: zoom-in; }
.pk-fit video.pk-film { display: block; width: min(1200px, 92vw); max-width: 92vw; max-height: 82vh; height: auto; background: #07080c; }
.st-film .st-strip { justify-self: center; width: auto; max-width: 100%; height: auto; max-height: 64px; border-radius: 10px; }
.st-follow-scene { position: relative; min-height: 0; overflow: hidden; border-radius: 14px; background: #1b1d1e; }
.st-cursor-backdrop { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; pointer-events: none; }
.st-cursor-anchor { position: absolute; top: 39%; left: 14%; right: 7%; display: flex; align-items: flex-start; gap: 4px; }
.st-cursor-pointer { flex: 0 0 auto; margin-top: 3%; filter: drop-shadow(0 1px 3px #0009); }
.st-cursor-card { display: block; width: 80%; min-width: 0; height: auto; }

.story-nav { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 4; display: flex; align-items: center; justify-content: center; gap: 10px; }
.story-nav button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(10,12,18,.72); color: var(--text); font-family: inherit; font-size: 20px; font-weight: 600; line-height: 1; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.story-nav button:hover { background: rgba(255,255,255,.12); }
.story-nav .story-play { width: 30px; height: 30px; margin-left: 4px; font-size: 11px; color: var(--dim); }
.story-nav .story-play::before { content: "❚❚"; letter-spacing: -2px; }
.story-flow.is-manual .story-play::before { content: "▶"; letter-spacing: 0; }
.story-count { min-width: 56px; text-align: center; font: 600 13px/1 var(--mono, ui-monospace, monospace); color: var(--dim); }
.story-count b { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .story-flow .flow-progress i.is-on b { width: 100%; }
}
@media (max-width: 900px) {
  .story-flow { min-height: 0; aspect-ratio: 4 / 3.4; }
  .story-flow .beat { padding: 36px 16px 60px; }
}
