/* Sports - shared by NAS Gateway and the Gooberlink portal. Builds on the
 * tokens in each site's styles.css (same names on both); Gooberlink also has
 * a light theme, handled by the overrides right below. */

.sx-body {
  --sx-ink: 255, 255, 255;          /* hairlines and washes: white on dark */
  --sx-panel: #111924; /* flattened onto --bg: opaque scrolls faster in software rendering */
  --sx-panel-2: rgba(var(--sx-ink), .035);
  --sx-hover: rgba(143, 192, 255, .08);
  --sx-sunk: rgba(0, 0, 0, .22);
  --sx-sunk-hover: rgba(0, 0, 0, .32);
  --sx-field: rgba(0, 0, 0, .3);
  --sx-header-bg: rgba(8, 12, 19, .85);
  --sx-ticker-bg: rgba(0, 0, 0, .25);
  --sx-tip-bg: rgba(8, 12, 19, .96);
  --sx-surface: #121a26;
  --sx-radius: 14px;
  --team: #6aa6ff;
  --team-accent: #6aa6ff;
}

:root[data-theme="light"] .sx-body {
  --sx-ink: 20, 32, 51;
  --sx-panel: #feffff;
  --sx-hover: rgba(35, 104, 216, .07);
  --sx-sunk: rgba(20, 32, 51, .05);
  --sx-sunk-hover: rgba(20, 32, 51, .09);
  --sx-field: rgba(20, 32, 51, .04);
  --sx-header-bg: rgba(255, 255, 255, .85);
  --sx-ticker-bg: rgba(20, 32, 51, .04);
  --sx-tip-bg: rgba(255, 255, 255, .98);
  --sx-surface: #ffffff;
}

/* Team and player headers stay dark in either theme: they sit on the team's
 * colours, the way a broadcast graphic would. */
.sx-hero {
  --sx-ink: 255, 255, 255;
  --text: #e7eefc;
  --muted: #b9c6db;
  --accent-strong: #8fc0ff;
  color: var(--text);
}

.sx-body a { color: inherit; }
.sx-body .muted { margin: 0; }

/* ---------- header: section bar + ticker ---------- */

.sx-header {
  border-bottom: 1px solid var(--line);
  background: var(--sx-header-bg);
}

.sx-bar {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.sx-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--accent-strong), var(--good));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sx-nav {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sx-nav::-webkit-scrollbar { display: none; }
/* Set by sports.js when the list runs past an edge. */
.sx-nav.fade-right { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.sx-nav.fade-left { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px); mask-image: linear-gradient(90deg, transparent, #000 48px); }
.sx-nav.fade-left.fade-right {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}

.sx-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
  color: var(--muted) !important;
  border: 1px solid transparent;
}
.sx-nav-item:hover { color: var(--text) !important; background: var(--sx-hover); }
.sx-nav-item.active {
  color: var(--text) !important;
  border-color: rgba(143, 192, 255, .45);
  background: rgba(143, 192, 255, .12);
}
.sx-nav-sep { width: 1px; height: 18px; background: var(--line); margin: 0 6px; flex: none; }

.sx-ticker {
  border-top: 1px solid var(--line);
  background: var(--sx-ticker-bg);
}
.sx-ticker-track {
  max-width: 1320px;
  margin: 0 auto;
  padding: 8px 18px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.sx-tick {
  flex: none;
  /* Grows to fit (e.g. long win-probability labels) rather than spilling out. */
  min-width: 148px;
  max-width: 220px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--sx-panel-2);
  text-decoration: none;
  display: grid;
  gap: 3px;
}
.sx-tick:hover { border-color: rgba(143, 192, 255, .4); background: var(--sx-hover); }
.sx-tick.live { border-color: rgba(115, 240, 180, .45); }
.sx-tick-status {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 5px;
}
.sx-tick.live .sx-tick-status { color: var(--good); }
.sx-tick-team {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.sx-tick-team .abbr { font-weight: 600; }
.sx-tick-team .score { font-weight: 700; font-variant-numeric: tabular-nums; }
.sx-tick-team.won { color: var(--text); }
.sx-tick.live .sx-tick-team { color: var(--text); }
.sx-tick-tv { font-size: 10px; color: var(--muted); }

.sx-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 0 rgba(115, 240, 180, .6);
  animation: sx-pulse 1.6s infinite;
  display: inline-block;
  flex: none;
}
@keyframes sx-pulse {
  0% { box-shadow: 0 0 0 0 rgba(115, 240, 180, .55); }
  70% { box-shadow: 0 0 0 7px rgba(115, 240, 180, 0); }
  100% { box-shadow: 0 0 0 0 rgba(115, 240, 180, 0); }
}

/* ---------- page frame ---------- */

.sx-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 22px 18px 60px;
  display: grid;
  /* minmax(0, ...) so one wide child (a box score, a line score) scrolls inside
     its own box instead of stretching the page. */
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.sx-page-title { margin: 0; font-size: 26px; }
.sx-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sx-section-title { margin: 10px 0 0; font-size: 17px; }
.sx-footnote { margin: 0; }

.sx-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 40px 0;
  justify-content: center;
  color: var(--muted);
}
.sx-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(143, 192, 255, .25);
  border-top-color: var(--accent-strong);
  animation: sx-spin .8s linear infinite;
}
@keyframes sx-spin { to { transform: rotate(360deg); } }

.sx-card {
  background: var(--sx-panel);
  border: 1px solid var(--line);
  border-radius: var(--sx-radius);
  padding: 14px 16px;
  min-width: 0;
}
.sx-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.sx-card-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.sx-card.sx-own { border-color: color-mix(in srgb, var(--accent) 35%, transparent); }

.sx-more, .sx-ext {
  font-size: 12px;
  color: var(--accent-strong) !important;
  text-decoration: none;
  white-space: nowrap;
}
.sx-more::after { content: ' →'; }
.sx-more:hover, .sx-ext:hover { text-decoration: underline; }

.sx-empty { color: var(--muted); font-size: 14px; padding: 6px 0; }
.sx-empty p { margin: 0 0 6px; }

.sx-fold > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sx-fold[open] > summary { margin-bottom: 10px; }
.sx-sub { margin: 14px 0 6px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

.sx-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid rgba(143, 192, 255, .45);
  background: rgba(143, 192, 255, .14);
  color: var(--text);
  cursor: pointer;
}
.sx-button.ghost { border-color: var(--line); background: rgba(var(--sx-ink), .06); }
.sx-button.primary { border-color: rgba(143, 192, 255, .7); background: rgba(143, 192, 255, .24); }
.sx-button:disabled { opacity: .5; cursor: default; }

.sx-filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.sx-filter {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--line);
  background: rgba(var(--sx-ink), .04);
  color: var(--muted);
}
.sx-filter.active { color: var(--text); border-color: rgba(143, 192, 255, .55); background: rgba(143, 192, 255, .15); }
.sx-select {
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--sx-field);
  color: var(--text);
}

