:root {
  --ink: #111827;
  --muted: #677385;
  --line: #d8dee8;
  --paper: #ffffff;
  --soft-panel: #edf2f7;
  --page: #e9edf3;
  --page-glow-left: rgba(255,255,255,.48);
  --page-glow-right: rgba(255,255,255,.48);
  --nav: #061d38;
  --nav-2: #082b53;
  --surface-shadow: rgba(18,21,34,.12);
  --surface-hover: #f7f9fc;
  --field-bg: rgba(255,255,255,.12);
  --field-border: rgba(255,255,255,.16);
  --field-text: #fff;
  --field-placeholder: rgba(255,255,255,.58);
  --footer-bg: #111827;
  --red: #cf1728;
  --green: #005c56;
  --gold: #b79a5a;
  --radius: 8px;
}

:root[data-theme="light"] {
  --ink: #142033;
  --muted: #66758a;
  --line: #d6e0ec;
  --paper: #ffffff;
  --soft-panel: #f1f6fb;
  --page: #f6f8fb;
  --page-glow-left: rgba(120,158,196,.18);
  --page-glow-right: rgba(183,154,90,.12);
  --nav: #0b2440;
  --nav-2: #17456d;
  --surface-shadow: rgba(20,32,51,.1);
  --surface-hover: #eef5fb;
  --field-bg: rgba(255,255,255,.16);
  --field-border: rgba(255,255,255,.22);
  --footer-bg: #142033;
}

:root[data-theme="dark"] {
  --ink: #eef5f8;
  --muted: #9fb0bc;
  --line: #2b3e4b;
  --paper: #111923;
  --soft-panel: #172331;
  --page: #080d13;
  --page-glow-left: rgba(0,76,84,.16);
  --page-glow-right: rgba(232,24,40,.1);
  --nav: #05090f;
  --nav-2: #10202e;
  --surface-shadow: rgba(0,0,0,.38);
  --surface-hover: #1b2a38;
  --field-bg: rgba(255,255,255,.09);
  --field-border: rgba(255,255,255,.16);
  --footer-bg: #05090f;
  --red: #e81828;
  --green: #006a74;
  --gold: #f47a2a;
}

:root[data-theme="neon"] {
  --ink: #f4fbff;
  --muted: #8fb9bd;
  --line: #004c54;
  --paper: #071928;
  --soft-panel: #092235;
  --page: #030912;
  --page-glow-left: rgba(0,76,84,.34);
  --page-glow-right: rgba(244,122,42,.22);
  --nav: #020611;
  --nav-2: #004c54;
  --surface-shadow: rgba(0,76,84,.22);
  --surface-hover: #0a2a30;
  --field-bg: rgba(0,76,84,.28);
  --field-border: rgba(244,122,42,.36);
  --footer-bg: #020611;
  --red: #e81828;
  --green: #004c54;
  --gold: #f47a2a;
}

:root[data-theme="neon-electric"] {
  --ink: #f7fbff;
  --muted: #a9c4d4;
  --line: #25546d;
  --paper: #07172a;
  --soft-panel: #0a2038;
  --page: #040712;
  --page-glow-left: rgba(0,204,255,.22);
  --page-glow-right: rgba(255,46,99,.18);
  --nav: #030611;
  --nav-2: #10264d;
  --surface-shadow: rgba(0,204,255,.16);
  --surface-hover: #0b2944;
  --field-bg: rgba(0,204,255,.12);
  --field-border: rgba(255,46,99,.28);
  --footer-bg: #030611;
  --red: #ff2e63;
  --green: #00c8d7;
  --gold: #ffd166;
}

:root[data-theme="neon-night"] {
  --ink: #f8f3ff;
  --muted: #c0a9d8;
  --line: #4a335f;
  --paper: #151022;
  --soft-panel: #1d1630;
  --page: #080611;
  --page-glow-left: rgba(142,68,173,.2);
  --page-glow-right: rgba(244,122,42,.2);
  --nav: #07040f;
  --nav-2: #241435;
  --surface-shadow: rgba(142,68,173,.18);
  --surface-hover: #261a38;
  --field-bg: rgba(142,68,173,.14);
  --field-border: rgba(244,122,42,.28);
  --footer-bg: #07040f;
  --red: #ff4d5e;
  --green: #00b7a8;
  --gold: #f47a2a;
}

:root[data-theme="midnight"] {
  --ink: #f0f6f8;
  --muted: #9aaeb8;
  --line: #22313b;
  --paper: #0d141b;
  --soft-panel: #121d27;
  --page: #05080c;
  --page-glow-left: rgba(0,76,84,.12);
  --page-glow-right: rgba(244,122,42,.09);
  --nav: #020408;
  --nav-2: #0e1a24;
  --surface-shadow: rgba(0,0,0,.44);
  --surface-hover: #172331;
  --field-bg: rgba(255,255,255,.08);
  --field-border: rgba(255,255,255,.14);
  --footer-bg: #020408;
  --red: #e81828;
  --green: #00717c;
  --gold: #d96f32;
}

