/* === PIMI SPORTSBOOK UI === */
.sports-page {
  padding: 0 0 56px;
  position: relative;
}
.sports-page.has-acc-rail {
  padding-right: 380px;
  transition: padding-right 280ms cubic-bezier(.2,.8,.2,1);
}
.sports-page.has-acc-rail.acc-collapsed { padding-right: 56px; }
.sports-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  min-height: calc(100vh - 60px);
  display: grid;
  place-items: center;
  background: rgba(246, 246, 248, 0.58);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.sports-loading-card {
  min-width: 260px;
  padding: 26px 28px 24px;
  border: 1px solid var(--border-2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
  text-align: center;
}
.sports-loading-card .pimi-loader {
  margin-bottom: 14px;
}
.sports-loading-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.sports-loading-subtitle {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.sports-hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px clamp(18px, 2.5vw, 48px) 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(37, 99, 235, 0.06), transparent 60%),
    var(--bg);
}
.sports-hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}
.sports-hero-copy {
  max-width: 760px;
}
.sports-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.sports-kicker i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.sports-hero h1 {
  margin: 9px 0 0;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.025em;
}
.sports-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.sports-stat {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.sports-stat-ic {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent-dim);
  color: var(--accent);
}
.sports-stat-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sports-stat-v {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.05;
}
.sports-stat-l {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--dim);
}

