/* Fightplan Work: the /work/five-shorts case page only (2026-11-21, KD-58).
   Loaded after styles.css, inner.css and work.css. Tokens come from styles.css (brand-tokens.json).
   Every default below works with no JavaScript: each video is a plain <video controls> with its own still, and the map
   of where each Short came from is drawn in the page. work-five-shorts.js adds the red buttons, one-at-a-time play and
   the playheads on the map.
   Blocks:
     .fs-stage      the black stage: the interview, the map, the five Shorts
     .fs-int        the source interview, 16:9, with its red button
     .fs-map        five rows on the interview's 3:00: the stretches each Short kept (code-drawn, from the Shorts' own data)
     .fs-row        the five Shorts in phone frames (a swipe row on phones)
     .fs-tape       four numbers, scoreboard style */

/* ---------- The stage ---------- */
.fs-stage{background:var(--black);border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:var(--space-7) 0 var(--space-8)}
.fs-wrap{width:min(calc(100% - 2 * var(--gutter)),1200px);margin:0 auto}
.fs-step{display:flex;align-items:baseline;gap:var(--space-4);margin:0 0 var(--space-4)}
.fs-step .label{flex:none}
.fs-step h2{margin:0;font-family:var(--font-display);font-weight:700;font-size:var(--text-xl);line-height:1;text-transform:uppercase;letter-spacing:.01em}
/* 2026-11-21: 40em (was 36em) holds the first note on one line, and text-wrap:balance splits a longer one into even
   lines, so no browser leaves a last word alone on its line (the site's text-wrap:pretty is not in every browser) */
.fs-step p{margin:0 0 0 auto;max-width:40em;font-size:var(--text-sm);line-height:1.5;color:var(--muted);text-align:right;text-wrap:balance}

/* ---------- The interview ---------- */
/* it fits a laptop screen with the map under it, and never shows past 1200 px */
.fs-int-box{position:relative;width:min(100%,max(560px,calc((100vh - 360px) * 16 / 9)));margin:0 auto}
.fs-int{position:relative;overflow:hidden;aspect-ratio:16 / 9;background:var(--bg);border:1px solid var(--border-strong)}
.fs-video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;background:var(--bg)}
.fs-play{position:absolute;z-index:2;gap:10px;width:auto;margin:0}
.fs-play[hidden]{display:none !important}
.fs-play .icon{width:16px;height:16px;fill:currentColor;stroke:none}
.fs-int-box .fs-play{right:var(--space-5);top:var(--space-5)}
/* the label the raw footage carries, top left, as a monitor would */
.fs-raw{position:absolute;left:var(--space-4);top:var(--space-4);z-index:1;padding:6px 9px;background:rgba(11,11,12,.78);
  font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;line-height:1;color:var(--fg-2);pointer-events:none}
.fs-raw b{color:var(--brand-red);font-weight:700}
.is-sound .fs-raw{display:none}
.is-sound + .fs-play{display:none}

/* ---------- The map: where each Short came from ---------- */
.fs-map{margin:var(--space-5) auto 0;padding-top:var(--space-4);border-top:1px solid var(--border-strong)}
.fs-map-head{display:flex;justify-content:space-between;gap:var(--space-4);margin-bottom:var(--space-3);
  font-size:var(--text-xs);font-weight:600;letter-spacing:.14em;text-transform:uppercase;line-height:1.4;color:var(--muted)}
.fs-map ol{list-style:none;margin:0;padding:0}
.fs-map li{display:grid;grid-template-columns:250px minmax(0,1fr) 52px;align-items:center;gap:var(--space-4);margin:0;padding:7px 0}
.fs-map-n{font-size:var(--text-xs);font-weight:600;letter-spacing:.1em;text-transform:uppercase;line-height:1.3;color:var(--fg-2);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color 400ms var(--ease)}
.fs-map-n b{font-family:var(--font-display);font-weight:700;font-size:15px;letter-spacing:.06em;margin-right:6px;color:var(--muted)}
.fs-map-d{font-family:var(--font-display);font-weight:700;font-size:15px;letter-spacing:.04em;text-align:right;color:var(--muted);font-variant-numeric:tabular-nums}
/* the track: the whole interview; each block is a stretch the Short kept (left and width are the share of 3:00) */
.fs-track{position:relative;height:14px;background:var(--surface);border:1px solid var(--border)}
.fs-track i{position:absolute;top:2px;bottom:2px;min-width:2px;background:var(--fg-2);opacity:.55;transition:background 400ms var(--ease),opacity 400ms var(--ease)}
.fs-map li.on .fs-track i{background:var(--brand-red);opacity:1}
.fs-map li.on .fs-map-n,.fs-map li.on .fs-map-n b{color:var(--fg)}
/* the playheads: one line across every track for the interview, one marker in a row for a Short */
.fs-tracks{position:relative}
.fs-head{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:var(--fg);opacity:0;pointer-events:none;transition:opacity 300ms var(--ease)}
.fs-head.on{opacity:1}
.fs-track .fs-dot{position:absolute;top:-5px;width:2px;height:22px;margin-left:-1px;background:var(--fg);opacity:0;pointer-events:none}
.fs-map li.on .fs-dot{opacity:1}
.fs-axis{display:grid;grid-template-columns:250px minmax(0,1fr) 52px;gap:var(--space-4);margin-top:var(--space-2)}
.fs-axis span{grid-column:2;display:flex;justify-content:space-between;font-size:var(--text-xs);font-weight:600;letter-spacing:.08em;color:var(--muted);font-variant-numeric:tabular-nums}
.fs-axis i{font-style:normal}