/* ---------- logos, chips, small parts ---------- */

.sx-logo { width: 28px; height: 28px; object-fit: contain; flex: none; display: inline-block; }
.sx-logo.xs { width: 16px; height: 16px; }
.sx-logo.sm { width: 22px; height: 22px; }
.sx-logo.md { width: 36px; height: 36px; }
.sx-logo.lg { width: 48px; height: 48px; }
.sx-logo.xl { width: 60px; height: 60px; }
.sx-logo.hero { width: 120px; height: 120px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .45)); }
.sx-logo.faint { opacity: .14; position: absolute; right: -10px; bottom: -20px; width: 220px; height: 220px; pointer-events: none; }

.sx-headshot { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: rgba(var(--sx-ink), .06); flex: none; display: inline-block; }
.sx-headshot.sm { width: 28px; height: 28px; }
.sx-headshot.hero { width: 132px; height: 132px; border-radius: 18px; object-fit: cover; object-position: top; background: rgba(0, 0, 0, .25); }

.sx-chip {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid var(--line);
  color: var(--muted);
}
.sx-chip.w { color: var(--good); border-color: rgba(115, 240, 180, .4); background: rgba(115, 240, 180, .1); }
.sx-chip.l { color: var(--bad); border-color: rgba(255, 122, 122, .38); background: rgba(255, 122, 122, .08); }
.sx-chip.t { color: var(--warn); border-color: rgba(255, 209, 102, .38); background: rgba(255, 209, 102, .08); }

.sx-extra {
  margin-left: 5px;
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  color: var(--warn);
  background: rgba(255, 209, 102, .1);
  border: 1px solid rgba(255, 209, 102, .3);
  vertical-align: middle;
}

.sx-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}

.sx-mini-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-bottom: 6px;
}

.sx-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.sx-eyebrow a { text-decoration: none; color: var(--text); }
.sx-eyebrow a:hover { text-decoration: underline; }

.sx-form { display: flex; gap: 4px; flex-wrap: wrap; }
.sx-form-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 1px;
}
.sx-form-item small { font-size: 9px; color: var(--warn); line-height: 1; }

.sx-injury {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  color: var(--bad);
  background: rgba(255, 122, 122, .1);
  border: 1px solid rgba(255, 122, 122, .3);
  vertical-align: middle;
  white-space: nowrap;
}
.sx-injury.big { font-size: 12px; margin: 6px 0 0; display: inline-block; }

.sx-live-text { display: inline-flex; align-items: center; gap: 6px; color: var(--good); font-weight: 600; }
.sx-live-text.big { font-size: 18px; }

/* ---------- home: main team cards ---------- */

.sx-mc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
  gap: 14px;
}

.sx-mc {
  position: relative;
  border-radius: var(--sx-radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--team) 34%, transparent) 0%, transparent 55%),
    var(--sx-panel);
  display: grid;
  align-content: start;
}
.sx-mc::before {
  content: '';
  height: 4px;
  background: linear-gradient(90deg, var(--team), var(--team-accent));
}

.sx-mc-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px 10px;
  text-decoration: none;
}
.sx-mc-id { display: grid; gap: 2px; min-width: 0; }
.sx-mc-id strong { font-size: 18px; line-height: 1.15; }
.sx-mc-id > span:last-child { font-size: 12px; color: var(--muted); }
.sx-mc-rec { text-align: right; display: grid; gap: 2px; }
.sx-mc-rec strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.sx-mc-rec span { font-size: 11px; color: var(--muted); white-space: nowrap; }

.sx-mc-form { padding: 0 16px 10px; }

.sx-mc-game {
  margin: 0 12px 12px;
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--sx-sunk);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 38px 22px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  text-decoration: none;
}
.sx-mc-game:hover { border-color: rgba(143, 192, 255, .4); }
.sx-mc-game.none { display: block; color: var(--muted); font-size: 13px; }
.sx-mc-game.live { border-color: rgba(115, 240, 180, .45); }
.sx-mc-game.live .sx-tag { color: var(--good); }
.sx-mc-game-text { display: grid; min-width: 0; }
.sx-mc-game-text strong, .sx-mc-game-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-mc-game-text strong { font-size: 14px; }
.sx-mc-game-text span { font-size: 11px; color: var(--muted); }
.sx-mc-score { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }

.sx-mc-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.sx-mc-links a {
  padding: 9px 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted) !important;
  text-decoration: none;
}
.sx-mc-links a + a { border-left: 1px solid var(--line); }
.sx-mc-links a:hover { color: var(--text) !important; background: var(--sx-hover); }

/* ---------- lists of games ---------- */

.sx-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 16px;
  align-items: start;
}

.sx-list { display: grid; gap: 4px; }
.sx-day {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin: 8px 0 2px;
}
.sx-day:first-child { margin-top: 0; }

.sx-gr {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--sx-panel-2);
  border: 1px solid transparent;
  text-decoration: none;
}
.sx-gr:hover { border-color: rgba(143, 192, 255, .3); background: var(--sx-hover); }
.sx-gr.live { border-color: rgba(115, 240, 180, .4); }
.sx-gr-text { display: grid; min-width: 0; }
.sx-gr-text strong, .sx-gr-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-gr-text strong { font-size: 13px; font-weight: 600; }
.sx-gr-text span { font-size: 11px; color: var(--muted); }
.sx-gr-side { display: grid; justify-items: end; gap: 1px; min-width: 64px; }
.sx-gr-side strong { font-size: 13px; display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sx-gr-side span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.sx-gr-side.live span, .sx-gr-side.live strong { color: var(--good); }

.sx-idle { margin: 10px 0 0; font-size: 13px; line-height: 1.6; }
.sx-idle a { color: var(--text); }

/* ---------- tables ---------- */

.sx-table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.sx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.sx-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.sx-table td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(var(--sx-ink), .045);
  white-space: nowrap;
  vertical-align: middle;
}
.sx-table tbody tr:last-child td { border-bottom: 0; }
.sx-table .num { text-align: right; }
.sx-table th.num { text-align: right; }
.sx-table .grow { width: 100%; white-space: normal; min-width: 120px; }
.sx-table .center { text-align: center; }
.sx-table .logo { width: 1%; padding-right: 0; }
.sx-table .rank { width: 1%; color: var(--muted); }
.sx-table .date { width: 1%; }
.sx-table td.muted { color: var(--muted); }
.sx-table a { text-decoration: none; }
.sx-table a:hover { text-decoration: underline; }
.sx-table tr.link { cursor: pointer; }
.sx-table tr.link:hover td { background: var(--sx-hover); }
.sx-table tr.done td { color: color-mix(in srgb, var(--text) 88%, transparent); }
.sx-table tr.live td { background: rgba(115, 240, 180, .06); }
.sx-table tr.next td { background: rgba(143, 192, 255, .08); }
.sx-table tr.next td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.sx-table tr.mine td { background: rgba(143, 192, 255, .06); }
.sx-table tr.me td { background: rgba(143, 192, 255, .14); font-weight: 600; }
.sx-table tr.me td:first-child { box-shadow: inset 3px 0 0 var(--accent-strong); }
.sx-table tr.total td { font-weight: 700; border-top: 1px solid var(--line); background: rgba(var(--sx-ink), .03); }