* { box-sizing: border-box; }
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, var(--page-glow-left), rgba(255,255,255,0) 18%, rgba(255,255,255,0) 82%, var(--page-glow-right)),
    var(--page);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, var(--nav-2), var(--nav));
  color: #fff;
  box-shadow: 0 2px 16px rgba(12, 20, 32, .2);
}
.header-inner {
  max-width: 1180px;
  height: 58px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.logo-mark {
  width: 66px;
  height: 40px;
  display: block;
}
.logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.28));
}
.pg-mark {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.28));
}
.pg-mark path {
  vector-effect: non-scaling-stroke;
}
.pg-letter {
  fill: #f8fbff;
}
.score-bar--flyers {
  fill: #f47a2a;
}
.score-bar--eagles {
  fill: #004c54;
}
.score-bar--phillies {
  fill: #e81828;
}
.pg-line {
  fill: none;
  stroke: rgba(255,255,255,.72);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.logo-text strong { color: #fff; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-link {
  padding: 20px 11px 18px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(255,255,255,.76);
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-link.active { color: #fff; background: rgba(255,255,255,.1); box-shadow: inset 0 -3px 0 #2e8ad8; }

.team-quick-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--field-border);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03)),
    var(--field-bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 20px rgba(0,0,0,.18);
}
.team-quick-pick a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  background: color-mix(in srgb, var(--team-color) 30%, rgba(15,23,42,.85));
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.team-quick-pick a:hover,
.team-quick-pick a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.42);
  background: color-mix(in srgb, var(--team-color) 48%, rgba(15,23,42,.72));
  outline: 0;
}
.team-quick-pick img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.42));
}
.theme-picker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: max-content;
  color: rgba(255,255,255,.72);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  position: relative;
}
.theme-picker::after,
.schedule-picker::after,
.league-picker::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  pointer-events: none;
  opacity: .7;
}
.theme-picker::after {
  position: absolute;
  right: 12px;
  top: 50%;
  margin-top: -5px;
}
.theme-picker select {
  height: 34px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--field-border);
  border-radius: 999px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04)),
    var(--field-bg);
  font: inherit;
  letter-spacing: 0;
  text-transform: uppercase;
  outline: 0;
  cursor: pointer;
  appearance: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 20px rgba(0,0,0,.2);
}
.theme-picker select:focus-visible,
.schedule-picker select:focus-visible,
.league-picker select:focus-visible {
  border-color: rgba(255,255,255,.52);
  box-shadow:
    0 0 0 3px rgba(255,255,255,.10),
    inset 0 1px 0 rgba(255,255,255,.10),
    0 8px 20px rgba(0,0,0,.22);
}
.theme-picker option {
  color: #e5eefc;
  background: #1f2937;
}
.theme-picker option:checked,
.schedule-picker option:checked,
.league-picker option:checked {
  color: #fff;
  background: #3b63c7;
}
.schedule-picker option,
.league-picker option {
  color: #e5eefc;
  background: #1f2937;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 44px;
}
.hero {
  min-height: 190px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 34px;
  color: #fff;
  background: linear-gradient(130deg, #081f3a, #0c355f 55%, #003c3a);
  border-radius: var(--radius);
  box-shadow: 0 18px 36px rgba(18,21,34,.16);
}
.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #a9d7e8;
}
.hero h1, .page-head h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: .95;
  letter-spacing: 0;
}
.hero-copy {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 17px;
  line-height: 1.5;
}
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  font-size: 13px;
  font-weight: 700;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 5px rgba(74,222,128,.18);
}

