/* Match centre, My Bets and ticket pages (UI agent B) — design system v2.
   Flat, anchored cards (1px border, radius 10, no shadow), Inter type scale,
   restrained colour. Colours only via tokens from css/match.css; the --b-*
   aliases below fall back to the v1 token names while both exist. */
:root {
  --b-mint: var(--accent, #5ce1ad);
  --b-mint-hover: var(--accent-hover, #74eabd);
  --b-mint-ink: var(--accent-text, #5ce1ad);
  --b-mint-soft: var(--accent-soft, rgba(92, 225, 173, .14));
  --b-on-mint: var(--on-accent, #062417);
  --b-live: var(--live, #ff4d4f);
}

:root {
  --b-border: var(--border, var(--line));
  --b-border-strong: var(--border-strong, var(--line-strong));
  --b-pri-ink: var(--b-mint-ink);
  --b-acc-ink: var(--b-mint-ink);
  --b-odds-hover: var(--odds-hover, var(--odds-bg-hover));
  --b-warn: var(--warning, var(--warn));
  --b-ok-soft: color-mix(in srgb, var(--success) 13%, var(--surface));
  --b-bad-soft: color-mix(in srgb, var(--danger) 11%, var(--surface));
  --b-warn-soft: color-mix(in srgb, var(--b-warn) 15%, var(--surface));
  --b-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ================================================================ calm motion guard (DESIGN_V2 §5)
   No sliding pill indicators, hover lifts, press scaling or scroll reveals here. */
.mc-tabs > .fx-ind, .mc-tabs > .fx-hov, .mc-seg > .fx-ind, .mc-seg > .fx-hov, .bt-status > .fx-ind, .bt-status > .fx-hov { display: none !important; }
.mc-tabs.fx-ind-host .mc-tab.is-active, .mc-seg.fx-ind-host > .is-active { background: transparent !important; }
.mc-seg.fx-ind-host > .is-active { background: var(--surface) !important; }
:is(.mc, .tk-page, .bt-list, .bt-summary, .bt-filters) :is(.ticket, .card, .mc-card, .odds, .btn, .mc-seg > button):is(:hover, :active) { transform: none !important; }
:is(.mc, .tk-page, .bt-list) .fx-pre { opacity: 1 !important; transform: none !important; }

/* ================================================================ shared card */
.mc, .tk-page, .bt-list { font-variant-numeric: tabular-nums; }
.mc { display: grid; gap: 16px; min-width: 0; container: mc / inline-size; }
.mc > *, .mc-panel > * { min-width: 0; }
.lp.mc-panel { display: grid; gap: 16px; padding: 0; min-height: 0; background: none; border: 0; box-shadow: none; }
.mc-pane { display: grid; gap: 16px; min-width: 0; }
.mc-pane[hidden] { display: none; }

.mc-card { background: var(--surface); border: 1px solid var(--b-border); border-radius: 10px; box-shadow: none; min-width: 0; }
.mc-card-pad { padding: 16px; }
.mc-card-body { padding: 14px 16px 16px; }
.mc-card-head { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; min-height: 52px; padding: 10px 16px; border-bottom: 1px solid var(--b-border); }
.mc-card-title { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; letter-spacing: 0; color: var(--text); }
.mc-card-sub { margin-left: auto; font-size: 12px; line-height: 18px; color: var(--muted); }
.mc-card-head .mc-link { margin-left: auto; }
.mc-muted-line { margin: 0; font-size: 13px; line-height: 20px; color: var(--muted); }
.mc-muted-line > .icon { vertical-align: -2px; margin-right: 4px; }
.mc-muted-line a { color: var(--b-pri-ink); font-weight: 500; }
.mc-section { display: grid; gap: 12px; min-width: 0; }
.mc-section-head { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.mc-section-head h2 { margin: 0 auto 0 0; font-size: 18px; line-height: 26px; font-weight: 600; letter-spacing: 0; }
.mc-link { display: inline-flex; align-items: center; gap: 2px; min-height: 36px; padding: 0 4px; border: 0; background: none; color: var(--b-pri-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; border-radius: 6px; }
.mc-link:hover { text-decoration: underline; }
.mc-count { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--b-border); color: var(--text-2); font-size: 12px; font-weight: 600; }

.mc-empty { display: flex; gap: 14px; align-items: flex-start; }
.mc-empty-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--b-border); color: var(--text-2); }
.mc-empty-ico .icon { width: 20px; height: 20px; }
.mc-empty h3 { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--text); }
.mc-empty p { margin: 4px 0 0; font-size: 14px; line-height: 22px; color: var(--text-2); max-width: 68ch; }
.mc-empty .btn { margin-top: 12px; }

/* ================================================================ toolbar */
.mc-toolbar { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; min-width: 0; }
.mc-crumbs { flex: 1 1 auto; margin: 0; min-width: 0; flex-wrap: nowrap; font-size: 13px; }
.mc-crumbs a { white-space: nowrap; }
.mc-crumbs .crumb-comp { min-width: 0; overflow: hidden; }
.mc-crumbs .crumb-comp .truncate { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-actions { display: flex; gap: 8px; flex: none; }
.mc-actions .fav-btn, .mc-actions .pin-btn { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--b-border); background: var(--surface); color: var(--text-2); display: grid; place-items: center; cursor: pointer; box-shadow: none; transition: background-color .15s var(--b-ease), color .15s var(--b-ease); }
.mc-actions .fav-btn:hover, .mc-actions .pin-btn:hover { background: var(--surface-2); color: var(--text); }
.mc-actions [aria-pressed="true"] { color: var(--b-mint-ink); border-color: color-mix(in srgb, var(--b-mint) 45%, var(--b-border)); background: var(--b-mint-soft); }
.mc-meta { order: 3; flex: 1 1 100%; display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; font-size: 12px; line-height: 18px; color: var(--muted); min-width: 0; }
.mc-meta > span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; }
.mc-meta .icon { width: 14px; height: 14px; flex: none; }
.mc-meta .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mc-meta a { color: var(--text-2); font-weight: 500; }
.mc-tag { height: 22px; padding: 0 8px; border-radius: 999px; font-weight: 600; font-size: 11px; }
.mc-tag-demo { color: var(--b-warn); background: var(--b-warn-soft); }
.mc-delayed { color: var(--b-warn); font-weight: 600; }

/* ================================================================ status pill */
.mc-live-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; flex: none;
  font-size: 11px; line-height: 1; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--b-border);
}
.mc-live-pill .dot { display: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
[data-status="live"] .mc-live-pill { background: var(--b-mint-soft); color: var(--b-acc-ink); border-color: transparent; }
[data-status="live"] .mc-live-pill .dot { display: block; animation: mc-pulse 1.6s ease-in-out infinite; }
[data-status="interval"] .mc-live-pill, [data-status="delayed"] .mc-live-pill { background: var(--b-warn-soft); color: var(--b-warn); border-color: transparent; }
[data-status="delayed"] .mc-live-pill .dot { display: block; }
[data-status="postponed"] .mc-live-pill [data-f="status_label"], [data-status="cancelled"] .mc-live-pill [data-f="status_label"], [data-status="abandoned"] .mc-live-pill [data-f="status_label"] { text-decoration: line-through; }
.mc-live-pill .mc-min { margin-left: 2px; padding-left: 6px; border-left: 1px solid color-mix(in srgb, currentColor 35%, transparent); letter-spacing: 0; }
.mc-live-pill .mc-min:empty { display: none; }
@keyframes mc-pulse { 50% { opacity: .3; } }

/* ================================================================ hero (scoreboard) */
.mc-hero { position: relative; background: var(--surface); border: 1px solid var(--b-border); border-radius: 10px; padding: 14px 20px 18px; min-width: 0; }
.mc-hero:has(+ .mc-tabs) { border-radius: 10px 10px 0 0; border-bottom-color: transparent; }
.mc-hero-top { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; min-width: 0; margin-bottom: 14px; }
.mc-hero-comp { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; font-size: 12px; line-height: 18px; font-weight: 500; color: var(--text-2); }
.mc-hero-comp .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mc-fmt { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; margin: 0 8px 0 0; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--b-border); font-size: 11px; font-weight: 600; color: var(--text-2); vertical-align: 2px; }
.mc-hero-comp .mc-fmt { margin: 0 0 0 4px; vertical-align: 0; }
.mc-hero-team .mc-hero-top { justify-content: space-between; flex-wrap: nowrap; }

/* team sports */
.mc-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px 20px; }
.mc-side { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.mc-side .crest { width: 64px; height: 64px; border-radius: 50%; font-size: 15px; box-shadow: inset 0 0 0 1px var(--b-border); }
.mc-side .crest.has-logo { padding: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--b-border); }
.mc-team-name { max-width: 100%; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--text); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: normal; word-break: normal; }
.mc-hero-team:has(.is-winner) .mc-side:not(.is-winner) .mc-team-name { color: var(--text-2); font-weight: 500; }
.mc-sub { font-size: 12px; line-height: 18px; color: var(--muted); min-height: 18px; }
.mc-sub:empty { visibility: hidden; }
.mc-centre { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.mc-boxes { display: flex; align-items: center; gap: 14px; line-height: 1; }
.mc-box { min-width: 1.2ch; text-align: center; font-size: 44px; font-weight: 700; color: var(--text); letter-spacing: 0; border-radius: 8px; padding: 2px 6px; transition: background-color .2s var(--b-ease); }
.mc-box.flash { animation: mc-score-tint 1.6s ease-out; }
@keyframes mc-score-tint { 0%, 30% { background: var(--b-mint-soft); } 100% { background: transparent; } }
.mc-dash { font-size: 28px; font-weight: 400; color: var(--muted); }
.mc-kickoff { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--text); padding: 8px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--b-border); text-align: center; white-space: nowrap; }
.mc-result-sm { font-size: 12px; line-height: 18px; font-weight: 500; color: var(--text-2); text-align: center; }
.mc-chips { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.mc-chips li { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--b-border); font-size: 12px; font-weight: 600; color: var(--text); }
.mc-chips .l { color: var(--muted); font-weight: 500; }
.mc-chips li.is-current { border-color: color-mix(in srgb, var(--b-mint) 50%, var(--b-border)); color: var(--b-acc-ink); }