.sx-cell-stack { display: grid; gap: 1px; }
.sx-cell-stack > span, .sx-cell-stack > span * { font-size: 11px; color: var(--muted); }
.sx-cell-stack > a, .sx-cell-stack > strong { font-weight: 600; }
.sx-cell-stack > span:first-child:not(:only-child) { font-size: 13px; color: var(--text); }
.sx-cell-stack > span:first-child:not(:only-child) * { font-size: inherit; }

.sx-opp { display: inline-flex; align-items: center; gap: 8px; }
.sx-vs { width: 18px; color: var(--muted); font-size: 12px; text-align: center; }
.sx-result { display: inline-flex; align-items: center; gap: 7px; }
.sx-time { color: var(--accent-strong); font-weight: 600; }
.sx-team-cell { display: inline-flex; align-items: center; gap: 8px; }
.sx-person { display: inline-flex; align-items: center; gap: 9px; }

/* ---------- where to watch ---------- */

.sx-wc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

.sx-wc {
  border-radius: var(--sx-radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(170deg, color-mix(in srgb, var(--team) 26%, transparent) 0%, transparent 40%),
    var(--sx-panel);
  padding: 14px 16px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.sx-wc.live { border-color: rgba(115, 240, 180, .5); }

.sx-wc-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.sx-wc-team { display: grid; text-decoration: none; min-width: 0; }
.sx-wc-team strong { font-size: 16px; }
.sx-wc-team span { font-size: 11px; color: var(--muted); }
.sx-countdown {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(143, 192, 255, .14);
  color: var(--accent-strong);
  white-space: nowrap;
}
.sx-countdown.live { background: rgba(115, 240, 180, .14); color: var(--good); }

.sx-wc-match {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: var(--sx-sunk);
  text-decoration: none;
}
.sx-wc-match:hover { background: var(--sx-sunk-hover); }
.sx-wc-match > div { display: grid; min-width: 0; }
.sx-wc-match strong { font-size: 15px; }
.sx-wc-match span { font-size: 11px; color: var(--muted); }
.sx-wc-vs { font-size: 13px; font-weight: 700; color: var(--muted); width: 20px; text-align: center; }
.sx-wc-live { color: var(--good); font-size: 18px; }

.sx-facts {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0;
  font-size: 13px;
}
.sx-facts dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; padding-top: 2px; }
.sx-facts dd { margin: 0; }
.sx-card .sx-facts { margin-bottom: 12px; }

.sx-place {
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--muted);
}
.sx-place.home { color: var(--good); border-color: rgba(115, 240, 180, .35); }
.sx-place.away { color: var(--accent-strong); border-color: rgba(143, 192, 255, .35); }

.sx-watch { display: grid; gap: 6px; }
.sx-watch-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 7px 9px;
  border-radius: 10px;
  background: var(--sx-panel-2);
  border: 1px solid var(--line);
}
.sx-net { display: grid; min-width: 0; }
.sx-net strong { font-size: 13px; }
.sx-net small { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.sx-svcs { display: flex; flex-wrap: wrap; gap: 5px; }
.sx-svc {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  text-decoration: none;
  color: var(--text) !important;
  border: 1px solid rgba(143, 192, 255, .4);
  background: rgba(143, 192, 255, .12);
  white-space: nowrap;
}
.sx-svc:hover { background: rgba(143, 192, 255, .24); }
.sx-svc.oom { border-style: dashed; background: transparent; color: var(--muted) !important; }
.sx-watch-none { font-size: 13px; color: var(--muted); }

.sx-wc-foot { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; }
.sx-wc-foot a { color: var(--accent-strong) !important; text-decoration: none; }
.sx-wc-foot a:hover { text-decoration: underline; }

/* ---------- team / player hero ---------- */

.sx-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: 'logo id stats' 'logo actions stats';
  gap: 8px 22px;
  align-items: center;
  background:
    radial-gradient(600px 300px at 0% 0%, color-mix(in srgb, var(--team) 70%, transparent), transparent 70%),
    linear-gradient(110deg, color-mix(in srgb, var(--team) 45%, #0b0f17) 0%, #0d131d 70%);
}
.sx-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--team), var(--team-accent));
}
.sx-hero > .sx-logo.hero, .sx-hero > .sx-headshot.hero { grid-area: logo; }
.sx-hero-id { grid-area: id; display: grid; gap: 3px; min-width: 0; align-self: end; }
.sx-hero-id h1 { margin: 0; font-size: 38px; line-height: 1.05; font-weight: 800; }
.sx-hero-id h1 .loc { display: block; font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.sx-hero-standing { font-size: 14px; color: var(--text); opacity: .85; }
.sx-hero-actions { grid-area: actions; display: flex; gap: 12px; align-items: center; align-self: start; flex-wrap: wrap; }
.sx-hero-stats { grid-area: stats; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sx-hero-stat {
  display: grid;
  gap: 2px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(var(--sx-ink), .08);
  text-align: center;
  min-width: 80px;
}
.sx-hero-stat span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.sx-hero-stat strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.sx-hero-stat:first-child strong { font-size: 26px; }

.sx-hero.player { grid-template-areas: 'logo id bio' 'logo actions bio'; }
.sx-bio {
  grid-area: bio;
  display: grid;
  grid-template-columns: auto auto;
  gap: 5px 16px;
  margin: 0;
  font-size: 13px;
  position: relative;
  z-index: 1;
}
.sx-bio dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; padding-top: 2px; }
.sx-bio dd { margin: 0; }

.sx-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.sx-tabs a {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted) !important;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.sx-tabs a:hover { color: var(--text) !important; }
.sx-tabs a.active { color: var(--text) !important; border-bottom-color: var(--accent-strong); }

.sx-tab-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }

.sx-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.sx-split.game { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); }
.sx-col { display: grid; gap: 16px; min-width: 0; }

/* ---------- team overview parts ---------- */

.sx-spot { display: grid; gap: 12px; }
.sx-spot-match {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: var(--sx-sunk);
  text-decoration: none;
}
.sx-spot-match:hover { background: var(--sx-sunk-hover); }
.sx-spot-text { display: grid; min-width: 0; }
.sx-spot-text strong { font-size: 17px; }
.sx-spot-text span { font-size: 12px; color: var(--muted); }
.sx-spot-score { display: grid; justify-items: end; gap: 2px; }
.sx-spot-score strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.sx-spot-score span { font-size: 11px; color: var(--muted); }
.sx-spot-score.live strong, .sx-spot-score.live span { color: var(--good); }
.sx-spot-score .sx-chip { justify-self: end; }

