/* ==========================================================================
   DSG Odds – design system
   Dark by default, light via [data-theme="light"], accents via [data-accent]
   ========================================================================== */

:root {
	--font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--font-display: 'Sora', var(--font);

	--bg: #0a101c;
	--bg-glow: #0f1a2e;
	--surface: #111a2a;
	--surface-2: #162236;
	--surface-3: #1c2b44;
	--surface-hover: #1f2f4b;
	--line: #223250;
	--line-soft: #1a2740;
	--text: #e8eef8;
	--text-2: #a3b3cd;
	--text-3: #6d7f9e;
	--overlay: rgba(4, 8, 16, .66);

	--accent: #1ed68f;
	--accent-2: #12b277;
	--accent-ink: #03170e;
	--accent-soft: rgba(30, 214, 143, .12);
	--accent-line: rgba(30, 214, 143, .35);

	--up: #2fd27a;
	--up-soft: rgba(47, 210, 122, .16);
	--down: #ff5468;
	--down-soft: rgba(255, 84, 104, .16);
	--live: #ff3d5a;
	--warn: #f6b93b;
	--info: #4ea3ff;

	--odd-bg: #18253b;
	--odd-bg-hover: #213352;
	--odd-best: rgba(30, 214, 143, .14);

	--radius-s: 8px;
	--radius: 12px;
	--radius-l: 18px;
	--shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.25);
	--shadow-pop: 0 18px 50px rgba(0,0,0,.45);

	--header-h: 64px;
	--sportbar-h: 56px;
	--rail-w: 268px;
	--slip-w: 320px;
	--gutter: 16px;

	color-scheme: dark;
}

:root[data-theme="light"] {
	--bg: #f2f5fa;
	--bg-glow: #e8eef8;
	--surface: #ffffff;
	--surface-2: #f6f8fc;
	--surface-3: #edf1f8;
	--surface-hover: #eaf0f9;
	--line: #dde4ef;
	--line-soft: #e9eef5;
	--text: #0d1626;
	--text-2: #485a77;
	--text-3: #7a89a3;
	--overlay: rgba(13, 22, 38, .4);

	--accent: #0ba86d;
	--accent-2: #08915d;
	--accent-ink: #ffffff;
	--accent-soft: rgba(11, 168, 109, .1);
	--accent-line: rgba(11, 168, 109, .35);

	--up: #11a35a;
	--up-soft: rgba(17, 163, 90, .12);
	--down: #e23b50;
	--down-soft: rgba(226, 59, 80, .1);

	--odd-bg: #f0f4fa;
	--odd-bg-hover: #e3eaf5;
	--odd-best: rgba(11, 168, 109, .12);

	--shadow: 0 1px 2px rgba(13,22,38,.05), 0 6px 20px rgba(13,22,38,.06);
	--shadow-pop: 0 18px 50px rgba(13,22,38,.18);
	color-scheme: light;
}

