/**
 * Live Leaderboard — the cross-vote standings section.
 *
 * Self-contained: it can render on the homepage (where home.php's inline CSS also
 * styles .sa-section-title/.sa-grad/.sa-home-eyebrow) but ALSO on the standalone
 * /leaderboard/ route and via [shining_leaderboard], where that inline CSS is
 * absent — so the few shared utility classes are (re)defined here, scoped under
 * .sa-lb, and everything is token-driven (--sa-*) so it tracks the active palette.
 *
 * @package Shining
 */

.sa-lb {
	--lb-acc: var(--sa-violet);
	/* Constrained + centered: a full-width board leaves a dead zone in the middle
	   (name hard-left, votes hard-right ~900px apart). Capping the width pulls the
	   count back beside the name and reads as one designed unit. */
	max-width: 820px;
	margin: 40px auto;
}
.sa-lb * { box-sizing: border-box; }

/* Shared utilities (self-sufficient off the homepage). */
.sa-lb .sa-home-eyebrow {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--sa-violet-light);
}
.sa-lb .sa-section-title {
	margin: 0;
	font-family: "Clash Display", system-ui, sans-serif;
	font-weight: 700;
	font-size: clamp(22px, 3.4vw, 30px);
	letter-spacing: -.02em;
	line-height: 1.1;
}
.sa-lb .sa-grad {
	background: var(--sa-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Header row: title block + a "Live now" pill. */
.sa-lb-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.sa-lb-live {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--sa-text);
	background: color-mix(in srgb, var(--sa-violet) 14%, transparent);
	border: 1px solid var(--sa-border-strong);
	border-radius: 999px;
	padding: 5px 12px;
}
.sa-lb-pulse {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--sa-violet);
}
/* The ring is a pseudo-element that scales and fades — compositor-only. It used
   to animate box-shadow: a repaint every frame, forever, on or off screen. */
.sa-lb-pulse::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: color-mix(in srgb, var(--sa-violet) 55%, transparent);
	animation: sa-lb-pulse 1.8s ease-out infinite;
}
/* No race on the board is being voted in right now: the pill drops the dot and
   the "Live now" wording and simply says what the section is. Still a true
   ranking — it just stops claiming to be moving. */
.sa-lb-live.is-quiet {
	background: none;
	border-color: var(--sa-border);
	color: var(--sa-text-muted);
}
@keyframes sa-lb-pulse {
	0%   { transform: scale(1); opacity: 1; }
	70%  { transform: scale(3.2); opacity: 0; }
	100% { transform: scale(3.2); opacity: 0; }
}
.sa-lb-sub {
	margin: 6px 0 18px;
	font-size: 14px;
	color: var(--sa-text-muted);
}
/* The freshness clause is the least important sentence in the line — present for
   trust, not for reading. */
.sa-lb-window { color: var(--sa-text-dim); }