.sx-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}
.sx-tile {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--sx-panel-2);
  border: 1px solid var(--line);
}
.sx-tile-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.sx-tile strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.sx-tile-rank { font-size: 11px; color: var(--accent-strong); }

.sx-leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.sx-leaders.wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.sx-leader {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--sx-panel-2);
  border: 1px solid var(--line);
  display: grid;
  gap: 4px;
  align-content: start;
}
.sx-leader-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  text-decoration: none;
  padding: 3px 4px;
  border-radius: 8px;
}
.sx-leader-row:hover { background: var(--sx-hover); }
.sx-leader-row .sx-rank { width: 28px; text-align: center; color: var(--muted); font-size: 12px; }
.sx-leader-name { display: grid; min-width: 0; }
.sx-leader-name strong { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-leader-name span { font-size: 11px; color: var(--muted); }
.sx-leader-value { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* A whole stat line (sports.js isStatLine) sits under the name and wraps. */
.sx-leader-name .sx-leader-line { font-size: 13px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.sx-leader-row.top .sx-leader-value { font-size: 22px; }

.sx-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
  align-items: start;
}

.sx-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}
.sx-summary-item {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--sx-panel);
  border: 1px solid var(--line);
}
.sx-summary-item span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sx-summary-item strong { font-size: 18px; font-variant-numeric: tabular-nums; }

.sx-coach { margin: 0; font-size: 14px; }

/* ---------- game page ---------- */

.sx-gh {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(500px 220px at 50% 0%, rgba(106, 166, 255, .16), transparent 70%),
    var(--sx-panel);
}
.sx-gh-team {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: var(--muted) !important;
}
.sx-gh-team.home { grid-template-columns: auto minmax(0, 1fr) auto; direction: rtl; }
.sx-gh-team.home > * { direction: ltr; }
.sx-gh-team.home .sx-gh-name { text-align: right; }
.sx-gh-team.won, .sx-gh-team:hover { color: var(--text) !important; }
.sx-gh-name { display: grid; min-width: 0; }
.sx-gh-name .loc { font-size: 12px; color: var(--muted); }
.sx-gh-name strong { font-size: 22px; color: var(--text); }
.sx-gh-name .rec { font-size: 12px; color: var(--muted); }
.sx-gh-score { font-size: 46px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sx-gh-mid { display: grid; justify-items: center; gap: 3px; text-align: center; min-width: 120px; }
.sx-gh-mid strong { font-size: 18px; }
.sx-gh-mid span { font-size: 12px; }

.sx-linescore-wrap { justify-self: center; min-width: min(560px, 100%); max-width: 100%; }
.sx-linescore { background: var(--sx-panel); border-radius: 12px; }
.sx-linescore td.total, .sx-linescore th:last-child { font-weight: 800; color: var(--text); }

.sx-venue-img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; margin-bottom: 12px; display: block; }

.sx-gl { display: grid; gap: 14px; }
.sx-gl-team { display: grid; gap: 4px; }
.sx-gl-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }

.sx-compare td:first-child, .sx-compare td:last-child { font-weight: 600; width: 1%; }
.sx-compare th:first-child { text-align: right; }

/* ---------- win probability ---------- */

.sx-prob { display: grid; gap: 5px; }
.sx-prob-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.sx-prob-labels > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.sx-prob-labels strong { color: var(--text); font-size: 13px; }
.sx-prob-labels .draw { font-size: 11px; }
.sx-prob-track {
  display: flex;
  gap: 2px;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
}
.sx-prob-seg { flex-basis: 0; min-width: 3px; transition: flex-grow .9s ease; }
.sx-prob-seg.draw { background: rgba(159, 176, 204, .45); }

.sx-prob.compact { gap: 3px; }
.sx-prob.compact .sx-prob-labels { font-size: 10px; }
.sx-prob.compact .sx-prob-labels strong { font-size: 10px; font-weight: 700; }
.sx-prob.compact .sx-prob-track { height: 4px; }

.sx-prob.big .sx-prob-labels { font-size: 14px; }
.sx-prob.big .sx-prob-labels strong { font-size: 24px; }
.sx-prob.big .sx-prob-labels .sx-logo { width: 26px; height: 26px; }
.sx-prob.big .sx-prob-track { height: 14px; }

.sx-prob-slot { display: grid; gap: 6px; }
.sx-prob-slot[hidden] { display: none; }
.sx-prob-note { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 11px; color: var(--muted); }
.sx-prob-note .sx-live-text { font-size: 11px; }

.sx-tick .sx-prob-slot { margin-top: 3px; }
.sx-mc-prob { padding: 0 14px 12px; margin-top: -4px; }
.sx-spot > .sx-prob-slot, .sx-wc > .sx-prob-slot {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--sx-panel-2);
  border: 1px solid var(--line);
}
.sx-wc > .sx-prob-slot.live, .sx-spot > .sx-prob-slot.live { border-color: rgba(115, 240, 180, .35); }

.sx-odds { display: grid; gap: 14px; }
.sx-odds-head { display: grid; gap: 3px; }
.sx-odds-head strong { font-size: 18px; }
.sx-odds-status { font-size: 12px; color: var(--muted); }
.sx-delta {
  justify-self: start;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgba(143, 192, 255, .12);
}

.sx-wp-chart { position: relative; }
.sx-wp-chart[hidden] { display: none; }
.sx-wp-svg { display: block; overflow: visible; }
.sx-wp-line { fill: none; stroke: var(--text); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.sx-wp-grid { stroke: rgba(var(--sx-ink), .07); stroke-width: 1; }
.sx-wp-mid { stroke: rgba(var(--sx-ink), .22); stroke-width: 1; }
.sx-wp-axis { fill: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.sx-wp-dot { fill: var(--text); stroke: var(--sx-surface); stroke-width: 2; }
.sx-wp-cross { stroke: rgba(var(--sx-ink), .45); stroke-width: 1; }
.sx-wp-tip {
  position: absolute;
  top: -6px;
  transform: translate(-50%, -100%);
  width: max-content;
  max-width: 220px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--sx-tip-bg);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  pointer-events: none;
  display: grid;
  gap: 2px;
  font-size: 13px;
  z-index: 2;
}
.sx-wp-tip[hidden] { display: none; }
.sx-wp-tip .small { font-size: 11px; }

.sx-odds-extras { display: grid; gap: 12px; }
.sx-swings > summary { cursor: pointer; font-size: 12px; color: var(--accent-strong); margin-bottom: 6px; }
.sx-lines p { margin: 6px 0 0; }

/* ---------- following: search, results, followed lists ---------- */

.sx-nav-search { flex: none; display: flex; }
.sx-nav-search-input,
.sx-search-input,
.sx-inline-input {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--sx-field);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
.sx-nav-search-input { width: 190px; }
.sx-search { display: flex; gap: 8px; margin-bottom: 4px; }
.sx-search-input { flex: 1; min-width: 0; padding: 10px 16px; font-size: 15px; }
.sx-search-results:empty { display: none; }
.sx-search-results { display: grid; gap: 16px; margin-top: 14px; }
.sx-hit-group h3 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }

.sx-hits { display: grid; gap: 6px; }
.sx-hit {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(var(--sx-ink), .03);
}
.sx-hit > .sx-logo, .sx-hit > .sx-headshot { justify-self: center; }
.sx-hit-name { display: grid; gap: 2px; min-width: 0; color: var(--text); text-decoration: none; }
a.sx-hit-name:hover strong { text-decoration: underline; }
.sx-hit-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-hit-name span, .sx-hit-name > a { font-size: 12px; color: var(--muted); }
.sx-hit-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sx-hit-actions .sx-button { padding: 6px 12px; font-size: 13px; }

.sx-followed { grid-template-columns: auto 44px minmax(0, 1fr) minmax(90px, 160px) auto; }
.sx-inline-input { border-radius: 10px; padding: 6px 10px; width: 100%; transition: border-color .3s; }
/* The team name reads as text until you hover or click into it. */
.sx-followed .sx-hit-name .sx-inline-input { font-weight: 700; font-size: 14px; background: transparent; border-color: transparent; padding-left: 6px; }
.sx-followed .sx-hit-name .sx-inline-input:hover,
.sx-followed .sx-hit-name .sx-inline-input:focus { background: var(--sx-field); border-color: var(--line); }
.sx-followed .sx-hit-name > a { padding-left: 7px; }
.sx-inline-input.saved, .sx-followed .sx-hit-name .sx-inline-input.saved { border-color: var(--good); }

.sx-star.on { color: #ffd166; border-color: rgba(255, 209, 102, .55); background: rgba(255, 209, 102, .12); }
:root[data-theme="light"] .sx-star.on { color: #8a5a00; border-color: rgba(176, 120, 0, .5); background: rgba(255, 209, 102, .22); }
/* Team and player headers stay dark in both themes, so keep the bright gold there. */
:root[data-theme="light"] .sx-hero .sx-star.on { color: #ffd166; border-color: rgba(255, 209, 102, .55); background: rgba(255, 209, 102, .12); }
.sx-following .hover { display: none; }
.sx-following:hover .is, .sx-following:focus-visible .is { display: none; }
.sx-following:hover .hover, .sx-following:focus-visible .hover { display: inline; }
.sx-following:hover { border-color: rgba(255, 122, 122, .55); color: var(--bad, #ff7a7a); }

.sx-player-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.sx-player-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}
.sx-player-chip:hover { background: var(--sx-hover); }
.sx-player-chip > span { display: grid; gap: 2px; min-width: 0; }
.sx-player-chip strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-player-chip span span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- smaller screens ---------- */

@media (max-width: 1100px) {
  .hide-md { display: none; }
  .sx-split, .sx-split.game { grid-template-columns: minmax(0, 1fr); }
  .sx-hero { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'logo id' 'logo actions' 'stats stats'; }
  .sx-hero.player { grid-template-areas: 'logo id' 'logo actions' 'bio bio'; }
  .sx-hero-stats { justify-content: flex-start; }
  .sx-table th, .sx-table td { padding-left: 6px; padding-right: 6px; }
}

@media (max-width: 700px) {
  .hide-sm { display: none; }
  .sx-bar { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 16px; }
  .sx-brand { align-self: flex-start; }
  .sx-nav { max-width: 100%; flex: none; }
  .sx-main { padding: 16px 16px 48px; }
  .sx-cols, .sx-wc-grid, .sx-stat-grid { grid-template-columns: minmax(0, 1fr); }
  .sx-hero { padding: 16px; gap: 8px 14px; }
  .sx-logo.hero, .sx-headshot.hero { width: 72px; height: 72px; }
  .sx-hero-id h1 { font-size: 26px; }
  .sx-hero-stat { min-width: 64px; padding: 6px 10px; }
  .sx-gh { grid-template-columns: 1fr; padding: 16px; }
  .sx-gh-team.home { direction: ltr; }
  .sx-gh-team.home .sx-gh-name { text-align: left; }
  .sx-gh-score { font-size: 34px; }
  .sx-nav-search, .sx-nav-search-input { width: 100%; }
  .sx-hit, .sx-followed { grid-template-columns: 36px minmax(0, 1fr); }
  .sx-hit-actions, .sx-followed > .sx-inline-input { grid-column: 1 / -1; justify-content: flex-start; }
  .sx-watch-row { grid-template-columns: minmax(0, 1fr); }

  .sx-table th, .sx-table td { padding-left: 5px; padding-right: 5px; }
  /* The flexible column already takes all spare width; on phones let its
     text wrap rather than push the table past the screen. */
  .sx-table .grow { min-width: 0; }

  /* Team pages' tabs share the width instead of scrolling. */
  .sx-tabs a { flex: 1 0 auto; padding: 10px 6px; font-size: 13px; text-align: center; }

  /* Team lists (Home, All teams): each team becomes a card-like row, with
     "what's next" under the name instead of in a column off to the side. */
  .sx-team-table, .sx-team-table tbody { display: block; width: 100%; }
  .sx-team-table thead { display: none; }
  .sx-team-table tr {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    column-gap: 10px;
    align-items: center;
    padding: 9px 4px;
    border-bottom: 1px solid rgba(var(--sx-ink), .045);
  }
  .sx-team-table tr:last-child { border-bottom: 0; }
  .sx-team-table tr.live { background: rgba(115, 240, 180, .06); }
  .sx-team-table td { display: block; width: auto !important; padding: 0; border: 0; white-space: normal; min-width: 0 !important; background: none !important; }
  .sx-team-table td.hide-sm { display: none; }
  .sx-team-table td:last-child { grid-column: 2 / -1; padding-top: 5px; }
}

/* ---- Guests, the Scores board, search suggestions (2026-10-15) ---- */

.sx-guest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-color: rgba(143, 192, 255, .35);
}
.sx-guest h2 { margin: 0 0 4px; font-size: 18px; }
.sx-guest .muted { margin: 0; max-width: 64ch; }
.sx-guest-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.sx-scores { display: grid; gap: 16px; }
.sx-sb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  gap: 8px;
}
.sx-sb {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--sx-panel-2);
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}
.sx-sb:hover { border-color: rgba(143, 192, 255, .4); background: var(--sx-hover); }
.sx-sb.live { border-color: rgba(115, 240, 180, .45); }
.sx-sb-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  min-width: 0;
}
.sx-sb.live .sx-sb-status { color: var(--good); }
.sx-sb-tv {
  margin-left: auto;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sx-sb-team {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto 2.4em;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.sx-sb-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-sb-rank { margin-right: 4px; font-size: 11px; font-weight: 600; color: var(--muted); }
.sx-sb-record { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sx-sb-score { text-align: right; font-size: 16px; font-variant-numeric: tabular-nums; }
.sx-sb-team.lost { color: var(--muted); }
.sx-sb-team.lost .sx-sb-score { font-weight: 500; }
.sx-sb-note { font-size: 11px; color: var(--muted); }
.sx-sb .sx-prob-slot { margin-top: 2px; }

.sx-didyoumean { margin: 0; font-size: 15px; }
.sx-didyoumean a { font-weight: 700; font-style: italic; }
.sx-didyoumean .muted { font-size: 13px; }

.sx-suggest-host { position: relative; }
.sx-suggest {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  width: max(100%, 320px);
  max-width: calc(100vw - 24px);
  padding: 6px;
  display: grid;
  gap: 2px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 14px 34px var(--shadow);
}
.sx-suggest[hidden] { display: none; }
.sx-nav-search .sx-suggest { left: auto; right: 0; }
.sx-suggest-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}
.sx-suggest-item > .sx-logo, .sx-suggest-item > .sx-headshot { justify-self: center; }
.sx-suggest-item:hover, .sx-suggest-item.active { background: var(--sx-hover); }
.sx-suggest-text { display: grid; min-width: 0; }
.sx-suggest-text strong, .sx-suggest-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-suggest-text strong { font-size: 14px; }
.sx-suggest-text span { font-size: 12px; color: var(--muted); }
.sx-suggest-all {
  margin-top: 2px;
  padding: 8px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  background: none;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}
.sx-suggest-all:hover { color: var(--text); background: var(--sx-hover); }

/* ==================================================================== */
/* 2026-10-18: spoilers, services, news, leagues, Pick'em, chat, TV...   */
/* ==================================================================== */

/* ---- small shared parts ---- */

.sx-head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sx-hidden-score {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--muted);
  border: 1px dashed rgba(var(--sx-ink), .28);
  background: rgba(var(--sx-ink), .04);
  white-space: nowrap;
}
.sx-chip.hid { color: var(--muted); border-style: dashed; }
.sx-spoiler-cover { display: grid; gap: 10px; justify-items: start; }
.sx-spoiler-cover p { margin: 0; }

.sx-verdict { font-size: 12px; margin: 6px 0 0; color: var(--muted); }
.sx-verdict.ok { color: var(--good); }
.sx-verdict.no { color: var(--warn); }
a.sx-verdict.unknown { display: inline-block; color: var(--accent-strong) !important; text-decoration: none; }
a.sx-verdict.unknown:hover { text-decoration: underline; }
.sx-sb .sx-verdict { margin: 0; font-size: 11px; }

.sx-daypick { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.sx-daypick .sx-filter { text-decoration: none; }
.sx-date-input { padding: 5px 8px; font: inherit; font-size: 12px; color-scheme: dark; }
:root[data-theme="light"] .sx-date-input { color-scheme: light; }

.sx-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: rgba(143, 192, 255, .18);
  color: var(--text);
}
.sx-avatar.xs { width: 20px; height: 20px; font-size: 10px; }
.sx-avatar.sm { width: 24px; height: 24px; }
.sx-person-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; min-width: 0; }
.sx-person-link:hover span { text-decoration: underline; }