.page-head {
  padding: 18px 0 22px;
}
.page-head .eyebrow { color: var(--green); }
.section { margin-top: 24px; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.section-heading h2, .sidebar-section h3, .info-panel h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.section-heading a {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  min-width: 0;
  overflow: visible;
}
.main-content,
.sidebar,
.sidebar-section {
  min-width: 0;
}
.main-content {
  overflow: visible;
}
.home-layout--glance .section:first-child {
  margin-top: 0;
}
.game-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.game-cards-grid--wide { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.game-card {
  min-height: 188px;
  padding: 14px;
  border-radius: 5px;
  color: #fff;
  background: #192436;
  box-shadow: 0 2px 7px rgba(18,21,34,.22);
  overflow: hidden;
}
.game-card--live { background: linear-gradient(145deg, #05070b 0%, #07345f 100%); }
.game-card--final { background: linear-gradient(145deg, #061b42 0%, #7b1220 100%); }
.game-card--delayed,
.game-card--postponed,
.game-card--cancelled,
.game-card--scheduled {
  background:
    linear-gradient(145deg, rgba(7,13,23,.8), rgba(7,13,23,.68)),
    linear-gradient(145deg, var(--away-color) 0%, var(--home-color) 100%);
}
.game-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.badge {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  background: rgba(255,255,255,.16);
}
.badge--live { background: var(--red); }
.badge--final { background: rgba(255,255,255,.22); }
.badge--delayed { background: #d97706; }
.badge--postponed, .badge--cancelled { background: #64748b; }
.game-period, .sport-tag { color: rgba(255,255,255,.78); font-size: 12px; font-weight: 800; }
.matchup-line { margin-top: 16px; font-weight: 800; color: rgba(255,255,255,.88); }
.live-matchup {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: 118px;
  margin: 14px 0 12px;
  overflow: hidden;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--away-color) 0 49.5%, var(--home-color) 50.5% 100%);
  border: 1px solid rgba(255,255,255,.16);
}
.live-matchup::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.2), transparent 22%, rgba(0,0,0,.28) 50%, transparent 78%, rgba(0,0,0,.2));
  pointer-events: none;
}
.live-team {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(58px, 1fr) minmax(42px, auto);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 14px 16px;
}
.live-team--home {
  grid-column: 2;
  grid-template-columns: minmax(42px, auto) minmax(58px, 1fr);
  text-align: right;
}
.live-team--away {
  grid-column: 1;
}
.live-team--away .live-logo {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
}
.live-team--away .score-value {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}
.live-team--away .live-name {
  grid-column: 1 / -1;
  grid-row: 2;
  text-align: left;
  justify-self: stretch;
  padding: 0 10px;
}
.live-team--home .score-value {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
}
.live-team--home .live-logo {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}
.live-team--home .live-name {
  grid-column: 1 / -1;
  grid-row: 2;
  text-align: right;
  justify-self: stretch;
  padding: 0 10px;
}
.live-logo {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.live-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.42));
}
.live-logo span {
  color: #fff;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.live-name {
  min-width: 0;
  display: block;
  max-width: 100%;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
  color: #fff;
  font-size: 12px;
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0,0,0,.72);
}
.live-vs {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(7,13,23,.48);
  border: 1px solid rgba(255,255,255,.2);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.score-value {
  min-width: 42px;
  text-align: center;
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
}
.baseball-live {
  display: grid;
  grid-template-columns: 66px minmax(0, .8fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 12px;
  margin: -2px 0 12px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(7,13,23,.38);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.bases-diamond {
  position: relative;
  width: 54px;
  height: 44px;
  justify-self: center;
}
.base {
  position: absolute;
  width: 13px;
  height: 13px;
  transform: rotate(45deg);
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.44);
  border-radius: 2px;
}
.base--occupied {
  background: #f5c84b;
  border-color: #ffe9a3;
  box-shadow: 0 0 12px rgba(245,200,75,.42);
}
.base--second { top: 2px; left: 20px; }
.base--third { top: 17px; left: 4px; }
.base--first { top: 17px; right: 4px; }
.base--home {
  bottom: 0;
  left: 20px;
  width: 11px;
  height: 11px;
  opacity: .64;
}
.baseball-count {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.baseball-count span {
  color: rgba(255,255,255,.76);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}
.baseball-count strong {
  color: #fff;
  font-size: 13px;
}
.baseball-count__outs {
  grid-column: 1 / -1;
}
.baseball-players {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}
.baseball-players span {
  min-width: 0;
}
.baseball-players small {
  display: block;
  color: rgba(255,255,255,.62);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}
.baseball-players strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,.65);
}
.baseball-pitcher {
  position: relative;
  padding-right: 34px;
}
.baseball-pitcher-k {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-12%);
  color: #f5c84b;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.baseball-pitcher-k:empty {
  display: none;
}
.baseball-current-play,
.baseball-plays {
  grid-column: 1 / -1;
}
.baseball-current-play {
  display: grid;
  gap: 3px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.baseball-current-play small {
  color: rgba(255,255,255,.62);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}
.baseball-current-play strong {
  color: rgba(255,255,255,.92);
  font-size: 12px;
  line-height: 1.35;
}
.baseball-plays {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.baseball-plays li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: rgba(255,255,255,.82);
  font-size: 11px;
  line-height: 1.3;
}
.baseball-plays span {
  color: rgba(255,255,255,.52);
  font-weight: 900;
  text-transform: uppercase;
}
.baseball-plays strong {
  min-width: 0;
  font-weight: 700;
}
.vs-divider { color: rgba(255,255,255,.54); font-weight: 900; }
.team-badge {
  width: 50px;
  height: 50px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
  border: 2px solid rgba(255,255,255,.86);
  box-shadow: 0 1px 4px rgba(0,0,0,.22);
  flex: 0 0 auto;
  overflow: hidden;
}
.team-badge.sm { width: 38px; height: 38px; font-size: 10px; }
.team-badge.xs { width: 25px; height: 25px; font-size: 8px; border-width: 1px; }
.team-badge.lg { width: 66px; height: 66px; font-size: 16px; }
.team-badge img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.25));
}
.game-broadcast { text-align: center; }
.broadcast-primary {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  font-size: 12px;
  font-weight: 900;
}
.broadcast-secondary, .game-venue-line {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,.68);
  font-size: 12px;
}
.lineup-button {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 10px auto 0;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(135deg, rgba(232,24,40,.72), rgba(0,76,84,.78));
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 16px rgba(0,0,0,.18);
}
.lineup-button:hover,
.lineup-button:focus-visible {
  background: linear-gradient(135deg, rgba(232,24,40,.88), rgba(244,122,42,.78));
}
.lineup-button--light {
  min-height: 34px;
  margin: 0;
  border-color: rgba(232,24,40,.32);
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--green));
}
.lineup-button--light:hover,
.lineup-button--light:focus-visible {
  background: linear-gradient(135deg, var(--red), var(--gold));
}
.lineup-modal-open {
  overflow: hidden;
}
.lineup-modal[hidden] {
  display: none;
}
.lineup-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
}
.lineup-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 18, .72);
}
.lineup-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  height: auto;
  max-height: min(760px, calc(100vh - 36px));
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(7,13,23,.16), transparent 150px),
    var(--paper);
  box-shadow: 0 18px 60px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.04);
}
.lineup-modal__header {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(145deg, rgba(5,7,11,.98) 0%, rgba(7,52,95,.94) 100%);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.18);
}
.lineup-modal__header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background:
    linear-gradient(90deg, var(--lineup-away-color, var(--red)) 0 49.5%, rgba(255,255,255,.72) 49.7% 50.3%, var(--lineup-home-color, var(--green)) 50.5% 100%);
}
.lineup-modal__header h2 {
  margin: 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0,0,0,.34);
}
.lineup-modal__close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 5px;
  color: #fff;
  background: rgba(255,255,255,.12);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
.lineup-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}
.lineup-pitchers {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(5,7,11,.92), rgba(7,52,95,.72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 1px 5px var(--surface-shadow);
}
.lineup-pitcher-card {
  min-width: 0;
  padding: 10px 11px;
  border-left: 4px solid var(--lineup-team-color, var(--red));
  border-radius: 5px;
  color: #fff;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--lineup-team-color, var(--red)) 28%, transparent), transparent 74%),
    rgba(255,255,255,.08);
}
.lineup-pitcher-card small {
  display: block;
  margin-bottom: 4px;
  color: rgba(255,255,255,.62);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}
.lineup-pitcher-card strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.lineup-pitcher-card--mobile {
  display: none;
  margin-bottom: 9px;
}
.lineup-team {
  min-width: 0;
  overflow: hidden;
  padding: 0 10px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  background:
    linear-gradient(180deg, var(--lineup-team-color, var(--red)) 0 54px, transparent 54px),
    var(--soft-panel);
  box-shadow: 0 1px 5px var(--surface-shadow), inset 0 1px 0 rgba(255,255,255,.16);
}
.lineup-team h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  margin: 0 -10px 10px;
  padding: 8px 11px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0,0,0,.28), transparent 72%),
    var(--lineup-team-color, var(--red));
  font-size: 14px;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0,0,0,.58);
}
.lineup-team h3 img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 2px 5px rgba(0,0,0,.26);
}
.lineup-team h3 span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lineup-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lineup-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  padding: 6px 7px;
  border: 1px solid rgba(255,255,255,.09);
  border-left: 4px solid var(--lineup-team-color, var(--red));
  border-radius: 5px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.08), transparent 62%),
    var(--paper);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.lineup-order,
