/* Sports pages: scores, leagues, teams, players (built by backend/otr_backend/build/sports.py).
   Uses the tokens in styles.css. */

.sp-crumb { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--quiet); }
.sp-crumb a { color: inherit; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.sp-chips a { padding: 6px 12px; border: 1px solid var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); background: var(--paper); }
.sp-chips a:hover { background: var(--wash); }
.sp-chips a[aria-current] { background: var(--ink); color: var(--paper); }

/* Team colour as a rule under the header; the logo sits on a white tile. */
.sp-head { border-bottom: 6px solid var(--team, var(--ink)); }
.sp-head .sp-logo { --s: 132px; background: var(--paper); }

.sp-logo { width: var(--s, 28px); height: var(--s, 28px); object-fit: contain; flex: none; display: inline-block; }
span.sp-logo { background: var(--rail); border-radius: 50%; }

.sp-team { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); text-decoration: none; }
a.sp-team:hover span { text-decoration: underline; }
.sp-team span { overflow: hidden; text-overflow: ellipsis; }
/* Long names (tennis: "Alejandro Davidovich Fokina") end in an ellipsis; the score never shrinks or wraps. */
.sp-side .sp-team > span { white-space: nowrap; }
.sp-team small { font-size: 12px; color: var(--quiet); }
.sp-team .sp-rank { margin-right: 4px; font-weight: 700; }
.sp-team .sp-rec { margin-left: 6px; white-space: nowrap; }