:root[data-accent="gold"] { --accent: #f5b829; --accent-2: #d99c0f; --accent-ink: #1d1400; --accent-soft: rgba(245,184,41,.13); --accent-line: rgba(245,184,41,.4); --odd-best: rgba(245,184,41,.15); }
:root[data-accent="purple"] { --accent: #9b7bff; --accent-2: #7f5cf5; --accent-ink: #ffffff; --accent-soft: rgba(155,123,255,.14); --accent-line: rgba(155,123,255,.4); --odd-best: rgba(155,123,255,.16); }
:root[data-accent="blue"] { --accent: #3d9bff; --accent-2: #1f7fe6; --accent-ink: #ffffff; --accent-soft: rgba(61,155,255,.13); --accent-line: rgba(61,155,255,.4); --odd-best: rgba(61,155,255,.15); }
:root[data-theme="light"][data-accent="gold"] { --accent: #c98a00; --accent-2: #a87300; --accent-ink: #fff; }
:root[data-theme="light"][data-accent="purple"] { --accent: #6f4ef0; --accent-2: #5a3bd6; }
:root[data-theme="light"][data-accent="blue"] { --accent: #1677e0; --accent-2: #0f63bd; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 14px;
	line-height: 1.45;
	color: var(--text);
	background: var(--bg);
	background-image: radial-gradient(1200px 500px at 70% -200px, var(--bg-glow), transparent 70%);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
img { max-width: 100%; }
svg { flex-shrink: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-s { width: 14px; height: 14px; }
.sport-ico { width: 18px; height: 18px; fill: currentColor; }

/* ---------- header ---------- */
.hdr {
	position: sticky; top: 0; z-index: 40;
	height: var(--header-h);
	display: flex; align-items: center; gap: 16px;
	padding: 0 20px;
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 18px; white-space: nowrap; }
.brand-mark {
	width: 32px; height: 32px; border-radius: 10px;
	display: grid; place-items: center;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: var(--accent-ink); font-size: 13px; font-weight: 800; letter-spacing: -.02em;
}
.brand small { display: block; font-family: var(--font); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-top: -2px; }
.hdr-search { flex: 1; max-width: 460px; margin-left: 12px; position: relative; }
.search-input {
	width: 100%; height: 40px; padding: 0 14px 0 40px;
	background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
	outline: none; transition: border-color .15s, background .15s;
}
.search-input::placeholder { color: var(--text-3); }
.search-input:focus { border-color: var(--accent-line); background: var(--surface); }
.hdr-search > .ico { position: absolute; left: 14px; top: 11px; color: var(--text-3); }
.search-pop {
	position: absolute; top: 46px; left: 0; right: 0; z-index: 60;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow-pop); padding: 6px; max-height: 60vh; overflow: auto;
}
.search-pop[hidden] { display: none; }
.search-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-s); }
.search-item:hover, .search-item.is-active { background: var(--surface-hover); }
.search-item img { width: 22px; height: 22px; object-fit: contain; }
.search-item small { margin-left: auto; color: var(--text-3); }
.search-empty { padding: 14px; color: var(--text-3); text-align: center; }
.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; }
.seg button { height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.icon-btn {
	width: 40px; height: 40px; display: grid; place-items: center;
	border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2);
	position: relative;
}
.icon-btn:hover { color: var(--text); background: var(--surface-hover); }
.icon-btn .badge { position: absolute; top: -4px; right: -4px; }
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 40px; padding: 0 16px; border-radius: 999px;
	font-weight: 600; font-size: 13px; white-space: nowrap;
	background: var(--surface-2); border: 1px solid var(--line);
	transition: background .15s, transform .1s;
}
.btn:hover { background: var(--surface-hover); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; }
.btn-block { width: 100%; }
.badge {
	min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
	display: inline-grid; place-items: center;
	font-size: 10px; font-weight: 700; background: var(--accent); color: var(--accent-ink);
}
.badge-live { background: var(--live); color: #fff; }
.badge-soft { background: var(--surface-3); color: var(--text-2); }

/* ---------- sport bar ---------- */
.sportbar {
	position: sticky; top: var(--header-h); z-index: 30;
	height: var(--sportbar-h);
	display: flex; align-items: center; gap: 6px;
	padding: 0 20px; overflow-x: auto; scrollbar-width: none;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line-soft);
}
.sportbar::-webkit-scrollbar { display: none; }
.sport-chip {
	display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
	height: 36px; padding: 0 14px; border-radius: 999px;
	color: var(--text-2); font-weight: 600; font-size: 13px; white-space: nowrap;
	border: 1px solid transparent;
}
.sport-chip:hover { color: var(--text); background: var(--surface-2); }
.sport-chip.is-active { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.sport-chip .count { font-size: 11px; color: var(--text-3); font-weight: 600; }
.sport-chip.is-active .count { color: inherit; opacity: .8; }
.sport-chip .live-dot { margin-left: -2px; }

/* ---------- shell ---------- */
.shell {
	display: grid;
	grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--slip-w);
	gap: 20px;
	max-width: 1560px; margin: 0 auto;
	padding: 20px;
}
.rail, .aside {
	position: sticky; top: calc(var(--header-h) + var(--sportbar-h) + 20px);
	align-self: start;
	max-height: calc(100vh - var(--header-h) - var(--sportbar-h) - 40px);
	overflow: auto; scrollbar-width: thin;
}
.main { min-width: 0; }

/* ---------- rail ---------- */
.rail-sec { margin-bottom: 18px; }
.rail-title {
	display: flex; align-items: center; justify-content: space-between;
	padding: 0 10px 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
}
.rail-link {
	display: flex; align-items: center; gap: 10px;
	padding: 8px 10px; border-radius: var(--radius-s);
	color: var(--text-2); font-weight: 500;
}
.rail-link:hover { background: var(--surface-2); color: var(--text); }
.rail-link.is-active { background: var(--accent-soft); color: var(--accent); }
.rail-link .comp-logo { width: 22px; height: 22px; }
.rail-link .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-link .meta { font-size: 11px; color: var(--text-3); }
.rail-link .ico { color: var(--text-3); }
.rail-link.is-active .ico { color: inherit; }

/* ---------- cards & sections ---------- */
.card {
	background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-l);
	box-shadow: var(--shadow);
}
.card-pad { padding: 18px; }
.sec { margin-bottom: 28px; }
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.sec-head h2 { font-size: 18px; }
.sec-head .more { margin-left: auto; font-size: 13px; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; line-height: 1.2; }
.page-head .sub { color: var(--text-2); font-size: 13px; }
.page-head-ico {
	width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
	display: grid; place-items: center;
	background: var(--surface-2); border: 1px solid var(--line); color: var(--accent);
}
.page-head-ico img { width: 34px; height: 34px; object-fit: contain; }
.page-head-ico .sport-ico { width: 24px; height: 24px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; }

/* ---------- hero ---------- */
.hero {
	position: relative; overflow: hidden;
	padding: 32px; margin-bottom: 28px;
	border-radius: 24px; border: 1px solid var(--line-soft);
	background:
		radial-gradient(600px 300px at 90% 10%, var(--accent-soft), transparent 70%),
		radial-gradient(500px 260px at 10% 120%, rgba(78,163,255,.12), transparent 70%),
		var(--surface);
}
.hero::after {
	content: ''; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
	background-size: 36px 36px; opacity: .35;
	mask-image: radial-gradient(500px 260px at 85% 30%, #000, transparent);
}
.hero > * { position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }
.hero h1 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; margin: 14px 0 10px; max-width: 640px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: var(--text-2); max-width: 560px; margin: 0 0 20px; font-size: 15px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 26px; max-width: 720px; }
.stat { padding: 14px 16px; border-radius: var(--radius); background: color-mix(in srgb, var(--surface-2) 80%, transparent); border: 1px solid var(--line-soft); }
.stat b { display: block; font-family: var(--font-display); font-size: 24px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--text-3); font-weight: 500; }

