/* OddSeek app CSS — loaded AFTER /_design/css/design.css.
 *
 *  1. Reskin OSDS brand tokens → OddSeek orange (#ff4d00). The :root /
 *     html.light token blocks in design.css are UNLAYERED, so this unlayered
 *     :root (loaded later) wins → every OSDS component reskins for free.
 *  2. Odds-comparison components (.os-*), built to the OSDS bar: tonal
 *     surfaces, 1px borders, restrained accent, real motion.
 *
 *  Accent discipline (corrected): orange is for BRAND, CTAs, links, live
 *  signals and the single genuinely-best cell — NOT every odds pill. Odds in
 *  list rows are neutral tonal pills; the row's favourite gets a quiet accent.
 *
 *  AA measured: dark accent #ff4d00 on bg 5.82:1; dark btn dark-on-orange
 *  5.73:1; light --primary #b83700 on bg 5.52:1; light btn white-on 5.86:1. */

/* ── 1. Brand reskin ─────────────────────────────────────────── */
:root {
  --primary:        #ff4d00;
  --primary-soft:   #ff7a33;
  --primary-deep:   #c43d00;
  --on-primary:     #1f0a00;
  --brand-gradient: linear-gradient(135deg, #ff4d00 0%, #ff8c42 100%);

  --accent-wash:    rgba(255, 122, 51, 0.12);
  --accent-line:    rgba(255, 122, 51, 0.45);
  --live:           #ff3b30;
  --up:             #34c759;
  --down:           #ff453a;
  --ring:           rgba(255, 122, 51, 0.55);
}
html.light {
  --primary:        #b83700;
  --primary-soft:   #b83700;
  --primary-deep:   #8f2a00;
  --on-primary:     #ffffff;
  --brand-gradient: linear-gradient(135deg, #b83700 0%, #d9531a 100%);
  --accent-wash:    rgba(184, 55, 0, 0.08);
  --accent-line:    rgba(184, 55, 0, 0.30);
  --ring:           rgba(184, 55, 0, 0.4);
}

*:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 4px; }

/* ── 2. Layout shell ─────────────────────────────────────────── */
.os-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.os-layout {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 24px 0 64px;
}
@media (max-width: 920px) {
  .os-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .os-sidebar { display: none; }
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.os-sidebar { position: sticky; top: calc(var(--header-h) + 14px); display: flex; flex-direction: column; gap: 14px; }
.os-sidebar-card {
  background: var(--surface-container);
  border: 1px solid var(--border);
  border-radius: var(--shape-lg);
  overflow: hidden;
}
.os-sidebar-head {
  padding: 13px 16px; font-weight: 800; font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim);
}
.os-nav-list { list-style: none; margin: 0; padding: 4px 6px 8px; max-height: 64vh; overflow-y: auto; overscroll-behavior: contain; }
.os-nav-item a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px; border-radius: var(--shape-sm); color: var(--text-muted);
  text-decoration: none; font-size: 13.5px; font-weight: 600;
  transition: background var(--dur-short) var(--ease-emphasized), color var(--dur-short) var(--ease-emphasized);
}
.os-nav-item a:hover { background: var(--surface-container-high); color: var(--text); }
.os-nav-item .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os-nav-count { font-size: 11px; font-weight: 700; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.os-nav-count.live { color: var(--live); display: inline-flex; align-items: center; gap: 5px; }
.os-nav-count.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); }

/* ── Scope tabs ──────────────────────────────────────────────── */
.os-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.os-tabs .pill { font-weight: 700; }