.lineup-position {
  font-size: 11px;
  font-weight: 900;
}
.lineup-order {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 78%, var(--soft-panel));
  box-shadow: inset 0 0 0 1px var(--line);
}
.lineup-list strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lineup-position {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: 34px;
  min-width: 34px;
  min-height: 24px;
  padding: 3px 5px;
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--paper) 72%, var(--soft-panel));
  box-shadow: inset 0 0 0 1px var(--line);
  line-height: 1;
  text-align: center;
}
.lineup-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}
@media (max-width: 640px) {
  .lineup-modal {
    align-items: end;
    padding: 8px;
    overflow: hidden;
  }
  .lineup-modal__panel {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
  }
  .lineup-modal__header {
    position: sticky;
    top: 0;
    padding: 11px 12px;
  }
  .lineup-modal__header h2 {
    font-size: 16px;
  }
  .lineup-modal__close {
    width: 44px;
    height: 44px;
    font-size: 26px;
  }
  .lineup-modal__body {
    grid-template-columns: 1fr;
    gap: 10px;
    overflow: visible;
    max-height: none;
    padding: 12px 12px max(18px, env(safe-area-inset-bottom));
  }
  .lineup-pitchers {
    grid-template-columns: 1fr;
    padding: 8px;
  }
  .lineup-pitchers--desktop {
    display: none;
  }
  .lineup-pitcher-card--mobile {
    display: block;
  }
}
.score-updated .score-value { animation: flash .7s ease; }
@keyframes flash {
  0% { color: #f5cf68; transform: scale(1.08); }
  100% { color: #fff; transform: scale(1); }
}

.upcoming-list, .sidebar-section, .info-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: 0 1px 5px var(--surface-shadow);
}
.upcoming-list { overflow: hidden; }
.upcoming-item {
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(220px, 1fr) 76px;
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  border-left: 0;
  background: var(--paper);
}
.upcoming-item:last-child { border-bottom: 0; }
.upcoming-teams {
  position: relative;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 116px;
  align-items: center;
  min-height: 58px;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, var(--away-color) 0 49.5%, var(--home-color) 50.5% 100%);
  border: 1px solid rgba(17,24,39,.16);
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
.upcoming-teams::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.16), transparent 22%, transparent 78%, rgba(0,0,0,.18)),
    linear-gradient(102deg, transparent 0 44%, rgba(255,255,255,.18) 44.2% 45.2%, rgba(0,0,0,.24) 45.4% 54.6%, rgba(255,255,255,.18) 54.8% 55.8%, transparent 56%);
  pointer-events: none;
}
.team-split {
  height: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  z-index: 1;
}
.team-split::after {
  content: none;
}
.team-split--away {
  padding-right: 22px;
}
.team-split--home {
  padding-left: 22px;
}
.team-split img {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.42));
}
.team-split span {
  position: relative;
  z-index: 1;
  font-weight: 900;
  font-size: 15px;
}
.team-matchup {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 100%;
  min-width: 0;
  padding: 0 18px;
  color: #fff;
  background: rgba(7,13,23,.38);
  backdrop-filter: saturate(1.2);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  letter-spacing: -.01em;
  text-shadow: 0 1px 2px rgba(0,0,0,.72);
}
.team-matchup strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-matchup span {
  color: #fff;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  flex: 0 0 auto;
}
.upcoming-info { display: grid; gap: 4px; color: var(--muted); font-size: 12px; line-height: 1.25; }
.upcoming-info span:first-child { color: var(--ink); font-weight: 800; }
.probable-pitchers {
  display: grid;
  gap: 2px;
  color: var(--muted);
}
.probable-pitchers strong {
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}
.schedule-section { scroll-margin-top: 90px; }
.schedule-tag {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  color: #fff;
  background: #7c3aed;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}
.sport-tag--inline {
  color: var(--muted);
  background: transparent;
}
.schedule-controls {
  position: sticky;
  top: var(--header-height, 58px);
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--paper) 94%, #020611);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.schedule-empty {
  margin-bottom: 14px;
}
.schedule-picker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  position: relative;
}
.schedule-picker::after {
  position: absolute;
  right: 14px;
  top: 50%;
  margin-top: -5px;
}
.schedule-picker--month::after {
  display: none;
}
.schedule-picker select {
  min-width: 240px;
  min-height: 38px;
  padding: 7px 40px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03)),
    rgba(15,23,42,.82);
  font: inherit;
  text-transform: none;
  appearance: none;
  outline: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 18px rgba(0,0,0,.2);
}
.schedule-picker select:disabled {
  opacity: .58;
}
.schedule-month-control {
  display: inline-grid;
  grid-template-columns: 34px minmax(170px, 1fr) 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  overflow: hidden;
}
.schedule-month-control input {
  min-height: 36px;
  padding: 7px 10px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}
.schedule-month-button {
  width: 34px;
  height: 36px;
  border: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}