/* Category filter chips. */
.sa-lb-filters {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin: 0 0 18px;
}
.sa-lb-chip {
	font: inherit;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--sa-text-muted);
	background: var(--sa-surface-1);
	border: 1px solid var(--sa-border);
	border-radius: 999px;
	padding: 7px 14px;
	cursor: pointer;
	transition: color .15s, background .15s, border-color .15s;
}
.sa-lb-chip:hover { color: var(--sa-text); border-color: var(--sa-border-strong); }
.sa-lb-chip.is-on {
	color: var(--sa-on-accent, #fff);
	background: var(--sa-gradient);
	border-color: transparent;
}

/* The list. */
.sa-lb-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.sa-lb-row {
	--vc-acc: var(--sa-violet);
	display: grid;
	/* Five columns: rank + movement, face, name/meta/bar, numbers, the vote CTA.
	   Never a bare 1fr in the track list — see the grid-minmax rule. */
	grid-template-columns: 40px 46px minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 14px;
	padding: 12px 12px;
	border-radius: 14px;
	border: 1px solid transparent;
	transition: background .16s, border-color .16s;
}
/* The row carries an author-origin `display: grid`, which outranks the
   user-agent `[hidden] { display: none }`. Without this companion the category
   filter (leaderboard.js) hides nothing: every row stays on screen while only
   the matching ones are renumbered, so the board shows duplicate ranks. Same
   guard the other nine components carry. */
.sa-lb-row[hidden] {
	display: none !important;
}
/* A hairline between rows. Eight equally-spaced rows with nothing between them
   read as a paragraph of data; the rule gives the list the rhythm of a standings
   table without turning each row into a panel (the flat-surfaces house rule). */
.sa-lb-row + .sa-lb-row {
	margin-top: 2px;
	box-shadow: 0 -1px 0 color-mix(in srgb, var(--sa-border) 60%, transparent);
}
/* Hover only where there IS hover: on a phone a tap left the row stuck lit. */
@media (hover: hover) {
	.sa-lb-row:hover {
		background: var(--sa-surface-1);
		border-color: var(--sa-border);
	}
}

/* --- The leader ----------------------------------------------------------
   #1 on this board is often two or three times #2, and used to be announced by
   a tint so faint it read as a hover state. The spotlight is spent on the three
   things that carry rank: a lit panel, a bigger face in a gradient ring, and a
   larger name. */
.sa-lb-row.is-top {
	background:
		radial-gradient(120% 140% at 0% 50%, color-mix(in srgb, var(--sa-violet) 20%, transparent), transparent 68%),
		linear-gradient(100deg, color-mix(in srgb, var(--sa-violet) 13%, transparent), color-mix(in srgb, var(--sa-magenta) 7%, transparent));
	border-color: color-mix(in srgb, var(--sa-violet) 38%, var(--sa-border-strong));
	padding-top: 15px;
	padding-bottom: 15px;
}
.sa-lb-row.is-top .sa-lb-nm { font-size: 17.5px; }
.sa-lb-row.is-top + .sa-lb-row { box-shadow: none; }

/* Rank column: the number, with the movement indicator tucked under it. */
.sa-lb-rankcol {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	min-width: 0;
}
.sa-lb-rank {
	font-family: "Clash Display", system-ui, sans-serif;
	font-weight: 700;
	font-size: 19px;
	text-align: center;
	/* Was --sa-text-dim, which left places 4+ almost illegible against the dark
	   page — the very rows that have no medal to carry them. */
	color: var(--sa-text-muted);
	font-variant-numeric: tabular-nums;
}

/* Top-3 medals. Real separation between the three, because at a glance three
   near-identical rings are just three rings: #1 is FILLED with the palette
   gradient, #2 and #3 are outlined in two distinct accents. Never gold — this is
   fan-choice energy, not a gala. */
.sa-lb-row.is-rank-1 .sa-lb-rank,
.sa-lb-row.is-rank-2 .sa-lb-rank,
.sa-lb-row.is-rank-3 .sa-lb-rank {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	margin: 0 auto;
	border-radius: 50%;
	font-size: 15px;
	border: 1.5px solid color-mix(in srgb, var(--medal, var(--sa-violet)) 55%, transparent);
	background: color-mix(in srgb, var(--medal, var(--sa-violet)) 16%, transparent);
	color: var(--medal, var(--sa-violet));
}
.sa-lb-row.is-rank-1 .sa-lb-rank {
	width: 32px;
	height: 32px;
	border-color: transparent;
	background: var(--sa-gradient);
	color: var(--sa-on-accent, #fff);
	box-shadow: 0 5px 14px -6px color-mix(in srgb, var(--sa-violet) 90%, transparent);
}
.sa-lb-row.is-rank-1 { --medal: var(--sa-violet); }
.sa-lb-row.is-rank-2 { --medal: var(--sa-violet-light); }
.sa-lb-row.is-rank-3 { --medal: var(--sa-pink); }

/* --- Rank movement -------------------------------------------------------
   Replaces the "▲ climbing" text that every row on a live board wore at once
   (counts only ever rise, so vote gain could not tell rows apart). Places are
   zero-sum, so this column is varied by construction. */
.sa-lb-movewrap { display: block; line-height: 1; min-height: 12px; }
.sa-lb-move {
	display: inline-flex;
	align-items: center;
	gap: 1px;
	font-size: 10.5px;
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	letter-spacing: -.01em;
	color: var(--sa-text-dim);
}
.sa-lb-move .sa-lb-chev { width: 9px; height: 9px; flex: 0 0 auto; }
.sa-lb-move.is-up   { color: var(--sa-up, #34E2A0); }
.sa-lb-move.is-down { color: var(--sa-down, #FF7089); }
.sa-lb-move.is-new {
	font-size: 8.5px;
	letter-spacing: .06em;
	padding: 2px 4px;
	border-radius: 4px;
	color: var(--sa-violet-light);
	background: color-mix(in srgb, var(--sa-violet) 16%, transparent);
}
/* Holding a place is the quiet default and must LOOK like one — a dash, dimmed,
   so the eye skips it and lands on the rows that actually moved. */
.sa-lb-move.is-hold { color: var(--sa-text-dim); opacity: .55; font-weight: 700; }

/* Avatar — initials fallback, or the real photo cropped to the idol's face using
   TotalPoll's own read-only focal point (--np-fx/--np-fy/--np-zoom), the same
   formula the hero + vote cards use. */
.sa-lb-av {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	overflow: hidden;
	display: grid;
	place-items: center;
	font-family: "Clash Display", system-ui, sans-serif;
	font-weight: 700;
	font-size: 15px;
	color: var(--sa-on-accent, #fff);
	background: var(--vc-acc, var(--sa-violet));
	border: 2px solid var(--sa-border-strong);
}
/* The leader's face in a gradient ring, one size up — the same treatment a
   champion card gives its winner, so the two surfaces read as one system. */
.sa-lb-ring {
	position: relative;
	display: block;
	width: 56px;
	height: 56px;
	padding: 2px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--sa-violet), color-mix(in srgb, var(--sa-magenta) 55%, #fff));
	box-shadow: 0 6px 18px -9px color-mix(in srgb, var(--sa-violet) 95%, transparent);
}
.sa-lb-ring .sa-lb-av {
	width: 100%;
	height: 100%;
	border: 0;
}
/* The ring is wider than the face column, so the row's grid has to make room for
   it — otherwise it overlaps the name. */
.sa-lb-row.is-top { grid-template-columns: 40px 56px minmax(0, 1fr) auto auto; }
.sa-lb-av--photo { position: relative; background: var(--sa-surface-2); }
.sa-lb-av--photo img {
	position: absolute;
	width: calc(var(--sa-focal-scale, 308%) * var(--np-zoom, 1));
	height: calc(var(--sa-focal-scale, 308%) * var(--np-zoom, 1));
	max-width: none;
	max-height: none;
	left: calc(var(--np-fx, .5) * (1 - 3.08 * var(--np-zoom, 1)) * 100%);
	top:  calc(var(--np-fy, .4) * (1 - 3.08 * var(--np-zoom, 1)) * 100%);
	object-fit: cover;
	object-position: center 40%;
}

/* Name + meta. */
.sa-lb-who { min-width: 0; }
/* `color: inherit` is the intent, but it is (0,1,0) and loses inside `.entry`
   to the base theme's link-colour rule — see links-studio.php. The
   #tie-wrapper form (1,0,2) keeps the intent AND the specificity. */
.sa-lb-namelink { text-decoration: none; color: inherit; }
#tie-wrapper a.sa-lb-namelink { color: inherit; }
.sa-lb-nm {
	display: block;
	font-size: 15.5px;
	font-weight: 700;
	color: var(--sa-text);
	line-height: 1.25;
}
.sa-lb-namelink:hover .sa-lb-nm { color: var(--sa-violet-light); }
.sa-lb-grp {
	font-weight: 600;
	font-size: 13px;
	color: var(--sa-violet-light);
}
.sa-lb-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 3px;
	font-size: 12.5px;
	color: var(--sa-text-muted);
}
/* Show the vote title in full — the old 22ch ellipsis cut "…Performers 20…" mid
   word and read as broken. Now that the board is compact there's room; on a truly
   long title it wraps to a second line instead of being sliced. */
.sa-lb-in { min-width: 0; }

/* Country chip. The nominee label often arrives as "Kim Taehyung (V) – SOUTH
   KOREA"; the country is real information but it is META, so it moves here and
   stops competing with the name for weight.

   Two letters rather than a flag emoji — see shining_country_flag(): a flag does
   not survive this type size. The mono-ish tracking and the surface are what stop
   "KR" reading as a truncated word. */
.sa-lb-cc {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 23px;
	height: 17px;
	padding: 0 4px;
	border-radius: 4px;
	font-size: 10.5px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: .06em;
	color: var(--sa-text-muted);
	background: color-mix(in srgb, var(--sa-text) 8%, transparent);
	cursor: default;
	flex: 0 0 auto;
}

/* Deadline. A live board that never mentions a closing time gives nobody a reason
   to act today; "is-soon" (under 24h) escalates from neutral to the accent. */
.sa-lb-ends {
	display: inline-flex;
	align-items: center;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .01em;
	color: var(--sa-text-dim);
}
.sa-lb-ends::before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 4px;
	margin-right: 5px;
	border-radius: 50%;
	background: currentColor;
	opacity: .7;
}
.sa-lb-ends.is-soon { color: var(--sa-pink); }

/* Reuse the card vertical chip look on the leaderboard meta line. */
.sa-lb .sa-vc-vertical {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--vc-acc, var(--sa-violet));
	background: color-mix(in srgb, var(--vc-acc, var(--sa-violet)) 14%, transparent);
	border: 1px solid color-mix(in srgb, var(--vc-acc, var(--sa-violet)) 45%, transparent);
	border-radius: 999px;
	padding: 2px 8px;
}

/* The bar shares its line with the gap figure: bar flexes, gap sits at the end.
   Putting the gap here rather than in the numbers column is deliberate — this is
   the one place in the row with horizontal space to spare, and the figure reads
   as an annotation of the bar it sits beside. */
.sa-lb-track {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 9px;
}
.sa-lb-bar {
	display: block;
	height: 7px;
	flex: 1 1 auto;
	min-width: 0;
	border-radius: 999px;
	background: color-mix(in srgb, var(--sa-text) 8%, transparent);
	overflow: hidden;
}
.sa-lb-bar > i {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 999px;
	background: var(--vc-grad, var(--sa-gradient));
	box-shadow: 0 0 10px color-mix(in srgb, var(--vc-acc, var(--sa-violet)) 45%, transparent);
	/* The share is a SLIDE of a full-width fill (`--w`, 0–1), the Duel's
	   technique: the category filter's re-scaling no longer relays every row on
	   every frame, and the rounded end keeps its shape. The track clips. */
	transform: translateX(calc((var(--w, 1) - 1) * 100%));
	transition: transform .5s cubic-bezier(.22, 1, .36, 1);
	position: relative;
	overflow: hidden;
}
/* The replay (leaderboard.js) drives --w every frame; a transition would lag it. */
.sa-lb.is-replaying .sa-lb-bar > i { transition: none; }

/* The replay hides the rank badges at its start and pops them as the rows land. */
.sa-lb.is-replaying .sa-lb-move { opacity: 0; }
.sa-lb.is-replayed .sa-lb-move { animation: sa-lb-pop .45s cubic-bezier(.3, 1.6, .5, 1) 1; }
@keyframes sa-lb-pop {
	0%   { opacity: 0; transform: scale(.5); }
	100% { opacity: 1; transform: scale(1); }
}

/* The ONE fastest-rising row: light streaks run along its bar, the Duel's flow
   effect, only while the board is on screen (`is-flowing`, leaderboard.js). */
.sa-lb-row.is-hot .sa-lb-bar > i::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -40px;
	right: -40px;
	background: linear-gradient(90deg, transparent 0 58%, rgba(255, 255, 255, .32) 58% 66%, transparent 66%) 0 0 / 34px 100% repeat-x;
	opacity: 0;
	transition: opacity .4s ease;
}
.sa-lb.is-flowing .sa-lb-row.is-hot .sa-lb-bar > i::after {
	opacity: 1;
	animation: sa-lb-flow .8s linear infinite;
}
@keyframes sa-lb-flow {
	to { transform: translateX(34px); }
}
.sa-lb-gapwrap { flex: 0 0 auto; line-height: 1; }
/* "35.6K to #3" — the number a fan can actually do something about, and the
   answer to a linear bar's compressed tail. */
.sa-lb-gap {
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1;
	color: var(--sa-text-dim);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.sa-lb-gap.is-lead { color: color-mix(in srgb, var(--sa-violet-light) 88%, var(--sa-text)); }
.sa-lb-gap.is-tied { color: var(--sa-text-muted); }
.sa-lb-row.is-top .sa-lb-gap { font-size: 12.5px; }

/* Numbers column. */
.sa-lb-num { text-align: right; white-space: nowrap; }
.sa-lb-votes {
	display: block;
	font-family: "Clash Display", system-ui, sans-serif;
	font-weight: 700;
	font-size: 18px;
	color: var(--sa-text);
	font-variant-numeric: tabular-nums;
}
.sa-lb-row.is-top .sa-lb-votes { font-size: 21px; }

/* Velocity — votes gained over the measured window. Concrete, and different on
   every row, which is exactly what "climbing" never managed. */
.sa-lb-vel {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 800;
	color: var(--sa-up, #34E2A0);
	font-variant-numeric: tabular-nums;
}
/* Exactly one row per board carries this. A badge everybody wears is not a badge,
   so the fastest riser gets a real pill and nobody else gets anything. */
.sa-lb-vel.is-hot {
	padding: 2px 8px 2px 6px;
	border-radius: 999px;
	color: var(--sa-up, #34E2A0);
	background: var(--sa-up-soft, rgba(52, 226, 160, .14));
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sa-up, #34E2A0) 34%, transparent);
}
.sa-lb-hotic { width: 11px; height: 11px; flex: 0 0 auto; }

/* --- The vote CTA --------------------------------------------------------
   The board's job on a homepage is to send people to a ballot, and every row
   used to link only to a profile page. Ghost pill by default, filled on hover, so
   eight of them do not shout over the ranking itself. */
.sa-lb-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--sa-border-strong);
	font-size: 12.5px;
	font-weight: 800;
	/* Uppercase needs air; .01em was tuned for sentence case. */
	letter-spacing: .05em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--sa-text-muted);
	white-space: nowrap;
	box-shadow: var(--sa-button-depth-soft);
	transition: color .16s, background .16s, border-color .16s, transform .12s;
}
#tie-wrapper a.sa-lb-cta { color: var(--sa-text-muted); }
.sa-lb-cta__ic { width: 13px; height: 13px; flex: 0 0 auto; opacity: .8; }
.sa-lb-cta:hover,
#tie-wrapper a.sa-lb-cta:hover {
	color: var(--sa-on-accent, #fff);
	background: var(--sa-gradient);
	border-color: transparent;
	box-shadow: var(--sa-button-depth);
}
.sa-lb-cta:active { transform: scale(.97); }
.sa-lb-cta:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--sa-violet) 70%, transparent);
	outline-offset: 2px;
}
/* The leader's CTA is filled from the start — it is the row we most want tapped. */
.sa-lb-row.is-top .sa-lb-cta,
#tie-wrapper .sa-lb-row.is-top a.sa-lb-cta {
	color: var(--sa-on-accent, #fff);
	background: var(--sa-gradient);
	border-color: transparent;
	box-shadow: var(--sa-button-depth), 0 6px 18px -10px color-mix(in srgb, var(--sa-violet) 90%, transparent);
}