/* ---------- live strip ---------- */
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.hscroll > * { scroll-snap-align: start; }
.live-card { padding: 14px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s; }
.live-card:hover { border-color: var(--accent-line); }
.live-card-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); min-width: 0; }
.live-card-top .comp { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.live-card .team { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.live-card .team .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-card .team .sc { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 16px; }
.live-card .odds-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }

/* ---------- toolbar ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.days { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.days::-webkit-scrollbar { display: none; }
.day {
	flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-width: 62px; height: 50px; padding: 0 10px; border-radius: var(--radius);
	background: var(--surface); border: 1px solid var(--line-soft); color: var(--text-2);
}
.day b { font-size: 13px; color: var(--text); }
.day span { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.day:hover { border-color: var(--line); }
.day.is-active { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.day.is-active b { color: inherit; }
.day-live { flex-direction: row; gap: 8px; font-weight: 700; color: var(--live); }
.day-live.is-active { background: var(--live); color: #fff; }
.select {
	height: 40px; padding: 0 34px 0 14px; border-radius: 999px;
	background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a89a3' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
	border: 1px solid var(--line); appearance: none; font-size: 13px; font-weight: 500; max-width: 100%;
}
.select option { background: var(--surface); color: var(--text); }

/* ---------- competition group & match rows ---------- */
.group { margin-bottom: 14px; overflow: hidden; }
.group-head {
	display: flex; align-items: center; gap: 10px;
	padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line-soft);
}
.group-head .comp-logo { width: 24px; height: 24px; }
.group-head .title { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-head .area { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.group-head .cols { margin-left: auto; display: grid; grid-template-columns: repeat(var(--cols, 3), 64px); gap: 6px; text-align: center; font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; }
.group-head .fav-btn { margin-left: 4px; }
.group.is-collapsed .match-list { display: none; }
.group-toggle { color: var(--text-3); transition: transform .2s; }
.group.is-collapsed .group-toggle { transform: rotate(-90deg); }

.comp-logo { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; flex-shrink: 0; }
.team-logo { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.logo-fallback { display: inline-grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--text-3); font-size: 9px; font-weight: 700; }

.match {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto auto 28px;
	align-items: center; gap: 12px;
	padding: 10px 16px; border-bottom: 1px solid var(--line-soft);
	transition: background .12s;
}
.match:last-child { border-bottom: 0; }
.match:hover { background: var(--surface-2); }
.match-time { font-size: 12px; color: var(--text-2); line-height: 1.3; font-variant-numeric: tabular-nums; }
.match-time b { display: block; color: var(--text); font-size: 13px; }
.match-time.is-live b { color: var(--live); }
.match-teams { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.match-team { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 500; }
.match-team .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-team .sc { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--live); padding-left: 8px; }
.match-meta { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--text-3); }
.form { display: flex; gap: 3px; }
.form i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.form i.w { background: var(--up); }
.form i.l { background: var(--down); }
.form i.d { background: var(--warn); }
.match-forms { display: flex; flex-direction: column; gap: 10px; padding-right: 4px; }
.match-odds { display: grid; grid-template-columns: repeat(var(--cols, 3), 64px); gap: 6px; }
.match-more { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--text-3); }
.match-more:hover { background: var(--surface-3); color: var(--text); }
.match-foot { grid-column: 2 / -1; display: flex; gap: 14px; font-size: 11px; color: var(--text-3); margin-top: -4px; flex-wrap: wrap; }
.match-foot .payout b { color: var(--text-2); }