/* AI chat / fixture search composer */
.sports-ask { position: relative; }
.sports-ask-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 10px;
}
.sports-ask-box.composer {
  max-width: none;
  margin: 0;
}
.sports-ask-hint {
  font-size: 10px;
  color: var(--dim);
  margin-right: 8px;
  letter-spacing: 0.04em;
}
.sports-ask-popover {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  padding: 6px;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
}
.sports-ask-popover-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 6px 8px 4px;
}
.sports-ask-answer {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.06), rgba(37, 99, 235, 0.01));
}
.sports-ask-answer.warn {
  border-color: var(--border-2);
  background: var(--surface);
}
.sports-ask-answer-ic {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
}
.sports-ask-answer.warn .sports-ask-answer-ic {
  background: var(--surface-2);
  color: var(--muted);
}
.sports-ask-answer-body { flex: 1 1 auto; min-width: 0; }
.sports-ask-answer-q {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.sports-ask-answer-body p {
  margin: 0;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.55;
}
.sports-ai-usage {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
}
.sports-ai-block {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.sports-ai-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 12.5px;
}
.sports-ai-block-head span {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}
.sports-ai-fixtures {
  display: flex;
  flex-direction: column;
}
.sports-ai-fixture {
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  color: var(--text);
  background: transparent;
  transition: background 0.14s ease;
}
.sports-ai-fixture:last-child { border-bottom: none; }
.sports-ai-fixture:hover { background: var(--surface-2); }
.sports-ai-result {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--muted);
}
.sports-ai-result.w { background: rgba(22, 163, 74, 0.12); color: var(--up); }
.sports-ai-result.d { background: rgba(139, 139, 150, 0.14); color: var(--muted); }
.sports-ai-result.l { background: rgba(220, 38, 38, 0.11); color: var(--down); }
.sports-ai-fixture-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sports-ai-fixture-main b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 650;
}
.sports-ai-fixture-main b span {
  font-family: var(--mono);
  color: var(--accent);
}
.sports-ai-fixture-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
}
.sports-ai-date {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
}
.sports-ai-debug {
  margin-top: 10px;
  border-top: 1px dashed var(--border-2);
  padding-top: 8px;
}
.sports-ai-debug summary {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}
.sports-ai-debug pre {
  max-height: 220px;
  overflow: auto;
  margin: 8px 0 0;
  padding: 10px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.45;
}
.sports-ask-answer-x {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  padding: 2px 4px;
}
.sports-ask-answer-x:hover { color: var(--text); }
.sports-api-note,
.sports-section-head,
.sp-sporttabs,
.sp-comps,
.sports-footnote {
  padding-left: clamp(18px, 2.5vw, 48px);
  padding-right: clamp(18px, 2.5vw, 48px);
}
.sports-api-note {
  padding-bottom: 16px;
}
.sports-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 10px 0 14px;
}
.sports-section-head.compact {
  margin-top: 24px;
  margin-bottom: 12px;
}
.sports-section-head h2 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.sports-section-meta {
  color: var(--muted);
  font-size: 11px;
}
.sports-footnote {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (max-width: 1120px) {
  .sports-hero-top {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .sports-hero-stats {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .sp-league-workspace {
    display: block;
  }
  .sports-page.has-acc-rail,
  .sports-page.has-acc-rail.acc-collapsed {
    padding-right: 0;
  }
  .sports-page .sp-acc-sidebar,
  .sports-page .sp-acc-sidebar.collapsed {
    position: static;
    width: auto;
    height: auto;
    max-height: none;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    margin: 0 clamp(18px, 2.5vw, 48px) 24px;
  }
  .sports-page .sp-acc-panel {
    width: auto;
    min-width: 0;
  }
}
@media (max-width: 760px) {
  .sports-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .sp-sporttabs .sp-book {
    width: 100%;
    margin-left: 0 !important;
  }
  .sp-row-headers {
    display: none;
  }
  .sp-row {
    grid-template-columns: 78px minmax(0, 1fr) 24px;
  }
  .sp-row-odds,
  .sp-row-matched {
    display: none;
  }
}
.sp-crest {
  width: 44px; height: 44px; border-radius: 8px; border: 1px solid;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: -0.01em;
  flex-shrink: 0;
}
.sp-crest.sm { width: 34px; height: 34px; font-size: 11px; border-radius: 7px; }
.sp-crest.lg { width: 58px; height: 58px; font-size: 17px; border-radius: 11px; }

.sp-head { align-items: center; }
.sp-head .an-head-id { display: flex; align-items: center; gap: 18px; }
.sp-head-teams { display: flex; align-items: baseline; gap: 14px; font-family: var(--serif); flex-wrap: wrap; }
.sp-team { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.sp-score { font-size: 26px; font-weight: 600; color: var(--text); display: inline-flex; align-items: baseline; gap: 8px; }
.sp-score-dash { color: var(--dim); font-size: 20px; }
.sp-v { font-family: var(--mono); font-size: 13px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; }
.sp-cric-score { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--text-2); }
.sp-cric-result { color: var(--up); }
.sp-head-tags { display: flex; align-items: center; gap: 12px; margin-top: 9px; flex-wrap: wrap; }
.sp-status {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
}
.sp-status.settled { color: var(--up); background: var(--up-dim); }
.sp-status.upcoming { color: var(--accent); background: var(--accent-dim); }
.sp-book { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.sp-book-logo { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-weight: 800; font-size: 11px; font-family: var(--sans); }
.sp-book-lg { font-size: 11px; }
.sp-head-matched { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.sp-matched-val { font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: -0.01em; }

.sp-mkt-row {
  display: block; width: 100%; text-align: left;
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  transition: background 0.12s ease;
}
.sp-mkt-row:hover { background: var(--surface); }
.sp-mkt-row.active { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.sp-mkt-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sp-mkt-name { font-size: 12.5px; color: var(--text); font-weight: 500; }
.sp-mkt-row.active .sp-mkt-name { color: var(--accent); }
.sp-mkt-type { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.08em; color: var(--muted); border: 1px solid var(--border-2); border-radius: 3px; padding: 1px 5px; }
.sp-mkt-sel { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sp-mkt-pill { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.sp-mkt-pill b { font-family: var(--serif); font-size: 12px; color: var(--text-2); font-weight: 500; }
.sp-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.sp-mkt-foot { font-family: var(--mono); font-size: 9.5px; color: var(--dim); margin-top: 8px; }

.sp-seg-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sp-seg-field > .label {
  margin: 0;
}
.seg {
  position: relative;
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--bg-2);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}
.seg-ind {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.08);
  transition: transform .28s cubic-bezier(.4,1.2,.4,1), width .28s cubic-bezier(.4,1.2,.4,1), height .28s ease;
}
.seg-btn {
  position: relative;
  z-index: 1;
  padding: 7px 14px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .2s ease;
}
.seg-btn:hover:not(.active):not(:disabled) {
  color: var(--text-2);
}
.seg-btn.active {
  color: var(--accent);
}
.seg-btn.match.active {
  color: #b45309;
}
.seg-btn:disabled {
  color: var(--dim);
  cursor: default;
}
.seg-btn:focus-visible {
  outline: 2px solid var(--accent-line);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .seg-ind,
  .sports-page.has-acc-rail,
  .sp-acc-sidebar,
  .sp-acc-toggle,
  .sp-acc-rail,
  .sp-acc-panel {
    transition: none;
  }
}

.tf-btn.match.active { color: #b45309; background: rgba(217, 119, 6, 0.14); }
.tf-btn.match { color: #b45309; }
.inplay-toggle-label {
  margin: 0 0 0 auto;
}
.inplay-switch {
  position: relative;
  width: 52px;
  height: 32px;
  border-radius: 999px;
  background: #e9e9eb;
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(24, 24, 27, 0.05), inset 0 1px 2px rgba(24, 24, 27, 0.08);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, transform 0.1s ease;
}
.inplay-switch:hover {
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.16), inset 0 1px 2px rgba(24, 24, 27, 0.08);
}
.inplay-switch:active {
  transform: scale(0.97);
}
.inplay-switch:focus-visible {
  outline: 2px solid var(--accent-line);
  outline-offset: 3px;
}
.inplay-switch.on {
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 4px 12px rgba(37, 99, 235, 0.24);
}
.inplay-switch.tap {
  animation: inplay-switch-tap 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.inplay-switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(24, 24, 27, 0.23), 0 1px 2px rgba(24, 24, 27, 0.12), 0 0 0 0.5px rgba(24, 24, 27, 0.06);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), width 0.16s ease, box-shadow 0.18s ease;
  will-change: transform, width;
}
.inplay-switch:active .inplay-switch-knob {
  width: 30px;
}
.inplay-switch.on .inplay-switch-knob {
  transform: translateX(20px);
}
.inplay-switch.on:active .inplay-switch-knob {
  transform: translateX(18px);
}
.inplay-switch.tap .inplay-switch-knob {
  animation: inplay-knob-pop 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes inplay-switch-tap {
  0% { transform: scale(0.98); }
  55% { transform: scale(1.025); }
  100% { transform: scale(1); }
}
@keyframes inplay-knob-pop {
  0% { box-shadow: 0 2px 5px rgba(24, 24, 27, 0.22), 0 0 0 0 rgba(37, 99, 235, 0); }
  55% { box-shadow: 0 5px 12px rgba(24, 24, 27, 0.26), 0 0 0 5px rgba(37, 99, 235, 0.08); }
  100% { box-shadow: 0 3px 8px rgba(24, 24, 27, 0.23), 0 1px 2px rgba(24, 24, 27, 0.12), 0 0 0 0.5px rgba(24, 24, 27, 0.06); }
}
.sp-replay-note {
  display: flex; align-items: center; gap: 8px;
  margin: 0 22px; padding: 9px 12px;
  background: rgba(217, 119, 6, 0.07); border: 1px solid rgba(217, 119, 6, 0.28);
  border-radius: 6px; font-size: 11.5px; color: var(--text-2);
}
.sp-replay-note svg { color: #d97706; flex-shrink: 0; }

.sp-sel-table { padding: 4px 22px 8px; }
.sp-sel-head, .sp-sel-row {
  display: grid;
  grid-template-columns: 1fr 66px 66px 66px 116px 78px;
  align-items: center; gap: 8px;
}
.sp-sel-head {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  padding: 8px 4px; border-bottom: 1px solid var(--border);
}
.sp-sel-head span:not(:first-child), .sp-sel-row span:not(.sp-sel-name) { text-align: right; }
.sp-sel-row {
  width: 100%; padding: 11px 4px; border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 12px; color: var(--text-2); text-align: left;
  transition: background 0.12s;
}
.sp-sel-row:hover { background: var(--surface); }
.sp-sel-row.active { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.sp-sel-row.static { opacity: 0.55; cursor: default; }
.sp-sel-row.static:hover { background: transparent; }
.sp-sel-name { display: flex; align-items: center; gap: 9px; color: var(--text); font-family: var(--sans); font-size: 12.5px; }
.sp-back { color: var(--up); }
.sp-lay { color: var(--down); }
.sp-ltp { color: var(--text); font-family: var(--serif); font-size: 14px; }
.sp-matched { color: var(--muted); font-size: 10.5px; }
.sp-coming-soon {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sp-soon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.muted-soon {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mv-chip { font-family: var(--mono); font-size: 9.5px; padding: 2px 7px; border-radius: 999px; display: inline-block; }
.mv-chip.steam { color: var(--up); background: var(--up-dim); }
.mv-chip.drift { color: var(--down); background: var(--down-dim); }
.mv-chip.flat { color: var(--muted); background: rgba(161,161,170,0.1); }

.sp-evlog { padding: 0 22px 24px; }
.sp-ev-item {
  display: grid; grid-template-columns: 14px 56px 1fr auto; align-items: center; gap: 10px;
  padding: 9px 4px; border-bottom: 1px solid var(--border); font-size: 12px;
}
.sp-ev-dot { width: 8px; height: 8px; border-radius: 50%; }
.sp-ev-dot.up { background: var(--up); box-shadow: 0 0 6px var(--up-dim); }
.sp-ev-dot.down { background: var(--down); }
.sp-ev-dot.neu { background: var(--muted); }
.sp-ev-min { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.sp-ev-label { color: var(--text-2); }
.sp-ev-type { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }

.sp-depth { padding: 14px 16px 20px; }
.sp-depth-sel { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text); font-weight: 500; }
.sp-depth-ltp { margin-left: auto; font-family: var(--serif); font-size: 18px; font-weight: 500; }
.sp-ladder { margin-top: 14px; display: flex; flex-direction: column; }
.sp-lad-row {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center;
  padding: 7px 10px; font-family: var(--mono); font-size: 11.5px; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.sp-lad-bar { position: absolute; left: 0; top: 0; bottom: 0; opacity: 0.16; }
.sp-lad-row.lay .sp-lad-bar { background: var(--down); }
.sp-lad-row.back .sp-lad-bar { background: var(--up); }
.sp-lad-row.lay { color: var(--down); }
.sp-lad-row.back { color: var(--up); }
.sp-lad-price { position: relative; font-family: var(--serif); font-size: 13px; }
.sp-lad-amt { position: relative; color: var(--text-2); font-size: 10.5px; }
.sp-depth-legend { display: flex; justify-content: space-between; margin-top: 12px; font-family: var(--mono); font-size: 9.5px; color: var(--muted); }
.sp-depth-legend span { display: inline-flex; align-items: center; gap: 6px; }

.sp-info { padding: 6px 0 24px; }
.sp-info-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 16px; border-bottom: 1px solid var(--border); font-size: 12px; }
.sp-info-lbl { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.sp-info-val { color: var(--text); text-align: right; }

.sp-sporttabs { display: flex; align-items: center; gap: 8px; padding-top: 0; padding-bottom: 20px; flex-wrap: wrap; }
.sp-tabs.extras-tabs {
  position: static;
  z-index: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  width: auto;
  margin: 0;
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
  background: transparent;
}
.sp-sporttabs.sp-tabs {
  padding-top: 0;
  padding-left: clamp(18px, 2.5vw, 48px);
  padding-right: clamp(18px, 2.5vw, 48px);
  padding-bottom: 18px;
}
.sp-sporttab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border: 1px solid var(--border-2); border-radius: 999px;
  font-size: 12.5px; font-weight: 500; color: var(--text-2); background: var(--surface);
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04);
  transition: all .18s cubic-bezier(.4,1.1,.4,1);
}
.sp-sporttab:hover { border-color: var(--border-3); color: var(--text); transform: translateY(-1px); box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08); }
.sp-sporttab.active { color: #fff; border-color: var(--accent); background: var(--accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.18),0 2px 8px rgba(37,99,235,.28); transform: none; }
.sp-sporttab .ct { font-family: var(--mono); font-size: 10px; color: var(--dim); padding: 1px 6px; border-radius: 999px; background: var(--bg-2); }
.sp-sporttab.active .ct { color: #fff; background: rgba(255, 255, 255, 0.22); }
.sp-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all .18s cubic-bezier(.4,1.1,.4,1);
}
.sp-filter-toggle:hover {
  border-color: var(--border-3);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}
.sp-filter-toggle.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: none;
}
.sp-filter-toggle span {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--muted);
  font-size: 10px;
}
.sp-filter-toggle.active span {
  background: var(--surface);
  color: var(--accent);
}

.sp-league-selector {
  padding-left: clamp(18px, 2.5vw, 48px);
  padding-right: clamp(18px, 2.5vw, 48px);
  padding-bottom: 20px;
}
.sp-league-selector .sp-tabs {
  width: 100%;
}
.sp-league-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sp-league-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
}
.sp-league-option:hover { border-color: var(--border-3); color: var(--text); }
.sp-league-option.active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}
.sp-league-option span {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
}
.sp-league-option.active span { color: #fff; background: rgba(255,255,255,.22); }
.sp-season-dropdown {
  display: flex;
  align-items: center;
  padding-top: 10px;
}
.sp-season-select {
  min-width: 220px;
}
.sp-gameweek-selector {
  display: flex;
  align-items: center;
  padding-left: clamp(18px, 2.5vw, 48px);
  padding-right: clamp(18px, 2.5vw, 48px);
  padding-bottom: 18px;
}
.sp-gameweek-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.sp-gameweek-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sp-gameweek-select {
  min-width: 164px;
  padding: 8px 34px 8px 12px;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
}
.sp-gameweek-select:hover {
  border-color: var(--border-3);
}
.sp-gameweek-select:focus {
  border-color: var(--accent-line);
  outline: 2px solid var(--accent-line);
  outline-offset: 2px;
}

.sp-league-workspace {
  display: block;
  padding-left: clamp(18px, 2.5vw, 48px);
  padding-right: clamp(18px, 2.5vw, 48px);
}
.sp-league-workspace > .sp-comps {
  padding-left: 0;
  padding-right: 0;
}
.sp-comps { display: flex; flex-direction: column; gap: 22px; }
.sp-comp {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.sp-comp-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
.sp-comp-id { display: flex; align-items: center; gap: 12px; }
.sp-comp-name { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.sp-comp-meta { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 2px; }

.sp-row-headers, .sp-row {
  display: grid;
  grid-template-columns: 128px minmax(220px, 1fr) minmax(300px, 360px) 132px 104px 26px;
  align-items: center;
  gap: 20px;
}
.sp-row-headers {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  padding: 10px 20px; border-bottom: 1px solid var(--border); background: var(--bg);
}
.sp-rows { overflow: hidden; }
.sp-row {
  width: 100%; text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--border);
  background: var(--surface); transition: background 0.12s;
}
.sp-row:last-child { border-bottom: 0; }
.sp-row:hover { background: var(--surface-2); }
.sp-row.good-bet {
  background:
    linear-gradient(90deg, rgba(22, 163, 74, var(--good-bet-alpha, 0.14)), rgba(22, 163, 74, var(--good-bet-soft-alpha, 0.04)) 58%, var(--surface) 100%);
  box-shadow: inset 3px 0 0 rgba(22, 163, 74, var(--good-bet-border-alpha, 0.38));
}
.sp-row.good-bet:hover {
  background:
    linear-gradient(90deg, rgba(22, 163, 74, var(--good-bet-alpha, 0.18)), rgba(22, 163, 74, var(--good-bet-soft-alpha, 0.06)) 58%, var(--surface-2) 100%);
}
.sp-row-when { display: flex; flex-direction: column; gap: 3px; }
.sp-row-status { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.08em; padding: 1px 5px; border-radius: 3px; width: fit-content; }
.sp-row-status.settled { color: var(--up); background: var(--up-dim); }
.sp-row-status.upcoming { color: var(--accent); background: var(--accent-dim); }
.sp-row-date { font-family: var(--mono); font-size: 11px; color: var(--text-2); }
.sp-row-time { font-family: var(--mono); font-size: 9.5px; color: var(--dim); }
.sp-row-teams { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sp-row-tline { display: flex; align-items: center; gap: 10px; }
.sp-row-team { font-size: 13px; color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-row-sc { font-family: var(--serif); font-size: 13px; color: var(--text); margin-left: auto; }
.sp-row-cric { font-family: var(--mono); font-size: 10px; color: var(--up); margin-top: 1px; }
.sp-row-odds { display: grid; gap: 6px; }
.sp-row-odds.c3 { grid-template-columns: repeat(3, 1fr); }
.sp-row-odds.c2 { grid-template-columns: repeat(2, 1fr); }
.sp-row-odds.c4 { grid-template-columns: repeat(2, 1fr); }
.sp-odds-cell {
  display: flex; flex-direction: column; gap: 3px; align-items: flex-start;
  border: 1px solid var(--border); border-radius: 5px; padding: 5px 8px; background: var(--bg);
  width: 100%;
  min-width: 0;
  text-align: left;
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease, transform .14s ease;
}
.sp-odds-cell:hover:not(:disabled) {
  border-color: var(--accent-line);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}
.sp-odds-cell.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.sp-odds-cell:disabled {
  cursor: default;
  opacity: 0.62;
}
.sp-odds-cell.winner {
  border-color: rgba(22, 163, 74, 0.36);
  background: rgba(22, 163, 74, 0.08);
}
.sp-odds-cell.winner.selected {
  border-color: rgba(22, 163, 74, 0.72);
  background: rgba(22, 163, 74, 0.13);
}
.sp-odds-lbl { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 9px; color: var(--muted); letter-spacing: 0.04em; }
.sp-odds-val { font-family: var(--serif); font-size: 14px; font-weight: 500; color: var(--text); }
.sp-odds-winner {
  margin-top: 1px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.14);
  color: #166534;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sp-row-matched { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; }
.sp-row-matched-v { font-family: var(--serif); font-size: 13px; color: var(--text); }
.sp-row-matched-l { font-family: var(--mono); font-size: 8.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.sp-row-actions { display: flex; justify-content: flex-end; }
.sp-row-go { color: var(--dim); display: grid; place-items: center; }
.sp-row:hover .sp-row-go { color: var(--accent); }
.sp-muted-cell { color: var(--muted); font-family: var(--mono); font-size: 10.5px; }

.sp-acc-sidebar {
  position: fixed;
  top: 60px;
  right: 0;
  bottom: 0;
  width: 380px;
  z-index: 24;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  background: var(--surface);
  overflow: hidden;
  box-shadow: -10px 0 30px rgba(15, 23, 42, 0.07);
  animation: sp-acc-in .34s cubic-bezier(.2, .8, .2, 1);
  transition: width 280ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease;
}
.sp-acc-sidebar.collapsed { width: 56px; }
@keyframes sp-acc-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.sp-acc-toggle {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border: none;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  line-height: 1;
  transition: color 0.18s ease, transform 0.22s ease, background 0.18s ease;
}
.sp-acc-toggle:hover {
  color: var(--text);
  background: var(--bg-2);
}
.sp-acc-collapse:hover {
  transform: translateX(1px);
}
.sp-acc-rail {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 14px 0;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0) 120px),
    var(--surface);
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity 180ms ease, transform 260ms cubic-bezier(.2,.8,.2,1);
}
.sp-acc-sidebar.collapsed .sp-acc-rail {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.sp-acc-rail-exp {
  transform: rotate(180deg);
}
.sp-acc-rail:hover .sp-acc-rail-exp {
  color: var(--text);
  background: var(--bg-2);
  transform: rotate(180deg) translateX(1px);
}
.sp-acc-rail-ic {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.32);
}
.sp-acc-rail-ct {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}
.sp-acc-rail-label {
  margin-top: 2px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.sp-league-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sp-acc-panel {
  width: 380px;
  min-width: 380px;
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 180ms ease, transform 260ms cubic-bezier(.2,.8,.2,1);
}
.sp-acc-sidebar.collapsed .sp-acc-panel {
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
}
.sp-acc-sidebar .sp-acc-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0));
}
.sp-acc-head-ic {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.32);
}
.sp-acc-head-id { flex: 1 1 auto; min-width: 0; }
.sp-acc-head-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.1;
}
.sp-acc-head-sub {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.sp-acc-clear {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sp-acc-clear:hover { color: var(--down); }

/* bold "what you could have won" hero */
.sp-acc-hero {
  margin: 16px 18px 0;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.sp-acc-hero.win {
  border-color: rgba(22, 163, 74, 0.4);
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(22, 163, 74, 0.16), transparent 65%),
    linear-gradient(180deg, rgba(22, 163, 74, 0.1), rgba(22, 163, 74, 0.03));
}
.sp-acc-hero.lost {
  border-color: rgba(220, 38, 38, 0.35);
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.08), rgba(220, 38, 38, 0.02));
}
.sp-acc-hero-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.sp-acc-hero.win .sp-acc-hero-label { color: var(--up); }
.sp-acc-hero.lost .sp-acc-hero-label { color: var(--down); }
.sp-acc-hero-payout {
  margin-top: 6px;
  font-family: var(--serif);
  font-variant-numeric: tabular-nums;
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--text);
}
.sp-acc-hero-delta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
}
.sp-acc-hero-delta .up { color: var(--up); }
.sp-acc-hero-delta .down { color: var(--down); }
.sp-acc-hero-dot { color: var(--dim); font-weight: 400; }
.sp-acc-hero-hint {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
}
.sp-acc-hero-meta {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}
.sp-acc-hero-meta b { color: var(--text); font-weight: 600; }
.sp-acc-leg-head {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 2px;
}
.sp-acc-side-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0 0 16px;
  background: var(--surface);
}
.sp-acc-summary-card {
  background: var(--bg);
}
.sp-acc-summary-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.sp-acc-summary-odds {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.sp-acc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  margin: 16px 18px 0;
  padding: 22px 18px;
  border: 1px dashed var(--border-2);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
}
.sp-acc-empty-ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 4px;
}
.sp-acc-empty b {
  color: var(--text);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}
.sp-acc-empty p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  max-width: 260px;
}
.sp-acc-leg-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 0;
  margin-bottom: 14px;
}
.sp-acc-side-leg {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  gap: 9px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
}
.sp-acc-side-leg-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sp-acc-side-leg-main b {
  color: var(--text);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-acc-side-leg-main small,
.sp-acc-side-leg-main i {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-acc-side-leg-main i { color: var(--dim); }
.sp-acc-side-odds {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.sp-acc-side-leg button {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}
.sp-acc-side-leg button:hover { color: var(--down); }
.sp-acc-result-pill {
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}
.sp-acc-side-leg.won .sp-acc-result-pill {
  background: var(--up-dim);
  color: var(--up);
}
.sp-acc-side-leg.lost .sp-acc-result-pill {
  background: rgba(220, 38, 38, 0.08);
  color: var(--down);
}
.sp-acc-stake {
  margin: 16px 0 4px;
  padding: 0 18px;
}
.sp-acc-stake .calc-stake-row {
  align-items: flex-start;
  flex-direction: column;
}
.sp-acc-stake .calc-stake-field {
  width: 100%;
  min-width: 0;
}
.sp-acc-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 20px;
}
.sp-acc-totals div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
}
.sp-acc-totals span {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sp-acc-totals b {
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}
.sp-acc-totals b.up { color: var(--up); }
.sp-acc-totals b.down { color: var(--down); }
.sp-acc-side-foot {
  margin: 14px 18px 4px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.45;
}

.sp-home-row {
  display: grid; grid-template-columns: 52px 1fr auto auto; gap: 12px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--border); width: 100%; text-align: left; background: transparent;
  border-left: 0; border-right: 0; border-top: 0;
}
.sp-home-row:last-child { border-bottom: 0; }
.sp-home-crest { width: 30px; height: 30px; border-radius: 6px; border: 1px solid; display: grid; place-items: center; font-family: var(--mono); font-size: 9px; font-weight: 700; }
.sp-home-teams { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sp-home-match { font-size: 12px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-home-comp { font-family: var(--mono); font-size: 9.5px; color: var(--muted); }
.sp-home-odds { display: flex; gap: 8px; }
.sp-home-odds span { font-family: var(--serif); font-size: 12.5px; color: var(--text-2); }
.sp-home-when { font-family: var(--mono); font-size: 10px; color: var(--muted); text-align: right; }

.sp-empty-state {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px dashed var(--border-2);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 18px;
  color: var(--text-2);
}
.sp-comp > .sp-empty-state {
  margin: 18px 20px 20px;
}
.sp-empty-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  flex-shrink: 0;
}
.sp-empty-state h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}
.sp-empty-state p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.5;
  max-width: 660px;
}
.sp-chart-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 28px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-align: center;
  border: 1px dashed var(--border-2);
  border-radius: var(--r-md);
  background: var(--surface);
}