.sa-lb-empty { margin: 18px 0 0; color: var(--sa-text-muted); font-size: 14px; }

.sa-lb-foot { margin-top: 20px; display: flex; justify-content: center; }
.sa-lb-more {
	font-size: 13.5px;
	font-weight: 700;
	text-transform: uppercase; /* CTA rule — a destination, not a pager */
	letter-spacing: .05em;
	color: var(--sa-violet-light);
	text-decoration: none;
	border: 1px solid var(--sa-border-strong);
	border-radius: 999px;
	padding: 11px 22px;
	box-shadow: var(--sa-button-depth-soft);
	transition: background .15s, color .15s;
}
#tie-wrapper a.sa-lb-more { color: var(--sa-violet-light); }
.sa-lb-more:hover { background: var(--sa-surface-1); color: var(--sa-text); }
#tie-wrapper a.sa-lb-more:hover { color: var(--sa-text); }

/* Standalone /leaderboard/ page gets a little top breathing room. */
.sa-lb-page { padding: 20px 0 40px; }
.sa-lb--full { margin-top: 8px; }

/* ===========================================================================
   Leaderboard + Winners module — two columns on desktop, tabs on mobile.
   =========================================================================== */
.sa-lbmod {
	max-width: 1120px;
	margin: 40px auto;
}
/* Desktop shows BOTH columns, so the tab strip is a mobile-only control. */
.sa-lbmod-tabs { display: none; }
.sa-lbmod-cols {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
	gap: 30px;
	align-items: start;
}
.sa-lbmod-panel { min-width: 0; }
/* Neutralise the standalone board's own cap/centering inside the module so the
   two panels share the module width evenly. */
.sa-lbmod .sa-lb { max-width: none; margin: 0; }
/* A hairline seam reads the two panels as one designed unit. */
.sa-lbmod-panel--winners {
	border-left: 1px solid var(--sa-border);
	padding-left: 30px;
}

/* --- Champion cards v2 ---------------------------------------------------
   A closed vote is a RESULT, and the old card showed it as a list row: a title,
   a tinted strip, a number. v2 keeps the same compact footprint (this stack has
   to sit beside a leaderboard without towering over it) and spends the space it
   has on the three things that make a result feel finished — the face in a
   gradient ring, the share of the vote as a SIZE rather than a number, and a
   card surface that is lit rather than flat.

   Everything is driven by --vc-acc, the category accent the card already
   carried, so a column of champions reads as a set without being monotone.
   No gold, no gala: warm palette gradient and a heart, per the house rule. */
.sa-lbw-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	margin-top: 6px;
}
/* Standing on its own rather than beside the board, the list has the whole page
   to fill — one card per row would be a very long ladder of very wide cards.
   Never a bare 1fr in the track list: see the grid-minmax rule. */
.sa-lbw-grid--auto { grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }

.sa-lbw {
	--vc-acc: var(--sa-violet);
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 15px 17px 14px;
	border-radius: 18px;
	border: 1px solid var(--sa-border);
	/* Two layers: a soft accent bloom out of the top-right corner, over a
	   surface that lifts from 2 to 1 down the card. Flat panels read as
	   placeholders on a dark page; this reads as an object with a light on it. */
	background:
		radial-gradient(120% 88% at 100% 0%, color-mix(in srgb, var(--vc-acc) 15%, transparent) 0%, transparent 62%),
		linear-gradient(180deg, var(--sa-surface-2), var(--sa-surface-1) 72%);
	overflow: hidden;
	transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
/* A hairline of light along the top edge — the one detail that separates a card
   from a box on a dark surface. */
.sa-lbw::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 1px;
	background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--vc-acc) 55%, #fff) 28%, transparent 82%);
	opacity: .55;
	pointer-events: none;
}
@media (hover: hover) {
	.sa-lbw:hover {
		transform: translateY(-2px);
		border-color: color-mix(in srgb, var(--vc-acc) 48%, var(--sa-border));
		box-shadow: 0 16px 34px -20px color-mix(in srgb, var(--vc-acc) 85%, transparent);
	}
}
.sa-lbw-top {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
/* Celebratory but on-brand — the warm palette gradient + heart, never gold/gala. */
.sa-lbw-badge {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--sa-gradient);
	color: var(--sa-on-accent, #fff);
	box-shadow: 0 4px 12px -6px color-mix(in srgb, var(--sa-violet) 90%, transparent);
}
.sa-lbw-badge::before { content: ""; display: inline-block; width: .92em; height: .92em; background-color: var(--sa-on-accent, #fff); -webkit-mask: var(--sa-heart-mask) center / contain no-repeat; mask: var(--sa-heart-mask) center / contain no-repeat; }
/* The vote this result belongs to — context, so it sits above the champion in
   size but below them in weight. */
.sa-lbw-title {
	display: block;
	font-family: "Clash Display", system-ui, sans-serif;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.28;
	color: var(--sa-text);
	text-decoration: none;
}
a.sa-lbw-title:hover { color: var(--sa-violet-light); }

/* The champion plate. */
.sa-lbw-winner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--vc-acc) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--vc-acc) 22%, transparent);
}
.sa-lbw-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1 1 auto; }
.sa-lbw-nm {
	font-family: "Clash Display", system-ui, sans-serif;
	font-weight: 700;
	font-size: 15.5px;
	line-height: 1.2;
	color: var(--sa-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sa-lbw-grp { font-size: 13px; font-weight: 600; color: var(--vc-acc, var(--sa-violet-light)); }
.sa-lbw-votes {
	font-size: 12px;
	font-weight: 600;
	color: var(--sa-text-dim);
	font-variant-numeric: tabular-nums;
	line-height: 1.15;
}
.sa-lbw-votes b {
	font-family: "Clash Display", system-ui, sans-serif;
	font-size: 13.5px;
	font-weight: 800;
	color: var(--vc-acc, var(--sa-violet-light));
}
/* Share of everything cast in that vote — the number as a size. */
.sa-lbw-bar {
	display: block;
	height: 5px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--sa-text) 10%, transparent);
	overflow: hidden;
}
.sa-lbw-bar > i {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--vc-acc, var(--sa-violet)), color-mix(in srgb, var(--vc-acc, var(--sa-violet)) 42%, #fff));
}
/* The runner-up is a footnote, and a hairline says so better than a smaller
   font alone. */
.sa-lbw-runner {
	display: block;
	margin-top: -1px;
	padding-top: 10px;
	border-top: 1px solid var(--sa-border);
	font-size: 12px;
	color: var(--sa-text-muted);
	font-variant-numeric: tabular-nums;
}

/* Winner face, in a gradient ring — a champion should not wear the same plain
   circle a standings row does. */