/* Toasts: alerts while the page is open, and save errors. */
.sx-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.sx-toast {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(143, 192, 255, .45);
  background: var(--sx-tip-bg);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
  animation: sx-toast-in .25s ease-out;
  transition: opacity .5s, transform .5s;
}
.sx-toast span { font-size: 13px; color: var(--muted); }
.sx-toast.out { opacity: 0; transform: translateY(8px); }
@keyframes sx-toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---- news ---- */

.sx-news { display: grid; gap: 4px; }
.sx-news-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 8px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}
.sx-news-item:hover { background: var(--sx-hover); }
.sx-news-item:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.sx-news-img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: rgba(var(--sx-ink), .06); }
.sx-news-text { display: grid; gap: 3px; min-width: 0; }
.sx-news-text strong { font-size: 14px; line-height: 1.3; }
.sx-news-desc { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- between seasons ---- */

.sx-idle-list { display: grid; gap: 2px; margin-top: 10px; }
.sx-idle-row {
  display: grid;
  grid-template-columns: 16px auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 5px 6px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
}
.sx-idle-row:hover { background: var(--sx-hover); }
.sx-idle-row .sx-countdown-text { color: var(--muted); font-size: 12px; text-align: right; }

/* ---- standings: clinch letters, playoff lines ---- */

.sx-clinch {
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  color: var(--good);
  background: rgba(115, 240, 180, .1);
  border: 1px solid rgba(115, 240, 180, .3);
  text-transform: lowercase;
}
.sx-clinch.out { color: var(--muted); background: none; border-color: var(--line); }
.sx-clinch-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; }
.sx-clinch-legend .sx-clinch { margin-left: 0; }
.sx-table tr.out td { opacity: .55; }
.sx-table tr.cut td { border-bottom: 2px solid rgba(143, 192, 255, .55); }
.sx-table tr.cut.soft td { border-bottom: 2px dashed rgba(143, 192, 255, .35); }
.sx-table tr.outside td { color: var(--muted); }

/* ---- game page: play-by-play, highlights ---- */