.sp-acc-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 18px;
}
.sp-acc-date {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.sp-acc-date input {
  height: 34px;
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  background: var(--surface);
  padding: 0 10px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 11.5px;
}
.sp-acc-leg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.sp-acc-leg span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sp-acc-leg b {
  color: var(--text);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sp-acc-leg small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  margin-top: 2px;
}
.sp-acc-leg button {
  flex-shrink: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}
.sp-acc-leg button:hover { color: var(--down); }
.sp-acc-result {
  border: 1px solid var(--accent-line);
  border-radius: var(--r-md);
  background: var(--accent-dim);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sp-acc-result span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.sp-acc-result b {
  font-size: 28px;
  color: var(--text);
  line-height: 1;
}
.sp-acc-result small {
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 980px) {
  .sp-row-headers { display: none; }
  .sp-row {
    grid-template-columns: 76px 1fr 26px;
  }
  .sp-row-odds,
  .sp-row-matched {
    grid-column: 2 / -1;
  }
  .sp-row-actions {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }
  .sp-sel-head,
  .sp-sel-row {
    grid-template-columns: minmax(160px, 1fr) repeat(3, 58px);
  }
  .sp-sel-head span:nth-child(5),
  .sp-sel-head span:nth-child(6),
  .sp-sel-row span:nth-child(5),
  .sp-sel-row span:nth-child(6) {
    display: none;
  }
}

/* ============================================================ */
/* === SPORTMONKS FIXTURE HUB (tabbed match page) ============= */
/* ============================================================ */
.fx-page { padding: 0 0 56px; }
.fx-pad { padding: 0 clamp(18px, 2.5vw, 40px); }

/* header */
.fx-head {
  padding: 26px clamp(18px, 2.5vw, 40px) 0;
}
.fx-head-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.fx-head-breadcrumb .sep { color: var(--dim); }
.fx-head-badge-inline {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--muted);
}
.fx-head-badge-inline.finished { color: var(--up); border-color: rgba(22,163,74,0.34); background: var(--up-dim); }
.fx-head-badge-inline.live { color: var(--down); border-color: rgba(220,38,38,0.34); background: var(--down-dim); }
.fx-head-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(16px, 4vw, 56px);
  max-width: 880px;
}
.fx-head-team {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.fx-head-team.away { flex-direction: row-reverse; text-align: right; }
.fx-head-name {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
}
.fx-head-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
.fx-head-main.slim { align-items: center; }
.fx-head-vsmark {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--dim);
  letter-spacing: 0.08em;
}
.fx-head-score {
  font-family: var(--serif);
  font-variant-numeric: tabular-nums;
  font-size: 46px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}