/* odd pill */
.odd {
	position: relative;
	height: 44px; min-width: 0; border-radius: 10px;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	background: var(--odd-bg); border: 1px solid transparent;
	font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px;
	transition: background .15s, border-color .15s;
}
.odd small { font-size: 10px; font-weight: 600; color: var(--text-3); line-height: 1; margin-bottom: 3px; text-transform: uppercase; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
.odd:hover { background: var(--odd-bg-hover); }
.odd.is-selected { background: var(--accent); color: var(--accent-ink); }
.odd.is-selected small { color: inherit; opacity: .75; }
.odd.is-empty { opacity: .4; pointer-events: none; }
.odd .bm { position: absolute; top: 3px; right: 4px; width: 14px; height: 14px; border-radius: 3px; object-fit: contain; opacity: .9; }
.odd .arrow { position: absolute; top: 4px; left: 5px; font-size: 8px; line-height: 1; }
.odd.up { animation: flash-up 2.4s ease-out; }
.odd.down { animation: flash-down 2.4s ease-out; }
.odd.up .arrow { color: var(--up); }
.odd.down .arrow { color: var(--down); }
@keyframes flash-up { 0%, 30% { background: var(--up-soft); border-color: var(--up); } }
@keyframes flash-down { 0%, 30% { background: var(--down-soft); border-color: var(--down); } }
.odd-row-3 .odd { height: 40px; }

/* live indicator */
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 var(--live); animation: pulse 1.6s infinite; flex-shrink: 0; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,61,90,.6); } 70% { box-shadow: 0 0 0 7px rgba(255,61,90,0); } 100% { box-shadow: 0 0 0 0 rgba(255,61,90,0); } }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.tag-live { background: rgba(255,61,90,.14); color: var(--live); }
.tag-up { background: var(--up-soft); color: var(--up); }
.tag-down { background: var(--down-soft); color: var(--down); }
.tag-accent { background: var(--accent-soft); color: var(--accent); }