/* cricket */
.mc-hero-title { margin: 0; min-width: 0; font-size: 15px; line-height: 22px; font-weight: 600; letter-spacing: 0; color: var(--text); }
.mc-hero-cricket .mc-hero-comp { margin-left: auto; }
.mc-cr-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 290px); gap: 16px 24px; align-items: stretch; }
.mc-cr-main { min-width: 0; display: grid; align-content: start; }
.mc-cr-line { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "crest name score" "crest tag score"; align-items: center; column-gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--b-border); min-width: 0; }
.mc-cr-line .crest { grid-area: crest; width: 40px; height: 40px; border-radius: 50%; }
.mc-cr-name { grid-area: name; min-width: 0; font-size: 16px; line-height: 22px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-cr-line:not(.is-batting) .mc-cr-name { grid-row: 1 / 3; color: var(--text-2); font-weight: 500; }
.mc-cr-tag { grid-area: tag; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--b-acc-ink); }
.mc-cr-score { grid-area: score; display: flex; align-items: baseline; gap: 8px; justify-self: end; white-space: nowrap; }
.mc-cr-score b { font-size: 40px; line-height: 1; font-weight: 700; color: var(--text); }
.mc-cr-score small { font-size: 14px; font-weight: 500; color: var(--muted); }
.mc-cr-score.is-other b { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--text-2); }
.mc-cr-foot { margin: 10px 0 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; line-height: 20px; color: var(--text-2); }
.mc-cr-foot b { color: var(--text); font-weight: 600; }
.mc-cr-foot.is-result { color: var(--text); font-weight: 600; }
.mc-cr-foot .icon { color: var(--success); }
.mc-batter { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px 16px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--b-border); }
.mc-cutout { flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 0; background: var(--surface); border: 1px solid var(--b-border); }
.mc-batter-copy { min-width: 0; flex: 1; }
.mc-batter p { margin: 0; }
.mc-batter-k { font-size: 12px; line-height: 18px; font-weight: 500; color: var(--b-acc-ink); }
.mc-batter-name { font-size: 15px; line-height: 22px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-batter-runs { display: flex; align-items: baseline; gap: 6px; margin: 2px 0 4px !important; }
.mc-batter-runs b { font-size: 32px; line-height: 1.1; font-weight: 700; }
.mc-batter-runs span { font-size: 14px; color: var(--muted); }
.mc-batter-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12px; line-height: 18px; color: var(--muted); }
.mc-batter-meta b { color: var(--text); font-weight: 600; margin-left: 2px; }

/* ================================================================ section tabs (underline) */
.mc-tabs { position: relative; display: flex; gap: 4px; margin-top: -16px; padding: 0 12px; background: var(--surface); border: 1px solid var(--b-border); border-radius: 0 0 10px 10px; overflow-x: auto; scrollbar-width: none; }
.mc-tabs::-webkit-scrollbar { display: none; }
.mc-tab { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: color .15s var(--b-ease); }
.mc-tab::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--b-mint); transform: scaleX(0); transition: transform .18s var(--b-ease); }
.mc-tab:hover { color: var(--text); }
.mc-tab.is-active { color: var(--b-pri-ink); }
.mc-tab.is-active::after { transform: scaleX(1); }
.mc-tab:focus-visible { outline: 2px solid var(--b-mint); outline-offset: -4px; border-radius: 6px; }
.mc-tab-count { min-width: 20px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--b-border); color: var(--text-2); font-size: 11px; line-height: 16px; text-align: center; }
html:not(.mc-js) .mc-tabs { display: none; }
html:not(.mc-js) .mc-hero { border-radius: 10px; border-bottom-color: var(--b-border); }

/* segmented control (filters) */
.mc-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--b-border); max-width: 100%; }
.mc-seg > button { flex: 0 0 auto; min-height: 30px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background-color .15s var(--b-ease), color .15s var(--b-ease); }
.mc-seg > button:hover:not(:disabled) { color: var(--text); }
.mc-seg > button:disabled { opacity: .5; cursor: not-allowed; }
.mc-seg > .is-active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px transparent, 0 0 0 1px var(--b-border); }

/* ================================================================ quick picks */
.mc-quick { overflow: hidden; }
.mc-quick-list { display: grid; }
.mc-quick-row.market { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: center; gap: 8px 16px; margin: 0; padding: 12px 16px; border: 0; border-top: 1px solid var(--b-border); border-radius: 0; background: none; box-shadow: none; }
.mc-quick-row.market:first-child { border-top: 0; }
.mc-quick-name { display: grid; min-width: 0; }
.mc-quick-mk { font-size: 14px; line-height: 20px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-quick-scope { font-size: 12px; line-height: 18px; color: var(--muted); }
.mc-quick-sels { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; }
.mc-quick .odds-prob { display: none; }
.mc-quick-row .market-reason { grid-column: 1 / -1; margin: 0; }
.mc-quick-row .market-reason[hidden] { display: none; }

/* ================================================================ odds buttons (DESIGN_V2 §4) */
.mc .odds {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-width: 64px; min-height: 44px; padding: 5px 8px; border: 1px solid transparent; border-radius: 8px;
  background: var(--odds-bg); color: var(--text); box-shadow: none; transform: none; font: inherit; cursor: pointer;
  transition: background-color .15s var(--b-ease), border-color .15s var(--b-ease), color .15s var(--b-ease);
}
.mc .odds:active:not(:disabled) { transform: none; }
.mc .odds:hover:not(:disabled) { background: var(--b-odds-hover); border-color: transparent; }
.mc .odds:focus-visible { outline: 2px solid var(--b-mint); outline-offset: 2px; }
.mc .odds .odds-label { max-width: 100%; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc .odds .odds-val { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text); letter-spacing: 0; }
.mc .odds .odds-prob { font-size: 11px; line-height: 14px; font-weight: 500; color: var(--muted); }
.mc .odds.is-selected, .mc .odds.is-selected:hover:not(:disabled) { background: var(--b-mint); border-color: var(--b-mint); color: var(--b-on-mint); box-shadow: none; filter: none; }
.mc .odds.is-selected::before { content: none; }
.mc .odds.is-selected .odds-label, .mc .odds.is-selected .odds-val, .mc .odds.is-selected .odds-prob { color: var(--b-on-mint); font-size: inherit; }
.mc .odds.is-selected .odds-label { font-size: 12px; }
.mc .odds.is-selected .odds-val { font-size: 14px; }
.mc .odds:disabled { cursor: not-allowed; background: var(--surface-2); border-color: var(--b-border); box-shadow: none; }
.mc .odds:disabled .odds-val { color: var(--muted); opacity: 1; }
.mc .odds.is-unpriced, .mc .odds.is-unpriced:disabled { background: var(--surface-2); border-color: var(--b-border); box-shadow: none; cursor: help; }
.mc .odds.is-up, .mc .odds.is-down { box-shadow: none; }
.mc .odds.is-up { animation: mc-up 1s ease-out; }
.mc .odds.is-down { animation: mc-down 1s ease-out; }
@keyframes mc-up { 0%, 25% { background: var(--b-ok-soft); } }
@keyframes mc-down { 0%, 25% { background: var(--b-bad-soft); } }
.mc .odds.is-up .odds-val::before, .mc .odds.is-down .odds-val::before { display: inline-block; margin-right: 3px; font-size: 9px; vertical-align: 1px; }
.mc .odds.is-up .odds-val::before { content: "▲"; color: var(--success); }
.mc .odds.is-down .odds-val::before { content: "▼"; color: var(--danger); }
.mc .odds.is-selected.is-up .odds-val::before, .mc .odds.is-selected.is-down .odds-val::before { color: inherit; }
/* row variant (markets with more than three selections) */
.mc .odds.odds-row { flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; text-align: left; min-height: 44px; }
.mc .odds-row .odds-text { display: flex; flex-direction: column; min-width: 0; align-items: flex-start; }
.mc .odds-row .odds-label { font-size: 13px; line-height: 18px; color: var(--text); font-weight: 500; white-space: normal; overflow-wrap: normal; word-break: normal; text-align: left; }
.mc .odds-row .odds-val { flex: none; text-align: right; }

/* ================================================================ markets: grouped accordion */
.mc-house-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--b-border); font-size: 12px; line-height: 18px; color: var(--text-2); }
.mc-house-note .icon { flex: none; margin-top: 2px; color: var(--muted); }
.mc-house-note b { color: var(--text); font-weight: 600; }
.mc-house-note a { color: var(--b-pri-ink); font-weight: 600; }
.mc-groups { display: grid; gap: 8px; }
.mc-group > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 8px; cursor: pointer; list-style: none; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--text); transition: background-color .15s var(--b-ease); }
.mc-group > summary::-webkit-details-marker { display: none; }
.mc-group > summary:hover { background: var(--surface-2); }
.mc-group > summary:focus-visible { outline: 2px solid var(--b-mint); outline-offset: 2px; }
.mc-group-count { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--b-border); font-size: 11px; line-height: 18px; font-weight: 600; color: var(--text-2); text-align: center; }
.mc-group-chev { margin-left: auto; width: 18px; height: 18px; color: var(--muted); transition: transform .18s var(--b-ease); }
.mc-group[open] > summary .mc-group-chev { transform: rotate(180deg); }
.mc-group-body { display: grid; gap: 8px; padding: 4px 0 8px; }
.mc-group-settled > summary { color: var(--text-2); }