/* ── Hero ────────────────────────────────────────────────────── */
.os-hero {
  position: relative; overflow: hidden;
  border-radius: var(--shape-xl);
  background: var(--surface-container);
  border: 1px solid var(--border);
  padding: clamp(28px, 5vw, 52px) clamp(22px, 4vw, 44px);
  margin: 24px 0 6px;
  isolation: isolate;
}
.os-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(680px 280px at 88% -8%, rgba(255,77,0,.20), transparent 62%),
    radial-gradient(420px 220px at 8% 120%, rgba(255,140,66,.10), transparent 60%);
}
.os-hero h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.04; margin: 0 0 14px; letter-spacing: -.025em; max-width: 18ch; }
.os-hero p { font-size: clamp(15px, 1.7vw, 18px); color: var(--text-muted); max-width: 56ch; margin: 0 0 26px; line-height: 1.55; }
.os-hero-search { display: flex; gap: 10px; max-width: 540px; position: relative; }
.os-search-field { position: relative; flex: 1 1 auto; min-width: 0; }
.os-search-field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-dim); width: 18px; height: 18px; pointer-events: none; }
.os-search-field .input { width: 100%; height: 50px; padding-left: 42px; font-size: 15px; }
.os-hero-search .btn { height: 50px; padding-inline: 22px; }
.os-hero-stats { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.os-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 18px 12px 0; border-right: 1px solid var(--border); }
.os-stat:last-child { border-right: 0; }
.os-stat b { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.os-stat b .amp { color: var(--primary); }
.os-stat span { font-size: 12.5px; color: var(--text-dim); font-weight: 600; }

/* ── Section heads ───────────────────────────────────────────── */
.os-section { margin: 34px 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.os-section:first-child { margin-top: 8px; }
.os-section h2 { font-size: 19px; margin: 0; letter-spacing: -.015em; display: flex; align-items: center; gap: 9px; }
.os-section a { font-size: 13.5px; font-weight: 700; color: var(--text-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; transition: color var(--dur-short) var(--ease-emphasized); }
.os-section a:hover { color: var(--primary); }
.os-section .page-info { font-size: 13px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.os-live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(255,59,48,.6); animation: os-pulse 2s infinite; flex: 0 0 auto; }
@keyframes os-pulse { 0%{box-shadow:0 0 0 0 rgba(255,59,48,.5)} 70%{box-shadow:0 0 0 6px rgba(255,59,48,0)} 100%{box-shadow:0 0 0 0 rgba(255,59,48,0)} }

/* ── Match list ──────────────────────────────────────────────── */
.os-matches { display: flex; flex-direction: column; gap: 8px; }
.os-match {
  display: grid; grid-template-columns: 58px minmax(0,1fr) auto; gap: 16px; align-items: center;
  background: var(--surface-container); border: 1px solid var(--border);
  border-radius: var(--shape-md); padding: 13px 16px; text-decoration: none; color: var(--text);
  transition: border-color var(--dur-short) var(--ease-emphasized),
              background var(--dur-short) var(--ease-emphasized),
              transform var(--dur-short) var(--ease-emphasized);
}
.os-match:hover { border-color: var(--border-strong); background: var(--surface-container-high); transform: translateY(-1px); }
.os-match:active { transform: translateY(0); }
/* time/status column */
.os-when { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; font-variant-numeric: tabular-nums; }
.os-when .t { font-size: 14px; font-weight: 800; color: var(--text); }
.os-when .d { font-size: 11px; color: var(--text-dim); font-weight: 600; }
.os-when .live { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; color: var(--live); text-transform: uppercase; letter-spacing: .04em; }
/* teams */
.os-teams { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.os-league { font-size: 11.5px; color: var(--text-dim); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 1px; }
.os-team { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 15px; line-height: 1.2; }
.os-team .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os-score { font-variant-numeric: tabular-nums; color: var(--primary); font-weight: 800; flex: 0 0 auto; }
/* 1X2 odds */
.os-1x2 { display: grid; grid-template-columns: repeat(3, 62px); gap: 7px; }
@media (max-width: 600px) {
  .os-match { grid-template-columns: 50px minmax(0,1fr); row-gap: 12px; }
  .os-1x2 { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
}

/* ── Odd pill (neutral; favourite gets a quiet accent) ───────── */
.os-odd {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 7px 4px; min-width: 0;
  background: var(--surface-container-low); border: 1px solid var(--border);
  border-radius: var(--shape-sm); font-variant-numeric: tabular-nums;
  transition: border-color var(--dur-short) var(--ease-emphasized), background var(--dur-short) var(--ease-emphasized);
}
.os-odd .lbl { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.os-odd .val { font-size: 15px; font-weight: 800; color: var(--text); }
.os-odd.fav { border-color: var(--accent-line); background: var(--accent-wash); }
.os-odd.fav .val { color: var(--primary); }
.os-match:hover .os-odd { border-color: var(--border-strong); }

/* ── Odds table (match detail) ───────────────────────────────── */
.os-market { background: var(--surface-container); border: 1px solid var(--border); border-radius: var(--shape-lg); overflow: hidden; margin-bottom: 16px; }
.os-market-head { padding: 13px 18px; font-weight: 800; font-size: 15px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.os-market-head .period { font-size: 11px; color: var(--text-dim); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.os-table-scroll { overflow-x: auto; }
.os-table { width: 100%; border-collapse: collapse; min-width: 380px; }
.os-table th, .os-table td { padding: 11px 16px; text-align: center; font-variant-numeric: tabular-nums; }
.os-table th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); font-weight: 800; border-bottom: 1px solid var(--border); }
.os-table td:first-child, .os-table th:first-child { text-align: left; }
.os-table tbody tr { border-top: 1px solid var(--border); transition: background var(--dur-short) var(--ease-emphasized); }
.os-table tbody tr:hover { background: var(--surface-container-low); }
.os-book { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.os-book .ava { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--on-primary); background: var(--brand-gradient); flex: 0 0 auto; }
.os-price {
  font-weight: 800; font-size: 15px; cursor: pointer; background: var(--surface-container-low);
  border: 1px solid var(--border); border-radius: var(--shape-xs); padding: 5px 12px;
  color: var(--text); font-variant-numeric: tabular-nums; min-width: 60px;
  transition: border-color var(--dur-short) var(--ease-emphasized), transform var(--dur-short) var(--ease-emphasized);
}
.os-price:hover { border-color: var(--border-strong); }
.os-price:active { transform: scale(0.96); }
.os-price.best { background: var(--accent-wash); border-color: var(--accent-line); color: var(--primary); }
.os-price.sel { box-shadow: 0 0 0 2px var(--ring); }

/* ── Price-history chart ─────────────────────────────────────── */
.os-chart-card { background: var(--surface-container); border: 1px solid var(--border); border-radius: var(--shape-lg); padding: 18px; margin-bottom: 16px; }
.os-chart-card h3 { margin: 0 0 4px; font-size: 14px; font-weight: 800; }
.os-chart { width: 100%; height: 190px; display: block; }
.os-chart-meta { font-size: 12.5px; color: var(--text-muted); margin-bottom: 12px; }

/* ── Bookmaker grid ──────────────────────────────────────────── */
.os-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.os-book-card { display: flex; align-items: center; gap: 13px; background: var(--surface-container); border: 1px solid var(--border); border-radius: var(--shape-md); padding: 16px; transition: border-color var(--dur-short) var(--ease-emphasized), transform var(--dur-short) var(--ease-emphasized); }
.os-book-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.os-book-card .ava { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--on-primary); background: var(--brand-gradient); flex: 0 0 auto; }

/* ── Pagination ──────────────────────────────────────────────── */
.os-pager { display: flex; gap: 10px; justify-content: center; align-items: center; margin: 28px 0 8px; }
.os-pager .page-info { font-size: 13px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* ── Responsible-gambling note ───────────────────────────────── */
.os-rg { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-container-low); border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: var(--shape-md); padding: 13px 15px; font-size: 13px; color: var(--text-muted); margin: 22px 0; line-height: 1.5; }
.os-rg svg { flex: 0 0 auto; color: var(--primary); margin-top: 1px; }
.os-rg a { color: var(--primary); font-weight: 700; }

/* ── Prose ───────────────────────────────────────────────────── */
.os-prose { max-width: 70ch; }
.os-prose h1 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -.025em; margin: 8px 0 16px; }
.os-prose h2 { font-size: 20px; margin: 30px 0 10px; letter-spacing: -.01em; }
.os-prose p, .os-prose li { color: var(--text-muted); line-height: 1.7; }
.os-prose a { color: var(--primary); }

/* ── Misc ────────────────────────────────────────────────────── */
.os-logo { color: var(--primary); flex: 0 0 auto; display: inline-flex; }
.os-empty { text-align: center; padding: 56px 16px; color: var(--text-dim); border: 1px dashed var(--border); border-radius: var(--shape-lg); background: var(--surface-container-low); }
.os-crumb { margin: 18px 0 12px; font-size: 13px; color: var(--text-dim); }
.os-crumb a { color: var(--text-muted); text-decoration: none; }
.os-crumb a:hover { color: var(--primary); }

/* ── v3: real-data components (league groups, rows, market cards) ───────── */
.os-feed { display: flex; flex-direction: column; gap: 16px; }

/* League group card */
.os-lg { background: var(--surface-container); border: 1px solid var(--border); border-radius: var(--shape-lg); overflow: hidden; }
.os-lg-head { display: flex; align-items: center; gap: 8px; padding: 11px 16px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 700; }
.os-lg-country { color: var(--text-muted); } .os-lg-sep { color: var(--text-dim); }
.os-lg-count { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--text-dim); background: var(--surface-container-low); border-radius: 999px; padding: 1px 9px; }
.os-lg-head:hover .os-lg-league { color: var(--primary); }

.os-lg-cols, .os-row { display: grid; grid-template-columns: 56px minmax(0,1fr) 198px 138px 30px; align-items: center; gap: 10px; }
.os-lg-cols { padding: 7px 16px; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); font-weight: 700; border-bottom: 1px solid var(--border); }
.os-lg-cols .c-odds, .os-lg-cols .c-ou, .os-lg-cols .c-books { text-align: center; }
.os-row { padding: 9px 16px; text-decoration: none; color: var(--text); border-top: 1px solid var(--border); transition: background var(--dur-short) var(--ease-emphasized); }
.os-lg-rows .os-row:first-child { border-top: 0; }
.os-row:hover { background: var(--surface-container-high); }
.os-row-when .t { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.os-min { font-size: 12px; font-weight: 800; color: var(--live); }
.os-row-teams { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.os-row-teams .os-team { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; }
.os-row-teams .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os-score { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--text-muted); }
.os-score.lead { color: var(--primary); }
.os-row-odds { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.os-row-ou { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; }
.os-row-odds--empty { text-align: center; color: var(--text-dim); }
.os-o { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px; background: var(--surface-container-low); border: 1px solid var(--border); border-radius: var(--shape-sm); }
.os-o .k { font-size: 9px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.os-o .v { font-size: 13.5px; font-weight: 800; color: var(--text); display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.os-o.fav { border-color: var(--accent-line); background: var(--accent-wash); } .os-o.fav .v { color: var(--primary); }
.os-o.sm .v { font-size: 12.5px; }
.os-row:hover .os-o { border-color: var(--border-strong); }
.os-row-books { text-align: center; font-size: 12px; font-weight: 700; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.os-arr { font-size: 8px; line-height: 1; } .os-arr.up { color: var(--up); } .os-arr.dn { color: var(--down); }
@media (max-width: 640px) {
  .os-lg-cols { display: none; }
  .os-row { grid-template-columns: 44px minmax(0,1fr); row-gap: 8px; }
  .os-row-odds { grid-column: 1 / -1; } .os-row-ou, .os-row-books { display: none; }
}

/* Match detail */
.os-match-hd { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface-container); border: 1px solid var(--border); border-radius: var(--shape-lg); padding: 20px 22px; margin-bottom: 16px; flex-wrap: wrap; }
.os-match-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--text-dim); margin-bottom: 8px; }
.os-min-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--live); font-weight: 800; }
.os-match-hd h1 { font-size: clamp(20px,3vw,30px); margin: 0; letter-spacing: -.02em; }
.os-match-hd h1 .vs { color: var(--text-dim); font-weight: 600; }
.os-match-score { font-size: 34px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.os-period-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 16px; }
.os-grp-h { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); margin: 22px 0 10px; font-weight: 800; }
.os-mkt { background: var(--surface-container); border: 1px solid var(--border); border-radius: var(--shape-md); margin-bottom: 10px; overflow: hidden; }
.os-mkt-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 16px; font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--border); }
.os-mkt-h .bk { font-size: 11px; color: var(--text-dim); font-weight: 600; }
.os-mkt-out { display: grid; gap: 8px; padding: 12px 16px; }
.os-mkt-out.cols-3 { grid-template-columns: repeat(3,1fr); } .os-mkt-out.cols-2 { grid-template-columns: repeat(2,1fr); } .os-mkt-out.cols-1 { grid-template-columns: 1fr; }
.os-out { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; background: var(--surface-container-low); border: 1px solid var(--border); border-radius: var(--shape-sm); cursor: pointer; transition: border-color var(--dur-short) var(--ease-emphasized), transform var(--dur-short) var(--ease-emphasized); }
.os-out:hover { border-color: var(--border-strong); } .os-out:active { transform: scale(.98); }
.os-out .lbl { font-size: 12px; color: var(--text-muted); font-weight: 700; }
.os-out .val { font-size: 16px; font-weight: 800; color: var(--text); display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.os-out.fav { border-color: var(--accent-line); background: var(--accent-wash); } .os-out.fav .val { color: var(--primary); }
.os-out.sel { box-shadow: 0 0 0 2px var(--ring); }

/* ── v4: search trigger, chips, comparison grid, date strip, cmdk, footer ── */
.os-hdr-search { display: inline-flex !important; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 12px; background: var(--surface-container-low); border: 1px solid var(--border); border-radius: var(--shape-pill); color: var(--text-dim); cursor: pointer; font: inherit; font-size: 13px; min-width: 210px; transition: border-color var(--dur-short) var(--ease-emphasized); }
.os-hdr-search:hover { border-color: var(--border-strong); color: var(--text-muted); }
.os-hdr-search .ic { width: 16px; height: 16px; }
.os-hdr-search span { flex: 1 1 auto; text-align: left; }
.os-hdr-search kbd { font: 600 11px ui-monospace, monospace; background: var(--surface-container-high); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; color: var(--text-dim); }

/* market group chips + period tabs */
.os-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }

/* market card toggle (header is a button) */
.os-mkt-toggle { width: 100%; cursor: pointer; background: none; color: var(--text); font: inherit; text-align: left; }
.os-mkt-meta { display: inline-flex; align-items: center; gap: 8px; }
.os-chev { transition: transform var(--dur-short) var(--ease-emphasized); color: var(--text-dim); }
.os-mkt-toggle[aria-expanded="true"] .os-chev { transform: rotate(180deg); }

/* bookmaker comparison grid */
.os-grid { border-top: 1px solid var(--border); }
.os-grid-scroll { overflow-x: auto; }
.os-grid-tbl { width: 100%; border-collapse: collapse; min-width: 360px; }
.os-grid-tbl th, .os-grid-tbl td { padding: 9px 14px; text-align: center; font-variant-numeric: tabular-nums; font-size: 14px; }
.os-grid-tbl th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); font-weight: 800; border-bottom: 1px solid var(--border); }
.os-grid-tbl th:first-child, .os-grid-tbl td:first-child { text-align: left; }
.os-grid-tbl tbody tr { border-top: 1px solid var(--border); }
.os-grid-tbl tbody tr:hover { background: var(--surface-container-low); }
.os-grid-tbl td.best { background: var(--accent-wash); color: var(--primary); font-weight: 800; border-radius: var(--shape-xs); }
.os-grid-tbl td.muted { color: var(--text-dim); }
.os-grid-tbl .bk { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.os-grid-tbl .bk a { color: var(--text); text-decoration: none; } .os-grid-tbl .bk a:hover { color: var(--primary); }
.os-grid-tbl .bk .ava { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--on-primary); background: var(--brand-gradient); flex: 0 0 auto; }
.os-grid-empty { padding: 16px; text-align: center; color: var(--text-dim); font-size: 13px; }