.fav-btn { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--text-3); }
.fav-btn:hover { color: var(--warn); background: var(--surface-3); }
.fav-btn[aria-pressed="true"] { color: var(--warn); }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }

/* ---------- match page ---------- */
.mh { padding: 24px; margin-bottom: 18px; position: relative; overflow: hidden; }
.mh::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 200px at 50% -40px, var(--accent-soft), transparent 70%); pointer-events: none; }
.mh > * { position: relative; }
.mh-top { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.mh-top .comp-logo { width: 20px; height: 20px; }
.mh-top .actions { margin-left: auto; display: flex; gap: 6px; }
.mh-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: 22px 0 10px; }
.mh-team { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; min-width: 0; }
.mh-team .logo-wrap { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); }
.mh-team .logo-wrap img { width: 46px; height: 46px; object-fit: contain; }
.mh-team .name { font-family: var(--font-display); font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }
.mh-center { text-align: center; }
.mh-center .score { font-family: var(--font-display); font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.mh-center .kick { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.mh-center .date { color: var(--text-2); font-size: 13px; }
.mh-info { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); margin-top: 8px; }
.mh-info span { display: inline-flex; align-items: center; gap: 6px; }
.mh-info img { height: 16px; }

.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-soft); overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex-shrink: 0; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--surface-3); color: var(--text); }
.tab .badge { background: var(--surface-3); color: var(--text-3); }
.tab.is-active .badge { background: var(--accent); color: var(--accent-ink); }

.market-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.market-list { padding: 6px; }
.market-item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 9px 10px; border-radius: var(--radius-s); color: var(--text-2); font-size: 13px; }
.market-item small { margin-left: auto; color: var(--text-3); font-size: 11px; }
.market-item:hover { background: var(--surface-2); color: var(--text); }
.market-item.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-soft); font-size: 12px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.chip:hover { color: var(--text); border-color: var(--line); }
.chip.is-active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.chip.is-main::after { content: '•'; margin-left: 4px; color: var(--accent); }

.best-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0 18px; }
.best {
	padding: 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line-soft);
	display: flex; flex-direction: column; gap: 8px; text-align: left; transition: border-color .15s, background .15s;
}
.best:hover { border-color: var(--accent-line); }
.best.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.best-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-2); font-weight: 600; }
.best-top img { height: 18px; max-width: 60px; object-fit: contain; border-radius: 3px; }
.best-val { font-family: var(--font-display); font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.prob { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.prob i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.best-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }

.summary-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.kpi { flex: 1; min-width: 130px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line-soft); }
.kpi span { display: block; font-size: 11px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.kpi b { font-family: var(--font-display); font-size: 20px; font-variant-numeric: tabular-nums; }
.kpi.good b { color: var(--up); }
.kpi.bad b { color: var(--down); }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line-soft); }
.otable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 420px; }
.otable th { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); text-align: center; padding: 10px 8px; background: var(--surface-2); border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.otable th:first-child { text-align: left; padding-left: 14px; }
.otable td { padding: 6px 8px; border-bottom: 1px solid var(--line-soft); text-align: center; }
.otable tr:last-child td { border-bottom: 0; }
.otable td:first-child { text-align: left; padding-left: 14px; }
.otable tr:hover td { background: var(--surface-2); }
.otable .bm-cell { display: flex; align-items: center; gap: 10px; }
.otable .bm-cell img { height: 22px; width: 72px; object-fit: contain; object-position: left center; border-radius: 4px; }
.otable .odd { height: 36px; min-width: 64px; margin: 0 auto; max-width: 96px; }
.otable .odd.is-best { background: var(--odd-best); color: var(--accent); border-color: var(--accent-line); }
.otable tfoot td { background: var(--surface-2); font-weight: 700; font-size: 12px; color: var(--text-2); padding: 10px 8px; }
.payout-cell { font-size: 12px; font-weight: 700; }
.payout-cell.hi { color: var(--up); }
.payout-cell.lo { color: var(--text-3); }