.fx-head-score .dash { color: var(--dim); font-weight: 400; }
.fx-head-vs {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--dim);
  letter-spacing: 0.06em;
  padding: 8px 0;
}
.fx-head-badge {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--muted);
}
.fx-head-badge.finished { color: var(--up); border-color: rgba(22,163,74,0.34); background: var(--up-dim); }
.fx-head-badge.live { color: var(--down); border-color: rgba(220,38,38,0.34); background: var(--down-dim); }
.fx-head-ht {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
  text-align: center;
  white-space: nowrap;
}
.fx-head-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}
.fx-head-meta span { display: inline-flex; align-items: center; gap: 6px; }
.fx-head-meta .dot { width: 7px; height: 7px; border-radius: 50%; }
.fx-head-meta svg { color: var(--dim); }

/* tab bar */
.fx-tabbar {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-top: 22px;
  padding: 0 clamp(18px, 2.5vw, 40px);
  border-bottom: 1px solid var(--border);
}
.fx-tabbar::-webkit-scrollbar { display: none; }
.fx-tab {
  flex: 1 1 0;
  position: relative;
  padding: 13px 12px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s ease, border-color .15s ease;
}
.fx-tab:hover { color: var(--text); }
.fx-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.fx-tab-body { padding: 24px clamp(18px, 2.5vw, 40px) 0; }