/* A list of games: cards in a grid. */
.sp-games { list-style: none; margin: 8px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.p-body .sp-games, .p-body .sp-grid { padding-left: 0; }
.p-body .sp-games li { margin: 0; font-size: 16px; max-width: none; }
.sp-game, .sp-field { border: 1px solid var(--faint); border-top: 3px solid var(--ink); padding: 10px 12px; background: var(--paper); }
.sp-game.in, .sp-field.in { border-top-color: var(--down); }
.sp-side { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0; font-size: 16px; }
.sp-side b { flex: none; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-game.post .sp-side:not(.won) { color: var(--quiet); }
.sp-game.post .sp-side:not(.won) .sp-team { color: var(--quiet); }
.sp-status { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--rail); font-size: 13px; font-weight: 600; color: var(--quiet); }
.sp-game.in .sp-status { color: var(--down); }
.sp-field .sp-status:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.sp-tv, .sp-box { font-weight: 500; margin-left: 6px; }
.sp-box { color: var(--cite); }

/* Tennis, fight cards, golf: an event holding many matches. */
.sp-event { grid-column: 1 / -1; }
.p-body .sp-event h3, .sp-scores .sp-event h3 { margin: 12px 0 4px; font-size: 17px; }
.sp-leaders { margin: 8px 0 0; padding-left: 1.4em; font-size: 15px; }
.sp-leaders li { display: flex; justify-content: space-between; gap: 12px; margin: 2px 0; }

.sp-note { color: var(--quiet); font-size: 15px; }

/* Scores page */
.sp-day { display: inline-flex; align-items: center; gap: 12px; margin-top: 16px; font-weight: 700; }
.sp-day button { width: 36px; height: 36px; border: 1px solid var(--ink); background: var(--paper); font: inherit; font-size: 18px; cursor: pointer; }
.sp-day button:hover { background: var(--wash); }
.sp-day output { min-width: 14ch; text-align: center; }
.sp-scores { padding-bottom: 96px; }
.sp-lg { border-top: 5px solid var(--ink); padding: 16px 0 28px; scroll-margin-top: 24px; }
.sp-lg h2 { margin: 0 0 4px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.sp-lg h2 a { color: inherit; }

/* Tables */
.sp-table tr.me td { background: var(--hl); }
.sp-table .sp-team, .sp-sched .sp-team { font-weight: 600; }
.sp-sched td small, .sp-roster td small { display: block; font-size: 13px; color: var(--quiet); }
.sp-sched .sp-res { white-space: nowrap; }
.sp-sched tr.sp-w .sp-res b { color: var(--up); }
.sp-sched tr.sp-l .sp-res b { color: var(--down); }

/* League page: team grid */
.sp-grid { list-style: none; margin: 8px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.p-body .sp-grid li { margin: 0; max-width: none; }
.sp-grid a { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--rail); color: var(--ink); text-decoration: none; }
.sp-grid a:hover { border-color: var(--ink); }
.sp-grid b { display: block; font-size: 16px; }
.sp-grid small { display: block; font-size: 13px; color: var(--quiet); }

/* Player facts */
.sp-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 8px 0 16px; padding-top: 12px; border-top: 2px solid var(--ink); font-size: 17px; }
.sp-facts dt { font-weight: 700; }
.sp-facts dd { margin: 0; }
.sp-history h3 { margin-top: 32px; }

@media (max-width: 640px) {
  .sp-head .sp-logo { --s: 88px; }
  .sp-games { grid-template-columns: 1fr; }
  .sp-facts { grid-template-columns: 1fr; gap: 2px; }
  .sp-facts dd { margin-bottom: 8px; }
}

/* Stat leaders: league page, team page */
.sp-lboard { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px 20px; margin: 8px 0 16px; }
.sp-lcat { border-top: 3px solid var(--ink); padding-top: 6px; }
.p-body .sp-lcat h3 { margin: 0 0 6px; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.p-body .sp-lcat ol { list-style: none; margin: 0; padding: 0; }
.p-body .sp-lcat li { display: flex; align-items: center; gap: 8px; margin: 0; padding: 4px 0; border-bottom: 1px solid var(--rail); font-size: 15px; max-width: none; }
.sp-lcat .rk { width: 1.4em; color: var(--quiet); font-weight: 700; font-variant-numeric: tabular-nums; }
.sp-lcat .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-lcat b { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Player stats */
.sp-stats th[scope="row"] { white-space: nowrap; font-weight: 600; text-align: left; }
.sp-stats abbr { text-decoration: none; }
.sp-stats th.grp { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 0; }
.sp-log tr.sp-w .sp-res b { color: var(--up); }
.sp-log tr.sp-l .sp-res b { color: var(--down); }
.sp-log .sp-res a { color: inherit; }
.sp-log { width: auto; min-width: 100%; font-size: 15px; }
.sp-log th, .sp-log td { padding: 8px 10px 8px 0; }
.sp-log td.sp-d { color: var(--quiet); font-size: 14px; }
.sp-log td.sp-d, .sp-log .sp-res, .sp-log td { white-space: nowrap; }
.p-body .sp-ranks { list-style: none; padding: 0; margin: 4px 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.p-body .sp-ranks li { margin: 0; padding: 6px 10px; border: 1px solid var(--ink); font-size: 15px; }
.sp-ranks span { color: var(--quiet); margin-left: 4px; }

/* Game page (site/sports-game.js) */
.sg-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 20px 0; border-top: 5px solid var(--ink); border-bottom: 1px solid var(--rail); }
.sg-side { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sg-side:last-child { flex-direction: row-reverse; text-align: right; }
.sg-side:last-child .sg-name { flex-direction: row-reverse; }
.sg-name { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-width: 0; }
a.sg-name:hover b { text-decoration: underline; }
.sg-name b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.sg-name small { display: block; font-size: 14px; color: var(--quiet); }
.sg-score { font-size: 56px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.sg-board.post .sg-side:not(.won) { color: var(--quiet); }
.sg-board.post .sg-side:not(.won) .sg-name { color: var(--quiet); }
.sg-mid { text-align: center; }
.sg-state { margin: 0; font-weight: 800; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; }
.sg-board.in .sg-state { color: var(--down); }
.sg-when { margin: 4px 0 0; font-size: 15px; color: var(--quiet); max-width: 16ch; }
.sg-note { margin: 12px 0 0; font-weight: 700; }
.sg-facts { margin: 8px 0 24px; color: var(--quiet); font-size: 15px; }
.sg section { margin-top: 32px; }
.sg-line td:first-child { min-width: 9em; }
.sg-line tr.won td { font-weight: 700; }
.sg-wp { margin: 8px 0 0; }
.sg-wp svg { display: block; width: 100%; height: 120px; border: 1px solid var(--rail); background: var(--paper); }
.sg-wp .mid { stroke: var(--faint); stroke-dasharray: 4 4; }
.sg-wp .line { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.sg-wp-k { display: flex; justify-content: space-between; font-size: 13px; color: var(--quiet); margin-top: 4px; }
.sg-wp figcaption { font-size: 14px; color: var(--quiet); margin-top: 4px; }
.sg-leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 20px; }
.sg-lcat { border-top: 3px solid var(--ink); padding-top: 6px; }
.p-body .sg-lcat h3 { margin: 0 0 6px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.p-body .sg-lcat p { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; font-size: 15px; }
.sg-lcat small { display: block; color: var(--quiet); font-size: 13px; }
.p-body .sg-plays { list-style: none; padding: 0; margin: 8px 0; }
.p-body .sg-plays li { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--rail); font-size: 15px; max-width: none; }
.sg-plays li > span { flex: 1; }
.sg-plays li > small { text-align: right; white-space: nowrap; color: var(--quiet); font-variant-numeric: tabular-nums; }
.sg-plays li > small b { color: var(--ink); }
.p-body .sg-plays li.sg-per { display: block; padding: 12px 0 4px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid var(--ink); }
.sg-ts th[scope="row"] { text-align: center; font-weight: 600; color: var(--quiet); }
.sg-ts thead th:first-child, .sg-ts td:first-child { text-align: left; }
.p-body .sg-bt { margin: 28px 0 8px; }
.sg-box tr.st td:first-child { font-weight: 600; }
.sg-box td:first-child { white-space: nowrap; }
.sg-box td small { color: var(--quiet); font-size: 12px; }
.sg-box tfoot td { font-weight: 700; border-top: 2px solid var(--ink); }
.sg-dnp { color: var(--quiet); font-style: italic; }
.sg-xi { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.p-body .sg-xi h3 { margin: 0 0 8px; }
.p-body .sg-xi h3 small, .p-body .sg-xi h4 { color: var(--quiet); font-size: 14px; }
.p-body .sg-roster { list-style: none; padding: 0; margin: 0 0 12px; }
.p-body .sg-roster li { margin: 0; padding: 4px 0; border-bottom: 1px solid var(--rail); font-size: 15px; max-width: none; }
.sg-roster .rk { display: inline-block; width: 2em; color: var(--quiet); font-variant-numeric: tabular-nums; }
.sg-roster small { color: var(--quiet); }
.sg-m { margin-left: 6px; font-size: 13px; }

@media (max-width: 640px) {
  .sg-board { grid-template-columns: 1fr; gap: 8px; }
  .sg-side:last-child, .sg-side:last-child .sg-name { flex-direction: row; text-align: left; }
  .sg-mid { order: 3; text-align: left; }
  .sg-score { font-size: 40px; }
  .sg-name .sp-logo { --s: 48px !important; width: 48px; height: 48px; }
  .sg-xi { grid-template-columns: 1fr; }
}

/* Scoreboard strip on the /sports/ front (sports.js, data-sp-ticker) */
.sp-chips a.sp-hot { background: var(--ink); color: var(--paper); }
.sp-chips a.sp-hot:hover { background: var(--down); border-color: var(--down); }
.sp-board { border-bottom: 1px solid var(--rail); padding: 20px 0 24px; }
.sp-board-h { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; }
.sp-board-h h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.sp-board-h > a { margin-left: auto; font-weight: 700; font-size: 15px; color: var(--ink); }
.sp-livecount { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--down); }
.tk-row { list-style: none; margin: 0; padding: 0 0 6px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.tk { flex: 0 0 160px; scroll-snap-align: start; }
.tk a { display: flex; flex-direction: column; gap: 3px; height: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--faint); border-top: 3px solid var(--ink); background: var(--paper); color: var(--ink); text-decoration: none; }
.tk a:hover { border-color: var(--ink); }
.tk.in a { border-top-color: var(--down); }
.tk-l { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); }
.tk.in .tk-l { color: var(--down); }
.tk-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--down); animation: tk-pulse 1.6s ease-in-out infinite; }
@keyframes tk-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .tk-dot { animation: none; } }
.tk-t { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.tk-t .ab { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-t b { flex: none; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tk.post .tk-t:not(.won) { color: var(--quiet); }
.tk-s { margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--quiet); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk.in .tk-s { color: var(--down); }

/* A whole game card opens its game page: the Box score / Preview link stretches over the card,
   and the team links sit above it. */
.sp-game { position: relative; }
.sp-game .sp-box::after { content: ""; position: absolute; inset: 0; }
.sp-game .sp-team { position: relative; z-index: 1; }
.sp-game:has(.sp-box):hover { border-color: var(--ink); }
.sp-game:has(.sp-box) { cursor: pointer; }

/* Player photo and background (sportsmedia) */
.sp-photo { margin: 0; flex: none; width: 160px; }
.sp-head .sp-photo .ph { width: 160px; height: 200px; object-fit: cover; object-position: 50% 20%; display: block; }
.sp-photo figcaption { margin-top: 6px; font-size: 11px; line-height: 1.35; color: var(--quiet); }
.sp-photo figcaption a { color: inherit; }
@media (max-width: 640px) {
  .sp-photo { width: 112px; }
  .sp-head .sp-photo .ph { width: 112px; height: 140px; }
}

/* Individual sports (espnsolo): section pages, /sports/event/ (site/sports-event.js) */
.sp-flag { width: 20px; height: 14px; object-fit: cover; vertical-align: -2px; margin-right: 6px; border: 1px solid var(--rail); }
.sp-rktab .sp-flag { margin-right: 8px; }
.sp-sw { display: inline-block; width: 4px; height: 16px; margin-right: 8px; vertical-align: -3px; }
.sp-rktab td small { display: block; font-size: 13px; color: var(--quiet); }
.sp-mv { display: inline !important; margin-left: 6px; font-size: 12px; font-weight: 700; }
.sp-mv.up { color: var(--up); }
.sp-mv.dn { color: var(--down); }
.sp-event h3 a { color: inherit; }
.se h3 { margin: 20px 0 6px; font-size: 17px; }
.se section { margin-top: 32px; }
.se-pl { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0; font-size: 16px; }
.se-who { display: inline-flex; align-items: center; min-width: 0; }
.se-who > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.se-who .sp-rank { margin-right: 4px; font-weight: 700; font-size: 12px; color: var(--quiet); }
.se-who .sp-rec { margin-left: 6px; font-size: 12px; color: var(--quiet); }
.se-pl.won { font-weight: 700; }
.se-m.post .se-pl:not(.won) { color: var(--quiet); }
.se-sets { flex: none; display: inline-flex; gap: 8px; font-variant-numeric: tabular-nums; }
.se-set { min-width: 1.4ch; text-align: right; font-weight: 500; white-space: nowrap; }
.se-set.won { font-weight: 800; }
.se-set sup { font-size: 10px; margin-left: 1px; }
.se-w { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--up); }
.se-tag { margin: 0 0 4px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--quiet); }
.se-lead { font-size: 17px; margin: 8px 0; }
.se-golf td:nth-child(2), .se-race td:nth-child(2) { white-space: nowrap; }
.se-hit { outline: 3px solid var(--hl); outline-offset: 2px; }
.tk-solo .tk-t b { font-size: 13px; letter-spacing: .04em; }

/* Sports front: lead story and headline list (no left/right switch) */
.sp-top { padding: 28px 0 28px; }
.sp-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); }
.sp-lead-h { margin: 0; font-size: clamp(30px, 5vw, 52px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; max-width: 22ch; }
.sp-lead-h a { color: var(--ink); text-decoration: none; }
.sp-lead-h a:hover { text-decoration: underline; }
.sp-lead-what { margin: 12px 0 0; font-size: 19px; max-width: 60ch; }
.sp-lead-cov { margin: 6px 0 0; color: var(--quiet); font-size: 15px; }
.sp-news { list-style: none; margin: 8px 0 0; padding: 0; }
.sp-news li { padding: 14px 0; border-bottom: 1px solid var(--rail); }
.sp-news a { display: block; font-size: 19px; font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.25; }
.sp-news a:hover { text-decoration: underline; }
.sp-news small { display: block; margin-top: 4px; color: var(--quiet); font-size: 14px; }
.sp-news .br { color: var(--down); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }

/* Game page: chance of winning, odds, markets, play by play (sports-game.js) */
.sg-chance { margin: 8px 0 0; }
.sg-ch-names { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 16px; margin-bottom: 6px; }
.sg-ch-names b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; margin: 0 4px; }
.sg-ch-draw { color: var(--quiet); }
.sg-ch-bar { display: flex; height: 26px; border: 1px solid var(--ink); }
.sg-ch-bar span { display: flex; align-items: center; padding: 0 8px; background: var(--c, var(--ink)); color: #fff; font-size: 13px; font-weight: 800; min-width: 0; overflow: hidden; }
.sg-ch-bar .h { justify-content: flex-end; }
.sg-ch-bar .d { background: var(--faint); color: var(--ink); justify-content: center; }
.sg-ch-src { margin: 6px 0 0; font-size: 14px; color: var(--quiet); }
.sg-odds th[scope="row"], .sg-mk th[scope="row"] { font-weight: 700; color: var(--ink); white-space: nowrap; }
.sg-odds small { color: var(--quiet); font-size: 12px; }
.sg-mk td b { font-size: 18px; }

.sg-filter { display: inline-flex; gap: 0; margin: 4px 0 10px; border: 1px solid var(--ink); }
.sg-filter button { padding: 6px 14px; border: 0; border-right: 1px solid var(--ink); background: var(--paper); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; color: var(--ink); }
.sg-filter button:last-child { border-right: 0; }
.sg-filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.sg-viz { margin: 0 0 12px; }
.sg-viz svg { display: block; width: 100%; height: auto; background: var(--paper); }
.sg-viz figcaption { font-size: 14px; color: var(--quiet); margin-top: 6px; }
.sg-viz .ln { fill: none; stroke: var(--faint); stroke-width: .3; vector-effect: non-scaling-stroke; }
.sg-viz .yd { stroke: var(--rail); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sg-viz circle.mk { fill: var(--c); stroke: var(--paper); stroke-width: .15; }
.sg-viz circle.ms { fill: var(--paper); stroke: var(--c); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.sg-viz .off { display: none; }
.sg-viz svg { max-height: 520px; }
.sg-rink .rl { stroke: #c8102e; stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: .6; }
.sg-rink .bl { stroke: #0033a0; stroke-width: 2; vector-effect: non-scaling-stroke; opacity: .6; }
.sg-rink .ln, .sg-pitch .ln { stroke-width: 1; }
.sg-viz:not(.sg-rink):not(.sg-field) .ln { stroke-width: 1.2; stroke: var(--faint); }
.sg-pitch svg { max-width: 460px; }
.sg-viz { max-width: 100%; }
figure.sg-viz:not(.sg-rink):not(.sg-field):not(.sg-zone):not(.sg-spray):not(.gc-field) svg { max-width: 460px; }
.sg-field .ez { fill: var(--c); opacity: .25; }
.sg-field .dr rect, .sg-field .dr path { fill: var(--c); }
.sg-field .dr.sc rect { stroke: var(--ink); stroke-width: .5; }
.sg-field .dr.cur rect { stroke: var(--down); stroke-width: .8; }
.sg-field .dr text { font-size: 2.1px; fill: var(--quiet); font-weight: 600; }
.sg-field .dr.off { display: none; }
.sg-field .yn { font-size: 2px; fill: var(--quiet); text-anchor: middle; }
.sg-field .los { stroke: var(--down); stroke-width: 2; vector-effect: non-scaling-stroke; }
.sg-sit { margin: 0 0 10px; font-size: 16px; }
.sg-sit .rz { color: var(--down); font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: .05em; }
.sg-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sg-zone .pt circle { stroke: var(--paper); stroke-width: 1; }
.sg-zone .pt.s circle { fill: var(--down); }
.sg-zone .pt.b circle { fill: var(--quiet); }
.sg-zone .pt text { font-size: 7px; font-weight: 800; fill: #fff; text-anchor: middle; }
.sg-zone .ln { stroke: var(--ink); stroke-width: 1.5; }
.sg-spray .of { fill: #e4efe0; stroke: var(--faint); }
.sg-spray .if { fill: #ead9c4; stroke: var(--faint); }
.sg-count { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.sg-count svg { width: 80px; height: 60px; }
.sg-count rect { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.sg-count rect.on { fill: var(--down); stroke: var(--down); }
.sg-count p { margin: 0; font-size: 16px; }
.sg-count b { font-size: 22px; }
.sg-pbp-wrap { max-height: 560px; overflow-y: auto; border-top: 2px solid var(--ink); }
.p-body .sg-pbp li.off, .p-body .sg-drives li.off { display: none; }
.p-body .sg-pbp li.sc span { font-weight: 700; }
.p-body .sg-pbp li > small:first-child { order: 0; min-width: 3em; text-align: left; }
.p-body .sg-drives { list-style: none; padding: 0; margin: 0; }
.p-body .sg-drives > li { margin: 0; border-bottom: 1px solid var(--rail); max-width: none; }
.sg-drives summary { display: flex; align-items: center; gap: 8px; padding: 10px 0; cursor: pointer; font-size: 15px; }
.sg-drives summary span { color: var(--quiet); flex: 1; }
.sg-drives summary small { color: var(--quiet); white-space: nowrap; }
.p-body .sg-pl { list-style: none; padding: 0 0 10px 26px; margin: 0; }
.p-body .sg-pl li { display: flex; gap: 10px; margin: 0; padding: 5px 0; font-size: 14px; border-top: 1px solid var(--rail); max-width: none; }
.sg-pl li small { min-width: 9em; color: var(--quiet); }
.sg-pl li.sc { font-weight: 700; }
@media (max-width: 640px) {
  .sg-pair { grid-template-columns: 1fr; }
  .sg-pl li small { min-width: 6em; }
}

/* Team page: next game and latest result side by side, updated live (sports.js) */
.sp-nextlast { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sp-nextlast .sp-games { grid-template-columns: 1fr; }
@media (max-width: 640px) { .sp-nextlast { grid-template-columns: 1fr; } }

/* Win probability chart: team labels on the axis, shaded leads, pointer readout */
.sg-wp-now { margin: 4px 0 8px; font-size: 17px; }
.sg-wp { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 8px; margin: 0; }
.sg-wp-y { grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; font-size: 12px; font-weight: 800; color: var(--quiet); text-align: right; height: 160px; }
.sg-wp-plot { grid-row: 1; grid-column: 2; position: relative; touch-action: pan-y; cursor: crosshair; }
.sg-wp-plot svg { display: block; width: 100%; height: 160px; border: 1px solid var(--rail); background: var(--paper); }
.sg-wp .cur { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sg-wp-tip { position: absolute; transform: translate(-50%, -115%); padding: 6px 9px; background: var(--ink); color: var(--paper); font-size: 13px; line-height: 1.35; white-space: nowrap; pointer-events: none; }
.sg-wp-tip small { opacity: .75; }
.sg-wp-k { grid-column: 2; }
.sg-wp figcaption { grid-column: 1 / -1; }

/* The scoreboard strip is filled by sports.js; keep its height while it loads. */
[data-sp-ticker] { min-height: 120px; }

/* Football gamecast (sports-game.js): field, drive, ball animation */
.gc { margin: 0 0 18px; }
.gc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 12px; background: var(--ink); color: var(--paper); font-size: 15px; }
.gc-bar .gc-pos { display: inline-flex; align-items: center; gap: 6px; }
.gc-bar .sp-logo { background: #fff; border-radius: 50%; padding: 1px; }
.gc-dd { font-size: 18px; font-weight: 800; }
.gc-rz { background: var(--down); color: #fff; padding: 2px 8px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.gc-bar > span:last-child:not(.gc-rz):not(.gc-pos) { color: #c9c9c9; }
.gc-field { margin: 0; }
.gc-field svg { display: block; width: 100%; height: auto; max-height: none; background: #2f7d32; }
.gc-field .s1 { fill: #3a8c3d; } .gc-field .s2 { fill: #34823a; }
.gc-field .yl { stroke: rgba(255,255,255,.55); stroke-width: .18; } .gc-field .yl.ten { stroke: rgba(255,255,255,.85); stroke-width: .26; }
.gc-field .hm { stroke: rgba(255,255,255,.7); stroke-width: .16; }
.gc-field .num { fill: rgba(255,255,255,.85); font-size: 4.2px; font-weight: 800; text-anchor: middle; font-family: inherit; }
.gc-field .ez { fill: #fff; font-size: 4.6px; font-weight: 800; letter-spacing: .5px; text-anchor: middle; dominant-baseline: middle; opacity: .92; }
.gc-field .edge { fill: none; stroke: #fff; stroke-width: .5; }
.gc-field .ds { stroke: rgba(255,255,255,.9); stroke-width: .25; stroke-dasharray: .8 .8; }
.gc-field .los { stroke: #2b6cff; stroke-width: .55; }
.gc-field .fd { stroke: #ffd400; stroke-width: .55; }
.gc-field .pl line { stroke: #fff; stroke-width: .7; stroke-linecap: round; }
.gc-field .pl path, .gc-field .pl circle { fill: #fff; }
.gc-field .pl.inc line { stroke-dasharray: 1 .7; opacity: .75; }
.gc-field .pl.sc line { stroke: #ffd400; } .gc-field .pl.sc path { fill: #ffd400; }
.gc-field .pl.last line { stroke-width: 1; }
.gc-field .pl.draw line { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); animation: gc-draw 1.1s ease-out .05s forwards; }
.gc-field .pl.draw path { opacity: 0; animation: gc-fade .2s ease-out 1.05s forwards; }
@keyframes gc-draw { to { stroke-dashoffset: 0; } }
@keyframes gc-fade { to { opacity: 1; } }
.gc-ball { transition: transform 1.15s cubic-bezier(.45,.05,.3,1); }
.gc-ball .bl { fill: #8a4b1f; stroke: #fff; stroke-width: .18; }
.gc-ball .lace { stroke: #fff; stroke-width: .16; }
.gc-hop.fly-pass { animation: gc-pass 1.15s ease-in-out; }
.gc-hop.fly-kick { animation: gc-kick 1.15s ease-in-out; }
.gc-hop.fly-run { animation: gc-run 1.15s ease-in-out; }
@keyframes gc-pass { 0% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-9px) scale(1.35) rotate(-20deg); } 100% { transform: translateY(0) rotate(0); } }
@keyframes gc-kick { 0% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) scale(1.6) rotate(200deg); } 100% { transform: translateY(0) rotate(360deg); } }
@keyframes gc-run { 0%, 100% { transform: translateY(0); } 25%, 75% { transform: translateY(-1.2px); } 50% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .gc-ball { transition: none; } .gc-hop { animation: none !important; } .gc-field .pl.draw line { animation: none; stroke-dashoffset: 0; } .gc-field .pl.draw path { animation: none; opacity: 1; } }
.gc-last { display: flex; gap: 12px; margin: 0; padding: 10px 12px; border: 1px solid var(--faint); border-top: 0; font-size: 15px; }
.gc-last small { color: var(--quiet); white-space: nowrap; font-weight: 700; }
.gc-nav { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; font-weight: 700; }
.gc-nav button { min-width: 36px; height: 32px; border: 1px solid var(--ink); background: var(--paper); font: inherit; cursor: pointer; color: var(--ink); }
.gc-nav button:disabled { opacity: .35; cursor: default; }
.gc-nav .gc-now { margin-left: auto; padding: 0 12px; }
.sg-sub { margin: 18px 0 6px; font-size: 16px; }
.p-body .sg-drives > li { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 10px; }
.sg-drives > li > details { flex: 1; min-width: 0; }
.gc-show { order: 2; margin: 10px 0; padding: 4px 9px; border: 1px solid var(--faint); background: var(--paper); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--ink); white-space: nowrap; }
.gc-show:hover { border-color: var(--ink); }
figure.sg-viz.gc-field svg { max-width: none; }

/* College and entity pages (part C) */
.sp-poll .sp-team { font-weight: 600; }
.sp-poll td small { color: var(--quiet); font-size: 12px; }
.sp-rktab td b a { color: var(--ink); }
.se-head .wrap { display: flex; align-items: center; gap: 24px; }
.se-head .se-pic:empty { display: none; }
.se-head .se-pic .ph { width: 160px; height: auto; max-height: 200px; object-fit: cover; display: block; }
.se-head .se-pic .sp-photo { width: 160px; }
.se-head .se-pic .sp-photo .ph { height: 200px; object-position: 50% 20%; }
@media (max-width: 640px) {
  .se-head .wrap { gap: 14px; align-items: flex-start; }
  .se-head .se-pic .sp-logo { --s: 72px !important; width: 72px; height: 72px; }
  .se-head .se-pic .sp-photo, .se-head .se-pic .ph { width: 104px; }
  .se-head .se-pic .sp-photo .ph { height: 130px; }
}

/* Gamecast: the ball spins and scales around its own centre; big-play banner */
.gc-hop { transform-box: fill-box; transform-origin: center; }
.gc-field { position: relative; }
.gc-flash { position: absolute; left: 50%; top: 50%; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 26px 12px; background: var(--c, var(--ink)); color: #fff; border: 3px solid #fff; box-shadow: 0 6px 24px rgba(0,0,0,.35);
  transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; text-align: center; }
.gc-flash b { font-size: clamp(26px, 6vw, 46px); font-weight: 900; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.gc-flash span { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.gc-flash.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.gc-flash.pop { animation: gc-pop .7s cubic-bezier(.2,1.6,.4,1); }
@keyframes gc-pop { 0% { transform: translate(-50%, -50%) scale(.4); } 100% { transform: translate(-50%, -50%) scale(1); } }
.gc-flash.gc-td { background: var(--c); }
.gc-flash.gc-td b { color: #ffd400; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.gc-flash.gc-punt { background: #1d1d1d; }
.gc-flash.gc-to, .gc-flash.gc-miss { background: #b3261e; }
.gc-flash.gc-fg b { color: #ffd400; }
.gc-field .ez-hit { fill: #ffd400; opacity: 0; }
.gc-field .ez-hit.on { animation: gc-ez 1s ease-in-out 4; }
@keyframes gc-ez { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .gc-flash, .gc-flash.pop { transition: none; animation: none; } .gc-field .ez-hit.on { animation: none; opacity: .4; } }

/* Whole rows open the game (sports.js: tr[data-href]) */
tr[data-href] { cursor: pointer; }
tr[data-href]:hover td { background: var(--wash); }
/* After the moment (or on an old drive) the big play stays as a small tag in the corner */
.gc-flash:not(.on) { left: auto; right: 8px; top: 8px; transform: none; opacity: 1; padding: 4px 10px; border-width: 2px; box-shadow: none; flex-direction: row; align-items: baseline; gap: 6px; }
.gc-flash:not(.on) b { font-size: 14px; }
.gc-flash:not(.on) span { font-size: 11px; }

/* Gamecast v2: darker grass, field furniture, plays coloured by result */
.gc-field svg { background: #245f2a; }
.gc-field .s1 { fill: #2c6d31; } .gc-field .s2 { fill: #27652c; }
.gc-field .gl { stroke: #fff; stroke-width: .45; }
.gc-field .edge { stroke-width: .9; }
.gc-field .gp { stroke: #ffd400; stroke-width: .9; stroke-linecap: round; }
.gc-field .arw { fill: rgba(255,255,255,.85); }
.gc-field .mid-logo { opacity: .28; }
.gc-field .pl { --k: #fff; filter: drop-shadow(0 0 .35px rgba(0,0,0,.9)) drop-shadow(0 0 .35px rgba(0,0,0,.9)); }
.gc-field .pl line { stroke: var(--k); stroke-width: .8; stroke-dasharray: none; opacity: 1; }
.gc-field .pl path, .gc-field .pl circle { fill: var(--k); }
.gc-field .pl text { fill: var(--k); font-size: 2.1px; font-weight: 800; dominant-baseline: middle; }
.gc-field .pl.k-gain { --k: #4dff91; }
.gc-field .pl.k-loss { --k: #ff5a52; }
.gc-field .pl.k-zero, .gc-field .pl.k-inc { --k: #f2f2f2; }
.gc-field .pl.k-inc line { stroke-dasharray: 1 .7; }
.gc-field .pl.k-pen { --k: #ffa31a; }
.gc-field .pl.k-pen line { stroke-dasharray: .6 .5; }
.gc-field .pl.k-kick { --k: #c7b8ff; }
.gc-field .pl.k-to { --k: #ff4fe6; }
.gc-field .pl.k-sc { --k: #ffd400; }
.gc-field .pl.k-sc line { stroke-width: 1.15; }
.gc-field .pl.last line { stroke-width: 1.1; }
.gc-key { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; padding: 0; font-size: 13px; color: var(--quiet); }
.p-body .gc-key li { margin: 0; display: inline-flex; align-items: center; gap: 6px; max-width: none; font-size: 13px; }
.gc-key li::before { content: ""; width: 18px; height: 4px; border-radius: 2px; background: var(--k); box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.gc-key .k-gain { --k: #2fcc6f; } .gc-key .k-loss { --k: #ff5a52; } .gc-key .k-zero { --k: #cfcfcf; }
.gc-key .k-pen { --k: #ffa31a; } .gc-key .k-kick { --k: #a996ff; } .gc-key .k-to { --k: #ff4fe6; } .gc-key .k-sc { --k: #ffd400; }
.gc-key .k-los { --k: #2b6cff; } .gc-key .k-fd { --k: #ffd400; }
.gc-key .k-los::before, .gc-key .k-fd::before { width: 3px; height: 14px; }
/* Gamecast on phones: bigger play labels and numbers so they read at 360 px */
@media (max-width: 640px) {
  .gc-field .pl text { font-size: 3.2px; }
  .gc-field .num { font-size: 5px; }
  .gc-field .ez { font-size: 5.6px; }
  .gc-field .pl line { stroke-width: 1.1; }
  .gc-bar { font-size: 14px; } .gc-dd { font-size: 16px; }
}

/* Part D gamecasts: baseball, soccer, basketball, hockey (sports-game.js) */
.pd-stage { position: relative; }
.pd-pop { animation: pd-pop .9s cubic-bezier(.2,1.6,.4,1); transform-box: fill-box; transform-origin: center; }
@keyframes pd-pop { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.6); opacity: 1; } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .pd-pop { animation: none; } }
.pd-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-viz circle.off-m { display: none; }
.pd-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 4px; font-size: 14px; color: var(--quiet); }
.pd-facts b { color: var(--ink); }
.pd-q { stroke: var(--faint); stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }

/* Basketball: hardwood court, lead tracker */
.pd-court svg { max-width: 440px; }
.pd-court .ct-floor { fill: #e9c89a; }
.pd-court .ct-paint { fill: rgba(0,0,0,.08); }
.pd-court .ln { stroke: rgba(70,40,10,.55); stroke-width: .25; fill: none; }
.pd-court .rim { stroke: #e05a1b; stroke-width: .35; }
.pd-court circle.mk { stroke: #fff; stroke-width: .12; }
.pd-court circle.ms { stroke-width: 1.4; }
.pd-lead { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; }
.pd-lead .sg-wp-y, .pd-mom .sg-wp-y { grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; font-size: 12px; font-weight: 800; color: var(--quiet); text-align: right; height: 150px; }
.pd-lead .sg-wp-plot { grid-column: 2; position: relative; cursor: crosshair; touch-action: pan-y; }
.pd-lead .sg-wp-plot svg { display: block; width: 100%; height: 150px; border: 1px solid var(--rail); background: var(--paper); }
.pd-lead .line { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.pd-lead .mid, .pd-mom .mid { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .5; }
.pd-lead .cur { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pd-lead .sg-wp-k, .pd-mom .sg-wp-k { grid-column: 2; display: flex; justify-content: space-between; font-size: 13px; color: var(--quiet); margin-top: 4px; }

/* Play feed: the team that made the play, as a stripe */
.p-body .sg-pbp li[data-t] { border-left: 3px solid var(--c, transparent); padding-left: 8px; }

/* Hockey: ice, shots by period, goals */
.sg-rink .rk-ice { fill: #f4f8fb; }
.sg-rink .crease { fill: rgba(80,140,220,.35); stroke: #c8102e; stroke-width: .6; }
.sg-rink circle.goal { stroke: #fff; stroke-width: .8; }
.sg-rink circle.sog { opacity: .75; }
.pd-per td:first-child { min-width: 7em; }
.p-body .pd-goals { list-style: none; padding: 0; margin: 6px 0 12px; }
.p-body .pd-goals li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 10px; border-left: 4px solid var(--c); border-bottom: 1px solid var(--rail); max-width: none; font-size: 15px; }
.pd-goals li > span { flex: 1; }
.pd-goals small { display: block; color: var(--quiet); font-size: 13px; }
.pd-sc { font-size: 17px; font-variant-numeric: tabular-nums; }
.pd-tag { display: inline-block; margin-left: 8px; padding: 1px 6px; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: #fff; vertical-align: 2px; }
.pd-tag.pp { background: #2b6cff; } .pd-tag.sh { background: #b3261e; } .pd-tag.en { background: #555; }

/* Soccer: momentum, stat bars, pitch */
.pd-mom { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; margin-top: 6px; }
.pd-mom .sg-wp-y { height: 120px; }
.pd-mom-plot { grid-column: 2; position: relative; }
.pd-mom-plot svg { display: block; width: 100%; height: 120px; border: 1px solid var(--rail); background: var(--paper); }
.pd-mk { position: absolute; transform: translateX(-50%); font-size: 13px; line-height: 1; cursor: default; filter: drop-shadow(0 0 1px #fff); }
.pd-mk.s { font-size: 12px; font-weight: 800; color: var(--quiet); }
.pd-mk.g { font-size: 16px; }
.pd-bars { margin: 6px 0 12px; max-width: 560px; }
.pd-bars-h { display: flex; justify-content: space-between; margin-bottom: 4px; font-weight: 700; }
.pd-bar { display: grid; grid-template-columns: 3.5em 1fr 3.5em; align-items: end; gap: 10px; padding: 5px 0; }
.pd-bar small { display: block; text-align: center; font-size: 12px; font-weight: 700; color: var(--quiet); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.pd-v { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 16px; }
.pd-bar .pd-v:last-child { text-align: right; }
.pd-track { display: flex; height: 8px; gap: 2px; }
.pd-track i { display: block; height: 100%; min-width: 2px; }
.pd-pitch .pt-grass { fill: #2f7d32; }
.pd-pitch .pt-stripe { fill: #35873a; }
.pd-pitch .ln { stroke: rgba(255,255,255,.85); stroke-width: .35; fill: none; }
.pd-pitch .goalmouth { fill: #fff; }
.pd-pitch circle.mk { stroke: #fff; stroke-width: .35; }

/* Baseball: diamond, count, at-bat */
.pd-bb-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: center; }
.pd-diamond { display: block; width: 100%; height: auto; max-width: 420px; }
.pd-diamond .of { fill: #2f7d32; }
.pd-diamond .dirt { fill: #c7925a; }
.pd-diamond .grass { fill: #3a8c3d; }
.pd-diamond .mound { fill: #c7925a; stroke: #b07c47; }
.pd-diamond .foul { stroke: #fff; stroke-width: 1; }
.pd-diamond .bs { fill: #fff; stroke: #8a6a45; stroke-width: 1; transition: fill .3s; }
.pd-diamond .bs.on { fill: #ffd400; stroke: #fff; stroke-width: 1.5; }
.pd-diamond .plate { fill: #fff; }
.pd-diamond .pd-nm { font-size: 8px; font-weight: 800; fill: #fff; text-anchor: middle; paint-order: stroke; stroke: rgba(0,0,0,.55); stroke-width: 2px; }
.pd-mu p { margin: 0 0 10px; }
.pd-mu small { display: block; font-size: 12px; font-weight: 700; color: var(--quiet); text-transform: uppercase; letter-spacing: .05em; }
.pd-mu b { font-size: 18px; }
.pd-inn { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--down); }
.pd-count { display: flex; gap: 16px; margin: 0 0 12px; font-size: 13px; }
.pd-count span { display: inline-flex; align-items: center; gap: 4px; }
.pd-count b { font-size: 13px; margin-right: 2px; }
.pd-count i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--faint); }
.pd-count i.b.on { background: #2fcc6f; border-color: #2fcc6f; }
.pd-count i.s.on, .pd-count i.o.on { background: #e5483c; border-color: #e5483c; }
.pd-note { font-size: 14px; color: var(--quiet); }
.pd-abres { margin: 0 0 8px; font-weight: 700; }
.pd-ab { align-items: start; }
.pd-zone .zn { fill: rgba(0,0,0,.03); stroke: var(--ink); stroke-width: 1.5; }
.pd-zone .pt circle { stroke: #fff; stroke-width: 1; }
.pd-zone .pt text { font-size: 7px; font-weight: 800; fill: #fff; text-anchor: middle; }
.pd-zone .k-bl circle { fill: #2fcc6f; } .pd-zone .k-st circle { fill: #e5483c; } .pd-zone .k-sw circle { fill: #b3261e; }
.pd-zone .k-fl circle { fill: #e2a400; } .pd-zone .k-ip circle { fill: #2b6cff; }
.p-body .pd-pitches { list-style: none; margin: 0; padding: 0; }
.p-body .pd-pitches li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 6px 0; border-bottom: 1px solid var(--rail); font-size: 14px; max-width: none; }
.pd-pitches li > i { flex: none; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-style: normal; font-weight: 800; font-size: 12px; display: grid; place-items: center; background: var(--k, #888); }
.pd-pitches li > span { flex: 1; }
.pd-pitches small { color: var(--quiet); white-space: nowrap; }
.pd-pitches .k-bl { --k: #2fcc6f; } .pd-pitches .k-st { --k: #e5483c; } .pd-pitches .k-sw { --k: #b3261e; } .pd-pitches .k-fl { --k: #e2a400; } .pd-pitches .k-ip { --k: #2b6cff; }
.p-body .pd-halves { list-style: none; padding: 0; margin: 0; }
.p-body .pd-halves > li { margin: 0; border-bottom: 1px solid var(--rail); max-width: none; }
.pd-halves summary { display: flex; align-items: center; gap: 8px; padding: 10px 0; cursor: pointer; font-size: 15px; }
.pd-halves summary b { flex: 1; }
.pd-runs { font-size: 13px; color: var(--quiet); }
.pd-runs.r { color: var(--ink); font-weight: 800; }
.pd-halves summary small { color: var(--quiet); font-variant-numeric: tabular-nums; min-width: 3.5em; text-align: right; }
.pd-halves .sg-pl li b { margin-left: auto; white-space: nowrap; }
@media (max-width: 640px) { .pd-bb-grid { grid-template-columns: 1fr; } }
/* Baseball: runner tokens, the last ball in play, the newest play acted out (sports-game.js animateBB) */
.pd-diamond [data-tip] { cursor: pointer; outline: none; }
.pd-diamond .rn circle { fill: var(--c); stroke: #ffd400; stroke-width: 1.8; transition: stroke-width .15s; }
.pd-diamond .rn text { font-size: 5.6px; font-weight: 900; fill: #fff; text-anchor: middle; pointer-events: none; }
.pd-diamond .rn .rn-nm { font-size: 7.5px; font-weight: 800; paint-order: stroke; stroke: rgba(0,0,0,.6); stroke-width: 2px; }
.pd-diamond .rn .rn-nm.a-s { text-anchor: start; } .pd-diamond .rn .rn-nm.a-e { text-anchor: end; }
.pd-diamond .rn:hover circle, .pd-diamond .rn:focus-visible circle, .pd-diamond .rn.sel circle { stroke: #fff; stroke-width: 2.6; }
.pd-diamond .rn.wait { opacity: 0; }
.pd-diamond .rn.pd-pop { animation: bb-tok .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes bb-tok { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.pd-diamond .rn.ghost circle { stroke: #fff; }
.pd-diamond .rn.ghost.out circle { fill: #b3261e; }
.pd-diamond .rn.ghost .x { font-size: 9px; fill: #fff; }
.pd-diamond .pd-nm[data-tip]:hover, .pd-diamond .pd-nm.sel, .pd-diamond .pd-nm:focus-visible { fill: #ffd400; }
.pd-diamond .bb-land circle { fill: #fff; stroke: var(--c); stroke-width: 1.6; }
.pd-diamond .bb-land:hover circle, .pd-diamond .bb-land.sel circle, .pd-diamond .bb-land:focus-visible circle { stroke: #ffd400; stroke-width: 2.4; }
.pd-diamond .bb-ball { fill: #fff; stroke: #c8102e; stroke-width: .7; }
.pd-diamond .bb-shadow { fill: rgba(0,0,0,.35); }
.pd-diamond .bb-ring { fill: none; stroke: var(--c); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; }
.pd-diamond .bb-word { font-size: 10px; font-weight: 900; text-anchor: middle; text-transform: uppercase; letter-spacing: .03em; paint-order: stroke; stroke: rgba(0,0,0,.7); stroke-width: 2.4px; fill: #fff; pointer-events: none; }
.pd-diamond .bb-word.run, .pd-diamond .bb-word.hr { fill: #ffd400; font-size: 12px; }
.pd-diamond .bb-word.steal { fill: #7fe3ff; }
.pd-diamond .bb-word.out { fill: #ff8a80; }
.bb-last { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 12px 0 0; padding: 9px 12px; border-left: 5px solid var(--c, var(--ink)); background: var(--rail); font-size: 15px; }
.bb-last b { flex: none; padding: 1px 7px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: #555; }
.bb-last span { flex: 1 1 20ch; }
.bb-last i { flex: none; font-style: normal; font-weight: 900; color: var(--ink); }
.bb-last.k-hit b { background: #1f7a3a; } .bb-last.k-run b, .bb-last.k-hr b { background: var(--c, #b8860b); } .bb-last.k-hr b { box-shadow: inset 0 0 0 2px #ffd400; }
.bb-last.k-steal b { background: #1769aa; } .bb-last.k-walk b { background: #6a4fb3; } .bb-last.k-out b { background: #555; }
.bb-last.new { animation: bb-in .5s cubic-bezier(.2,1.2,.4,1), bb-glow 2.6s ease-out; }
@keyframes bb-in { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bb-glow { 0%, 30% { background: #fff3b0; } 100% { background: var(--rail); } }
.pd-stage .bb-hint { margin: 6px 0 0; font-size: 13px; color: var(--quiet); }
.sg-spray circle[data-tip] { cursor: pointer; }
.sg-spray circle[data-tip]:hover, .sg-spray circle.sel { stroke: var(--ink); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.pd-zone .pt[data-tip] { cursor: pointer; }
.pd-zone .pt.sel circle, .pd-zone .pt:hover circle { stroke: var(--ink); stroke-width: 2; }
.bb-tip { position: fixed; z-index: 60; max-width: min(300px, calc(100vw - 16px)); padding: 8px 11px; background: var(--ink); color: var(--paper); font-size: 14px; line-height: 1.35; box-shadow: 0 6px 18px rgba(0,0,0,.25); pointer-events: none; }
.bb-tip b { display: block; font-size: 15px; }
.bb-tip span { display: block; margin-top: 2px; font-size: 13px; opacity: .85; }
@media (prefers-reduced-motion: reduce) { .bb-last.new { animation: none; } }

/* Part E racing: track cards (site/sports-track.js) */
.tk-card { border-top: 5px solid var(--ink); padding-top: 12px; }
.tk-head h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.tk-head p { margin: 4px 0 0; color: var(--quiet); font-size: 15px; }
.tk-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; margin-top: 14px; align-items: start; }
.tk-fig { margin: 0; }
.tk-map { display: block; width: 100%; height: auto; max-height: 420px; background: #f4f4f1; border: 1px solid var(--rail); }
.tk-map .tk-run { fill: none; stroke: #2b2b2b; stroke-width: 22; stroke-linejoin: round; stroke-linecap: round; }
.tk-map .tk-line { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 18 14; stroke-linejoin: round; }
.tk-schem .tk-run { stroke-width: 34; }
.tk-map .tk-sf rect { fill: #fff; stroke: var(--down); stroke-width: 5; }
.tk-map .tk-sf text { font-size: 26px; font-weight: 800; fill: var(--down); text-anchor: middle; }
.tk-img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; background: #fff; border: 1px solid var(--rail); }
.tk-cap { margin: 6px 0 0; font-size: 12px; color: var(--quiet); }
.tk-cap a { color: inherit; }
.tk-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: 15px; }
.tk-facts dt { font-weight: 700; color: var(--quiet); }
.tk-facts dd { margin: 0; }
.tk-res { margin-bottom: 16px; }
.p-body .tk-res h3 { margin: 0 0 6px; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.p-body .tk-res ol { list-style: none; margin: 0; padding: 0; }
.p-body .tk-res li { display: flex; align-items: center; gap: 8px; margin: 0; padding: 4px 0; border-bottom: 1px solid var(--rail); font-size: 15px; max-width: none; }
.tk-res li .p { width: 1.6em; color: var(--quiet); font-weight: 800; font-variant-numeric: tabular-nums; }
.tk-res li.lead { font-weight: 800; }
.tk-res li.lead b { margin-left: auto; padding: 1px 8px; background: #ffd400; color: #111; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.tk-live { display: inline-block; padding: 1px 7px; background: var(--down); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.tk-about { margin: 14px 0 0; font-size: 16px; max-width: 70ch; }
.tk-car { transition: transform 3.4s linear; opacity: 0; }
.tk-car.on { opacity: 1; }
.tk-car circle { fill: var(--c); stroke: #fff; stroke-width: 3; }
.tk-car text { font-size: 11px; font-weight: 800; fill: #fff; text-anchor: middle; paint-order: stroke; stroke: rgba(0,0,0,.55); stroke-width: 2px; }
@media (max-width: 760px) { .tk-body { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .tk-car { transition: none; } }

/* ---------- Tennis: one match on its court (site/sports-event.js, &m=) ---------- */
.se-m { position: relative; }
.se-m .se-who a { position: relative; z-index: 1; }
.tn-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tn-kind { margin: 0 0 10px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--quiet); }
.tn-board { border: 1px solid var(--faint); border-top: 3px solid var(--ink); background: var(--paper); margin: 0 0 14px; }
.tn-board:has(.tn-live) { border-top-color: var(--down); }
.tn-board .table-wrap { margin: 0; }
.tn-sb { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tn-sb th, .tn-sb td { padding: 10px 12px; border-bottom: 1px solid var(--rail); text-align: left; font-size: 17px; }
.tn-sb thead th { padding: 6px 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--quiet); border-bottom: 1px solid var(--faint); }
.tn-sb tbody th { font-weight: 500; width: 100%; }
.tn-sb tbody th .se-who { display: inline-flex; vertical-align: middle; max-width: calc(100% - 24px); }
.tn-sb tbody th .sp-flag { margin-right: 6px; flex: none; }
.tn-sb tbody th .se-who > span { white-space: nowrap; }
.tn-sb .num { text-align: center; min-width: 44px; white-space: nowrap; font-size: 22px; font-weight: 600; }
.tn-sb thead .num { font-size: 12px; }
.tn-sb td.won { font-weight: 800; }
.tn-sb td sup { font-size: 11px; font-weight: 600; margin-left: 1px; }
.tn-sb .cur { background: var(--wash); }
.tn-sb td.cur { color: var(--down); font-weight: 800; }
.tn-sb tr.won th { font-weight: 800; }
.tn-sb tbody tr:last-child th, .tn-sb tbody tr:last-child td { border-bottom: 0; }
.tn-srv { display: inline-block; width: 11px; height: 11px; margin-left: 8px; vertical-align: middle; border-radius: 50%; background: #d4ec3c; box-shadow: inset 0 0 0 1.5px #8fa61a; }
.tn-st { margin: 0 !important; padding: 8px 12px; border-top: 1px solid var(--faint); font-size: 14px !important; color: var(--quiet); }
.tn-live { display: inline-block; padding: 1px 7px; margin-right: 4px; background: var(--down); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tn-court { margin: 0 0 18px; }
.tn-court svg { display: block; width: 100%; height: auto; border-radius: 2px; }
.tn-court .out { fill: var(--o); }
.tn-court .in { fill: var(--i); }
.tn-court .st { fill: rgba(255,255,255,.06); }
.tn-court .ln line, .tn-court .ln rect { stroke: #fff; stroke-width: 1.3; fill: none; }
.tn-court .net { stroke: #f4f4f1; stroke-width: 1.8; }
.tn-court .net-sh { stroke: rgba(0,0,0,.28); stroke-width: 2.4; }
.tn-court .post { fill: #222; }
.tn-court .pl { fill: #fff; stroke: #111; stroke-width: 1.6; }
.tn-court .pl.lost { fill: rgba(255,255,255,.45); stroke: rgba(0,0,0,.4); }
.tn-court .ball circle { fill: #d4ec3c; stroke: #6f8212; stroke-width: .7; }
.tn-court .ball path { fill: none; stroke: #fff; stroke-width: .8; }
.tn-court .nm { fill: #fff; font: 800 12px var(--sans); text-anchor: middle; letter-spacing: .01em; paint-order: stroke; stroke: rgba(0,0,0,.25); stroke-width: 2px; }
.tn-court .nm.lost { fill: rgba(255,255,255,.7); }
.tn-hard { --i: #3a64a3; --o: #2f557f; }
.tn-clay { --i: #c8653c; --o: #b85a33; }
.tn-clay .ln line, .tn-clay .ln rect { stroke: #fbf3ea; }
.tn-grass { --i: #5f9e45; --o: #538d3b; }
.tn-sets { list-style: none; padding: 0 !important; margin: 0 0 8px !important; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.p-body .tn-sets li { font-size: 16px; margin: 0; }
.tn-tally { font-size: 16px !important; margin: 0 0 4px !important; }
.tn-log { list-style: none; padding: 0 !important; margin: 0 0 8px !important; border-top: 1px solid var(--rail); }
.p-body .tn-log li { margin: 0; max-width: none; }
.tn-g { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: baseline; padding: 8px 0 8px 10px; border-bottom: 1px solid var(--rail); border-left: 3px solid transparent; font-size: 16px !important; line-height: 1.4 !important; }
.tn-g .tn-sc { font-weight: 800; font-variant-numeric: tabular-nums; }
.tn-g time { font-size: 13px; color: var(--quiet); white-space: nowrap; }
.tn-g.brk { border-left-color: var(--down); background: var(--down-bg); }
.tn-g.set { border-left-color: var(--ink); background: var(--wash); }
.tn-g.end { border-left-color: var(--up); background: var(--up-bg); }
.tn-g.gap { color: var(--quiet); font-style: italic; }
.tn-src { font-size: 14px !important; color: var(--quiet); margin-top: 8px !important; }
@media (max-width: 640px) {
  .tn-sb th, .tn-sb td { padding: 8px 6px; font-size: 15px; }
  .tn-sb .num { min-width: 32px; font-size: 19px; }
  .tn-sb tbody th .se-who > span { white-space: normal; }
  .tn-g { grid-template-columns: 40px 1fr auto; gap: 8px; }
  .tn-court .nm { font-size: 13px; }
}

/* helper 1: nascar + weather */
.nas { margin-top: 18px; padding-top: 12px; border-top: 2px solid var(--ink); }
.nas-head h3 { margin: 0 0 4px; font-size: 18px; }
.nas-head p { margin: 0 0 10px; font-size: 14px; color: var(--quiet); }
.nas-head p b { color: var(--ink); }
.nas-flag { display: inline-block; padding: 1px 8px; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #111; background: #ddd; }
.nas-flag.f1 { background: #2ecc40; } .nas-flag.f2 { background: #ffd400; } .nas-flag.f3 { background: #e53935; color: #fff; }
.nas-flag.f4, .nas-flag.f9 { background: repeating-linear-gradient(45deg, #111 0 6px, #fff 6px 12px); color: #111; text-shadow: 0 0 3px #fff; }
.nas-flag.f5 { background: #fff; border: 1px solid #999; }
.nas-trk { margin: 0 0 12px; }
.nas-trk svg { display: block; width: 100%; max-width: 560px; height: auto; background: var(--paper); }
.nas-trk figcaption { font-size: 13px; color: var(--quiet); margin-top: 4px; }
.nas-car { transition: transform 1.2s linear; }
.nas-car circle { stroke: #fff; stroke-width: 2; }
.nas-car text { fill: #fff; font-size: 11px; font-weight: 800; text-anchor: middle; font-family: inherit; }
@media (prefers-reduced-motion: reduce) { .nas-car { transition: none; } }
.nas-tbl td small { display: block; font-size: 12px; color: var(--quiet); }
.nas-tbl tr.out td { color: var(--quiet); }
.nas-no { display: inline-block; min-width: 26px; padding: 2px 4px; border-radius: 3px; background: var(--c); color: #fff; font-weight: 800; text-align: center; }
.tk-wx { margin: 0 0 10px; font-size: 14px; }
.tk-wx a, .sg-wx-src { color: var(--quiet); font-size: 12px; }
.sg-wx::before { content: " · "; }

/* helper 2: nhl + mlb */
.sg-viz circle.off-s { display: none; }
.sg-filter.hk-s { margin-left: 8px; }
.hk-pp { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 6px 12px; background: var(--c, var(--ink)); color: #fff; font-size: 14px; }
.hk-pp b { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.hk-pp .sp-logo { background: #fff; border-radius: 50%; padding: 1px; }
.pd-pitches .mlb-mv { display: block; font-size: 12px; color: var(--quiet); font-weight: 500; }
.pd-abres .mlb-hit { display: block; margin-top: 2px; font-size: 13px; color: var(--quiet); }
.p-body .mlb-marks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 4px 0 12px; padding: 0; }
.p-body .mlb-marks li { margin: 0; font-size: 15px; max-width: none; }
.mlb-marks small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--quiet); }
.mlb-marks b { font-size: 18px; margin-right: 4px; }
.pd-zone .plate { fill: #fff; stroke: var(--faint); }
/* helper 1: the race tracker draws its own track (it isn't inside .tk-map) */
.nas-trk .tk-run { fill: none; stroke: #2b2b2b; stroke-width: 34; stroke-linejoin: round; stroke-linecap: round; }
.nas-trk .tk-line { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 18 14; stroke-linejoin: round; }
.nas-trk .tk-sf rect { fill: #fff; stroke: var(--down); stroke-width: 3; }

/* helper 5: keyed sources (Odds API books, CFBD college extras, football-data scoring chart, TheSportsDB facts) */
.sg-odds tr.kx-best th { color: var(--ink); }
.sg-odds td b { font-weight: 800; }
.kx-bestline { margin: 8px 0 0; font-size: 15px; }
.kx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.p-body .kx-two h3 { margin: 4px 0 0; font-size: 16px; }
.kx-adv small { color: var(--quiet); font-size: 12px; }
.p-body .kx-list { padding-left: 1.2em; margin: 8px 0; }
.p-body .kx-list li { margin: 4px 0; font-size: 16px; max-width: none; }
.kx-list small { color: var(--quiet); margin-left: 4px; }
.kx-stars { color: #c99a00; letter-spacing: 1px; margin-left: 4px; }
.kx-big { font-size: 20px; margin: 4px 0 8px; }
@media (max-width: 640px) { .kx-two { grid-template-columns: 1fr; } }

/* helper 4: nflverse, baseball history, cricket */
.mx-adv th[scope="row"] { font-weight: 700; }
.mx-adv td small { color: var(--quiet); font-size: 12px; }
.mx-fig { margin: 8px 0 16px; }
.mx-scatter { display: block; width: 100%; height: auto; max-width: 720px; }
.mx-scatter .mx-bg { fill: var(--paper); stroke: var(--rail); }
.mx-scatter .mx-avg { stroke: var(--faint); stroke-dasharray: 4 4; }
.mx-scatter .mx-ax { font-size: 12px; fill: var(--quiet); font-weight: 700; }
.mx-scatter .mx-q { font-size: 11px; fill: var(--quiet); }
.mx-scatter .mx-tm circle { fill: var(--ink); }
.mx-scatter a:hover image { transform-box: fill-box; transform-origin: center; transform: scale(1.25); }
.mx-post td.sp-d { white-space: nowrap; }
.p-body .cr-list { list-style: none; padding: 0; margin: 8px 0 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.p-body .cr-match { margin: 0; padding: 10px 12px; border: 1px solid var(--faint); border-top: 3px solid var(--ink); background: var(--paper); max-width: none; }
.cr-match.in { border-top-color: var(--down); }
.p-body .cr-inns { list-style: none; padding: 0; margin: 4px 0; }
.p-body .cr-inns li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; padding: 4px 0; border-bottom: 1px solid var(--rail); max-width: none; font-size: 15px; }
.cr-inns li.won .cr-team { font-weight: 800; }
.cr-team { flex: 1; display: inline-flex; align-items: center; gap: 6px; }
.cr-inns b { font-variant-numeric: tabular-nums; }
.cr-who { flex-basis: 100%; font-size: 13px; color: var(--quiet); }
.p-body .cr-res { margin: 6px 0 2px; font-weight: 700; font-size: 14px; }
.p-body .cr-meta { margin: 2px 0; font-size: 13px; color: var(--quiet); }
.cr-on { color: var(--down); font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .05em; }

/* F1 history bits: past winners on track cards, career totals on driver pages */
.tk-past { margin-top: 14px; }
.tk-past h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.p-body .tk-past-l { list-style: none; margin: 0; padding: 0; }
.p-body .tk-past-l li { display: flex; gap: 8px; align-items: baseline; margin: 0; padding: 4px 0; border-bottom: 1px solid var(--rail); font-size: 14px; max-width: none; }
.tk-past-l .rk { width: 3em; color: var(--quiet); font-variant-numeric: tabular-nums; font-weight: 700; }
.tk-past-l small { color: var(--quiet); }
.se-career { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 6px 0 10px; }
.se-career div { border-top: 3px solid var(--ink); padding-top: 6px; }
.se-career b { display: block; font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.se-career span { font-size: 13px; color: var(--quiet); }
@media (max-width: 640px) { .se-career { grid-template-columns: repeat(3, 1fr); } }