/* ---------- tools ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.tool-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.tool-card-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); min-width: 0; }
.tool-card-top .comp { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-teams { font-weight: 700; display: flex; flex-direction: column; gap: 4px; }
.tool-teams a:hover { color: var(--accent); }
.tool-body { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius); background: var(--surface-2); }
.tool-big { font-family: var(--font-display); font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.tool-big.up { color: var(--up); }
.tool-big.down { color: var(--down); }
.tool-move { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; font-weight: 700; }
.tool-move s { color: var(--text-3); font-weight: 500; }
.legs { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.leg { padding: 10px; border-radius: var(--radius-s); background: var(--surface-2); text-align: center; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.leg img { height: 16px; max-width: 56px; object-fit: contain; }
.leg b { font-variant-numeric: tabular-nums; font-size: 16px; }
.leg small { color: var(--text-3); font-size: 11px; }
.leg .stake { color: var(--accent); font-weight: 700; font-size: 12px; }
.stake-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-2); }
.stake-row input { width: 90px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.input {
	height: 40px; padding: 0 12px; border-radius: var(--radius-s);
	background: var(--surface-2); border: 1px solid var(--line); outline: none; font-variant-numeric: tabular-nums; width: 100%;
}
.input:focus { border-color: var(--accent-line); }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.calc-card { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.calc-card h3 { font-size: 16px; }
.calc-card p { margin: 0; color: var(--text-2); font-size: 13px; }
.calc-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calc-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }

/* ---------- bet slip ---------- */
.slip { display: flex; flex-direction: column; }
.slip-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; }
.slip-head h3 { font-size: 16px; }
.slip-head .clear { margin-left: auto; font-size: 12px; color: var(--text-3); font-weight: 600; }
.slip-head .clear:hover { color: var(--down); }
.slip .seg { margin: 0 16px 12px; display: flex; }
.slip .seg button { flex: 1; }
.slip-list { padding: 0 12px; display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow: auto; }
.slip-item { padding: 12px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line-soft); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; position: relative; }
.slip-item.is-conflict { border-color: var(--warn); }
.slip-item .pick { font-weight: 700; }
.slip-item .mkt, .slip-item .evt { font-size: 12px; color: var(--text-3); grid-column: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slip-item .price { grid-row: 1; grid-column: 2; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent); }
.slip-item .rm { grid-column: 2; grid-row: 2 / span 2; align-self: end; justify-self: end; color: var(--text-3); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; }
.slip-item .rm:hover { background: var(--surface-3); color: var(--down); }
.slip-item .single-stake { grid-column: 1 / -1; margin-top: 6px; }
.slip-foot { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line-soft); margin-top: 12px; }
.slip-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.slip-line b { color: var(--text); }
.slip-line.total b { color: var(--accent); font-size: 18px; font-family: var(--font-display); }
.slip-empty { padding: 22px 18px 26px; text-align: center; color: var(--text-3); font-size: 13px; }
.slip-empty .ico { width: 34px; height: 34px; margin-bottom: 6px; opacity: .6; }
.slip-note { font-size: 11px; color: var(--text-3); text-align: center; }
.slip-warn { font-size: 12px; color: var(--warn); }
.aside .promo { margin-top: 14px; padding: 18px; }
.promo h4 { font-size: 15px; margin-bottom: 6px; }
.promo p { color: var(--text-2); font-size: 13px; margin: 0 0 14px; }
.promo pre {
	margin: 0 0 14px; padding: 12px; border-radius: var(--radius-s);
	background: var(--bg); border: 1px solid var(--line-soft); font-size: 11px; line-height: 1.5;
	color: var(--text-2); overflow: auto; white-space: pre;
}
.promo pre .k { color: var(--info); }
.promo pre .s { color: var(--accent); }
.promo pre .n { color: var(--warn); }