/* shared card */
.fx-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}
.fx-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.fx-card-head > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.fx-card-head svg { color: var(--dim); }
.fx-card-meta {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dim);
}
.fx-card-foot {
  padding: 11px 16px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
}
.fx-link {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.fx-card-accent { border-top: 2px solid var(--border-2); transition: transform .18s cubic-bezier(.4,1.1,.4,1), box-shadow .2s ease; }
.fx-card-accent:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(15,23,42,0.08); }
.fx-card-accent.odds { border-top-color: var(--accent); }
.fx-card-accent.pred { border-top-color: #7c3aed; }
.fx-card-accent.stats { border-top-color: #0d9488; }
.fx-card-accent.events { border-top-color: #d97706; }
.fx-ch-title { display: inline-flex; align-items: center; gap: 9px; }
.fx-ch-ic { flex: 0 0 auto; width: 25px; height: 25px; border-radius: 7px; display: grid; place-items: center; }
.fx-ch-ic.odds { background: var(--accent-dim); color: var(--accent); }
.fx-ch-ic.pred { background: rgba(124,58,237,0.12); color: #7c3aed; }
.fx-ch-ic.stats { background: rgba(13,148,136,0.12); color: #0d9488; }
.fx-ch-ic.events { background: rgba(217,119,6,0.13); color: #d97706; }
.fx-card-accent.odds .fx-card-head { background: linear-gradient(180deg, var(--accent-dim), transparent); }
.fx-card-accent.pred .fx-card-head { background: linear-gradient(180deg, rgba(124,58,237,0.07), transparent); }
.fx-card-accent.stats .fx-card-head { background: linear-gradient(180deg, rgba(13,148,136,0.07), transparent); }
.fx-card-accent.events .fx-card-head { background: linear-gradient(180deg, rgba(217,119,6,0.08), transparent); }
.fx-crest {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  border: 1px solid;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
}
.fx-crest-btn {
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
}
.fx-crest-btn:hover .fx-crest {
  border-color: var(--accent) !important;
  box-shadow: 0 8px 18px rgba(37,99,235,0.14);
}
.fx-crest-btn:focus-visible {
  outline: 2px solid var(--accent-line);
  outline-offset: 3px;
}
.fx-crest img {
  max-width: 38px;
  max-height: 38px;
  object-fit: contain;
  display: block;
}
.fx-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
  padding: 54px 24px;
  color: var(--muted);
  font-size: 13px;
  max-width: 520px;
  margin: 0 auto;
}

/* overview */
.fx-overview { display: flex; flex-direction: column; gap: 16px; }
.fx-ov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}
.fx-score-card { padding: 22px; }
.fx-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(14px, 4vw, 40px);
}
.fx-sb-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
}
.fx-sb-name { font-family: var(--serif); font-size: 16px; font-weight: 500; color: var(--text); }
.fx-sb-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fx-sb-score {
  font-family: var(--serif);
  font-variant-numeric: tabular-nums;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  display: flex;
  gap: 10px;
}
.fx-sb-score span { color: var(--dim); }
.fx-sb-vs { font-family: var(--mono); font-size: 18px; color: var(--dim); }
.fx-sb-status {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}
.fx-sb-status.finished { color: var(--up); }
.fx-sb-ht { font-family: var(--mono); font-size: 10px; color: var(--dim); white-space: nowrap; }
.fx-result-info {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}
.fx-scorers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  margin-top: 12px;
}
.fx-scorer { font-size: 11.5px; color: var(--muted); }
.fx-scorer b { color: var(--text); font-weight: 600; }
.fx-scorers-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 8px 18px;
  margin-top: 14px;
}
.fx-scorers-col { display: flex; flex-direction: column; gap: 4px; }
.fx-scorers-col.home { align-items: flex-start; text-align: left; }
.fx-scorers-col.away { align-items: flex-end; text-align: right; }
.fx-scorers-ball { align-self: center; font-size: 13px; opacity: 0.7; }
.fx-cards-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 6px 18px;
  margin-top: 12px;
}
.fx-cards-col { display: flex; flex-direction: column; gap: 4px; }
.fx-cards-col.home { align-items: flex-start; text-align: left; }
.fx-cards-col.away { align-items: flex-end; text-align: right; }
.fx-cardline { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.fx-card-chip { width: 8px; height: 11px; border-radius: 2px; flex: 0 0 auto; }
.fx-card-chip.yellow { background: #eab308; }
.fx-card-chip.red { background: var(--down); }
.fx-cards-mid {
  align-self: center;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.fx-sb-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--muted);
}
.fx-sb-meta span { display: inline-flex; align-items: center; gap: 6px; }
.fx-sb-meta svg { color: var(--dim); }
.fx-ov-odds { display: flex; gap: 8px; padding: 14px 16px; }
.fx-ov-odd {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  text-align: center;
}
.fx-ov-odd-l { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-ov-odd b { font-family: var(--mono); font-size: 18px; font-weight: 600; color: var(--text); }
.fx-ov-odd.win { border-color: rgba(22,163,74,0.45); background: var(--up-dim); }
.fx-ov-odd.win .fx-ov-odd-l { color: var(--up); }
.fx-ov-odd.win b { color: var(--up); }
.fx-win-dot { font-style: normal; color: var(--up); font-weight: 700; margin-right: 4px; }
.fx-odds-table tr.winner .fx-odds-sel { color: var(--up); font-weight: 700; }
.fx-odds-px.win { color: var(--up); font-weight: 700; background: var(--up-dim); border-radius: 6px; }

/* probability bar */
.fx-prob-bar {
  display: flex;
  height: 30px;
  border-radius: 8px;
  overflow: hidden;
  margin: 16px 16px 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}
.fx-prob-bar span { display: grid; place-items: center; color: #fff; min-width: 30px; }
.fx-prob-bar .h { background: var(--accent); }
.fx-prob-bar .d { background: #94a3b8; }
.fx-prob-bar .a { background: var(--up); }
.fx-prob-key {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px 16px;
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dim);
}

/* stat bars */
.fx-statlist { display: flex; flex-direction: column; gap: 13px; padding: 16px; }
.fx-statlist.big { gap: 16px; padding: 20px; }
.fx-statbar { display: flex; flex-direction: column; gap: 6px; }
.fx-statbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.fx-statbar-top b { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--text-2); font-weight: 500; min-width: 34px; }
.fx-statbar-top b.lead { color: var(--accent); font-weight: 700; }
.fx-statbar-top span { font-size: 10.5px; letter-spacing: 0.02em; }
.fx-statbar-track { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--faint); gap: 2px; }
.fx-statbar-track .h { background: var(--accent); border-radius: 3px 0 0 3px; }
.fx-statbar-track .a { background: #94a3b8; border-radius: 0 3px 3px 0; margin-left: auto; }

/* key events */
.fx-keyev { display: flex; flex-direction: column; }
.fx-keyev-row { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--border); }
.fx-keyev-row:first-child { border-top: 0; }
.fx-ev-ic { flex: 0 0 auto; width: 20px; text-align: center; font-size: 13px; }
.fx-ev-min { font-family: var(--mono); font-size: 11px; color: var(--dim); min-width: 26px; }
.fx-ev-txt { font-size: 12px; color: var(--muted); }
.fx-ev-txt b { color: var(--text); font-weight: 600; }
.fx-keyev-row .fx-ev-txt { flex: 1; min-width: 0; }
.fx-ev-side {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg);
}