/* date strip (results) */
.os-datestrip { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.os-date { padding: 7px 13px; border-radius: var(--shape-pill); border: 1px solid var(--border); background: var(--surface-container); color: var(--text-muted); text-decoration: none; font-size: 13px; font-weight: 700; }
.os-date:hover { border-color: var(--border-strong); color: var(--text); }
.os-date.active { background: var(--brand-gradient); color: var(--on-primary); border-color: transparent; }
.os-date-picker { height: 36px; }

/* Cmd+K palette */
.os-cmdk { width: min(580px, 92vw); max-width: 580px; margin: 12vh auto auto; padding: 0; border: 1px solid var(--border-strong); border-radius: var(--shape-lg); background: var(--surface-container-high); color: var(--text); box-shadow: 0 24px 70px rgba(0,0,0,.45); }
.os-cmdk::backdrop { background: rgba(0,0,0,.5); backdrop-filter: blur(2px); }
.os-cmdk-field { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.os-cmdk-field svg { width: 18px; height: 18px; color: var(--text-dim); flex: 0 0 auto; }
.os-cmdk-field input { flex: 1 1 auto; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 16px; }
.os-cmdk-field kbd { font: 600 11px ui-monospace, monospace; background: var(--surface-container-low); border: 1px solid var(--border); border-radius: 5px; padding: 2px 7px; color: var(--text-dim); }
.os-cmdk-results { list-style: none; margin: 0; padding: 6px; max-height: 56vh; overflow-y: auto; }
.os-cmdk-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 12px; border-radius: var(--shape-sm); cursor: pointer; }
.os-cmdk-row.active { background: var(--surface-container); }
.os-cmdk-teams { font-weight: 700; font-size: 14.5px; } .os-cmdk-teams i { color: var(--text-dim); font-style: normal; }
.os-cmdk-sub { grid-column: 1; font-size: 12px; color: var(--text-dim); }
.os-cmdk-live { grid-row: 1 / span 2; align-self: center; color: var(--live); font-weight: 800; font-size: 11px; }
.os-cmdk-date { grid-row: 1 / span 2; align-self: center; color: var(--text-dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.os-cmdk-empty { padding: 22px; text-align: center; color: var(--text-dim); }
.os-cmdk-foot { padding: 9px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-dim); }
.os-cmdk-foot a { color: var(--primary); }
@media (max-width: 720px) { .os-hdr-search span, .os-hdr-search kbd { display: none; } .os-hdr-search { min-width: 0; width: 38px; padding: 0; justify-content: center; } }

/* rich footer */
.os-footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 26px; padding: 6px 0 4px; }
.os-footer-brand .os-footer-logo { font-size: 18px; font-weight: 800; }
.os-footer-brand p { color: var(--text-dim); font-size: 13px; margin: 8px 0 0; max-width: 34ch; line-height: 1.5; }
.os-foot-h { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); font-weight: 800; margin-bottom: 12px; }
.os-footer a { display: block; color: var(--text-muted); text-decoration: none; font-size: 14px; padding: 3px 0; }
.os-footer a:hover { color: var(--primary); }
.os-footer-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-dim); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .os-footer-grid { grid-template-columns: 1fr 1fr; } }

