:root {
  --bg: #202526;
  --surface: #343a3b;
  --ink: #f3eee2;
  --muted: #aeb1a8;
  --brass: #d5a85b;
  --brass-hi: #f2cf8a;
  --selected: #79aee4;
  --selected-hi: #d9ebff;
  --green: #9bcf8a;
  --red: #ef7567;
  --line: #5a605d;
  --shadow: 0 18px 35px rgba(0,0,0,.36);
  font-family: var(--font-sans);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: radial-gradient(circle at 50% -30%, #59605d 0, #272d2e 42%, #171b1c 100%); background-attachment: fixed; }
.app-shell { max-width: 1500px; margin: 0 auto; padding: 0 38px; }
.topbar { height: 78px; display: flex; align-items: center; gap: 48px; border-bottom: 1px solid #626763; box-shadow: 0 1px 0 #111718; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: .12em; font-size: 14px; text-shadow: 0 1px 2px #111; }
.brand em { font-style: normal; color: var(--brass-hi); font-size: 9px; letter-spacing: .18em; margin-left: 5px; }
.brand-mark { width: 31px; height: 31px; border-radius: 9px; background: linear-gradient(145deg, #f3cb78, #ad7b3b); display: flex; align-items: end; justify-content: center; gap: 3px; padding: 6px; box-shadow: inset 1px 1px 2px #ffe8ad, inset -2px -2px 4px #76532c, 0 2px 4px #111; }
.brand-mark i { width: 3px; background: #302617; border-radius: 5px; display: block; }
.brand-mark i:nth-child(1) { height: 7px; } .brand-mark i:nth-child(2) { height: 12px; } .brand-mark i:nth-child(3) { height: 16px; }
.main-nav { display: flex; gap: 25px; height: 100%; }
.nav-link { display: grid; place-items: center; color: var(--muted); text-decoration: none; font-size: 13px; position: relative; text-shadow: 0 1px 1px #151819; }
.nav-link.active { color: var(--selected-hi); }
.nav-link.active:after { content: ''; height: 3px; background: var(--selected); border-radius: 3px; position: absolute; bottom: -1px; left: 0; right: 0; box-shadow: 0 0 8px rgba(121,174,228,.35); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 17px; }
.icon-button, .profile-button, .close-dialog { background: none; border: 0; color: var(--ink); cursor: pointer; }
.icon-button { font-size: 26px; color: var(--selected-hi); text-shadow: 0 2px 2px #111; transition: transform .35s; }
.icon-button:hover { transform: rotate(180deg); }
.install-button { border: 1px solid var(--selected); background: linear-gradient(#334e70, #22344c); color: var(--selected-hi); border-radius: 5px; padding: 7px 10px; font: 10px var(--font-mono); cursor: pointer; box-shadow: inset 0 1px 0 #6b8eb8, 0 2px 3px #111; }
.profile-button { display: flex; align-items: center; gap: 8px; font-family: inherit; text-shadow: 0 1px 1px #111; }
.profile-button span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; font-size: 15px; background: linear-gradient(145deg, #eef0e7, #858b84); color: #29302e; font-weight: 700; box-shadow: inset 1px 1px 2px #fff, inset -2px -2px 4px #555, 0 2px 3px #111; }
.profile-button b { font-size: 12px; font-weight: 500; }
.control-row { display: flex; align-items: center; justify-content: space-between; padding: 30px 4% 17px; gap: 18px; }
.section-label { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 600; letter-spacing: -.03em; text-shadow: 0 2px 2px #111; }
.live-count { font: 10px var(--font-mono); color: #d6eaff; border: 1px solid #4c76a5; background: #263b59; border-radius: 5px; padding: 5px 7px; box-shadow: inset 0 1px 2px #7093bf, 0 1px 2px #131817; }
.score-guide-button { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #7893aa; background: linear-gradient(145deg, #516779, #263744); color: #e2f1ff; font: 600 12px var(--font-mono); cursor: pointer; box-shadow: inset 1px 1px 1px #8ca5b8, inset -2px -2px 3px #17232b, 0 2px 3px #111; }
.score-guide-button:hover, .score-guide-button:focus-visible { border-color: #b9dcfa; box-shadow: inset 1px 1px 1px #9cb8ce, 0 0 0 3px rgba(121,174,228,.18), 0 2px 3px #111; }
.controls { display: flex; align-items: center; gap: 13px; }
.segmented { display: flex; background: #1d2223; border-radius: 7px; padding: 4px; gap: 3px; box-shadow: inset 0 2px 4px #101313, 0 1px 0 #6a706b; }
.seg, .outline-button, .sport-chip { font: 11px var(--font-mono); color: var(--muted); border: 0; background: none; cursor: pointer; }
.seg { padding: 8px 11px; border-radius: 4px; text-shadow: 0 1px 1px #111; }
.seg.active { color: #12263d; background: linear-gradient(#b1d4f7, #628fc3); box-shadow: inset 0 1px 1px #e3f2ff, 0 2px 3px #131718; text-shadow: none; }
.seg span { color: #8f9790; margin-left: 4px; } .seg.active span { color: #24496f; }
.outline-button { border: 1px solid #747a73; background: linear-gradient(#4e5552, #2d3332); padding: 8px 12px; border-radius: 5px; color: #e3dfd0; box-shadow: inset 0 1px 1px #7f8580, 0 2px 3px #151818; }
.eye-icon { color: var(--green); }
.sport-filter { display: flex; gap: 9px; padding: 0 4% 18px; overflow-x: auto; }
.sport-chip { white-space: nowrap; border: 1px solid #656b65; border-radius: 5px; padding: 9px 12px; color: #cbc9bc; background: linear-gradient(#4b514e, #2b3030); box-shadow: inset 0 1px 1px #777c76, 0 2px 3px #161919; }
.sport-chip span { color: var(--selected-hi); margin-right: 5px; }
.sport-chip.active { background: linear-gradient(#b1d4f7, #628fc3); border-color: #c8e5ff; color: #12263d; font-weight: 600; box-shadow: inset 0 1px 1px #eff8ff, 0 2px 3px #151818; text-shadow: none; }
.sport-chip.active span { color: #20496e; }
.fcs-toggle { border-style: dashed; }
.notice { margin: 0 4% 9px; background: linear-gradient(110deg, #354938, #303a32); border: 1px solid #66896d; border-radius: 7px; padding: 10px 13px; display: flex; align-items: center; gap: 10px; font-size: 12px; color: #dcebd7; box-shadow: inset 0 1px 1px #91af91, 0 3px 6px #151818; }
.notice > span { color: var(--selected-hi); font-size: 15px; } .notice strong { color: #efffe8; font-weight: 600; } .notice button { margin-left: auto; background: none; border: 0; color: #b5c8b5; font-size: 20px; cursor: pointer; }
.data-status { margin: 0 4% 17px; color: #bfc2b8; display: flex; align-items: center; gap: 8px; font: 10px var(--font-mono); }
.data-status .status-dot { width: 6px; height: 6px; background: var(--green); box-shadow: 0 0 0 4px rgba(155,207,138,.12); }
.data-status button { margin-left: auto; border: 1px solid #666d66; background: linear-gradient(#4b514e, #2c3130); color: var(--selected-hi); border-radius: 4px; padding: 5px 8px; font: inherit; cursor: pointer; box-shadow: inset 0 1px 1px #7e837d, 0 2px 3px #131616; }
.game-list { display: grid; gap: 11px; padding: 0 4% 35px; }
.game-date-divider { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 12px; min-height: 34px; margin: 10px 0 1px; padding: 7px 12px; border: 1px solid #52646d; border-radius: 7px; background: linear-gradient(145deg, rgba(49,67,77,.97), rgba(21,34,42,.98)); color: #d9eaff; font: 600 10px var(--font-mono); letter-spacing: .07em; text-transform: uppercase; box-shadow: inset 0 1px 0 #687b83, 0 4px 9px rgba(0,0,0,.34); backdrop-filter: blur(8px); }
.game-date-divider:first-child { margin-top: 0; }
.game-date-divider span { flex: 0 0 auto; }
.game-date-divider i { flex: 1 1 auto; height: 1px; background: linear-gradient(90deg, #6b91a6, transparent); }
.game-card { width: 100%; color: var(--ink); font: inherit; text-align: left; appearance: none; -webkit-appearance: none; touch-action: manipulation; cursor: pointer; background: linear-gradient(145deg, #4a504f, #303635 64%, #282d2d); border: 1px solid #69706b; border-radius: 11px; min-height: 86px; display: grid; grid-template-columns: 56px 1.25fr 1fr 135px 68px; align-items: center; padding: 11px 15px; gap: 12px; transition: transform .2s, box-shadow .2s; position: relative; box-shadow: inset 1px 1px 1px #727871, inset -2px -2px 4px #202424, 0 5px 10px rgba(0,0,0,.28); }
.game-card:hover { transform: translateY(-2px); box-shadow: inset 1px 1px 1px #868d86, inset -2px -2px 4px #202424, 0 8px 15px rgba(0,0,0,.38); }
.game-card.favorite { border-color: #6696c8; background: linear-gradient(145deg, #3d4c5c, #343d46 60%, #293139); }
.game-card.favorite:before { content: 'FAVORITE'; position: absolute; top: 5px; left: 17px; color: var(--selected-hi); font: 8px var(--font-mono); letter-spacing: .1em; text-shadow: 0 1px 1px #172219; }
.sport-icon { width: 48px; height: 48px; display: grid; place-items: center; align-content: center; gap: 1px; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #faf4df 0, #aaa99b 30%, #5d625e 72%, #2c302f 100%); border: 2px solid #222727; box-shadow: inset 1px 1px 2px #fff, inset -2px -2px 4px #424743, 0 2px 3px #151717; }
.league-logo { width: 28px; height: 28px; object-fit: contain; } .sport-icon small { font: 7px var(--font-mono); color: #242826; text-transform: uppercase; }
.game-card.favorite .sport-icon { margin-top: 6px; }
.match-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 8px; color: #b3b8ad; font: 10px var(--font-mono); text-transform: uppercase; text-shadow: 0 1px 1px #171a1a; }
.status-live { color: #ff9587; } .status-upcoming { color: #a9d7b0; } .status-completed { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border: 1px solid #79939d; border-radius: 999px; background: rgba(34,56,66,.78); color: #d5edf0; font-weight: 600; letter-spacing: .08em; }
.live-phase { color: #d7eaff; font-weight: 600; }
.live-situation { display: flex; align-items: center; gap: 9px; min-height: 23px; margin-top: 5px; color: #c8e3ff; font: 10px var(--font-mono); }
.base-diamond { position: relative; flex: 0 0 27px; width: 27px; height: 26px; }
.base { position: absolute; width: 7px; height: 7px; transform: rotate(45deg); background: #515e64; border: 1px solid #aab8bb; box-shadow: 0 1px 2px #111; }
.base.occupied { background: #8dc3fa; border-color: #dceeff; box-shadow: 0 0 5px #5cafff; }
.base.second { left: 10px; top: 2px; } .base.third { left: 3px; top: 11px; } .base.first { left: 17px; top: 11px; }
.team-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 500; line-height: 1.25; text-shadow: 0 1px 1px #151817; }
.team-row + .team-row { margin-top: 6px; } .team-name { display: flex; align-items: center; gap: 8px; min-width: 0; } .team-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-name-text { min-width: 0; flex: 1 1 auto; }
.short-team-name { display: none; }
.team-rank { flex: 0 0 auto; color: var(--selected-hi); font: 600 11px var(--font-mono); }
.team-record { flex: 0 0 auto; color: #c1c9ce; font: 10px var(--font-mono); white-space: nowrap; }
.team-logo { width: 25px; height: 25px; object-fit: contain; flex: 0 0 25px; filter: drop-shadow(0 1px 1px #151818); }
.team-score { font: 600 17px var(--font-mono); color: #fff7dc; } .score-hidden { font-size: 13px; color: var(--muted); font-family: 'DM Mono'; }
.game-context { color: #c3cbbf; font-size: 10px; line-height: 1.3; min-width: 0; } .game-context strong { display: block; color: #eee9d8; font-weight: 500; margin-bottom: 3px; text-shadow: 0 1px 1px #151818; } .game-context > span { display: block; }
.game-context > span:not(.stats-cue) { line-height: 1.45; }
.channel-context .line-label { margin-top: 8px; color: var(--selected-hi); }
.line-value { overflow-wrap: anywhere; }
.sparkline { height: 16px; display: flex; align-items: end; gap: 3px; margin-top: 5px; } .sparkline i { width: 4px; background: var(--green); border-radius: 4px; opacity: .85; box-shadow: 0 1px 1px #18201a; }
.sparkline i:nth-child(1) { height: 5px; } .sparkline i:nth-child(2) { height: 8px; } .sparkline i:nth-child(3) { height: 7px; } .sparkline i:nth-child(4) { height: 12px; } .sparkline i:nth-child(5) { height: 10px; } .sparkline i:nth-child(6) { height: 17px; } .sparkline i:nth-child(7) { height: 13px; } .sparkline i:nth-child(8) { height: 20px; }
.excitement { justify-self: end; text-align: center; } .score-circle { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--green); color: #e9f4d6; background: radial-gradient(circle at 35% 25%, #596d5d, #29332e); font: 600 16px var(--font-mono); box-shadow: inset 2px 2px 4px #778d76, inset -2px -2px 4px #1d2420, 0 2px 3px #151817; }
.score-circle.hot { border-color: var(--selected); color: var(--selected-hi); box-shadow: inset 2px 2px 4px #789cc3, inset -2px -2px 4px #1d2c3d, 0 0 17px rgba(121,174,228,.22); } .score-circle.warm { border-color: #9cc5ed; color: #d5eaff; }
.excitement small { display: block; color: var(--selected-hi); font: 9px var(--font-mono); margin-top: 5px; text-transform: uppercase; }
.score-dot-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.game-card:has(.score-dot-wrap:hover), .game-card:has(.score-dot-wrap.is-open), .game-card:has(.score-dot-wrap:focus-within) { position: relative; z-index: 8; }
.score-dot-wrap .score-circle { cursor: help; }
.score-dot-wrap .score-circle:focus-visible { outline: 2px solid #d8ecff; outline-offset: 3px; }
.score-help { position: absolute; right: calc(100% + 9px); bottom: 50%; z-index: 20; width: min(270px, 62vw); padding: 9px 11px; border: 1px solid #88a8c5; border-radius: 8px; background: linear-gradient(145deg, #324a5e, #1f303c); color: #e6f2fb; font: 10px/1.45 var(--font-mono); text-align: left; box-shadow: 0 7px 18px rgba(0,0,0,.35), inset 0 1px 1px rgba(219,240,255,.18); opacity: 0; visibility: hidden; transform: translateY(5px); transition: opacity .15s ease, transform .15s ease, visibility .15s ease; pointer-events: none; }
.score-help::after { content: ''; position: absolute; right: -6px; bottom: calc(50% - 5px); width: 10px; height: 10px; border-top: 1px solid #88a8c5; border-right: 1px solid #88a8c5; background: #263c4b; transform: rotate(45deg); }
.score-dot-wrap:hover .score-help, .score-dot-wrap:focus-within .score-help, .score-dot-wrap.is-open .score-help { opacity: 1; visibility: visible; transform: translateY(0); }
.empty-state { text-align: center; padding: 70px; color: var(--muted); } .empty-state div { font-size: 36px; color: var(--selected-hi); } .empty-state h3 { color: var(--ink); margin: 14px 0 8px; } .empty-state p { margin: 0; }
.footer { border-top: 1px solid #5b625e; padding: 25px 4%; display: flex; justify-content: space-between; color: #a1a79d; font-size: 11px; font-family: var(--font-mono); box-shadow: 0 -1px 0 #171a1a; }
.footer > div { display: flex; align-items: center; gap: 12px; } .brand-mini { color: var(--selected-hi); letter-spacing: .1em; } .footer button { color: var(--selected-hi); background: none; border: 0; font: inherit; cursor: pointer; } .footer-sep { color: #667067; }
.status-dot { background: var(--green); box-shadow: none; margin-right: 1px; } .hidden { display: none !important; }
dialog { width: min(500px, calc(100% - 30px)); max-height: min(88vh, 820px); overflow-y: auto; background: linear-gradient(145deg, #4a504e, #2d3332); color: var(--ink); border: 1px solid #7c837a; border-radius: 14px; padding: 28px; box-shadow: var(--shadow), inset 1px 1px 1px #7a817b; }
dialog::backdrop { background: rgba(5,7,7,.76); backdrop-filter: blur(4px); } .dialog-header { display: flex; justify-content: space-between; align-items: start; } .dialog-header h2 { margin: 10px 0 24px; font-size: 26px; letter-spacing: -.05em; } .close-dialog { font-size: 25px; color: var(--muted); }
.preference-block { border-top: 1px solid #646b65; padding: 20px 0; } .preference-block label { font-size: 14px; font-weight: 600; } .subtle, .dialog-copy { color: #c0c3b9; font-size: 12px; line-height: 1.5; }
.favorite-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.favorite-tag { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; border: 1px solid #638bb7; color: var(--selected-hi); background: #2e425a; border-radius: 5px; padding: 5px 6px 5px 8px; font: 10px var(--font-mono); }
.favorite-tag img, .favorite-result img { width: 20px; height: 20px; object-fit: contain; flex: 0 0 20px; }
.favorite-tag-name { overflow-wrap: anywhere; }
.favorite-tag button { border: 0; border-radius: 4px; min-width: 28px; min-height: 28px; color: #f0f6ff; background: #3d5875; font-size: 18px; cursor: pointer; }
.favorite-picker { display: grid; gap: 7px; padding: 12px; border: 1px solid #69788b; border-radius: 7px; background: rgba(0,0,0,.13); }
.favorite-picker label { font: 10px var(--font-mono); color: #c9d9e9; }
.favorite-picker select, .favorite-picker input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 38px; padding: 8px 10px; border: 1px solid #8196ac; border-radius: 5px; background: #25323d; color: #f1f6fc; font: 12px var(--font-mono); }
.favorite-picker input:focus, .favorite-picker select:focus { outline: 2px solid var(--selected-hi); outline-offset: 1px; }
.favorite-results { display: grid; gap: 5px; max-height: 210px; overflow-y: auto; }
.favorite-result { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; min-height: 39px; padding: 6px 9px; text-align: left; border: 1px solid #5c7187; border-radius: 5px; background: #344655; color: #ecf3fa; cursor: pointer; font: 11px var(--font-mono); }
.favorite-result:hover, .favorite-result:focus-visible { border-color: var(--selected-hi); background: #426080; }
.favorite-result span { min-width: 0; overflow-wrap: anywhere; }
.favorite-help, .favorite-empty { margin: 2px 0; color: #b9c6d2; font: 10px/1.45 var(--font-mono); }
.favorite-manual-button { justify-self: start; min-height: 36px; border: 1px solid #83aacd; border-radius: 5px; padding: 7px 10px; background: linear-gradient(#4b6a89,#314c68); color: #eef6ff; font: 11px var(--font-mono); cursor: pointer; }
.favorite-manual-button:disabled { opacity: .5; cursor: not-allowed; }
.range-row { display: grid; grid-template-columns: 100px 1fr; gap: 15px; align-items: center; margin-top: 16px; font-size: 12px; color: #d2d3c7; } .range-row input { accent-color: var(--selected); width: 100%; }
.primary-button { width: 100%; border: 1px solid #b7daf8; border-radius: 5px; background: linear-gradient(#b1d4f7, #628fc3); color: #12263d; padding: 12px; font: 600 12px var(--font-mono); cursor: pointer; box-shadow: inset 0 1px 1px #eff8ff, 0 2px 4px #171818; }
.source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 18px 0; } .source-grid div { border: 1px solid #687069; background: rgba(0,0,0,.12); padding: 12px; border-radius: 6px; } .source-grid strong, .source-grid span { display: block; } .source-grid strong { font-size: 12px; margin-bottom: 6px; } .source-grid span { font-size: 10px; color: #c0c3b9; line-height: 1.4; }
.model-note { background: #3b443c; border: 1px solid #6f8168; border-radius: 7px; padding: 13px; margin-bottom: 20px; } .model-note strong, .model-note span { display: block; } .model-note strong { font-size: 12px; color: #d8efc1; margin-bottom: 6px; } .model-note span { font-size: 11px; line-height: 1.5; color: #d1d7ca; }
.score-range-list { display: grid; gap: 8px; margin: 18px 0; }
.score-range-list > div { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; border: 1px solid #68747b; border-radius: 8px; padding: 10px 12px; background: linear-gradient(145deg, rgba(83,105,119,.52), rgba(24,37,45,.62)); box-shadow: inset 0 1px 1px rgba(214,235,247,.12); }
.score-range-list > div > b { font: 600 15px var(--font-mono); color: #d9edff; }
.score-range-list span { color: #c7d0d3; font-size: 11px; line-height: 1.4; }
.score-range-list span strong { display: block; color: var(--ink); font-size: 12px; margin-bottom: 2px; }
.score-guide-note { color: #aebbc0; font-size: 11px; line-height: 1.5; margin: 0 0 20px; }
.sport-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.toggle-option { display: flex; align-items: center; gap: 9px; border: 1px solid #68758a; border-radius: 6px; padding: 10px; background: linear-gradient(#414a54, #30373e); color: #e4e9ef; font: 11px var(--font-mono); cursor: pointer; box-shadow: inset 0 1px 1px #737f8d, 0 2px 3px #171a1b; }
.toggle-option:has(input:checked) { border-color: #a8cdf1; background: linear-gradient(#4d6f95, #35516f); color: #f1f7ff; }
.toggle-option input { width: 15px; height: 15px; margin: 0; accent-color: var(--selected); }
.preference-note { margin: 12px 0 0; color: #aebfd2; font: 10px var(--font-mono); line-height: 1.5; }
.game-card:focus-visible { outline: 2px solid var(--selected-hi); outline-offset: 2px; }
.detail-kicker { color: var(--selected-hi); font: 10px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
#game-detail-dialog h2 { margin-bottom: 16px; }
.detail-scoreboard { display: grid; gap: 7px; padding: 12px; border: 1px solid #69788b; border-radius: 8px; background: linear-gradient(145deg, #384552, #29333e); box-shadow: inset 0 1px 1px #718092; }
.detail-team { display: grid; grid-template-columns: 28px 1fr 45px; gap: 9px; align-items: center; font-size: 13px; }
.detail-team img { width: 25px; height: 25px; object-fit: contain; }
.detail-team b { text-align: right; color: #f3f7ff; font: 600 16px var(--font-mono); }
.detail-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 2px; color: #c8d0d8; font: 10px var(--font-mono); }
.detail-section { border-top: 1px solid #646f79; padding-top: 15px; margin-top: 15px; }
.detail-section h3 { margin: 0 0 9px; color: #eef3f8; font-size: 13px; }
.detail-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-stat-team { border: 1px solid #68758a; border-radius: 6px; padding: 9px; background: rgba(0,0,0,.13); }
.detail-stat-team > strong { display: block; color: var(--selected-hi); font-size: 11px; margin-bottom: 6px; }
.detail-stat-team div, .detail-leaders div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; color: #c2cbd4; font: 10px var(--font-mono); }
.detail-stat-team b, .detail-leaders b { color: #f3f5f7; text-align: right; }
.detail-scoring .detail-table-scroll { max-width: 100%; }
.detail-scoring table { width: 100%; min-width: max-content; border-collapse: collapse; font: 11px var(--font-mono); }
.detail-scoring th, .detail-scoring td { padding: 8px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid rgba(160,175,185,.2); }
.detail-scoring th:first-child { position: sticky; left: 0; z-index: 1; min-width: 58px; text-align: left; background: #303b41; }
.detail-scoring thead th { color: #aebfcb; font-weight: 500; }
.detail-scoring tbody td:last-child { color: #fff; font-weight: 700; }
.detail-comparison-teams { display: flex; justify-content: space-between; margin: 4px 0 8px; color: #bfd1db; font: 11px var(--font-mono); }
.detail-comparison-row { padding: 9px 0; border-bottom: 1px solid rgba(160,175,185,.12); }
.detail-comparison-values { display: grid; grid-template-columns: minmax(0,1fr) minmax(110px,1.35fr) minmax(0,1fr); gap: 4px; align-items: center; color: #f2f6f8; font-size: 12px; }
.detail-comparison-values span:nth-child(2) { text-align: center; color: #d5dfe5; font-size: 11px; }
.detail-comparison-values span:last-child { text-align: right; }
.detail-comparison-bars { margin-top: 7px; }
.detail-comparison-bars > span { display: flex; width: 100%; height: 6px; border-radius: 9px; background: rgba(160,175,185,.17); overflow: hidden; }
.detail-comparison-bars i { display: block; flex: 0 0 auto; height: 100%; min-width: 0; }
.detail-comparison-bars i + i { box-shadow: -1px 0 0 rgba(8,14,18,.75); }
.detail-more-stats { margin-top: 12px; }
.detail-more-stats summary { width: fit-content; padding: 8px 0; color: #a9d0f5; cursor: pointer; font-size: 12px; font-weight: 600; }
.detail-leaders { display: grid; gap: 2px; }
.detail-player-grid { display: grid; gap: 12px; }
.detail-player-team { border: 1px solid #68758a; border-radius: 7px; padding: 10px; background: rgba(0,0,0,.13); }
.detail-player-team > strong { display: block; color: var(--selected-hi); font-size: 11px; margin-bottom: 8px; }
.detail-player-group + .detail-player-group { margin-top: 14px; }
.detail-player-group h4 { margin: 0 0 7px; color: #eef3f8; font-size: 11px; }
.detail-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.detail-player-table { width: 100%; min-width: 390px; border-collapse: collapse; color: #cbd3da; font: 10px var(--font-mono); }
.detail-player-table th, .detail-player-table td { padding: 5px 5px; border-bottom: 1px solid rgba(130,143,155,.22); text-align: right; white-space: nowrap; }
.detail-player-table th:first-child, .detail-player-table td:first-child { text-align: left; }
.detail-player-table thead th { color: #a9ccef; font-size: 9px; text-transform: uppercase; }
.detail-player-table tbody th { color: #e5eaf0; font-weight: 500; }
.detail-player-table tbody tr:last-child th, .detail-player-table tbody tr:last-child td { border-bottom: 0; }
.detail-plays { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.detail-plays li { display: grid; grid-template-columns: 58px 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid rgba(130,143,155,.25); color: #d4dbe2; font-size: 11px; line-height: 1.35; }
.detail-plays li span { color: var(--selected-hi); font: 10px var(--font-mono); }
.detail-empty, .detail-loading { color: #c3cbd2; font-size: 12px; line-height: 1.5; padding: 18px 0; }
.detail-explanation { margin: 0; color: #d5dce2; font-size: 12px; line-height: 1.5; }
.storyline-section ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.storyline-section li { display: grid; gap: 4px; color: #e8edf2; font-size: 12px; line-height: 1.45; }
.storyline-section a { color: #9fcbff; font-size: 11px; text-decoration: none; }
.storyline-section a:hover, .storyline-section a:focus-visible { text-decoration: underline; }
.storyline-section .detail-empty { margin: 9px 0 0; padding: 0; font-size: 10px; }
@media (max-width: 1050px) { .game-card { grid-template-columns: 58px 1.2fr 1fr 120px 70px; gap: 12px; padding-left: 15px; padding-right: 15px; } }
@media (max-width: 800px) {
  .app-shell { padding: 0 17px; } .topbar { gap: 22px; } .profile-button b { display: none; }
  .control-row { align-items: flex-start; flex-direction: column; gap: 16px; padding-left: 2%; padding-right: 2%; } .controls { width: 100%; justify-content: space-between; } .seg { padding: 8px 7px; }
  .sport-filter, .notice, .data-status, .game-list { margin-left: 2%; margin-right: 2%; padding-left: 0; padding-right: 0; }
  .game-card { grid-template-columns: 48px 1fr 63px; gap: 8px; padding: 12px 11px; } .game-card .sport-icon { width: 40px; height: 40px; } .game-card .league-logo { width: 23px; height: 23px; } .game-card .team-column { grid-column: 2; } .game-card .game-context { grid-column: 2; } .game-card .excitement { grid-column: 3; grid-row: 1 / span 3; } .game-card .sparkline { display: none; }
  .team-row { font-size: 13px; } .team-score { font-size: 14px; } .footer { margin: 0 -17px; padding: 21px 19px; flex-direction: column; gap: 10px; } .footer > div { display: block; } .footer > div > * { margin-right: 8px; } .section-label { font-size: 20px; } .source-grid { grid-template-columns: 1fr; }
}
@media (max-width: 460px) { .main-nav { gap: 15px; } .seg { font-size: 10px; } .seg span { display: none; } .game-card { grid-template-columns: 42px 1fr 53px; } .game-card .match-meta { font-size: 9px; } .score-circle { width: 43px; height: 43px; font-size: 15px; } .detail-stat-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .full-team-name { display: none; } .short-team-name { display: inline; } .team-name { gap: 4px; } .team-logo { width: 20px; height: 20px; flex-basis: 20px; } .team-record { font-size: 9px; } .team-rank { font-size: 9px; } }
/* The league medallion and every logo stay inside their assigned card column on phones. */
.sport-icon { overflow: hidden; min-width: 0; max-width: 48px; }
.sport-icon small { display: none; }
.league-logo { display: block; width: 28px; height: 28px; max-width: 100%; max-height: 100%; object-fit: contain; }
.score-breakdown { display: block; margin-top: 5px; color: #aebfd2; font: 9px/1.35 var(--font-mono); overflow-wrap: anywhere; }
.stats-cue { display: block; margin-top: 6px; color: var(--selected-hi); font: 9px var(--font-mono); }
.score-trend { display: block; margin-top: 6px; color: var(--selected-hi); font: 8px/1.25 var(--font-mono); white-space: normal; }
.game-card .excitement { min-width: 0; }
.detail-overlay[hidden] { display: none !important; }
.detail-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(5,7,7,.78); }
.detail-panel { width: min(760px, 100%); max-height: calc(100dvh - 24px); overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; background: linear-gradient(145deg, #4a504e, #2d3332); color: var(--ink); border: 1px solid #7c837a; border-radius: 14px; padding: 22px; box-shadow: var(--shadow), inset 1px 1px 1px #7a817b; }
body.detail-open { overflow: hidden; }
@media (max-width: 800px) {
  .game-card { grid-template-columns: 43px minmax(0,1fr) 76px; gap: 8px; }
  .game-card .sport-icon { width: 38px; height: 38px; max-width: 38px; }
  .game-card .league-logo { width: 24px; height: 24px; }
  .game-card .team-column, .game-card .game-context { min-width: 0; }
  .game-card .excitement { grid-row: 1 / span 3; }
  .game-card .channel-context { grid-column: 2; }
  .game-card .excitement .score-circle { margin-inline: auto; }
  dialog { width: calc(100dvw - 24px); max-width: 500px; max-height: calc(100dvh - 24px); margin: auto; padding: 18px; overflow-x: hidden; overflow-y: auto; }
  .dialog-header h2 { font-size: 22px; margin-bottom: 12px; }
  .dialog-header > div { min-width: 0; }
  .sport-toggles { grid-template-columns: minmax(0,1fr); }
  .toggle-option { min-width: 0; }
  .favorite-tags { gap: 6px; }
  .favorite-tags span { max-width: 100%; white-space: normal; }
  .preference-block { padding: 14px 0; }
  .detail-overlay { padding: 8px; }
  .detail-panel { max-height: calc(100dvh - 16px); padding: 16px; }
  .score-help { right: -8px; bottom: calc(100% + 10px); width: min(260px, calc(100vw - 34px)); }
  .score-help::after { right: 16px; bottom: -6px; transform: rotate(135deg); }
}
@media (max-width: 360px) {
  .topbar { height: 68px; gap: 8px; }
  .brand { gap: 5px; font-size: 10px; letter-spacing: .06em; }
  .brand em { display: none; }
  .brand-mark { width: 26px; height: 26px; flex: 0 0 26px; padding: 5px; }
  .main-nav { gap: 8px; }
  .nav-link { font-size: 11px; }
  .top-actions { gap: 5px; }
  .icon-button { font-size: 22px; padding: 3px; }
  .profile-button { padding: 2px; }
  .profile-button span { width: 27px; height: 27px; }
}
@media (max-width: 460px) {
  .game-card .team-column { grid-column: 2 / 4; }
  .game-card .excitement { grid-column: 3; grid-row: 2 / span 2; }
}
/* One compact matchup row, followed by the reason and the practical viewing details. */
.game-card { grid-template-columns: 48px minmax(0,1fr) 66px; gap: 4px 10px; padding: 10px 12px; align-items: start; }
.game-card.favorite { padding-top: 15px; }
.game-card .sport-icon { grid-column: 1; grid-row: 1; align-self: center; }
.game-card .team-column { grid-column: 2; grid-row: 1; min-width: 0; }
.game-card .excitement { grid-column: 3; grid-row: 1; align-self: center; }
.game-card .channel-context { grid-column: 2 / 4; grid-row: 2; display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 10px; margin-top: 2px; }
.game-card .detail-inline { display: inline-flex; align-items: baseline; gap: 4px; max-width: 100%; min-width: 0; }
.game-card .detail-inline strong { display: inline; flex: 0 0 auto; margin: 0; color: #dceaff; font: 600 9px var(--font-mono); text-transform: uppercase; }
.game-card .detail-inline > span { display: inline; min-width: 0; overflow-wrap: anywhere; }
.game-card .line-inline { flex: 1 1 320px; }
.game-card .stats-cue { order: 3; margin: 0 0 0 auto; white-space: nowrap; }
.game-card .detail-inline strong { padding: 2px 5px; border: 1px solid #607985; border-radius: 3px; background: rgba(18,34,42,.72); color: #9fb8c1; font-size: 8px; letter-spacing: .1em; }
.game-card .detail-inline > span { color: #e7f0f1; font-size: 11px; }
.game-card.completed-card { border-color: #71868d; background: linear-gradient(145deg, #2a3941 0%, #1b2a32 58%, #15232a 100%); }
.game-card.completed-card .match-meta { color: #9fb4ba; }
.game-card.completed-card .team-score { color: #d9e7e9; }
.game-card.completed-card .winner-row .team-name-text { color: #ffffff; font-weight: 600; }
.game-card.completed-card .winner-row .team-score { color: #ffffff; text-shadow: 0 0 8px rgba(215,244,238,.32); }
.game-card .team-row + .team-row { margin-top: 3px; }
.game-card .match-meta { margin-bottom: 3px; }
.game-card .score-circle { width: 44px; height: 44px; }
.game-card .score-trend { margin-top: 3px; }
@media (max-width: 800px) {
  .game-card { grid-template-columns: 38px minmax(0,1fr) 53px; gap: 4px 7px; padding: 9px 10px; }
  .game-card .sport-icon { width: 36px; height: 36px; }
  .game-card .channel-context { gap: 3px 8px; }
  .game-card .line-inline { flex-basis: 100%; order: 4; }
  .game-card .stats-cue { order: 2; }
  .game-card .score-circle { width: 42px; height: 42px; }
}
@media (max-width: 460px) {
  .game-card .team-column { grid-column: 2; }
  .game-card .excitement { grid-column: 3; grid-row: 1; }
  .game-card .channel-context { grid-column: 2 / 4; }
}
/* Game watchlist and event-driven excitement history. */
.segmented { max-width: 100%; flex-wrap: wrap; }
.sport-filter { scrollbar-width: none; }
.sport-filter::-webkit-scrollbar { display: none; }
.watch-indicator { color: #b9d9ff; font-weight: 600; }
.game-card.watched { border-color: #81acd7; }
.card-moment { grid-column: 2 / 4; grid-row: 2; display: flex; flex-wrap: wrap; gap: 4px 7px; color: #e3efff; font: 10px/1.35 var(--font-mono); min-width: 0; }
.card-moment strong { color: #a9d3ff; white-space: nowrap; }
.card-moment span { overflow-wrap: anywhere; }
.game-card:has(.card-moment) .channel-context { grid-row: 3; }
.detail-watch { display: inline-flex; align-items: center; min-height: 36px; margin: -2px 0 13px; padding: 7px 12px; color: #d9eaff; background: linear-gradient(#475766,#303f4f); border: 1px solid #799cbd; border-radius: 6px; font: 600 11px var(--font-mono); cursor: pointer; box-shadow: inset 0 1px 1px #8299b0,0 2px 3px #171c20; }
.detail-watch.active { color: #132b44; background: linear-gradient(#c0deff,#76a9df); border-color: #c5e2ff; }
.detail-watch:focus-visible { outline: 2px solid #cce5ff; outline-offset: 2px; }
.detail-moment { display: grid; gap: 5px; margin-top: 14px; padding: 11px 13px; border: 1px solid #7a9fbe; border-radius: 7px; background: linear-gradient(120deg,#32475c,#273848); color: #e5f1fc; font-size: 11px; line-height: 1.45; }
.detail-moment strong { color: #b7dbff; font: 600 10px var(--font-mono); text-transform: uppercase; }
.timeline-note { margin: 0 0 9px; color: #b8cbdc; font: 10px/1.4 var(--font-mono); }
.timeline-chart { display: block; width: 100%; height: auto; max-height: 230px; background: linear-gradient(#263540,#1f2c35); border: 1px solid #687c8f; border-radius: 8px; }
.timeline-chart line { stroke: #657788; stroke-width: 1; }
.timeline-chart .timeline-midline { stroke: #455767; stroke-dasharray: 4 5; }
.timeline-chart text { fill: #afc5d8; font: 10px var(--font-mono); }
.timeline-chart .timeline-line { fill: none; stroke: #91c4fb; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.timeline-chart circle { fill: #c9e5ff; stroke: #35618a; stroke-width: 1.5; }
.timeline-chart .timeline-end { fill: #edf7ff; stroke: #6ba6df; stroke-width: 3; }
.timeline-chart .timeline-point { cursor: help; outline: none; }
.timeline-chart .timeline-point circle { transition: fill .15s, stroke .15s, stroke-width .15s; }
.timeline-chart .timeline-point:hover circle, .timeline-chart .timeline-point:focus-visible circle, .timeline-chart .timeline-point.is-open circle { fill: #f4fbff; stroke: #8fcbff; stroke-width: 2.5; }
.timeline-point-help { box-sizing: border-box; block-size: 7.8em; margin: 9px 0 0; padding: 10px 12px; overflow: auto; border: 1px solid #7da9c9; border-radius: 8px; background: linear-gradient(145deg, #2d4657, #1b2d37); color: #e6f3fc; font: 10px/1.45 var(--font-mono); box-shadow: 0 5px 13px rgba(0,0,0,.24), inset 0 1px 1px rgba(219,240,255,.16); visibility: hidden; pointer-events: none; }
.timeline-point-help.is-visible { visibility: visible; }
.timeline-moments { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.timeline-moments li { display: flex; gap: 10px; color: #d7e5f1; font-size: 10px; line-height: 1.4; }
.timeline-moments li b { color: #b5dbff; font: 600 11px var(--font-mono); }
.timeline-moments li strong { color: #f0f6fc; }

/* Sports Radar identity: the supplied radar artwork sets the dark metal and signal palette. */
:root {
  --bg: #0b141b;
  --surface: #17232b;
  --ink: #edf4f5;
  --muted: #a4b5bb;
  --line: #46535b;
  --green: #39df78;
  --red: #ff786e;
  --shadow: 0 16px 32px rgba(0,0,0,.42);
}
body {
  background:
    radial-gradient(ellipse 90% 38% at 50% -12%, rgba(33,91,66,.30), transparent 75%),
    radial-gradient(ellipse 80% 62% at 50% 5%, #1b2b33 0%, #0b141b 75%);
  background-attachment: fixed;
}
.topbar {
  height: 76px;
  gap: clamp(14px, 3vw, 40px);
  border-bottom: 1px solid #546169;
  box-shadow: 0 1px 0 #03090c, 0 6px 20px rgba(0,0,0,.18);
}
.brand { gap: 11px; font-size: 14px; letter-spacing: .10em; white-space: nowrap; }
.brand-logo {
  display: block;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 0 0 1px #51636b, 0 3px 8px rgba(0,0,0,.6), 0 0 16px rgba(54,218,111,.10);
}
.brand-wordmark { display: inline-flex; align-items: baseline; }
.brand em { color: #67e99b; font-size: inherit; letter-spacing: inherit; margin-left: 5px; }
.nav-link.active { color: #e1f3ff; }
.control-row { padding-top: 25px; }
.section-label { color: #f3f7f7; }
.live-count { border-color: #32895e; background: #16382c; color: #abf4c9; box-shadow: inset 0 1px 2px #28764d, 0 1px 3px #07130e; }
.segmented { background: #091217; box-shadow: inset 0 2px 5px #020607, 0 1px 0 #4d5d63; }
.sport-chip { background: linear-gradient(145deg, #35434b, #1c2930 72%); border-color: #58666e; color: #d5e0e1; box-shadow: inset 0 1px 0 #65757c, 0 3px 5px rgba(0,0,0,.35); }
.data-status { color: #a9bec0; }
.data-status .status-dot, .footer .status-dot { background: #38e579; box-shadow: 0 0 0 4px rgba(56,229,121,.10), 0 0 9px rgba(56,229,121,.36); }
.game-card {
  background: linear-gradient(145deg, #2d3b43 0%, #1c2a32 55%, #152129 100%);
  border-color: #5f6d73;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 #63747b, inset 0 -1px 0 #0b151a, 0 5px 12px rgba(0,0,0,.34);
}
.game-card:hover { box-shadow: inset 0 1px 0 #788c92, inset 0 -1px 0 #0b151a, 0 8px 17px rgba(0,0,0,.42); }
.game-card.favorite { background: linear-gradient(145deg, #324658, #22313e 60%, #182630); }
.game-card.watched { border-color: #81acd7; }
.sport-icon { background: radial-gradient(circle at 35% 25%, #e6e9e5, #8d999a 36%, #455359 76%, #1b272d); border-color: #101a20; box-shadow: inset 1px 1px 2px #fff, inset -2px -2px 4px #344148, 0 2px 4px #050b0e; }
.match-meta { color: #b0c0c3; }
.status-live { color: #61ec96; text-shadow: 0 0 8px rgba(67,236,134,.3); }
.status-upcoming { color: #bed3df; }
.status-completed { color: #a9bac3; }
.team-score { color: #f7faf3; }
.game-context { color: #bacbd0; }
.game-context strong { color: #f1f6f6; }
.score-circle, .score-circle.hot, .score-circle.warm {
  --score-hue: 140;
  border-color: hsl(var(--score-hue, 140) 86% 62%);
  color: hsl(var(--score-hue, 140) 92% 90%);
  background: radial-gradient(circle at 34% 25%, hsl(var(--score-hue, 140) 78% 43%), hsl(var(--score-hue, 140) 70% 14%) 66%, #081117);
  box-shadow: inset 1px 1px 3px hsl(var(--score-hue, 140) 85% 74%), inset -2px -2px 4px hsl(var(--score-hue, 140) 70% 8%), 0 2px 5px #061009, 0 0 15px hsl(var(--score-hue, 140) 90% 55% / .28);
}
.excitement small { color: #afeec8; }
.footer { border-top-color: #46565e; }
.brand-mini { color: #85e9ae; }
dialog, .detail-panel { background: linear-gradient(145deg, #31414a, #17252d); border-color: #6b7a80; box-shadow: var(--shadow), inset 1px 1px 1px #687a81; }
.detail-scoreboard { background: linear-gradient(145deg, #2b3d46, #182831); }
.timeline-chart { background: linear-gradient(#1d3037, #112329); }
@media (max-width: 800px) {
  .topbar { gap: 14px; }
  .brand { gap: 8px; font-size: 12px; }
  .brand-logo { width: 42px; height: 42px; flex-basis: 42px; border-radius: 11px; }
}
@media (max-width: 460px) {
  .topbar { height: 67px; gap: 10px; }
  .brand { font-size: 11px; }
  .brand-logo { width: 38px; height: 38px; flex-basis: 38px; border-radius: 10px; }
  .main-nav { gap: 12px; }
  .top-actions { gap: 6px; }
  .control-row { padding-top: 19px; }
}
@media (max-width: 360px) {
  .topbar { gap: 8px; }
  .brand-wordmark { display: none; }
  .brand-logo { width: 38px; height: 38px; flex-basis: 38px; }
}
/* Device-specific web push controls */
.alert-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}
.alert-controls label,.alert-controls span{color:#c9d8e4;font-size:.88rem}
.alert-controls input{width:68px;min-width:68px;padding:9px;border:1px solid #658599;border-radius:8px;background:#17232c;color:#f5f7f9;font:inherit;text-align:center}
.alert-controls button{padding:9px 13px;border:1px solid #7d9ba8;border-radius:8px;background:linear-gradient(#354954,#24333c);color:#f5f7f9;font:inherit;cursor:pointer}
.alert-controls button.alert-enabled{border-color:#42d66a;color:#b8f7c6}
.alert-controls button:disabled{opacity:.52;cursor:not-allowed}
/* --------------------------------------------------------------------------
   Sports Radar visual cleanup
   Keeps the existing layout and behavior, but removes most of the glossy,
   generated-dashboard styling in favor of a flatter sports information UI.
   -------------------------------------------------------------------------- */

:root {
  --bg: #0b141b;
  --surface: #152129;
  --surface-2: #18262f;
  --surface-3: #101a20;
  --ink: #f2f6f7;
  --muted: #93a3aa;
  --selected: #6ca9d8;
  --selected-hi: #d9ecfa;
  --green: #43dc7b;
  --red: #ff776e;
  --line: #2f414b;
  --shadow: 0 2px 8px rgba(0,0,0,.22);
}

html {
  background: var(--bg);
}

body {
  color: var(--ink);
  background: var(--bg);
  background-attachment: initial;
}

.app-shell {
  max-width: 1460px;
}

.topbar {
  height: 72px;
  border-bottom: 1px solid #263942;
  box-shadow: none;
}

.brand {
  color: #f5f8f8;
  text-shadow: none;
  letter-spacing: .08em;
}

.brand em {
  color: #69e59a;
}

.brand-logo {
  border-radius: 8px;
  box-shadow: none;
}

.main-nav {
  gap: 22px;
}

.nav-link {
  color: #8fa1a9;
  text-shadow: none;
  font-weight: 500;
}

.nav-link:hover {
  color: #c7d4d9;
}

.nav-link.active {
  color: #f3f7f8;
}

.nav-link.active:after {
  height: 2px;
  background: #64b88b;
  border-radius: 0;
  box-shadow: none;
}

.icon-button {
  color: #c6d4da;
  text-shadow: none;
  transition: color .15s ease;
}

.icon-button:hover {
  color: #ffffff;
  transform: none;
}

.install-button,
.outline-button,
.data-status button,
.favorite-manual-button,
.detail-watch,
.alert-controls button {
  border: 1px solid #3a505c;
  background: #17242c;
  color: #dce6ea;
  border-radius: 5px;
  box-shadow: none;
  font-family: var(--font-sans);
}

.install-button:hover,
.outline-button:hover,
.data-status button:hover,
.favorite-manual-button:hover,
.detail-watch:hover,
.alert-controls button:hover {
  background: #1d2d36;
  border-color: #506b78;
}

.profile-button {
  text-shadow: none;
}

.profile-button span {
  width: 30px;
  height: 30px;
  background: #1a2931;
  color: #cad8dd;
  border: 1px solid #394c56;
  box-shadow: none;
}

.section-label {
  text-shadow: none;
  letter-spacing: -.02em;
}

.live-count {
  color: #8ee8b1;
  background: #10251b;
  border: 1px solid #275e40;
  border-radius: 4px;
  box-shadow: none;
}

.score-guide-button {
  background: #16242c;
  color: #bacbd2;
  border: 1px solid #415660;
  box-shadow: none;
}

.score-guide-button:hover,
.score-guide-button:focus-visible {
  border-color: #6f8a96;
  box-shadow: none;
}

.segmented {
  background: #10191f;
  border: 1px solid #263840;
  border-radius: 6px;
  padding: 3px;
  box-shadow: none;
}

.seg,
.outline-button,
.sport-chip {
  font-family: var(--font-sans);
}

.seg {
  color: #8fa0a7;
  text-shadow: none;
  border-radius: 4px;
  font-weight: 500;
}

.seg:hover {
  color: #c9d4d8;
}

.seg.active {
  color: #f5f8f9;
  background: #223640;
  box-shadow: none;
  text-shadow: none;
}

.seg span {
  color: #74868e;
}

.seg.active span {
  color: #b4c7ce;
}

.sport-chip {
  color: #aebdc3;
  background: #142129;
  border: 1px solid #2d414b;
  border-radius: 5px;
  box-shadow: none;
  font-weight: 500;
}

.sport-chip:hover {
  color: #e3e9eb;
  border-color: #455d68;
  background: #182730;
}

.sport-chip span {
  color: #8fb1c3;
}

.sport-chip.active {
  color: #f3f7f8;
  background: #24404a;
  border-color: #52717c;
  box-shadow: none;
  text-shadow: none;
}

.sport-chip.active span {
  color: #c9e2ec;
}

.fcs-toggle {
  border-style: solid;
}

.notice {
  background: #14231a;
  border: 1px solid #31523c;
  border-radius: 6px;
  box-shadow: none;
}

.data-status {
  color: #8fa1a8;
}

.data-status .status-dot,
.footer .status-dot {
  background: #43dc7b;
  box-shadow: none;
}

.game-date-divider {
  border: 1px solid #2f434d;
  border-radius: 5px;
  background: rgba(14,26,33,.96);
  color: #aebfc7;
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.game-date-divider i {
  background: #2d414b;
}

.game-card {
  background: #152129;
  border: 1px solid #2d3f48;
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(0,0,0,.28);
  transition: background .15s ease, border-color .15s ease;
}

.game-card:hover {
  background: #182730;
  border-color: #405560;
  transform: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.28);
}

.game-card.favorite {
  background: #172631;
  border-color: #40657d;
}

.game-card.favorite:before {
  color: #9dc8e3;
  text-shadow: none;
}

.game-card.watched {
  border-color: #4e7187;
}

.game-card.completed-card {
  background: #121e25;
  border-color: #293b44;
}

.game-card.completed-card .winner-row .team-score {
  text-shadow: none;
}

.sport-icon,
.game-card .sport-icon {
  width: 42px;
  height: 42px;
  max-width: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.league-logo {
  width: 30px;
  height: 30px;
}

.match-meta {
  color: #8799a1;
  text-shadow: none;
}

.status-live {
  color: #56df8a;
  text-shadow: none;
}

.status-upcoming {
  color: #aabac1;
}

.status-completed {
  padding: 2px 5px;
  border: 1px solid #384c56;
  border-radius: 4px;
  background: #111d23;
  color: #93a6ae;
}

.live-phase {
  color: #c5d6dd;
}

.live-situation {
  color: #b9cbd3;
}

.baseball-situation { gap: 7px; min-height: 20px; margin-top: 2px; }
.baseball-situation .base-diamond { flex-basis: 23px; width: 23px; height: 21px; transform: scale(.82); transform-origin: center; }
.baseball-outs { display: inline-flex; align-items: center; gap: 3px; }
.out-dot { width: 5px; height: 5px; border: 1px solid #91a3ab; border-radius: 50%; background: transparent; }
.out-dot.active { background: #d9e9ed; border-color: #d9e9ed; }
.baseball-count { color: #e4edf0; font-weight: 600; }

.base {
  background: #293b44;
  border-color: #667b84;
  box-shadow: none;
}

.base.occupied {
  background: #77b1d8;
  border-color: #b8d8eb;
  box-shadow: none;
}

.team-row {
  text-shadow: none;
}

.team-record {
  color: #899ba3;
}

.team-rank {
  color: #b7d2e2;
}

.team-logo {
  filter: none;
}

.team-score {
  color: #f5f8f8;
  font-weight: 700;
}

.game-context {
  color: #9aacb3;
  font-family: var(--font-sans);
}

.game-context strong {
  color: #dce5e8;
  text-shadow: none;
  font-weight: 600;
}

.game-card .detail-inline strong {
  color: #91a9b4;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  letter-spacing: .06em;
}

.game-card .detail-inline > span {
  color: #c8d5da;
}

.sparkline i {
  box-shadow: none;
}

.score-circle,
.score-circle.hot,
.score-circle.warm {
  border: 2px solid hsl(var(--score-hue, 140) 72% 55%);
  color: #f4f7f8;
  background: #101a20;
  box-shadow: none;
}

.excitement small {
  color: #aabac1;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .04em;
}

.score-help,
.timeline-point-help {
  border: 1px solid #405864;
  border-radius: 6px;
  background: #17262e;
  color: #dce7eb;
  box-shadow: 0 4px 12px rgba(0,0,0,.28);
}

.score-help::after {
  background: #17262e;
  border-color: #405864;
}

.empty-state div {
  color: #8aa9b7;
}

.footer {
  border-top: 1px solid #263942;
  color: #7f9199;
  box-shadow: none;
}

.brand-mini {
  color: #82dca4;
}

.footer button {
  color: #a7c6d5;
}

dialog,
.detail-panel {
  background: #152129;
  border: 1px solid #344953;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0,0,0,.48);
}

dialog::backdrop {
  background: rgba(4,9,12,.8);
  backdrop-filter: blur(3px);
}

.preference-block {
  border-top-color: #2c3d45;
}

.subtle,
.dialog-copy {
  color: #9aabb2;
}

.favorite-tag {
  border: 1px solid #3c5867;
  color: #c9dce4;
  background: #172630;
  border-radius: 4px;
  font-family: var(--font-sans);
}

.favorite-tag button {
  color: #dce8ed;
  background: #223741;
  border-radius: 4px;
}

.favorite-picker,
.detail-stat-team,
.detail-player-team {
  border-color: #314750;
  background: #111d23;
  border-radius: 6px;
}

.favorite-picker label {
  color: #9fb2bb;
  font-family: var(--font-sans);
}

.favorite-picker select,
.favorite-picker input,
.alert-controls input {
  border: 1px solid #3a505b;
  border-radius: 5px;
  background: #101b21;
  color: #eef3f4;
  font-family: var(--font-sans);
}

.favorite-result {
  border: 1px solid #304650;
  border-radius: 4px;
  background: #16252d;
  color: #dce6e9;
  font-family: var(--font-sans);
}

.favorite-result:hover,
.favorite-result:focus-visible {
  border-color: #587483;
  background: #1b2e37;
}

.favorite-help,
.favorite-empty,
.preference-note {
  color: #8fa1aa;
  font-family: var(--font-sans);
}

.primary-button {
  border: 1px solid #4a6978;
  border-radius: 5px;
  background: #24404a;
  color: #f1f5f6;
  box-shadow: none;
  font-family: var(--font-sans);
  font-weight: 600;
}

.primary-button:hover {
  background: #2a4b56;
}

.source-grid div,
.score-range-list > div {
  border-color: #31444d;
  background: #111d23;
  border-radius: 5px;
  box-shadow: none;
}

.model-note {
  background: #15231a;
  border-color: #31523c;
  border-radius: 5px;
}

.toggle-option {
  border: 1px solid #314650;
  border-radius: 5px;
  background: #142129;
  color: #cdd8dc;
  box-shadow: none;
  font-family: var(--font-sans);
}

.toggle-option:has(input:checked) {
  border-color: #4c6a78;
  background: #203a45;
  color: #f1f5f6;
}

.detail-scoreboard {
  background: #111d23;
  border-color: #314750;
  box-shadow: none;
}

.detail-meta,
.detail-stat-team div,
.detail-leaders div,
.detail-player-table,
.detail-plays li span,
.timeline-note,
.timeline-chart text,
.card-moment,
.detail-moment strong,
.timeline-moments li b {
  font-family: var(--font-sans);
}

.detail-section {
  border-top-color: #2c3e47;
}

.detail-player-table th,
.detail-player-table td,
.detail-plays li {
  border-bottom-color: rgba(118,140,150,.18);
}

.detail-player-table thead th {
  color: #8faebc;
}

.detail-moment {
  border: 1px solid #395564;
  border-radius: 6px;
  background: #172630;
  color: #dce8ed;
}

.timeline-chart {
  background: #101b21;
  border: 1px solid #304650;
  border-radius: 6px;
}

.timeline-chart .timeline-line {
  stroke: #77afd5;
}

.timeline-chart circle {
  fill: #b8d7e9;
  stroke: #3b657e;
}

.timeline-chart .timeline-end {
  fill: #edf5f8;
  stroke: #6ea7ca;
}

.card-moment {
  color: #c8d7dd;
}

.card-moment strong {
  color: #95b9cb;
}

.alert-controls label,
.alert-controls span {
  color: #9fb0b7;
}

.alert-controls button.alert-enabled {
  border-color: #34734f;
  color: #92e8b1;
}

@media (max-width: 800px) {
  .brand-logo {
    border-radius: 7px;
  }
}

@media (max-width: 460px) {
  .brand-logo {
    border-radius: 6px;
  }
}

/* --------------------------------------------------------------------------
   Typography and metadata separation
   -------------------------------------------------------------------------- */

:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
}

body,
button,
input,
select,
textarea,
.brand,
.nav-link,
.section-label,
.seg,
.outline-button,
.sport-chip,
.game-context,
.game-context strong,
.game-card .detail-inline strong,
.game-card .detail-inline > span,
.card-moment,
.card-moment strong,
.footer,
.dialog-header,
.preference-block,
.subtle,
.dialog-copy,
.favorite-tag,
.favorite-result,
.favorite-picker label,
.favorite-help,
.favorite-empty,
.favorite-manual-button,
.preference-note,
.primary-button,
.source-grid,
.model-note,
.score-range-list,
.toggle-option,
.detail-section,
.detail-explanation,
.storyline-section,
.detail-watch,
.detail-moment,
.timeline-note,
.timeline-point-help,
.timeline-moments,
.alert-controls,
.alert-controls button,
.excitement small {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
}

/* Keep mono only where fixed-width information improves scanning. */
.team-score,
.team-record,
.team-rank,
.match-meta,
.live-situation,
.score-circle,
.score-breakdown,
.score-trend,
.detail-meta,
.detail-player-table,
.timeline-chart text {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

/* Reduce the synthetic dashboard look from excessive tracking and all-caps. */
.match-meta {
  letter-spacing: 0;
}

.card-moment strong {
  letter-spacing: 0;
  text-transform: none;
}

.game-card .detail-inline strong {
  padding: 0;
  border: 0;
  background: none;
  color: #7f98a3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* Give the live moment its own visual row. */
.card-moment {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid #263a43;
}

/* Separate broadcast and betting information from the scoring moment. */
.game-card .channel-context {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid #263a43;
  gap: 6px 12px;
}

/* Vertical divider between Broadcast and Last Pregame Line groups. */
.game-card .channel-context .detail-inline + .detail-inline::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 14px;
  margin-right: 12px;
  background: #3a4d56;
  vertical-align: middle;
}

/* Keep metadata values readable and visually distinct from their labels. */
.game-card .detail-inline > span {
  color: #c8d5da;
  font-size: 12px;
}

/* Small screens use spacing instead of a cramped vertical divider. */
@media (max-width: 800px) {
  .game-card .channel-context .detail-inline + .detail-inline::before {
    display: none;
  }

  .game-card .channel-context .detail-inline + .detail-inline {
    padding-left: 12px;
    border-left: 1px solid #3a4d56;
  }
}

@media (max-width: 520px) {
  .game-card .channel-context .detail-inline + .detail-inline {
    padding-left: 0;
    border-left: 0;
  }

  .game-card .channel-context {
    row-gap: 7px;
  }
}

/* --------------------------------------------------------------------------
   Sports scoreboard refinement
   Stronger information hierarchy, fewer dashboard-style components.
   -------------------------------------------------------------------------- */

/* Cards read more like scoreboards and less like floating UI components. */
.game-card {
  border-radius: 3px;
}

.game-card.favorite,
.game-card.completed-card {
  border-radius: 3px;
}

/* Date headers behave like section dividers, not cards. */
.game-date-divider {
  border: 0;
  border-bottom: 1px solid #2d414a;
  border-radius: 0;
  background: transparent;
  padding: 8px 0;
  box-shadow: none;
}

.game-date-divider i {
  background: #2d414a;
}

/* Sport filters are simple text tabs. FCS remains a real toggle button. */
.sport-chip:not(.fcs-toggle) {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 8px 10px;
  box-shadow: none;
  color: #93a5ad;
}

.sport-chip:not(.fcs-toggle):hover {
  background: transparent;
  border-bottom-color: #425760;
  color: #d9e2e5;
}

.sport-chip.active:not(.fcs-toggle) {
  background: transparent;
  border: 0;
  border-bottom: 2px solid #67c28d;
  color: #f1f5f6;
  box-shadow: none;
}

.sport-chip:not(.fcs-toggle)::before,
.sport-chip.active:not(.fcs-toggle)::before {
  display: none;
}

.fcs-toggle {
  background: #16242c;
  border: 1px solid #344a55;
  border-radius: 4px;
  color: #aebfc6;
  box-shadow: none;
}

.fcs-toggle.active {
  background: #203a45;
  border-color: #4f6a76;
  color: #eef4f5;
}

/* Real game score is the primary number. */
.team-score {
  font-size: 20px;
  font-weight: 700;
  color: #f7f9fa;
}

/* Excitement becomes a clean secondary readout instead of a gauge. */
.score-circle,
.score-circle.hot,
.score-circle.warm {
  width: auto;
  height: auto;
  min-width: 42px;
  border: 0;
  border-left: 3px solid hsl(var(--score-hue, 140) 70% 52%);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 3px 0 3px 10px;
  color: #f4f7f8;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.score-dot-wrap .score-circle {
  cursor: help;
}

.excitement {
  text-align: right;
}

.excitement small {
  margin-top: 5px;
  color: #7f939c;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
}

/* Quieter utility labels. */
.game-card .detail-inline strong,
.card-moment strong {
  color: #6f8792;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .02em;
}

/* Latest score stays close to the matchup. One separator before utility info. */
.card-moment {
  margin-top: 4px;
  padding-top: 3px;
  border-top: 0;
}

.game-card .channel-context {
  margin-top: 7px;
  padding-top: 8px;
  border-top: 1px solid #263a43;
}

/* Broadcast and line remain distinct without looking like nested components. */
.game-card .channel-context .detail-inline + .detail-inline::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 13px;
  margin-right: 12px;
  background: #354952;
  vertical-align: middle;
}

/* Radar green is reserved for active and live signal states. */
.status-live,
.live-count,
.nav-link.active,
.watch-indicator {
  color: #67dc95;
}

.nav-link.active:after {
  background: #67c28d;
}

.data-status .status-dot,
.footer .status-dot {
  background: #43dc7b;
}

/* Reduce remaining decorative polish. */
.game-card:hover {
  transform: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.28);
}

.score-help,
.timeline-point-help,
dialog,
.detail-panel {
  border-radius: 4px;
}

/* Mobile adjustments for the flatter score treatment. */
@media (max-width: 800px) {
  .team-score {
    font-size: 18px;
  }

  .score-circle,
  .score-circle.hot,
  .score-circle.warm {
    min-width: 38px;
    font-size: 20px;
    padding-left: 8px;
  }

  .game-card .channel-context .detail-inline + .detail-inline::before {
    display: none;
  }

  .game-card .channel-context .detail-inline + .detail-inline {
    padding-left: 12px;
    border-left: 1px solid #354952;
  }
}

@media (max-width: 520px) {
  .game-card .channel-context .detail-inline + .detail-inline {
    padding-left: 0;
    border-left: 0;
  }
}

/* --------------------------------------------------------------------------
   Excitement score heat treatment
   The number itself carries the urgency. Extreme scores become visually jarring.
   -------------------------------------------------------------------------- */

.score-circle,
.score-circle.hot,
.score-circle.warm {
  width: 54px;
  height: 48px;
  min-width: 54px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 4px;

  color: hsl(var(--score-hue, 140) 90% 62%);
  background: hsl(var(--score-hue, 140) 65% 45% / .07);

  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  box-shadow: none;
  text-shadow: none;
}

/* Slightly stronger visual treatment once a game is genuinely hot. */
.score-circle.hot {
  background: hsl(var(--score-hue, 30) 75% 48% / .10);
}

/* Support semantic classes if app.js adds them later. */
.score-circle.very-hot {
  color: #ff8a42;
  background: rgba(255, 120, 50, .10);
}

.score-circle.extreme {
  color: #ff4242;
  background: rgba(255, 45, 45, .11);
  text-shadow: 0 0 12px rgba(255, 40, 40, .42);
}

/* Current inline hue model: push the hottest red range harder without a circle. */
.score-circle[style*="--score-hue: 0"],
.score-circle[style*="--score-hue: 1"],
.score-circle[style*="--score-hue: 2"],
.score-circle[style*="--score-hue: 3"],
.score-circle[style*="--score-hue: 4"],
.score-circle[style*="--score-hue: 5"],
.score-circle[style*="--score-hue: 6"],
.score-circle[style*="--score-hue: 7"],
.score-circle[style*="--score-hue: 8"],
.score-circle[style*="--score-hue: 9"] {
  color: #ff4343;
  background: rgba(255, 48, 48, .11);
  text-shadow: 0 0 12px rgba(255, 40, 40, .38);
}

.excitement {
  text-align: right;
}

.excitement small {
  margin-top: 5px;
  color: #7f939c;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
}

@media (max-width: 800px) {
  .score-circle,
  .score-circle.hot,
  .score-circle.warm {
    width: 48px;
    height: 44px;
    min-width: 48px;
    font-size: 22px;
  }
}

/* --------------------------------------------------------------------------
   Selective skeuomorphic treatment
   Sports Radar uses physical metaphors from scoreboards, radar consoles,
   and broadcast control panels without turning the entire interface glossy.
   -------------------------------------------------------------------------- */

/* Subtle instrument-panel depth across the main app surface. */
body {
  background:
    radial-gradient(circle at 50% -18%, rgba(38, 72, 63, .20), transparent 42%),
    linear-gradient(180deg, #0d171d 0%, #091116 100%);
  background-attachment: fixed;
}

/* Header feels like a restrained broadcast console fascia. */
.topbar {
  background:
    linear-gradient(180deg, rgba(23, 35, 42, .92), rgba(12, 21, 26, .92));
  border-bottom: 1px solid #2c3d45;
  box-shadow:
    inset 0 -1px 0 rgba(0, 0, 0, .65),
    0 2px 8px rgba(0, 0, 0, .20);
}

/* Logo housing gets a small amount of physical depth. */
.brand-logo {
  border: 1px solid #31434c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    inset 0 -1px 0 rgba(0, 0, 0, .65),
    0 2px 5px rgba(0, 0, 0, .34);
}

/* Game cards resemble recessed scoreboard modules. */
.game-card,
.game-card.favorite,
.game-card.completed-card {
  background:
    linear-gradient(180deg, #17242b 0%, #111b21 100%);
  border: 1px solid #2d3c44;
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .045),
    inset 0 -1px 0 rgba(0, 0, 0, .72),
    0 1px 2px rgba(0, 0, 0, .32);
}

.game-card:hover {
  background:
    linear-gradient(180deg, #1a2931 0%, #132028 100%);
  border-color: #40545d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .055),
    inset 0 -1px 0 rgba(0, 0, 0, .72),
    0 2px 5px rgba(0, 0, 0, .35);
}

/* Favorite and watched states get a subtle blue instrument-panel bias. */
.game-card.favorite {
  background:
    linear-gradient(180deg, #182833 0%, #121f28 100%);
  border-color: #3b5d70;
}

.game-card.watched {
  border-color: #4d7084;
}

/* Sport tabs act like shallow selector switches. */
.sport-chip:not(.fcs-toggle) {
  position: relative;
  background:
    linear-gradient(180deg, #17232a 0%, #111b21 100%);
  border: 1px solid #2d4049;
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .04),
    inset 0 -1px 0 rgba(0, 0, 0, .65);
  padding: 8px 11px;
}

.sport-chip:not(.fcs-toggle):hover {
  background:
    linear-gradient(180deg, #1b2a32 0%, #142028 100%);
  border-color: #435963;
}

.sport-chip.active:not(.fcs-toggle) {
  background:
    linear-gradient(180deg, #13231d 0%, #0f1b16 100%);
  border: 1px solid #37664b;
  color: #eef6f1;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, .55),
    inset 0 -1px 0 rgba(255, 255, 255, .035);
}

/* FCS remains a physical toggle. */
.fcs-toggle {
  background:
    linear-gradient(180deg, #1a2830 0%, #121d23 100%);
  border: 1px solid #344a55;
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .04),
    inset 0 -1px 0 rgba(0, 0, 0, .65);
}

.fcs-toggle.active {
  background:
    linear-gradient(180deg, #1a3026 0%, #112219 100%);
  border-color: #3e7253;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, .5),
    inset 0 -1px 0 rgba(255, 255, 255, .04);
}

/* Segmented navigation resembles a compact hardware selector bank. */
.segmented {
  background: #0b1318;
  border: 1px solid #273840;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, .55),
    inset 0 -1px 0 rgba(255, 255, 255, .025);
}

.seg {
  border: 1px solid transparent;
}

.seg.active {
  background:
    linear-gradient(180deg, #243740 0%, #17262e 100%);
  border-color: #344b56;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    0 1px 2px rgba(0, 0, 0, .35);
}

/* True live indicators behave like physical LEDs. */
.status-dot,
.data-status .status-dot,
.footer .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38e879;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .42),
    inset 0 -1px 1px rgba(0, 0, 0, .45),
    0 0 7px rgba(56, 232, 121, .52);
}

/* Excitement score becomes a scoreboard warning module. */
.score-circle,
.score-circle.hot,
.score-circle.warm {
  width: 58px;
  height: 46px;
  min-width: 58px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #26343a;
  border-radius: 4px;

  background:
    linear-gradient(180deg, #0b1115 0%, #11191e 100%);

  color: hsl(var(--score-hue, 140) 95% 60%);

  font-size: 25px;
  font-weight: 800;
  line-height: 1;

  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, .07),
    inset 0 -2px 4px rgba(0, 0, 0, .82),
    0 1px 2px rgba(0, 0, 0, .48);

  text-shadow: none;
}

/* Warmer games subtly tint the display housing. */
.score-circle.hot {
  background:
    linear-gradient(
      180deg,
      hsl(var(--score-hue, 25) 60% 14% / .72) 0%,
      #0d1114 100%
    );
  border-color:
    hsl(var(--score-hue, 25) 45% 30%);
}

/* Support semantic classes if app.js adds them later. */
.score-circle.very-hot {
  color: #ff8a42;
  background:
    linear-gradient(180deg, #1d1009 0%, #110d0a 100%);
  border-color: #5c3920;
}

.score-circle.extreme {
  color: #ff3f3f;
  background:
    linear-gradient(180deg, #1d0808 0%, #100909 100%);
  border-color: #6d2525;
  box-shadow:
    inset 0 1px 2px rgba(255, 125, 125, .10),
    inset 0 -2px 4px rgba(0, 0, 0, .85),
    0 0 13px rgba(255, 45, 45, .46);
  text-shadow: 0 0 10px rgba(255, 45, 45, .34);
}

/* Current inline hue model: strongest red range gets warning-lamp behavior. */
.score-circle[style*="--score-hue: 0"],
.score-circle[style*="--score-hue: 1"],
.score-circle[style*="--score-hue: 2"],
.score-circle[style*="--score-hue: 3"],
.score-circle[style*="--score-hue: 4"],
.score-circle[style*="--score-hue: 5"],
.score-circle[style*="--score-hue: 6"],
.score-circle[style*="--score-hue: 7"],
.score-circle[style*="--score-hue: 8"],
.score-circle[style*="--score-hue: 9"] {
  color: #ff3f3f;
  background:
    linear-gradient(180deg, #1d0808 0%, #100909 100%);
  border-color: #6d2525;
  box-shadow:
    inset 0 1px 2px rgba(255, 125, 125, .10),
    inset 0 -2px 4px rgba(0, 0, 0, .85),
    0 0 13px rgba(255, 45, 45, .46);
  text-shadow: 0 0 10px rgba(255, 45, 45, .34);
}

/* Excitement label remains understated so the number does the work. */
.excitement small {
  color: #7f939c;
  text-shadow: none;
}

/* Utility buttons receive shallow physical depth. */
.icon-button,
.install-button,
.outline-button,
.data-status button,
.favorite-manual-button,
.detail-watch,
.alert-controls button,
.primary-button {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    inset 0 -1px 0 rgba(0, 0, 0, .55),
    0 1px 2px rgba(0, 0, 0, .32);
}

.icon-button:active,
.install-button:active,
.outline-button:active,
.data-status button:active,
.favorite-manual-button:active,
.detail-watch:active,
.alert-controls button:active,
.primary-button:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, .55),
    inset 0 -1px 0 rgba(255, 255, 255, .025);
}

/* Dialogs feel like panels mounted into the same console. */
dialog,
.detail-panel {
  background:
    linear-gradient(180deg, #17242b 0%, #111b21 100%);
  border: 1px solid #344852;
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .045),
    inset 0 -1px 0 rgba(0, 0, 0, .72),
    0 18px 48px rgba(0, 0, 0, .50);
}

/* Detail scoreboard becomes a recessed module. */
.detail-scoreboard {
  background:
    linear-gradient(180deg, #111d23 0%, #0d171c 100%);
  border-color: #2e424b;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, .44),
    inset 0 -1px 0 rgba(255, 255, 255, .025);
}

/* Timeline sits in a dark instrument screen. */
.timeline-chart {
  background:
    linear-gradient(180deg, #0f1b20 0%, #0a1519 100%);
  border: 1px solid #2d414a;
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, .46);
}

/* Preserve the cleaner divider hierarchy from the flat redesign. */
.card-moment {
  border-top: 0;
}

.game-card .channel-context {
  border-top: 1px solid #263a43;
}

/* Mobile keeps the same physical metaphor without oversized modules. */
@media (max-width: 800px) {
  .score-circle,
  .score-circle.hot,
  .score-circle.warm {
    width: 50px;
    height: 42px;
    min-width: 50px;
    font-size: 22px;
  }

  .sport-chip:not(.fcs-toggle) {
    padding: 7px 9px;
  }
}

@media (max-width: 520px) {
  .game-card,
  .game-card.favorite,
  .game-card.completed-card {
    border-radius: 3px;
  }
}

/* --------------------------------------------------------------------------
   Seven-segment excitement display
   Uses DSEG7 Classic only for the excitement number.
   -------------------------------------------------------------------------- */

.score-circle,
.score-circle.hot,
.score-circle.warm,
.score-circle.very-hot,
.score-circle.extreme {
  font-family: "DSEG7 Classic", "DSEG7 Classic Mini", ui-monospace, monospace;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .015em;

  width: 62px;
  height: 48px;
  min-width: 62px;

  border: 1px solid #26343a;
  border-radius: 3px;

  background:
    linear-gradient(180deg, #070b0e 0%, #101619 100%);

  color: hsl(var(--score-hue, 140) 100% 60%);

  font-size: 30px;
  line-height: 1;

  box-shadow:
    inset 0 2px 5px rgba(0,0,0,.92),
    inset 0 0 0 1px rgba(255,255,255,.025),
    0 1px 2px rgba(0,0,0,.42);

  text-shadow:
    0 0 3px currentColor,
    0 0 8px color-mix(in srgb, currentColor 48%, transparent);
}

/* Hot games get a darker housing so the LED color carries more visual weight. */
.score-circle.hot,
.score-circle.very-hot {
  background:
    linear-gradient(180deg, #0a0d0f 0%, #121719 100%);
}

/* 95+ semantic state, if app.js assigns .extreme. */
.score-circle.extreme {
  color: #ff3030;
  background:
    linear-gradient(180deg, #170505 0%, #0d0808 100%);
  border-color: #5f2020;

  text-shadow:
    0 0 3px #ff3030,
    0 0 8px rgba(255,48,48,.82),
    0 0 16px rgba(255,48,48,.38);

  box-shadow:
    inset 0 2px 5px rgba(0,0,0,.94),
    inset 0 0 0 1px rgba(255,90,90,.04),
    0 0 12px rgba(255,45,45,.24);
}

/* Keep the small descriptor conventional so only the number feels like hardware. */
.excitement small {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  text-shadow: none;
}

@media (max-width: 800px) {
  .score-circle,
  .score-circle.hot,
  .score-circle.warm,
  .score-circle.very-hot,
  .score-circle.extreme {
    width: 54px;
    height: 44px;
    min-width: 54px;
    font-size: 26px;
  }
}

/* --------------------------------------------------------------------------
   Tinted excitement score block
   The excitement number stays native to the card. Color, scale, and a subtle
   tint communicate urgency without using a circle or seven-segment display.
   -------------------------------------------------------------------------- */

.score-circle,
.score-circle.hot,
.score-circle.warm,
.score-circle.very-hot,
.score-circle.extreme {
  width: 58px;
  height: 48px;
  min-width: 58px;
  padding: 0 8px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid hsl(var(--score-hue, 140) 42% 34% / .72);
  border-radius: 4px;

  background:
    linear-gradient(
      180deg,
      hsl(var(--score-hue, 140) 55% 28% / .16) 0%,
      hsl(var(--score-hue, 140) 45% 18% / .10) 100%
    );

  color: hsl(var(--score-hue, 140) 88% 62%);

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 27px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
  line-height: 1;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    inset 0 -1px 0 rgba(0,0,0,.45);

  text-shadow: none;
}

/* Slightly stronger tint for genuinely hot games. */
.score-circle.hot,
.score-circle.very-hot {
  background:
    linear-gradient(
      180deg,
      hsl(var(--score-hue, 35) 70% 32% / .22) 0%,
      hsl(var(--score-hue, 35) 55% 20% / .12) 100%
    );
  border-color:
    hsl(var(--score-hue, 35) 58% 42% / .78);
}

/* Semantic extreme state for 95+ if app.js assigns it. */
.score-circle.extreme {
  color: #ff4343;
  background:
    linear-gradient(
      180deg,
      rgba(255, 48, 48, .16) 0%,
      rgba(120, 18, 18, .10) 100%
    );
  border-color: rgba(255, 70, 70, .52);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    inset 0 -1px 0 rgba(0,0,0,.50),
    0 0 10px rgba(255, 45, 45, .14);

  text-shadow:
    0 0 8px rgba(255, 55, 55, .24);
}

/* Current inline hue model: make the reddest range more alarming. */
.score-circle[style*="--score-hue: 0"],
.score-circle[style*="--score-hue: 1"],
.score-circle[style*="--score-hue: 2"],
.score-circle[style*="--score-hue: 3"],
.score-circle[style*="--score-hue: 4"],
.score-circle[style*="--score-hue: 5"],
.score-circle[style*="--score-hue: 6"],
.score-circle[style*="--score-hue: 7"],
.score-circle[style*="--score-hue: 8"],
.score-circle[style*="--score-hue: 9"] {
  color: #ff4343;

  background:
    linear-gradient(
      180deg,
      rgba(255, 48, 48, .17) 0%,
      rgba(120, 18, 18, .10) 100%
    );

  border-color: rgba(255, 70, 70, .55);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    inset 0 -1px 0 rgba(0,0,0,.50),
    0 0 11px rgba(255, 45, 45, .16);

  text-shadow:
    0 0 8px rgba(255, 55, 55, .25);
}

/* Keep the label quiet so the number is the visual signal. */
.excitement small {
  margin-top: 5px;
  color: #7f939c;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;

  text-shadow: none;
}

@media (max-width: 800px) {
  .score-circle,
  .score-circle.hot,
  .score-circle.warm,
  .score-circle.very-hot,
  .score-circle.extreme {
    width: 52px;
    height: 44px;
    min-width: 52px;
    padding: 0 7px;
    font-size: 24px;
  }
}

/* --------------------------------------------------------------------------
   Uniform sport filter controls
   Keeps the existing selector-switch styling, but gives every sport control
   the same footprint so the filter bank reads as one deliberate control group.
   -------------------------------------------------------------------------- */

.sport-filter {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  overflow-x: visible;
}

.sport-filter .sport-chip {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  white-space: nowrap;
  text-align: center;

  border-width: 1px;
  box-sizing: border-box;
}

.sport-filter .sport-chip.active {
  border-width: 1px;
}

@media (max-width: 800px) {
  .sport-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sport-filter .sport-chip,
  .sport-filter .sport-chip:not(.fcs-toggle) {
    height: 48px;
    padding: 0 9px;
  }
}

@media (max-width: 520px) {
  .sport-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

/* Compact live football scoreboard and contained basketball box scores. */
.possession-marker { width: 19px; height: 14px; margin-right: 6px; vertical-align: -1px; color: var(--selected-hi, #bcead3); }
.football-situation { display: flex; align-items: baseline; gap: 10px; margin-top: 5px; white-space: nowrap; font: 11px var(--font-mono); }
.football-situation strong { color: #eaf5ec; font-size: 12px; }
.football-situation > span { color: #aabbbd; }
.basketball-box-score, .basketball-box-score .detail-player-grid, .basketball-box-score .detail-player-team { min-width: 0; max-width: 100%; }
.basketball-box-score h4 { margin: 0 0 8px; color: #eaf5ec; }
.box-periods { color: #aabbbd; font: 11px var(--font-mono); }
.detail-panel:has(.basketball-box-score) { width: min(980px, 100%); }
.basketball-player-table { min-width: 760px; table-layout: fixed; }
.basketball-player-table th, .basketball-player-table td { padding: 8px; }
.basketball-player-table th:first-child { position: sticky; left: 0; z-index: 1; background: #1d2d34; width: 155px; white-space: normal; }
.basketball-player-table small { display: block; margin-top: 3px; color: #aabbbd; font-size: 9px; font-weight: 400; }
.basketball-player-table .box-dnp-reason { text-align: left; color: #aabbbd; white-space: normal; }
.basketball-player-table tfoot { font-weight: 700; border-top: 1px solid #68758a; }
.basketball-box-score .detail-table-scroll:focus-visible { outline: 2px solid #bcead3; outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Game Center v2 shell
   Keeps Sports Radar excitement above sport-specific detail navigation.
   -------------------------------------------------------------------------- */

.detail-header h2 {
  margin: 5px 0 12px;
}

.detail-header .detail-watch {
  margin-bottom: 12px;
}

.detail-scoreboard {
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.detail-team {
  grid-template-columns: 34px minmax(0,1fr) minmax(44px,auto);
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
}

.detail-team + .detail-team {
  border-top: 1px solid #263a43;
}

.detail-team img {
  width: 28px;
  height: 28px;
}

.detail-team-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.detail-team-copy strong {
  overflow: hidden;
  color: #f1f5f6;
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-team-copy small {
  color: #8498a1;
  font: 10px ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.detail-team > b {
  font-size: 22px;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 7px 16px;
  margin: 11px 0 0;
  color: #a6b6bd;
  line-height: 1.4;
}

.detail-meta span {
  min-width: 0;
}

.detail-meta strong {
  margin-right: 4px;
  color: #708891;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.detail-freshness {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-left: 2px solid #536e79;
  background: #101b21;
  color: #aebdc3;
  font-size: 10px;
  line-height: 1.45;
}

.detail-radar {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid #2f444e;
  border-radius: 5px;
  background: #111d23;
}

.detail-excitement-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.detail-excitement-score {
  flex: 0 0 auto;
  min-width: 64px;
  padding: 4px 12px 4px 10px;
  border-left: 4px solid hsl(var(--score-hue, 140) 72% 55%);
  color: hsl(var(--score-hue, 140) 88% 64%);
  background: hsl(var(--score-hue, 140) 65% 45% / .07);
  font: 800 34px/1 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  text-align: center;
}

.detail-excitement-copy {
  display: grid;
  gap: 3px;
}

.detail-excitement-copy small {
  color: #728a94;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.detail-excitement-copy strong {
  color: #e3ecef;
  font-size: 13px;
  font-weight: 650;
}

.detail-radar-why {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid #263a43;
}

.detail-radar-why h3 {
  margin: 0 0 7px;
  color: #edf3f5;
  font-size: 13px;
}

.detail-radar .timeline-section {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #263a43;
}

.detail-tab-shell {
  margin-top: 18px;
}

.detail-tabs {
  position: sticky;
  top: -1px;
  z-index: 5;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 0 0 1px;
  border-bottom: 1px solid #30434c;
  background: #152129;
  scrollbar-width: none;
}

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

.detail-tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #879aa2;
  font: 600 11px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

.detail-tab:hover,
.detail-tab:focus-visible {
  color: #d8e3e7;
  outline: 0;
}

.detail-tab:focus-visible {
  box-shadow: inset 0 0 0 1px #4e6874;
}

.detail-tab.active {
  border-bottom-color: #67c28d;
  color: #f1f5f6;
}

.detail-tab-panel {
  padding-top: 4px;
}

.detail-tab-panel[hidden] {
  display: none !important;
}

.detail-tab-panel > .detail-section:first-child {
  margin-top: 10px;
  border-top: 0;
}

.detail-tab-panel .storyline-section + .detail-section {
  margin-top: 15px;
}

@media (max-width: 600px) {
  .detail-panel {
    padding: 13px;
  }

  .detail-team {
    min-height: 54px;
    padding: 9px 10px;
  }

  .detail-team-copy strong {
    font-size: 13px;
  }

  .detail-team > b {
    font-size: 20px;
  }

  .detail-meta {
    display: grid;
    gap: 5px;
  }

  .detail-radar {
    margin-inline: -2px;
    padding: 13px 11px;
  }

  .detail-excitement-score {
    min-width: 58px;
    padding-inline: 9px;
    font-size: 31px;
  }

  .detail-excitement-copy strong {
    font-size: 12px;
  }

  .detail-tab-shell {
    margin-inline: -13px;
  }

  .detail-tabs {
    padding-inline: 7px;
  }

  .detail-tab-panel {
    padding-inline: 13px;
  }

  .detail-tab {
    min-height: 44px;
    padding-inline: 10px;
  }
}

/* --------------------------------------------------------------------------
   Game Center v2 refinement
   -------------------------------------------------------------------------- */

.detail-panel > .dialog-header {
  align-items: center;
  margin-bottom: 10px;
}

.detail-panel > .dialog-header .eyebrow {
  display: none;
}

#game-detail-title {
  margin: 0;
  font-size: 23px;
  line-height: 1.1;
}

.detail-header h2 {
  margin: 4px 0 9px;
  font-size: clamp(22px, 2.5vw, 31px);
  line-height: 1.15;
}

.detail-header .detail-watch {
  min-height: 32px;
  margin: 0 0 10px;
  padding: 5px 9px;
  font-size: 10px;
}

.detail-radar {
  padding: 12px 14px;
}

.detail-radar-why {
  margin-top: 11px;
  padding-top: 10px;
}

.detail-radar .timeline-section {
  margin-top: 12px;
  padding-top: 12px;
}

.detail-why-toggle {
  display: none;
  margin-top: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #94bbcf;
  font: 600 11px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.detail-comparison-row {
  padding-top: 7px;
  padding-bottom: 7px;
}

.detail-table-scroll {
  box-shadow: inset -13px 0 12px -13px rgba(173,206,221,.55);
  scrollbar-color: #46616d #101b21;
}

.box-periods {
  margin: 0 0 10px;
  color: #a8bac2;
  font: 11px ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

@media (max-width: 600px) {
  #game-detail-title {
    font-size: 20px;
  }

  .detail-header h2 {
    font-size: 21px;
  }

  .detail-radar {
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .detail-why-text:not(.expanded) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .detail-why-toggle {
    display: inline-block;
  }
}

/* --------------------------------------------------------------------------
   Responsive Game Center player-stat tables
   Preserve every stat while keeping names readable on narrow screens.
   -------------------------------------------------------------------------- */

.detail-player-team,
.detail-player-group,
.detail-player-scroll {
  min-width: 0;
  max-width: 100%;
}

.detail-player-scroll {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #46616d #101b21;
  box-shadow:
    inset -22px 0 18px -20px rgba(184,215,229,.8);
}

.detail-player-scroll:focus-visible {
  outline: 2px solid #6fa0b6;
  outline-offset: 2px;
}

.detail-player-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}

.detail-player-table th,
.detail-player-table td {
  min-width: 62px;
  padding-inline: 9px;
  white-space: nowrap;
}

.detail-player-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 170px;
  min-width: 150px;
  max-width: 170px;
  padding-left: 8px;
  padding-right: 12px;
  background: #111d23;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: 10px 0 12px -12px rgba(0,0,0,.95);
}

.detail-player-table thead th:first-child {
  z-index: 3;
  background: #15262e;
}

.detail-player-table th:not(:first-child),
.detail-player-table td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 900px) {
  .detail-player-scroll {
    box-shadow:
      inset -16px 0 13px -16px rgba(184,215,229,.42);
  }

  .detail-player-table th,
  .detail-player-table td {
    min-width: 58px;
  }
}

@media (max-width: 600px) {
  .detail-player-group {
    margin-inline: -1px;
  }

  .detail-player-scroll {
    margin-inline: -3px;
    padding-bottom: 4px;
    box-shadow:
      inset -26px 0 18px -21px rgba(184,215,229,.95);
  }

  .detail-player-table {
    font-size: 10.5px;
  }

  .detail-player-table th,
  .detail-player-table td {
    min-width: 56px;
    padding: 7px 7px;
  }

  .detail-player-table th:first-child {
    width: 145px;
    min-width: 132px;
    max-width: 145px;
    padding-left: 7px;
    padding-right: 10px;
    line-height: 1.25;
  }
}

/* --------------------------------------------------------------------------
   Football Game Center: Drives
   -------------------------------------------------------------------------- */

.detail-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.detail-section-heading > span {
  color: #78909c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.detail-drive-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.detail-drive {
  overflow: hidden;
  border: 1px solid #243740;
  border-radius: 10px;
  background: #101a20;
}

.detail-drive.current {
  border-color: #3f6d80;
  box-shadow: inset 3px 0 0 #6ca5bb;
}

.detail-drive > summary {
  display: grid;
  grid-template-columns: minmax(52px,auto) minmax(0,1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 11px 12px;
  cursor: pointer;
  list-style: none;
}

.detail-drive > summary::-webkit-details-marker {
  display: none;
}

.detail-drive > summary::after {
  content: '▾';
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  color: #78909c;
  transition: transform .15s ease;
}

.detail-drive:not([open]) > summary::after {
  transform: rotate(-90deg);
}

.detail-drive-team {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 25px;
  padding: 3px 7px;
  border: 1px solid #344b56;
  border-radius: 6px;
  color: #d6e3e9;
  background: #15242c;
  font: 700 11px ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  letter-spacing: .04em;
}

.detail-drive-result {
  min-width: 0;
  color: #edf5f8;
  font-size: 13px;
  font-weight: 750;
}

.detail-drive-meta {
  grid-column: 2 / 4;
  color: #8298a3;
  font: 10px ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.detail-drive-body {
  padding: 0 12px 12px;
  border-top: 1px solid #21323b;
}

.detail-drive-live {
  display: inline-block;
  margin-top: 10px;
  color: #8fc4d8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.detail-drive-field {
  margin: 9px 0 0;
  color: #9eb0b8;
  font: 10px ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.detail-drive-plays {
  display: grid;
  gap: 0;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.detail-drive-plays li {
  display: grid;
  grid-template-columns: minmax(76px,auto) minmax(0,1fr);
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid #1e2e36;
}

.detail-drive-plays li:first-child {
  border-top: 0;
}

.detail-drive-plays li.scoring .detail-drive-play-text {
  color: #f0f7fa;
  font-weight: 700;
}

.detail-drive-play-meta {
  color: #718a96;
  font: 10px ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  white-space: nowrap;
}

.detail-drive-play-text {
  color: #b7c6cd;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 600px) {
  .detail-drive > summary {
    grid-template-columns: auto minmax(0,1fr) auto;
  }

  .detail-drive-meta {
    grid-column: 1 / 4;
  }

  .detail-drive-plays li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Basketball box score expansion */
.basketball-player-table {
  min-width: 960px;
}

.basketball-player-table .box-group-row th {
  position: static;
  left: auto;
  width: auto;
  padding: 7px 8px 5px;
  background: #15252c;
  color: #9fb8c3;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
}

.basketball-player-table .box-dnp-group th {
  color: #879aa3;
}

.basketball-player-table .box-player-status.box-ejected {
  color: #f29a91;
  font-weight: 600;
}

.basketball-player-table tbody tr:not(.box-group-row):hover td,
.basketball-player-table tbody tr:not(.box-group-row):hover > th {
  background-color: rgba(119,175,213,.06);
}

@media (max-width: 600px) {
  .basketball-player-table {
    min-width: 900px;
  }
}

/* MATERIAL 3-INSPIRED SPORTS RADAR REFRESH
   Modernizes the surrounding interface while deliberately leaving the
   excitement score module and its dynamic color behavior untouched. */

:root {
  --md-bg: #0b1114;
  --md-surface: #11181c;
  --md-surface-2: #151e23;
  --md-surface-3: #1b262c;
  --md-surface-4: #223038;
  --md-outline: #34454e;
  --md-outline-soft: rgba(159, 181, 191, .16);
  --md-text: #edf3f5;
  --md-text-2: #c5d0d5;
  --md-text-3: #8fa1aa;
  --md-primary: #9bd9c8;
  --md-primary-container: #173b34;
  --md-on-primary-container: #c7f5e7;
  --md-secondary-container: #26353e;
  --md-on-secondary-container: #d7e8ef;
  --md-danger-container: #492323;
  --md-elevation-1: 0 1px 2px rgba(0,0,0,.26), 0 1px 4px rgba(0,0,0,.16);
  --md-elevation-2: 0 2px 6px rgba(0,0,0,.26), 0 6px 16px rgba(0,0,0,.16);
  --md-elevation-3: 0 8px 24px rgba(0,0,0,.30), 0 2px 8px rgba(0,0,0,.20);
  --md-radius-xs: 8px;
  --md-radius-sm: 12px;
  --md-radius-md: 16px;
  --md-radius-lg: 22px;
  --md-radius-xl: 28px;
}

html {
  background: var(--md-bg);
}

body {
  color: var(--md-text);
  background: var(--md-bg);
  background-image: none;
  background-attachment: scroll;
}

.app-shell {
  max-width: 1480px;
}

/* --------------------------------------------------------------------------
   Top app bar
   -------------------------------------------------------------------------- */

.topbar {
  min-height: 72px;
  height: auto;
  padding-block: 10px;
  background: rgba(17, 24, 28, .94);
  border-bottom: 1px solid var(--md-outline-soft);
  box-shadow: 0 1px 0 rgba(255,255,255,.02);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  text-shadow: none;
}

.brand-logo,
.brand-mark {
  border: 0;
  border-radius: var(--md-radius-sm);
  background: var(--md-surface-3);
  box-shadow: none;
}

.main-nav {
  gap: 8px;
}

.nav-link {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 20px;
  color: var(--md-text-3);
  text-shadow: none;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.nav-link:hover {
  color: var(--md-text);
  background: rgba(255,255,255,.045);
}

.nav-link.active {
  color: var(--md-on-primary-container);
  background: var(--md-primary-container);
}

.nav-link.active::after {
  display: none;
}

.top-actions {
  gap: 8px;
}

/* --------------------------------------------------------------------------
   Page controls
   -------------------------------------------------------------------------- */

.control-row {
  padding-top: 26px;
  padding-bottom: 16px;
}

.section-label {
  color: var(--md-text);
  text-shadow: none;
  font-weight: 650;
  letter-spacing: -.025em;
}

.live-count,
.status-completed,
.favorite-tag,
.watch-indicator {
  border: 0;
  border-radius: 999px;
  box-shadow: none;
}

.live-count {
  color: var(--md-on-primary-container);
  background: var(--md-primary-container);
}

.segmented {
  gap: 2px;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: var(--md-surface-3);
  box-shadow: none;
}

.seg {
  min-height: 36px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  color: var(--md-text-3);
  text-shadow: none;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease;
}

.seg:hover {
  color: var(--md-text-2);
  background: rgba(255,255,255,.045);
}

.seg.active {
  color: var(--md-on-primary-container);
  background: var(--md-primary-container);
  border: 0;
  box-shadow: none;
  text-shadow: none;
}

.seg span,
.seg.active span {
  color: inherit;
  opacity: .72;
}

.outline-button,
.install-button,
.data-status button,
.favorite-manual-button,
.detail-watch,
.alert-controls button,
.primary-button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--md-secondary-container);
  color: var(--md-on-secondary-container);
  box-shadow: none;
  text-shadow: none;
  transition:
    background-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.outline-button:hover,
.install-button:hover,
.data-status button:hover,
.favorite-manual-button:hover,
.detail-watch:hover,
.alert-controls button:hover,
.primary-button:hover {
  background: var(--md-surface-4);
  box-shadow: var(--md-elevation-1);
}

.outline-button:active,
.install-button:active,
.data-status button:active,
.favorite-manual-button:active,
.detail-watch:active,
.alert-controls button:active,
.primary-button:active {
  transform: none;
  box-shadow: none;
}

.sport-filter {
  gap: 8px;
  padding-bottom: 18px;
}

.sport-chip,
.sport-chip:not(.fcs-toggle),
.fcs-toggle {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--md-outline);
  border-radius: 999px;
  background: transparent;
  color: var(--md-text-2);
  box-shadow: none;
  text-shadow: none;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.sport-chip:hover,
.sport-chip:not(.fcs-toggle):hover,
.fcs-toggle:hover {
  background: rgba(255,255,255,.04);
  border-color: #4b626d;
}

.sport-chip.active,
.sport-chip.active:not(.fcs-toggle),
.fcs-toggle.active {
  border-color: transparent;
  background: var(--md-primary-container);
  color: var(--md-on-primary-container);
  box-shadow: none;
}

.notice {
  border: 0;
  border-radius: var(--md-radius-md);
  background: #173026;
  color: #d3ecdf;
  box-shadow: none;
}

.data-status {
  color: var(--md-text-3);
}

/* --------------------------------------------------------------------------
   Radar game cards
   -------------------------------------------------------------------------- */

.game-list {
  gap: 12px;
}

.game-date-divider {
  min-height: 34px;
  margin-top: 18px;
  padding: 7px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--md-text-3);
  box-shadow: none;
  backdrop-filter: none;
}

.game-date-divider i {
  background: var(--md-outline-soft);
}

.game-card,
.game-card.favorite,
.game-card.completed-card {
  overflow: visible;
  border: 1px solid var(--md-outline-soft);
  border-radius: var(--md-radius-md);
  background: var(--md-surface);
  box-shadow: none;
  text-shadow: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.game-card:hover {
  transform: translateY(-1px);
  border-color: rgba(159,181,191,.28);
  background: var(--md-surface-2);
  box-shadow: var(--md-elevation-2);
}

.game-card:active {
  transform: translateY(0);
  box-shadow: var(--md-elevation-1);
}

.game-card.favorite {
  border-color: rgba(126, 194, 224, .28);
  background: #121d22;
}

.game-card.watched {
  border-color: rgba(155,217,200,.34);
}

.game-card.favorite::before {
  top: 7px;
  color: #9fcce0;
  text-shadow: none;
}

.sport-icon {
  border: 0;
  border-radius: 50%;
  background: var(--md-surface-3);
  box-shadow: none;
}

.team-row {
  text-shadow: none;
}

.team-name-text,
.team-score {
  color: var(--md-text);
}

.team-record,
.team-rank,
.match-meta {
  color: var(--md-text-3);
  text-shadow: none;
}

.status-live {
  color: #ff9a91;
}

.status-upcoming {
  color: #9bcab8;
}

.status-completed {
  padding: 3px 8px;
  color: var(--md-text-3);
  background: var(--md-surface-3);
}

.live-situation {
  color: #b7d9e8;
}

.game-context {
  color: var(--md-text-3);
}

.game-context strong {
  color: var(--md-text-2);
}

.stats-cue {
  color: #9fcce0;
}

/* Intentionally no .score-circle, .score-trend, or excitement color overrides.
   Their existing dynamic hue behavior is a protected Sports Radar signature. */

/* --------------------------------------------------------------------------
   Dialogs and settings
   -------------------------------------------------------------------------- */

dialog,
.detail-panel {
  border: 1px solid var(--md-outline-soft);
  border-radius: var(--md-radius-xl);
  background: var(--md-surface);
  box-shadow: var(--md-elevation-3);
}

dialog::backdrop,
.detail-overlay {
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.dialog-header h2,
.detail-header h2 {
  color: var(--md-text);
}

.close-dialog,
.detail-close {
  border-radius: 50%;
  background: transparent;
  transition: background-color 150ms ease;
}

.close-dialog:hover,
.detail-close:hover {
  background: rgba(255,255,255,.06);
}

.favorite-picker,
.detail-stat-team,
.detail-player-team {
  border: 1px solid var(--md-outline-soft);
  border-radius: var(--md-radius-md);
  background: var(--md-surface-2);
}

.favorite-picker select,
.favorite-picker input,
.alert-controls input {
  min-height: 42px;
  border: 1px solid var(--md-outline);
  border-radius: var(--md-radius-sm);
  background: var(--md-surface);
  color: var(--md-text);
  box-shadow: none;
}

.favorite-result {
  border: 0;
  border-radius: var(--md-radius-sm);
  background: var(--md-surface-2);
}

.favorite-result:hover,
.favorite-result:focus-visible {
  background: var(--md-surface-3);
}

/* --------------------------------------------------------------------------
   Game Center
   -------------------------------------------------------------------------- */

.detail-panel {
  width: min(1040px, 100%);
  padding: 24px;
}

.detail-scoreboard {
  border: 0;
  border-radius: var(--md-radius-lg);
  background: var(--md-surface-2);
  box-shadow: none;
}

.detail-meta {
  color: var(--md-text-3);
}

.detail-section {
  border-top: 1px solid var(--md-outline-soft);
}

.detail-section h3 {
  color: var(--md-text);
  letter-spacing: -.015em;
}

.detail-moment {
  border: 0;
  border-radius: var(--md-radius-md);
  background: var(--md-secondary-container);
  color: var(--md-on-secondary-container);
  box-shadow: none;
}

.detail-tab-shell {
  margin-top: 20px;
}

.detail-tabs {
  top: -1px;
  gap: 4px;
  padding: 6px;
  border: 0;
  border-radius: var(--md-radius-md);
  background: rgba(21, 30, 35, .96);
  box-shadow: 0 1px 0 var(--md-outline-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.detail-tab {
  min-height: 38px;
  padding-inline: 14px;
  border: 0;
  border-radius: 999px;
  color: var(--md-text-3);
  background: transparent;
  transition:
    background-color 150ms ease,
    color 150ms ease;
}

.detail-tab:hover {
  color: var(--md-text-2);
  background: rgba(255,255,255,.045);
}

.detail-tab[aria-selected="true"],
.detail-tab.active {
  color: var(--md-on-primary-container);
  background: var(--md-primary-container);
  box-shadow: none;
}

.detail-tab-panel {
  padding-top: 8px;
}

.detail-stat-grid,
.detail-player-grid {
  gap: 12px;
}

.detail-comparison-row {
  padding-block: 9px;
}

.detail-comparison-values {
  color: var(--md-text-2);
}

.detail-comparison-values span:nth-child(2) {
  color: var(--md-text-3);
}

.detail-comparison-bars > span {
  background: var(--md-surface-4);
}

.timeline-chart {
  border: 1px solid var(--md-outline-soft);
  border-radius: var(--md-radius-md);
  background: #0d1519;
  box-shadow: none;
}

.timeline-note,
.timeline-moments,
.detail-plays {
  color: var(--md-text-2);
}

.timeline-ratings { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 12px 0; }
.timeline-ratings > div { display: grid; align-content: start; gap: 4px; padding: 12px; border: 1px solid var(--md-outline-soft); border-radius: 10px; }
.timeline-rating-current { background: #183331; border-color: #447d74 !important; }
.timeline-rating-last { background: var(--md-surface-2); }
.timeline-ratings span { font-size: 13px; line-height: 1.4; color: var(--md-text-2); }
.timeline-ratings strong { font-size: 28px; line-height: 1.2; color: var(--md-text); }
.timeline-ratings small { color: var(--md-text-2); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.timeline-rating-current strong { color: #b8f3e4; }

/* Game Center: explanation first, exact arithmetic second. */
.detail-radar-why .detail-why-text { display:block; overflow:visible; -webkit-line-clamp:unset; max-height:none; font-size:15px; line-height:1.6; }
.score-calculation { margin-top:16px; padding-top:12px; border-top:1px solid var(--md-outline-soft); color:var(--md-text-2); font-size:12px; font-variant-numeric:tabular-nums; }
.score-calculation dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 26px; margin:0; }
.score-calculation-row { display:flex; justify-content:space-between; align-items:baseline; gap:14px; padding:5px 0; }
.score-calculation dt { min-width:0; line-height:1.45; }
.score-calculation dd { margin:0; color:var(--md-text); text-align:right; overflow-wrap:anywhere; max-width:54%; }
.score-calculation-row[data-kind="rounding"], .score-calculation-row[data-kind="cap"], .score-calculation-row[data-kind="floor"] { color:#abc4d5; }
.score-calculation-total { display:flex; justify-content:space-between; margin-top:9px; padding-top:9px; border-top:1px solid var(--md-outline-soft); font-size:13px; }
.score-calculation-total strong { color:#b8f3e4; font-size:16px; }
.score-calculation-unavailable { color:var(--md-text-3); font-size:12px; line-height:1.5; }
.timeline-heading { display:flex; align-items:baseline; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.timeline-heading h3 { margin-bottom:0; }
.timeline-key { display:flex; align-items:center; gap:6px; font-size:11px; color:var(--md-text-2); }
.timeline-key i { width:18px; height:2px; background:#82bdff; }
.timeline-section .timeline-ratings { display:flex; flex-wrap:wrap; gap:12px 28px; margin:14px 0 8px; }
.timeline-section .timeline-ratings > div { display:grid; grid-template-columns:auto auto; align-items:baseline; gap:1px 10px; padding:0; border:0!important; border-radius:0; background:none; }
.timeline-section .timeline-ratings strong { font-size:23px; grid-column:2; grid-row:1 / span 2; }
.timeline-section .timeline-ratings span { font-size:11px; }
.timeline-section .timeline-ratings small { font-size:11px; grid-column:1; }
.timeline-controls { display:flex; gap:4px; margin:10px 0 0; }
.timeline-controls button { min-height:36px; padding:7px 12px; background:transparent; color:var(--md-text-2); border:1px solid transparent; border-radius:7px; font:inherit; font-size:12px; cursor:pointer; }
.timeline-controls button[aria-pressed="true"] { background:#213744; color:#cce6ff; border-color:#36596e; }
.timeline-controls button:focus-visible { outline:2px solid #82bdff; outline-offset:2px; }
.timeline-section .timeline-chart { display:block; width:100%; height:auto; min-height:0; margin:4px 0 0; overflow:visible; }
.timeline-section .timeline-chart .timeline-line { fill:none; stroke:#82bdff; stroke-width:1.6; stroke-linejoin:miter; vector-effect:non-scaling-stroke; }
.timeline-section .timeline-chart .timeline-reference { stroke:#31414d; stroke-width:.6; }
.timeline-section .timeline-chart text { fill:#a9bac9; font-size:11px; }
.timeline-section .timeline-chart circle { fill:#b5d7ff; stroke:none; }
.timeline-section .timeline-chart .timeline-hit-target { fill:transparent; stroke:none; }
.timeline-section .timeline-chart .timeline-point:focus-visible { outline:none; }
.timeline-section .timeline-chart .timeline-point:focus-visible circle:not(.timeline-hit-target),
.timeline-section .timeline-chart .timeline-point:hover circle:not(.timeline-hit-target) { stroke:#fff; stroke-width:2; }
.timeline-event-strip rect { fill:#15232e; stroke:none; }
.timeline-section .timeline-event-strip text { fill:#93a9b9; font-size:9px; letter-spacing:1px; }
.timeline-event-marker path { fill:#d2b880; stroke:#15232e; stroke-width:1; }
.timeline-event-marker:focus-visible path { stroke:white; stroke-width:2; }
.timeline-section .timeline-note { margin:5px 0 10px; font-size:11px; line-height:1.5; }
.timeline-observations { margin-top:8px; color:var(--md-text-2); font-size:12px; }
.timeline-observations summary { cursor:pointer; min-height:44px; padding:12px 0; }
.timeline-observations summary:focus-visible { outline:2px solid #82bdff; }
.timeline-table-scroll { max-height:300px; overflow:auto; }
.timeline-observations table { width:100%; border-collapse:collapse; text-align:left; font-variant-numeric:tabular-nums; }
.timeline-observations th,.timeline-observations td { padding:7px; border-bottom:1px solid var(--md-outline-soft); vertical-align:top; }
.timeline-observations small { font-size:10px; overflow-wrap:anywhere; }
@media (max-width:480px) {
  .score-calculation dl { grid-template-columns:minmax(0,1fr); }
  .score-calculation { font-size:12px; }
  .score-calculation-row { padding:4px 0; }
  .timeline-section .timeline-ratings { gap:10px 22px; }
  .timeline-section .timeline-chart text { font-size:13px; }
  .timeline-section .timeline-event-strip text { font-size:11px; }
  .timeline-controls button { min-height:44px; padding:8px 10px; }
}
.timeline-history { margin-top: 12px; border-top: 1px solid var(--md-outline-soft); font-size: 13px; line-height: 1.5; color: var(--md-text-2); }
.timeline-history summary { cursor: pointer; padding: 12px 4px; min-height: 44px; box-sizing: border-box; }
.timeline-history summary:focus-visible { outline: 2px solid #b8f3e4; outline-offset: 2px; border-radius: 4px; }
.timeline-history summary span { color: var(--md-text-3); }
.timeline-history > ul { list-style: none; padding: 0; }
.timeline-history-group { border-left: 3px solid #647f8b; padding: 4px 12px; margin: 12px 0; overflow-wrap: anywhere; }
.timeline-history-group[data-kind="partial"], .timeline-history-group[data-kind="invalid"] { border-color: #c99b56; }
.timeline-history-group[data-kind="matching"] { border-color: #447d74; }
.timeline-history-group > strong { color: var(--md-text); }
.timeline-history-group p { margin: 4px 0; }
.timeline-history-group ol { padding-left: 20px; }
.timeline-history-group li { padding: 4px 0; }
.timeline-chart .timeline-event-marker circle { fill: #0d1519; stroke: #98acb7; }
@media (max-width: 480px) {
  .timeline-ratings { gap: 8px; }
  .timeline-ratings > div { padding: 10px; }
  .timeline-history { font-size: 14px; }
}

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

.detail-table-scroll {
  border-radius: var(--md-radius-sm);
}

.detail-player-table,
.detail-scoring table {
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
}

.detail-player-table th,
.detail-player-table td,
.detail-scoring th,
.detail-scoring td {
  border-bottom-color: var(--md-outline-soft);
}

.detail-player-table thead th,
.detail-scoring thead th {
  color: var(--md-text-3);
  background: var(--md-surface-2);
}

.detail-player-table th:first-child,
.basketball-player-table th:first-child {
  background: var(--md-surface-2);
}

.detail-player-table tbody tr:not(.box-group-row):hover td,
.detail-player-table tbody tr:not(.box-group-row):hover > th {
  background-color: rgba(255,255,255,.035);
}

.basketball-player-table .box-group-row th {
  background: var(--md-surface-3);
  color: #a9bec7;
}

.detail-player-table tfoot,
.basketball-player-table tfoot {
  border-top-color: var(--md-outline);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  margin-top: 12px;
  border-top: 1px solid var(--md-outline-soft);
  color: var(--md-text-3);
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   Interaction polish
   -------------------------------------------------------------------------- */

button,
a,
select,
input {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
.detail-table-scroll:focus-visible {
  outline: 2px solid #9bd9c8;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 800px) {
  .app-shell {
    padding-inline: 14px;
  }

  .topbar {
    min-height: 64px;
    padding-block: 8px;
  }

  .control-row {
    padding-top: 20px;
  }

  .game-list {
    gap: 9px;
  }

  .game-card,
  .game-card.favorite,
  .game-card.completed-card {
    border-radius: var(--md-radius-sm);
  }

  .detail-panel {
    padding: 16px;
    border-radius: var(--md-radius-lg);
  }

  .detail-tabs {
    border-radius: var(--md-radius-sm);
  }
}

@media (max-width: 460px) {
  .app-shell {
    padding-inline: 10px;
  }

  .nav-link {
    padding-inline: 10px;
  }

  .seg {
    padding-inline: 10px;
  }

  .sport-chip,
  .sport-chip:not(.fcs-toggle),
  .fcs-toggle {
    padding-inline: 12px;
  }

  .detail-panel {
    padding: 13px;
    border-radius: var(--md-radius-md);
  }
}

/* GAME CENTER OPEN MOTION
   Fast Material-style entrance so details feel responsive rather than popping in. */

@keyframes detail-overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes detail-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.detail-overlay:not([hidden]) {
  animation: detail-overlay-in 150ms ease-out both;
}

.detail-overlay:not([hidden]) .detail-panel {
  transform-origin: 50% 45%;
  animation: detail-panel-in 190ms cubic-bezier(.2, 0, 0, 1) both;
}

.game-card:active {
  transform: scale(.995);
}

@media (prefers-reduced-motion: reduce) {
  .detail-overlay:not([hidden]),
  .detail-overlay:not([hidden]) .detail-panel {
    animation: none !important;
  }

  .game-card:active {
    transform: none;
  }
}

/* GLOBAL MATERIAL SEARCH */

.search-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: var(--md-secondary-container, #26353e);
  color: var(--md-on-secondary-container, #d7e8ef);
  font: 600 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  cursor: pointer;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

.search-button:hover {
  background: var(--md-surface-4, #223038);
  box-shadow: var(--md-elevation-1, 0 1px 4px rgba(0,0,0,.2));
}

.search-button svg,
.search-field svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.search-dialog {
  width: min(720px, calc(100vw - 24px));
  max-height: min(760px, calc(100dvh - 24px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--md-outline-soft, rgba(159,181,191,.16));
  border-radius: var(--md-radius-xl, 28px);
  background: var(--md-surface, #11181c);
  color: var(--md-text, #edf3f5);
  box-shadow: var(--md-elevation-3, 0 8px 24px rgba(0,0,0,.3));
}

.search-dialog::backdrop {
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.search-dialog[open] {
  animation: search-dialog-in 180ms cubic-bezier(.2,0,0,1) both;
}

@keyframes search-dialog-in {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.search-dialog-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 10px;
}

.search-field {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 14px;
  border-radius: 27px;
  background: var(--md-surface-3, #1b262c);
  color: var(--md-text-3, #8fa1aa);
}

.search-field:focus-within {
  box-shadow: inset 0 0 0 2px rgba(155,217,200,.7);
  color: var(--md-primary, #9bd9c8);
}

.search-field input {
  flex: 1 1 auto;
  min-width: 0;
  height: 50px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--md-text, #edf3f5);
  font: 500 17px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.search-field input::placeholder {
  color: var(--md-text-3, #8fa1aa);
}

.search-field button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--md-text-3, #8fa1aa);
  font-size: 22px;
  cursor: pointer;
}

.search-close {
  min-width: auto;
  padding: 9px 10px;
  color: var(--md-primary, #9bd9c8);
  font-size: 12px;
  font-weight: 650;
}

.search-meta {
  margin: 0;
  padding: 0 20px 12px;
  color: var(--md-text-3, #8fa1aa);
  font-size: 12px;
  line-height: 1.4;
}

.search-results {
  max-height: calc(100dvh - 150px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 10px 14px;
}

.search-section + .search-section {
  margin-top: 12px;
}

.search-section h3 {
  margin: 0;
  padding: 8px 10px 6px;
  color: var(--md-text-3, #8fa1aa);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.search-result-list {
  display: grid;
  gap: 2px;
}

.search-result {
  width: 100%;
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--md-radius-md, 16px);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.search-result:hover,
.search-result:focus-visible {
  background: rgba(255,255,255,.055);
}

.search-result-leading {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--md-surface-3, #1b262c);
  overflow: hidden;
}

.search-result-leading img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.search-team-logo img {
  width: 32px;
  height: 32px;
}

.search-result-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.search-result-copy strong {
  overflow: hidden;
  color: var(--md-text, #edf3f5);
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-copy span {
  overflow: hidden;
  color: var(--md-text-3, #8fa1aa);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-rating {
  min-width: 54px;
  display: grid;
  justify-items: end;
  gap: 2px;
}

.search-result-rating small {
  color: var(--md-text-3, #8fa1aa);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.search-result-rating b {
  color: var(--md-text, #edf3f5);
  font: 700 19px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.search-result-arrow {
  color: var(--md-text-3, #8fa1aa);
  font-size: 24px;
}

.search-empty {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 48px 20px;
  color: var(--md-text-3, #8fa1aa);
  text-align: center;
}

.search-empty strong {
  color: var(--md-text-2, #c5d0d5);
}

@media (max-width: 800px) {
  .search-button {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .search-button span {
    display: none;
  }

  .search-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: var(--md-radius-lg, 22px);
  }

  .search-dialog-header {
    padding: 10px 10px 8px;
  }

  .search-results {
    max-height: calc(100dvh - 128px);
    padding-inline: 6px;
  }
}

@media (max-width: 460px) {
  .search-close {
    padding-inline: 6px;
  }

  .search-field {
    min-height: 50px;
  }

  .search-field input {
    height: 46px;
    font-size: 16px;
  }

  .search-result {
    grid-template-columns: 38px minmax(0,1fr) auto;
    gap: 9px;
    padding-inline: 9px;
  }

  .search-result-leading {
    width: 36px;
    height: 36px;
  }

  .search-result-rating {
    min-width: 42px;
  }

  .search-result-rating small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-dialog[open] {
    animation: none !important;
  }
}

/* MATERIAL TEAM PAGES V2 */

body.team-page-open .control-row,
body.team-page-open .sport-chip,
body.team-page-open #data-status {
  display: none !important;
}

.team-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 0 28px;
}

.team-back-button {
  min-height: 40px;
  margin: 0 0 12px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--md-primary, #9bd9c8);
  font: 650 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}

.team-back-button:hover {
  background: rgba(255,255,255,.055);
}

.team-hero {
  display: grid;
  grid-template-columns: 104px minmax(0,1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 26px;
  border: 1px solid var(--md-outline-soft, rgba(159,181,191,.16));
  border-radius: var(--md-radius-xl, 28px);
  background: var(--md-surface-2, #151f24);
  box-shadow: var(--md-elevation-1, 0 1px 4px rgba(0,0,0,.2));
}

.team-hero-logo {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 26px;
  background: var(--md-surface-3, #1b262c);
  color: var(--md-primary, #9bd9c8);
  font-size: 40px;
}

.team-hero-logo img {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.team-hero-copy {
  min-width: 0;
}

.team-hero-copy .eyebrow,
.team-section-heading .eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--md-text-3, #8fa1aa);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.team-hero-copy h1 {
  margin: 0;
  color: var(--md-text, #edf3f5);
  font-size: clamp(28px,4vw,42px);
  line-height: 1.05;
  letter-spacing: -.03em;
}

.team-hero-copy > p {
  margin: 12px 0 0;
  color: var(--md-text-3, #8fa1aa);
  font-size: 12px;
  line-height: 1.45;
}

.team-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 15px;
}

.team-hero-meta > span {
  display: grid;
  gap: 2px;
}

.team-hero-meta strong {
  color: var(--md-text, #edf3f5);
  font-size: 18px;
  font-weight: 720;
}

.team-hero-meta small {
  color: var(--md-text-3, #8fa1aa);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.team-favorite-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--md-outline-soft, rgba(159,181,191,.2));
  border-radius: 999px;
  background: var(--md-surface-3, #1b262c);
  color: var(--md-text-2, #c5d0d5);
  font: 650 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}

.team-favorite-button.active {
  border-color: rgba(155,217,200,.36);
  background: var(--md-primary-container, #193b34);
  color: var(--md-on-primary-container, #c9f4e8);
}

.team-tabs {
  display: flex;
  gap: 4px;
  margin-top: 18px;
  padding: 5px;
  border-radius: 999px;
  background: var(--md-surface-2, #151f24);
  width: fit-content;
}

.team-tab {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--md-text-3, #8fa1aa);
  font: 650 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}

.team-tab.active {
  background: var(--md-primary-container, #193b34);
  color: var(--md-on-primary-container, #c9f4e8);
}

.team-tab-content {
  margin-top: 18px;
}

.team-data-loading,
.team-data-warning {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: var(--md-radius-sm, 12px);
  color: var(--md-text-3, #8fa1aa);
  background: var(--md-surface-2, #151f24);
  font-size: 11px;
  line-height: 1.4;
}

.team-data-warning {
  color: #d9c4a6;
}

.team-page-state {
  display: grid;
  gap: 8px;
  padding: 30px;
  border: 1px solid var(--md-outline-soft, rgba(159,181,191,.16));
  border-radius: var(--md-radius-xl, 28px);
  background: var(--md-surface-2, #151f24);
}

.team-page-state.compact {
  padding: 20px;
  border-radius: var(--md-radius-md, 16px);
}

.team-page-state h1 {
  margin: 4px 0 6px;
  color: var(--md-text, #edf3f5);
}

.team-page-state p,
.team-page-state span {
  margin: 0;
  color: var(--md-text-3, #8fa1aa);
}

.team-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 11px;
}

.team-section-heading h2 {
  margin: 0;
  color: var(--md-text, #edf3f5);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.015em;
}

.team-section-heading > span {
  color: var(--md-text-3, #8fa1aa);
  font-size: 11px;
}

.team-spotlights,
.team-leaders-section,
.team-schedule-section {
  margin-top: 24px;
}

.team-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}

.team-spotlight-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  grid-template-areas:
    "label signal"
    "matchup signal"
    "result signal";
  gap: 8px 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--md-outline-soft, rgba(159,181,191,.16));
  border-radius: var(--md-radius-lg, 22px);
  background: var(--md-surface-2, #151f24);
  color: inherit;
  text-align: left;
}

button.team-spotlight-card {
  width: 100%;
  cursor: pointer;
}

.team-spotlight-card.is-clickable:hover,
.team-spotlight-card.is-clickable:focus-visible {
  background: var(--md-surface-3, #1b262c);
}

.team-spotlight-label {
  grid-area: label;
  color: var(--md-text-3, #8fa1aa);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.team-spotlight-matchup {
  grid-area: matchup;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.team-spotlight-matchup img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.team-spotlight-matchup > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.team-spotlight-matchup small {
  color: var(--md-text-3, #8fa1aa);
  font-size: 10px;
}

.team-spotlight-matchup strong {
  overflow: hidden;
  color: var(--md-text, #edf3f5);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-spotlight-result {
  grid-area: result;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px 10px;
}

.team-spotlight-result > strong {
  color: var(--md-text-2, #c5d0d5);
  font-size: 14px;
}

.team-spotlight-result > small {
  color: var(--md-text-3, #8fa1aa);
  font-size: 10px;
}

.team-signal,
.team-signal-pending {
  grid-area: signal;
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 64px;
}

.team-signal > small,
.team-signal-pending > small {
  color: var(--md-text-3, #8fa1aa);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.team-signal-pending > span {
  color: var(--md-text-3, #8fa1aa);
  font-size: 10px;
  font-weight: 650;
}

.team-leader-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
}

.team-leader-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--md-outline-soft, rgba(159,181,191,.16));
  border-radius: var(--md-radius-md, 16px);
  background: var(--md-surface-2, #151f24);
}

.team-leader-headshot,
.team-leader-placeholder {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--md-surface-3, #1b262c);
}

.team-leader-placeholder {
  display: grid;
  place-items: center;
  color: var(--md-text-3, #8fa1aa);
  font-size: 18px;
  font-weight: 700;
}

.team-leader-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.team-leader-copy > span {
  color: var(--md-text-3, #8fa1aa);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.team-leader-copy strong {
  overflow: hidden;
  color: var(--md-text, #edf3f5);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-leader-copy small {
  color: var(--md-text-3, #8fa1aa);
  font-size: 9px;
}

.team-leader-value {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.team-leader-value b {
  color: var(--md-text, #edf3f5);
  font: 760 18px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.team-leader-value small {
  color: var(--md-text-3, #8fa1aa);
  font-size: 8px;
  font-weight: 700;
}

.team-schedule-groups {
  display: grid;
  gap: 22px;
}

.team-schedule-month h3 {
  margin: 0 0 8px 4px;
  color: var(--md-text-3, #8fa1aa);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.team-schedule-list {
  overflow: hidden;
  border: 1px solid var(--md-outline-soft, rgba(159,181,191,.16));
  border-radius: var(--md-radius-lg, 22px);
  background: var(--md-surface-2, #151f24);
}

.team-schedule-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 68px minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 10px 15px;
}

.team-schedule-row + .team-schedule-row {
  border-top: 1px solid var(--md-outline-soft, rgba(159,181,191,.12));
}

.team-schedule-date {
  display: grid;
  gap: 2px;
}

.team-schedule-date b {
  color: var(--md-text-2, #c5d0d5);
  font-size: 12px;
}

.team-schedule-date small {
  color: var(--md-text-3, #8fa1aa);
  font-size: 9px;
}

.team-schedule-opponent {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.team-schedule-opponent img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.team-schedule-opponent > span {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 1px 5px;
  align-items: baseline;
}

.team-schedule-opponent small {
  color: var(--md-text-3, #8fa1aa);
  font-size: 10px;
}

.team-schedule-opponent strong {
  overflow: hidden;
  color: var(--md-text, #edf3f5);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-schedule-opponent span span {
  grid-column: 1 / -1;
  overflow: hidden;
  color: var(--md-text-3, #8fa1aa);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-schedule-result {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 7px;
  white-space: nowrap;
}

.team-schedule-result b {
  font-size: 11px;
}

.team-schedule-result.win b {
  color: #9bd9c8;
}

.team-schedule-result.loss b {
  color: #d8a09a;
}

.team-schedule-result.live b {
  color: #f2bb73;
}

.team-schedule-result strong {
  color: var(--md-text-2, #c5d0d5);
  font: 700 13px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.team-spotlight-empty {
  grid-template-areas:
    "label label"
    "matchup matchup"
    "result result";
}

.team-spotlight-empty > strong {
  grid-area: matchup;
  color: var(--md-text-2, #c5d0d5);
}

.team-spotlight-empty > span:last-child {
  grid-area: result;
  color: var(--md-text-3, #8fa1aa);
  font-size: 11px;
}

@media (max-width: 980px) {
  .team-leader-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 760px) {
  .team-page {
    padding-top: 10px;
  }

  .team-hero {
    grid-template-columns: 72px minmax(0,1fr);
    gap: 14px;
    padding: 18px;
    border-radius: var(--md-radius-lg, 22px);
  }

  .team-hero-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .team-hero-logo img {
    width: 58px;
    height: 58px;
  }

  .team-favorite-button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .team-spotlight-grid {
    grid-template-columns: 1fr;
  }

  .team-tabs {
    width: 100%;
  }

  .team-tab {
    flex: 1 1 0;
  }
}

@media (max-width: 560px) {
  .team-leader-grid {
    grid-template-columns: 1fr;
  }

  .team-schedule-row {
    grid-template-columns: 54px minmax(0,1fr) auto;
    gap: 9px;
    min-height: 66px;
    padding: 9px 10px;
  }

  .team-schedule-opponent img {
    width: 30px;
    height: 30px;
  }

  .team-schedule-opponent strong {
    font-size: 12px;
  }

  .team-spotlight-card {
    padding: 15px;
  }

  .team-hero-copy h1 {
    font-size: clamp(24px,8vw,34px);
  }
}


/* TEAM PAGE V3: STANDINGS + TEAM NAVIGATION */
.detail-team-link {
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.detail-team-link:hover,
.detail-team-link:focus-visible {
  background: rgba(155,217,200,.06);
  outline: 1px solid rgba(155,217,200,.28);
  outline-offset: 3px;
}

.detail-team-link:hover .detail-team-copy strong,
.detail-team-link:focus-visible .detail-team-copy strong {
  color: var(--md-on-primary-container, #c9f4e8);
}

.team-standings-section {
  display: grid;
  gap: 18px;
}

.team-standing-summary {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}

.team-standing-card {
  display: grid;
  gap: 5px;
  min-height: 112px;
  padding: 18px 20px;
  border: 1px solid var(--md-outline-soft, rgba(159,181,191,.16));
  border-radius: var(--md-radius-lg, 20px);
  background: var(--md-surface-2, #151f24);
}

.team-standing-card.playoff {
  border-color: rgba(155,217,200,.26);
  background: linear-gradient(145deg,rgba(25,59,52,.62),var(--md-surface-2,#151f24));
}

.team-standing-card small,
.team-standing-head,
.team-standing-row small {
  color: var(--md-text-3, #8fa1aa);
  font: 600 10px var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.team-standing-card strong {
  color: var(--md-text, #edf3f5);
  font-size: 20px;
}

.team-standing-card span {
  color: var(--md-text-2, #bac8ce);
  font-size: 13px;
}

.team-standing-table {
  overflow: hidden;
  border: 1px solid var(--md-outline-soft, rgba(159,181,191,.16));
  border-radius: var(--md-radius-lg, 20px);
  background: var(--md-surface-2, #151f24);
}

.team-standing-head,
.team-standing-row {
  display: grid;
  grid-template-columns: 58px minmax(0,1fr) 105px 82px;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 18px;
}

.team-standing-head {
  min-height: 42px;
  border-bottom: 1px solid var(--md-outline-soft, rgba(159,181,191,.16));
}

.team-standing-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(159,181,191,.09);
  background: transparent;
  color: var(--md-text, #edf3f5);
  font: inherit;
  text-align: left;
}

.team-standing-row:last-child {
  border-bottom: 0;
}

.team-standing-row.is-clickable {
  cursor: pointer;
}

.team-standing-row.is-clickable:hover,
.team-standing-row.is-clickable:focus-visible {
  background: rgba(155,217,200,.055);
  outline: none;
}

.team-standing-row.current {
  background: rgba(155,217,200,.09);
  box-shadow: inset 3px 0 0 var(--md-primary, #83d7c1);
}

.team-standing-rank {
  display: grid;
  gap: 2px;
  color: var(--md-text-2, #bac8ce);
  font: 700 16px var(--font-mono);
}

.team-standing-rank small {
  color: var(--md-primary, #83d7c1);
  font-size: 8px;
}

.team-standing-team {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
}

.team-standing-team img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 34px;
}

.team-standing-team > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.team-standing-team strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-standing-record,
.team-standing-extra {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.team-standing-record strong,
.team-standing-extra strong {
  color: var(--md-text, #edf3f5);
  font: 700 16px var(--font-mono);
}

@media (max-width: 760px) {
  .team-standing-summary {
    grid-template-columns: 1fr;
  }

  .team-standing-head,
  .team-standing-row {
    grid-template-columns: 42px minmax(0,1fr) 72px 56px;
    gap: 8px;
    padding-inline: 12px;
  }

  .team-standing-team img {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
}
.team-playoff-picture {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.team-playoff-table {
  overflow: hidden;
  border: 1px solid var(--md-outline-soft, rgba(159,181,191,.16));
  border-radius: var(--md-radius-lg, 20px);
  background: var(--md-surface-2, #151f24);
}

.team-playoff-head,
.team-playoff-row {
  display: grid;
  grid-template-columns: 64px minmax(0,1fr) 105px 132px;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 9px 18px;
}

.team-playoff-head {
  min-height: 42px;
  border-bottom: 1px solid var(--md-outline-soft, rgba(159,181,191,.16));
  color: var(--md-text-3, #8fa1aa);
  font: 600 10px var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.team-playoff-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(159,181,191,.09);
  background: transparent;
  color: var(--md-text, #edf3f5);
  font: inherit;
  text-align: left;
}

.team-playoff-row.is-clickable {
  cursor: pointer;
}

.team-playoff-row.is-clickable:hover,
.team-playoff-row.is-clickable:focus-visible {
  background: rgba(155,217,200,.055);
  outline: none;
}

.team-playoff-row.current {
  background: rgba(155,217,200,.11);
  box-shadow: inset 4px 0 0 var(--md-primary, #83d7c1);
}

.team-playoff-row.in-field:not(.current) {
  background: rgba(155,217,200,.025);
}

.team-playoff-seed {
  color: var(--md-text, #edf3f5);
  font: 800 18px var(--font-mono);
}

.team-playoff-status {
  justify-self: end;
  color: var(--md-text-2, #bac8ce);
  font: 600 11px var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.team-playoff-row.current .team-playoff-status,
.team-playoff-row.current .team-playoff-seed {
  color: var(--md-primary, #83d7c1);
}

.team-playoff-band {
  padding: 7px 18px;
  border-bottom: 1px solid rgba(159,181,191,.09);
  background: rgba(159,181,191,.035);
  color: var(--md-text-3, #8fa1aa);
  font: 700 9px var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.team-playoff-band.wildcard {
  background: rgba(155,217,200,.035);
}

.team-playoff-band.outside {
  border-top: 2px solid rgba(155,217,200,.24);
  background: rgba(159,181,191,.02);
}

@media (max-width: 760px) {
  .team-playoff-head,
  .team-playoff-row {
    grid-template-columns: 44px minmax(0,1fr) 72px;
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .team-playoff-head > :last-child,
  .team-playoff-row > :last-child {
    display: none;
  }

  .team-playoff-row .team-standing-team img {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
}
/* TEAM STANDINGS V4: HERO SEMANTICS + NHL PLAYOFF FORMAT */
.team-standing-row.division-qualifier:not(.current) {
  background: rgba(155,217,200,.025);
}

.team-standing-row.division-cutoff {
  border-bottom: 2px solid rgba(155,217,200,.28);
}

.nhl-playoff-picture .team-playoff-seed {
  font-size: 14px;
  letter-spacing: .04em;
}

.nhl-playoff-picture .team-playoff-row.current {
  background: rgba(155,217,200,.12);
}
/* TEAM LOGO CONTRAST SYSTEM
   Official colors stay untouched. Transparent/dark marks sit on a neutral
   light plate so navy/black linework remains legible on Sports Radar. */
.team-hero-logo {
  background: rgba(255,255,255,.055);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.075),
    0 1px 2px rgba(0,0,0,.16);
}

.team-hero-logo img,
.team-standing-team img,
.team-spotlight-matchup img,
.team-schedule-opponent img,
.search-team-logo img,
.favorite-result img,
.detail-team img,
.team-name .team-logo {
  object-fit: contain;
  background: rgba(238,242,244,.88);
  box-shadow:
    inset 0 0 0 1px rgba(15,26,31,.10),
    0 1px 2px rgba(0,0,0,.20);
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.18));
}

.team-standing-team img,
.team-spotlight-matchup img,
.team-schedule-opponent img,
.search-team-logo img,
.favorite-result img,
.detail-team img,
.team-name .team-logo {
  border-radius: 8px;
  padding: 3px;
}

/* Hero logos get the strongest contrast treatment. */
.team-hero-logo img {
  border-radius: 12px;
  padding: 10px;
  background: rgba(238,242,244,.94);
  box-shadow:
    inset 0 0 0 1px rgba(15,26,31,.12),
    0 2px 5px rgba(0,0,0,.16);
  filter: none;
}

/* Tiny marks need a light plate because dark fine linework disappears first. */
.team-standing-team img,
.team-name .team-logo {
  background: rgba(238,242,244,.92);
}

/* Preserve the selected-team accent without reducing logo contrast. */
.team-standing-row.current .team-standing-team img,
.team-playoff-row.current .team-standing-team img {
  box-shadow:
    inset 0 0 0 1px rgba(15,26,31,.12),
    0 0 0 2px rgba(131,215,193,.18);
}
/* Large hero marks get a softer plate instead of looking boxed-in. */
.team-hero-logo img {
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  box-shadow: none;
}

/* Tiny marks need slightly more separation because fine dark linework disappears first. */
.team-standing-team img,
.team-name .team-logo {
  background: rgba(255,255,255,.095);
}

/* Preserve the current-team highlight as the strongest visual signal. */
.team-standing-row.current .team-standing-team img,
.team-playoff-row.current .team-standing-team img {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.095),
    0 0 0 1px rgba(131,215,193,.10);
}
/* TEAM LOGO CONTRAST SURFACE FIX
   Game Center already reads well. Force the same neutral plate on the
   team-page hero and home-page game-card team logos only. */

/* Team page hero: make the entire visible logo well light, not just the image box. */
.team-hero-logo {
  background: rgba(238,242,244,.94) !important;
  border-color: rgba(15,26,31,.16) !important;
  box-shadow:
    inset 0 0 0 1px rgba(15,26,31,.10),
    0 2px 6px rgba(0,0,0,.20) !important;
}

.team-hero-logo img {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 14px !important;
  background: transparent !important;
  border-radius: inherit;
  filter: none !important;
}

/* Home-page game cards: the visible logo square itself must be light. */
.game-card .team-logo {
  box-sizing: border-box;
  padding: 4px !important;
  background: rgba(238,242,244,.94) !important;
  border: 1px solid rgba(15,26,31,.12) !important;
  border-radius: 9px !important;
  box-shadow:
    0 1px 2px rgba(0,0,0,.22) !important;
  filter: none !important;
}

/* Keep league logos untouched. */
.game-card .league-logo {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
/* TEAM LOGO POLISHED HALO SYSTEM
   Remove sticker-like light boxes. Keep transparent official marks and use
   a soft neutral halo plus a pixel-following light edge for dark artwork. */

/* Shared transparent logo treatment */
.team-hero-logo img,
.team-standing-team img,
.team-spotlight-matchup img,
.team-schedule-opponent img,
.search-team-logo img,
.favorite-result img,
.detail-team img,
.team-name .team-logo,
.game-card .team-logo {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  object-fit: contain;
  filter:
    drop-shadow(0 0 .65px rgba(239,246,248,.95))
    drop-shadow(0 0 1.6px rgba(239,246,248,.42))
    drop-shadow(0 1px 1px rgba(0,0,0,.30)) !important;
}

/* Hero: soft circular light behind the mark, no visible tile edges. */
.team-hero-logo {
  background:
    radial-gradient(
      circle at center,
      rgba(235,242,245,.18) 0%,
      rgba(235,242,245,.11) 42%,
      rgba(235,242,245,.045) 63%,
      transparent 76%
    ) !important;
  border-color: rgba(159,181,191,.13) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.025),
    0 2px 6px rgba(0,0,0,.16) !important;
}

.team-hero-logo img {
  width: 78% !important;
  height: 78% !important;
  margin: 11% !important;
  border-radius: 0 !important;
}

/* Small marks: localized halo follows the logo footprint rather than a square card. */
.team-standing-team img,
.team-spotlight-matchup img,
.team-schedule-opponent img,
.search-team-logo img,
.favorite-result img,
.detail-team img,
.team-name .team-logo,
.game-card .team-logo {
  border-radius: 0 !important;
  background-image:
    radial-gradient(
      circle at center,
      rgba(235,242,245,.16) 0%,
      rgba(235,242,245,.075) 48%,
      transparent 74%
    ) !important;
}

/* Home cards need a slightly stronger edge because marks are only ~32px. */
.game-card .team-logo {
  filter:
    drop-shadow(0 0 .7px rgba(244,249,250,1))
    drop-shadow(0 0 1.7px rgba(244,249,250,.52))
    drop-shadow(0 1px 1px rgba(0,0,0,.32)) !important;
}

/* Game Center already looked good; keep its treatment restrained. */
.detail-team img {
  background-image:
    radial-gradient(
      circle at center,
      rgba(235,242,245,.10) 0%,
      rgba(235,242,245,.04) 50%,
      transparent 74%
    ) !important;
}

/* League logos are intentionally excluded from the team-logo treatment. */
.game-card .league-logo {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  filter: none !important;
}
/* MOBILE RADAR DENSITY PASS V1
   Reduce navigation/filter chrome on phones while preserving useful
   at-a-glance game information, including Broadcast and Current Line. */
@media (max-width: 600px) {
  .app-shell {
    padding-inline: 10px;
  }

  /* One compact app bar. The brand/logo is already the Home/Radar link. */
  .topbar {
    min-height: 54px;
    height: 54px;
    padding-block: 4px;
    gap: 6px;
  }

  .brand {
    flex: 0 0 auto;
    gap: 0;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 8px;
  }

  .brand-wordmark {
    display: none;
  }

  .main-nav {
    height: auto;
    margin-left: auto;
    gap: 2px;
  }

  .main-nav .nav-link[data-page="home"],
  .main-nav .nav-link[data-page="soccer"] {
    min-height: 38px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 12px;
  }

  .main-nav .nav-link.active::after {
    display: none;
  }

  .top-actions {
    margin-left: 0;
    gap: 4px;
  }

  /* Refresh remains available in the feed-status row below. */
  #refresh-button {
    display: none;
  }

  .search-button {
    width: 38px;
    min-height: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
  }

  .profile-button {
    width: 38px;
    height: 38px;
    padding: 0;
    display: grid;
    place-items: center;
  }

  .profile-button span {
    width: 32px;
    height: 32px;
  }

  .install-button {
    min-height: 38px;
    padding: 0 9px;
  }

  /* Title + live status stays, but loses the large desktop breathing room. */
  .control-row {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 8px;
    padding: 12px 0 8px;
  }

  .section-label {
    gap: 8px;
    font-size: 18px;
    line-height: 1;
  }

  .live-count {
    padding: 4px 6px;
    font-size: 9px;
  }

  .score-guide-button {
    width: 28px;
    height: 28px;
  }

  .controls {
    width: 100%;
    min-width: 0;
  }

  /* State filters become one smooth, horizontally scrollable strip. */
  .segmented {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 3px;
    padding: 3px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .segmented::-webkit-scrollbar {
    display: none;
  }

  .seg {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 10px;
    font-size: 10px;
    white-space: nowrap;
  }

  /* Sports are one row, not a two/three-row button bank. */
  .sport-filter {
    display: flex !important;
    grid-template-columns: none !important;
    width: 100%;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 0 8px !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .sport-filter::-webkit-scrollbar {
    display: none;
  }

  .sport-filter .sport-chip,
  .sport-filter .sport-chip:not(.fcs-toggle) {
    flex: 0 0 auto;
    width: auto !important;
    min-width: auto;
    height: 34px !important;
    padding: 0 11px !important;
    border-radius: 999px;
    scroll-snap-align: start;
    font-size: 10px;
  }

  /* Keep the useful status + manual refresh, but make it a compact utility row. */
  .data-status {
    min-height: 30px;
    margin: 0 0 7px !important;
    gap: 7px;
    font-size: 9px;
  }

  .data-status button {
    min-height: 30px;
    padding: 0 9px;
    border-radius: 999px;
  }

  .game-list {
    margin: 0 !important;
    padding: 0 0 24px !important;
    gap: 8px;
  }

  .game-date-divider {
    min-height: 26px;
    margin: 3px 0 0;
    padding: 4px 8px;
    font-size: 9px;
  }

  /* Card content remains intact. Tighten it instead of deleting Broadcast/Line. */
  .game-card,
  .game-card.favorite,
  .game-card.completed-card {
    padding: 8px 9px;
    gap: 3px 7px;
  }

  .game-card .match-meta {
    margin-bottom: 2px;
    font-size: 8.5px;
    line-height: 1.25;
  }

  .game-card .team-row {
    font-size: 13px;
    line-height: 1.18;
  }

  .game-card .team-row + .team-row {
    margin-top: 3px;
  }

  .game-card .channel-context {
    margin-top: 5px;
    padding-top: 6px;
    gap: 3px 7px;
    font-size: 9px;
    line-height: 1.3;
  }

  .game-card .channel-context .detail-inline {
    gap: 4px;
  }

  .game-card .channel-context .detail-inline strong {
    font-size: 8px;
  }

  .game-card .line-inline {
    margin-top: 1px;
  }

  .game-card .stats-cue {
    font-size: 9px;
  }

  .game-card .score-circle,
  .game-card .score-circle.hot,
  .game-card .score-circle.warm,
  .game-card .score-circle.very-hot,
  .game-card .score-circle.extreme {
    width: 50px;
    min-width: 50px;
    height: 42px;
    font-size: 24px;
  }
}
/* SPORTS RADAR FLUID INTERACTION PASS V1
   Short, consistent motion and immediate touch feedback without changing
   data flow, scoring, routing, or information density. */
:root {
  --sr-motion-fast: 120ms;
  --sr-motion: 170ms;
  --sr-motion-slow: 220ms;
  --sr-ease: cubic-bezier(.2,.75,.25,1);
  --sr-ease-out: cubic-bezier(.16,1,.3,1);
}

/* Remove the delayed/heavy feel from touch controls. */
button,
a,
[role="button"],
.seg,
.sport-chip,
.game-card,
.team-standing-row,
.team-playoff-row {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Keep focus accessibility while avoiding persistent touch outlines. */
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid rgba(188,234,211,.78);
  outline-offset: 3px;
}

/* Shared interaction timing. */
.nav-link,
.search-button,
.icon-button,
.profile-button,
.install-button,
.seg,
.sport-chip,
.data-status button,
.score-guide-button,
.favorite-manual-button,
.primary-button,
.detail-watch,
.alert-controls button,
.team-page-tab,
.team-standing-row,
.team-playoff-row,
.game-card,
.score-circle {
  transition:
    color var(--sr-motion-fast) var(--sr-ease),
    background-color var(--sr-motion) var(--sr-ease),
    border-color var(--sr-motion) var(--sr-ease),
    box-shadow var(--sr-motion) var(--sr-ease),
    opacity var(--sr-motion-fast) linear,
    transform var(--sr-motion-fast) var(--sr-ease);
}

/* Immediate physical feedback. */
button:active,
[role="button"]:active,
.seg:active,
.sport-chip:active,
.team-standing-row:active,
.team-playoff-row:active {
  transform: scale(.975);
}

.game-card:active {
  transform: scale(.992);
}

/* Hover should feel responsive rather than floaty. */
@media (hover:hover) and (pointer:fine) {
  .game-card:hover {
    transform: translateY(-1px);
  }

  .seg:hover,
  .sport-chip:hover,
  .nav-link:hover,
  .search-button:hover,
  .data-status button:hover {
    filter: brightness(1.06);
  }
}

/* Smooth native-feeling horizontal filter motion. */
.segmented,
.sport-filter,
.detail-tabs,
.team-page-tabs {
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

/* Isolate card layout without clipping score explanations outside the card. */
.game-card {
  contain: layout;
}

/* Team pages should arrive instead of abruptly replacing the radar. */
.team-page:not(.hidden) {
  animation: sr-page-enter var(--sr-motion-slow) var(--sr-ease-out) both;
}

@keyframes sr-page-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dialogs and Game Center use the same motion language. */
dialog[open] {
  animation: sr-dialog-enter var(--sr-motion-slow) var(--sr-ease-out) both;
}

@keyframes sr-dialog-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.detail-overlay:not([hidden]) {
  animation: sr-overlay-in var(--sr-motion) ease-out both;
}

.detail-overlay:not([hidden]) .detail-panel {
  animation: sr-panel-in var(--sr-motion-slow) var(--sr-ease-out) both;
}

@keyframes sr-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sr-panel-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Active filters switch cleanly without a flash. */
.seg.active,
.sport-chip.active,
.nav-link.active,
.team-page-tab.active {
  transition-duration: var(--sr-motion-fast);
}

/* Data/status changes should not visually jump the row. */
.data-status,
.live-count,
.match-meta,
.team-record,
.team-rank {
  transition:
    color var(--sr-motion) var(--sr-ease),
    opacity var(--sr-motion) linear;
}

/* Keep mobile controls feeling like one continuous surface. */
@media (max-width: 600px) {
  .topbar {
    transition:
      background-color var(--sr-motion) var(--sr-ease),
      border-color var(--sr-motion) var(--sr-ease),
      box-shadow var(--sr-motion) var(--sr-ease);
  }

  .segmented,
  .sport-filter {
    scroll-padding-inline: 6px;
  }

  .seg,
  .sport-filter .sport-chip,
  .search-button,
  .profile-button,
  .data-status button {
    min-height: 36px;
  }

  .game-card {
    contain-intrinsic-size: auto 132px;
  }
}

/* Respect users who request minimal motion. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

/* Notification choices and install guidance share the existing Settings dialog. */
.notification-settings h3,.install-settings h3 { margin:0 0 10px; font-size:18px; }
.notification-settings fieldset { min-width:0; margin:18px 0; padding:12px; border:1px solid #344853; border-radius:10px; }
.notification-settings legend { padding:0 6px; color:#dce8ee; font-weight:600; }
.notification-master { min-height:44px; padding:9px 14px; border:1px solid #53758b; border-radius:8px; background:#233b54; color:#dcecff; font:600 14px Arial,sans-serif; cursor:pointer; }
.notification-master[aria-checked=true] { border-color:#80d3aa; background:#173c30; color:#c8f5df; }
.notification-master::before { content:''; display:inline-block; width:10px; height:10px; margin-right:9px; border:1px solid currentColor; border-radius:50%; }
.notification-master[aria-checked=true]::before { background:currentColor; }
.notification-sports { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.notification-sports .toggle-option { min-height:44px; padding:7px; }
.notification-team-search { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:8px; margin-top:12px; }
.notification-team-search input,.notification-team-search select { min-width:0; width:100%; min-height:44px; padding:8px; border:1px solid #536d80; border-radius:6px; background:#101c25; color:#eef5f8; font-size:16px; }
.notification-team-results { display:grid; max-height:200px; overflow-y:auto; border:1px solid #344853; border-radius:7px; }
.notification-team-results:empty { display:none; }
.notification-team-results button { display:flex; justify-content:space-between; align-items:center; gap:12px; min-width:0; min-height:44px; padding:9px; border:0; border-bottom:1px solid #2a3b47; background:#14212a; color:#eef5f8; text-align:left; cursor:pointer; }
.notification-team-results button small { flex-shrink:0; color:#9cbdcf; font-size:11px; }
.notification-team-results button[aria-pressed=true],.notification-favorites button[aria-pressed=true] { background:#233b54; color:#c3e0ff; }
.notification-favorites-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:14px; }
.notification-favorites-heading button,.notification-favorites button { min-height:44px; padding:7px 10px; border:1px solid #415c6b; border-radius:7px; color:#d9e9f4; background:#182832; cursor:pointer; }
.notification-favorites { display:flex; flex-wrap:wrap; gap:7px; margin-top:8px; }
.install-settings details { margin:12px 0; padding:0 12px; border:1px solid #344853; border-radius:9px; }
.install-settings summary { display:flex; align-items:center; gap:9px; min-height:48px; cursor:pointer; color:#d7eaff; font-weight:600; }
.install-settings summary::after { content:'⌄'; margin-left:auto; font-size:22px; }
.install-settings details[open] summary::after { transform:rotate(180deg); }
.install-settings li { margin:10px 0; padding-left:3px; line-height:1.5; }
.install-share-icon { display:inline-block; width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; vertical-align:middle; }
.install-menu-icon { display:inline-block; font-size:25px; line-height:1; vertical-align:middle; }
@media(max-width:360px) { .notification-settings fieldset { padding:8px; } .notification-team-search { grid-template-columns:minmax(0,1fr); } .notification-team-results button { flex-wrap:wrap; gap:3px; } }

/* MOBILE COLLAPSIBLE SPORT FILTER V3
   Phones default to one compact Sports control. The full sport bank,
   including FCS, appears only when explicitly expanded. */
.mobile-sport-filter-toggle {
  display: none;
}

.mobile-sport-panel {
  display: contents;
}

@media (max-width: 600px) {
  .mobile-sport-filter-toggle {
    width: 100%;
    min-height: 40px;
    margin: 0 0 8px;
    padding: 0 12px;

    display: flex;
    align-items: center;
    gap: 7px;

    color: #dce7ea;
    background: #142128;
    border: 1px solid #31454e;
    border-radius: 12px;

    font: 600 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    text-align: left;
    cursor: pointer;

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.025),
      0 1px 2px rgba(0,0,0,.18);

    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .mobile-sport-filter-toggle > span:first-child {
    color: #8499a2;
    font-weight: 600;
  }

  .mobile-sport-filter-toggle strong {
    color: #c6f2df;
    font-weight: 700;
  }

  .mobile-sport-filter-chevron {
    margin-left: auto;
    color: #8fa4ad;
    font-size: 17px;
    line-height: 1;
    transition: transform 160ms cubic-bezier(.2,.75,.25,1);
  }

  .mobile-sport-filter-toggle[aria-expanded="true"]
    .mobile-sport-filter-chevron {
    transform: rotate(180deg);
  }

  .mobile-sport-panel {
    display: none;
    width: 100%;
    margin: 0 0 8px;
    padding: 8px;
    gap: 6px;
    flex-wrap: wrap;

    background: #0f191e;
    border: 1px solid #293d46;
    border-radius: 12px;

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.018),
      0 3px 10px rgba(0,0,0,.14);
  }

  .mobile-sport-panel.mobile-expanded {
    display: flex;
    animation: mobile-sport-panel-in 150ms cubic-bezier(.16,1,.3,1) both;
  }

  .mobile-sport-panel .sport-chip,
  .mobile-sport-panel .sport-chip:not(.fcs-toggle) {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 0;
    height: 34px !important;
    padding: 0 11px !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;
    font-size: 10px;
  }

  .mobile-sport-panel .fcs-toggle {
    order: 99;
  }

  body.team-page-open .mobile-sport-filter-toggle,
  body.team-page-open .mobile-sport-panel {
    display: none !important;
  }
}

@keyframes mobile-sport-panel-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-sport-panel.mobile-expanded {
    animation: none;
  }

  .mobile-sport-filter-chevron {
    transition: none;
  }
}


/* Native provider links stay within the existing broadcast row. */
.broadcast-watch-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; min-width: 0; font: 11px/1.3 'DM Sans', sans-serif; }
.broadcast-watch-link { position: relative; z-index: 2; display: inline; padding: 0; border: 0; background: none; color: #c1e7f5; font: inherit; white-space: nowrap; text-decoration: underline; text-underline-offset: 2px; touch-action: manipulation; pointer-events: auto; }
.broadcast-watch-link:hover { color: #fff; }
.broadcast-watch-link:focus-visible { outline: 2px solid var(--selected-hi, #b9dcff); outline-offset: 2px; border-radius: 2px; }
.external-link-icon { width: 10px; height: 10px; margin-left: 3px; vertical-align: -1px; }
.game-card .channel-context .detail-inline > .broadcast-labels { overflow-x: auto; overflow-y: hidden; white-space: nowrap; text-overflow: clip; scrollbar-width: none; }
.broadcast-labels::-webkit-scrollbar { display: none; }
.detail-header > .broadcast-watch-actions { margin-top: 4px; }

/* Sport-specific filters sit below the sport selector, including its mobile drawer. */
.sport-specific-filters { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; margin:10px 0 4px; min-width:0; }
.conference-filter { display:flex; align-items:center; gap:8px; min-width:0; color:var(--muted, #98a7b5); font-size:12px; }
.conference-filter select { width:245px; max-width:100%; min-width:0; height:40px; border:1px solid #34434e; border-radius:8px; padding:0 28px 0 10px; background:#101e28; color:#e7edf2; font:inherit; text-overflow:ellipsis; }
.conference-filter optgroup { color:#a9c7d6; background:#101e28; }
.compact-filter-toggle { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:40px; border:1px solid #34434e; border-radius:8px; background:transparent; color:#b5c2cc; padding:0 10px; font:500 12px var(--font-sans); cursor:pointer; white-space:nowrap; }
.compact-filter-toggle.active { border-color:#72b8b2; color:#d7f6ef; background:#14312e; }
.filter-switch { width:24px; height:14px; border-radius:20px; background:#475762; position:relative; }
.filter-switch::after { content:''; position:absolute; top:3px; left:3px; width:8px; height:8px; background:#dbe5eb; border-radius:50%; }
.active .filter-switch { background:#479c8e; }
.active .filter-switch::after { left:13px; }
.clear-sport-filters { min-height:40px; border:0; padding:0 4px; background:transparent; color:#b7d7e5; font:500 12px var(--font-sans); text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.clear-sport-filters:disabled { opacity:.38; cursor:default; }
.sport-specific-filters :focus-visible,.clear-sport-filters:focus-visible { outline:2px solid #b9dcff; outline-offset:3px; }
.sport-filter-status { flex-basis:100%; margin:0; color:#9dabb6; font-size:11px; line-height:1.5; }
.sport-filter-status:empty { display:none; }
body.team-page-open .sport-specific-filters { display:none; }
@media (max-width:600px) {
  .sport-specific-filters { gap:6px 8px; margin-top:8px; }
  .conference-filter { flex:1 1 170px; flex-direction:column; align-items:stretch; gap:3px; font-size:11px; }
  .conference-filter select { width:100%; height:42px; }
  .compact-filter-toggle { min-height:42px; align-self:flex-end; font-size:11px; padding:0 8px; }
  .clear-sport-filters { min-height:32px; font-size:11px; }
  .sport-filter-status { flex:1 1 200px; }
}

/* Keep chart labels readable at the physical viewport size. */
.timeline-section .timeline-chart { max-height:none; }
.timeline-section .timeline-mobile { display:none; }
.timeline-section .timeline-point-help[aria-hidden="true"] { display:none; }
.timeline-section .timeline-point-help { min-height:0; height:auto; margin:8px 0; }
@media (max-width:600px) {
  .timeline-section .timeline-desktop { display:none; }
  .timeline-section .timeline-mobile { display:block; }
  .timeline-section .timeline-chart text { font-size:11px; }
  .timeline-section .timeline-event-strip text { font-size:9px; letter-spacing:.5px; }
}