/* odds tab */
.fx-odds { display: flex; flex-direction: column; gap: 14px; }
.fx-odds-layout {
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.fx-odds-side { display: flex; flex-direction: column; gap: 10px; }
.fx-mkt-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 2px;
}
.fx-mkt-item {
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .15s ease, background .15s ease;
}
.fx-mkt-item:hover { border-color: var(--border-3); }
.fx-mkt-item.active {
  border-color: var(--accent-line);
  background: var(--accent-dim);
  box-shadow: inset 2px 0 0 var(--accent);
}
.fx-mkt-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fx-mkt-item-name { font-size: 13px; font-weight: 600; color: var(--text); }
.fx-mkt-item-cat {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg);
}
.fx-mkt-item.active .fx-mkt-item-cat { background: var(--surface); }
.fx-mkt-item-foot { font-family: var(--mono); font-size: 9.5px; color: var(--dim); }
.fx-mkt-empty { padding: 20px; text-align: center; color: var(--muted); font-size: 12px; }
.fx-odds-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fx-odds-mainbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fx-odds-mainbar-l { display: flex; align-items: center; gap: 9px; min-width: 0; }
.fx-odds-mainbar-l b { font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--text); }
.fx-odds-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.fx-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border-2);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  min-width: 200px;
}
.fx-search:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-dim); }
.fx-search svg { color: var(--accent); }
.fx-search input { flex: 1; min-width: 0; font-size: 13px; color: var(--text); background: transparent; }
.fx-chiprow { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-chip {
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.fx-chip:hover { border-color: var(--border-3); color: var(--text); }
.fx-chip.active { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); font-weight: 600; }
.fx-odds-controls-r { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.fx-select {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border-2);
  border-radius: 9px;
  background: var(--surface);
  font-size: 12px;
  color: var(--text);
  font-family: var(--mono);
}
.fx-odds-note { font-family: var(--mono); font-size: 10.5px; color: var(--dim); letter-spacing: 0.03em; }
.fx-mkt { display: flex; flex-direction: column; }
.fx-mkt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.fx-mkt-name { font-family: var(--serif); font-size: 14.5px; font-weight: 600; color: var(--text); }
.fx-mkt-cat {
  margin-left: 9px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg);
}
.fx-line-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.fx-line-tab {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}
.fx-line-tab.active { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }
.fx-mkt-scroll { overflow-x: auto; }
.fx-odds-table { width: 100%; border-collapse: collapse; }
.fx-odds-table th {
  text-align: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.fx-odds-table th:first-child { text-align: left; padding-left: 16px; position: sticky; left: 0; background: var(--surface); }
.fx-odds-table td { padding: 9px 8px; text-align: center; border-bottom: 1px solid var(--faint); }
.fx-odds-table tr:last-child td { border-bottom: 0; }
.fx-odds-sel {
  text-align: left !important;
  padding-left: 16px !important;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  position: sticky;
  left: 0;
  background: var(--surface);
}
.fx-odds-px { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); min-width: 56px; }
.fx-odds-px.best { color: var(--up); font-weight: 700; background: var(--up-dim); border-radius: 6px; }
.fx-odds-px.susp { color: var(--dim); font-size: 9px; letter-spacing: 0.06em; }
.fx-odds-na { color: var(--faint); }

