/* SportAPI Table — a price board: time, the pair, then full-time and first-half columns.
   Every selector is prefixed and scoped under .sportapi-wrap, so a theme cannot reach in
   and nothing here leaks out. */

.sportapi-wrap {
  --sportapi-ink: #e8eee9;
  --sportapi-ink-2: #93a097;
  --sportapi-ink-3: #5f6b63;
  --sportapi-bg: #0e100d;
  --sportapi-row-alt: #15180f;
  --sportapi-line: #242a22;
  --sportapi-green: #2fc24a;
  --sportapi-green-deep: #10351b;
  --sportapi-green-band: #16401f;
  --sportapi-red: #e2574c;
  --sportapi-radius: 12px;
  --sportapi-mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, monospace;

  /* one price cell, and the wider one that carries a handicap line */
  --sportapi-col: 48px;
  --sportapi-col-wide: 60px;
  --sportapi-time: 58px;
  --sportapi-scorew: 62px;

  box-sizing: border-box;
  margin: 0 0 1.5rem;
  overflow: hidden;
  border: 1px solid var(--sportapi-line);
  border-radius: var(--sportapi-radius);
  background: var(--sportapi-bg);
  color: var(--sportapi-ink);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
}

.sportapi-wrap *,
.sportapi-wrap *::before,
.sportapi-wrap *::after { box-sizing: border-box; }

/* ---------- toolbar ---------- */

.sportapi-glow { display: none; }

.sportapi-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--sportapi-line);
}

.sportapi-title { font-size: 1rem; font-weight: 700; }

.sportapi-tabs {
  display: flex;
  gap: 4px;
  max-width: 100%;
  padding: 3px;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid var(--sportapi-line);
  border-radius: 999px;
  background: #121510;
}

.sportapi-tabs::-webkit-scrollbar { display: none; }

.sportapi-tab {
  margin: 0;
  padding: 6px 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--sportapi-ink-2);
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease;
}

.sportapi-tab:hover { color: var(--sportapi-ink); background: #1c2119; }
.sportapi-tab:focus-visible { outline: 2px solid var(--sportapi-green); outline-offset: 2px; }
.sportapi-tab-on, .sportapi-tab-on:hover { background: var(--sportapi-green); color: #06180c; }

.sportapi-tools { display: flex; gap: 10px; align-items: center; margin-left: auto; }

.sportapi-search {
  width: clamp(130px, 28vw, 220px);
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid var(--sportapi-line);
  border-radius: 999px;
  background: #121510;
  color: var(--sportapi-ink);
  font: inherit;
  font-size: .88rem;
}

.sportapi-search::placeholder { color: var(--sportapi-ink-3); }
.sportapi-search:focus { outline: none; border-color: var(--sportapi-green); }

.sportapi-stamp { color: var(--sportapi-ink-3); font-family: var(--sportapi-mono); font-size: .72rem; white-space: nowrap; }

.sportapi-days {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--sportapi-line);
}

.sportapi-days::-webkit-scrollbar { display: none; }
.sportapi-days:empty { display: none; padding: 0; border: 0; }

.sportapi-day {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 4px 13px;
  border: 1px solid var(--sportapi-line);
  border-radius: 999px;
  background: #121510;
  color: var(--sportapi-ink-2);
  font: inherit;
  font-size: .82rem;
  white-space: nowrap;
  cursor: pointer;
}

.sportapi-day:hover { color: var(--sportapi-ink); border-color: var(--sportapi-ink-3); }
.sportapi-day:focus-visible { outline: 2px solid var(--sportapi-green); outline-offset: 2px; }
.sportapi-day-on { border-color: var(--sportapi-green); background: var(--sportapi-green-deep); color: var(--sportapi-green); }

.sportapi-state { padding: 16px 12px; color: var(--sportapi-ink-3); font-size: .9rem; }
.sportapi-state:empty { display: none; }
.sportapi-state-warn { color: #d9a33b; }

/* loading skeleton — shimmer rows while a view fetches (first load, tab switch, results date change) */
.sportapi-skel-row { display: flex; align-items: center; gap: 14px; padding: 7px 12px; min-height: 30px; border-bottom: 1px solid var(--sportapi-line); }
.sportapi-classic .sportapi-skel-row { min-width: 760px; }
.sportapi-skel { position: relative; display: block; width: 54px; height: 10px; border-radius: 5px; overflow: hidden; background: rgba(128, 128, 128, .18); flex: none; }
.sportapi-skel-sm { width: 34px; }
.sportapi-skel-grow { flex: 1 1 auto; max-width: 240px; }
.sportapi-skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent); animation: sportapi-shimmer 1.3s infinite; }
@keyframes sportapi-shimmer { 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .sportapi-skel::after { animation: none; } .sportapi-skel { opacity: .5; } }