/* in-card line selector (O/U, Asian Handicap, Correct Score lines) */
.os-lines { display: flex; gap: 6px; overflow-x: auto; padding: 10px 14px 2px; overscroll-behavior-x: contain; }
.os-line { flex: 0 0 auto; padding: 4px 11px; border-radius: var(--shape-pill); border: 1px solid var(--border); background: var(--surface-container-low); color: var(--text-muted); font: 700 12.5px inherit; cursor: pointer; font-variant-numeric: tabular-nums; }
.os-line:hover { border-color: var(--border-strong); color: var(--text); }
.os-line.active { background: var(--brand-gradient); color: var(--on-primary); border-color: transparent; }

/* ── v7: brand logos, line-list, score grid, header chev ──────── */
.os-bk { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .01em; white-space: nowrap; line-height: 1; }

/* vertical line list (O/U, Asian Handicap) — no horizontal scroll */
.os-linelist { display: flex; flex-direction: column; }
.os-lrow { border-top: 1px solid var(--border); }
.os-lrow:first-child { border-top: 0; }
.os-lrow-h { width: 100%; display: grid; grid-template-columns: 64px 1fr 18px; align-items: center; gap: 12px; padding: 10px 16px; background: none; border: 0; cursor: pointer; color: var(--text); font: inherit; text-align: left; }
.os-lrow-h:hover { background: var(--surface-container-low); }
.os-lrow.open > .os-lrow-h { background: var(--surface-container-low); }
.os-lrow-line { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 14px; }
.os-lrow-odds { display: flex; gap: 8px; }
.os-o2 { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; background: var(--surface-container-high); border: 1px solid var(--border); border-radius: var(--shape-sm); }
.os-o2 .k { font-size: 11px; color: var(--text-dim); font-weight: 700; }
.os-o2 .v { font-weight: 800; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 3px; }
.os-lrow-h .os-chev { color: var(--text-dim); transition: transform var(--dur-short) var(--ease-emphasized); }
.os-lrow.open > .os-lrow-h .os-chev { transform: rotate(180deg); }
.os-lrow .os-grid { border-top: 1px solid var(--border); background: var(--surface-container-low); }

