/* Singapore Odds — front-end styles (v1.6.0 design system).
   All classes prefixed sgodds-. Theme-agnostic: sensible defaults that
   inherit where possible.
   Palette: Singapore Pools blues — primary deep blue #004B8C (masthead,
   table header), bright blue #0096D9 (accents, active states, links),
   dark navy #003767 (masthead gradient end, footer), tints #EAF6FE /
   #D0F1FF / #C8E2F6 (surfaces, zebra, hero card). Movement keeps its
   data colours everywhere: ONE green for up (#177245), red for down.
   The signals / briefing panels sit on a light green tint pair
   (#EAF7EE / #BFE6CC) since v1.10.1. */

.sgodds-wrap,
.sgodds-page {
	--sgodds-primary: #004b8c;
	--sgodds-bright: #0096d9;
	--sgodds-navy: #003767;
	--sgodds-tint: #eaf6fe;
	--sgodds-tint-sky: #d0f1ff;
	--sgodds-tint-strong: #c8e2f6;
	--sgodds-border: #a8cbe8;
	--sgodds-ink: #123650;
	--sgodds-muted: #5d7488;
	--sgodds-red: #b3261e;
	--sgodds-red-bg: #fdecea;
	--sgodds-up: #177245;
	--sgodds-up-bg: #e6f4ea;
	--sgodds-tint-green: #eaf7ee;
	--sgodds-tint-green-strong: #bfe6cc;
	--sgodds-gold: #FFC531;
}

/* The odds wrapper breaks out of the theme's narrow content column:
   up to 1240px wide, centred on the viewport, so all 12 table columns
   fit on desktop with no horizontal scrollbar. The width is ALSO
   capped at 100% of the containing block (v1.6.2): the breakout math
   (margin-left: 50% of the CONTAINER, translateX(-50%) of the box)
   only centres correctly when the container spans the viewport, as
   in the odds pages' alignfull group. In a plain theme column the
   uncapped 96vw box landed roughly half a viewport left of the
   column and clipped — the standalone [sgodds_disclaimer] on the
   About/Contact pages overflowed exactly that way. Capped, the wrap
   is never wider than its container: inside alignfull the computed
   width is unchanged (the container is the viewport), and in a
   narrow column the two 50% terms cancel and the box sits exactly
   within the column. */
.sgodds-wrap {
	position: relative;
	width: min(1240px, 96vw, 100%);
	margin-top: 1em;
	margin-bottom: 1em;
	margin-left: 50%;
	transform: translateX(-50%);
	font-size: 15px;
	line-height: 1.45;
	color: var(--sgodds-ink);
}

/* Standalone virtual match page shell. */
.sgodds-page {
	max-width: 1280px;
	margin: 0 auto;
	padding: 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--sgodds-ink);
	background: #eef7fe;
}

.sgodds-back {
	margin: 0 0 8px;
	font-size: 14px;
}

.sgodds-back a {
	color: var(--sgodds-primary);
}

/* ---------- Masthead + footer shell (v1.3.0) ---------- */

.sgodds-masthead {
	background: linear-gradient(120deg, var(--sgodds-primary) 0%, var(--sgodds-navy) 100%);
	color: #fff;
	border-radius: 12px;
	padding: 16px 20px;
	margin-bottom: 14px;
}

.sgodds-masthead-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px 28px;
	flex-wrap: wrap;
}

.sgodds-logo {
	display: inline-block;
	line-height: 0;
}

.sgodds-logo-img {
	display: block;
	height: 40px;
	width: auto;
}

.sgodds-tagline {
	margin: 6px 0 0;
	font-size: 13px;
	color: #cfe6f7;
}

.sgodds-masthead-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 9px;
}

.sgodds-updated-badge,
.sgodds-countdown-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.38);
	color: #fff;
	font-size: 12.5px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 999px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.sgodds-updated-badge::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #9adcff;
	flex: none;
}

/* Pill values in a BRIGHT green, extra-bold (v1.6.0, Bryan's request;
   brightened in v1.6.2): the Last-updated time, the countdown value,
   and the countdown's "Refreshing…" state text. The bright green is
   scoped to the dark masthead — the pills sit on the navy masthead
   (#003767), where the site's up-green #177245 (designed for the
   light-background movement pills) was nearly unreadable. Scoped to
   the masthead pills' value elements so nothing else changes colour. */