.schedule-month-button:disabled,
.schedule-month-control input:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.schedule-section[hidden],
.schedule-month[hidden] {
  display: none !important;
}
.schedule-month {
  margin-top: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: 0 1px 5px var(--surface-shadow);
  overflow: hidden;
}
.schedule-month h3 {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.schedule-agenda {
  display: none;
}
.schedule-agenda-day {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-top: 1px solid var(--line);
}
.schedule-agenda-day--today {
  border-radius: 8px;
  background: color-mix(in srgb, #0f766e 13%, var(--paper));
  box-shadow: inset 3px 0 0 #0f766e;
}
.schedule-agenda-date {
  display: grid;
  align-content: start;
  gap: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.schedule-agenda-date strong {
  color: var(--ink);
  font-size: 14px;
}
.schedule-agenda-games {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.schedule-weekdays,
.schedule-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.schedule-weekdays {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: rgba(15,23,42,.04);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.schedule-weekdays span {
  padding: 8px 10px;
  border-right: 1px solid var(--line);
}
.schedule-weekdays span:last-child { border-right: 0; }
.schedule-day {
  min-height: 104px;
  padding: 6px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, #e5e7eb);
}
.schedule-day:nth-child(7n) { border-right: 0; }
.schedule-day--blank {
  background: rgba(148,163,184,.08);
}
.schedule-day--today {
  box-shadow: inset 0 0 0 2px #0f766e;
}
.schedule-day--today,
.schedule-agenda-day--today,
.schedule-agenda-day,
.schedule-month {
  scroll-margin-top: calc(var(--header-height, 58px) + var(--schedule-controls-height, 76px) + 30px);
}
.schedule-day--game {
  background: var(--paper);
}
.schedule-day-number {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.schedule-game {
  display: grid;
  gap: 4px;
  padding: 6px;
  border-left: 4px solid var(--team-color);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 11px;
  overflow: hidden;
}
.schedule-game--final {
  background: color-mix(in srgb, var(--team-color) 10%, var(--paper));
}
.schedule-game--live {
  background: color-mix(in srgb, #0f766e 18%, var(--paper));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, #0f766e 55%, var(--line)),
    0 0 0 1px rgba(15,118,110,.14);
}
.schedule-game--live .schedule-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #67e8f9;
}
.schedule-game--live .schedule-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.18);
  animation: livePulse 1.8s ease-in-out infinite;
}
.schedule-game--live .schedule-score {
  padding: 1px 6px;
  border: 1px solid color-mix(in srgb, #22c55e 44%, var(--line));
  border-radius: 4px;
  color: color-mix(in srgb, #22c55e 34%, var(--ink));
  background: color-mix(in srgb, #22c55e 10%, transparent);
}
@keyframes livePulse {
  0%, 100% {
    opacity: .72;
    transform: scale(.92);
    box-shadow: 0 0 0 3px rgba(34,197,94,.12);
  }
  50% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(34,197,94,.22);
  }
}
.schedule-game + .schedule-game { margin-top: 7px; }
.schedule-game__top,
.schedule-game__meta,
.schedule-game__result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.schedule-game__matchup {
  font-weight: 900;
  line-height: 1.15;
}
.schedule-game__main {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  min-width: 0;
}
.schedule-game__logos {
  display: grid;
  grid-template-columns: 16px 6px 16px;
  align-items: center;
  width: 36px;
  min-width: 36px;
  min-height: 22px;
  overflow: hidden;
}
.schedule-game__logos span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  max-width: 22px;
  min-height: 22px;
  max-height: 22px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--team-color) 18%, var(--paper));
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font-size: 8px;
  font-weight: 950;
  overflow: hidden;
  contain: paint;
}
.schedule-game__logos > span > img,
.schedule-game__logo-img {
  display: block;
  width: 19px !important;
  height: 19px !important;
  max-width: 19px !important;
  max-height: 19px !important;
  object-fit: contain;
}
.schedule-game__logo-opponent {
  grid-column: 3;
  margin-left: -4px;
  background: var(--paper);
}
.schedule-game__meta {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
}
.schedule-game__result {
  justify-content: flex-start;
  min-height: 22px;
}
.schedule-game__result strong {
  font-size: 13px;
  font-weight: 950;
}
.schedule-result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}
.schedule-result--win { background: #15803d; }
.schedule-result--loss { background: #b91c1c; }
.schedule-result--tie { background: #64748b; }
.upcoming-tv { display: flex; justify-content: flex-end; gap: 5px; flex-wrap: wrap; min-width: 76px; }
.upcoming-tv .lineup-button {
  flex: 1 0 100%;
  width: 100%;
}
.tv-badge, .tv-network {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 3px;
  color: #fff;
  background: #4b5563;
  font-size: 10px;
  font-weight: 900;
}
.tv-badge.nbcsp, .tv-network.nbcsp { background: #0b77b6; }
.tv-badge.fox, .tv-network.fox { background: #003087; }
.tv-badge.espn, .tv-network.espn { background: #e8000d; }
.tv-badge.tnt, .tv-network.tnt { background: #4a0e8f; }
.tv-badge.apple, .tv-network.apple { background: #111827; }
.tv-badge.abc, .tv-network.abc { background: #174ea6; }
.tv-badge.phl, .tv-network.phl { background: #7a2e8f; }

.sidebar { display: grid; gap: 16px; align-content: start; }
.sidebar-section { padding: 16px; }
.sidebar-section h3 { margin-bottom: 12px; }
.recent-item {
  position: relative;
  display: block;
  min-height: 0;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.1);
  border-left: 4px solid var(--team-color);
  border-radius: 6px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.recent-item + .recent-item { margin-top: 10px; }
.recent-main {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  font-size: 13px;
}
.recent-main > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 900;
}
.recent-matchup {
  display: grid;
  gap: 3px;
  padding-top: 2px;
  line-height: 1.15;
}
.recent-matchup strong,
.recent-matchup small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-matchup strong {
  color: #f8fafc;
  font-size: 15px;
}
.recent-matchup small {
  color: rgba(226,232,240,.66);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
}
.recent-date {
  color: rgba(226,232,240,.5);
}
.recent-record {
  justify-self: end;
  color: #fff;
  background: var(--team-color);
  background: color-mix(in srgb, var(--team-color) 84%, #111827);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0,0,0,.16);
}
.recent-summary {
  margin: 12px 0 0;
  padding: 10px 11px;
  list-style: none;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 5px;
  color: rgba(226,232,240,.86);
  background: rgba(2,6,12,.26);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  overflow: hidden;
}
.recent-summary li {
  position: relative;
  padding-left: 14px;
}
.recent-summary li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--team-color);
  box-shadow: 0 0 0 2px rgba(255,255,255,.08);
}
.recent-summary li + li {
  margin-top: 9px;
}
.recent-highlights {
  display: grid;
  gap: 6px;
  margin-top: 9px;
}
.recent-highlight {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 6px 7px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 5px;
  color: #f8fafc;
  background: rgba(2,6,12,.2);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.recent-highlight:hover {
  border-color: color-mix(in srgb, var(--team-color) 58%, rgba(255,255,255,.22));
  background: rgba(255,255,255,.06);
}
.recent-highlight__thumb {
  position: relative;
  display: block;
  width: 58px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(255,255,255,.11), rgba(2,6,12,.55));
}
.recent-highlight__thumb::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: translate(-36%, -50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid rgba(255,255,255,.92);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
.recent-highlight img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
}
.recent-highlight span {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.recent-highlight strong {
  overflow: hidden;
  color: #fff;
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-highlight small {
  color: rgba(226,232,240,.58);
  font-size: 9.5px;
  font-weight: 850;
  text-transform: uppercase;
}
.recent-highlights-pending {
  margin-top: 9px;
  padding: 7px 9px;
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 5px;
  color: rgba(226,232,240,.58);
  background: rgba(2,6,12,.16);
  font-size: 10.5px;
  font-weight: 800;
}
.recent-logos {
  display: grid;
  grid-template-columns: 31px 12px 31px;
  align-items: center;
  justify-items: center;
  width: 74px;
  min-width: 0;
  padding-top: 1px;
}
.recent-logos::before {
  content: "vs";
  grid-column: 2;
  color: rgba(226,232,240,.62);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}
.recent-logos .result-logo:first-child {
  grid-column: 1;
}
.recent-logos .result-logo {
  width: 31px;
  height: 31px;
}
.recent-logos .result-logo + .result-logo {
  grid-column: 3;
}
.result-logo--opponent {
  width: 31px;
  height: 31px;
}
.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.standings-table--large { font-size: 14px; }
.standings-table--large td, .standings-table--large th { padding: 12px 0; }
.standings-table th {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  text-align: right;
  padding: 6px 0;
}
.standings-table th:first-child, .standings-table td:first-child { text-align: left; }
.standings-table--league th:first-child,
.standings-table--league td:first-child {
  width: 46px;
  text-align: center;
}
.standings-table td {
  padding: 7px 8px;
  text-align: right;
  border-top: 1px solid var(--line);
  font-weight: 700;
}
.standings-table tbody td:not(:first-child) {
  border-top-color: rgba(255,255,255,.16);
}
.stat-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-weight: 900;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,.7);
  box-shadow: none;
}
.standings-table tbody tr {
  background:
    linear-gradient(90deg,
      rgba(0,0,0,.28) 0%,
      rgba(0,0,0,.16) 38%,
      rgba(0,0,0,.08) 62%,
      rgba(0,0,0,.22) 100%),
    var(--team-color);
}
.standings-table tbody tr td {
  color: #fff;
}
.mini-team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  width: 100%;
  padding: 3px 8px 3px 0;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0,0,0,.65);
}
.result-logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: visible;
}
.result-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.25));
}
.result-logo span {
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0,0,0,.65);
}

.teams-grid, .tv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.team-card, .tv-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 1px 5px var(--surface-shadow);
}
.team-card-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 18px;
  color: #fff;
  text-decoration: none;
}
.team-card-header:hover { filter: brightness(1.04); }
.team-card-city { display: block; font-size: 12px; opacity: .78; font-weight: 800; }
.team-card-name { display: block; font-size: 24px; }
.sport-pill {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  font-size: 11px;
  font-weight: 900;
}
.team-card-body { display: grid; grid-template-columns: repeat(3, 1fr); }
.team-card-body a {
  padding: 13px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  border-right: 1px solid var(--line);
}
.team-card-body a:last-child { border-right: 0; }
.team-card-body a:hover { background: var(--surface-hover); }
.team-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding: 22px;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(0,0,0,.18), rgba(0,0,0,.44)),
    var(--team-color);
  border: 1px solid color-mix(in srgb, var(--team-accent) 42%, transparent);
  border-radius: 6px;
  box-shadow: 0 12px 26px var(--surface-shadow);
}
.team-hero h1 {
  margin: 2px 0 0;
  color: #fff;
  font-size: clamp(32px, 5vw, 56px);
  line-height: .96;
}
.team-hero .eyebrow {
  color: rgba(255,255,255,.78);
  margin: 0;
}
.team-hero__logo {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
}
.team-hero__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.28));
}
.team-hero__logo span {
  font-size: 20px;
  font-weight: 900;
}
.team-hero__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.team-hero__actions a {
  padding: 9px 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 5px;
  background: rgba(255,255,255,.12);
}
.team-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}
.team-feature-game {
  margin-bottom: 18px;
}
.team-next-game {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid;
  border-radius: 6px;
  box-shadow: 0 1px 5px var(--surface-shadow);
}
.team-next-game__logos {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.team-next-game__logos strong {
  font-size: 22px;
  line-height: 1.1;
}
.team-next-game__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.team-section-heading {
  margin-top: 22px;
}
.team-upcoming-list .upcoming-item {
  padding: 12px;
}
.tv-card { padding: 18px; }
.tv-card.preferred { border-color: #7dc7e8; box-shadow: 0 0 0 3px rgba(11,119,182,.12); }
.tv-card h2 { margin: 14px 0 8px; font-size: 18px; }
.tv-card p, .info-panel p { color: var(--muted); line-height: 1.5; }
.info-panel { padding: 22px; }
.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.empty-inline {
  color: var(--muted);
  font-size: 13px;
  padding: 10px 0;
}
.stats-panel { padding: 16px 18px; }
.league-standings-panel {
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  -webkit-overflow-scrolling: touch;
}
.league-scope {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.league-controls {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
  padding: 6px 0;
  background: var(--paper);
}
.league-picker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  position: relative;
}
.league-picker::after {
  position: absolute;
  right: 14px;
  top: 50%;
  margin-top: -5px;
}
.league-picker select {
  min-width: 118px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 40px 0 12px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03)),
    rgba(15,23,42,.82);
  font: inherit;
  text-transform: none;
  appearance: none;
  outline: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 18px rgba(0,0,0,.2);
}
.league-scope[hidden],
.league-standings[hidden] {
  display: none !important;
}
.league-scope-control {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 14px;
  padding: 6px 0;
  background: var(--paper);
}
.league-standings-panel.controls-stuck {
  padding-top: 116px;
}
.league-standings-panel.controls-stuck .league-controls,
.league-standings-panel.controls-stuck .league-standings:not([hidden]) .league-scope-control {
  position: fixed;
  left: var(--league-controls-left, 16px);
  width: min(var(--league-controls-width, calc(100vw - 32px)), 520px);
  z-index: 18;
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.league-standings-panel.controls-stuck .league-controls {
  top: calc(var(--header-height, 80px) + 52px);
}
.league-standings-panel.controls-stuck .league-standings:not([hidden]) .league-scope-control {
  top: calc(var(--header-height, 80px) + 102px);
}
.league-standings {
  scroll-margin-top: calc(var(--header-height, 80px) + 134px);
}
.league-controls .league-picker,
.league-scope-control .league-picker {
  width: min(344px, 100%);
}
.league-controls .league-picker select,
.league-scope-control .league-picker select {
  width: 100%;
}
.league-picker--scope select {
  min-width: 210px;
}
.standings-table--league {
  min-width: 560px;
  table-layout: fixed;
}
.standings-table--league th:nth-child(2),
.standings-table--league td:nth-child(2) {
  width: 44%;
  text-align: left;
}
.standings-table--league .mini-team {
  width: auto;
  justify-content: flex-start;
}
.standings-table--league th:nth-child(n+3),
.standings-table--league td:nth-child(n+3) {
  width: 14%;
}
.standings-row--philly {
  outline: 2px solid rgba(255,255,255,.72);
  outline-offset: -2px;
  scroll-margin-top: calc(var(--header-height, 80px) + 24px);
}

.site-footer {
  background: var(--footer-bg);
  color: #fff;
}
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.site-footer h4 {
  margin: 0 0 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}
.site-footer a, .site-footer span {
  display: block;
  margin: 7px 0;
  color: rgba(255,255,255,.64);
  font-size: 13px;
}
.footer-bottom {
  padding: 13px 16px;
  text-align: center;
  color: rgba(255,255,255,.44);
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12px;
}

@media (max-width: 920px) {
  .site-header { width: 100%; overflow: hidden; }
  .header-inner {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    height: auto;
    padding: 12px 16px;
    gap: 12px;
  }
  .main-nav {
    order: 3;
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-link {
    flex: 0 0 auto;
    padding: 12px 10px 11px;
    white-space: nowrap;
  }
  .theme-picker { margin-left: auto; }
  .home-layout { grid-template-columns: 1fr; }
  .team-detail-grid { grid-template-columns: 1fr; }
  .team-hero {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 16px;
  }
  .team-hero__logo {
    width: 64px;
    height: 64px;
  }
  .team-hero h1 {
    font-size: 30px;
  }
  .team-hero__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .team-next-game__logos {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
  }
  .team-next-game__logos strong {
    font-size: 17px;
  }
  .upcoming-item { grid-template-columns: 1fr; }
  .upcoming-info, .upcoming-tv { justify-content: flex-start; }
  .upcoming-tv {
    width: 100%;
    min-width: 0;
  }
  .upcoming-tv .lineup-button,
  .upcoming-info .lineup-button,
  .team-next-game__meta .lineup-button {
    width: 100%;
    min-height: 44px;
  }
  .upcoming-teams { grid-template-columns: 100px minmax(0, 1fr) 100px; }
  .schedule-weekdays,
  .schedule-calendar { display: none; }
  .schedule-agenda { display: block; }
  .schedule-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: -4px 0 12px;
  }
  .schedule-picker,
  .schedule-picker--month {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
    font-size: 11px !important;
  }
  .schedule-picker > span {
    font-size: 11px !important;
    line-height: 1;
  }
  .schedule-picker select,
  .schedule-month-control {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .schedule-picker select,
  .schedule-month-control input {
    min-height: 34px;
    font-size: 13px !important;
  }
  .schedule-month-button {
    height: 34px;
    font-size: 16px !important;
  }
  .schedule-section .section-heading h2 {
    font-size: 18px !important;
    line-height: 1.1;
  }
  .schedule-section {
    scroll-margin-top: 150px;
  }
  .schedule-month {
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }
  .schedule-month h3 {
    padding: 0 2px 10px;
    border-bottom: 0;
    color: var(--muted);
    font-size: 13px !important;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: .04em;
  }
  .schedule-agenda-day {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0;
    border-top: 0;
  }
  .schedule-agenda-day + .schedule-agenda-day {
    margin-top: 12px;
  }
  .schedule-agenda-date,
  .schedule-agenda-date span {
    font-size: 10px !important;
    line-height: 1.1;
  }
  .schedule-agenda-date {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    width: fit-content;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    letter-spacing: .04em;
  }
  .schedule-agenda-date strong {
    font-size: 12px !important;
    line-height: 1.1;
  }
  .schedule-game {
    gap: 5px;
    padding: 8px 9px;
    font-size: 11px !important;
    border-left-width: 3px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--paper) 92%, #0f172a);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent);
  }
  .schedule-game__top {
    min-height: 16px;
  }
  .schedule-game__top strong {
    font-size: 11px !important;
    line-height: 1;
  }
  .schedule-game__main {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
  }
  .schedule-game__logos {
    grid-template-columns: 15px 5px 15px;
    width: 34px;
    min-width: 34px;
    min-height: 20px;
  }
  .schedule-game__logos span {
    width: 20px;
    height: 20px;
    min-width: 20px;
    max-width: 20px;
    min-height: 20px;
    max-height: 20px;
    font-size: 8px;
  }
  .schedule-game__logos > span > img,
  .schedule-game__logo-img {
    width: 17px !important;
    height: 17px !important;
    max-width: 17px !important;
    max-height: 17px !important;
  }
  .schedule-game__matchup {
    font-size: 12px !important;
    line-height: 1.12;
  }
  .schedule-game__result {
    min-height: 0;
    margin-top: 3px;
    gap: 5px;
  }
  .schedule-game__result strong {
    font-size: 12px !important;
    line-height: 1;
  }
  .schedule-result {
    min-width: 20px;
    min-height: 18px;
    padding: 1px 6px;
    font-size: 9px;
  }
  .schedule-game__meta {
    justify-content: flex-start;
    gap: 8px;
    padding-top: 2px;
    border-top: 1px solid color-mix(in srgb, var(--line) 45%, transparent);
    font-size: 9px !important;
    line-height: 1.1;
  }
  .schedule-empty {
    padding: 18px;
  }
}
@media (max-width: 640px) {
  .container { width: min(100% - 20px, 1180px); padding-top: 12px; }
  .header-inner { padding: 10px; }
  .logo {
    gap: 8px;
    min-width: 0;
  }
  .logo-mark {
    width: 54px;
    height: 34px;
    flex: 0 0 54px;
  }
  .logo-text {
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
  }
  .main-nav {
    padding-bottom: 2px;
  }
  .nav-link {
    font-size: 11px;
    padding-inline: 9px;
  }
  .hero { padding: 22px; display: block; }
  .hero-status { margin-top: 18px; }
  .game-cards-grid, .game-cards-grid--wide { grid-template-columns: 1fr; }
  .game-scores { gap: 10px; }
  .live-matchup { min-height: 112px; }
  .live-team { grid-template-columns: minmax(44px, 1fr) minmax(34px, auto); gap: 6px; padding: 10px 10px; }
  .live-team--home { grid-template-columns: minmax(34px, auto) minmax(44px, 1fr); }
  .live-logo { width: 46px; height: 46px; }
  .live-name { display: block; font-size: 11px; }
  .score-value { font-size: 34px; min-width: 34px; }
  .baseball-live { grid-template-columns: 56px 1fr; }
  .baseball-players { grid-column: 1 / -1; }
  .team-matchup { font-size: 13px; gap: 5px; padding: 0 12px; }
  .team-split img { width: 48px; height: 48px; }
  .upcoming-teams { grid-template-columns: 74px minmax(0, 1fr) 74px; min-height: 52px; }
  .team-split--away { padding-right: 10px; }
  .team-split--home { padding-left: 10px; }
  .recent-item { padding: 10px; }
  .recent-main { grid-template-columns: 68px minmax(0, 1fr) auto; gap: 10px; }
  .recent-logos { grid-template-columns: 28px 12px 28px; width: 68px; }
  .result-logo { width: 28px; height: 28px; }
  .result-logo--opponent { width: 28px; height: 28px; }
  .team-quick-pick {
    order: 4;
    width: 100%;
    min-width: 0;
    justify-content: center;
    gap: 5px;
    padding: 4px;
  }
  .team-quick-pick a {
    width: 31px;
    height: 31px;
  }
  .team-quick-pick img {
    width: 24px;
    height: 24px;
  }
  .theme-picker {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }
  .theme-picker select { min-width: 130px; }
  .league-scope {
    overflow-x: visible;
  }
  .standings-table--league {
    display: block;
    min-width: 0;
    width: 100%;
  }
  .standings-table--league thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .standings-table--league tbody {
    display: grid;
    gap: 8px;
  }
  .standings-table--league tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 9px 8px 8px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 5px;
    overflow: hidden;
  }
  .standings-table--league tbody td {
    display: grid;
    gap: 3px;
    padding: 6px 4px;
    border-top: 0;
    justify-items: center;
    text-align: center;
  }
  .standings-table--league tbody td:first-child {
    position: absolute;
    top: 13px;
    left: 10px;
    width: 30px;
    padding: 0;
    text-align: center;
  }
  .standings-table--league tbody td:nth-child(2) {
    grid-column: 1 / -1;
    width: 100%;
    padding: 0 38px 8px;
    text-align: center;
  }
  .standings-table--league tbody td:nth-child(n+3)::before {
    color: rgba(226,232,240,.72);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-shadow: none;
  }
  .standings-table--league tbody td:nth-child(n+3) {
    width: 100%;
    justify-self: stretch;
    place-items: center;
  }
  .standings-table--league tbody td:nth-child(3) { grid-column: 1; }
  .standings-table--league tbody td:nth-child(4) { grid-column: 2; }
  .standings-table--league tbody td:nth-child(5) { grid-column: 3; }
  .standings-table--league tbody td:nth-child(3)::before { content: "Record"; }
  .standings-table--league tbody td:nth-child(4)::before { content: "Home"; }
  .standings-table--league tbody td:nth-child(5)::before { content: "Away"; }
  .standings-table--league .mini-team {
    gap: 7px;
    justify-content: center;
    min-height: 30px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
  }
  .standings-table--league .result-logo {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
  }
  .standings-table--league .stat-value {
    justify-self: center;
    width: 100%;
    min-width: 0;
    font-size: 13px;
    text-align: center;
  }
  .standings-table--league tbody td:first-child .stat-value {
    width: auto;
    min-width: 28px;
    min-height: 28px;
    border-radius: 999px;
    background: rgba(0,0,0,.26);
    font-size: 11px;
  }
  .schedule-controls {
    display: grid;
    gap: 8px;
    padding: 8px;
    border-radius: 5px;
  }
  .schedule-picker {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .schedule-picker > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .schedule-picker select {
    min-height: 36px;
    padding: 6px 34px 6px 10px;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
  }
  .schedule-month-control {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    min-height: 36px;
  }
  .schedule-picker select,
  .schedule-month-control input {
    min-height: 36px;
    font-size: 12px !important;
    text-align: center;
  }
  .schedule-month-button {
    height: 36px;
  }
  .schedule-month h3 {
    display: none;
  }
  .schedule-agenda-day {
    gap: 6px;
  }
  .schedule-agenda-day + .schedule-agenda-day {
    margin-top: 10px;
  }
  .schedule-agenda-date {
    padding: 4px 8px;
  }
  .schedule-game {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas:
      "time main"
      "meta main";
    align-items: center;
    column-gap: 9px;
    row-gap: 3px;
    padding: 8px;
    min-height: 76px;
  }
  .schedule-game__top {
    grid-area: time;
    align-self: start;
    min-height: 0;
    display: block;
  }
  .schedule-game__main {
    grid-area: main;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
  }
  .schedule-game__meta {
    grid-area: meta;
    align-self: end;
    display: flex;
    padding-top: 0;
    border-top: 0;
  }
  .schedule-game__meta span:not(.schedule-status) {
    display: none;
  }
  .schedule-game__matchup {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .schedule-game__result {
    margin-top: 3px;
    flex-direction: row;
    align-items: center;
  }
  .schedule-tag {
    display: inline-flex;
    margin-top: 5px;
    padding: 2px 5px;
    font-size: 7px;
  }
  .schedule-game__top,
  .schedule-game__meta,
  .schedule-game__result {
    align-items: center;
    flex-direction: row;
  }
  .footer-inner { grid-template-columns: 1fr; }
}