.market.mc-mk { background: var(--surface); border: 1px solid var(--b-border); border-radius: 10px; padding: 12px 14px 14px; box-shadow: none; }
.mc-mk .market-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; margin: 0 0 10px; }
.mc-mk .market-name { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; letter-spacing: 0; min-width: 0; }
.mc-mk .scope { height: auto; padding: 0; border-radius: 0; background: none; color: var(--muted); font-size: 12px; line-height: 18px; font-weight: 500; }
.mc-house { margin-left: auto; align-self: center; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--b-border); background: var(--surface-2); color: var(--text-2); font-size: 11px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.mc-house:hover { color: var(--text); border-color: var(--b-border-strong); }
/* Result-desk markets: "Settled from the official result" */
.mc-official { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--accent-soft, rgba(92, 225, 173, .14)); color: var(--accent-text, #5ce1ad); font-size: 11px; font-weight: 600; white-space: nowrap; }
.mc-official .icon { width: 12px; height: 12px; }
.mc-official + .mc-house { margin-left: 0; }
.mc-squad-note { margin-top: 8px; }
.mc .market-reason { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 6px 10px; border-radius: 8px; background: var(--b-warn-soft); color: var(--text); font-size: 12px; line-height: 18px; }
.mc .market-reason .icon { flex: none; color: var(--b-warn); }
.mc .market[data-mstatus="unavailable"] .market-reason { background: var(--surface-2); }
.mc .market.mc-mk[data-mstatus="suspended"], .mc .market.mc-mk[data-mstatus="unavailable"] { background: var(--surface); }
.mc-tiles { display: grid; gap: 8px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.mc-tiles.is-list { grid-template-columns: minmax(0, 1fr); }
@container mc (min-width: 520px) { .mc-tiles.is-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container mc (min-width: 820px) { .mc-tiles.is-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mc .market-rule { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.mc .market-rule summary { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; cursor: pointer; font-weight: 500; color: var(--text-2); list-style: none; }
.mc .market-rule summary::-webkit-details-marker { display: none; }
.mc .market-rule p { margin: 4px 0 0; line-height: 18px; max-width: 68ch; }
.mc-settled-list { list-style: none; margin: 0; padding: 0; display: grid; }
.mc-settled-list li { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 4px; border-top: 1px solid var(--b-border); font-size: 13px; }
.mc-settled-list li:first-child { border-top: 0; }
.mc-settled-list .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mc-settled-list .spacer { flex: 1; }
.mc-settled-list li.is-won { font-weight: 600; }
.sel-result { display: inline-flex; align-items: center; gap: 3px; min-width: 52px; justify-content: flex-end; font-size: 12px; font-weight: 600; }
.sel-won { color: var(--success); }
.sel-lost { color: var(--muted); }
.sel-void { color: var(--b-warn); }
.mc-unpriced { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mc-unpriced li { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--b-border); font-size: 12px; color: var(--text-2); font-weight: 500; }
.mc-news { display: grid; gap: 8px; }

/* ================================================================ cricket overview */
.mc-row3 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@container mc (min-width: 620px) {
  .mc-row3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-row3 .mc-score-card { grid-column: 1 / -1; }
}
@container mc (min-width: 1100px) {
  .mc-row3 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
  .mc-row3 .mc-score-card { grid-column: auto; }
}
.mc-score-card .mc-card-head { padding-top: 8px; padding-bottom: 8px; }
.mc-seg-pane { display: block; }
.mc-js .mc-seg-pane:not(.is-active) { display: none; }
.mc-table-wrap { overflow-x: auto; }
.mc-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 18px; font-variant-numeric: tabular-nums; }
.mc-table th, .mc-table td { padding: 9px 8px; text-align: center; border-bottom: 1px solid var(--b-border); white-space: nowrap; }
.mc-table thead th { padding-top: 8px; padding-bottom: 8px; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); }
.mc-table th:first-child { text-align: left; padding-left: 16px; }
.mc-table th:last-child, .mc-table td:last-child { padding-right: 16px; }
.mc-table tbody th { font-weight: 500; color: var(--text); white-space: normal; min-width: 9em; }
.mc-table tbody tr:last-child > * { border-bottom: 0; }
.mc-table .strong { font-weight: 600; color: var(--text); }
.mc-table td { color: var(--text-2); }
.mc-table .nm { display: block; }
.mc-table .dis { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.mc-table tr.is-out th, .mc-table tr.is-out td { color: var(--muted); }
.mc-table tr.is-striker > * { background: color-mix(in srgb, var(--b-mint-soft) 70%, var(--surface)); }
.mc-table tr.is-striker > :first-child { box-shadow: inset 3px 0 0 var(--b-mint); }
.mc-table .striker-mark { color: var(--b-acc-ink); font-weight: 700; margin-left: 2px; }
.mc-other-inns { margin: 0; padding: 10px 16px; border-top: 1px solid var(--b-border); font-size: 13px; color: var(--text-2); }
.mc-other-inns strong { color: var(--text); font-weight: 600; }

.mc-balls { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 4px; }
.mc-balls li { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.mc-balls .ov { font-size: 11px; line-height: 14px; color: var(--muted); }
.mc-balls .ball { width: 34px; height: 34px; max-width: 100%; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; background: var(--odds-bg); color: var(--text); }
.mc-balls li:not(.in-over) { opacity: .55; }
.mc-balls .k-dot .ball { background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--b-border); }
.mc-balls .k-four .ball, .mc-balls .k-six .ball { background: var(--b-mint-soft); color: var(--b-acc-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--b-mint) 45%, transparent); }
.mc-balls .k-wicket .ball { background: var(--danger); color: var(--b-on-mint); }
.mc-balls .k-wide .ball, .mc-balls .k-noball .ball, .mc-balls .k-no_ball .ball, .mc-balls .k-legbye .ball, .mc-balls .k-bye .ball { background: transparent; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--b-border-strong); font-size: 11px; }
.mc-legend { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.mc-legend li { display: inline-flex; align-items: center; gap: 6px; }
.mc-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.mc-legend .k-four { background: var(--b-mint-soft); box-shadow: inset 0 0 0 1px var(--b-mint); }
.mc-legend .k-wicket { background: var(--danger); }
.mc-legend .k-wide { box-shadow: inset 0 0 0 1px var(--b-border-strong); }
.mc-over-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--b-border); }
.mc-over-figs div { display: grid; gap: 2px; }
.mc-over-figs dt { font-size: 12px; color: var(--muted); }
.mc-over-figs dd { margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; }

.mc-ms-list { display: grid; gap: 6px; }
.mc .odds.mc-ms-row { flex-direction: row; justify-content: flex-start; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 8px 8px 10px; text-align: left; border-radius: 8px; background: var(--surface); border: 1px solid var(--b-border); color: var(--text); }
.mc .odds.mc-ms-row:hover:not(:disabled) { background: var(--surface-2); border-color: var(--b-border-strong); }
.mc-check { flex: none; width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--b-border-strong); color: transparent; background: var(--surface); }
.mc-check .icon { width: 12px; height: 12px; stroke-width: 3; }
.mc-ms-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mc-ms-label { font-size: 13px; line-height: 18px; font-weight: 500; overflow-wrap: normal; }
.mc-ms-scope { font-size: 12px; line-height: 16px; color: var(--muted); }
.mc-ms-odds { flex: none; min-width: 56px; height: 32px; padding: 0 8px; display: grid; place-items: center; border-radius: 6px; background: var(--odds-bg); font-size: 14px; font-weight: 600; color: var(--text); }
.mc .odds.mc-ms-row.is-selected { background: var(--b-mint-soft); border-color: var(--b-mint); color: var(--text); }
.mc .odds.mc-ms-row.is-selected .mc-check { background: var(--b-mint); color: var(--b-on-mint); box-shadow: none; }
.mc .odds.mc-ms-row.is-selected .mc-ms-odds { background: var(--b-mint); color: var(--b-on-mint); }
.mc .odds.mc-ms-row.is-selected .mc-ms-label { color: var(--text); }
.mc .odds.mc-ms-row.is-selected .mc-ms-scope { color: var(--text-2); }
.mc .odds.mc-ms-row:disabled .mc-ms-odds { color: var(--muted); background: var(--surface-2); }
.mc-ms-hint { margin: 10px 0 0; font-size: 12px; line-height: 18px; color: var(--muted); }

.mc-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.mc-stat { display: grid; gap: 2px; padding: 12px 16px; border-left: 1px solid var(--b-border); min-width: 0; }
.mc-stat:first-child { border-left: 0; }
.mc-stat-v { font-size: 20px; line-height: 26px; font-weight: 600; color: var(--text); }
.mc-stat-l { font-size: 12px; line-height: 16px; color: var(--muted); }