.sgodds-updated-value,
.sgodds-countdown-value {
	color: #4ADE80;
	font-weight: 800;
}

.sgodds-countdown-badge.is-refreshing {
	color: #4ADE80;
	font-weight: 800;
}

/* The Last-updated pill's timezone label (v1.6.2, Bryan's request):
   bright red at the value's weight, so time + zone read as one unit.
   Bright like the pill values — the site's down-red #B3261E is a
   light-background colour and would fail on the navy masthead the
   same way the old green did. Only the Last-updated pill carries a
   timezone label; the countdown pill has none. */
.sgodds-updated-tz {
	color: #F87171;
	font-weight: 800;
}

/* Site nav (restored v1.5.0): one shared link list rendered in the
   masthead (its own row under the top line, separated by a hairline)
   and in the footer (extended set). Links wrap gracefully on narrow
   screens; no current-page state. */
.sgodds-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sgodds-nav a {
	color: var(--sgodds-tint-sky);
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
}

.sgodds-nav a:hover,
.sgodds-nav a:focus {
	color: #fff;
	text-decoration: underline;
}

.sgodds-masthead .sgodds-nav {
	margin-top: 12px;
	padding-top: 11px;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.sgodds-footer .sgodds-nav {
	margin-bottom: 10px;
}

.sgodds-footer {
	background: var(--sgodds-navy);
	color: #d7e9f8;
	border-radius: 12px;
	padding: 16px 20px;
	margin-top: 14px;
	font-size: 12.5px;
	line-height: 1.55;
}

.sgodds-footer p {
	margin: 6px 0 0;
}

.sgodds-footer-copy {
	color: #a9cbe8;
}

/* ---------- Match briefing (v1.7.0) ---------- */
/* Auto-generated analysis paragraph on the match page: shares
   the signals box's panel family — a light green tint since
   v1.10.1 (the blue tint before that) — with an accent left
   border in the movement green. */

.sgodds-briefing {
	background: var(--sgodds-tint-green);
	border: 1px solid var(--sgodds-tint-green-strong);
	border-left: 4px solid var(--sgodds-up);
	border-radius: 10px;
	padding: 10px 14px;
	margin: 12px 0;
}

.sgodds-briefing-title {
	margin: 0 0 4px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--sgodds-navy);
}

.sgodds-briefing-note {
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: var(--sgodds-muted);
}

.sgodds-briefing-text {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--sgodds-ink);
}

/* ---------- Market signals (v1.5.0) ---------- */
/* Match page: a light green tint box (the blue tint until
   v1.10.1) under the 1X2 summary listing the active steam /
   scoreline-steam lines. Homepage: a small emoji badge in
   the match cell (the mobile card's team-name line too). */

.sgodds-signals {
	background: var(--sgodds-tint-green);
	border: 1px solid var(--sgodds-tint-green-strong);
	border-radius: 10px;
	padding: 10px 14px 8px;
	margin: 12px 0;
}

.sgodds-signals-title {
	margin: 0 0 4px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--sgodds-navy);
}

.sgodds-signals-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sgodds-signal {
	padding: 2px 0;
	font-size: 14px;
	color: var(--sgodds-ink);
}

.sgodds-signal-badges {
	margin-left: 6px;
	font-size: 13px;
	white-space: nowrap;
}

/* ---------- Hero pair: Biggest Dropper + Biggest Riser (v1.3.2) --- */
/* Two cards side by side from 641px up, stacked below that. Each card
   is one link to its match page; a direction with no qualifying
   outcome renders the same card unlinked with a muted line. */

.sgodds-hero-pair {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin-bottom: 12px;
}

@media (min-width: 641px) {
	.sgodds-hero-pair {
		grid-template-columns: 1fr 1fr;
	}
}

.sgodds-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	background: linear-gradient(120deg, var(--sgodds-tint-sky), var(--sgodds-tint));
	border: 1px solid var(--sgodds-border);
	color: var(--sgodds-navy);
	border-radius: 10px;
	padding: 14px 16px;
	text-decoration: none;
}

.sgodds-hero-none {
	font-size: 14.5px;
	color: var(--sgodds-muted);
}

a.sgodds-hero:hover {
	border-color: var(--sgodds-bright);
	text-decoration: none;
}

.sgodds-hero-main {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 220px;
}

.sgodds-hero-label {
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--sgodds-primary);
}

.sgodds-hero-match {
	color: var(--sgodds-navy);
	font-size: 18px;
	font-weight: 700;
}