/* ---------- popover / settings ---------- */
.pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 70; width: 300px; padding: 16px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.pop[hidden] { display: none; }
.pop h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin: 0 0 8px; font-family: var(--font); }
.pop .group-block + .group-block { margin-top: 16px; }
.pop .seg { display: flex; }
.pop .seg button { flex: 1; }
.swatches { display: flex; gap: 8px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; box-shadow: inset 0 0 0 3px var(--surface); }
.swatch[aria-pressed="true"] { border-color: var(--text); }
.rel { position: relative; }

/* ---------- states ---------- */
.empty { padding: 48px 24px; text-align: center; color: var(--text-2); }
.empty .ico { width: 40px; height: 40px; color: var(--text-3); margin-bottom: 10px; }
.empty h3 { font-size: 17px; color: var(--text); margin-bottom: 6px; }
.empty p { margin: 0 auto 16px; max-width: 360px; font-size: 13px; }
.skel { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.skel-row { height: 64px; margin: 10px 16px; }
.skel-card { height: 160px; border-radius: var(--radius-l); }
.notice { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius); background: rgba(246,185,59,.12); color: var(--warn); font-size: 12px; font-weight: 600; margin-bottom: 14px; }
.updated { font-size: 11px; color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; }

.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 13px; box-shadow: var(--shadow-pop); animation: toast-in .2s ease-out; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

.foot { max-width: 1560px; margin: 0 auto; padding: 24px 20px 40px; color: var(--text-3); font-size: 12px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; border-top: 1px solid var(--line-soft); }
.foot a:hover { color: var(--text); }