/* correct-score grid — wrapping cells, no horizontal scroll */
.os-scores { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; padding: 14px 16px; }
.os-score-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 6px; background: var(--surface-container-low); border: 1px solid var(--border); border-radius: var(--shape-sm); cursor: pointer; transition: border-color var(--dur-short) var(--ease-emphasized); }
.os-score-cell:hover { border-color: var(--border-strong); }
.os-score-cell.sel { box-shadow: 0 0 0 2px var(--ring); }
.os-score-cell .sc { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.os-score-cell .od { font-size: 13px; color: var(--primary); font-weight: 800; font-variant-numeric: tabular-nums; }

/* single-market grid sits directly under the header */
.os-mkt > .os-grid { border-top: 1px solid var(--border); }

/* hero search button (opens Cmd+K) */
.os-hero-search-btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px 0 18px; max-width: 540px; width: 100%; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--shape-pill); color: var(--text-dim); cursor: pointer; font: inherit; font-size: 16px; transition: border-color var(--dur-short) var(--ease-emphasized); }
.os-hero-search-btn:hover { border-color: var(--primary); }
.os-hero-search-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.os-hero-search-btn span { flex: 1 1 auto; text-align: left; }
.os-hero-search-btn kbd { font: 700 12px ui-monospace, monospace; background: var(--surface-container-high); border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; }