/* ================================================================ other sports detail */
.mc-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 0; }
.mc-info > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--b-border); }
.mc-info dt { font-size: 12px; color: var(--muted); }
.mc-info dd { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--text); }
.mc-note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: 13px; line-height: 20px; color: var(--muted); }
.mc-note .icon { flex: none; margin-top: 3px; }
.mc-ls-team { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: min(240px, 46vw); vertical-align: middle; }
.mc-ls-team .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mc-ls-team .crest { width: 24px; height: 24px; border-radius: 50%; }
.mc-linescore td.is-current { color: var(--b-acc-ink); font-weight: 600; }
.mc-linescore td.total { font-weight: 700; color: var(--text); background: var(--surface-2); }
.mc-linescore td.is-won { font-weight: 600; color: var(--text); }
.mc-linescore td.is-lost { color: var(--muted); }
.serve-dot { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--b-mint); }
.bb-state { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.bb-state .outs { display: inline-flex; gap: 5px; align-items: center; font-weight: 500; color: var(--text-2); }
.bb-state .outs i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--b-border-strong); }
.bb-state .outs i.on { background: var(--b-mint); box-shadow: none; }
.mc-events { list-style: none; margin: 0; padding: 4px 16px 8px; display: grid; }
.mc-events li { display: grid; grid-template-columns: 3em 24px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--b-border); font-size: 13px; }
.mc-events li:last-child { border-bottom: 0; }
.mc-events .min { font-weight: 600; color: var(--text-2); text-align: right; }
.mc-events .ev-ico { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); color: var(--text-2); }
.mc-events .rev { font-size: 11px; font-weight: 600; color: var(--b-warn); }
.ev-card { display: inline-block; width: 9px; height: 12px; border-radius: 2px; background: #f2c230; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.ev-card.red { background: var(--danger); }

.mc-stat-bars { display: grid; gap: 14px; }
.mc-statbar { display: grid; grid-template-columns: 4ch minmax(0, 1fr) 4ch; align-items: center; row-gap: 6px; font-variant-numeric: tabular-nums; }
.mc-statbar .label { text-align: center; font-size: 13px; color: var(--text-2); }
.mc-statbar .v { font-size: 15px; font-weight: 600; }
.mc-statbar .v.a { text-align: right; }
.mc-statbar .bar { grid-column: 1 / -1; display: flex; gap: 3px; height: 6px; }
.mc-statbar .bar .h { background: var(--b-mint); border-radius: 3px; min-width: 3px; }
.mc-statbar .bar .a { background: var(--b-border-strong); border-radius: 3px; flex: 1; min-width: 3px; }
.mc-legend-teams { margin-left: auto; display: inline-flex; gap: 12px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.mc-legend-teams span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: 0; }
.mc-legend-teams .h::before { background: var(--b-mint); }
.mc-legend-teams .a::before { background: var(--b-border-strong); }
.mc-lineups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.mc-lineups h3 { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0 0 8px; font-size: 14px; line-height: 20px; font-weight: 600; }
.mc-lineups h3 .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-lineups ol { margin: 0; padding-left: 1.6em; display: grid; gap: 2px; font-size: 13px; line-height: 20px; color: var(--text-2); }

/* ================================================================ timeline */
.mc-tl { list-style: none; margin: 0; padding: 6px 16px 10px; }
.mc-tl-item { position: relative; display: grid; grid-template-columns: 52px 28px minmax(0, 1fr); column-gap: 12px; padding: 8px 0; }
.mc-tl-item::before { content: ""; position: absolute; left: 77px; top: 0; bottom: 0; width: 1px; background: var(--b-border); }
.mc-tl-item:first-child::before { top: 22px; }
.mc-tl-item:last-child::before { bottom: calc(100% - 22px); }
.mc-tl-item:only-child::before { display: none; }
.mc-tl-mark { padding-top: 5px; text-align: right; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.mc-tl-mark small { font-size: 11px; font-weight: 500; color: var(--muted); }
.mc-tl-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--b-border); color: var(--text-2); }
.mc-tl-dot .icon { width: 14px; height: 14px; }
.mc-tl-dot b { font-size: 11px; font-weight: 700; }
.mc-tl-item.k-goal .mc-tl-dot, .mc-tl-item.k-try .mc-tl-dot, .mc-tl-item.k-home_run .mc-tl-dot { background: var(--b-mint-soft); color: var(--b-pri-ink); box-shadow: none; }
.mc-tl-item.k-own_goal .mc-tl-dot { background: var(--b-bad-soft); color: var(--danger); box-shadow: none; }
.mc-tl-item.k-wicket .mc-tl-dot { background: var(--danger); color: var(--b-on-mint); box-shadow: none; }
.mc-tl-item.k-six .mc-tl-dot, .mc-tl-item.k-milestone .mc-tl-dot { background: var(--b-mint-soft); color: var(--b-acc-ink); box-shadow: none; }
.mc-tl-item.k-period_end .mc-tl-dot { background: var(--surface-2); color: var(--muted); }
.mc-tl-body { min-width: 0; padding-top: 4px; }
.mc-tl-body p { margin: 0; }
.mc-tl-title { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text); }
.mc-tl-item.k-period_end .mc-tl-title { font-weight: 500; color: var(--text-2); }
.mc-tl-score { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--b-border); font-size: 12px; line-height: 18px; font-weight: 600; }
.mc-tl-team { margin-left: 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
.mc-tl-rev { margin-left: 4px; font-size: 11px; font-weight: 600; color: var(--b-warn); }
.mc-tl-text { margin-top: 1px !important; font-size: 13px; line-height: 18px; color: var(--text-2); overflow-wrap: normal; }
.mc-tl-peek .mc-tl { padding-bottom: 6px; }

/* ================================================================ replay controls (demo) */
.mc-replay { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--b-border-strong); background: var(--surface); }
.mc-replay-label { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; font-size: 13px; }
.mc-replay-label > .icon { width: 18px; height: 18px; color: var(--b-warn); }
.mc-replay-label span { display: grid; line-height: 18px; }
.mc-replay-label strong { font-weight: 600; }
.mc-replay-label small { color: var(--muted); font-size: 12px; }
.mc-replay-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.mc-replay-btns .btn { min-height: 36px; border-radius: 8px; }

/* ================================================================ page head (My Bets, ticket) */
.bt-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin: 0 0 16px; }
.bt-head > div:first-child { min-width: 0; flex: 1 1 280px; }
.bt-head h1 { margin: 0; font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: 0; }
.bt-lede { margin: 4px 0 0; font-size: 14px; line-height: 22px; color: var(--text-2); max-width: 68ch; }
.bt-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bt-head-actions .btn { min-height: 40px; border-radius: 8px; }

/* status filter (segmented) */
.bt-status { display: flex; gap: 2px; padding: 3px; margin: 0 0 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--b-border); overflow-x: auto; scrollbar-width: none; width: fit-content; max-width: 100%; }
.bt-status::-webkit-scrollbar { display: none; }
.bt-status-tab { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 6px; color: var(--text-2); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .15s var(--b-ease), color .15s var(--b-ease); }
.bt-status-tab:hover { color: var(--text); }
.bt-status-tab.is-active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px transparent, 0 0 0 1px var(--b-border); }
.bt-status-tab .count { min-width: 20px; height: 18px; padding: 0 5px; border-radius: 999px; background: color-mix(in srgb, var(--b-border) 70%, transparent); font-size: 11px; line-height: 18px; text-align: center; color: var(--text-2); }
.bt-status-tab.is-active .count { background: var(--b-mint-soft); color: var(--b-pri-ink); }

.bt-filters { display: flex; align-items: flex-end; gap: 10px 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--b-border); border-radius: 10px; }
.bt-field { display: grid; gap: 4px; min-width: 0; flex: 1 1 150px; }
.bt-field label { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--text-2); }
.bt-field select, .bt-field input { width: 100%; height: 40px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--b-border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; color-scheme: light dark; }
.bt-field select:focus, .bt-field input:focus { outline: none; border-color: var(--b-mint); box-shadow: 0 0 0 3px color-mix(in srgb, var(--b-mint) 25%, transparent); }
.bt-filter-btns { display: flex; gap: 8px; flex: 0 0 auto; }
.bt-filter-btns .btn { min-height: 40px; border-radius: 8px; }