/* ---------- mobile chrome ---------- */
.bottom-nav { display: none; }
.drawer-backdrop { position: fixed; inset: 0; background: var(--overlay); z-index: 80; }
.drawer-backdrop[hidden] { display: none; }
.menu-btn { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
	.shell { grid-template-columns: var(--rail-w) minmax(0, 1fr); }
	.aside {
		position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
		width: min(380px, 100%); max-height: none;
		background: var(--bg); padding: 16px; border-left: 1px solid var(--line);
		transform: translateX(100%); transition: transform .25s ease;
	}
	body.slip-open .aside { transform: none; }
	.slip-toggle { display: grid !important; }
}
@media (max-width: 1020px) {
	:root { --header-h: 58px; }
	.shell { grid-template-columns: minmax(0, 1fr); padding: 16px var(--gutter); }
	.rail {
		position: fixed; top: 0; left: 0; bottom: 0; z-index: 90;
		width: min(320px, 88%); max-height: none;
		background: var(--bg); padding: 16px 10px; border-right: 1px solid var(--line);
		transform: translateX(-100%); transition: transform .25s ease;
	}
	body.rail-open .rail { transform: none; }
	.menu-btn { display: grid; }
	.hdr { padding: 0 var(--gutter); gap: 10px; }
	.sportbar { padding: 0 var(--gutter); }
	.hdr-search { margin-left: 0; }
	.market-layout { grid-template-columns: minmax(0, 1fr); }
	.market-list { display: flex; gap: 6px; overflow-x: auto; padding: 4px; scrollbar-width: none; }
	.market-list .market-item { width: auto; flex-shrink: 0; white-space: nowrap; }
	.market-list .rail-title { display: none; }
}
@media (max-width: 720px) {
	body { padding-bottom: 72px; }
	.hdr .brand small, .hdr .fmt-seg, .hdr .api-btn { display: none; }
	.hdr-search { max-width: none; }
	.hero { padding: 22px 18px; border-radius: 18px; }
	.hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.page-head h1 { font-size: 20px; }
	.page-head .actions { margin-left: 0; width: 100%; }
	.group-head { padding: 10px 12px; }
	.group-head .cols { display: none; }
	.match {
		grid-template-columns: 52px minmax(0, 1fr) 24px;
		padding: 12px; gap: 6px 10px;
	}
	.match-forms { display: none; }
	.match-odds { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
	.match-more { grid-row: 1; grid-column: 3; }
	.match-foot { grid-column: 1 / -1; grid-row: 3; margin-top: 0; }
	.odd { height: 42px; }
	.mh { padding: 18px 14px; }
	.mh-team .logo-wrap { width: 56px; height: 56px; border-radius: 16px; }
	.mh-team .logo-wrap img { width: 36px; height: 36px; }
	.mh-team .name { font-size: 14px; }
	.mh-center .score { font-size: 30px; }
	.mh-center .kick { font-size: 20px; }
	.tool-grid { grid-template-columns: minmax(0, 1fr); }
	.calc-row { grid-template-columns: repeat(2, 1fr); }
	.foot { padding-bottom: 90px; }
	.bottom-nav {
		display: grid; grid-template-columns: repeat(5, 1fr);
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
		height: 64px; padding-bottom: env(safe-area-inset-bottom);
		background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px);
		border-top: 1px solid var(--line);
	}
	.bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10px; font-weight: 600; color: var(--text-3); position: relative; }
	.bottom-nav .is-active { color: var(--accent); }
	.bottom-nav .badge { position: absolute; top: 8px; left: calc(50% + 6px); }
	.toast-wrap { bottom: 84px; }
	.hdr-actions .slip-toggle { display: none !important; }
}
@media (max-width: 420px) {
	.brand-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* group header columns line up with the odds column of the rows (row: odds + 28px chevron + 12px gap) */
.group-head .cols { margin-right: 40px; }
.slip-close { display: none !important; }
@media (max-width: 1280px) { .slip-close { display: grid !important; } }
.odd small:empty { display: none; }
.best .odd { height: 54px; font-size: 22px; font-family: var(--font-display); font-weight: 800; }
.best .odd small { font-family: var(--font); }
.leg .odd { height: 34px; width: 100%; }
.tool-card > .odd { height: 40px; }
.tool-card > .odd small { display: none; }
.bm-fallback { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); font-size: 11px; font-weight: 700; white-space: nowrap; }
.best-top .bm-fallback { height: 18px; font-size: 10px; }
.otable .odd.is-best.is-selected { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.badge[hidden] { display: none; }
.calc-card .kpi { flex: none; min-width: 0; }
.calc-out .kpi { min-width: 0; }

@media (max-width: 720px) {
	.best-grid { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
	.best { padding: 10px; }
	.best-top img, .best-top .bm-fallback { display: none; }
	.best .odd { height: 46px; font-size: 18px; }
	.best-foot { flex-direction: column; gap: 2px; }
	.summary-row .kpi { min-width: 0; flex-basis: calc(33% - 10px); padding: 10px; }
	.kpi b { font-size: 16px; }
	.otable { min-width: 0; }
	.otable th, .otable td { padding-left: 4px; padding-right: 4px; }
	.otable td:first-child, .otable th:first-child { padding-left: 10px; }
	.otable .odd { min-width: 48px; height: 34px; font-size: 13px; }
	.otable .bm-cell img { width: 52px; }
	.otable .bm-fallback { padding: 0 6px; font-size: 10px; }
	.mh-top .faint { display: none; }
}
.slip-item .bm-fallback { height: 16px; padding: 0 5px; font-size: 10px; }
