/*
 * The reality pages' interactive parts (includes/RealityUi.php, assets/js/reality.js): the season timeline with its
 * sticky dash, the ribbon slider, the player's back / next and drag bar, the quiz, the person sheet, filters, the show
 * pages' time machine and the winners wall. Tokens from assets/css/ui.css; each page sets --acc (its colour).
 * Motion is transform and opacity only, and none under prefers-reduced-motion.
 */
.rx-js-off { display: none; }

/* ---------- the ribbon: a bar of ticks with a dot to drag ---------- */
.rx-rib { position: relative; display: flex; gap: 2px; height: 6px; margin-top: 10px; cursor: grab; touch-action: pan-y pinch-zoom; -webkit-tap-highlight-color: transparent; }
.rx-rib::before { content: ""; position: absolute; inset: -16px -10px; }   /* a finger-sized hit area round the thin bar */
.rx-rib:focus { outline: none; }
.rx-rib:focus-visible b { box-shadow: 0 0 0 3px var(--mc, var(--acc)), 0 0 0 6px var(--bg), 0 0 0 8px var(--mc, var(--acc)); }
.rx-rib > i { flex: 1; min-width: 2px; height: 100%; border-radius: 99px; background: var(--c, var(--acc)); opacity: .5; }
.rx-rib.is-drag { cursor: grabbing; } .rx-rib.is-drag > i { opacity: .85; }
.rx-rib > b, .rs-scrub > b { position: absolute; left: -9px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: #fff; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 3px var(--mc, var(--acc)), 0 0 12px var(--mc, var(--acc)); transition: transform .45s var(--ease), opacity .2s; }
.is-ready > b { opacity: 1; }
.rx-rib.is-drag > b, .rs-scrub.is-drag > b { transition: opacity .2s; scale: 1.3; }
/* While dragging, the moment rides above the dot. */
.rx-rib > b::after, .rs-scrub > b::after { content: attr(data-t); position: absolute; left: 50%; bottom: calc(100% + 9px); padding: 3px 9px; border-radius: 99px; background: var(--mc, var(--acc)); color: #111;
  font-size: .8125rem; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; opacity: 0; transform: translateX(-50%) scale(.5); transition: opacity .15s, transform .15s; }
.rx-rib.is-drag > b::after, .rs-scrub.is-drag > b::after { opacity: 1; transform: translateX(-50%) scale(.77); }
.rx-rib.is-hint > b { animation: rx-nudge 1.5s var(--ease) 1; }
@keyframes rx-nudge { 30% { translate: 16px 0; scale: 1.3; } 60% { translate: -4px 0; scale: 1.1; } }
.rx-rib.is-hint-l > b { animation: rx-nudge-l 1.5s var(--ease) 1; }
@keyframes rx-nudge-l { 30% { translate: -16px 0; scale: 1.3; } 60% { translate: 4px 0; scale: 1.1; } }

/* ---------- the season timeline ---------- */
.rx-tl { --mc: var(--acc); }
.rx-stage { display: grid; grid-template-columns: minmax(0, 1fr); }
.rx-dash { position: sticky; top: var(--nav-h); z-index: 22; margin: 0 calc(-1 * var(--gutter, 16px)); padding: 8px var(--gutter, 16px) 14px; background: var(--bg); border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 18px -12px rgba(0,0,0,.8); touch-action: pan-y pinch-zoom; }   /* covers the season strip while you read the season; a sideways swipe steps a moment */
.rx-tl:not(.rx-on) .rx-dash { position: relative; }
.rx-tl:not(.rx-on) .rx-dash .rx-step, .rx-tl:not(.rx-on) .rx-dash .rx-rib, .rx-tl:not(.rx-live) .rx-share { visibility: hidden; }   /* buttons that need the script; hidden, not removed, so nothing moves when it runs */   /* without the script the dash is the first moment's header, not a bar that never changes */
.rx-now { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "big k step" "big ev step"; column-gap: 12px; align-items: center; min-height: 44px; }
.rx-big { grid-area: big; display: grid; justify-items: start; line-height: 1; min-width: 4.2ch; }
.rx-big b { font-size: 1.875rem; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.rx-big small { margin-top: 2px; font-size: .625rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mc); }
.rx-big small:empty { display: none; }
.rx-k { grid-area: k; min-width: 0; font-size: .6875rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--mc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-k i { font-style: normal; color: var(--text-2); }
.rx-ev { grid-area: ev; min-width: 0; font-size: .875rem; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-step { grid-area: step; display: inline-flex; gap: 6px; }
.rx-step button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); cursor: pointer; transition: transform .15s; }
.rx-step button:hover { transform: scale(1.08); } .rx-step button:disabled { opacity: .35; cursor: default; transform: none; }
.rx-step .ui-icon { width: 16px; height: 16px; }
/* Who is in and who is out: one cell a person, lit while in */
.rx-cells { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 9px; }
.rx-cells i { flex: 0 1 9px; aspect-ratio: 1; min-width: 5px; border-radius: 50%; background: var(--surface-3); }
.rx-cells i.is-in { background: #34d399; } .rx-cells i.is-new { background: #22d3ee; } .rx-cells i.is-win { background: #f5c542; }
.rx-cells i.is-gone { background: #f87171; animation: rx-pop .5s var(--ease); }
@keyframes rx-pop { 40% { transform: scaleY(2.2); } }
/* Roadies: the ride as a strip of road from the route's start to its end, the bike moving as the season does */
.rx-road { display: none; }
.rx-peek { position: absolute; left: var(--gutter, 16px); right: var(--gutter, 16px); top: calc(100% + 8px); z-index: 6; display: grid; gap: 2px; padding: 10px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--mc); box-shadow: 0 18px 40px -16px rgba(0,0,0,.7); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .15s, transform .15s; }
.rx-peek b { font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mc); }
.rx-peek span { font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-dash.is-peek .rx-peek { opacity: 1; transform: none; }
/* The moments */
.rx-ms { position: relative; list-style: none; margin: 0; padding: 6px 0 0 24px; }
.rx-ms::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: linear-gradient(var(--acc), color-mix(in srgb, var(--acc) 15%, transparent)); }
.rx-m { position: relative; margin: 12px 0 0; scroll-margin-top: 104px; }   /* under the dash (the page's scroll-padding already clears the nav) */
.rx-m::before { content: ""; position: absolute; left: -23px; top: 18px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 3px solid var(--c); transition: transform .3s var(--ease); }
.rx-m.is-on::before { background: var(--c); transform: scale(1.3); }
.rx-card { padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .5s var(--ease), opacity .5s; }
.rx-m.is-on .rx-card { border-color: color-mix(in srgb, var(--c) 60%, var(--line)); }
.rx-js .rx-m:not(.is-in) .rx-card { opacity: 0; transform: translateY(22px); }
.rx-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; font-size: .75rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.rx-meta b { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.rx-meta .rx-left { margin-left: auto; font-weight: 700; color: var(--text-2); }
.rx-card h3 { margin: 6px 0 0; font-size: 1rem; font-weight: 800; line-height: 1.35; text-wrap: pretty; text-transform: none; letter-spacing: 0; }
.rx-evs { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 5px; font-size: .875rem; line-height: 1.4; }
.rx-evs li { display: grid; grid-template-columns: 9px auto minmax(0, 1fr); align-items: baseline; gap: 8px; }
.rx-evs li > i { align-self: center; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.rx-evs time { font-size: .75rem; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rx-evs li > span { grid-column: 3; }
.rx-evs li > i + span { grid-column: 2 / -1; }
.rx-evs em { font-style: normal; color: var(--text-3); }
.rx-p { appearance: none; padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--text); text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--acc) 45%, transparent); text-underline-offset: 3px; }
a.rx-p { color: var(--text); }
.rx-p:hover { text-decoration-color: currentColor; }
.rx-names { margin: 8px 0 0; font-size: .875rem; line-height: 1.7; color: var(--text-2); }
.rx-noms { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, #f87171 10%, var(--surface-2)); font-size: .875rem; line-height: 1.5; }
.rx-noms b { display: block; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: #fca5a5; }
.rx-watch { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; padding: 5px 12px 5px 9px; border-radius: 999px; background: color-mix(in srgb, var(--acc) 16%, var(--surface-2)); color: var(--text); font-size: .8125rem; font-weight: 800; text-decoration: none; }
.rx-watch .ui-icon { width: 13px; height: 13px; color: var(--acc); }
.rx-watch:hover { background: color-mix(in srgb, var(--acc) 26%, var(--surface-2)); }
.rx-more > summary { cursor: pointer; margin-top: 6px; font-size: .8125rem; font-weight: 700; color: var(--acc); }
.rx-unplaced { margin: 14px 0 0; font-size: .875rem; line-height: 1.6; color: var(--text-2); }
.rx-unplaced b { color: var(--text); } .rx-unplaced small { color: var(--text-3); font-size: .8125rem; }
.rx-meta .rx-left + .rx-share { margin-left: 0; }
.rx-share { display: grid; place-items: center; width: 28px; height: 22px; margin: -4px -6px -4px auto; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--text-3); cursor: pointer; }
.rx-share .ui-icon { width: 14px; height: 14px; }
.rx-share:hover { color: var(--c); }
@media (min-width: 600px) {
  .rx-road { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-top: 10px; font-size: .6875rem; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
  .rx-road__way { position: relative; height: 18px; border-radius: 9px; background: linear-gradient(90deg, #f5c518 50%, transparent 0) 0 50% / 16px 2px repeat-x, #1c1c23; box-shadow: inset 0 0 0 1px #3a3a46; }
  .rx-road__way b { position: absolute; left: 2px; top: -3px; display: block; line-height: 0; transition: transform .6s var(--ease); }
}
@media (min-width: 900px) {
  .rx-stage.has-dash { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px; align-items: start; }
  .rx-dash { top: calc(var(--nav-h) + var(--rx-under, 16px)); margin: 12px 0 0; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 30px 60px -40px var(--mc); }
  .rx-now { grid-template-areas: "big step" "k k" "ev ev"; grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .rx-big b { font-size: 2.75rem; }
  .rx-ev { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font-size: .9375rem; }
  .rx-cells { flex-wrap: wrap; gap: 4px; margin-top: 14px; }
  .rx-cells i { flex: none; width: 14px; height: 14px; }
  .rx-rib { height: 8px; margin-top: 18px; }
  .rx-peek { left: 0; right: 0; }
  .rx-m { scroll-margin-top: 24px; }
}

/* ---------- the player: the picture (YouTube loads on a tap), back, next and a drag bar ---------- */
.rs-player { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 14px; overflow: hidden; background: #000; margin-bottom: 12px; box-shadow: 0 18px 40px -24px var(--acc); }
.rs-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rs-player__face { position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; background: #000; color: #fff; text-align: left; }
.rs-player__face img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.rs-player__btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--acc); color: var(--acc-ink, #111); box-shadow: 0 8px 30px rgba(0,0,0,.45); transition: transform .2s var(--ease); }
.rs-player__face:hover .rs-player__btn { transform: translate(-50%, -50%) scale(1.08); }
.rs-player__btn .ui-icon { width: 28px; height: 28px; }
.rs-player__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; font-weight: 700; line-height: 1.3; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.rs-pnav__up { display: flex; align-items: baseline; gap: 8px; margin: 10px 2px 0; font-size: .875rem; color: var(--text-2); text-decoration: none; min-width: 0; }
.rs-pnav__up small { flex: none; font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.rs-pnav__up b { min-width: 0; color: var(--text); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-pnav__up:hover b { color: var(--acc); }
.rs-pnav { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: -2px 0 0; padding: 10px 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.rs-pnav__b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font: inherit; font-size: .875rem; font-weight: 800; cursor: pointer; text-decoration: none; transition: transform .15s; }
.rs-pnav__b .ui-icon { width: 17px; height: 17px; }
.rs-pnav__b--next { padding: 0 16px; border-color: transparent; background: var(--acc); color: var(--acc-ink, #111); box-shadow: 0 8px 20px -10px var(--acc); }
.rs-pnav__b:not(:disabled):hover { transform: translateY(-1px); }
.rs-pnav__b:disabled, .rs-pnav__b[aria-disabled="true"] { opacity: .35; cursor: default; box-shadow: none; pointer-events: none; }
.rs-pnav__now { min-width: 0; display: grid; gap: 1px; }
.rs-pnav__k { font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); font-variant-numeric: tabular-nums; }
.rs-pnav__t { font-size: .875rem; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rs-pnav.is-going { opacity: .6; }
/* The season as a slider: drag the dot (or tap the bar) to pick an episode */
.rs-scrub { grid-column: 1 / -1; position: relative; height: 6px; margin: 8px 6px 2px; border-radius: 99px; background: var(--surface-2); cursor: grab; touch-action: pan-y pinch-zoom; -webkit-tap-highlight-color: transparent; }
.rs-scrub::before { content: ""; position: absolute; inset: -16px -8px; }
.rs-scrub:focus { outline: none; } .rs-scrub:focus-visible > b { box-shadow: 0 0 0 3px var(--acc), 0 0 0 6px var(--surface), 0 0 0 8px var(--acc); }
.rs-scrub > i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 45%, transparent), var(--acc)); transform-origin: 0 50%; transform: scaleX(0); transition: transform .35s var(--ease); }
.rs-scrub.is-drag { cursor: grabbing; } .rs-scrub.is-drag > i { transition: none; }
.rs-player, .re-player { touch-action: pan-y pinch-zoom; }   /* a sideways swipe on the picture: next or back */
@media (max-width: 359px) { .rs-pnav__b--next span { display: none; } .rs-pnav__b--next { padding: 0 12px; } }

/* ---------- the quiz ---------- */
.rx-quiz { padding: 18px 16px; border-radius: 22px; border: 1px solid var(--line); background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--acc) 20%, transparent), transparent 60%), var(--surface); }
.rx-quiz { margin-top: 30px; }
.rx-quiz > h2 { margin: 0 0 4px !important; font-size: 1.25rem !important; line-height: 1.25; }
.rx-quiz > .rs-sub { margin: 0; color: var(--text-2); font-size: .9375rem; }
.rx-q { margin: 10px 0 0; font-size: 1.0625rem; font-weight: 800; line-height: 1.35; min-height: 2.7em; }
.rx-opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 12px; }
.rx-opts button { min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 700; font-size: .9375rem; line-height: 1.3; text-align: left; cursor: pointer; transition: transform .15s; }
.rx-opts button:hover { transform: translateY(-2px); border-color: var(--acc); }
.rx-opts button.ok { background: var(--up); color: #052e1f; border-color: transparent; }
.rx-opts button.no { background: var(--down); color: #300; border-color: transparent; }
.rx-quiz.is-done .rx-opts button:not(.ok):not(.no) { opacity: .5; }
.rx-why { margin: 10px 0 0; min-height: 1.5em; font-size: .875rem; color: var(--text-2); line-height: 1.5; }
.rx-qfoot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; margin-top: 8px; font-size: .8125rem; color: var(--text-2); }
.rx-qfoot b { color: var(--text); font-variant-numeric: tabular-nums; }
.rx-skip { border: 0; background: none; color: var(--acc); font: inherit; font-weight: 800; cursor: pointer; padding: 8px 0; }
@media (min-width: 600px) { .rx-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rx-quiz { padding: 22px 22px; } }

/* ---------- filters ---------- */
.rx-filter { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter, 16px)) 10px; padding: 2px var(--gutter, 16px); }
.rx-filter::-webkit-scrollbar { display: none; }
.rx-filter button { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font: inherit; font-size: .8125rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.rx-filter button i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--acc)); }
.rx-filter button b { color: var(--text); font-variant-numeric: tabular-nums; }
.rx-filter button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.rx-filter button[aria-pressed="true"] b { color: var(--bg); }
.rx-fcount { display: block; margin: -4px 0 8px; font-size: .8125rem; color: var(--text-3); }
.rx-fcount:empty { display: none; }
@media (min-width: 900px) { .rx-filter { flex-wrap: wrap; margin: 0 0 10px; padding: 2px 0; overflow: visible; } }

/* ---------- the person sheet ---------- */
.rx-sheet { width: min(480px, calc(100vw - 16px)); max-height: min(86dvh, 720px); margin: auto auto 8px; padding: 0; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); overflow: auto; overscroll-behavior: contain; }
.rx-sheet::backdrop { background: var(--scrim, rgba(5,5,8,.72)); }
.rx-sheet[open] { animation: rx-up .28s var(--ease); }
@keyframes rx-up { from { opacity: 0; transform: translateY(24px); } }
.rx-sheet__bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: .6875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); }
.rx-sheet__bar button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); font-size: 1.1rem; cursor: pointer; }
.rx-sheet__body { padding: 16px; display: grid; gap: 12px; }
.rx-sheet__top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.rx-sheet__av { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--surface-2); font-weight: 900; font-size: 1.2rem; color: var(--text-2); box-shadow: 0 0 0 3px var(--acc); }
.rx-sheet__av img { width: 100%; height: 100%; object-fit: cover; }
.rx-sheet h2 { margin: 0 0 4px; font-size: 1.3rem; line-height: 1.15; }
.rx-chip { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--c, var(--acc)); color: #111; font-size: .6875rem; font-weight: 800; letter-spacing: .04em; }
.rx-chip--w { background: transparent; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.rx-sheet__r { margin: 0; color: var(--text-2); font-size: .9375rem; line-height: 1.5; }
.rx-run__bar { position: relative; height: 12px; border-radius: 6px; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(255,255,255,.08) calc(10% - 1px) 10%), var(--surface-2); overflow: hidden; }
.rx-run__bar i { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: var(--c); transform-origin: 0 50%; animation: rx-grow .7s var(--ease); }
@keyframes rx-grow { from { transform: scaleX(0); } }
.rx-run__ends { display: flex; justify-content: space-between; margin-top: 4px; font-size: .6875rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.rx-run p { margin: 4px 0 0; font-size: .875rem; font-weight: 700; }
.rx-sheet__f { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.rx-sheet__f div { padding: 8px 10px; border-radius: 10px; background: var(--surface-2); min-width: 0; }
.rx-sheet__f dt { font-size: .625rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.rx-sheet__f dd { margin: 2px 0 0; font-size: .875rem; font-weight: 700; overflow-wrap: anywhere; }
.rx-sheet__x b { font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.rx-sheet__x ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: .875rem; }
.rx-sheet__x a { color: var(--text); font-weight: 700; } .rx-sheet__x small { color: var(--text-3); }
.rx-sheet__go { display: flex; flex-wrap: wrap; gap: 8px; }
.rx-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--acc); color: var(--acc-ink, #111); font: inherit; font-size: .875rem; font-weight: 800; text-decoration: none; cursor: pointer; }
.rx-btn--ghost { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
@media (min-width: 600px) { .rx-sheet { margin: auto; } }

/* ---------- the show pages' time machine ---------- */
.rx-tm { --tc: var(--acc); --mc: var(--tc); position: relative; margin: 12px 0 6px; padding: 14px 16px 16px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--tc) 35%, var(--line));
  background: radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--tc) 18%, transparent), transparent 60%), var(--surface); }
