:root {
  /* Game Story theme: dark navy, condensed headings, team colors. */
  --bg: #0a0e17; --card: #111827; --text: #f1f5f9; --muted: #8b95a7; --line: #1f2937;
  --accent: #e11d48; --live: #ff4d5e; --chip: #1e293b; --link: #7cb3ff;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.4 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.top { max-width: 1200px; margin: 0 auto; padding: 24px 16px 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
h1 { margin: 0; font-size: 24px; letter-spacing: -0.01em; }
.datebar { display: flex; gap: 6px; align-items: center; }
.datebar button, .datebar input { height: 36px; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 8px; font: inherit; }
.datebar button { min-width: 36px; font-size: 20px; cursor: pointer; }
.datebar button.today { font-size: 14px; padding: 0 12px; }
.datebar input { padding: 0 8px; }
.date-label { width: 100%; margin: 0; color: var(--muted); }
main { max-width: 1200px; margin: 0 auto; padding: 8px 16px 40px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; }
.msg { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 48px 0; }
.game { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 16px; }
.status { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 8px; display: flex; justify-content: space-between; gap: 8px; }
.status.live { color: var(--live); }
.status.live .label::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); margin-right: 6px; vertical-align: 1px; }
.status.live .label:has(.int-ico, .stop-ico)::before { display: none; }
.status .venue { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
table.ls { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ls th { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; padding: 2px 6px 6px; border-bottom: 1px solid var(--line); }
.ls th:first-child { text-align: left; }
.ls td { text-align: center; padding: 8px 6px; width: 40px; }
.ls td.team { text-align: left; width: auto; }
.ls td.tot { font-weight: 700; font-size: 17px; }
.ls td.sog { color: var(--muted); }
.ls tr.loser td.team, .ls tr.loser td.tot { color: var(--muted); }
.team-cell { display: flex; align-items: center; gap: 10px; }
.team-cell img { width: 34px; height: 34px; }
.team-cell .abbr { font-weight: 700; }
.team-cell .name { color: var(--muted); font-size: 13px; }
.team-cell .rec { color: var(--muted); font-size: 12px; margin-left: 4px; }
.goals { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.goals h3 { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 10px 0 4px; }
.goal { display: grid; grid-template-columns: 44px 1fr auto 28px; gap: 8px; align-items: baseline; padding: 4px 0; }
.goal .tm { font-weight: 700; font-size: 13px; }
.goal .who strong { font-weight: 600; }
.goal .ast { color: var(--muted); font-size: 13px; }
.goal .meta { color: var(--muted); font-size: 13px; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 5px; border-radius: 4px; background: var(--chip); margin-left: 6px; color: var(--text); }
.goal .play { align-self: center; width: 26px; height: 26px; border-radius: 50%; background: var(--chip); display: grid; place-items: center; }
.goal .play::before { content: ""; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent var(--accent); margin-left: 2px; }
.goal .play:hover, .goal .play:focus-visible { background: var(--accent); }
.goal .play:hover::before, .goal .play:focus-visible::before { border-left-color: var(--card); }
.videos { display: flex; gap: 8px; margin-top: 10px; }
.videos a { font-size: 13px; color: var(--accent); background: var(--chip); padding: 4px 10px; border-radius: 999px; text-decoration: none; }
.videos a::before { content: "\25B6"; font-size: 10px; margin-right: 6px; }
.no-goals { color: var(--muted); font-size: 13px; margin: 8px 0 0; }

.goal .play { font-size: 0; }
.lightbox { padding: 0; border: 0; border-radius: 12px; background: #000; color: #fff; width: min(calc(100vw - 32px), calc((100vh - 80px) * 16 / 9)); max-width: none; max-height: calc(100vh - 32px); overflow: hidden; }
@supports (height: 1dvh) { .lightbox { width: min(calc(100vw - 32px), calc((100dvh - 80px) * 16 / 9)); } }
.lightbox::backdrop { background: rgba(0, 0, 0, .75); }
.lb-head { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; }
.lb-head h2 { flex: 1; margin: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-head a { color: #9cc3ff; font-size: 13px; text-decoration: none; }
.lb-head button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.lb-head button:hover { background: rgba(255,255,255,.24); }
.lb-frame { aspect-ratio: 16 / 9; }
.lb-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.box-btn { display: block; margin-top: 12px; padding: 8px 12px; text-align: center; border: 1px solid var(--line); border-radius: 8px; color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: none; }
.box-btn:hover, .box-btn:focus-visible { background: var(--chip); }

/* ── Game Story theme ── */
.top { padding-top: 28px; }
h1 { font: 800 40px/1 "Barlow Condensed", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .02em; display: flex; align-items: center; gap: 12px; }
h1::before { content: ""; width: 8px; height: 30px; background: var(--accent); transform: skewX(-15deg); }
.date-label { font: 700 18px "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.datebar button, .datebar input { border-radius: 4px; background: var(--card); }
.datebar button.today { background: var(--accent); border-color: var(--accent); color: #fff; font: 800 16px "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.game { position: relative; border-radius: 4px; padding-top: 18px; overflow: hidden; }
.game::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--away) 50%, var(--home) 50%); }
.status { font: 700 15px "Barlow Condensed", sans-serif; letter-spacing: .08em; }
.status .venue { font: 400 13px Inter, sans-serif; }
.ls th { font: 700 13px "Barlow Condensed", sans-serif; letter-spacing: .08em; }
.ls tbody tr td.team { border-left: 4px solid var(--team); background: linear-gradient(90deg, color-mix(in srgb, var(--team) 30%, transparent), transparent 85%); padding-left: 10px; }
.ls tbody tr + tr td { border-top: 2px solid var(--bg); }
.ls td.tot { font: 800 30px/1 "Barlow Condensed", sans-serif; }
.ls tr.loser td.tot, .ls tr.loser .abbr { opacity: .55; }
.team-cell .abbr { font: 800 22px/1 "Barlow Condensed", sans-serif; letter-spacing: .03em; }
.team-cell .name { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.goals h3 { font: 700 14px "Barlow Condensed", sans-serif; letter-spacing: .08em; }
.goal .tm { font: 800 16px "Barlow Condensed", sans-serif; }
.tag { background: #facc15; color: #000; border-radius: 2px; }
.goal .play { background: var(--chip); }
.goal .play::before { border-left-color: #fff; }
.goal .play:hover, .goal .play:focus-visible { background: var(--accent); }
.videos a { color: var(--link); border-radius: 3px; }
.box-btn { border-radius: 3px; border: 0; background: var(--accent); color: #fff; font: 800 17px "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .08em; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.box-btn:hover, .box-btn:focus-visible { background: #be123c; }

/* Live strength of play */
.strength { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 2px 8px 2px 2px; border-radius: 3px; background: #1e293b; color: #cbd5e1; font: 700 12px "Barlow Condensed", Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; vertical-align: middle; transform: none; }
.strength b { padding: 1px 6px; border-radius: 2px; background: #334155; color: #fff; font-weight: 800; }
.strength i { font-style: normal; color: #fff; }
.strength.pp, .strength.empty-net { background: color-mix(in srgb, var(--team) 25%, #0a0e17); color: #fff; box-shadow: inset 3px 0 0 var(--team); }
.strength.pp b, .strength.empty-net b { background: var(--team); color: var(--on, #fff); }
.strength.pp { animation: strength-pulse 1.6s ease-in-out infinite; }
@keyframes strength-pulse { 50% { box-shadow: inset 3px 0 0 var(--team), 0 0 0 3px color-mix(in srgb, var(--team) 35%, transparent); } }
@media (prefers-reduced-motion: reduce) { .strength.pp { animation: none; } }

/* ── Contrast: tints stay dark so text is always readable; the colored bar carries the team ── */
.ls tbody tr td.team { background: linear-gradient(90deg, color-mix(in srgb, var(--team) 16%, #111827), #111827 90%); }
.ls tr.loser td.team, .ls tr.loser td.tot { color: #b6c0d0; }
.ls tr.loser td.tot, .ls tr.loser .abbr { opacity: 1; }
.team-cell .name, .team-cell .rec, .ls td.sog { color: #aab4c5; }
.status .venue, .goal .ast, .goal .meta, .goals h3, .no-goals { color: #aab4c5; }

/* ── Layout switch and compact rows ── */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.seg button { height: 36px; padding: 0 12px; border: 0; background: var(--card); color: #aab4c5; font: 800 15px "Barlow Condensed", sans-serif; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--chip); color: #fff; box-shadow: inset 0 -3px 0 var(--accent); }
main.compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 10px; }
.cg { padding: 14px 12px 10px; }
.cg-head { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 8px; }
.cg .status { margin: 0; font-size: 13px; flex-direction: column; justify-content: center; gap: 2px; }
.cg .strength { margin-left: 0; }
.cg-score { display: flex; align-items: center; justify-content: center; gap: 10px; }
.cg-score .dash { color: #64748b; font: 800 22px "Barlow Condensed", sans-serif; }
.ct { display: flex; align-items: center; gap: 8px; padding: 2px 8px 2px 8px; border-bottom: 3px solid var(--team); min-width: 0; }
.ct.home { flex-direction: row-reverse; }
.ct img { width: 28px; height: 28px; flex: none; }
.ct .abbr { font: 800 20px/1 "Barlow Condensed", sans-serif; letter-spacing: .03em; }
.ct .tot { font: 800 30px/1 "Barlow Condensed", sans-serif; min-width: 1ch; text-align: center; font-variant-numeric: tabular-nums; }
.ct.loser .abbr, .ct.loser .tot { color: #aab4c5; }
.cg-act { display: flex; align-items: center; gap: 6px; }
.cg-box, .cg .more { height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; text-decoration: none; font: 800 14px "Barlow Condensed", sans-serif; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.cg-box { padding: 0 10px; background: var(--accent); color: #fff; }
.cg .more { width: 30px; border: 0; background: var(--chip); color: #e2e8f0; font-size: 14px; }
.cg-scorers { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); display: grid; gap: 3px; font-size: 13px; color: #dbe2ee; }
.sl { display: grid; grid-template-columns: 38px 1fr; gap: 6px; align-items: baseline; }
.sl .tm { font: 800 14px "Barlow Condensed", sans-serif; letter-spacing: .04em; color: var(--team); }
.sc { display: inline-block; margin-right: 10px; white-space: nowrap; }
.sc b { margin-left: 3px; color: #fff; }
.sc i { font-style: normal; font-size: 10px; font-weight: 700; margin-left: 3px; padding: 0 3px; border-radius: 2px; background: #facc15; color: #000; }
.cg-scorers .none { color: #aab4c5; }
.cg-more { margin-top: 6px; }
@media (max-width: 520px) { .cg-head { grid-template-columns: 1fr auto; } .cg .status { flex-direction: row; grid-column: 1 / -1; justify-content: space-between; } }
.cg-box { white-space: nowrap; }

/* Goal horn toggles + red flash */
.horn-toggles { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-right: 6px; }
.horn-btn { font: 600 12px Inter, sans-serif; padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: inherit; cursor: pointer; opacity: .75; }
.horn-btn.on { background: #c8102e; border-color: #c8102e; color: #fff; opacity: 1; }
#goal-flash { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); width: min(94vw, 760px); z-index: 9999; border-radius: 16px; border: 2px solid #ff2b2b; background: linear-gradient(180deg, #1a0a0e, #2a0d12); color: #fff; padding: 18px 12px 46px; animation: ga-glow 1s steps(2, jump-none) infinite; }
.ga-lights { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 3vw, 32px); }
.ga-msg { text-align: center; flex: 1; min-width: 0; }
.ga-big { font: 900 clamp(24px, 6.4vw, 48px)/1 "Barlow Condensed", Inter, sans-serif; letter-spacing: .06em; }
.ga-sc { margin-top: 8px; font: 700 clamp(14px, 3.4vw, 24px)/1.2 "Barlow Condensed", Inter, sans-serif; letter-spacing: .05em; }
.ga-sc .hit { color: #ffd23f; }
.ga-light { width: clamp(52px, 13vw, 100px); flex: none; }
.ga-light svg { width: 100%; display: block; overflow: visible; }
.ga-light .dome { fill: #8c1016; animation: ga-dome 1s steps(2, jump-none) infinite; }
.ga-light .halo { fill: #ff2b2b; opacity: 0; filter: blur(10px); animation: ga-halo 1s steps(2, jump-none) infinite; }
.ga-light.r .dome, .ga-light.r .halo { animation-delay: .5s; }
.ga-ctl { position: absolute; right: 12px; bottom: 10px; display: flex; gap: 8px; align-items: center; }
.ga-q { font: 600 12px Inter, sans-serif; color: #ffb3b3; letter-spacing: .05em; text-transform: uppercase; margin-right: 4px; }
.ga-btn { font: 700 12px Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; border: 1.5px solid #ff6b6b; background: rgba(0,0,0,.4); color: #fff; border-radius: 999px; padding: 7px 13px; cursor: pointer; }
.ga-btn.stop { background: #ff2b2b; border-color: #ff2b2b; }
@keyframes ga-glow { 0% { box-shadow: 0 0 0 0 #ff2b2b00, inset 0 0 40px #ff2b2b22; } 50% { box-shadow: 0 0 60px 8px #ff2b2baa, inset 0 0 90px #ff2b2b55; } }
@keyframes ga-dome { 50% { fill: #ff4638; } }
@keyframes ga-halo { 50% { opacity: .85; } }
@media (prefers-reduced-motion: reduce) { #goal-flash, .ga-light .dome, .ga-light .halo { animation: none; } .ga-light .dome { fill: #ff4638; } .ga-light .halo { opacity: .6; } }

/* ── Scores redesign: team names, bigger logos, SOG/SAT bars, goal tiles ── */
.tb { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 3px 0; border-bottom: 3px solid var(--team); }
.tb img { width: 44px; height: 44px; flex: none; }
.tb .nm { flex: 1; min-width: 0; font: 800 22px/1 "Barlow Condensed", sans-serif; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb .nm small { display: block; margin-top: 3px; font: 500 12px Inter, sans-serif; letter-spacing: 0; text-transform: none; color: #aab4c5; }
.tb .tot { font: 800 34px/1 "Barlow Condensed", sans-serif; font-variant-numeric: tabular-nums; }
.tb .fav { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: #6b7689; font-size: 18px; line-height: 1; cursor: pointer; }
.tb .fav:hover, .tb .fav:focus-visible { color: #e8edf5; background: rgba(255,255,255,.06); }
.tb .fav.on { color: #fbbf24; }
.tb.loser .nm, .tb.loser .tot { color: #aab4c5; }
.tb.home { flex-direction: row-reverse; }
.tb.home .nm { text-align: right; }
.sxs { display: grid; gap: 6px; min-width: 160px; }
.sx { display: flex; align-items: center; gap: 8px; }
.sx b { min-width: 22px; font: 700 15px/1 "Barlow Condensed", sans-serif; text-align: right; font-variant-numeric: tabular-nums; }
.sx b:nth-of-type(2) { text-align: left; }
.sx .bar { flex: 1; min-width: 56px; display: flex; gap: 2px; height: 5px; }
.sx .bar i { display: block; height: 100%; border-radius: 3px; }
.sx em { width: 30px; font: 600 10px Inter, sans-serif; font-style: normal; letter-spacing: .1em; color: #aab4c5; }

/* goal tiles and pills */
.gt { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; background: #0f1522; border: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--team); color: var(--text); text-decoration: none; min-width: 0; }
a.gt:hover { background: #151d2e; }
.gt-mug { position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--team); overflow: hidden; display: grid; place-items: center; }
.gt-mug b { font: 800 13px "Barlow Condensed", sans-serif; color: var(--on, #fff); }
.gt-mug img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--team); }
.gt-who { flex: 1; min-width: 0; display: grid; }
.gt-who strong { font: 700 13px/1.25 Inter, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-who strong small { color: #aab4c5; font-weight: 500; font-size: 12px; }
.gt-who em { font: 400 12px/1.3 Inter, sans-serif; font-style: normal; color: #b6c0d0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-who small { font: 600 11px/1.3 Inter, sans-serif; color: #aab4c5; }
.gt-play { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.gps { display: flex; flex-wrap: wrap; gap: 5px; }
.gp { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 8px; border-radius: 999px; background: var(--chip); box-shadow: inset 3px 0 0 var(--team); color: #e2e8f0; font: 600 12px Inter, sans-serif; text-decoration: none; white-space: nowrap; }
a.gp:hover { background: #2a3850; }
.gp small { color: #aab4c5; font-weight: 500; }
.gts { display: grid; gap: 6px; }
.gts.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.gts h3 { margin: 0 0 2px; font: 700 12px "Barlow Condensed", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #aab4c5; }

/* compact rows */
main.compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 640px), 1fr)); gap: 10px; }
.cg { padding: 14px 12px 10px; }
.cg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.cg .status { margin: 0; flex: 0 0 74px; flex-direction: column; justify-content: center; gap: 2px; font-size: 13px; }
.cg-teams { flex: 1 1 300px; display: flex; align-items: center; gap: 12px; min-width: 0; }
.cg-teams .tb { flex: 1; }
.cg-teams .dash { color: #64748b; font: 800 20px "Barlow Condensed", sans-serif; }
.cg-goals { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.cg-goals .videos { margin-top: 8px; }
.cg-foot { margin-top: 8px; display: flex; justify-content: flex-end; }
.cg-foot .horn-toggles { margin: 0; }

/* cards */
.cd { padding-top: 16px; }
.tbs { display: grid; gap: 6px; margin-top: 6px; }
.cd .tb { padding: 8px 10px; border: 0; border-left: 3px solid var(--team); border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--team) 20%, #111827), #111827 85%); }
.cd .tb img { width: 60px; height: 60px; }
.cd .tb .nm { font-size: 24px; }
.cd .tb .tot { font-size: 46px; }
.cd .tb.home { flex-direction: row; }
.cd .tb.home .nm { text-align: left; }
.cd .sxs { margin-top: 10px; }
.pred { margin-top: 12px; display: grid; gap: 8px; }
.pr-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 600 10px Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #8d98ab; }
.pr-bars { display: grid; gap: 5px; }
.pr-src em { width: 24px; }
.ln { padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.04); font: 500 12px/1.4 Inter, sans-serif; color: #d6dde8; }
.ln-g { max-width: 380px; display: grid; grid-template-columns: 38px repeat(3, 1fr); gap: 2px 8px; align-items: baseline; }
.ln-h { font: 600 10px Inter, sans-serif; letter-spacing: .1em; color: #8d98ab; }
.ln-fav { color: #fff; font-size: 12px; letter-spacing: .04em; }
.ln-c { text-align: right; font-variant-numeric: tabular-nums; }
.ln-hd { font: 600 10px Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #8d98ab; }
.ln-us { color: #fff; font-weight: 700; }
.ln-tape { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.08); font: 500 11px/1.4 Inter, sans-serif; color: #8d98ab; }
.ln-flag { margin-right: 8px; font-weight: 700; }
.ln.agree .ln-flag { color: #4ade80; }
.ln.differ .ln-flag { color: #fbbf24; }
.pred-why summary { cursor: pointer; width: max-content; font: 600 11px Inter, sans-serif; color: #8d98ab; list-style: none; }
.pred-why summary::before { content: '▸ '; }
.pred-why[open] summary::before { content: '▾ '; }
.pred-why dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 8px 0 0; font: 500 12px/1.4 Inter, sans-serif; }
.pred-why dt { color: #8d98ab; }
.pred-why dt small { display: block; font-size: 10px; line-height: 1.25; color: #6f7a8d; max-width: 120px; }
.pred-why dd { display: grid; gap: 3px; }
.pred-why .tl { display: flex; align-items: center; gap: 8px; }
.pred-why .tchip { min-width: 34px; padding: 1px 6px; border-radius: 4px; text-align: center; font: 700 11px Inter, sans-serif; color: #fff; }
.pred-why dd { margin: 0; color: #d6dde8; }
.pred-why p { margin: 6px 0 0; font: 500 11px/1.4 Inter, sans-serif; color: #8d98ab; }
.cd .gts { margin-top: 10px; }
.cd .no-goals { margin: 10px 0 0; }
.cd-foot { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cd-foot .videos { display: contents; }
.cd-foot .videos a { margin: 0; }
.cd-foot .cg-box { margin-left: 0; }
.cd-foot .horn-toggles { margin: 0 0 0 auto; }
@media (max-width: 520px) {
  .tb img { width: 36px; height: 36px; }
  .tb .nm { font-size: 18px; white-space: normal; line-height: 1.05; }
  .tb .tot { font-size: 28px; }
  .cd .tb img { width: 52px; height: 52px; }
  .cd .tb .nm { font-size: 22px; }
  .cd .tb .tot { font-size: 40px; }
  .cg .status { flex-basis: 100%; flex-direction: row; justify-content: space-between; }
  .sxs { flex: 1 1 100%; }
  .cg-act { margin-left: auto; }
  .cd-foot .horn-toggles { margin-left: 0; }
}

/* Team radio */
.listen-btn.on { background: #1d6fd8; border-color: #1d6fd8; color: #fff; opacity: 1; }
#radio-bar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 9998; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; max-width: 94vw; padding: 10px 14px; border-radius: 999px; background: #111a2e; border: 1px solid rgba(255,255,255,.2); color: #fff; font: 600 13px Inter, sans-serif; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
#radio-bar a { color: #8ab4ff; }
#radio-bar button { font: 700 12px Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; border: 1.5px solid #ff6b6b; background: transparent; color: #fff; border-radius: 999px; padding: 6px 12px; cursor: pointer; }

/* Cards: goal strip + SOG/SAT overlay */
.cd .sxs { gap: 3px; }
.cd .sx { gap: 6px; }
.cd .sx .bar { height: 6px; }
.cd .sx:nth-child(2) .bar { opacity: .55; }
.gstrip { margin-top: 10px; display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: thin; mask-image: linear-gradient(90deg, #000 88%, transparent); }
.gc { flex: 0 0 138px; scroll-snap-align: start; display: grid; gap: 1px; padding: 6px 8px; border-radius: 5px; border-top: 3px solid var(--team); background: var(--chip); color: #e2e8f0; text-decoration: none; font: 600 12px Inter, sans-serif; }
.gc b { display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc small { color: #aab4c5; font-weight: 500; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.gc:hover { background: #2a3850; }
.cd .more { display: block; width: 100%; margin-top: 6px; padding: 6px; border: 0; border-radius: 4px; background: transparent; color: #aab4c5; font: 600 11px Inter, sans-serif; cursor: pointer; }
.cd .gh { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.cd .gh h3 { margin: 0; font: 700 12px "Barlow Condensed", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #aab4c5; }
.cd .gh .more { display: inline-block; width: auto; margin: 0; padding: 2px 8px; }
.cd .gh + .gts, .cd .gh + .gstrip { margin-top: 6px; }
.cd .more:hover { color: #fff; background: var(--chip); }
.gc .cnt { color: #aab4c5; font-weight: 500; }
.gc { flex-basis: 170px; }
.gc small:last-child { white-space: normal; }
.gc { min-height: 64px; align-content: start; }
.gc .nth { color: #fbbf24; font-style: normal; font-weight: 700; }
.gc .st { color: #7dd3fc; font-style: normal; font-weight: 700; }
/* Rounded boxes around the PP / SH / EN and nth-goal labels */
.gc .st, .gc .nth { display: inline-block; padding: 0 6px; border-radius: 999px; font-size: 9px; line-height: 15px; letter-spacing: .04em; }
.gc .st { border: 1px solid #7dd3fc; background: rgba(125, 211, 252, .12); }
.gc .nth { border: 1px solid #fbbf24; background: rgba(251, 191, 36, .12); }
.gstrip { cursor: grab; }
.gstrip.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.gstrip.dragging * { pointer-events: none; }
.gstrip { overscroll-behavior-x: contain; }
/* With a mouse, snapping fights the drag and jumps on release; touch keeps its snap. */
@media (hover: hover) and (pointer: fine) { .gstrip { scroll-snap-type: none; } }
/* Scores page: lift the cards off the page background (they were dark on dark) */
#games .game.cd { background: #182236; border-color: #34466a; box-shadow: 0 2px 14px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .05); }
#games .cd .tb { background: linear-gradient(90deg, color-mix(in srgb, var(--team) 34%, #1b2740), #1b2740 88%); }
#games .gc { background: #243249; }
a.gc:hover { background: #2f4260; }
#games .cd .more { color: #c3cddd; }
#games .cd-foot .videos a { background: #243249; }
/* Top bar shows the game's state */
#games .game.cd::before { background: var(--bar, #6b7280); }
#games .ph-idle { --bar: #6b7280; }
#games .ph-live { --bar: #3b82f6; }
#games .ph-late { --bar: #f59e0b; }
#games .ph-final { --bar: #e11d48; }

/* More breathing room around the page edges */
.top { padding: 32px 20px 12px; gap: 14px 20px; }
main { padding-left: 20px; padding-right: 20px; }
@media (max-width: 520px) {
  .top { padding: 28px 20px 10px; }
  main { padding-top: 12px; }
}

/* Link to the momentum stats page */

.edge { display: inline-block; padding: 1px 7px; border-radius: 999px; background: #3b2a05; color: #fbbf24; font: 700 11px/1.5 Inter, sans-serif; letter-spacing: .02em; }
.edges { grid-column: 1 / -1; padding: 12px 14px; border: 1px solid #5a4210; border-radius: 12px; background: rgba(251,191,36,.06); }
.edges h2 { margin: 0 0 6px; font: 800 16px/1.2 "Barlow Condensed", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #fbbf24; }
.edges ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.edges li { font: 500 13px/1.4 Inter, sans-serif; color: #e8edf5; }
.edges p { margin: 6px 0 0; font: 500 11px/1.4 Inter, sans-serif; color: #aab4c5; }
.cd .pr-bars .sx:nth-child(2) .bar { opacity: 1; }
.lu-alert { margin: 0; padding: 4px 8px; border-left: 3px solid #ffb020; border-radius: 4px; background: rgba(255, 176, 32, .1); color: #ffcf70; font: 600 12px/1.35 Inter, sans-serif; }
.pred-why .muted { color: #6f7a8d; }
.pred-why .lu-row { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* Collapsed goal strip: a play button (same size as the expanded tiles') on the right of each chip (whole chip still opens the clip) */
.gc { grid-template-columns: minmax(0, 1fr); }
.gc.has-play { flex-basis: 190px; grid-template-columns: minmax(0, 1fr) 30px; align-items: center; gap: 8px; padding-right: 6px; }
.gc-txt { display: grid; gap: 1px; min-width: 0; align-content: start; }
.gc-play { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; transition: transform .12s, filter .12s; }
.gc-play svg { margin-left: 1px; }
a.gc:hover .gc-play, a.gc:focus-visible .gc-play { transform: scale(1.08); filter: brightness(1.15); }
/* Data delay for video/audio: the card says when its data is held back */

/* Radio + horn icons beside each team's name (tap to toggle; colour shows the state) */
.team-audio { display: inline-flex; gap: 4px; flex: none; }
.horn-btn.ico { width: 32px; height: 32px; padding: 0; display: inline-grid; place-items: center; font-size: 15px; line-height: 1; border-color: rgba(255,255,255,.18); background: rgba(0,0,0,.18); filter: grayscale(1); opacity: .6; }
.horn-btn.ico:hover, .horn-btn.ico:focus-visible { opacity: 1; filter: none; }
.horn-btn.ico.on { filter: none; opacity: 1; background: #c8102e; border-color: #c8102e; }
.listen-btn.ico.on { background: #1d6fd8; border-color: #1d6fd8; }
.listen-btn.ico.on { animation: ta-pulse 1.6s ease-in-out infinite; }
@keyframes ta-pulse { 50% { box-shadow: 0 0 0 4px rgba(29,111,216,.35); } }
.cd .tb .team-audio { flex-direction: column; gap: 4px; margin-left: -2px; }
.cd .tb .team-audio .horn-btn.ico { width: 28px; height: 28px; font-size: 13px; }
.cd .tb:has(.team-audio) { gap: 8px; }
.cd .tb:has(.team-audio) img { width: 48px; height: 48px; }
.cd-foot .delay-btn { margin-left: auto; }
@media (max-width: 520px) {
  .cd .tb .team-audio .horn-btn.ico { width: 30px; height: 30px; }
  .cd .tb:has(.team-audio) img { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) { .listen-btn.ico.on { animation: none; } }

/* Running score on each goal: "BUF 1-0 TBL", scoring team in bold */
.gc .gc-run { color: #e2e8f0; font-weight: 600; letter-spacing: .02em; }
.g-run strong { color: #fff; font-weight: 800; }
.gtype { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 999px; font: 700 9px/15px Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; background: #334155; color: #cbd5e1; }
.gtype.po { background: #854d0e; color: #fde68a; }

/* Scores card header: status on one line at the left; tag + venue at the right, venue truncates. The data delay shows once, in the footer button. */
.cd .status { align-items: center; flex-wrap: nowrap; gap: 10px; min-height: 22px; }
.cd .status .label { flex: none; white-space: nowrap; display: inline-flex; align-items: center; }
.cd .status .hdr-r { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; flex: 0 1 auto; }
.cd .status .venue { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 12px Inter, sans-serif; opacity: .8; }
.cd .status .gtype { margin: 0; flex: none; }
.cd .status .strength { margin-left: 8px; }
@media (max-width: 520px) { .cd .status .gtype + .venue { display: none; } }
.cd .status .live-clock { text-transform: none; }
/* Goal strip: no fade over the last goal; scroll all the way to the right edge with a gap after the last tile. */
.gstrip.at-end { mask-image: none; -webkit-mask-image: none; } /* fade only while more goals are off to the right */
.gstrip::after { content: ""; flex: 0 0 14px; }
.status.live .label::before { display: none; } /* no live dot before the period and clock */

/* Goal chips: scorer headshot ringed in the team color, team logo badge on a white disc. */
.gc { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; flex-basis: 200px; }
.gc.has-play { flex-basis: 222px; grid-template-columns: auto minmax(0, 1fr) 30px; }
.gc-face { position: relative; width: 38px; height: 38px; flex: none; }
.gc-face .mug { position: relative; width: 38px; height: 38px; border-radius: 50%; background: #1a2436; border: 2px solid var(--team); display: grid; place-items: center; overflow: hidden; }
.gc-face .mug b { display: block; overflow: visible; font: 700 12px Inter, sans-serif; color: #cbd5e1; }
.gc-face .mug img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #1a2436; }
.gc-face .logo { position: absolute; right: -5px; bottom: -4px; width: 19px; height: 19px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1.5px #243249; }
.gc-face .logo img { width: 14px; height: 14px; object-fit: contain; }

.gt-face { position: relative; flex: none; width: 36px; height: 36px; }
.gt-face .gt-mug { box-shadow: 0 0 0 2px var(--team); }
.gt-face .logo { position: absolute; right: -5px; bottom: -4px; width: 19px; height: 19px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1.5px #243249; }
.gt-face .logo img { width: 14px; height: 14px; object-fit: contain; }
/* Running score: the scoring team's abbreviation matches the rest of the line instead of looking oversized. */
.gt-who .g-run strong { font: inherit; font-weight: 700; color: #e2e8f0; }

/* Running score, plain: only the scoring team's abbreviation and number are bold. */
.g-run { font-variant-numeric: tabular-nums; }
.g-run strong, .gt-who .g-run strong { font: inherit; font-weight: 800; color: #fff; }

/* Collapsed chips: an assist and its count never split across lines; the line wraps between players. */
.gc .as { white-space: nowrap; }
.gc .as:not(:last-child)::after { content: ","; }

/* Goal chips v3: wider, bigger faces and logo badges, score next to the scorer, long assist names fit. */
.gc { flex-basis: 260px; min-height: 72px; gap: 12px; }
.gc.has-play { flex-basis: 316px; grid-template-columns: auto minmax(0, 1fr) 30px; }
.gc-face, .gc-face .mug { width: 46px; height: 46px; }
.gc-face .logo { right: -6px; bottom: -5px; width: 26px; height: 26px; }
.gc-face .logo img { width: 20px; height: 20px; }
.gc .nm { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; min-width: 0; }
.gc .nm b { display: inline; overflow: visible; }
.gc .nm .g-run { font: 600 11px Inter, sans-serif; color: #8b97ab; }
.gc .nm .g-run strong { color: #fff; font-weight: 800; }
.gc small.al { display: flex; flex-wrap: wrap; column-gap: 6px; white-space: normal; overflow: visible; }
.gc .as { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
/* Logo badges: the logo fills its white circle (NHL logo files carry padding, so zoom in and crop). */
.gc-face .logo, .gt-face .logo { overflow: hidden; }
.gc-face .logo img, .gt-face .logo img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.5); }