.sgodds-hero-meta {
	font-size: 13px;
	color: rgba(0, 55, 103, 0.72);
}

.sgodds-hero-odds {
	font-size: 15px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

/* ---------- Multiples Ideas (v1.8.0 as Mega Parlays; renamed v1.10.0) ---------- */

.sgodds-multiples {
	margin-bottom: 12px;
}

.sgodds-multiples-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--sgodds-navy);
	margin: 0 0 2px;
}

.sgodds-multiples-sub {
	font-size: 13px;
	color: var(--sgodds-muted);
	margin: 0 0 10px;
}

/* One section per multiples size (v1.10.0): Pools' name as the
   heading, their definition as a muted line, then the cards. */
.sgodds-multiple-size {
	margin: 0 0 18px;
}

.sgodds-multiple-size-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--sgodds-navy);
	margin: 0 0 2px;
}

.sgodds-multiple-size-def {
	font-size: 13px;
	color: var(--sgodds-muted);
	margin: 0 0 10px;
}

.sgodds-multiple-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

@media (min-width: 641px) {
	.sgodds-multiple-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1024px) {
	.sgodds-multiple-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.sgodds-multiple {
	background: linear-gradient(120deg, var(--sgodds-tint-sky), var(--sgodds-tint));
	border: 1px solid var(--sgodds-border);
	border-radius: 10px;
	padding: 14px 16px;
	color: var(--sgodds-navy);
}

.sgodds-multiple-title {
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--sgodds-primary);
	margin: 0 0 8px;
}

/* Concept explanation under the card title (v1.9.0). */
.sgodds-multiple-concept {
	font-size: 12.5px;
	line-height: 1.45;
	color: rgba(0, 55, 103, 0.72);
	margin: -4px 0 10px;
}

