:root {
  --bg: #000000;
  --panel: #131417;
  --ink: #f4f4f1;
  --soft: rgba(244, 244, 241, 0.55);
  --line: rgba(244, 244, 241, 0.12);
  --accent: #ff7a3d;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 12px;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; outline: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

.sb { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); width: min(430px, 100%); padding: 14px; border-radius: 26px; background: linear-gradient(170deg, #1a1b20, var(--panel) 60%); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 36px 60px -36px rgba(255, 122, 61, 0.2); }
.sb__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; padding: 0 2px; }
.sb__title { display: grid; gap: 1px; }
.sb__title strong { font-size: 15px; font-weight: 700; white-space: nowrap; }
.sb__shot { display: block; height: 15px; overflow: hidden; font-size: 11.500px; line-height: 15px; color: var(--soft); }
.sb__shot span { display: block; }
.sb__time { display: flex; align-items: baseline; gap: 5px; font-size: 11.500px; color: var(--soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sb__time b { font-size: 15px; font-weight: 700; color: var(--ink); }

/* the strip: five shots sharing the width, the one on air takes more of it */
.sb__strip { position: relative; display: flex; gap: 5px; height: min(150px, 34vh); margin-top: 10px; }
.sb__card { position: relative; flex: 1 1 0; min-width: 0; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, hsl(var(--h) 46% 32%), hsl(calc(var(--h) + 20) 50% 13%)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); text-align: left; opacity: 0.62; }
.sb__card[aria-current="true"] { opacity: 1; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 14px 22px -14px rgba(0, 0, 0, 0.9); }
.sb__card:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.sb__kind { position: absolute; left: 8px; top: 7px; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.45); font-size: 9.500px; font-weight: 660; white-space: nowrap; }
.sb__kind { transition: opacity 0.25s; }
.sb__card:not([aria-current="true"]) .sb__kind { opacity: 0; }
.sb__len { position: absolute; left: 9px; bottom: 7px; font-size: 10px; font-weight: 600; color: rgba(255, 255, 255, 0.8); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* the frames are compositions, not pictures: a horizon, a subject, where it sits */
.sb__art { position: absolute; inset: 0; }
.sb__art::before, .sb__art::after { content: ""; position: absolute; }
.sb__art--wide::before { left: 0; right: 0; top: 62%; height: 1px; background: rgba(255, 255, 255, 0.35); }
.sb__art--wide::after { left: 50%; top: 46%; width: 34px; height: 22px; margin-left: -17px; border-radius: 4px 4px 0 0; background: rgba(255, 255, 255, 0.5); }
.sb__art--close::after { left: 50%; top: 52%; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.12)); }
.sb__art--macro::before { left: 50%; top: 20%; width: 5px; height: 26%; margin-left: -2.500px; border-radius: 3px; background: rgba(255, 255, 255, 0.7); }
.sb__art--macro::after { left: 50%; top: 58%; width: 120px; height: 120px; margin-left: -60px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4); }
.sb__art--over::before { left: -12%; bottom: -30%; width: 58%; height: 86%; border-radius: 50% 50% 0 0; background: rgba(0, 0, 0, 0.5); }
.sb__art--over::after { right: 16%; top: 44%; width: 26px; height: 20px; border-radius: 3px 3px 9px 9px; background: rgba(255, 255, 255, 0.6); }
.sb__art--pack::after { left: 50%; top: 30%; width: 46px; height: 62px; margin-left: -23px; border-radius: 5px 5px 3px 3px; background: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.4)); }
.sb__art--pack::before { left: 14%; right: 14%; top: 78%; height: 1px; background: rgba(255, 255, 255, 0.4); }
.sb__head-line { position: absolute; left: 0; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--accent); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35); pointer-events: none; }
.sb__head-line::before { content: ""; position: absolute; left: 50%; top: -3px; width: 10px; height: 8px; margin-left: -5px; border-radius: 2px 2px 5px 5px; background: var(--accent); }

.sb__note { height: 36px; margin-top: 12px; padding: 0 2px; overflow: hidden; font-size: 13px; line-height: 18px; color: var(--ink); }
.sb__note span { display: block; }
.sb__controls { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 8px; }
.sb__play { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #0b0b0d; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.14); }
.sb__play svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.400; stroke-linecap: round; stroke-linejoin: round; }
.sb__tri { fill: currentColor; stroke-width: 1.400; opacity: 0; }
.sb[data-playing="false"] .sb__tri { opacity: 1; }
.sb[data-playing="false"] .sb__pause { opacity: 0; }
.sb__play:focus-visible { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--accent); }
.sb__bar { display: block; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.sb__bar i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

.live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; transform-origin: 20% 15%; pointer-events: none; opacity: 0; fill: #ffffff; stroke: #0b0b0d; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); z-index: 6; }

@media (prefers-reduced-motion: reduce) { .sb__kind { transition: none; } }