/* native date input — tame the default chrome */
.os-date-picker { background: var(--surface-container); border: 1px solid var(--border); border-radius: var(--shape-pill); padding: 0 12px; height: 36px; color: var(--text); color-scheme: dark; }
html.light .os-date-picker { color-scheme: light; }

/* locale menu polish — subtle separator, clean selected state (override OSDS) */
.os-select-menu.locale-menu { box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.locale-menu .locale-option:first-child { border-bottom: 1px solid var(--border); margin-bottom: 4px; padding-bottom: 9px; }
.locale-menu .locale-option { border-radius: var(--shape-sm); }
.os-select-menu.locale-menu .locale-option[aria-selected="true"] { background: var(--accent-wash); color: var(--primary); }

/* ── v8: data-driven logos, sidebar drill-down, brand always-on, mobile ── */

/* bookmaker chip: real logo if present, else clean UNIFORM name chip */
.os-bk { display: inline-flex; align-items: center; }
.os-bk-logo { height: 20px; max-width: 96px; object-fit: contain; display: block; }
.os-bk-fallback { display: none; align-items: center; min-height: 22px; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1; background: var(--surface-container-high); border: 1px solid var(--border); color: var(--text); }
.os-bk.noimg .os-bk-logo { display: none; }
.os-bk.noimg .os-bk-fallback { display: inline-flex; }
.os-bk-lg .os-bk-logo { height: 28px; max-width: 130px; }
.os-bk-lg .os-bk-fallback { font-size: 14px; padding: 6px 12px; }
.os-book-card { justify-content: flex-start; }

/* sidebar drill-down: country → leagues */
.os-nav-c { border-radius: var(--shape-sm); }
.os-nav-c > summary { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--shape-sm); cursor: pointer; list-style: none; color: var(--text-muted); font-size: 13.5px; font-weight: 700; }
.os-nav-c > summary::-webkit-details-marker { display: none; }
.os-nav-c > summary:hover { background: var(--surface-container-high); color: var(--text); }
.os-nav-c > summary .nm { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os-nav-caret { color: var(--text-dim); flex: 0 0 auto; transition: transform var(--dur-short) var(--ease-emphasized); }
.os-nav-c[open] > summary .os-nav-caret { transform: rotate(90deg); }
.os-nav-leagues { list-style: none; margin: 0 0 4px; padding: 0 0 4px 22px; }
.os-nav-leagues a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: var(--shape-sm); color: var(--text-dim); text-decoration: none; font-size: 13px; }
.os-nav-leagues a:hover { background: var(--surface-container-low); color: var(--primary); }
.os-nav-leagues .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* brand (logo + OddSeek) ALWAYS fully visible, every screen — never clip/shrink */
.hdr-brand { display: inline-flex !important; align-items: center; gap: 9px; flex: 0 0 auto; overflow: visible; }
.hdr-logo { display: inline-flex !important; flex: 0 0 auto; }
.hdr-title { display: inline !important; white-space: nowrap; overflow: visible; }
.hdr-actions { min-width: 0; }
@media (max-width: 560px) { .locale-switcher-label { display: none !important; } }

/* mobile: sidebar is not sticky (no overlap), shown as a plain block under content */
@media (max-width: 920px) {
  .os-sidebar { position: static !important; display: flex !important; margin-top: 24px; }
  .os-layout { display: flex; flex-direction: column; }
  .os-layout > div:not(.os-sidebar) { order: 1; }
  .os-sidebar { order: 2; }
}
.hdr-title .os-seek { color: var(--primary); font-weight: 800; }