.sgodds-multiple-legs {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.sgodds-multiple-leg {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.sgodds-multiple-leg-match {
	font-size: 14.5px;
	font-weight: 700;
}

.sgodds-multiple-leg-match a {
	color: var(--sgodds-navy);
	text-decoration: none;
}

.sgodds-multiple-leg-match a:hover {
	text-decoration: underline;
}

.sgodds-multiple-leg-pick {
	font-size: 13.5px;
	font-weight: 600;
}

.sgodds-multiple-leg-meta {
	font-size: 12.5px;
	color: rgba(0, 55, 103, 0.72);
	font-variant-numeric: tabular-nums;
}

.sgodds-multiple-combined {
	margin: 0;
	font-size: 14px;
}

.sgodds-multiple-payout {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
}

.sgodds-multiples-note {
	font-size: 12px;
	color: var(--sgodds-muted);
	margin: 8px 0 0;
}

/* ---------- Movement pills (one style everywhere, hero included) ---------- */

.sgodds-pill {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.sgodds-pill-down {
	background: var(--sgodds-red-bg);
	color: var(--sgodds-red);
}

.sgodds-pill-up {
	background: var(--sgodds-up-bg);
	color: var(--sgodds-up);
}

.sgodds-hero .sgodds-pill {
	font-size: 17px;
	padding: 5px 13px;
}

/* A 0.0% move: quiet flat text, no pill — muted slate, still clearly
   quieter than a real move but legible (v1.3.1; was near-invisible). */
.sgodds-move-flat {
	color: #7A93A8;
	font-size: 13px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* Text-colour helpers (kept from v1.0.0 markup). */
.sgodds-down {
	color: var(--sgodds-red);
	font-weight: 600;
}

.sgodds-up {
	color: var(--sgodds-up);
}

/* ---------- Filter bar: league dropdown, search, sort ---------- */

.sgodds-filterbar {
	margin-bottom: 12px;
}

/* One tidy controls row: [League ▾] [Search team…] [Sort ▾]. */
.sgodds-filter-controls {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: stretch;
}

/* All three controls share one style (same height, border, radius).
   The movers pages' market dropdown joins the same style (v1.4.0). */
.sgodds-league-select,
.sgodds-search,
.sgodds-sort,
.sgodds-market-select {
	box-sizing: border-box;
	height: 38px;
	font: inherit;
	font-size: 14px;
	padding: 8px 11px;
	border: 1px solid var(--sgodds-border);
	border-radius: 8px;
	background: #fff;
	color: var(--sgodds-ink);
}

.sgodds-search {
	flex: 1 1 180px;
}

.sgodds-league-select:focus-visible,
.sgodds-search:focus-visible,
.sgodds-sort:focus-visible,
.sgodds-market-select:focus-visible {
	outline: 2px solid var(--sgodds-bright);
	outline-offset: 1px;
}

.sgodds-noresults {
	font-size: 13.5px;
	color: var(--sgodds-muted);
	margin: 4px 2px 10px;
}

/* ---------- Droppers window tabs ---------- */

.sgodds-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.sgodds-tab {
	display: inline-block;
	border: 1px solid var(--sgodds-border);
	background: #fff;
	color: var(--sgodds-ink);
	font-size: 13.5px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 999px;
	text-decoration: none;
}

.sgodds-tab:hover {
	border-color: var(--sgodds-bright);
	background: var(--sgodds-tint);
}

.sgodds-tab.is-active {
	background: var(--sgodds-bright);
	border-color: var(--sgodds-bright);
	color: #fff;
}

/* ---------- Movers pages: Top 100 Droppers / Risers (v1.4.0) ---------- */

/* Coverage note under the window tabs on the snapshot windows. */
.sgodds-movers-note {
	font-size: 13px;
	color: var(--sgodds-muted);
	margin: 0 2px 10px;
}

/* Rank reads as a quiet index, not data. */
.sgodds-movers-table .sgodds-rank {
	color: var(--sgodds-muted);
	font-weight: 600;
}

/* Market and outcome are text: left-aligned and allowed to wrap,
   unlike the numeric columns around them. */
.sgodds-movers-table .sgodds-mkt,
.sgodds-movers-table .sgodds-outcome {
	text-align: left;
	white-space: normal;
}

.sgodds-movers-table .sgodds-mkt {
	font-size: 13.5px;
	color: var(--sgodds-muted);
}

/* ---------- Past Matches (v1.6.0) ---------- */

/* Week navigation reuses .sgodds-tabs/.sgodds-tab; the disabled ends
   of the range are inert spans, and the week label is the active tab. */
.sgodds-tab.is-disabled {
	opacity: 0.45;
	cursor: default;
}

.sgodds-past-note {
	font-size: 13px;
	color: var(--sgodds-muted);
	margin: 0 2px 10px;
}

.sgodds-past-heading {
	font-size: 17px;
	font-weight: 700;
	color: var(--sgodds-navy);
	margin: 2px 2px 4px;
}

.sgodds-past-back {
	margin: 0 2px 10px;
	font-size: 13.5px;
}

/* Team search: a small GET form above the week nav / results. */
.sgodds-past-search {
	display: flex;
	gap: 8px;
	margin: 0 0 12px;
}

.sgodds-past-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	border: 1px solid var(--sgodds-border);
	border-radius: 999px;
	padding: 7px 14px;
	font-size: 14px;
	color: var(--sgodds-ink);
	background: #fff;
}

.sgodds-past-search button {
	flex: none;
	border: 1px solid var(--sgodds-bright);
	background: var(--sgodds-bright);
	color: #fff;
	font-size: 13.5px;
	font-weight: 600;
	padding: 7px 16px;
	border-radius: 999px;
	cursor: pointer;
}

/* FT score cell: finals read bold; a still-running score carries a
   small red LIVE tag. */
.sgodds-ft {
	color: var(--sgodds-navy);
}

.sgodds-live-tag {
	display: inline-block;
	background: #b3261e;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 1px 5px;
	border-radius: 4px;
	vertical-align: 2px;
}

/* Match page: the "Full time: H–A (HT: H–A)" line in the meta block. */
.sgodds-ft-line {
	font-weight: 700;
	color: var(--sgodds-navy);
}

/* Match page score card (v1.12.0): navy card under the match header,
   rendered only when a score was recorded. Home team right-aligned,
   score centred, away team left-aligned; on small screens the team
   names shrink and wrap inside their flex cells while the score
   keeps its size. */
.sgodds-scorecard {
	background: var(--sgodds-navy);
	color: #fff;
	border-radius: 10px;
	padding: 14px 18px 16px;
	margin: 0 0 1em;
	text-align: center;
}

.sgodds-scorecard-status {
	margin: 0 0 8px;
}

.sgodds-scorecard-chip {
	display: inline-block;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.09em;
	padding: 3px 10px;
	border-radius: 999px;
}

.sgodds-live-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #4ade80;
	margin-right: 6px;
}

.sgodds-scorecard-line {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
}

.sgodds-scorecard-team {
	flex: 1 1 0;
	min-width: 0;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.25;
}

.sgodds-scorecard-home {
	text-align: right;
}

.sgodds-scorecard-away {
	text-align: left;
}

.sgodds-scorecard-score {
	flex: 0 0 auto;
	color: var(--sgodds-gold);
	font-size: 38px;
	font-weight: 800;
	line-height: 1.1;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.sgodds-scorecard-ht {
	margin: 8px 0 0;
	color: var(--sgodds-tint-strong);
	font-size: 13.5px;
}

/* ---------- Tables ---------- */

.sgodds-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--sgodds-border);
	border-radius: 10px;
	background: #fff;
}

.sgodds-table {
	border-collapse: collapse;
	width: 100%;
	margin: 0;
	background: #fff;
	font-variant-numeric: tabular-nums;
}

.sgodds-table th,
.sgodds-table td {
	padding: 8px 9px;
	border-bottom: 1px solid #dcecf8;
	text-align: right;
	white-space: nowrap;
	vertical-align: middle;
}

.sgodds-table thead th {
	background: var(--sgodds-tint);
	font-weight: 600;
	text-align: right;
	color: var(--sgodds-navy);
}

.sgodds-table th:nth-child(1),
.sgodds-table td:nth-child(1) {
	text-align: left;
}

.sgodds-table .sgodds-league,
.sgodds-table .sgodds-match,
.sgodds-table .sgodds-kickoff {
	text-align: left;
}

/* Zebra striping is class-based (rows carry .sgodds-alt) so day separator
   rows and client-side re-sorting cannot break the pattern. */
.sgodds-table tbody tr.sgodds-alt {
	background: var(--sgodds-tint);
}

.sgodds-table tbody tr:hover {
	background: var(--sgodds-tint-sky);
}

.sgodds-table tbody tr.sgodds-day-row:hover {
	background: transparent;
}

/* Day separator row inside [sgodds_current] (v1.3.0). */
.sgodds-table tr.sgodds-day-row td {
	background: var(--sgodds-tint-strong);
	color: var(--sgodds-navy);
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-align: left;
	padding: 8px 10px 7px;
	border-bottom: 1px solid var(--sgodds-border);
}

/* Current-odds header: deep Pools blue group row + tinted subhead. */
.sgodds-current thead tr:first-child th {
	background: var(--sgodds-primary);
	color: #fff;
}

.sgodds-current .sgodds-subhead th {
	background: var(--sgodds-tint-strong);
	color: var(--sgodds-navy);
	font-size: 12px;
	padding-top: 4px;
	padding-bottom: 4px;
}

.sgodds-table .sgodds-group {
	text-align: center;
}

/* Hairline dividers between the Opening / Current / Movement groups. */
.sgodds-current thead tr:first-child th:nth-child(4),
.sgodds-current thead tr:first-child th:nth-child(5),
.sgodds-current thead tr:first-child th:nth-child(6) {
	border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.sgodds-current thead tr.sgodds-subhead th:nth-child(4),
.sgodds-current thead tr.sgodds-subhead th:nth-child(7),
.sgodds-current thead tr.sgodds-subhead th:nth-child(10),
.sgodds-current tbody td:nth-child(4),
.sgodds-current tbody td:nth-child(7),
.sgodds-current tbody td:nth-child(10) {
	border-left: 1px solid var(--sgodds-border);
}

/* Wide screens: the wrap stops being a scroll box so the sticky header
   can stick to the viewport while the page scrolls. */
@media (min-width: 1024px) {
	.sgodds-current-wrap {
		overflow: visible;
	}

	.sgodds-current thead tr:first-child th {
		position: sticky;
		top: 0;
		z-index: 4;
	}

	.sgodds-current thead tr.sgodds-subhead th {
		position: sticky;
		top: 37px;
		z-index: 4;
	}
}

.sgodds-current-odds {
	font-weight: 700;
	color: var(--sgodds-primary);
}

.sgodds-move {
	font-variant-numeric: tabular-nums;
}

/* Kickoff: muted date over bold time, never wraps. */
.sgodds-kickoff {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.sgodds-ko-date {
	display: block;
	font-size: 12px;
	color: var(--sgodds-muted);
}

.sgodds-ko-time {
	display: block;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--sgodds-ink);
}

/* While day separator rows are shown (default kickoff view), they
   already state the date, so the repeated per-row date is hidden on
   desktop (v1.3.1). The JS toggles .sgodds-has-seps on the table with
   exactly the separators' visibility condition, so the date returns
   the moment a sort/filter/search hides the separators. The mobile
   card header line keeps its date — hence the min-width guard. */
@media (min-width: 641px) {
	.sgodds-has-seps .sgodds-ko-date {
		display: none;
	}
}

.sgodds-table .sgodds-league {
	white-space: nowrap;
	font-size: 13.5px;
}

.sgodds-table .sgodds-match {
	white-space: normal;
}

.sgodds-match a {
	color: inherit;
	text-decoration: none;
	font-weight: 600;
}

.sgodds-match a:hover {
	text-decoration: underline;
}

/* Match names wrap to at most two lines on desktop. */
.sgodds-current .sgodds-match a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sgodds-updated,
.sgodds-empty {
	font-size: 13px;
	color: var(--sgodds-muted);
	margin: 8px 2px;
}

/* ---------- Mobile outcome lines (desktop-hidden cell content) ---------- */

.sgodds-mobile-outcomes {
	display: none;
}

.sgodds-mline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 5px 0;
	border-top: 1px solid #e1effa;
	font-variant-numeric: tabular-nums;
}

.sgodds-mline:first-child {
	border-top: none;
}

.sgodds-mline-label {
	font-weight: 600;
	font-size: 14px;
	text-align: left;
}

.sgodds-mline-prices {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.sgodds-mline-open {
	color: var(--sgodds-muted);
}

.sgodds-mline-arrow {
	color: var(--sgodds-muted);
}

.sgodds-mline-cur {
	font-weight: 700;
	font-size: 15px;
	color: var(--sgodds-primary);
}

.sgodds-mline .sgodds-move-flat {
	color: #7A93A8;
}

/* ---------- Match detail: title, sparkline ---------- */

.sgodds-match-title {
	margin: 0.2em 0 0.1em;
}

.sgodds-match-meta {
	color: #43586b;
	margin: 0 0 1em;
}

.sgodds-summary,
.sgodds-history {
	min-width: 320px;
}

.sgodds-sparkline {
	background: #fff;
	border: 1px solid var(--sgodds-border);
	border-radius: 10px;
	padding: 10px 12px 6px;
	margin: 0 0 1em;
}

.sgodds-sparkline svg {
	display: block;
	width: 100%;
	height: auto;
}

.sgodds-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 4px;
}

.sgodds-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.sgodds-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: inline-block;
	flex: none;
}