/* lineups */
.fx-lineups { display: flex; flex-direction: column; gap: 16px; }
.fx-pitch-card { padding: 0; }
.fx-pitch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.fx-pitch-head b { color: var(--text); font-family: var(--serif); font-weight: 600; }
.fx-pitch-head i { font-family: var(--mono); font-style: normal; font-size: 11px; color: var(--accent); }
.fx-pitch-vs { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.fx-pitch {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  background:
    linear-gradient(90deg, rgba(22,163,74,0.07), rgba(22,163,74,0.04) 50%, rgba(22,163,74,0.07)),
    repeating-linear-gradient(90deg, rgba(22,163,74,0.05) 0 9.09%, rgba(22,163,74,0.09) 9.09% 18.18%);
  border-radius: 0 0 14px 14px;
}
.fx-pitch-line { position: absolute; left: 50%; top: 4%; bottom: 4%; width: 2px; background: rgba(22,163,74,0.22); transform: translateX(-1px); }
.fx-pitch-circle { position: absolute; left: 50%; top: 50%; width: 86px; height: 86px; border: 2px solid rgba(22,163,74,0.22); border-radius: 50%; transform: translate(-50%, -50%); }
.fx-pdot {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 64px;
}
.fx-pdot-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 6px rgba(15,23,42,0.25);
}
.fx-pdot.home .fx-pdot-mark { background: var(--accent); }
.fx-pdot.away .fx-pdot-mark { background: #475569; }
.fx-pdot-cap {
  position: absolute;
  top: -4px; right: -4px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--warn);
  color: #fff;
  font-size: 7px;
  font-style: normal;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--surface);
}
.fx-pdot-name {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255,255,255,0.82);
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fx-lineup-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fx-lineup-col { display: flex; flex-direction: column; }
.fx-coach { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.fx-ll-group {
  padding: 9px 16px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.fx-ll-row { display: flex; align-items: center; gap: 11px; padding: 9px 16px; border-bottom: 1px solid var(--faint); }
.fx-ll-row.sub { opacity: 0.78; }
.fx-ll-num { font-family: var(--mono); font-size: 11px; color: var(--dim); min-width: 20px; text-align: center; }
.fx-ll-name { flex: 1; font-size: 13px; color: var(--text); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.fx-cap { font-style: normal; font-family: var(--mono); font-size: 8px; font-weight: 700; color: var(--warn); border: 1px solid var(--warn); border-radius: 3px; padding: 0 3px; }
.fx-ll-pos { font-family: var(--mono); font-size: 9.5px; color: var(--muted); min-width: 26px; text-align: center; }
.fx-ll-rating {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  min-width: 34px;
  text-align: center;
}
.fx-ll-rating.hot { color: #fff; background: var(--up); }
.fx-ll-rating.good { color: var(--up); background: var(--up-dim); }
.fx-ll-rating.ok { color: var(--text-2); background: var(--faint); }
.fx-ll-rating.low { color: var(--down); background: var(--down-dim); }

/* timeline */
.fx-timeline { display: flex; flex-direction: column; gap: 14px; }
.fx-tl-controls { display: flex; flex-wrap: wrap; gap: 16px; }
.fx-tl-list { display: flex; flex-direction: column; }
.fx-tl-row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--faint); }
.fx-tl-row:last-child { border-bottom: 0; }
.fx-tl-row.away { flex-direction: row-reverse; text-align: right; }
.fx-tl-min { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--accent); min-width: 36px; }
.fx-tl-ic { width: 26px; text-align: center; font-size: 15px; }
.fx-tl-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.fx-tl-body b { font-size: 13px; color: var(--text); font-weight: 600; }
.fx-tl-body small { font-size: 11px; color: var(--muted); }
.fx-tl-body i { font-style: normal; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dim); margin-top: 2px; }

