/* /shows in the "J" design (DoubloonWeb.ShowsWall). Ink theatre, Inter
   throughout, the landing's Fill bar (DoubloonWeb.Landing.Fill.bar) as the
   only light source. A stage for the show on top of the Produce list, then
   the wall: every cover still raising is a vessel lit up to its funded
   level under a glowing green waterline. Type floor 16px. No grey type:
   cream, gold, green, urgency red, or ink on a gold fill.
   Display lines (titles, the percents) are Inter 900 with tight tracking. */

.sj-root {
  --j-bg: #07070f;
  --j-bg-rgb: 7, 7, 15;
  --j-surface: #0f0f1e;
  --j-surface-2: #17172c;
  --j-line: rgba(242, 237, 228, 0.13);
  --j-line-2: rgba(242, 237, 228, 0.26);
  --j-text: #f2ede4;
  --j-text-rgb: 242, 237, 228;
  --j-gold: #f5c518;
  --j-gold-bright: #f8d44f;
  --j-on-gold: #1a1300;
  --j-green: #21e458;
  --j-green-rgb: 33, 228, 88;
  --j-red: #ff5a4f;
  --j-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --j-font: 'Inter', system-ui, -apple-system, sans-serif;
  --header: 68px;
  --gut: 16px;
  /* stage: how much of the wall peeks under it on phones, the copy column,
     the space under it and the scrim's fade above it */
  --peek: 44px;
  --copy-w: 100%;
  --ui-pb: 24px;
  --shade-fade: 96px;
  /* 1 where the copy sits over a full-bleed stage (read by shows_j.js) */
  --sj-overlay: 0;

  background: var(--j-bg);
  color: var(--j-text);
  font-family: var(--j-font);
  font-size: 17px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

.sj-root :where(*, *::before, *::after) { box-sizing: border-box; }
.sj-root :where(h1, h2, p, ul) { margin: 0; padding: 0; }
.sj-root :where(ul) { list-style: none; }
.sj-root :where(button, input) { font: inherit; color: inherit; }
.sj-root :where(button) { background: none; border: 0; padding: 0; cursor: pointer; }
.sj-root :where(a) { color: inherit; text-decoration: none; }
.sj-root :where(img) { display: block; max-width: none; }
.sj-root :where(svg) { display: block; flex: none; }
.sj-root [x-cloak] { display: none !important; }
.sj-root :focus-visible { outline: 3px solid var(--j-text); outline-offset: 3px; }

.sj-vh {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ═════════════════════════ Stage ═════════════════════════ */

/* Phones and portrait tablets: the 2:3 poster full-bleed, leaving --peek of
   the wall's headline above the fold. */
.sj-stage {
  position: relative;
  overflow: hidden;
  background: var(--j-bg);
  height: calc(100vh - var(--header) - var(--peek));
  height: calc(100svh - var(--header) - var(--peek));
  min-height: 560px;
}

/* The poster, capped at 5:7 and anchored to the top; the copy sits over its
   faded lower edge. */
.sj-media {
  position: absolute;
  inset: 0 0 auto 0;
  height: min(100%, 140vw);
  background: #000;
  z-index: 0;
}
.sj-poster,
.sj-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sj-poster img,
.sj-video { object-fit: cover; object-position: 50% 20%; }
/* Two poster layers: a show swapped in loads into the hidden one, then
   crossfades. */
.sj-poster {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--j-ease), visibility 0s linear 0.6s;
}
.sj-poster.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s var(--j-ease), visibility 0s;
}
.sj-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background: transparent;
  transition: opacity 0.6s var(--j-ease);
}

/* The art's own edges: a short band under the top controls and the poster's
   bottom edge melting into the ink. */
.sj-media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(var(--j-bg-rgb), 0.55) 0, rgba(var(--j-bg-rgb), 0) 120px),
    linear-gradient(180deg, rgba(var(--j-bg-rgb), 0) 62%, rgb(var(--j-bg-rgb)) 100%);
}

/* The copy's ground: an ink scrim behind the copy block, so every line
   reads over any poster. */
.sj-shade {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--sj-copy-h, 400px) + var(--ui-pb) + var(--shade-fade));
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(var(--j-bg-rgb), 0) 0,
    rgba(var(--j-bg-rgb), 0.3) calc(var(--shade-fade) * 0.35),
    rgba(var(--j-bg-rgb), 0.7) calc(var(--shade-fade) * 0.7),
    rgba(var(--j-bg-rgb), 0.86) var(--shade-fade),
    rgba(var(--j-bg-rgb), 0.94) 100%
  );
}