/* ---------- Disclaimer block ---------- */

.sgodds-disclaimer {
	/* Container-safe in any context (v1.6.2): padding and border are
	   inside the box, and the block can never exceed its container. */
	box-sizing: border-box;
	max-width: 100%;
	background: var(--sgodds-tint);
	border: 1px solid var(--sgodds-border);
	border-left: 4px solid var(--sgodds-primary);
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 13px;
	line-height: 1.55;
	color: #44586a;
	margin-top: 12px;
}

.sgodds-disclaimer-title {
	font-weight: 700;
	font-size: 13.5px;
	color: var(--sgodds-navy);
	margin: 0 0 4px;
}

.sgodds-disclaimer p {
	margin: 0 0 6px;
}

.sgodds-disclaimer p:last-child {
	margin-bottom: 0;
}

/* ---------- Match detail: all markets (v1.2.0) ---------- */

.sgodds-markets {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0 0 1em;
}

.sgodds-market {
	border: 1px solid var(--sgodds-border);
	border-radius: 10px;
	background: #fff;
	padding: 10px 12px 12px;
}

.sgodds-market-name {
	margin: 0 0 8px;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--sgodds-navy);
	padding-bottom: 6px;
	border-bottom: 2px solid var(--sgodds-tint-strong);
}

.sgodds-market .sgodds-table-wrap {
	border: none;
	border-radius: 0;
}