.bt-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin: 0 0 16px; background: var(--surface); border: 1px solid var(--b-border); border-radius: 10px; }
.bt-summary > div { display: grid; gap: 2px; padding: 12px 16px; border-left: 1px solid var(--b-border); min-width: 0; }
.bt-summary > div:first-child { border-left: 0; }
.bt-summary .k { font-size: 12px; line-height: 18px; color: var(--muted); }
.bt-summary .v { font-size: 20px; line-height: 26px; font-weight: 600; color: var(--text); white-space: nowrap; }
.bt-summary small { font-size: 12px; font-weight: 500; color: var(--muted); }
.bt-summary .is-money .v { color: var(--b-acc-ink); }
.bt-more-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* ================================================================ ticket rows (My Bets + match page) */
.bt-list { container: bt / inline-size; overflow: hidden; padding: 0; }
.bt-list.is-empty { padding: 20px 16px; }
.bt-cols { display: none; }
.ticket.bt-row {
  position: relative; display: grid; gap: 6px 12px; min-width: 0; margin: 0; padding: 14px 16px;
  background: transparent; border: 0; border-top: 1px solid var(--b-border); border-radius: 0; box-shadow: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  grid-template-areas: "match match st" "pick pick pick" "odds stake ret" "extra extra extra";
  transition: background-color .15s var(--b-ease);
}
.ticket.bt-row::before { content: none; }
.bt-list > .ticket.bt-row:first-child, .bt-cols + .ticket.bt-row { border-top: 0; }
.ticket.bt-row:hover { background: var(--surface-2); }
.bt-match { grid-area: match; display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); text-decoration: none; }
.bt-match:hover .bt-vs { color: var(--b-pri-ink); }
.bt-crests { display: inline-flex; flex: none; }
.bt-crests .crest { border-radius: 50%; }
.bt-crests .crest + .crest { margin-left: -6px; box-shadow: 0 0 0 2px var(--surface), inset 0 0 0 1px var(--b-border); }
.bt-teams { display: grid; min-width: 0; }
.bt-vs { font-size: 14px; line-height: 20px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .15s var(--b-ease); }
.bt-v { color: var(--muted); font-weight: 400; }
.bt-meta { font-size: 12px; line-height: 18px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-pick { grid-area: pick; display: grid; min-width: 0; }
.bt-sel { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-sel:hover { color: var(--b-pri-ink); text-decoration: underline; }
.bt-mk { font-size: 12px; line-height: 18px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-fig { display: grid; gap: 0; min-width: 0; }
.bt-odds { grid-area: odds; }
.bt-stake { grid-area: stake; }
.bt-ret { grid-area: ret; text-align: right; }
.bt-fig .k { font-size: 12px; line-height: 16px; color: var(--muted); }
.bt-fig .v { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text); white-space: nowrap; }
.bt-fig small { font-size: 12px; font-weight: 500; color: var(--muted); }
.bt-ret .v { color: var(--b-acc-ink); }
.ticket.bt-row[data-status="lost"] .bt-ret .v, .ticket.bt-row[data-status="void"] .bt-ret .v { color: var(--text-2); }
.ticket.bt-row[data-status="won"] .bt-ret .v { color: var(--success); }
.bt-st { grid-area: st; justify-self: end; align-self: start; }
.bt-extra { grid-area: extra; display: grid; gap: 6px; min-width: 0; }
.bt-extra:empty { display: none; }
.bt-progress { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.bt-progress[hidden] { display: none; }
.bt-prog-k { font-size: 12px; color: var(--muted); }
.bt-prog-v { font-size: 13px; font-weight: 600; color: var(--text); }
.bt-bar.progress { position: relative; height: 6px; border-radius: 3px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--b-border); overflow: hidden; }
.bt-bar.progress > span { position: absolute; inset: 0 auto 0 0; width: var(--pct, 0%); border-radius: 3px; background: var(--b-mint); transition: width .4s var(--b-ease); }
.bt-outcome { margin: 0; font-size: 13px; line-height: 18px; color: var(--text-2); }
.bt-outcome.is-won { color: var(--text); }
.bt-foot { margin: 0; display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; font-size: 12px; line-height: 18px; color: var(--muted); }
.bt-ref { color: var(--text-2); font-weight: 500; text-decoration: none; }
.bt-ref:hover { color: var(--b-pri-ink); text-decoration: underline; }
.bt-potential, .bt-net { margin-left: auto; }
.bt-potential b { color: var(--text-2); font-weight: 600; }
.bt-net { font-weight: 600; }
.bt-foot .badge { height: 20px; font-size: 11px; }
/* status badges inside rows (calm, per §4) */
.bt-st .badge, .tk-head .badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .01em; text-transform: none; box-shadow: none; white-space: nowrap; }
.bt-st .badge .icon, .tk-head .badge .icon { width: 12px; height: 12px; }
.bt-st .badge-info, .tk-head .badge-info { background: var(--b-mint-soft); color: var(--b-pri-ink); }
.bt-st .badge-success, .tk-head .badge-success { background: var(--b-ok-soft); color: var(--success); }
.bt-st .badge-muted, .tk-head .badge-muted { background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--b-border); }
.bt-st .badge-warn, .tk-head .badge-warn { background: var(--b-warn-soft); color: var(--b-warn); }
.ticket[data-status="cashout"] .bt-st .badge { background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--b-border); }

/* medium list: figures sit beside the selection */
@container bt (min-width: 560px) and (max-width: 759px) {
  .ticket.bt-row { grid-template-columns: minmax(0, 1fr) 64px 84px 112px; grid-template-areas: "match match match st" "pick odds stake ret" "extra extra extra extra"; row-gap: 8px; }
  .bt-fig { text-align: right; }
  .bt-extra { padding-left: 0; }
}
/* wide list: a table-like grid with a column header */
@container bt (min-width: 760px) {
  .bt-cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.25fr) 64px 84px 112px 104px; gap: 12px; padding: 8px 16px; background: var(--surface-2); border-bottom: 1px solid var(--b-border); font-size: 11px; line-height: 16px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
  .bt-cols span:nth-child(n+3) { text-align: right; }
  .ticket.bt-row { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.25fr) 64px 84px 112px 104px; grid-template-areas: "match pick odds stake ret st" "extra extra extra extra extra extra"; align-items: center; padding: 12px 16px; }
  .bt-fig { text-align: right; }
  .bt-fig .k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bt-st { align-self: center; }
  .bt-extra { padding-left: 50px; }
}

/* cash out (lives in the extra area) */
.bt-extra .mc-cashout { margin-top: 2px; }

/* ================================================================ ticket page */
.tk-page { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; container: tp / inline-size; }
@media (min-width: 1180px) { .tk-page { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.tk-side { display: grid; gap: 16px; min-width: 0; }
.tk-receipt.ticket { position: relative; display: block; padding: 0; overflow: hidden; }
.tk-receipt.ticket::before { content: none; }
.tk-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--b-border); }
.tk-head .bt-crests .crest { width: 40px; height: 40px; }
.tk-teams { min-width: 0; flex: 1; }
.tk-teams h2 { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; overflow-wrap: normal; }
.tk-teams h2 a { color: var(--text); text-decoration: none; }
.tk-teams h2 a:hover { color: var(--b-pri-ink); text-decoration: underline; }
.tk-teams p { margin: 0; font-size: 12px; line-height: 18px; color: var(--muted); }
.tk-head .badge { flex: none; }
.tk-pick { display: flex; align-items: center; gap: 12px; padding: 14px 16px 6px; }
.tk-pick > div { display: grid; gap: 2px; min-width: 0; flex: 1; }
.tk-k { font-size: 12px; line-height: 18px; color: var(--muted); }
.tk-sel { font-size: 18px; line-height: 26px; font-weight: 600; overflow-wrap: normal; }
.tk-odds { flex: none; min-width: 64px; height: 40px; padding: 0 10px; display: grid; place-items: center; border-radius: 8px; background: var(--odds-bg); font-size: 16px; font-weight: 600; }
.tk-pad { padding: 8px 16px 0; }
.tk-pad:empty { display: none; }
.tk-rows { margin: 8px 0 0; padding: 0 16px; display: grid; }
.tk-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--b-border); font-size: 13px; line-height: 20px; }
.tk-rows dt { color: var(--muted); flex: none; }
.tk-rows dd { margin: 0; text-align: right; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.tk-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 16px 0; padding: 12px 14px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--b-border); }
.tk-total > span { display: grid; font-size: 14px; font-weight: 600; }
.tk-total small { font-size: 12px; font-weight: 400; color: var(--muted); }
.tk-total strong { font-size: 24px; line-height: 30px; font-weight: 700; color: var(--b-acc-ink); white-space: nowrap; }
.tk-total strong small { font-size: 13px; font-weight: 500; }
.tk-receipt[data-status="won"] .tk-total strong { color: var(--success); }
.tk-receipt[data-status="lost"] .tk-total strong, .tk-receipt[data-status="void"] .tk-total strong { color: var(--text-2); }
.tk-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding: 12px 16px; border-top: 1px solid var(--b-border); font-size: 12px; color: var(--muted); }
.tk-foot .btn { margin-left: auto; min-height: 36px; border-radius: 8px; }
.tk-trail { list-style: none; margin: 0; padding: 0; display: grid; }
.tk-trail li { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; }
.tk-trail li:last-child { padding-bottom: 0; }
.tk-trail li:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 18px; bottom: 0; width: 1px; background: var(--b-border); }
.tk-trail-dot { width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 3px var(--b-mint); }
.tk-trail li.is-won .tk-trail-dot { box-shadow: inset 0 0 0 3px var(--success); }
.tk-trail li.is-void .tk-trail-dot { box-shadow: inset 0 0 0 3px var(--b-warn); }
.tk-trail li.is-lost .tk-trail-dot { box-shadow: inset 0 0 0 3px var(--b-border-strong); }
.tk-trail strong { font-size: 14px; line-height: 20px; font-weight: 600; }
.tk-trail p { margin: 2px 0; font-size: 13px; line-height: 20px; color: var(--text-2); }
.tk-trail-src { padding: 6px 10px; border-radius: 8px; background: var(--surface-2); font-size: 12px !important; }
.tk-trail-when { font-size: 12px; color: var(--muted); }
.tk-dispute { margin-top: 10px; }
.tk-dispute > summary { list-style: none; cursor: pointer; min-height: 44px; border-radius: 8px; }
.tk-dispute > summary::-webkit-details-marker { display: none; }
.tk-dispute textarea { width: 100%; }
.tk-dispute-past { display: flex; gap: 6px; align-items: center; margin: 10px 0 0; font-size: 13px; color: var(--muted); }