.sj-ui {
  position: relative;
  z-index: 3;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 var(--gut) var(--ui-pb);
}

.sj-top { grid-row: 1; padding-top: 12px; }

/* Top row: two quiet 48px chips (ink 70%, hairline). Gold stays for money. */
.sj-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
}
.sj-label,
.sj-chip {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  border-radius: 8px;
  background: rgba(var(--j-bg-rgb), 0.7);
  box-shadow: inset 0 0 0 1px var(--j-line-2);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.sj-label { padding: 0 16px; }
.sj-chip {
  gap: 8px;
  padding: 0 16px 0 12px;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow 0.15s;
}
.sj-chip:hover { box-shadow: inset 0 0 0 1px rgba(var(--j-text-rgb), 0.6); }
.sj-chip svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.sj-chip--find { margin-left: auto; }

/* The open art between the top row and the copy: a tap plays the trailer. */
.sj-hit {
  grid-row: 2;
  display: block;
  width: calc(100% + var(--gut) * 2);
  min-height: 48px;
  margin: 0 calc(var(--gut) * -1);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Copy: one block bound to the show on stage; it dips out while it swaps. */
.sj-copy {
  grid-row: 3;
  min-width: 0;
  max-width: var(--copy-w);
  transition: opacity 0.3s var(--j-ease), transform 0.4s var(--j-ease);
}
.sj-copy.is-out {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.16s ease-out, transform 0.16s ease-out;
}
/* One line, never an ellipsis: "Funding Episode 3 of 12" always shows; the
   genre after it wraps onto a second line, which is clipped, whenever the
   first has no room for it. */
.sj-kicker {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  height: 1.3em;
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.3;
}
.sj-kicker-main { min-width: 0; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sj-kicker-genre { white-space: nowrap; }
.sj-kicker-genre::before { content: '·'; padding: 0 0.4em; }
.sj-title {
  margin-top: 8px;
  font-weight: 900;
  font-size: clamp(31px, 9vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sj-title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.sj-logline {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.4;
}

/* "More about <show>": the show page. A long name wraps (the arrow rides
   the last line) rather than cut off. */
.sj-about {
  display: block;
  width: fit-content;
  max-width: 100%;
  min-height: 48px;
  padding: 13px 0;
  margin: -4px 0 -12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-wrap: pretty;
  -webkit-tap-highlight-color: transparent;
}
.sj-about-t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.sj-about:hover .sj-about-t { text-decoration-thickness: 2px; }
.sj-root .sj-about svg {
  display: inline-block;
  width: 18px; height: 18px;
  vertical-align: -4px;
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.2s var(--j-ease);
}
.sj-about:hover svg { transform: translateX(3px); }
.sj-about:focus-visible { outline-offset: -2px; border-radius: 8px; }

.sj-fund { margin-top: 16px; }
.sj-readout {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.sj-pct { color: var(--j-green); font-variant-numeric: tabular-nums; }
.sj-pct--cream { color: var(--j-text); }
/* Five days isn't news: the deadline is quiet type until it is urgent. */
.sj-left {
  white-space: nowrap;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.sj-left.is-urgent { font-size: inherit; font-weight: 900; letter-spacing: -0.02em; color: var(--j-red); }

/* The landing's Fill bar: groove, gradient, glowing head. */
.sj-barwrap { display: block; margin-top: 12px; }
.sj-root .sj-bar {
  --bar-h: 8px;
  box-shadow: inset 0 0 0 1px rgba(245, 197, 24, 0.14), inset 0 1px 2px rgba(0, 0, 0, 0.9);
}
.sj-root .sj-bar .fl-bar__fill { animation: sj-bar-in 1.1s var(--j-ease) 0.2s backwards; }
.sj-root .sj-bar .fl-bar__rail { animation: sj-head-in 1.1s var(--j-ease) 0.2s backwards; }
@keyframes sj-bar-in { from { transform: scaleX(0); } }
@keyframes sj-head-in { from { transform: translateX(-100%); } }

.sj-togo {
  margin-top: 12px;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  text-wrap: pretty;
}

.sj-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.sj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
  transition: background-color 0.15s, box-shadow 0.15s, transform 0.15s var(--j-ease);
  -webkit-tap-highlight-color: transparent;
}
.sj-btn:active { transform: scale(0.98); }
.sj-btn svg { width: 20px; height: 20px; fill: currentColor; }
.sj-btn--ghost {
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 2px rgba(var(--j-text-rgb), 0.85);
  background: rgba(var(--j-bg-rgb), 0.35);
  color: var(--j-text);
  padding: 0 16px;
}
.sj-btn--ghost:hover { background: rgba(var(--j-text-rgb), 0.1); box-shadow: inset 0 0 0 2px var(--j-text); }
.sj-btn--gold { flex: 1 1 auto; background: var(--j-gold); color: var(--j-on-gold); }
.sj-btn--gold:hover { background: var(--j-gold-bright); }
.sj-btn--cream { flex: 1 1 auto; background: var(--j-text); color: var(--j-bg); }
.sj-btn--cream:hover { background: #fff; }
.sj-btn--sm { min-height: 48px; padding: 0 16px; font-size: 17px; flex: 0 0 auto; }

/* ── Trailer, phone layout: the 16:9 trailer sits above the copy, on black;
   the poster holds until the video has frames (.is-rolling). The page
   draws its own controls: Close and Sound up top, Pause / Play in the
   buttons, a thin progress line, and a tap on the picture pauses. ── */
.sj-stage.is-trailer { background: #000; }
.sj-stage.is-trailer .sj-media {
  top: 72px;
  bottom: calc(var(--sj-copy-h, 300px) + var(--ui-pb));
  height: auto;
  background: #000;
}
.sj-stage.is-trailer .sj-media::after,
.sj-stage.is-trailer .sj-shade { opacity: 0; }
.sj-stage.is-trailer.is-rolling .sj-poster.is-on { opacity: 0; }
/* The video fills the band above the copy and fits the picture inside it,
   so a band shorter than 16:9 (portrait tablets) pillarboxes rather than
   spilling under the top row and the copy. */
.sj-stage.is-trailer .sj-video {
  opacity: 1;
  inset: 0;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.sj-stage.is-trailer:not(.is-rolling) .sj-video { opacity: 0; }
.sj-stage.is-trailer .sj-about { display: none; }
/* "Pause" and "Play" share one width, so the button beside it stays put. */
.sj-stage.is-trailer .sj-ctas .sj-btn--ghost { min-width: 124px; }
/* The whole picture is the pause button; the copy and the chips sit above it. */
.sj-top,
.sj-copy { position: relative; z-index: 1; }
.sj-stage.is-trailer .sj-hit {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: auto;
  min-height: 0;
  margin: 0;
}
.sj-progress {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(var(--j-text-rgb), 0.22);
  pointer-events: none;
}
/* Phone layout: on the picture's bottom edge. A band taller than the
   16:9 picture letterboxes it, centred; a shorter one pillarboxes, so the
   picture's foot is the band's. */
.sj-stage.is-trailer .sj-progress { bottom: max(0px, calc((100% - 56.25vw) / 2)); }
.sj-progress-fill {
  display: block;
  height: 100%;
  background: var(--j-text);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 0.25s linear;
}
.sj-loading {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(var(--j-bg-rgb), 0.78);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}
.sj-fail {
  position: absolute;
  z-index: 5;
  left: var(--gut);
  right: var(--gut);
  top: 40%;
  transform: translateY(-50%);
  text-align: center;
  font-size: 18px;
  font-weight: 600;
}
.sj-fail-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 8px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ═════════════════════════ The wall ═════════════════════════ */

.sj-wall { position: relative; }

/* Head: the headline, the landing's Fill bar, and what "full" means in
   plain words. */
.sj-legend { padding: 8px var(--gut) 16px; }
.sj-legend-title {
  font-weight: 900;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.sj-legend-bar { margin-top: 12px; min-width: 0; }
.sj-root .sj-lbar { --bar-h: 4px; }
.sj-legend-end { margin-top: 8px; font-size: 16px; font-weight: 600; line-height: 1.35; }
.sj-legend-end strong { color: var(--j-green); font-weight: 800; font-variant-numeric: tabular-nums; }

/* Everything under the head is at least a screen tall, so the strip can
   always sit at the top of a sparse tab without the page jumping. */
.sj-wallbody {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-bottom: 48px;
}

/* ── Control strip (sticky): the tabs, then search. ── */
.sj-strip {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0 var(--gut);
  background: var(--j-bg);
  box-shadow: 0 1px 0 var(--j-line);
}
.sj-strip-in { display: grid; grid-template-columns: minmax(0, 1fr); }

/* Five tabs outgrow a phone: the row scrolls on its own instead of
   widening the page. */
.sj-states {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(var(--gut) * -1);
  padding: 0 var(--gut);
  box-shadow: inset 0 -1px 0 var(--j-line);
}
.sj-states::-webkit-scrollbar { display: none; }
.sj-state {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 8px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.sj-state:first-child { padding-left: 0; }
.sj-state.is-on { font-weight: 800; }
/* The active tab is underlined by a short, flat run of the bar's green. */
.sj-state.is-on::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--j-green);
}
.sj-state:first-child.is-on::after { left: 0; }
/* Each label reserves its bold width, so picking a tab never nudges the
   row. */
.sj-state-l { display: inline-flex; flex-direction: column; }
.sj-state-l::after {
  content: attr(data-t);
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-weight: 800;
}

.sj-find { display: flex; align-items: center; gap: 8px; }
.sj-field {
  position: relative;
  isolation: isolate;
  flex: 1 1 auto;
  min-width: 0;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
}
.sj-field::before {
  content: '';
  position: absolute;
  inset: 4px 0;
  z-index: -1;
  border-radius: 8px;
  background: var(--j-surface);
  box-shadow: inset 0 0 0 1px var(--j-line-2);
  pointer-events: none;
  transition: box-shadow 0.15s;
}
.sj-field:focus-within::before { box-shadow: inset 0 0 0 2px var(--j-text); }
.sj-field-ico {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round;
}
.sj-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 17px;
  font-weight: 500;
  color: var(--j-text);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.sj-input::placeholder { color: var(--j-text); opacity: 1; font-weight: 500; }
.sj-input::-webkit-search-cancel-button { display: none; }
/* (the site's form styles ring a focused search input in blue: the field's
   own outline is the only one) */
.sj-root .sj-input,
.sj-root .sj-input:focus,
.sj-root .sj-input:focus-visible { outline: none; box-shadow: none; border: 0; }
.sj-clear {
  width: 48px;
  height: 48px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.sj-clear:hover { background: var(--j-surface-2); }
.sj-clear svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* ── The wall: tiles ── */
.sj-gridwrap { padding: 16px var(--gut) 8px; }
.sj-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 12px;
  align-items: start;
}
.sj-cell { min-width: 0; }
.sj-tile {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  -webkit-tap-highlight-color: transparent;
}
.sj-tile:focus-visible { outline-offset: 4px; }
.sj-tile.is-lifted .sj-vessel { opacity: 0; }
.sj-vessel {
  position: relative;
  isolation: isolate;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--j-surface-2);
}
.sj-vessel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* One hairline, above the art, so every cover has a crisp rim. */
.sj-vessel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(var(--j-text-rgb), 0.14);
  pointer-events: none;
}

/* A raising cover is lit up to its level: full colour below the waterline
   (.sj-lit, the same image clipped), veiled above it. Funded and streaming
   covers are simply full colour. */
.sj-vessel.is-raising > .sj-art { filter: saturate(0.5) brightness(0.45); transition: filter 0.3s; }
.sj-lit,
.sj-fill {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.sj-lit { z-index: 1; clip-path: inset(calc((1 - var(--l, 0)) * 100%) 0 0 0); }
.sj-fill { z-index: 2; transform: translateY(calc((1 - var(--l, 0)) * 100%)); }
/* The waterline: the bar's green, keyed with an ink rim so it holds on
   light art, and a soft glow. */
.sj-line {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--j-green);
  box-shadow: 0 0 0 1px rgba(var(--j-bg-rgb), 0.92), 0 0 10px 1px rgba(var(--j-green-rgb), 0.45);
}

/* The percent rides the waterline: astride it, above it near the floor,
   just under it near the brim. It is the only thing on the art. */
.sj-buoy {
  position: absolute;
  left: 8px;
  top: 0;
  z-index: 2;
  transform: translateY(-50%);
  padding: 3px 7px;
  border-radius: 8px;
  background: rgba(var(--j-bg-rgb), 0.9);
  box-shadow: inset 0 0 0 1px rgba(var(--j-green-rgb), 0.6);
  color: var(--j-green);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sj-vessel.is-low .sj-buoy { transform: translateY(calc(-100% - 8px)); }
.sj-vessel.is-high .sj-buoy { transform: translateY(8px); }

/* Under the art: the title (two lines, never cut mid-name), what it is,
   and one status line, its parts dropping to a new line whole. */
.sj-name {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sj-by {
  margin-top: 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}
.sj-meta {
  margin-top: 4px;
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.sj-meta-in { display: flex; flex-wrap: wrap; margin-left: -20px; }
.sj-meta-in > span { position: relative; padding-left: 20px; white-space: nowrap; }
.sj-meta-in > span::before {
  content: '·';
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  text-align: center;
  font-weight: 500;
}
.sj-meta .is-pct { color: var(--j-green); }
.sj-meta .is-urgent { color: var(--j-red); font-weight: 700; }
/* "Included with membership" may take two lines in a phone column. */
.sj-meta-in > .is-access { white-space: normal; }

/* Blitz, and the old cards' sponsor credit, under the tile's link. */
.sj-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; font-size: 16px; }
.sj-sponsor a { text-decoration: underline; text-underline-offset: 3px; }
.sj-sponsor a:hover { color: var(--j-gold); }

@media (hover: hover) {
  .sj-tile:hover .sj-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
  .sj-tile:hover .sj-vessel.is-raising > .sj-art { filter: saturate(0.7) brightness(0.62); }
  .sj-tile:hover .sj-vessel:not(.is-raising) .sj-art { filter: brightness(1.08); }
}

/* The poster on its way up into the stage (appended to <body>, so outside
   .sj-root). */
.sj-flight {
  position: fixed;
  z-index: 70;
  overflow: hidden;
  border-radius: 12px;
  pointer-events: none;
  background: #000;
}
.sj-flight img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* A sentence for an empty tab; no results for a search, and a way out. */
.sj-note { font-size: 17px; font-weight: 600; }
.sj-empty { padding: 8px 0 0; }
.sj-empty-h { font-size: 20px; font-weight: 800; line-height: 1.3; }
.sj-empty-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ═════════════════════════ Tablet / desktop ═════════════════════════ */

@media (min-width: 768px) {
  .sj-root { --header: 86px; --gut: 24px; --copy-w: 560px; --ui-pb: 48px; --shade-fade: 160px; }

  /* Landscape tablets and up: the 16:9 cover full-bleed (the copy's ground
     is in the overlay block below). */
  .sj-stage { height: clamp(540px, min(80vh, 56.25vw), 860px); min-height: 0; }
  .sj-media { height: 100%; }
  .sj-poster img, .sj-video { object-position: 50% 50%; }
  .sj-top { padding-top: 24px; }
  .sj-title { font-size: clamp(42px, 4vw, 56px); -webkit-line-clamp: 2; }
  .sj-logline { margin-top: 12px; font-size: 18px; line-height: 1.45; }
  .sj-fund { margin-top: 24px; max-width: 480px; }
  .sj-readout { font-size: 22px; }
  .sj-ctas { margin-top: 24px; }
  .sj-btn--gold, .sj-btn--cream { flex: 0 0 auto; min-width: 240px; }

  /* Wall head: the headline with the bar beside it and its plain-words
     legend under the bar. */
  .sj-legend {
    display: grid;
    grid-template-columns: auto minmax(120px, 1fr);
    column-gap: 32px;
    padding: 48px var(--gut) 24px;
  }
  .sj-legend-title { grid-row: 1 / span 2; font-size: 34px; align-self: center; }
  .sj-legend-bar { grid-column: 2; align-self: end; margin: 0; }
  .sj-legend-end { grid-column: 2; align-self: start; }

  .sj-strip { padding: 8px var(--gut); }
  .sj-strip-in { row-gap: 8px; }
  .sj-states { margin: 0; padding: 0; overflow: visible; }
  .sj-state { padding: 0 12px; }
  .sj-state.is-on::after { left: 12px; right: 12px; }
  .sj-field { height: 48px; min-width: 280px; }
  .sj-field::before { inset: 0; }
  .sj-gridwrap { padding-top: 24px; }
  .sj-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 16px; }
}

/* Portrait tablets stage like a big phone: the 2:3 poster full-bleed, the
   copy anchored at the bottom on its own scrim. A trailer plays the desktop
   way, though: the copy stays where it was, sits over the picture on the
   glow, and steps aside while the trailer is moving. */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  /* (shows_j.js arms the fade only where this is 1) */
  .sj-root { --shade-fade: 140px; --sj-overlay: 1; }
  .sj-stage {
    height: calc(100vh - var(--header) - var(--peek));
    height: calc(100svh - var(--header) - var(--peek));
    min-height: 640px;
    max-height: 1180px;
  }
  .sj-poster img, .sj-video { object-position: 50% 20%; }
  .sj-legend { padding-top: 12px; }

  /* The trailer: the whole 16:9 frame at full width. Its foot, measured up
     from the stage's (100% = the stage, 56.25vw = the picture), is centred,
     but at least 150px up (the money line and the buttons stay on black),
     at least 120px under the copy's top (never a sliver of picture by the
     kicker, never a black gap), and never above the stage top. */
  .sj-stage.is-trailer {
    --sj-glow: 1;
    --pic-b: min(
      calc(100% - 56.25vw),
      max(
        calc(var(--ui-pb) + 150px),
        min(calc((100% - 56.25vw) / 2), calc(var(--ui-pb) + var(--sj-copy-h, 340px) - 120px))
      )
    );
  }
  .sj-stage.is-trailer .sj-media { inset: 0; height: 100%; }
  .sj-stage.is-trailer .sj-video {
    top: auto;
    bottom: var(--pic-b);
    height: 56.25vw;
    object-fit: cover;
    object-position: 50% 50%;
  }
  .sj-stage.is-trailer .sj-progress { bottom: 0; }
  /* Until the trailer has frames, the stage keeps its resting look (the
     poster on its scrim); the scrim then fades out with the poster. */
  .sj-stage.is-trailer .sj-shade { transition: opacity 0.6s var(--j-ease); }
  .sj-stage.is-trailer:not(.is-rolling) .sj-shade { opacity: 1; }
  /* While the copy is up, the picture's foot goes to solid black under it:
     opaque through its bottom 14% (deeper than the bars a 2.39:1 trailer
     carries inside a 16:9 frame), so no image edge shows beside the copy.
     (Opacity stays on the plain is-trailer rule so .is-idle below wins.) */
  .sj-stage.is-trailer .sj-media::after { opacity: 1; transition: opacity 0.2s ease-out; }
  .sj-stage.is-trailer.is-rolling .sj-media::after {
    top: auto;
    bottom: calc(var(--pic-b) - 1px);
    height: calc(56.25vw + 2px);
    background: linear-gradient(0deg, #000 0, #000 14%, rgba(0, 0, 0, 0.5) 26%, rgba(0, 0, 0, 0) 42%);
  }
  .sj-stage.is-idle .sj-media::after { opacity: 0; transition: opacity 0.8s ease-in; }
  .sj-stage.is-trailer .sj-about { display: block; }
}

@media (min-width: 1024px) {
  /* The site header centres a 1280px column with 48px padding: share its
     content edge (logo = stage copy = wall), at every width from here up. */
  .sj-root { --gut: max(48px, calc((100vw - 1280px) / 2 + 48px)); --copy-w: 520px; }
  .sj-legend {
    grid-template-columns: auto minmax(160px, 1fr) auto;
    align-items: center;
  }
  .sj-legend-title { grid-row: 1; }
  .sj-legend-bar { align-self: center; }
  .sj-legend-end { grid-column: 3; grid-row: 1; align-self: center; margin: 0; white-space: nowrap; }
  .sj-logline { -webkit-line-clamp: 3; max-width: 34em; }
  .sj-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .sj-root { --copy-w: 600px; }
  .sj-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  /* One row: tabs, then search, on one hairline. */
  .sj-strip-in {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 32px;
    align-items: center;
    box-shadow: inset 0 -1px 0 var(--j-line);
  }
  .sj-states { box-shadow: none; }
}

/* Short landscape screens (phones on their side): a compact stage that
   keeps the button on screen. */
@media (max-height: 500px) and (orientation: landscape) {
  .sj-root { --ui-pb: 16px; --shade-fade: 72px; --copy-w: 640px; --sj-top-pad: 8px; }
  .sj-stage {
    height: calc(100vh - var(--header));
    height: calc(100svh - var(--header));
    min-height: 0;
  }
  .sj-media { height: 100%; }
  .sj-poster img, .sj-video { object-position: 50% 30%; }
  .sj-hit { min-height: 0; }
  .sj-top { padding-top: 8px; }
  .sj-kicker, .sj-logline { display: none; }
  .sj-title { margin-top: 0; font-size: 28px; -webkit-line-clamp: 1; }
  .sj-fund { margin-top: 8px; }
  .sj-readout { font-size: 18px; }
  .sj-barwrap { margin-top: 8px; }
  .sj-ctas { margin-top: 8px; }
  .sj-btn { min-height: 48px; }
}

/* ═════════════ The copy over a full-bleed stage ═════════════
   Desktops, landscape tablets and phones on their side. No dark slab: the
   copy carries its own ground, a soft ink glow the size of the copy (it
   follows the title, logline and buttons as they change), and the art
   keeps only a short fade into the page at its foot. A playing trailer
   fills the stage; the copy, its glow and the controls step aside once it
   is moving, and come back on any mouse move, touch or key, or a pause. */
@media (min-width: 1024px), (min-width: 768px) and (orientation: landscape), (max-height: 500px) and (orientation: landscape) {
  .sj-root { --sj-overlay: 1; --sj-glow: 1; }
  .sj-shade { display: none; }
  .sj-media::after {
    background: linear-gradient(0deg, rgb(var(--j-bg-rgb)) 0, rgba(var(--j-bg-rgb), 0.5) 9%, rgba(var(--j-bg-rgb), 0) 26%);
  }
  .sj-copy {
    justify-self: start;
    width: fit-content;
  }
  .sj-fund { width: 480px; max-width: 100%; }

  /* The trailer fills the stage, under the copy. The stage takes the
     trailer's 16:9 while it plays (as far as the screen allows), so the
     picture is barely cropped. */
  .sj-stage { transition: height 0.5s var(--j-ease); }
  .sj-stage.is-trailer {
    height: min(max(540px, min(56.25vw, calc(100vh - var(--header)))), calc(100vh - var(--header)));
  }
  .sj-stage.is-trailer .sj-media { top: 0; bottom: 0; height: 100%; }
  .sj-stage.is-trailer .sj-progress { bottom: 0; }
  .sj-stage.is-trailer .sj-media::after {
    opacity: 1;
    background: linear-gradient(0deg, rgb(var(--j-bg-rgb)) 0, rgba(var(--j-bg-rgb), 0) 10%);
  }
  .sj-stage.is-trailer .sj-video { object-fit: cover; }
  .sj-stage.is-trailer .sj-about { display: block; }
}

/* The whole cover, on computers and landscape tablets. The stage there is
   wider than 16:9 (2.3:1 on a laptop, 3:1 on a big monitor), so filling it
   with the cover cut off the cover's top and bottom: a 1920x1080 cover kept
   only 60-78% of its height. Now the cover sits whole at the stage's full
   height, centred, its side edges feathered into a blurred, darkened copy
   of the same art that fills the rest (--sj-art, set per poster layer).
   shows_j.js reads --sj-whole to land a tapped tile on the cover itself. */
@media (min-width: 1024px), (min-width: 768px) and (orientation: landscape) and (min-height: 501px) {
  .sj-root { --sj-whole: 1; }
  .sj-poster::before {
    content: '';
    position: absolute;
    inset: -64px;
    background: var(--sj-art, none) center / cover no-repeat;
    filter: blur(48px) saturate(1.1) brightness(0.62);
  }
  .sj-poster img {
    left: 50%;
    right: auto;
    width: auto;
    max-width: none;
    transform: translateX(-50%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 88px, #000 calc(100% - 88px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 88px, #000 calc(100% - 88px), transparent 100%);
  }
}

/* Wherever the copy sits over the trailer (the overlay block above, and
   portrait tablets: the same reach as --sj-overlay), "Loading trailer…"
   and "won't play" sit in the top row, between Close and Sound, clear of
   the copy. */
@media (min-width: 768px), (max-height: 500px) and (orientation: landscape) {
  .sj-stage.is-trailer .sj-loading { top: calc(var(--sj-top-pad, 24px) + 24px); }
  .sj-fail {
    top: var(--sj-top-pad, 24px);
    left: 50%;
    right: auto;
    width: max-content;
    max-width: calc(100% - 2 * var(--gut) - 400px);
    min-height: 48px;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    column-gap: 12px;
    font-size: 16px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  }
  .sj-fail .sj-fail-link { margin-top: 0; }
}

/* ═════════════ The copy over the picture (shared) ═════════════
   Wherever the copy sits over the picture (the block above, and a portrait
   tablet's trailer), --sj-glow: 1 gives it its own ground: a soft ink glow
   the size of the copy and a light text shadow. One definition, so the
   approved look is the same everywhere. */
.sj-copy { isolation: isolate; }
.sj-copy::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -40px -64px -32px -56px;
  border-radius: 72px;
  background: rgba(var(--j-bg-rgb), 0.78);
  filter: blur(44px);
  pointer-events: none;
  opacity: var(--sj-glow, 0);
  transition: opacity 0.3s var(--j-ease);
}
.sj-kicker,
.sj-title,
.sj-logline,
.sj-about,
.sj-readout,
.sj-togo { text-shadow: 0 1px 3px rgba(0, 0, 0, calc(0.55 * var(--sj-glow, 0))); }

/* Stepping aside while a trailer plays (shows_j.js sets .is-idle only where
   --sj-overlay is 1): a slow fade out, a quick fade back. The picture stays
   clickable (pause) and the pointer hides with the copy. */
.sj-ui,
.sj-progress { transition: opacity 0.2s ease-out; }
.sj-stage.is-idle { cursor: none; }
.sj-stage.is-idle .sj-ui,
.sj-stage.is-idle .sj-progress {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease-in;
}
.sj-stage.is-idle .sj-hit { pointer-events: auto; cursor: none; }

/* ═════════════ The show's credits under the stage ═════════════
   Desktop: the top five seats in one row under the stage (and a
   signed-in viewer's Current rank after them), clear of the
   cover and the trailer, swapping with the copy (is-out) when a tile is
   tapped. A stage whose show has credits (sjc-on) gives up --sjc-h so the
   row shows above the fold; a playing trailer keeps its full height. The
   words match /show's Live credits: gold titles, the names biggest, LOOT
   in green. */
.sjc { display: none; }

@media (min-width: 1024px) {
  .sj-root { --sjc-h: 120px; }
  .sj-stage.sjc-on:not(.is-trailer) {
    height: clamp(540px, min(80vh, calc(100vh - var(--header) - var(--sjc-h)), 56.25vw), 860px);
  }
  .sjc {
    display: block;
    padding: 4px var(--gut) 12px;
    transition: opacity 0.3s var(--j-ease), transform 0.4s var(--j-ease);
  }
  .sjc.is-out {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.16s ease-out, transform 0.16s ease-out;
  }
}

.sjc-in {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 8px 14px 24px;
  border-radius: 14px;
  background: var(--j-surface);
  box-shadow: inset 0 0 0 1px var(--j-line);
}
.sjc-live {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 16px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sjc-live i {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--j-green);
  animation: sjc-live 2s ease-out infinite;
}
@keyframes sjc-live {
  0% { box-shadow: 0 0 0 0 rgba(var(--j-green-rgb), 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(var(--j-green-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--j-green-rgb), 0); }
}
.sjc-seats {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.sjc-seat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 0 16px;
  box-shadow: inset 1px 0 0 var(--j-line);
}
.sjc-role {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--j-gold);
}
.sjc-name {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
/* The viewer's Current rank after the seats: a dashed rule, as on /show's
   credits. */
.sjc-rank {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 16px;
  border-left: 1px dashed var(--j-line-2);
  white-space: nowrap;
}
.sjc-rank .sjc-name.is-none {
  font-size: 14px;
  font-weight: 500;
  font-style: italic;
  color: rgba(var(--j-text-rgb), 0.62);
}
.sjc-seat.is-open .sjc-name {
  font-size: 16px;
  font-weight: 500;
  font-style: italic;
  color: rgba(var(--j-text-rgb), 0.62);
}
.sjc-loot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--j-green);
  font-variant-numeric: tabular-nums;
}
.sjc-loot .px-loot-mark { width: 10px; height: 12px; }

/* ── The fund sheet ──────────────────────────────────────────────────
   Its styles live in loot_sheet.css (the LOOT picker, shared site-wide). */
/* .sj-root is its own stacking layer (isolation), under the site header
   (z-10): lift it over the header while the sheet is open, so the scrim
   covers everything and the header never sits on the sheet. */
html.sjf-lock .sj-root { z-index: 20; }

@media (prefers-reduced-motion: reduce) {
  .sj-root *,
  .sj-root *::before,
  .sj-root *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation: none !important;
  }
  .sj-copy.is-out { transform: none; }
}