.sgodds-market-outcome {
	text-align: left;
	white-space: normal;
	font-weight: 600;
}

/* Wide markets (Pick The Score, Halftime-Fulltime, …): one row per
   outcome instead of a table (v1.3.2) — normal-weight label left,
   opening (muted) → current (bold deep blue) plus the same movement
   pill as the narrow tables fixed right. The price group never wraps;
   only the label may. Single column below 1024px, two columns above. */
.sgodds-wide-list {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 13.5px;
	font-variant-numeric: tabular-nums;
}

.sgodds-wide-row {
	display: flex;
	align-items: baseline;
	gap: 8px 12px;
	padding: 6px 2px;
	border-bottom: 1px solid #DCEBFA;
}

.sgodds-wide-row:last-child {
	border-bottom: none;
}

.sgodds-wide-label {
	flex: 1 1 auto;
	font-weight: 400;
	color: var(--sgodds-ink);
}

.sgodds-wide-prices {
	flex: 0 0 auto;
	white-space: nowrap;
	text-align: right;
}

.sgodds-wide-open {
	color: var(--sgodds-muted);
}

.sgodds-wide-move {
	flex: 0 0 auto;
	min-width: 76px;
}

@media (min-width: 1024px) {
	.sgodds-wide-list {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		column-gap: 40px;
	}
}