/* ---------- the grid ---------- */

.sportapi-scroll { overflow-x: auto; }

.sportapi-head-grid,
.sportapi-row {
  display: grid;
  grid-template-columns: var(--sportapi-time) minmax(150px, 1fr) var(--sportapi-scorew) auto auto auto;
  align-items: center;
}

.sportapi-head-bare,
.sportapi-row-bare { grid-template-columns: var(--sportapi-time) minmax(150px, 1fr) var(--sportapi-scorew); }

/* the band that names the columns, green like the book's own board */
.sportapi-head-grid {
  position: sticky;
  top: 0;
  z-index: 2;
  align-items: stretch;
  background: var(--sportapi-green-band);
  color: #dff3e3;
  font-size: .72rem;
  font-weight: 700;
}

.sportapi-head-grid > .sportapi-col-time,
.sportapi-head-grid > .sportapi-col-teams,
.sportapi-head-grid > .sportapi-col-score {
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-right: 1px solid #0e2a14;
}

.sportapi-col-score { justify-content: center; }

.sportapi-colgroup {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #0e2a14;
}

.sportapi-colgroup:last-child { border-right: 0; }
.sportapi-colgroup.sportapi-group-half { background: #1d231c; color: #cfd8d1; }
.sportapi-colgroup.sportapi-group-x12 { background: #1a2018; color: #cfd8d1; }

.sportapi-colgroup-name {
  padding: 3px 0;
  border-bottom: 1px solid #0e2a14;
  letter-spacing: .04em;
  text-align: center;
}

.sportapi-colgroup-cells,
.sportapi-cells {
  display: grid;
  grid-template-columns: var(--sportapi-col-wide) var(--sportapi-col) var(--sportapi-col) var(--sportapi-col-wide) var(--sportapi-col) var(--sportapi-col);
}

.sportapi-group-x12 .sportapi-colgroup-cells,
.sportapi-cells.sportapi-group-x12 { grid-template-columns: repeat(3, var(--sportapi-col)); }

.sportapi-colhead {
  padding: 3px 2px;
  color: #a9c4ae;
  font-size: .62rem;
  font-weight: 600;
  text-align: center;
}

.sportapi-group-half .sportapi-colhead,
.sportapi-group-x12 .sportapi-colhead { color: var(--sportapi-ink-2); }

/* ---------- league + match rows ---------- */

.sportapi-league {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-top: 1px solid var(--sportapi-line);
  border-bottom: 1px solid var(--sportapi-line);
  background: #171c15;
}

.sportapi-league::before {
  content: '';
  flex: 0 0 auto;
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: var(--sportapi-green);
}

.sportapi-league-logo { flex: 0 0 auto; width: 16px; height: 16px; object-fit: contain; }

.sportapi-league-name {
  overflow: hidden;
  font-size: .8rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sportapi-league-count {
  margin-left: auto;
  color: var(--sportapi-ink-3);
  font-family: var(--sportapi-mono);
  font-size: .7rem;
  white-space: nowrap;
}

.sportapi-row {
  border-bottom: 1px solid var(--sportapi-line);
  transition: background-color .15s ease;
}

.sportapi-row { background: var(--sportapi-bg); }
.sportapi-row:nth-of-type(odd) { background: var(--sportapi-row-alt); }
.sportapi-row:hover { background: #1b211a; }

.sportapi-when {
  display: flex;
  flex-direction: column;
  gap: 1px;
  align-items: center;
  padding: 6px 4px;
}

.sportapi-livetag {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--sportapi-green-deep);
  color: var(--sportapi-green);
  font-size: .6rem;
  font-weight: 700;
}

.sportapi-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sportapi-green);
  box-shadow: 0 0 0 0 rgba(47, 194, 74, .6);
  animation: sportapi-pulse 2s ease-out infinite;
}

@keyframes sportapi-pulse {
  70% { box-shadow: 0 0 0 6px rgba(47, 194, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 194, 74, 0); }
}

.sportapi-clock { font-family: var(--sportapi-mono); font-size: .82rem; font-variant-numeric: tabular-nums; }
.sportapi-row-live .sportapi-clock { color: var(--sportapi-green); font-weight: 700; }
.sportapi-date { color: var(--sportapi-ink-3); font-family: var(--sportapi-mono); font-size: .66rem; }

.sportapi-teams {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 6px 8px;
}

.sportapi-team { display: flex; gap: 6px; align-items: center; min-width: 0; }
.sportapi-crest { flex: 0 0 auto; width: 18px; height: 18px; object-fit: contain; }

.sportapi-team-name {
  overflow: hidden;
  font-size: .88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sportapi-score {
  display: flex;
  flex-direction: column;
  gap: 1px;
  align-items: center;
  padding: 6px 2px;
}

.sportapi-goal {
  font-family: var(--sportapi-mono);
  font-size: .88rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sportapi-row-live .sportapi-goal { color: var(--sportapi-green); }
.sportapi-half { color: var(--sportapi-ink-3); font-family: var(--sportapi-mono); font-size: .62rem; white-space: nowrap; }
.sportapi-vs { color: var(--sportapi-ink-3); font-size: .8rem; }

/* ---------- price cells ---------- */

.sportapi-cells { align-self: stretch; border-left: 1px solid var(--sportapi-line); }

.sportapi-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 2px;
  font-family: var(--sportapi-mono);
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
}

.sportapi-cell-line { color: var(--sportapi-ink-2); }
.sportapi-cell-neg { color: var(--sportapi-red); }
.sportapi-cell-empty { color: #39413a; }

.sportapi-cells-closed { position: relative; }
.sportapi-cells-closed .sportapi-cell { visibility: hidden; }

.sportapi-cells-closed::after {
  content: 'ยังไม่เปิดราคา';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sportapi-ink-3);
  font-size: .66rem;
}

/* ---------- narrowing: drop one column group at a time, never scroll sideways ---------- */

@media (max-width: 1199px) {
  .sportapi-group-x12 { display: none; }
  .sportapi-head-grid, .sportapi-row { grid-template-columns: var(--sportapi-time) minmax(150px, 1fr) var(--sportapi-scorew) auto auto; }
}

/* ---------- phones: one card per match ---------- */

@media (max-width: 680px) {
  .sportapi-wrap { font-size: 14px; }
  .sportapi-head { padding: 9px 10px; }
  .sportapi-tab { padding: 6px 12px; font-size: .85rem; }
  .sportapi-tools { width: 100%; }
  .sportapi-search { width: 100%; }

  /* a card names its own cells, so the column band has nothing left to say */
  .sportapi-head-grid { display: none; }
  .sportapi-body { padding: 8px; }
  .sportapi-league { margin: 10px 2px 6px; padding: 0 0 6px; border-top: 0; background: none; }
  .sportapi-group:first-child .sportapi-league { margin-top: 2px; }

  .sportapi-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'when score'
      'teams score'
      'full full'
      'x12 x12';
    gap: 0 8px;
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 1px solid var(--sportapi-line);
    border-bottom: 1px solid var(--sportapi-line);
    border-radius: 12px;
    background: var(--sportapi-row-alt);
  }

  .sportapi-row:nth-of-type(odd) { background: var(--sportapi-row-alt); }
  .sportapi-row:last-child { margin-bottom: 2px; }
  .sportapi-row-live { border-color: #27512f; }

  .sportapi-when {
    grid-area: when;
    flex-direction: row;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
    padding: 0 0 6px;
  }

  .sportapi-clock { font-size: .78rem; color: var(--sportapi-ink-2); }
  .sportapi-row-live .sportapi-clock { color: var(--sportapi-green); }

  .sportapi-teams { grid-area: teams; gap: 6px; padding: 0; }
  .sportapi-team-name { font-size: .95rem; }
  .sportapi-crest { width: 20px; height: 20px; }

  .sportapi-score {
    grid-area: score;
    align-self: center;
    justify-content: center;
    min-width: 54px;
    padding: 0;
  }

  .sportapi-goal { font-size: 1.15rem; }
  .sportapi-half { font-size: .6rem; }

  /* full time becomes two rows of three, each cell saying what it is */
  .sportapi-cells {
    grid-area: full;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--sportapi-line);
    border-left: 0;
  }

  /* the 1X2 row is hidden on a narrow desktop to save width; a card has the width, so it comes back */
  .sportapi-cells.sportapi-group-x12 {
    display: grid;
    grid-area: x12;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 6px;
    padding-top: 0;
    border-top: 0;
  }

  .sportapi-cells.sportapi-group-half { display: none; }

  .sportapi-cell {
    flex-direction: column;
    gap: 0;
    padding: 4px 2px;
    border-radius: 8px;
    background: #10130f;
    font-size: .8rem;
    line-height: 1.3;
  }

  .sportapi-cell::before {
    content: attr(data-sportapi-label);
    color: var(--sportapi-ink-3);
    font-family: inherit;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .04em;
  }

  .sportapi-cell-line { color: var(--sportapi-ink); }

  .sportapi-cells-closed { border-top: 1px solid var(--sportapi-line); }
  .sportapi-cells-closed::after { font-size: .7rem; }

  .sportapi-row-bare { grid-template-areas: 'when score' 'teams score'; }
}

@media (max-width: 420px) {
  .sportapi-row { padding: 9px 10px; }
  .sportapi-cell { font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sportapi-wrap *, .sportapi-wrap *::before, .sportapi-wrap *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (prefers-color-scheme: light) {
  .sportapi-wrap { border-color: #cfd6d0; box-shadow: 0 2px 16px rgba(14, 16, 13, .12); }
}

/* ─── Classic board (บ้านผลบอล): teams flank a centred price, flags at the front ─── */
.sportapi-classic .sportapi-c-head,
.sportapi-classic .sportapi-c-row {
  display: grid;
  /* board columns: เวลา | เจ้าบ้าน | ราคา | ทีมเยือน | ครึ่งแรก | ผล | ทรรศนะ */
  grid-template-columns: var(--sportapi-time) minmax(74px, 1fr) minmax(124px, 150px) minmax(74px, 1fr) 44px var(--sportapi-scorew) minmax(96px, 1.25fr);
  align-items: center;
  gap: 6px;
}
.sportapi-classic .sportapi-c-head-bare,
.sportapi-classic .sportapi-c-row-bare {
  grid-template-columns: var(--sportapi-time) 1fr 1fr 44px var(--sportapi-scorew) minmax(96px, 1.25fr);
}
.sportapi-classic .sportapi-c-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 5px 10px;
  background: var(--sportapi-green-band);
  color: var(--sportapi-ink);
  font-size: .76rem;
  font-weight: 600;
  border-bottom: 1px solid var(--sportapi-line);
}
.sportapi-classic .sportapi-c-head span { text-align: center; }
.sportapi-classic .sportapi-c-head span:nth-child(2) { text-align: right; }   /* เจ้าบ้าน */
.sportapi-classic .sportapi-c-head span:nth-child(4) { text-align: left; }    /* ทีมเยือน */
.sportapi-classic .sportapi-c-head span:nth-child(7) { text-align: left; }    /* ทรรศนะ */
.sportapi-classic .sportapi-c-head-bare span:nth-child(3) { text-align: left; }  /* ทีมเยือน (no odds col) */
.sportapi-classic .sportapi-c-head-bare span:nth-child(6) { text-align: left; }  /* ทรรศนะ */

.sportapi-classic .sportapi-c-row {
  padding: 3px 10px;
  border-bottom: 1px solid var(--sportapi-line);
  min-height: 30px;
}
.sportapi-classic .sportapi-c-row:nth-child(even) { background: var(--sportapi-row-alt); }
.sportapi-classic .sportapi-row-live { box-shadow: inset 3px 0 0 var(--sportapi-green); }

.sportapi-c-when { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-family: var(--sportapi-mono); font-size: .78rem; color: var(--sportapi-ink-2); }
.sportapi-c-when .sportapi-clock { color: var(--sportapi-ink); }
.sportapi-classic .sportapi-row-live .sportapi-clock { color: var(--sportapi-green); font-weight: 700; }
.sportapi-c-when .sportapi-date { color: var(--sportapi-ink-3); font-size: .7rem; width: 100%; }
.sportapi-flag { width: 18px; height: 13px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }

.sportapi-card { display: inline-flex; align-items: center; justify-content: center; min-width: 10px; height: 13px; padding: 0 1px; margin: 0 2px; border-radius: 2px; color: #201c00; font: 700 9px/1 var(--sportapi-mono); vertical-align: middle; }
.sportapi-card--y { background: #f5c400; }
.sportapi-card--r { background: #d4342a; color: #fff; }
.sportapi-c-home { text-align: right; }
.sportapi-c-away { text-align: left; }
.sportapi-c-home, .sportapi-c-away { font-size: .9rem; font-weight: 600; color: var(--sportapi-ink); line-height: 1.2; }

.sportapi-c-odds { display: flex; flex-direction: column; gap: 1px; align-items: stretch; }
.sportapi-c-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4px; font-family: var(--sportapi-mono); font-size: .8rem; }
.sportapi-c-ou { opacity: .82; font-size: .74rem; }
.sportapi-c-mid { text-align: center; color: var(--sportapi-ink); background: #1c2119; border-radius: 6px; padding: 1px 6px; font-weight: 700; min-width: 34px; }
.sportapi-c-ou .sportapi-c-mid { background: transparent; color: var(--sportapi-ink-2); }
.sportapi-c-noodds { text-align: center; color: var(--sportapi-ink-3); font-size: .74rem; }

.sportapi-water { display: inline-flex; align-items: center; justify-content: center; gap: 2px; white-space: nowrap; }
.sportapi-c-pair > .sportapi-water:first-child { justify-content: flex-end; }
.sportapi-c-pair > .sportapi-water:last-child { justify-content: flex-start; }
.sportapi-water-val { color: var(--sportapi-ink); }
.sportapi-arrow { font-style: normal; font-size: .62rem; line-height: 1; }
.sportapi-wrap .sportapi-up { color: #1aa34a; }
.sportapi-wrap .sportapi-down { color: #d4342a; }

.sportapi-c-half { text-align: center; font-family: var(--sportapi-mono); font-size: .72rem; color: var(--sportapi-ink-3); }
.sportapi-c-result { text-align: center; }
.sportapi-c-result .sportapi-goal { font-family: var(--sportapi-mono); font-weight: 700; color: var(--sportapi-ink); }
.sportapi-classic .sportapi-row-live .sportapi-goal { color: var(--sportapi-green); }
.sportapi-c-result .sportapi-vs { color: var(--sportapi-ink-3); }

/* ทรรศนะ/ทีเด็ด — its own column; empty cells just leave the column blank */
.sportapi-classic .sportapi-c-tip { text-align: left; color: var(--sportapi-green); font-size: .74rem; line-height: 1.25; }

/* The header and body share one canvas: mobile keeps desktop columns, including HT. */
.sportapi-wrap.sportapi-classic .sportapi-scroll { overflow-x: auto; }
.sportapi-wrap.sportapi-classic .sportapi-c-head,
.sportapi-wrap.sportapi-classic .sportapi-body { min-width: 760px; }
.sportapi-wrap.sportapi-classic .sportapi-body { padding: 0; }
.sportapi-wrap .sportapi-c-odds-line { display: flex; align-items: center; justify-content: center; gap: 4px; font-family: var(--sportapi-mono); font-size: .76rem; line-height: 1.15; }
.sportapi-wrap .sportapi-c-team-board { color: #79b8ff; }
.sportapi-wrap .sportapi-c-fav { color: #ed6760; }

/* ─── Orange theme — Thai light board (theme="orange") ─── */
.sportapi-wrap[data-sportapi-theme="orange"] {
  --sportapi-ink: #2a2117;
  --sportapi-ink-2: #8a7360;
  --sportapi-ink-3: #b2a192;
  --sportapi-bg: #ffffff;
  --sportapi-row-alt: #fff5ec;
  --sportapi-line: #efddca;
  --sportapi-green: #e8641c;       /* accent -> orange (band, tabs-on, live, league bar) */
  --sportapi-green-deep: #ffe7d3;
  --sportapi-green-band: #e8641c;  /* header band */
  --sportapi-red: #d4342a;
}
.sportapi-wrap[data-sportapi-theme="orange"] .sportapi-glow { display: none; }
.sportapi-wrap[data-sportapi-theme="orange"] .sportapi-search { background: #fff; color: var(--sportapi-ink); }
.sportapi-wrap[data-sportapi-theme="orange"] .sportapi-search::placeholder { color: var(--sportapi-ink-3); }
.sportapi-wrap[data-sportapi-theme="orange"] .sportapi-tab { color: var(--sportapi-ink-2); }
.sportapi-wrap[data-sportapi-theme="orange"] .sportapi-tab:hover { background: #fff0e3; color: var(--sportapi-ink); }
.sportapi-wrap[data-sportapi-theme="orange"] .sportapi-tab-on,
.sportapi-wrap[data-sportapi-theme="orange"] .sportapi-tab-on:hover { background: var(--sportapi-green); color: #fff; }
.sportapi-wrap[data-sportapi-theme="orange"] .sportapi-day-on { background: var(--sportapi-green-deep); color: #a8430a; border-color: var(--sportapi-green); }
/* classic: white text on the orange header band; light chip for the handicap line */
.sportapi-wrap[data-sportapi-theme="orange"] .sportapi-c-head { color: #fff; }
.sportapi-wrap[data-sportapi-theme="orange"] .sportapi-c-mid { background: #fbe8d7; color: var(--sportapi-ink); }
.sportapi-wrap[data-sportapi-theme="orange"] .sportapi-c-ou .sportapi-c-mid { background: transparent; color: var(--sportapi-ink-2); }
.sportapi-wrap[data-sportapi-theme="orange"] .sportapi-flag { box-shadow: 0 0 0 1px rgba(0,0,0,.14); }
.sportapi-wrap[data-sportapi-theme="orange"] .sportapi-c-tip { color: #c2541a; }
.sportapi-wrap[data-sportapi-theme="orange"] .sportapi-league { background: #fff0e3; }
.sportapi-wrap[data-sportapi-theme="orange"] .sportapi-league-name { color: var(--sportapi-ink); }
.sportapi-wrap[data-sportapi-theme="orange"] .sportapi-league-count { color: var(--sportapi-ink-2); }

.sportapi-wrap[data-sportapi-theme="orange"] .sportapi-c-team-board { color: #245aa8; }
.sportapi-wrap[data-sportapi-theme="orange"] .sportapi-c-fav { color: #d4342a; }

.sportapi-wrap .sportapi-sound { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 6px; color: var(--sportapi-ink); background: transparent; border: 1px solid var(--sportapi-line); border-radius: 5px; cursor: pointer; }
.sportapi-wrap .sportapi-sound[aria-pressed="true"] { color: var(--sportapi-green); }
.sportapi-wrap .sportapi-sound:focus-visible { outline: 2px solid var(--sportapi-green); outline-offset: 2px; }
.sportapi-wrap .sportapi-goal-pop { color: var(--sportapi-green); background: var(--sportapi-green-deep); animation: sportapi-goal-pop .7s ease-out 2; }
@keyframes sportapi-goal-pop { 0%, 100% { transform: scale(1); opacity: 1; } 40% { transform: scale(1.18); opacity: .75; } }
@media (prefers-reduced-motion: reduce) { .sportapi-wrap .sportapi-goal-pop { animation: none; } }