/* ================================================================ narrow screens */
@container mc (max-width: 620px) {
  .mc-hero { padding: 12px 14px 16px; }
  .mc-hero-top { margin-bottom: 10px; }
  .mc-cr-grid { grid-template-columns: minmax(0, 1fr); }
  .mc-cr-score b { font-size: 34px; }
  .mc-hero-cricket .mc-hero-comp { margin-left: 0; flex-basis: 100%; }
  .mc-vs { gap: 8px 10px; }
  .mc-side .crest { width: 48px; height: 48px; }
  .mc-side .crest.has-logo { padding: 6px; }
  /* a single long word ("Internacional") was cut off mid-word with no ellipsis: give the sides more room
     by letting the kick-off box wrap, and hyphenate a word that still does not fit */
  .mc-team-name { font-size: 14px; line-height: 20px; -webkit-hyphens: auto; hyphens: auto; }
  .mc-box { font-size: 34px; padding: 2px 4px; }
  .mc-boxes { gap: 8px; }
  .mc-dash { font-size: 22px; }
  .mc-kickoff { font-size: 13px; padding: 6px 8px; white-space: normal; max-width: 7.5em; }
  .mc-tabs { padding: 0 4px; }
  .mc-tab { padding: 0 10px; }
  .mc-tab::after { left: 10px; right: 10px; }
  .mc-quick-row.market { grid-template-columns: minmax(0, 1fr); padding: 12px 14px; }
  .mc-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-stat { border-left: 0; border-top: 1px solid var(--b-border); }
  .mc-stat:nth-child(-n+2) { border-top: 0; }
  .mc-stat:nth-child(even) { border-left: 1px solid var(--b-border); }
  .mc-table th, .mc-table td { padding: 8px 6px; }
  .mc-table th:first-child { padding-left: 14px; }
  .mc-tl { padding: 4px 12px 8px; }
  .mc-tl-item { grid-template-columns: 44px 28px minmax(0, 1fr); column-gap: 10px; }
  .mc-tl-item::before { left: 67px; }
}
@media (max-width: 767px) {
  .bt-head h1 { font-size: 22px; line-height: 30px; }
  .bt-head-actions { width: 100%; }
  .bt-head-actions .btn { flex: 1 1 0; min-height: 44px; justify-content: center; }
  .bt-status { width: auto; }
  .bt-status-tab { min-height: 38px; }
  .bt-field { flex: 1 1 calc(50% - 6px); }
  .bt-field:first-child { flex-basis: 100%; }
  .bt-field select, .bt-field input { height: 44px; }
  .bt-filter-btns { width: 100%; }
  .bt-filter-btns .btn { flex: 1 1 0; min-height: 44px; justify-content: center; }
  .bt-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bt-summary > div:nth-child(odd) { border-left: 0; }
  .bt-summary > div:nth-child(n+3) { border-top: 1px solid var(--b-border); }
  .mc-actions .fav-btn, .mc-actions .pin-btn { width: 44px; height: 44px; }
  .mc-replay-btns .btn { min-height: 44px; }
  .tk-head { flex-wrap: wrap; }
  .tk-sel { font-size: 16px; line-height: 24px; }
  .tk-total strong { font-size: 20px; }
}

/* ==========================================================================
   v4 "mint sportsbook" (DESIGN_V4) — match centre, tickets. Navy cards, 1px
   borders, mint for selection / primary, red only for live and errors.
   ========================================================================== */