/* ---------- Small screens: match cards with three outcome lines ---------- */

@media (max-width: 640px) {
	.sgodds-logo-img {
		height: 32px;
	}

	.sgodds-masthead {
		padding: 14px 16px;
	}

	.sgodds-masthead-side {
		align-items: flex-start;
	}

	/* Filter bar on mobile: search takes the full first line, the two
	   selects sit side by side on the second line. */
	.sgodds-search {
		order: -1;
		flex: 1 1 100%;
	}

	.sgodds-league-select,
	.sgodds-sort {
		flex: 1 1 0;
		min-width: 0;
	}

	.sgodds-current thead {
		display: none;
	}

	.sgodds-current tbody tr.sgodds-match-row {
		display: block;
		padding: 10px 12px 12px;
		border-bottom: 2px solid var(--sgodds-border);
	}

	.sgodds-current tbody tr.sgodds-day-row,
	.sgodds-current tbody tr.sgodds-day-row td {
		display: block;
	}

	.sgodds-current tbody td {
		border-bottom: none;
	}

	/* Card header: kickoff + league on one small muted line. */
	.sgodds-current td.sgodds-kickoff {
		display: inline-block;
		padding: 0;
	}

	.sgodds-current .sgodds-ko-date,
	.sgodds-current .sgodds-ko-time {
		display: inline;
		font-size: 12.5px;
	}

	.sgodds-current td.sgodds-league {
		display: inline-block;
		padding: 0;
		margin-left: 8px;
		font-size: 12.5px;
		color: var(--sgodds-muted);
	}

	/* Team names bold below the header line. */
	.sgodds-current td.sgodds-match {
		display: block;
		padding: 3px 0 0;
		font-size: 16px;
	}

	.sgodds-current td.sgodds-match a {
		display: inline;
		-webkit-line-clamp: unset;
		font-weight: 700;
	}

	/* The nine desktop odds/move cells never render on mobile… */
	.sgodds-current td.sgodds-num,
	.sgodds-current td.sgodds-move {
		display: none;
	}

	/* …the three outcome lines take their place. */
	.sgodds-current td.sgodds-mobile-outcomes {
		display: block;
		padding: 4px 0 0;
		text-align: left;
		white-space: normal;
	}

	.sgodds-summary,
	.sgodds-history {
		min-width: 0;
	}

	/* Score card on small screens: tighter padding, team names
	   shrink and wrap; the score itself stays large (>= 30px). */
	.sgodds-scorecard {
		padding: 12px;
	}

	.sgodds-scorecard-line {
		gap: 10px;
	}

	.sgodds-scorecard-team {
		font-size: 15.5px;
	}

	.sgodds-scorecard-score {
		font-size: 32px;
	}

	/* Movers table on small screens: tighter cells, and the league
	   column (also in the match link's context) yields its width to
	   the market / outcome / prices. The wrap still scrolls
	   horizontally if a phone is narrower than the table. */
	.sgodds-movers-table th,
	.sgodds-movers-table td {
		padding: 7px 6px;
	}

	.sgodds-movers-table th:nth-child(3),
	.sgodds-movers-table td:nth-child(3) {
		display: none; /* League column (3rd) */
	}

	/* Past Matches table on small screens: same treatment — tighter
	   cells, league column (2nd) hidden. */
	.sgodds-past-table th,
	.sgodds-past-table td {
		padding: 7px 6px;
	}

	.sgodds-past-table th:nth-child(2),
	.sgodds-past-table td:nth-child(2) {
		display: none; /* League column (2nd) */
	}
}