.sx-pbp-filters { margin-bottom: 8px; }
.sx-pbp { display: grid; gap: 2px; max-height: 560px; overflow-y: auto; padding-right: 4px; }
.sx-pbp > .sx-button { justify-self: center; margin-top: 8px; }
.sx-play {
  display: grid;
  grid-template-columns: 74px 16px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 6px 4px;
  border-bottom: 1px solid rgba(var(--sx-ink), .045);
  font-size: 13px;
}
.sx-play.score { background: rgba(115, 240, 180, .06); }
.sx-play.score .sx-play-text { font-weight: 600; }
.sx-play-when { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.sx-play-score { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sx-play-down { color: var(--muted); font-size: 11px; white-space: nowrap; padding-top: 2px; }
.sx-drive { border-bottom: 1px solid rgba(var(--sx-ink), .06); }
.sx-drive > summary {
  display: grid;
  grid-template-columns: 16px 40px auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 4px;
  cursor: pointer;
  font-size: 13px;
}
.sx-drive.score > summary { background: rgba(115, 240, 180, .06); }
.sx-drive-result { font-weight: 700; }
.sx-drive.score .sx-drive-result { color: var(--good); }
.sx-drive-plays .sx-play { grid-template-columns: 70px 90px minmax(0, 1fr) auto; padding-left: 20px; }

.sx-clips { display: grid; gap: 10px; }
.sx-clip { margin: 0; display: grid; gap: 4px; }
.sx-clip video { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: #000; }
.sx-clip figcaption { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }

/* ---- Following: reorder ---- */

.sx-order { display: grid; justify-items: center; }
.sx-grip { cursor: grab; color: var(--muted); font-size: 16px; line-height: 1; user-select: none; padding: 2px; }
.sx-order-btn {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
}
.sx-order-btn:hover:not(:disabled) { color: var(--text); }
.sx-order-btn:disabled { opacity: .25; cursor: default; }
.sx-followed.dragging { opacity: .5; }
.sx-followed.drop-target { border-color: var(--accent-strong); box-shadow: 0 -2px 0 var(--accent-strong); }

/* ---- leagues ---- */

.sx-league-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 8px; }
.sx-league-tile {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--sx-panel-2);
  color: var(--text);
  text-decoration: none;
}
.sx-league-tile:hover { border-color: rgba(143, 192, 255, .4); background: var(--sx-hover); }
.sx-league-tile .sx-league-icon { grid-row: 1 / 3; }
.sx-league-tile .muted { grid-column: 2; }
.sx-league-icon { font-size: 24px; line-height: 1; text-align: center; }
.sx-league-icon.big { font-size: 48px; }
.sx-league-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sx-league-head > div:nth-child(2) { flex: 1; min-width: 0; }

.sx-bracket { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 4px; }
.sx-round { display: grid; gap: 8px; align-content: start; }
.sx-round .sx-sub { margin: 0; }
.sx-series {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--sx-panel-2);
  color: var(--text);
  text-decoration: none;
}
.sx-series:hover { border-color: rgba(143, 192, 255, .4); }
.sx-series.live { border-color: rgba(115, 240, 180, .45); }
.sx-series-team { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.sx-series-team.ahead, .sx-series-team.mine { color: var(--text); }
.sx-series-team.ahead strong { color: var(--good); }
.sx-series-status { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }

/* ---- F1, golf, UFC ---- */

.sx-evt {
  display: grid;
  gap: 5px;
  align-content: start;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--sx-panel-2);
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}
.sx-evt:hover { border-color: rgba(143, 192, 255, .4); background: var(--sx-hover); }
.sx-evt.live { border-color: rgba(115, 240, 180, .45); }
.sx-evt-name { font-size: 15px; }
.sx-evt-line { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; align-items: center; }
.sx-evt-row { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.sx-evt-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-evt-row .right { text-align: right; }
.sx-evt-row .won { font-weight: 700; color: var(--good); }
.sx-evt-row .sx-rank { min-width: 28px; color: var(--muted); font-size: 12px; }
.sx-flag { width: 18px; height: 12px; object-fit: cover; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.sx-bout-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sx-bout.main { border-color: rgba(143, 192, 255, .45); }
.sx-bout-fighters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sx-fighter { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.sx-fighter > div { display: grid; gap: 2px; min-width: 0; }
.sx-fighter.lost { opacity: .6; }
.sx-cal-date { min-width: 52px; }

/* ---- compare ---- */

.sx-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sx-compare-head { display: flex; gap: 14px; align-items: center; }
.sx-compare-head .sx-headshot.hero { width: 88px; height: 88px; }
.sx-compare-head > div { display: grid; gap: 4px; min-width: 0; }
.sx-compare-name { font-size: 20px; font-weight: 800; color: var(--text); text-decoration: none; }
.sx-compare-pick { display: grid; gap: 10px; }
.sx-better { color: var(--good); font-weight: 800; }
.sx-hit-button { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; grid-template-columns: 44px minmax(0, 1fr); }
.sx-hit-button:hover { background: var(--sx-hover); }

/* ---- trend charts ---- */

.sx-trend { position: relative; }
.sx-trend-svg { display: block; overflow: visible; }
.sx-trend-line { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; stroke: var(--text); }
.sx-trend-line.accent { stroke: var(--accent-strong); }
.sx-trend-line.good { stroke: var(--good); }
.sx-trend-line.bad { stroke: var(--bad); }
.sx-trend-line.avg { stroke: var(--warn); stroke-dasharray: 5 4; stroke-width: 1.5; }
.sx-trend-bar { fill: rgba(var(--sx-ink), .35); }
.sx-trend-bar.w { fill: var(--good); }
.sx-trend-bar.l { fill: var(--bad); }
.sx-trend-bar.t { fill: var(--warn); }
.sx-trend-bar.muted { fill: rgba(143, 192, 255, .45); }
.sx-trend-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.sx-trend-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--muted); }
.sx-trend-legend i.w, .sx-trend-legend i.good { background: var(--good); }
.sx-trend-legend i.l, .sx-trend-legend i.bad { background: var(--bad); }
.sx-trend-legend i.avg { background: var(--warn); }
.sx-trend-legend i.accent { background: var(--accent-strong); }
.sx-h2h-sum { margin: 0 0 8px; }

/* ---- Pick'em ---- */

.sx-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 10px; }
.sx-pick {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--sx-panel-2);
}
.sx-pick.live { border-color: rgba(115, 240, 180, .45); }
.sx-pick-head { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.sx-pick-head a { color: var(--muted) !important; text-decoration: none; }
.sx-pick-head a:hover { color: var(--text) !important; }
.sx-pick-head .muted { text-transform: none; letter-spacing: 0; font-weight: 500; }
.sx-pick-side {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(var(--sx-ink), .03);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sx-pick-side:hover:not(:disabled) { border-color: rgba(143, 192, 255, .55); background: var(--sx-hover); }
.sx-pick-side:disabled { cursor: default; }
.sx-pick-side.picked { border-color: var(--accent-strong); background: rgba(143, 192, 255, .16); box-shadow: inset 3px 0 0 var(--accent-strong); }
.sx-pick-side.picked.right { border-color: var(--good); background: rgba(115, 240, 180, .14); box-shadow: inset 3px 0 0 var(--good); }
.sx-pick-side.picked.wrong { border-color: rgba(255, 122, 122, .6); background: rgba(255, 122, 122, .1); box-shadow: inset 3px 0 0 var(--bad); }
.sx-pick.locked .sx-pick-side:not(.picked):not(.won) { opacity: .7; }
.sx-pick-name { display: grid; min-width: 0; }
.sx-pick-name strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-pick-score { font-size: 18px; font-variant-numeric: tabular-nums; }
.sx-pick-share { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sx-pick-mark { color: var(--accent-strong); font-weight: 800; }
.sx-pick-side.right .sx-pick-mark { color: var(--good); }
.sx-pick-side.wrong .sx-pick-mark { color: var(--bad); }
.sx-pick-result { font-size: 12px; font-weight: 700; }
.sx-pick-result.w { color: var(--good); }
.sx-pick-result.l { color: var(--bad); }
.sx-pick-result.p { color: var(--muted); }
.sx-pick-teaser { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sx-pick-teaser p { margin: 0; font-size: 15px; }

/* ---- game chat ---- */

.sx-chat-list { display: grid; gap: 10px; max-height: 420px; overflow-y: auto; padding: 2px 4px 2px 0; }
.sx-msg { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; }
.sx-msg-body { min-width: 0; }
.sx-msg-meta { display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.sx-msg-meta a { font-weight: 700; color: var(--text); text-decoration: none; }
.sx-msg.mine .sx-msg-meta a { color: var(--accent-strong); }
.sx-msg-text { margin: 2px 0 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.sx-msg-delete { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; opacity: 0; }
.sx-msg:hover .sx-msg-delete, .sx-msg-delete:focus { opacity: 1; }
.sx-chat-form { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
.sx-chat-input {
  flex: 1;
  min-width: 0;
  resize: vertical;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--sx-field);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

/* ---- watch parties, followers ---- */

.sx-party { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid rgba(var(--sx-ink), .06); }
.sx-party:last-child { border-bottom: 0; }
.sx-party-head { display: grid; gap: 2px; }
.sx-party-head a { text-decoration: none; }
.sx-party-note { margin: 0; font-size: 13px; color: var(--muted); }
.sx-party-people { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: 13px; }
.sx-party-guest { display: inline-flex; }
.sx-party-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.sx-party-actions .sx-button { padding: 5px 10px; font-size: 12px; }
.sx-party-form { display: grid; gap: 8px; margin-top: 10px; }
.sx-party-form[hidden] { display: none; }
.sx-inline-input.wide { width: 100%; }

.sx-followers { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); grid-column: 1 / -1; }
.sx-followers[hidden] { display: none; }
.sx-followers-faces { display: inline-flex; }
.sx-followers-faces a { margin-left: -6px; border-radius: 50%; box-shadow: 0 0 0 2px var(--sx-surface); display: inline-flex; }
.sx-followers-faces a:first-child { margin-left: 0; }

/* ---- settings ---- */

.sx-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; margin: 8px 0; }
.sx-check {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 13px;
  cursor: pointer;
  transition: border-color .3s;
}
.sx-check:hover { background: var(--sx-hover); }
.sx-check.wide { grid-column: 1 / -1; }
.sx-check.saved { border-color: var(--good); }
.sx-check input { accent-color: var(--accent-strong); width: 16px; height: 16px; }
.sx-copy-row { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.sx-copy-row .sx-inline-input { flex: 1; min-width: 0; }

/* ---- fantasy ---- */

.sx-ff-score { display: flex; justify-content: space-around; align-items: center; gap: 16px; }
.sx-ff-side { display: grid; justify-items: center; gap: 2px; min-width: 0; }
.sx-ff-side span { color: var(--muted); font-size: 13px; text-align: center; }
.sx-ff-side strong { font-size: 40px; font-variant-numeric: tabular-nums; }
.sx-ff-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 52px; gap: 8px; align-items: center; padding: 6px 2px; border-bottom: 1px solid rgba(var(--sx-ink), .045); font-size: 13px; }
.sx-ff-row .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); text-decoration: none; }
.sx-ff-row.bench { opacity: .65; }
.sx-ff-pos { font-size: 11px; font-weight: 700; color: var(--muted); }
.sx-ff-pts { text-align: right; font-variant-numeric: tabular-nums; }

/* ---- TV mode: just the scores, big ---- */

body.sx-tv-mode .topnav,
body.sx-tv-mode .sx-header { display: none; }
body.sx-tv-mode .sx-main { max-width: none; padding: 14px; min-height: 100vh; }
.sx-tv { display: grid; grid-template-rows: auto 1fr auto; gap: 12px; min-height: calc(100vh - 28px); }
.sx-tv-bar { display: flex; align-items: center; gap: 12px; transition: opacity .6s; }
.sx-tv-bar.asleep { opacity: .12; }
.sx-tv-bar .grow { flex: 1; }
.sx-tv-bar .sx-button.active { border-color: var(--accent-strong); }
.sx-tv-clock { font-size: 28px; font-variant-numeric: tabular-nums; }
.sx-tv-count { color: var(--muted); font-size: 15px; }
.sx-tv-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; }
.sx-tv-grid.n1 { grid-template-columns: 1fr; }
.sx-tv-tile {
  display: grid;
  grid-template-rows: auto 1fr 1fr auto;
  gap: 10px;
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--sx-panel);
  color: var(--text);
  text-decoration: none;
  min-height: 0;
}
.sx-tv-tile.live { border-color: rgba(115, 240, 180, .5); }
.sx-tv-tile.mine { box-shadow: inset 0 0 0 2px rgba(143, 192, 255, .5); }
.sx-tv-top { display: flex; justify-content: space-between; gap: 10px; font-size: clamp(13px, 1.4vw, 20px); color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.sx-tv-tile.live .sx-tv-status { color: var(--good); }
.sx-tv-team { display: grid; grid-template-columns: clamp(48px, 6vw, 110px) minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.sx-tv-team .sx-logo.hero { width: 100%; height: auto; aspect-ratio: 1; filter: none; }
.sx-tv-name { font-size: clamp(20px, 2.6vw, 44px); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-tv-score { font-size: clamp(36px, 5.5vw, 96px); font-variant-numeric: tabular-nums; line-height: 1; }
.sx-tv-team.won .sx-tv-score { color: var(--good); }
.sx-tv-prob:empty { display: none; }
.sx-tv-strip { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 18px; color: var(--text); }
.sx-tv-strip:empty { display: none; }
.sx-tv-empty { grid-column: 1 / -1; display: grid; place-items: center; font-size: 28px; color: var(--muted); }

/* ---- phones ---- */

@media (max-width: 700px) {
  .sx-followed { grid-template-columns: auto 36px minmax(0, 1fr); }
  .sx-play { grid-template-columns: 58px 16px minmax(0, 1fr) auto; gap: 6px; }
  .sx-drive-plays .sx-play { grid-template-columns: 56px minmax(0, 1fr) auto; padding-left: 6px; }
  .sx-drive-plays .sx-play-down { display: none; }
  .sx-news-item { grid-template-columns: 72px minmax(0, 1fr); }
  .sx-news-img { width: 72px; }
  .sx-compare-grid, .sx-bout-fighters { grid-template-columns: minmax(0, 1fr); }
  .sx-tv-grid { grid-template-columns: minmax(0, 1fr); }
  .sx-tv-bar { flex-wrap: wrap; }
  .sx-toasts { right: 12px; bottom: 12px; }
  .sx-chat-form { flex-direction: column; align-items: stretch; }
}

/* styles.css makes every input and select full width with big padding; these sit in a row. */
.sx-daypick .sx-date-input, .sx-filters .sx-select, .sx-head-actions .sx-select, .sx-page-head > .sx-select { width: auto; min-height: 0; padding: 5px 10px; border-radius: 10px; }
.sx-msg-delete { padding: 2px 4px; }