.mc { --b-band: var(--surface-2, #1b232d); --b-odds-bg: var(--odds-bg, #232c38); --b-odds-bd: var(--odds-border, #2d3846); --b-odds-hv: var(--odds-hover, #2b3644); --b-odds-tx: var(--odds-text, #ffffff); }
.mc-card, .market.mc-mk, .bt-summary, .bt-filters, .mc-replay { border-radius: 12px; }
.mc .sec-ico, .mc .sec-ico.is-yellow, .mc .sec-ico.is-warm { background: var(--b-mint-soft); color: var(--b-mint-ink); }

/* ---- featured hero: photo + dark overlay, crests, big score, live dot ---- */
.mc .mc-hero { overflow: hidden; isolation: isolate; padding: 16px 24px 18px; border-radius: 12px; background: var(--surface, #151b23); background-image: none; border: 1px solid var(--b-border); }
.mc .mc-hero::before { content: none; }
.mc .mc-hero:has(+ .mc-tabs) { border-radius: 12px; border-bottom-color: var(--b-border); }
.mc-hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.mc .mc-hero.has-photo { border-color: var(--b-border); color: #fff; }
.mc .mc-hero.has-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9, 13, 19, .72) 0%, rgba(9, 13, 19, .80) 55%, rgba(9, 13, 19, .90) 100%); }
.mc-hero-team .mc-hero-top { justify-content: center; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 10px; }
.mc-hero-team .mc-hero-comp { order: 1; font-size: 15px; line-height: 22px; font-weight: 500; color: var(--text, #eef2f6); }
.mc-hero-team .mc-live-pill { order: 2; }
.mc-hero-team .mc-hero-comp .comp-badge { display: none; }
.mc .mc-live-pill { height: auto; padding: 0; gap: 6px; border: 0; background: none; font-size: 15px; line-height: 22px; font-weight: 500; letter-spacing: 0; color: var(--text-2, #c3ccd6); }
.mc-hero-team .mc-live-pill::before { content: "·"; color: var(--muted, #8e9aa8); margin-right: 2px; }
.mc .mc-live-pill .dot { width: 8px; height: 8px; background: var(--b-live); }
.mc [data-status="live"] .mc-live-pill, .mc [data-status="live"].mc-hero .mc-live-pill { background: none; color: var(--text, #eef2f6); }
.mc [data-status="live"] .mc-live-pill .dot { display: block; }
.mc [data-status="interval"] .mc-live-pill, .mc [data-status="delayed"] .mc-live-pill { background: none; color: var(--warning, #f5b84b); }
.mc .mc-live-pill .mc-min { border-left: 0; margin-left: 0; padding-left: 0; font-weight: 600; color: var(--text, #eef2f6); }
/* the red dot sits before the competition name, as in the reference */
.mc-hero-team[data-status="live"] .mc-hero-top::before, .mc-hero-team[data-status="interval"] .mc-hero-top::before { content: ""; order: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--b-live); }
.mc-hero-team[data-status="interval"] .mc-hero-top::before { background: var(--warning, #f5b84b); }
.mc-hero-team .mc-live-pill .dot { display: none !important; }
.mc-hero.has-photo .mc-hero-comp, .mc-hero.has-photo .mc-team-name, .mc-hero.has-photo .mc-box, .mc-hero.has-photo .mc-cr-name, .mc-hero.has-photo .mc-cr-score b, .mc-hero.has-photo .mc-hero-title { color: #fff; }
.mc-hero.has-photo .mc-live-pill, .mc-hero.has-photo .mc-sub, .mc-hero.has-photo .mc-result-sm, .mc-hero.has-photo .mc-cr-foot, .mc-hero.has-photo .mc-cr-score small { color: rgba(255, 255, 255, .78); }
.mc-hero.has-photo .mc-live-pill .mc-min, .mc-hero.has-photo .mc-cr-foot b { color: #fff; }

.mc-vs { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px 28px; }
.mc-side { flex-direction: row; justify-content: flex-end; align-items: center; gap: 16px; text-align: right; }
.mc-away { flex-direction: row-reverse; text-align: left; }
.mc-side-copy { display: grid; min-width: 0; }
.mc-side .crest { flex: none; width: 72px; height: 72px; box-shadow: none; }
.mc-side .crest.has-logo { padding: 0; background: transparent; box-shadow: none; }
.mc-side .crest.has-logo img { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.mc-team-name { font-size: 26px; line-height: 32px; font-weight: 700; }
.mc-hero-team:has(.is-winner) .mc-side:not(.is-winner) .mc-team-name { font-weight: 600; }
.mc-sub { min-height: 0; }
.mc-box { font-size: 44px; line-height: 52px; font-weight: 700; padding: 0 4px; }
.mc-dash { font-size: 40px; font-weight: 700; color: inherit; }
.mc-hero.has-photo .mc-dash { color: #fff; }
.mc-boxes { gap: 10px; }
.mc .mc-kickoff { background: rgba(14, 19, 26, .55); border-color: var(--b-border-strong); color: var(--text, #eef2f6); font-size: 16px; padding: 10px 14px; }
.mc-hero.has-photo .mc-kickoff { background: rgba(9, 13, 19, .6); border-color: rgba(255, 255, 255, .18); color: #fff; }
.mc-chips { margin-top: 12px; }
.mc-chips li { background: rgba(14, 19, 26, .5); border-color: var(--b-border-strong); }
.mc-hero.has-photo .mc-chips li { background: rgba(9, 13, 19, .55); border-color: rgba(255, 255, 255, .16); color: #fff; }
.mc-hero.has-photo .mc-chips .l { color: rgba(255, 255, 255, .7); }
.mc-chips li.is-current { border-color: var(--b-mint); color: var(--b-mint-ink); }

/* hero odds row: "Match result  [1  1.42] [X  4.20] [2  8.50]" */
.mc-hero-odds.market { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 16px; margin: 16px 0 0; padding: 0; border: 0; background: none; box-shadow: none; }
.mc-hero-odds-l { font-size: 15px; font-weight: 600; color: var(--text, #eef2f6); }
.mc-hero.has-photo .mc-hero-odds-l { color: #fff; }
.mc-hero-odds-btns { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 122px)); gap: 20px; }
.mc .mc-hero-odds .odds { flex-direction: row; justify-content: space-between; align-items: center; gap: 10px; min-width: 0; min-height: 44px; padding: 0 16px; border: 1px solid var(--b-odds-bd); border-radius: 8px; background: var(--b-odds-bg); }
.mc-hero.has-photo .mc-hero-odds .odds:not(.is-selected) { background: rgba(28, 36, 46, .92); border-color: rgba(255, 255, 255, .14); }
.mc .mc-hero-odds .odds .odds-label { font-size: 15px; font-weight: 500; color: var(--text-2, #c3ccd6); }
.mc-hero.has-photo .mc-hero-odds .odds:not(.is-selected) .odds-label { color: rgba(255, 255, 255, .82); }
.mc .mc-hero-odds .odds .odds-name, .mc .mc-hero-odds .odds .odds-prob { display: none; }
.mc .mc-hero-odds .odds .odds-val { font-size: 17px; font-weight: 700; }
.mc-hero.has-photo .mc-hero-odds .odds:not(.is-selected) .odds-val { color: #fff; }
.mc .mc-hero-odds .odds.is-selected .odds-label { font-size: 15px; }
.mc .mc-hero-odds .odds.is-selected .odds-val { font-size: 17px; }
.mc-hero-odds .market-reason { flex-basis: 100%; }

/* cricket hero */
.mc-hero-cricket .mc-hero-top { gap: 6px 12px; }
.mc-hero-cricket .mc-live-pill { gap: 6px; }
.mc-hero-cricket[data-status="live"] .mc-live-pill { color: var(--text, #eef2f6); font-weight: 600; }
.mc-hero-cricket .mc-hero-title { font-size: 18px; line-height: 26px; font-weight: 700; }
.mc-hero-cricket .mc-hero-comp { font-size: 14px; color: var(--text-2, #c3ccd6); }
.mc-cr-line { border-bottom-color: var(--b-border); }
.mc-hero.has-photo .mc-cr-line { border-bottom-color: rgba(255, 255, 255, .14); }
.mc-cr-tag { color: var(--b-mint-ink); font-weight: 600; }
.mc-cr-score b { font-size: 44px; }
.mc-cr-foot .icon { color: var(--b-mint-ink); }
.mc-batter { border-radius: 12px; background: var(--b-band); border-color: var(--b-border-strong); }
.mc-hero.has-photo .mc-batter { background: rgba(14, 19, 26, .72); border-color: rgba(255, 255, 255, .14); }
.mc-hero.has-photo .mc-batter-name, .mc-hero.has-photo .mc-batter-runs b, .mc-hero.has-photo .mc-batter-meta b { color: #fff; }
.mc-hero.has-photo .mc-batter-runs span, .mc-hero.has-photo .mc-batter-meta { color: rgba(255, 255, 255, .72); }
.mc-batter-k { color: var(--b-mint-ink); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
.mc-cutout { border-color: var(--b-mint); background: var(--surface-2, #1b232d); }

/* ---- tabs: underline, mint 3px ---- */
.mc .mc-tabs { margin-top: -4px; padding: 0 4px; gap: 8px; background: transparent; border: 0; border-bottom: 1px solid var(--b-border); border-radius: 0; }
.mc .mc-tab { min-height: 48px; padding: 0 10px; font-size: 15px; font-weight: 500; color: var(--text-2, #c3ccd6); }
.mc .mc-tab.is-active { color: var(--b-mint-ink); font-weight: 600; }
.mc .mc-tab::after { left: 6px; right: 6px; height: 3px; border-radius: 3px 3px 0 0; background: var(--b-mint); }
.mc-tab-count { background: var(--surface-3, #222b36); border-color: transparent; }

/* ---- odds buttons (all panes): slate boxes, white bold numbers, mint when picked ---- */
.mc .odds { min-height: 48px; border: 1px solid var(--b-odds-bd); background: var(--b-odds-bg); color: var(--b-odds-tx); border-radius: 8px; }
.mc .odds:hover:not(:disabled) { background: var(--b-odds-hv); border-color: var(--b-border-strong); }
.mc .odds .odds-val { font-size: 15px; font-weight: 700; color: var(--b-odds-tx); }
.mc .odds .odds-label { color: var(--text-2, #c3ccd6); }
.mc .odds.is-selected, .mc .odds.is-selected:hover:not(:disabled) { background: var(--b-mint); border-color: var(--b-mint); color: var(--b-on-mint); }
.mc .odds.is-selected .odds-label, .mc .odds.is-selected .odds-val, .mc .odds.is-selected .odds-prob { color: var(--b-on-mint); }
.mc .odds .odds-check { display: none; }
.mc .odds.is-selected .odds-val::after { content: "✓"; display: inline-block; margin-left: 6px; font-weight: 700; -webkit-mask: none; mask: none; background: none; width: auto; height: auto; vertical-align: 0; }
.mc .odds:disabled { background: var(--surface-2, #1b232d); border-color: var(--b-border); }
.mc .odds.odds-row .odds-label { color: var(--text, #eef2f6); }
.mc .odds.odds-row.is-selected .odds-label { color: var(--b-on-mint); }

/* ---- quick picks ---- */
.mc-quick .mc-card-head { background: var(--b-band); border-radius: 12px 12px 0 0; min-height: 48px; }
.mc-quick-row.market { padding: 12px 16px; }
.mc-quick-mk { font-size: 15px; }

/* ---- market filter chips + search (outlined, active = mint fill) ---- */
.mc .mk-chips { gap: 10px; }
.mc .mk-chips .chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--b-border-strong); background: transparent; color: var(--text, #eef2f6); font-size: 14px; font-weight: 500; box-shadow: none; background-image: none; }
.mc .mk-chips .chip:hover { border-color: var(--b-mint); }
.mc .mk-chips .chip[aria-pressed="true"] { background: var(--b-mint); background-image: none; border-color: var(--b-mint); color: var(--b-on-mint); font-weight: 600; }
.mc .mk-search { border-radius: 999px; background: var(--surface-2, #1b232d); border-color: var(--b-border-strong); }
.mc .mk-search:focus-within { border-color: var(--b-mint); box-shadow: 0 0 0 3px var(--b-mint-soft); }

/* ---- market groups: navy cards, band header, markets as divided rows ---- */
.mc-groups { gap: 12px; }
.mc-group { background: var(--surface, #151b23); border: 1px solid var(--b-border); border-radius: 12px; overflow: hidden; }
.mc-group > summary { min-height: 48px; padding: 0 16px; border-radius: 0; background: var(--b-band); font-size: 16px; }
.mc-group > summary:hover { background: color-mix(in srgb, var(--b-band) 70%, var(--surface-3, #222b36)); }
.mc-group-count { background: transparent; border: 0; color: var(--text-2, #c3ccd6); font-size: 15px; font-weight: 500; padding: 0; min-width: 0; }
.mc-group-count::before { content: "("; } .mc-group-count::after { content: ")"; }
.mc-group-body { gap: 0; padding: 0; }
.mc-group-body > .market.mc-mk { border: 0; border-top: 1px solid var(--b-border); border-radius: 0; background: transparent; padding: 14px 16px 16px; }
.mc-group-body > .market.mc-mk:first-child { border-top: 0; }
.mc .mc-house { background: transparent; border-color: var(--b-border-strong); }
.mc .market-reason { background: color-mix(in srgb, var(--warning, #f5b84b) 12%, transparent); }
.mc-house-note { border-radius: 10px; }
.mc-house-note a, .mc-link, .mc-muted-line a { color: var(--b-mint-ink); }

/* ---- cricket overview cards ---- */
.mc .mc-card-head { min-height: 52px; }
.mc-score-card .mc-card-head, .mc-balls-card .mc-card-head, .mc-ms-card .mc-card-head { background: var(--b-band); border-radius: 12px 12px 0 0; }
.mc .mc-seg { background: var(--surface, #151b23); border-color: var(--b-border-strong); border-radius: 8px; }
.mc .mc-seg > .is-active, .mc .mc-seg.fx-ind-host > .is-active { background: var(--b-mint) !important; color: var(--b-on-mint); box-shadow: none; }
.mc-table thead th { background: var(--b-band); }
.mc-table tr.is-striker > * { background: var(--b-mint-soft); }
.mc-table tr.is-striker > :first-child { box-shadow: inset 3px 0 0 var(--b-mint); }
.mc-balls .ball { background: var(--b-odds-bg); box-shadow: inset 0 0 0 1px var(--b-odds-bd); }
.mc-balls .k-four .ball, .mc-balls .k-six .ball { background: var(--b-mint); color: var(--b-on-mint); box-shadow: none; }
.mc-balls .k-wicket .ball { background: var(--danger, #ff6b6b); color: #fff; }
.mc-legend .k-four { background: var(--b-mint); box-shadow: none; }
.mc .odds.mc-ms-row { background: var(--surface-2, #1b232d); border-color: var(--b-border); }
.mc .odds.mc-ms-row:hover:not(:disabled) { background: var(--b-odds-hv); }
.mc .odds.mc-ms-row .mc-ms-odds { background: var(--b-odds-bg); color: var(--b-odds-tx); font-weight: 700; box-shadow: inset 0 0 0 1px var(--b-odds-bd); }
.mc .odds.mc-ms-row.is-selected { background: var(--b-mint-soft); border-color: var(--b-mint); }
.mc .odds.mc-ms-row.is-selected .mc-ms-odds { background: var(--b-mint); color: var(--b-on-mint); box-shadow: none; }
.mc .odds.mc-ms-row.is-selected .mc-ms-odds::after, .mc .odds.mc-ms-row .mc-ms-odds::after { content: none; }
.mc-stat-v { font-weight: 700; }
.mc-statbar .bar .h, .mc-legend-teams .h::before, .serve-dot, .bb-state .outs i.on { background: var(--b-mint); }
.mc-statbar .bar .a, .mc-legend-teams .a::before { background: var(--text-2, #c3ccd6); opacity: .55; }
.mc-linescore td.is-current { color: var(--b-mint-ink); }
.mc-linescore td.total { background: var(--b-band); }
.mc-tl-item.k-goal .mc-tl-dot, .mc-tl-item.k-try .mc-tl-dot, .mc-tl-item.k-home_run .mc-tl-dot, .mc-tl-item.k-six .mc-tl-dot, .mc-tl-item.k-milestone .mc-tl-dot { background: var(--b-mint); color: var(--b-on-mint); }
.mc-tl-item.k-wicket .mc-tl-dot { color: #fff; }
.mc-replay { border-style: solid; background: var(--surface, #151b23); }
.mc-replay-label > .icon { color: var(--b-mint-ink); }
.mc-tag-demo { background: var(--surface-3, #222b36); color: var(--text-2, #c3ccd6); }
.mc-actions [aria-pressed="true"] { color: var(--b-mint-ink); border-color: var(--b-mint); background: var(--b-mint-soft); }

/* ---- sticky mini-header ---- */
.mc-sticky { background: var(--surface, #151b23); border-bottom: 1px solid var(--b-border); box-shadow: none; }
.mc-sticky .mcs-phase { color: var(--text, #eef2f6); }
.mc-sticky[data-status="live"] .mcs-phase::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--b-live); vertical-align: 1px; }
.mc-sticky .mcs-slip { background: var(--b-mint); background-image: none; color: var(--b-on-mint); border-radius: 8px; }

/* ---- My Bets / tickets ---- */
.bt-head h1 { font-size: 32px; line-height: 40px; }
.bt-status { gap: 0; padding: 4px; border-radius: 10px; background: var(--surface, #151b23); border-color: var(--b-border-strong); }
.bt-status-tab { min-height: 38px; padding: 0 14px; border-radius: 7px; border: 1px solid transparent; font-weight: 500; color: var(--text, #eef2f6); font-size: 14px; }
.bt-status-tab.is-active { background: var(--b-mint-soft); border-color: var(--b-mint); color: var(--b-mint-ink); box-shadow: none; font-weight: 600; }
.bt-status-tab .count { background: var(--surface-3, #222b36); color: var(--text-2, #c3ccd6); }
.bt-status-tab.is-active .count { background: var(--b-mint); color: var(--b-on-mint); }
.bt-field select, .bt-field input { background: var(--surface-2, #1b232d); border-color: var(--b-border-strong); }
.bt-field select:focus, .bt-field input:focus { border-color: var(--b-mint); box-shadow: 0 0 0 3px var(--b-mint-soft); }
.bt-summary .v { font-weight: 700; }
.bt-summary .is-money .v { color: var(--b-mint-ink); }
.bt-list { border-radius: 12px; }
@container bt (min-width: 760px) { .bt-cols { background: var(--surface-2, #1b232d); font-size: 12px; padding: 10px 16px; } }
.ticket.bt-row:hover { background: color-mix(in srgb, var(--surface-2, #1b232d) 70%, transparent); }
.bt-vs { font-weight: 600; }
.bt-crests .crest + .crest { box-shadow: 0 0 0 2px var(--surface, #151b23); }
.bt-fig .v { font-weight: 700; }
.bt-ret .v, .ticket.bt-row[data-status="won"] .bt-ret .v { color: var(--b-mint-ink); }
.ticket.bt-row[data-status="lost"] .bt-ret .v, .ticket.bt-row[data-status="void"] .bt-ret .v, .ticket.bt-row[data-status="cashout"] .bt-ret .v { color: var(--text-2, #c3ccd6); }
.bt-sel:hover, .bt-match:hover .bt-vs, .bt-ref:hover { color: var(--b-mint-ink); }
.bt-bar.progress > span { background: var(--b-mint); }
.bt-net.amount-pos { color: var(--b-mint-ink); }
.bt-net.amount-neg { color: var(--danger, #ff6b6b); }
/* status chips: Open mint outline · Won mint fill · Lost red outline · Void grey */
.bt-st .badge, .tk-head .badge { height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; background: transparent; box-shadow: inset 0 0 0 1.5px var(--b-border-strong); color: var(--text-2, #c3ccd6); }
.ticket[data-status="open"] :is(.bt-st, .tk-head) .badge, .tk-receipt[data-status="open"] .tk-head .badge { background: var(--b-mint-soft); color: var(--b-mint-ink); box-shadow: inset 0 0 0 1.5px var(--b-mint); }
.ticket[data-status="won"] :is(.bt-st, .tk-head) .badge, .tk-receipt[data-status="won"] .tk-head .badge { background: var(--b-mint); color: var(--b-on-mint); box-shadow: none; }
.ticket[data-status="lost"] :is(.bt-st, .tk-head) .badge, .tk-receipt[data-status="lost"] .tk-head .badge { background: transparent; color: var(--danger, #ff6b6b); box-shadow: inset 0 0 0 1.5px var(--danger, #ff6b6b); }
.ticket[data-status="void"] :is(.bt-st, .tk-head) .badge, .ticket[data-status="cashout"] :is(.bt-st, .tk-head) .badge { background: var(--surface-3, #222b36); color: var(--text-2, #c3ccd6); box-shadow: none; }
/* ticket page */
.tk-odds { background: var(--b-odds-bg, var(--odds-bg)); border: 1px solid var(--odds-border, #2d3846); font-weight: 700; }
.tk-total { border-radius: 10px; background: var(--surface-2, #1b232d); }
.tk-total strong, .tk-receipt[data-status="won"] .tk-total strong { color: var(--b-mint-ink); }
.tk-trail-dot { box-shadow: inset 0 0 0 3px var(--b-mint); }
.tk-trail li.is-won .tk-trail-dot { background: var(--b-mint); box-shadow: none; }
.tk-trail li.is-lost .tk-trail-dot { box-shadow: inset 0 0 0 3px var(--danger, #ff6b6b); }
.tk-trail li.is-void .tk-trail-dot { box-shadow: inset 0 0 0 3px var(--muted, #8e9aa8); }
.tk-teams h2 a:hover { color: var(--b-mint-ink); }

@container mc (max-width: 620px) {
  .mc .mc-hero { padding: 14px 14px 16px; }
  .mc-vs { gap: 8px 10px; }
  .mc-side, .mc-away { flex-direction: column; text-align: center; gap: 8px; }
  .mc-side .crest { width: 52px; height: 52px; }
  .mc-team-name { font-size: 15px; line-height: 20px; font-weight: 600; }
  .mc-box { font-size: 36px; line-height: 44px; }
  .mc-dash { font-size: 30px; }
  .mc-hero-team .mc-hero-comp, .mc .mc-live-pill { font-size: 13px; }
  .mc-hero-odds.market { gap: 8px; }
  .mc-hero-odds-l { flex-basis: 100%; text-align: center; font-size: 13px; }
  .mc-hero-odds-btns { width: 100%; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; }
  .mc .mc-hero-odds .odds { padding: 0 10px; }
  .mc-cr-score b { font-size: 34px; }
  .mc .mc-tab { font-size: 14px; }
}
@media (max-width: 767px) { .bt-head h1 { font-size: 26px; line-height: 34px; } }
.mc .mc-hero-team { padding: 22px 24px 24px; } .mc .mc-hero.has-photo::after { background: linear-gradient(180deg, rgba(9, 13, 19, .80) 0%, rgba(9, 13, 19, .86) 60%, rgba(9, 13, 19, .93) 100%); } .mc-hero-team .mc-vs { margin: 4px 0 2px; }
.mc-team-name { font-size: 24px; line-height: 30px; text-wrap: balance; } @container mc (max-width: 820px) { .mc-team-name { font-size: 20px; line-height: 26px; } .mc-side .crest { width: 60px; height: 60px; } .mc-vs { column-gap: 18px; } }
.tk-page .sec-ico { background: var(--b-mint-soft); color: var(--b-mint-ink); }
@container mc (max-width: 620px) { .mc-team-name { font-size: 15px; line-height: 20px; overflow-wrap: break-word; -webkit-hyphens: manual; hyphens: manual; } .mc-side-copy { width: 100%; } }
/* QA2: a long result line ("Slaven Belupo Koprivnica won by 1 goal") used to widen the auto centre column and
   squeeze the team names into "Sla v…" / "Osi jek". Keep the centre narrow and let the result wrap under the score. */
.mc-result-sm { max-width: 22ch; text-wrap: balance; }
@container mc (max-width: 620px) { .mc-result-sm { max-width: 13ch; font-size: 11px; line-height: 15px; } }
@container mc (max-width: 420px) {
  .mc .mc-hero-team { padding: 18px 12px 20px; }
  .mc-vs { column-gap: 6px; }
  .mc-team-name { font-size: 14px; line-height: 19px; }
  .mc-result-sm { max-width: 11ch; }
}