/* ---------- The five Shorts ---------- */
.fs-shorts{margin-top:var(--space-8)}
/* three to a row, the last two centred: each phone near a real phone's width (five across made them a quarter size) */
.fs-row{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:var(--space-7) var(--space-5)}
.fs-row li{margin:0;min-width:0;flex:0 0 calc((100% - 2 * var(--space-5)) / 3);max-width:340px}
.fs-phone{width:100%}
.fs-phone .frame-view{aspect-ratio:9 / 16;background:var(--bg)}
.fs-short{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;background:var(--bg)}
/* the button sits in the dark band above the gym's name, clear of the title and the coach */
.fs-phone .fs-play{left:0;right:0;top:3%;width:max-content;margin:0 auto}
.fs-phone.is-sound .fs-play{display:none}
.fs-cap{display:block;padding-top:var(--space-3);font-size:var(--text-xs);font-weight:600;letter-spacing:.12em;text-transform:uppercase;line-height:1.4;color:var(--fg-2)}
.fs-cap b{display:block;font-family:var(--font-display);font-weight:700;font-size:20px;letter-spacing:.02em;line-height:1.05;color:var(--fg);margin-bottom:4px}
.fs-cap span{color:var(--muted)}
.fs-shorts .work-cap{padding-top:var(--space-5);padding-bottom:0}
.fs-count{display:none}

/* ---------- Numbers ---------- */
.fs-tape{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:var(--space-5) 0 0;border-top:1px solid var(--border-strong)}
.fs-tape div{padding:var(--space-4) var(--space-4) 0 0}
.fs-tape div + div{padding-left:var(--space-4);border-left:1px solid var(--border)}
.fs-tape dt{font-size:var(--text-xs);font-weight:600;letter-spacing:.14em;text-transform:uppercase;line-height:1.4;color:var(--muted)}
.fs-tape dd{margin:6px 0 0;font-family:var(--font-display);font-weight:700;font-size:clamp(44px,5.4vw,72px);line-height:1;letter-spacing:.01em;
  color:var(--fg);font-variant-numeric:tabular-nums}
.fs-specs{margin-top:0;padding-bottom:var(--space-5);max-width:none}

@media (max-width:1023px){
  .fs-row{gap:var(--space-6) var(--space-3)}
  .fs-row li{flex-basis:calc((100% - 2 * var(--space-3)) / 3)}
  .fs-cap b{font-size:17px}
  .fs-step p{display:none}
}
@media (max-width:767px){
  .fs-stage{padding:var(--space-5) 0 var(--space-7)}
  .fs-int-box .fs-play{position:static;display:flex;width:100%;justify-content:center;margin-top:var(--space-3)}
  .is-sound + .fs-play{display:flex}
  .fs-map li,.fs-axis{grid-template-columns:118px minmax(0,1fr) 40px;gap:var(--space-3)}
  .fs-map-n{white-space:normal;overflow:visible;line-height:1.25}
  .fs-map-n b{display:block;margin:0}
  .fs-map-head{flex-direction:column;gap:2px}
  /* the Shorts: a swipe row inside the stage, the next phone peeking in */
  .fs-row{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:var(--space-4);margin:0 calc(-1 * var(--gutter));padding:0 var(--gutter);overflow-x:auto;
    overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:var(--gutter);scrollbar-width:none}
  .fs-row::-webkit-scrollbar{display:none}
  .fs-row li{flex:0 0 80%;max-width:none;scroll-snap-align:start}
  .fs-count{display:block;margin-top:var(--space-3);font-size:var(--text-xs);font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
  .fs-tape{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:var(--space-4)}
  .fs-tape div:nth-child(3){padding-left:0;border-left:0}
}