.rx-tm__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .6875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--tc); }
.rx-tm__card { display: grid; gap: 2px; min-height: 6.4em; margin-top: 6px; touch-action: pan-y pinch-zoom; }
.rx-tm__l { font-size: .75rem; font-weight: 800; color: var(--text-3); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.rx-tm__l em { font-style: normal; color: #34d399; }
.rx-tm__t { font-size: 1.2rem; font-weight: 900; line-height: 1.2; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-tm__t:hover { text-decoration: underline; }
.rx-tm__w { font-size: .9375rem; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-tm__x { font-size: .8125rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-rib--tm { height: 10px; margin-top: 14px; }
.rx-rib--tm > i { opacity: .7; } .rx-rib--tm > i.is-live { opacity: 1; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px #34d399; }
.rx-tm__ends { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: .6875rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.rx-tm__go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rx-tm__page, .rx-tm__here { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; font-size: .8125rem; font-weight: 800; text-decoration: none; }
.rx-tm__page { background: var(--tc); color: #111; } .rx-tm__page .ui-icon { width: 14px; height: 14px; }
.rx-tm__here { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.rx-tm .rx-step button { width: 34px; height: 34px; }
@media (min-width: 900px) { .rx-tm { padding: 18px 22px 20px; } .rx-tm__t { font-size: 1.5rem; } .rx-wall { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; } }

/* ---------- the winners wall ---------- */
.rx-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.rx-wall__t { display: grid; justify-items: center; align-content: start; gap: 2px; width: 100%; height: 100%; padding: 9px 3px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; text-align: center; text-decoration: none; cursor: pointer; transition: transform .15s; }
.rx-wall__t:hover { transform: translateY(-2px); border-color: var(--acc); }
.rx-wall__fs { display: flex; justify-content: center; }
.rx-wall__f { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--surface-2); color: var(--text-2); font-size: .8125rem; font-weight: 800; box-shadow: 0 0 0 2px var(--acc), 0 0 0 4px var(--surface); }
.rx-wall__f img { width: 100%; height: 100%; object-fit: cover; }
.is-pair .rx-wall__f { width: 36px; height: 36px; } .is-pair .rx-wall__f + .rx-wall__f { margin-left: -10px; }
.rx-wall__t small { margin-top: 4px; font-size: .625rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--acc); }
.rx-wall__t b { font-size: .7188rem; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rx-wall--pairs { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.rx-tabs { display: flex; gap: 6px; margin: 0 0 10px; overflow-x: auto; scrollbar-width: none; }
.rx-tabs button { flex: none; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font: inherit; font-size: .8125rem; font-weight: 700; cursor: pointer; }
.rx-tabs button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- the episode page's recap ---------- */
.rx-sum { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: 8px; margin: 12px 0 0; }
.rx-sum div { padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.rx-sum dt { font-size: .625rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.rx-sum dd { margin: 3px 0 0; font-weight: 800; font-size: .9375rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rx-prog { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.rx-prog__top { display: flex; justify-content: space-between; gap: 10px; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.rx-prog__top b { color: var(--acc); }
.rx-prog__bar { position: relative; height: 8px; margin-top: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.rx-prog__bar i { position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 40%, transparent), var(--acc)); transform-origin: 0 50%; }
.rx-prog .rx-cells i { height: 8px; }
.rx-prog p { margin: 8px 0 0; font-size: .875rem; color: var(--text-2); }
.rx-vbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rx-vbars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.rx-vbars b { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-vbars span { font-weight: 900; font-variant-numeric: tabular-nums; }
.rx-vbars i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.rx-vbars i::before { content: ""; display: block; height: 100%; width: 100%; border-radius: 3px; background: var(--text-3); transform-origin: 0 50%; transform: scaleX(var(--w)); }
.rx-vbars li.is-top { border-color: color-mix(in srgb, var(--acc) 55%, var(--line)); } .rx-vbars li.is-top i::before { background: var(--acc); }

@media (prefers-reduced-motion: reduce) {
  .rx-rib.is-hint > b, .rx-rib.is-hint-l > b, .rx-cells i.is-gone, .rx-sheet[open], .rx-run__bar i { animation: none; }
  .rx-rib > b, .rs-scrub > b, .rs-scrub > i, .rx-m::before, .rx-card, .rx-road__way b, .rx-step button, .rx-opts button, .rx-wall__t { transition: none; }
  .rx-js .rx-m:not(.is-in) .rx-card { opacity: 1; transform: none; }
}
.rx-loading [data-id] { cursor: progress; }