.sa-lbw-ring {
	position: relative;
	flex: 0 0 auto;
	display: block;
	width: 52px;
	height: 52px;
	padding: 2px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--vc-acc, var(--sa-violet)), color-mix(in srgb, var(--vc-acc, var(--sa-violet)) 30%, #fff));
	box-shadow: 0 6px 16px -9px color-mix(in srgb, var(--vc-acc, var(--sa-violet)) 95%, transparent);
}
.sa-lbw-av {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	overflow: hidden;
	display: grid;
	place-items: center;
	font-family: "Clash Display", system-ui, sans-serif;
	font-weight: 700;
	font-size: 15px;
	color: var(--sa-on-accent, #fff);
	background: var(--vc-acc, var(--sa-violet));
}
.sa-lbw-av--photo { position: relative; background: var(--sa-surface-2); }
.sa-lbw-av--photo img {
	position: absolute;
	width: calc(var(--sa-focal-scale, 308%) * var(--np-zoom, 1));
	height: calc(var(--sa-focal-scale, 308%) * var(--np-zoom, 1));
	max-width: none;
	max-height: none;
	left: calc(var(--np-fx, .5) * (1 - 3.08 * var(--np-zoom, 1)) * 100%);
	top:  calc(var(--np-fy, .4) * (1 - 3.08 * var(--np-zoom, 1)) * 100%);
	object-fit: cover;
	object-position: center 40%;
}

/* The first champion, one size up: a stack of identical tiles has no top, and
   the newest result is the one worth landing on.
   Two guards, both about ROWS. `:not(--auto)` keeps it out of the full-width
   grid, and the min-width keeps it out of the phone/tablet grid below — in
   either, one taller card drags every card beside it up with it. */
@media (min-width: 901px) {
	.sa-lbw-grid:not(.sa-lbw-grid--auto) .sa-lbw--lead { padding: 18px 18px 16px; }
	.sa-lbw-grid:not(.sa-lbw-grid--auto) .sa-lbw--lead::after {
		content: "";
		position: absolute;
		inset: auto -30% -60% auto;
		width: 190px;
		height: 190px;
		border-radius: 50%;
		background: radial-gradient(circle, color-mix(in srgb, var(--vc-acc) 26%, transparent), transparent 68%);
		pointer-events: none;
	}
	.sa-lbw-grid:not(.sa-lbw-grid--auto) .sa-lbw--lead > * { position: relative; z-index: 1; }
	.sa-lbw-grid:not(.sa-lbw-grid--auto) .sa-lbw--lead .sa-lbw-title { font-size: 16.5px; }
	.sa-lbw-grid:not(.sa-lbw-grid--auto) .sa-lbw--lead .sa-lbw-ring { width: 62px; height: 62px; }
	.sa-lbw-grid:not(.sa-lbw-grid--auto) .sa-lbw--lead .sa-lbw-nm { font-size: 17px; }
	.sa-lbw-grid:not(.sa-lbw-grid--auto) .sa-lbw--lead .sa-lbw-bar { height: 6px; }
}

/* Below the two-column breakpoint: stack as a tab pair. */
@media (max-width: 900px) {
	.sa-lbmod-cols { display: block; }
	/* A premium segmented control: one frosted, inset "track" holding both tabs,
	   the active one lifted on the palette gradient with a soft coloured glow —
	   reads as a polished toggle, not two loose chips. */
	.sa-lbmod-tabs {
		display: inline-flex;
		gap: 4px;
		margin: 0 0 22px;
		padding: 5px;
		border-radius: 999px;
		background: color-mix(in srgb, var(--sa-surface-1) 82%, transparent);
		border: 1px solid var(--sa-border);
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
		box-shadow:
			inset 0 1px 0 color-mix(in srgb, #fff 7%, transparent),
			0 10px 26px -20px rgba(0, 0, 0, .9);
	}
	.sa-lbmod-tab {
		position: relative;
		display: inline-flex;
		align-items: center;
		gap: 7px;
		font: inherit;
		font-size: 13px;
		font-weight: 700;
		letter-spacing: .01em;
		color: var(--sa-text-muted);
		background: transparent;
		border: 0;
		border-radius: 999px;
		padding: 9px 18px;
		cursor: pointer;
		transition: color .2s ease, background .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s ease, transform .12s ease;
	}
	.sa-lbmod-tab__ic {
		width: 15px;
		height: 15px;
		flex: 0 0 auto;
		opacity: .8;
		transition: opacity .2s ease, transform .28s cubic-bezier(.22, 1, .36, 1);
	}
	.sa-lbmod-tab:hover { color: var(--sa-text); }
	.sa-lbmod-tab:hover .sa-lbmod-tab__ic { opacity: 1; }
	.sa-lbmod-tab.is-on {
		color: var(--sa-on-accent, #fff);
		background: var(--sa-gradient);
		box-shadow:
			0 8px 20px -8px color-mix(in srgb, var(--sa-violet) 85%, transparent),
			inset 0 1px 0 color-mix(in srgb, #fff 22%, transparent);
	}
	.sa-lbmod-tab.is-on .sa-lbmod-tab__ic { opacity: 1; transform: scale(1.06); }
	.sa-lbmod-tab:active { transform: scale(.96); }
	.sa-lbmod-tab:focus-visible {
		outline: 2px solid color-mix(in srgb, var(--sa-violet) 70%, transparent);
		outline-offset: 2px;
	}
	.sa-lbmod-panel { display: none; }
	.sa-lbmod-panel.is-active { display: block; }
	.sa-lbmod-panel--winners { border-left: 0; padding-left: 0; }
	/* Roomier phones/tablets can show champions two-up. */
	.sa-lbw-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
	.sa-lbmod-tab, .sa-lbmod-tab__ic, .sa-lbw { transition: none; }
	.sa-lbmod-tab:active { transform: none; }
	.sa-lbmod-tab.is-on .sa-lbmod-tab__ic { transform: none; }
}

/* --- Compact density -----------------------------------------------------
   Eight comfortable rows run past 700px, which is close to two phone screens for
   a section that is supposed to be a glance. Compact keeps every row and every
   figure and buys the height back from padding, the face, and the type scale. */
.sa-lb.is-compact .sa-lb-row { padding: 7px 10px; gap: 11px; grid-template-columns: 34px 38px minmax(0, 1fr) auto auto; }
.sa-lb.is-compact .sa-lb-row.is-top { padding: 9px 10px; grid-template-columns: 34px 46px minmax(0, 1fr) auto auto; }
.sa-lb.is-compact .sa-lb-av { width: 38px; height: 38px; font-size: 13px; }
.sa-lb.is-compact .sa-lb-ring { width: 46px; height: 46px; }
.sa-lb.is-compact .sa-lb-nm { font-size: 14.5px; }
.sa-lb.is-compact .sa-lb-row.is-top .sa-lb-nm { font-size: 16px; }
.sa-lb.is-compact .sa-lb-votes { font-size: 16px; }
.sa-lb.is-compact .sa-lb-row.is-top .sa-lb-votes { font-size: 18px; }
.sa-lb.is-compact .sa-lb-track { margin-top: 6px; }
.sa-lb.is-compact .sa-lb-bar { height: 5px; }
.sa-lb.is-compact .sa-lb-cta { padding: 6px 11px; font-size: 12px; }

@media (max-width: 760px) {
	/* The CTA collapses to its arrow. The label is what costs width, and the
	   screen-reader text on the link already names the nominee. */
	.sa-lb-cta { padding: 9px; gap: 0; }
	.sa-lb-cta__lbl { display: none; }
	.sa-lb-cta__ic { width: 15px; height: 15px; opacity: 1; }
}

@media (max-width: 640px) {
	.sa-lb-row { grid-template-columns: 28px 40px minmax(0, 1fr) auto auto; gap: 8px; padding: 9px 6px; }
	.sa-lb-row.is-top { grid-template-columns: 28px 48px minmax(0, 1fr) auto auto; padding: 11px 6px; }
	.sa-lb-av { width: 40px; height: 40px; font-size: 13px; }
	.sa-lb-ring { width: 48px; height: 48px; }
	.sa-lb-nm { font-size: 14.5px; }
	.sa-lb-row.is-top .sa-lb-nm { font-size: 16px; }
	.sa-lb-votes { font-size: 16.5px; }
	.sa-lb-row.is-top .sa-lb-votes { font-size: 19px; }
	.sa-lb-vel { font-size: 11.5px; margin-top: 3px; }
	.sa-lb-row.is-rank-2 .sa-lb-rank,
	.sa-lb-row.is-rank-3 .sa-lb-rank { width: 25px; height: 25px; font-size: 12.5px; }
	.sa-lb-row.is-rank-1 .sa-lb-rank { width: 27px; height: 27px; font-size: 13.5px; }
	.sa-lb-rank { font-size: 15.5px; }

	/* 🔴 One line for the meta, or the row grows by 18px per wrap — and with the
	   CTA taking a column there is no width to spare, so at 430px the poll title
	   wrapped to three lines and the row was TALLER than the one this redesign set
	   out to shorten. Ellipsis on a full-width line cuts where the space runs out
	   and marks it; the 22ch clamp this replaced cut mid-word at a fixed point,
	   which is what used to read as broken. The country and the deadline are short
	   and fixed, so the title is the only thing that flexes. */
	.sa-lb-meta { gap: 6px; font-size: 11.5px; flex-wrap: nowrap; }
	.sa-lb-in {
		flex: 1 1 auto;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.sa-lb-ends { flex: 0 0 auto; }

	/* The bar and the gap figure would fight over the same ~150px, so they stack.
	   The figure goes first: "35.6K to #3" survives being narrow, a 40px bar does
	   not say anything. */
	.sa-lb-track { flex-wrap: wrap; gap: 5px; margin-top: 6px; }
	.sa-lb-bar { flex: 1 1 100%; order: 2; height: 6px; }
	.sa-lb-gapwrap { order: 1; }
	.sa-lb-gap { font-size: 11px; }
}

@media (max-width: 400px) {
	.sa-lb-row { gap: 7px; }
	/* Last to go, because it is the one thing the reader can already infer from
	   the section they are looking at. */
	.sa-lb-ends { display: none; }
}

/* The two-column module puts the board in roughly half the page. Between the
   breakpoint and a comfortably wide window that column is narrow enough that the
   CTA's label is the piece worth spending on the name instead — same collapse the
   phone rule makes, triggered by the layout rather than the viewport. */
@media (min-width: 901px) and (max-width: 1160px) {
	.sa-lbmod .sa-lb-cta { padding: 8px; gap: 0; }
	.sa-lbmod .sa-lb-cta__lbl { display: none; }
	.sa-lbmod .sa-lb-cta__ic { width: 14px; height: 14px; opacity: 1; }
	.sa-lbmod .sa-lb-row { gap: 11px; }
}

@media (prefers-reduced-motion: reduce) {
	.sa-lb-pulse::after { animation: none; display: none; }
	.sa-lb.is-flowing .sa-lb-row.is-hot .sa-lb-bar > i::after { animation: none; opacity: 0; }
	.sa-lb.is-replayed .sa-lb-move { animation: none; }
	.sa-lb-row, .sa-lb-chip, .sa-lb-more, .sa-lb-bar > i, .sa-lb-cta { transition: none; }
	.sa-lb-cta:active { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   All-Time Fan Favorites — lifetime votes per idol on /leaderboard/.
   Podium (top 3) + ranked list; every card links to the idol's /profile/.
   The .sa-prof-av avatar formula is the shared focal-crop recipe (profile.css
   owns the profile pages' copy; this section ships its own scoped copy since
   profile.css doesn't load on this route).
   ═══════════════════════════════════════════════════════════════════════════ */
.sa-lba { margin: 44px 0 8px; }
.sa-lba .sa-lb-sub { margin-bottom: 20px; }

.sa-lba .sa-prof-av {
	position: relative;
	display: block;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	overflow: hidden;
	flex: 0 0 auto;
	background: var(--sa-surface-2, #1C1526);
	box-shadow: 0 0 0 3px var(--sa-bg, #0A0E1A), 0 0 0 5px var(--sa-heart, #00C389);
}
.sa-lba .sa-prof-av--photo img {
	position: absolute;
	width: calc(var(--sa-focal-scale, 308%) * var(--np-zoom, 1));
	height: calc(var(--sa-focal-scale, 308%) * var(--np-zoom, 1));
	max-width: none;
	max-height: none;
	left: calc(var(--np-fx, .5) * (1 - 3.08 * var(--np-zoom, 1)) * 100%);
	top: calc(var(--np-fy, .4) * (1 - 3.08 * var(--np-zoom, 1)) * 100%);
	object-fit: cover;
	object-position: center 40%;
}
.sa-lba .sa-prof-av--txt { display: grid; place-items: center; font-size: 30px; font-weight: 800; color: var(--sa-text-muted, #8E8399); }

/* Podium — grid places #1 centered + raised; DOM order stays 1,2,3. */
.sa-lba-podium {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-template-areas: "second first third";
	gap: 14px;
	align-items: end;
	margin: 0 0 18px;
}
.sa-lba-pod {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 22px 16px 18px;
	border: 1px solid var(--sa-border, rgba(255, 255, 255, .12));
	border-radius: var(--sa-radius, 16px);
	background: var(--sa-surface-1, #171021);
	text-align: center;
	text-decoration: none;
	position: relative;
	transition: transform .18s ease, border-color .18s ease;
}
@media (hover: hover) {
	.sa-lba-pod:hover { transform: translateY(-3px); border-color: var(--sa-heart, #00C389); }
}
.sa-lba-pod--1 { grid-area: first; padding-top: 28px; padding-bottom: 24px; border-color: color-mix(in srgb, var(--sa-heart, #00C389) 55%, transparent); }
.sa-lba-pod--2 { grid-area: second; }
.sa-lba-pod--3 { grid-area: third; }
.sa-lba-pod--1 .sa-prof-av { width: 104px; height: 104px; }
.sa-lba-podrank {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--sa-gradient, linear-gradient(135deg, #00C389, #00A870));
	color: var(--sa-on-accent, #fff);
	font-size: 13px;
	font-weight: 800;
	box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
}
.sa-lba-pod--1 .sa-lba-podrank { width: 32px; height: 32px; font-size: 15px; }
.sa-lba-podname { margin-top: 10px; font-weight: 800; font-size: 15.5px; color: var(--sa-text, #F4F0FA); overflow-wrap: anywhere; }
.sa-lba-fandom { font-size: 11.5px; font-weight: 600; color: var(--sa-heart, #00C389); }
.sa-lba-podvotes {
	margin-top: 5px;
	font-family: var(--sa-font-display, inherit);
	font-size: 21px;
	font-weight: 800;
	line-height: 1.1;
	background: var(--sa-gradient, linear-gradient(135deg, #00C389, #00A870));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.sa-lba-podstats { font-size: 11px; color: var(--sa-text-muted, #8E8399); }

/* Ranked list, rows 4+. */
.sa-lba-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sa-lba-row a {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 10px 15px;
	border: 1px solid var(--sa-border, rgba(255, 255, 255, .12));
	border-radius: var(--sa-radius-sm, 10px);
	background: var(--sa-surface-1, #171021);
	text-decoration: none;
	transition: border-color .18s ease;
}
.sa-lba-row a:hover { border-color: var(--sa-heart, #00C389); }
.sa-lba-row .sa-prof-av { width: 44px; height: 44px; box-shadow: 0 0 0 2px var(--sa-bg, #0A0E1A), 0 0 0 3px var(--sa-border-strong, rgba(255, 255, 255, .2)); }
.sa-lba-row .sa-prof-av--txt { font-size: 16px; }
.sa-lba-num { flex: 0 0 auto; min-width: 30px; text-align: center; font-family: var(--sa-font-display, inherit); font-size: 14px; font-weight: 800; color: var(--sa-text-muted, #8E8399); }
.sa-lba-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.sa-lba-meta strong { font-size: 14px; color: var(--sa-text, #F4F0FA); overflow-wrap: anywhere; }
.sa-lba-stats { flex: 0 0 auto; font-size: 11.5px; color: var(--sa-text-muted, #8E8399); text-align: right; }

@media (max-width: 640px) {
	.sa-lba-podium { grid-template-columns: minmax(0, 1fr); grid-template-areas: "first" "second" "third"; align-items: stretch; }
	.sa-lba-pod--1 .sa-prof-av { width: 92px; height: 92px; }
	.sa-lba-row a { flex-wrap: wrap; }
	.sa-lba-stats { flex-basis: 100%; text-align: left; padding-left: 87px; }
}
@media (prefers-reduced-motion: reduce) {
	.sa-lba-pod, .sa-lba-row a { transition: none; }
	.sa-lba-pod:hover { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Stage design (default) — `.is-stage`, set from the Leaderboard studio.

   The board is laid out BY RANK: #1 in a spotlight, #2 and #3 side by side as a
   podium, the rest as quiet rows. The champions beside it sit on rings that fill
   to their share of the vote. Classic (everything above) is untouched.

   Three rules this section lives by:
   - The layout follows the CLASSES, not the markup order. leaderboard.js moves
     is-top / is-rank-2 / is-rank-3 when a category chip narrows the board, so
     every row carries the parts any position needs (a ring, the lead label)
     and the CSS decides which ones show. One <ol>, one row template.
   - Flat. No card panels (the house rule): rows are divided by hairlines, and
     the only "surface" is light.
   - 🔴 The light is a free-floating, fully-faded circle. The first cut painted
     the glow as the spotlight row's own background, so the gradient was cut off
     by the row's edges and read as a blue box — exactly the boxiness this
     redesign was meant to remove. A ::before that is already transparent at its
     own edge has no edge to show, whatever box it sits in.
   =========================================================================== */
.sa-lb.is-stage {
	--lb-line: color-mix(in srgb, var(--sa-violet) 16%, transparent);
	--lb-face: 120px;
}
.sa-lb-leadtag { display: none; }

/* 🔴 The size container is the LIST, never .sa-lb. Size containment means a box
   can no longer take its width from its content, and on /leaderboard/ .sa-lb is
   a flex item (.sa-lb-page is flex) — so with the container on .sa-lb the whole
   board measured 0px wide and vanished. The list is a plain block-level child;
   its width always comes from outside. */
.sa-lb.is-stage .sa-lb-list {
	container: sa-lb / inline-size;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	margin-top: 6px;
}
.sa-lb.is-stage .sa-lb-list > .sa-lb-row {
	grid-column: 1 / -1;
	margin: 0;
	padding: 14px 0;
	border: 0;
	border-bottom: 1px solid var(--lb-line);
	border-radius: 0;
	background: none;
	box-shadow: none;
}
/* Flat on hover too — including the homepage's shared hover glow, which would
   otherwise draw a lit box round the spotlight (home.css, (0,3,0)). */
.sa-lb.is-stage .sa-lb-list > .sa-lb-row:is(:hover, :focus-within) {
	background: none;
	border-color: var(--lb-line);
	box-shadow: none;
}
/* Bars say "share of the leader"; Stage says it with the podium and the gap
   figure instead, and the gap is the number a fan can act on. */
.sa-lb.is-stage .sa-lb-bar { display: none; }
.sa-lb.is-stage .sa-lb-track { margin-top: 5px; }
.sa-lb.is-stage .sa-lb-rank { color: var(--sa-text-dim); }
/* Every face wears a ring wrapper (the filter can promote any row); outside
   the spotlight and the podium the wrapper is just the face's own box.
   🔴 Not `display: contents`: the ring rule `.sa-lb-ring .sa-lb-av { width:
   100%; height: 100% }` still matches through it, and 100% then meant the
   whole grid AREA — every row from #4 down drew its face as a tall oval
   (seen on footballvotearena.com, v5.6.0). */
.sa-lb.is-stage { --lb-row-face: 46px; }
.sa-lb.is-stage.is-compact { --lb-row-face: 38px; }
.sa-lb.is-stage .sa-lb-row:not(.is-top):not(.is-rank-2):not(.is-rank-3) .sa-lb-ring {
	width: var(--lb-row-face);
	height: var(--lb-row-face);
	padding: 0;
	background: none;
	box-shadow: none;
}
.sa-lb.is-stage .sa-lb-row:not(.is-top):not(.is-rank-2):not(.is-rank-3) .sa-lb-ring .sa-lb-av {
	border: 2px solid var(--sa-border-strong);
}
.sa-lb.is-stage .sa-lb-row:not(.is-top):not(.is-rank-2):not(.is-rank-3) {
	grid-template-columns: 40px var(--lb-row-face) minmax(0, 1fr) auto auto;
}
@media (max-width: 640px) {
	.sa-lb.is-stage { --lb-row-face: 40px; }
	.sa-lb.is-stage .sa-lb-row:not(.is-top):not(.is-rank-2):not(.is-rank-3) { grid-template-columns: 28px var(--lb-row-face) minmax(0, 1fr) auto auto; }
}
/* The face's own photo sits at z-index 1 (skeleton.css lifts it over the
   shimmer). Isolating the ring keeps that inside the ring, so nothing placed
   ON the ring — the "#1" tag — can be painted over by the photo. */
.sa-lb.is-stage .sa-lb-ring { isolation: isolate; }

/* --- #1: the spotlight -------------------------------------------------- */
.sa-lb.is-stage .sa-lb-list > .sa-lb-row.is-top {
	position: relative;
	isolation: isolate;
	grid-template-columns: var(--lb-face) auto minmax(0, 1fr);
	grid-template-areas:
		"face tag   tag"
		"face name  name"
		"face meta  meta"
		"face votes vel"
		"face votes gap"
		"face cta   cta";
	gap: 0 24px;
	align-items: center;
	padding: 16px 0 24px;
}
/* The parts of the row become the spotlight's own grid items. */
.sa-lb.is-stage .sa-lb-row.is-top :is(.sa-lb-rankcol, .sa-lb-who, .sa-lb-track, .sa-lb-num) { display: contents; }

/* The light: centred behind the face and shifted right, so it never reaches
   past the row's left edge — a clipping ancestor would cut it into a line. */
.sa-lb.is-stage .sa-lb-row.is-top::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 50%;
	left: calc(var(--lb-face) * -.15);
	width: calc(var(--lb-face) * 1.8);
	height: calc(var(--lb-face) * 1.8);
	transform: translateY(-50%);
	border-radius: 50%;
	background: radial-gradient(closest-side,
		color-mix(in srgb, var(--sa-violet) 30%, transparent),
		color-mix(in srgb, var(--sa-violet) 12%, transparent) 46%,
		color-mix(in srgb, var(--sa-pink) 4%, transparent) 72%,
		transparent);
	filter: blur(22px);
	pointer-events: none;
}
.sa-lb.is-stage .sa-lb-row.is-top .sa-lb-ring {
	grid-area: face;
	width: var(--lb-face);
	height: var(--lb-face);
	padding: 3px;
	background: conic-gradient(from 210deg, var(--sa-violet), var(--sa-pink), var(--sa-violet-light), var(--sa-violet-deep), var(--sa-violet));
	box-shadow: 0 0 48px -10px color-mix(in srgb, var(--sa-violet) 70%, transparent);
}
.sa-lb.is-stage .sa-lb-row.is-top .sa-lb-av {
	border: 4px solid var(--sa-bg);
	font-size: calc(var(--lb-face) * .3);
}
.sa-lb.is-stage .sa-lb-row.is-top .sa-lb-rank {
	grid-area: face;
	/* Above the face: the photo is z-index 1 (skeleton.css) and comes later
	   in the markup, so at an equal z-index it painted over the top of the
	   tag and "#1" looked tucked behind the frame. */
	z-index: 3;
	/* Flex, not the medal's grid: in a grid the "#" pseudo-element is a cell of
	   its own and the badge breaks onto two lines. */
	display: flex;
	align-items: center;
	align-self: center;
	justify-self: center;
	width: auto;
	height: 24px;
	margin: 0;
	padding: 0 10px;
	border: 0;
	border-radius: 999px;
	background: var(--sa-text);
	color: var(--sa-bg);
	font-size: 12.5px;
	/* Edged in the ring's own blue so the pill reads as a tag fastened to the
	   ring. 🔴 Not a page-colour "cut-out" ring: the spotlight glow behind it is
	   lighter than --sa-bg, so that ring showed as a dark blot round the pill. */
	box-shadow: 0 0 0 2px var(--sa-violet), 0 6px 14px -4px rgba(0, 0, 0, .55);
	line-height: 1;
	transform: translateY(calc(var(--lb-face) / 2 - 2px));
}
.sa-lb.is-stage .sa-lb-row.is-top .sa-lb-rank::before { content: "#"; }
.sa-lb.is-stage .sa-lb-row.is-top .sa-lb-movewrap { grid-area: tag; justify-self: end; }
/* "Held its place" is the quiet default; beside a spotlight or a podium face a
   lone dash reads as debris, so only real movement is drawn there. */
.sa-lb.is-stage .sa-lb-row:is(.is-top, .is-rank-2, .is-rank-3) .sa-lb-move.is-hold { display: none; }
.sa-lb.is-stage .sa-lb-row.is-top .sa-lb-leadtag {
	display: block;
	grid-area: tag;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--sa-pink);
}
.sa-lb.is-stage .sa-lb-row.is-top .sa-lb-namelink { grid-area: name; margin-top: 6px; min-width: 0; }
.sa-lb.is-stage .sa-lb-row.is-top .sa-lb-nm {
	font-family: "Clash Display", system-ui, sans-serif;
	font-weight: 600;
	font-size: clamp(20px, 4.4cqi, 28px);
	line-height: 1.06;
	letter-spacing: -.01em;
}
.sa-lb.is-stage .sa-lb-row.is-top .sa-lb-grp { font-size: .5em; }
.sa-lb.is-stage .sa-lb-row.is-top .sa-lb-meta { grid-area: meta; margin-top: 5px; font-size: 13px; }
.sa-lb.is-stage .sa-lb-row.is-top .sa-lb-votes {
	grid-area: votes;
	margin-top: 10px;
	text-align: left;
	font-size: clamp(36px, 8.6cqi, 50px);
	line-height: .9;
	letter-spacing: -.01em;
	background: linear-gradient(135deg, var(--sa-violet-light), var(--sa-violet) 45%, var(--sa-pink));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.sa-lb.is-stage .sa-lb-row.is-top .sa-lb-vel { grid-area: vel; align-self: end; justify-self: start; margin: 10px 0 2px 14px; font-size: 12.5px; }
.sa-lb.is-stage .sa-lb-row.is-top .sa-lb-gapwrap { grid-area: gap; align-self: start; margin: 4px 0 0 14px; }
.sa-lb.is-stage .sa-lb-row.is-top .sa-lb-gap { font-size: 12.5px; }
.sa-lb.is-stage .sa-lb-row.is-top .sa-lb-cta {
	grid-area: cta;
	justify-self: start;
	margin-top: 14px;
	gap: 9px;
	padding: 11px 24px;
	font-size: 13px;
	letter-spacing: .12em;
}
.sa-lb.is-stage .sa-lb-row.is-top .sa-lb-cta__lbl { display: inline; }
.sa-lb.is-stage .sa-lb-row.is-top .sa-lb-cta__ic { width: 15px; height: 15px; opacity: 1; }

/* --- #2 and #3: the podium ---------------------------------------------- */
.sa-lb.is-stage .sa-lb-list > .sa-lb-row:is(.is-rank-2, .is-rank-3) {
	grid-column: auto;
	grid-template-columns: 52px minmax(0, 1fr) auto;
	grid-template-areas:
		"face  name name"
		"face  meta meta"
		"votes votes cta"
		"vel   gap  cta";
	gap: 0 12px;
	align-items: center;
	padding: 16px 0;
}
.sa-lb.is-stage .sa-lb-list > .sa-lb-row.is-rank-2 { padding-right: 24px; }
.sa-lb.is-stage .sa-lb-list > .sa-lb-row.is-rank-3 { padding-left: 24px; border-left: 1px solid var(--lb-line); }
.sa-lb.is-stage .sa-lb-row:is(.is-rank-2, .is-rank-3) :is(.sa-lb-rankcol, .sa-lb-who, .sa-lb-track, .sa-lb-num) { display: contents; }
.sa-lb.is-stage .sa-lb-row:is(.is-rank-2, .is-rank-3) .sa-lb-ring {
	grid-area: face;
	width: 52px;
	height: 52px;
	padding: 2px;
	background: color-mix(in srgb, var(--sa-violet-light) 55%, transparent);
	box-shadow: none;
}
.sa-lb.is-stage .sa-lb-row:is(.is-rank-2, .is-rank-3) .sa-lb-av { border: 2px solid var(--sa-bg); font-size: 16px; }
.sa-lb.is-stage .sa-lb-row:is(.is-rank-2, .is-rank-3) .sa-lb-rank {
	grid-area: face;
	z-index: 3;
	align-self: start;
	justify-self: end;
	width: 22px;
	height: 22px;
	margin: 0;
	border: 2px solid var(--sa-bg);
	background: var(--sa-surface-2);
	color: var(--sa-violet-light);
	font-size: 11px;
	transform: translate(5px, -3px);
}
/* Movement ("NEW", ▲1) sits on the count's line, right-aligned before the
   CTA — tucked under the face it overlapped the photo and read as a glitch. */
.sa-lb.is-stage .sa-lb-row:is(.is-rank-2, .is-rank-3) .sa-lb-movewrap {
	grid-area: votes;
	align-self: center;
	justify-self: end;
	margin: 8px 0 0 8px;
}
.sa-lb.is-stage .sa-lb-row:is(.is-rank-2, .is-rank-3) .sa-lb-namelink { grid-area: name; min-width: 0; }
.sa-lb.is-stage .sa-lb-row:is(.is-rank-2, .is-rank-3) .sa-lb-nm {
	font-family: "Clash Display", system-ui, sans-serif;
	font-weight: 600;
	font-size: 17px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sa-lb.is-stage .sa-lb-row:is(.is-rank-2, .is-rank-3) .sa-lb-meta { grid-area: meta; flex-wrap: nowrap; min-width: 0; }
.sa-lb.is-stage .sa-lb-row:is(.is-rank-2, .is-rank-3) .sa-lb-in { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The title is the part that gives way; the deadline never wraps to "6d / left". */
.sa-lb.is-stage .sa-lb-row:is(.is-rank-2, .is-rank-3) .sa-lb-ends { flex: 0 0 auto; white-space: nowrap; }
.sa-lb.is-stage .sa-lb-row:is(.is-rank-2, .is-rank-3) .sa-lb-votes {
	grid-area: votes;
	justify-self: start;
	margin-top: 8px;
	text-align: left;
	font-weight: 600;
	font-size: 26px;
	line-height: 1;
}
.sa-lb.is-stage .sa-lb-row:is(.is-rank-2, .is-rank-3) .sa-lb-vel { grid-area: vel; justify-self: start; margin-top: 5px; }
.sa-lb.is-stage .sa-lb-row:is(.is-rank-2, .is-rank-3) .sa-lb-gapwrap { grid-area: gap; margin-top: 5px; min-width: 0; }
.sa-lb.is-stage .sa-lb-row:is(.is-rank-2, .is-rank-3) .sa-lb-cta { grid-area: cta; align-self: end; }

/* A narrow board (a phone, or a narrow column) stacks the podium. */
@container sa-lb (max-width: 500px) {
	.sa-lb.is-stage .sa-lb-list > .sa-lb-row:is(.is-rank-2, .is-rank-3) { grid-column: 1 / -1; padding: 14px 0; }
	.sa-lb.is-stage .sa-lb-list > .sa-lb-row.is-rank-3 { border-left: 0; }
	.sa-lb.is-stage .sa-lb-row:is(.is-rank-2, .is-rank-3) .sa-lb-votes { font-size: 22px; }
	.sa-lb.is-stage .sa-lb-list > .sa-lb-row.is-top { --lb-face: 100px; gap: 0 18px; padding: 14px 0 22px; }
	.sa-lb.is-stage .sa-lb-row.is-top .sa-lb-vel,
	.sa-lb.is-stage .sa-lb-row.is-top .sa-lb-gapwrap { margin-left: 10px; }
	.sa-lb.is-stage .sa-lb-row.is-top .sa-lb-cta { margin-top: 12px; padding: 10px 20px; }
	.sa-lb.is-stage .sa-lb-row.is-top .sa-lb-leadtag { font-size: 10.5px; letter-spacing: .14em; }
}
@container sa-lb (max-width: 400px) {
	.sa-lb.is-stage .sa-lb-list > .sa-lb-row.is-top { --lb-face: 84px; gap: 0 14px; }
	.sa-lb.is-stage .sa-lb-row.is-top .sa-lb-meta { font-size: 12.5px; }
}

/* --- Champions on share rings ------------------------------------------- */
.sa-lb--winners.is-stage { --lbw-line: color-mix(in srgb, var(--sa-violet) 14%, transparent); }
/* One column wherever it stands beside the board (the tablet two-up below
   900px included); full width it may still fill the row. */
.sa-lb--winners.is-stage .sa-lbw-grid {
	gap: 0;
	margin-top: 18px;
	grid-template-columns: minmax(0, 1fr);
	border-top: 1px solid color-mix(in srgb, var(--sa-violet) 26%, transparent);
}
.sa-lb--winners.is-stage .sa-lbw-grid--auto { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); column-gap: 32px; }

.sa-lb--winners.is-stage .sa-lbw.sa-lbw--stage {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) auto;
	grid-template-areas: "meter body figs";
	column-gap: 14px;
	align-items: center;
	padding: 14px 0;
	border: 0;
	border-bottom: 1px solid var(--lbw-line);
	border-radius: 0;
	background: none;
	overflow: visible;
	transform: none;
	box-shadow: none;
}
.sa-lb--winners.is-stage .sa-lbw.sa-lbw--stage::before { content: none; }
@media (hover: hover) {
	.sa-lb--winners.is-stage .sa-lbw.sa-lbw--stage:hover { transform: none; box-shadow: none; border-color: var(--lbw-line); }
}
/* A thin gradient ring with a soft glow — the board's #1 ring, so the two
   columns read as one set. 🔴 It used to be a share METER (a ring filled to
   the winner's %); the owner found a ring stopping part-way round looked
   broken, not informative. The share is printed beside it. Kept deliberately
   quiet: the face is the subject, the ring only frames it. */
.sa-lb--winners.is-stage .sa-lbw-meter {
	grid-area: meter;
	display: block;
	width: 52px;
	height: 52px;
	padding: 2px;
	border-radius: 50%;
	background: conic-gradient(from 210deg, var(--sa-violet), var(--sa-pink), var(--sa-violet-light), var(--sa-violet-deep), var(--sa-violet));
	box-shadow: 0 0 16px -6px color-mix(in srgb, var(--sa-violet) 60%, transparent);
}
.sa-lb--winners.is-stage .sa-lbw-meter .sa-lbw-av { border: 2px solid var(--sa-bg); font-size: 15px; }
/* The photo is z-index 1 (skeleton.css); keep it inside the ring so the
   WINNER tag that overlaps the ring is never painted under it. */
.sa-lb--winners.is-stage .sa-lbw-meter { isolation: isolate; }
.sa-lb--winners.is-stage .sa-lbw--lead .sa-lbw-badge { position: relative; z-index: 2; }
.sa-lb--winners.is-stage .sa-lbw--stage .sa-lbw-badge { display: none; }
.sa-lb--winners.is-stage .sa-lbw-body { grid-area: body; display: flex; flex-direction: column; min-width: 0; }
.sa-lb--winners.is-stage .sa-lbw--stage .sa-lbw-title {
	font-family: inherit;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	line-height: 1.35;
	color: var(--sa-text-muted);
}
#tie-wrapper .sa-lb--winners.is-stage a.sa-lbw-title { color: var(--sa-text-muted); }
#tie-wrapper .sa-lb--winners.is-stage a.sa-lbw-title:hover { color: var(--sa-violet-light); }
.sa-lb--winners.is-stage .sa-lbw--stage .sa-lbw-nm { margin-top: 3px; font-weight: 600; font-size: 19px; }
.sa-lb--winners.is-stage .sa-lbw--stage .sa-lbw-grp { font-family: inherit; font-size: 13px; color: var(--sa-violet-light); }
.sa-lb--winners.is-stage .sa-lbw--stage .sa-lbw-runner {
	margin: 4px 0 0;
	padding: 0;
	border: 0;
	font-size: 12px;
	color: var(--sa-text-dim);
}
/* The count is the headline, the share its footnote. */
.sa-lb--winners.is-stage .sa-lbw-figs {
	grid-area: figs;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.sa-lb--winners.is-stage .sa-lbw-fig { font-size: 12px; color: var(--sa-text-muted); }
.sa-lb--winners.is-stage .sa-lbw-fig--votes b {
	font-family: "Clash Display", system-ui, sans-serif;
	font-weight: 600;
	font-size: 22px;
	line-height: 1;
	color: var(--sa-pink);
}
.sa-lb--winners.is-stage .sa-lbw-fig--pct b { font-weight: 700; }
/* In a row the big number says "votes" on its own; the word stays for
   screen readers. */
.sa-lb--winners.is-stage .sa-lbw--stage:not(.sa-lbw--lead) .sa-lbw-unit,
.sa-lb--winners.is-stage .sa-lbw-grid--auto .sa-lbw-unit {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* The newest result stands up as a centred feature — not in the full-width
   grid, where one tall cell would drag its whole row up with it. */
.sa-lb--winners.is-stage .sa-lbw-grid:not(.sa-lbw-grid--auto) .sa-lbw--stage.sa-lbw--lead {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 22px 0 20px;
}
/* Same free-floating light as the board's #1 (and it replaces Classic's
   corner bloom, which would otherwise show now that nothing clips it). */
.sa-lb--winners.is-stage .sa-lbw-grid:not(.sa-lbw-grid--auto) .sa-lbw--stage.sa-lbw--lead::after {
	content: "";
	position: absolute;
	inset: auto;
	z-index: -1;
	top: calc(22px + 64px);
	left: 50%;
	width: 260px;
	height: 260px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: radial-gradient(closest-side,
		color-mix(in srgb, var(--sa-pink) 20%, transparent),
		color-mix(in srgb, var(--sa-violet) 9%, transparent) 50%,
		transparent);
	filter: blur(22px);
	pointer-events: none;
}
.sa-lb--winners.is-stage .sa-lbw-grid:not(.sa-lbw-grid--auto) .sa-lbw--lead .sa-lbw-meter {
	width: 128px;
	height: 128px;
	padding: 3px;
	box-shadow: 0 0 40px -12px color-mix(in srgb, var(--sa-violet) 70%, transparent);
}
.sa-lb--winners.is-stage .sa-lbw-grid:not(.sa-lbw-grid--auto) .sa-lbw--lead .sa-lbw-av { border-width: 4px; font-size: 34px; }
.sa-lb--winners.is-stage .sa-lbw-grid:not(.sa-lbw-grid--auto) .sa-lbw--lead .sa-lbw-badge {
	display: inline-flex;
	margin-top: -13px;
	height: 26px;
	padding: 0 12px;
	font-size: 10px;
	letter-spacing: .16em;
	color: var(--sa-heart-2);
	background: var(--sa-bg);
	border: 1px solid color-mix(in srgb, var(--sa-heart) 45%, transparent);
	box-shadow: none;
}
.sa-lb--winners.is-stage .sa-lbw--lead .sa-lbw-badge::before { background-color: var(--sa-heart); }
.sa-lb--winners.is-stage .sa-lbw-grid:not(.sa-lbw-grid--auto) .sa-lbw--lead .sa-lbw-body { align-items: center; margin-top: 12px; max-width: 100%; }
.sa-lb--winners.is-stage .sa-lbw-grid:not(.sa-lbw-grid--auto) .sa-lbw--lead .sa-lbw-title { font-size: 12px; }
.sa-lb--winners.is-stage .sa-lbw-grid:not(.sa-lbw-grid--auto) .sa-lbw--lead .sa-lbw-nm {
	margin-top: 6px;
	font-size: clamp(24px, 3vw, 32px);
	line-height: 1.05;
	white-space: normal;
}
.sa-lb--winners.is-stage .sa-lbw-grid:not(.sa-lbw-grid--auto) .sa-lbw--lead .sa-lbw-grp { font-size: 14px; }
.sa-lb--winners.is-stage .sa-lbw-grid:not(.sa-lbw-grid--auto) .sa-lbw--lead .sa-lbw-figs {
	flex-direction: row;
	justify-content: center;
	align-items: baseline;
	gap: 22px;
	margin-top: 10px;
	font-size: 13px;
}
.sa-lb--winners.is-stage .sa-lbw-grid:not(.sa-lbw-grid--auto) .sa-lbw--lead .sa-lbw-fig { font-size: 13px; }
.sa-lb--winners.is-stage .sa-lbw-grid:not(.sa-lbw-grid--auto) .sa-lbw--lead .sa-lbw-fig--pct { order: -1; }
.sa-lb--winners.is-stage .sa-lbw-grid:not(.sa-lbw-grid--auto) .sa-lbw--lead .sa-lbw-fig b {
	font-family: "Clash Display", system-ui, sans-serif;
	font-weight: 600;
	font-size: 19px;
}
.sa-lb--winners.is-stage .sa-lbw-grid:not(.sa-lbw-grid--auto) .sa-lbw--lead .sa-lbw-fig--votes b { color: var(--sa-text); }
.sa-lb--winners.is-stage .sa-lbw-grid:not(.sa-lbw-grid--auto) .sa-lbw--lead .sa-lbw-fig--pct b { color: var(--sa-pink); }
.sa-lb--winners.is-stage .sa-lbw-grid:not(.sa-lbw-grid--auto) .sa-lbw--lead .sa-lbw-runner { margin-top: 8px; font-size: 12.5px; }

@media (max-width: 640px) {
	.sa-lb--winners.is-stage .sa-lbw.sa-lbw--stage { grid-template-columns: 48px minmax(0, 1fr) auto; column-gap: 12px; }
	.sa-lb--winners.is-stage .sa-lbw-meter { width: 48px; height: 48px; }
	.sa-lb--winners.is-stage .sa-lbw--stage .sa-lbw-nm { font-size: 17px; }
	.sa-lb--winners.is-stage .sa-lbw-fig--votes b { font-size: 20px; }
	.sa-lb--winners.is-stage .sa-lbw-grid:not(.sa-lbw-grid--auto) .sa-lbw--lead .sa-lbw-meter { width: 112px; height: 112px; }
	.sa-lb--winners.is-stage .sa-lbw-grid:not(.sa-lbw-grid--auto) .sa-lbw--lead::after { top: calc(22px + 56px); width: 230px; height: 230px; }
}

/* ── League table design (shining_leaderboard_table_html) ──────────────────
   The board as a football standings table: small caps header, tabular figures,
   a coloured edge down the Pos cell for the zones (#1 lime, #2–#3 teal) and a
   five-result form guide. Flat: one surface, hairline rows. */

.sa-lbt-wrap {
	margin-top: 14px;
	border: 1px solid var(--sa-border);
	border-radius: var(--sa-radius-sm);
	background: var(--sa-surface-1);
	overflow-x: auto;
}
.sa-lbt,
.entry-content .sa-lbt {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	color: var(--sa-text);
	background: none;
}
.sa-lbt th,
.sa-lbt td {
	padding: 10px 10px;
	border: 0;
	border-bottom: 1px solid var(--sa-border);
	text-align: left;
	vertical-align: middle;
	background: none;
}
.sa-lbt tbody tr:last-child td { border-bottom: 0; }
.sa-lbt thead th {
	padding-top: 9px;
	padding-bottom: 9px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--sa-text-dim);
	white-space: nowrap;
}
.sa-lbt abbr { text-decoration: none; border: 0; cursor: help; }
.sa-lbt tbody tr { transition: background-color .15s ease; }
.sa-lbt tbody tr:hover { background: var(--sa-surface-2); }

/* Pos: the number, the movement under it, the zone down the left edge. */
.sa-lbt-pos { width: 1%; padding-left: 14px !important; text-align: center !important; white-space: nowrap; position: relative; }
.sa-lbt-p {
	display: block;
	font-family: "Clash Display", system-ui, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.1;
}
.sa-lbt-pos .sa-lb-move { justify-content: center; margin-top: 2px; font-size: 10px; }
.sa-lbt-row.is-lead .sa-lbt-pos,
.sa-lbt-row.is-podium .sa-lbt-pos { box-shadow: inset 4px 0 0 var(--sa-lbt-zone); }
.sa-lbt-row.is-lead   { --sa-lbt-zone: var(--sa-gold); }
.sa-lbt-row.is-podium { --sa-lbt-zone: var(--sa-magenta); }
.sa-lbt-row.is-lead .sa-lbt-p { color: var(--sa-gold); }

/* Player: face, name, then team crest · team · vote. */
.sa-lbt-player,
#tie-wrapper a.sa-lbt-player {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	color: var(--sa-text);
	text-decoration: none;
}
.sa-lbt .sa-lb-av { flex: 0 0 auto; width: 34px; height: 34px; border-width: 1.5px; font-size: 12px; }
.sa-lbt-id { display: flex; flex-direction: column; min-width: 0; }
.sa-lbt-nm {
	font-weight: 700;
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sa-lbt-player:hover .sa-lbt-nm { color: var(--sa-violet-light); }
.sa-lbt-sub {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	margin-top: 2px;
	font-size: 12px;
	color: var(--sa-text-dim);
	white-space: nowrap;
	overflow: hidden;
}
.sa-lbt-sub > span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sa-lbt-sub i { font-style: normal; opacity: .6; }
.sa-lbt-sub .sa-crest { --sa-crest-size: 16px; font-size: 7px; }
.sa-lbt-who { min-width: 180px; max-width: 0; width: 100%; }

.sa-lbt-num { text-align: right !important; white-space: nowrap; }
.sa-lbt-votes { font-weight: 800; font-size: 15px; }
.sa-lbt-gap { color: var(--sa-text-muted); }
.sa-lbt-row:first-child .sa-lbt-gap { color: var(--sa-up, #34E2A0); font-weight: 700; }

/* Form: five small squares, oldest first, as every league table prints it. */
.sa-lbt-form { white-space: nowrap; text-align: center !important; }
.sa-lbt-dots { display: inline-flex; gap: 3px; }
.sa-lbt-f {
	display: inline-grid;
	place-items: center;
	width: 17px;
	height: 17px;
	border-radius: 4px;
	font-size: 9.5px;
	font-weight: 800;
	line-height: 1;
	color: var(--sa-on-accent, #fff);
	background: var(--sa-surface-2);
	box-shadow: inset 0 0 0 1px var(--sa-border);
}
.sa-lbt-f.is-w { background: #12985F; box-shadow: none; }
.sa-lbt-f.is-d { background: #5B6678; box-shadow: none; }
.sa-lbt-f.is-l { background: #D23B55; box-shadow: none; }

.sa-lbt-act { width: 1%; padding-right: 14px !important; text-align: right !important; }
.sa-lbt-cta,
#tie-wrapper a.sa-lbt-cta {
	display: inline-flex;
	padding: 6px 12px;
	border: 1px solid var(--sa-border-strong);
	border-radius: var(--sa-radius-pill);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--sa-text);
	white-space: nowrap;
}
.sa-lbt-cta:hover,
#tie-wrapper a.sa-lbt-cta:hover { color: var(--sa-on-accent, #fff); background: var(--sa-gradient); border-color: transparent; }
.sa-lbt-player:focus-visible,
.sa-lbt-cta:focus-visible { outline: 2px solid var(--sa-focus); outline-offset: 2px; border-radius: 8px; }

/* The key under the table. */
.sa-lbt-key {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 10px 2px 0;
	font-size: 12px;
	color: var(--sa-text-dim);
}
.sa-lbt-k { display: inline-flex; align-items: center; gap: 6px; }
.sa-lbt-k.is-lead::before,
.sa-lbt-k.is-podium::before { content: ""; width: 4px; height: 12px; border-radius: 2px; background: var(--sa-gold); }
.sa-lbt-k.is-podium::before { background: var(--sa-magenta); }

/* Phones: Share and Gap give their width to the name. */
@media (max-width: 640px) {
	.sa-lbt th, .sa-lbt td { padding: 9px 6px; }
	.sa-lbt-opt { display: none; }
	.sa-lbt-who { min-width: 130px; }
	.sa-lbt .sa-lb-av { width: 30px; height: 30px; }
	.sa-lbt-poll { display: none !important; }
	.sa-lbt-sub i { display: none; }
	.sa-lbt-f { width: 14px; height: 14px; font-size: 8px; border-radius: 3px; }
	.sa-lbt-dots { gap: 2px; }
	/* The row's own name already links to the ballot (or the profile), so on
	   a phone the button gives its width to the form guide — the column that
	   makes this a league table. */
	.sa-lbt-act { display: none; }
	.sa-lbt-who { padding-right: 2px !important; }
}