/* statistics */
.fx-stats { padding: 4px 0; }

/* player stats */
.fx-pstats { display: flex; flex-direction: column; gap: 14px; }
.fx-pstats-hint { font-family: var(--mono); font-size: 10px; color: var(--dim); }
.fx-pstats-scroll { overflow-x: auto; }
.fx-pstats-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.fx-pstats-table th {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
  padding: 11px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.fx-pstats-table th.l { text-align: left; padding-left: 16px; }
.fx-pstats-table th.sortable { cursor: pointer; }
.fx-pstats-table th.sortable:hover { color: var(--text); }
.fx-pstats-table th.on { color: var(--accent); }
.fx-pstats-table td { padding: 9px 8px; text-align: center; border-bottom: 1px solid var(--faint); font-size: 12px; color: var(--text-2); }
.fx-pstats-table td.l { text-align: left; padding-left: 16px; color: var(--text); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.fx-pstats-table td.on { color: var(--text); font-weight: 600; }
.fx-pstats-table tr:last-child td { border-bottom: 0; }
.fx-pstats-table tr.mom { background: var(--accent-dim); }
.fx-ps-num { font-family: var(--mono); font-size: 10px; color: var(--dim); }
.fx-ps-pos { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.fx-mom { font-style: normal; font-family: var(--mono); font-size: 8px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent-line); border-radius: 3px; padding: 1px 4px; }

/* predictions */
.fx-preds { display: flex; flex-direction: column; gap: 16px; }
.fx-pred-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font-size: 12px;
  color: var(--muted);
}
.fx-pred-note svg { color: var(--accent); }
.fx-twobar { display: flex; height: 32px; border-radius: 8px; overflow: hidden; margin: 16px; font-family: var(--mono); font-size: 11px; font-weight: 600; }
.fx-twobar span { display: grid; place-items: center; color: #fff; }
.fx-twobar .yes { background: var(--up); }
.fx-twobar .no { background: #94a3b8; }
.fx-ou-row { display: flex; align-items: center; gap: 10px; }
.fx-ou-l { font-size: 11.5px; color: var(--muted); min-width: 64px; }
.fx-ou-track { flex: 1; height: 7px; border-radius: 4px; background: var(--faint); overflow: hidden; }
.fx-ou-track span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.fx-ou-row b { font-family: var(--mono); font-size: 11px; color: var(--text); min-width: 34px; text-align: right; }
.fx-cs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; padding: 16px; }
.fx-cs-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); }
.fx-cs-cell b { font-family: var(--mono); font-size: 14px; color: var(--text); }
.fx-cs-cell span { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.fx-vb-list { display: flex; flex-direction: column; }
.fx-vb-row { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--faint); }
.fx-vb-row:first-child { border-top: 0; }
.fx-vb-ic { color: var(--warn); font-size: 14px; }
.fx-vb-row b { font-size: 13px; color: var(--text); font-weight: 600; }
.fx-vb-row small { font-family: var(--mono); font-size: 10.5px; color: var(--up); margin-left: auto; }

/* context */
.fx-kv-list { display: flex; flex-direction: column; padding: 6px 0; }
.fx-kv { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 16px; }
.fx-kv span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dim); }
.fx-kv b { font-size: 13px; color: var(--text); font-weight: 500; text-align: right; }
.fx-kv small { font-size: 10px; color: var(--muted); margin-left: 5px; }
.fx-tv-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; }
.fx-tv-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  font-size: 12px;
  color: var(--text-2);
}
.fx-tv-chip i { font-style: normal; font-family: var(--mono); font-size: 9px; color: var(--dim); text-transform: uppercase; }

/* commentary */
.fx-comm { display: flex; flex-direction: column; }
.fx-comm-row { display: flex; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--faint); }
.fx-comm-row:last-child { border-bottom: 0; }
.fx-comm-row.imp { background: var(--bg); }
.fx-comm-row.goal { background: var(--up-dim); }
.fx-comm-min { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--muted); min-width: 36px; }
.fx-comm-txt { font-size: 13px; line-height: 1.5; color: var(--text-2); }
.fx-comm-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--up);
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
}

/* raw */
.fx-raw { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.fx-raw .fx-card { width: 100%; }
.fx-raw-relations { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 16px; }
.fx-raw-json {
  width: 100%;
  max-height: 460px;
  overflow: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0f172a;
  color: #cbd5e1;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 880px) {
  .fx-lineup-cols { grid-template-columns: 1fr; }
  .fx-head-name { font-size: 19px; }
  .fx-pdot-name { display: none; }
  .fx-pdot { width: 34px; }
  .fx-odds-layout { grid-template-columns: 1fr; }
  .fx-mkt-list { max-height: 280px; }
}
