:root {
  --bg: #060708;
  --panel: #0e1114;
  --panel-2: #14181d;
  --panel-3: #1c232a;
  --text: #f5f7fb;
  --muted: #a6b0c3;
  --faint: #667085;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #d9ff66;
  --accent-2: #7dd3fc;
  --green: #35d07f;
  --red: #ff5c7a;
  --orange: #f6a84a;
  --blue: #5da7ff;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  background-attachment: fixed;
}

button, input, select { font: inherit; }
button { cursor: pointer; }

.shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 18px 18px 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font: 900 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin: 0; font-size: clamp(40px, 5vw, 64px); line-height: 0.9; letter-spacing: -0.08em; }
h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
h3 { margin: 0; font-size: 15px; }
.page-lead { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.page-link { padding: 6px 9px; font-size: 10px; white-space: nowrap; }

.top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.sync-status { color: var(--muted); font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: 0.08em; }
.hero-copy { margin: 6px 0 0; color: var(--faint); font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; }

.ghost-button, .pill-button, .icon-button, .tab {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.ghost-button, .pill-button {
  padding: 9px 13px;
  font-weight: 800;
  font-size: 12px;
}

.ghost-button:hover, .pill-button:hover, .icon-button:hover, .tab:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(217, 255, 102, 0.42); }

.tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 18px;
  padding: 0;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 6px;
  position: sticky;
  top: 10px;
  z-index: 5;
  backdrop-filter: blur(14px);
}

.tab { padding: 11px 8px; color: var(--muted); font-weight: 900; font-size: 12px; border: 0; border-right: 1px solid rgba(255, 255, 255, 0.055); border-radius: 0; }
.tab:last-child { border-right: 0; }
.tab.active { color: var(--text); background: rgba(217, 255, 102, 0.08); box-shadow: inset 2px 0 0 var(--accent); }

.app { min-height: 55vh; }

.web-shell { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; align-items: start; }
.side-panel { position: sticky; top: 18px; display: grid; gap: 12px; min-width: 0; }
.brand-card { display: grid; gap: 7px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.panel-kicker { color: var(--accent); font: 900 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.16em; text-transform: uppercase; }
.panel-title { color: var(--text); font: 900 17px/1.05 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -0.05em; }
.view-tabs { display: grid; gap: 0; border-top: 1px solid var(--line); background: transparent; }
.view-tabs .tab { border: 0; border-bottom: 1px solid var(--line); text-align: left; padding: 12px 0; }
.view-tabs .tab:last-child { border-bottom: 0; }
.route-card { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); font: 800 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.route-row { display: flex; justify-content: space-between; gap: 12px; }
.route-row b { color: var(--text); font-weight: 900; }
.copy-inline { justify-self: start; padding: 6px 8px; font-size: 10px; }
.main-panel { min-width: 0; }
.workspace { display: grid; grid-template-columns: minmax(310px, 0.72fr) minmax(520px, 1.28fr); gap: 18px; align-items: start; }
.score-rail { display: grid; gap: 10px; min-width: 0; }
.detail-stage { min-width: 0; position: sticky; top: 18px; }
.board-lead { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.board-lead h2 { font: 950 26px/0.95 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -0.08em; }
.score-counts { display: flex; gap: 8px; color: var(--muted); font: 850 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.score-counts span { padding-left: 8px; border-left: 1px solid var(--line); }
.board-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.follow-manager { display: grid; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.follow-manager h3 { color: var(--faint); font: 950 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px; }
.follow-chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.follow-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 999px; font: 850 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.follow-chip span { color: var(--accent); }
.follow-chip b { color: var(--faint); font-size: 13px; line-height: 1; }
.follow-chip:hover { border-color: rgba(217, 255, 102, 0.42); background: rgba(217, 255, 102, 0.05); }
.date-row { display: flex; align-items: center; gap: 6px; }
.date-row input { min-width: 132px; }
.game-card { border: 0; border-left: 3px solid transparent; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.game-card.selected { border-left-color: var(--accent); background: rgba(217, 255, 102, 0.045); }
.team-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 3px 0; }
.team-line > div, .team-link { display: flex; align-items: center; gap: 8px; min-width: 0; }
.team-link { max-width: 100%; padding: 0; color: inherit; background: transparent; border: 0; text-align: left; }
.team-link:hover b, .team-link:focus-visible b { color: var(--accent); }
.inline-team-link { margin: 0; font: inherit; }
.team-line b { font: 950 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); }
.team-line span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-line strong { font: 850 24px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -0.07em; }
.team-line.winner strong { font-weight: 1000; }
.game-actions { display: flex; justify-content: space-between; gap: 10px; color: var(--faint); font: 800 10px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; border-top: 1px solid rgba(255,255,255,0.055); padding-top: 7px; }
.detail-page { display: grid; gap: 12px; min-width: 0; }
.detail-hero { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; }
.detail-hero h2 { font: 950 clamp(30px, 4.5vw, 58px)/0.88 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -0.09em; }
.detail-hero p { margin: 6px 0 0; color: var(--muted); font: 800 12px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; }
.team-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.timer-module { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(246, 168, 74, 0.28); color: var(--orange); font: 850 11px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace; }
.timer-module b { display: block; color: var(--orange); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.timer-module span { color: var(--muted); }
.timer-module strong { font: 950 22px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -0.08em; }
.timer-module.detail { padding: 13px 0; border-bottom: 1px solid rgba(246, 168, 74, 0.2); }
.timer-module.detail strong { font-size: 34px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(300px, 0.97fr); gap: 12px; align-items: start; }
.action-module { display: grid; gap: 10px; padding: 12px 0 16px; border-top: 1px solid var(--line); }
.action-module > header { color: var(--accent); font: 950 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.16em; text-transform: uppercase; }
.play-stack { display: grid; gap: 0; max-height: 720px; overflow: auto; border: 0; border-top: 1px solid var(--line); padding: 0; background: transparent; }
.team-state-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.team-state-row { display: grid; gap: 9px; padding-top: 10px; border-top: 1px solid var(--line); }
.team-state-name { display: flex; align-items: center; gap: 8px; font: 950 16px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.stat-strip { display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--muted); font: 850 11px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace; }
.stat-strip span { display: grid; gap: 3px; min-width: 48px; }
.stat-strip b { color: var(--faint); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; }
.team-state-wide { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font: 850 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.page-section { display: grid; gap: 14px; min-width: 0; }
.segmented.wide { justify-self: start; margin-bottom: 4px; }
.team-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; align-items: start; }
.team-list { position: sticky; top: 18px; display: grid; gap: 7px; min-width: 0; }
.team-button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 0; color: var(--muted); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font: 900 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: left; }
.team-button.active, .team-button:hover { color: var(--accent); background: transparent; }
.team-stage { min-width: 0; }
.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.player-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 30; width: min(390px, 94vw); padding: 20px; background: linear-gradient(180deg, rgba(22,29,42,0.98), rgba(7,10,16,0.98)); border-left: 1px solid var(--line); box-shadow: -24px 0 90px rgba(0,0,0,0.45); overflow-y: auto; }
.player-drawer .icon-button { float: right; }
.player-drawer .avatar { width: 96px; height: 96px; margin-bottom: 14px; }
.player-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.player-actions .ghost-button { text-decoration: none; }
.player-context { display: grid; gap: 9px; margin: 16px 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.player-context header { color: var(--accent); font: 950 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.16em; text-transform: uppercase; }
.player-context p { margin: 0; color: var(--muted); font: 800 12px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; }
.player-stat-strip { gap: 10px 14px; }
.player-logs { display: grid; gap: 10px; margin: 16px 0; padding: 12px 0; border-top: 1px solid var(--line); }
.player-logs header { color: var(--accent); font: 950 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.16em; text-transform: uppercase; }
.player-logs p { margin: 0; color: var(--muted); font: 800 12px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; }
.log-list { display: grid; border-top: 1px solid var(--line); }
.log-row { display: grid; grid-template-columns: 44px 44px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); font: 800 11px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace; }
.log-row b { color: var(--text); }
.log-row em { color: var(--muted); font-style: normal; text-align: right; }
.initials { display: grid; place-items: center; font-weight: 1000; }

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.control-group { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.segmented { display: flex; gap: 0; padding: 0; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.segmented button { border: 0; border-right: 1px solid rgba(255, 255, 255, 0.06); padding: 9px 13px; color: var(--muted); background: transparent; border-radius: 0; font-size: 12px; font-weight: 900; }
.segmented button:last-child { border-right: 0; }
.segmented button.active { color: var(--text); background: rgba(217, 255, 102, 0.1); box-shadow: inset 0 -2px 0 var(--accent); }

select, input[type="date"] {
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 12px;
  color-scheme: dark;
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; align-items: start; }
.stack { display: grid; gap: 12px; }

.card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.game-card {
  padding: 12px 14px;
  display: grid;
  gap: 8px;
  align-self: start;
  text-align: left;
  width: 100%;
  color: var(--text);
}
.game-card:hover { border-color: rgba(125, 211, 252, 0.4); transform: translateY(-1px); }

.game-top, .game-mid, .row, .split-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.game-top { min-height: 16px; }
.game-mid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; width: 100%; align-self: stretch; }
.team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  width: 100%;
  padding: 3px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.team.home { text-align: left; justify-items: stretch; }
.team-id { display: flex; align-items: center; gap: 9px; min-width: 0; max-width: 100%; }
.team.home .team-id { flex-direction: row; }
.logo { width: 28px; height: 28px; border-radius: 50%; object-fit: contain; background: rgba(255, 255, 255, 0.055); padding: 4px; flex: none; }
.abbr { font: 950 16px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -0.04em; }
.name { color: var(--muted); font-size: 12px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 148px; }
.score { font: 650 28px/0.9 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -0.08em; min-width: 30px; text-align: right; }
.winner .score { font-weight: 900; }
.winner { color: var(--text); }
.team.no-score { min-height: 32px; }
.matchup { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 2px 0 1px; }
.matchup-team { display: flex; align-items: center; gap: 9px; min-width: 0; }
.matchup-team.home { justify-content: end; text-align: right; }
.matchup-team.home .logo { order: 2; }
.matchup-at { color: var(--faint); font: 900 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.card-situation { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font: 800 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; border-top: 1px solid rgba(255, 255, 255, 0.07); padding-top: 7px; }
.card-situation span + span::before { content: "/"; margin-right: 10px; color: rgba(126, 138, 160, 0.45); }
.basketball-context { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font: 800 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; border-top: 1px solid rgba(255, 255, 255, 0.07); padding-top: 7px; }
.basketball-context span + span::before { content: "/"; margin-right: 10px; color: rgba(126, 138, 160, 0.45); }
.status { text-align: center; min-width: 84px; display: grid; align-content: center; gap: 5px; }
.league { color: var(--accent); font: 900 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.16em; }
.detail { color: var(--muted); font: 800 12px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--green); box-shadow: 0 0 0 5px rgba(53, 208, 127, 0.12); }
.meta { color: #7e8aa0; font: 700 10px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; display: flex; flex-wrap: wrap; gap: 4px 9px; }
.meta span { padding: 0; background: transparent; border-radius: 0; }
.meta span + span::before { content: "/"; margin-right: 9px; color: rgba(126, 138, 160, 0.45); }
.follow-row { gap: 8px 13px; padding-top: 2px; }
.follow-btn { padding: 0; font: 800 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.04em; color: #7d889a; background: transparent; border: 0; border-radius: 0; text-transform: uppercase; }
.follow-btn:hover { color: var(--text); background: transparent; }
.follow-btn.active { color: var(--accent); }
.game-state-pre:not(.detail-scoreline) .game-mid { padding: 1px 0; }
.game-state-pre:not(.detail-scoreline) .status { align-content: center; }
.game-state-pre:not(.detail-scoreline) .meta { margin-top: 0; }
.game-state-in { border-color: rgba(53, 208, 127, 0.19); }
.game-state-in .game-top .detail { color: #c2ccd9; }

.empty, .error, .loading { padding: 42px 18px; text-align: center; color: var(--muted); }
.error { color: #ffc1cb; }

.section-title { margin: 20px 0 9px; color: var(--muted); font: 900 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.16em; text-transform: uppercase; }

.table-wrap { width: 100%; max-width: 100%; overflow-x: auto; border-radius: 6px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
table { width: 100%; border-collapse: collapse; min-width: 560px; background: transparent; }
th, td { padding: 9px 11px; border-bottom: 1px solid var(--line); text-align: right; font-size: 13px; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--muted); font: 900 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td .ghost-button { padding: 0; background: transparent; border: 0; border-radius: 0; font-weight: 900; }
.batter-marker { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 6px; border-radius: 50%; vertical-align: -2px; font: 900 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.batter-marker.current { color: var(--orange); background: rgba(246, 168, 74, 0.14); }
.batter-marker.due { color: var(--accent); background: rgba(125, 211, 252, 0.13); border: 1px solid rgba(125, 211, 252, 0.18); }

.detail-header { display: grid; gap: 12px; min-width: 0; }
.scoreline { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.scoreline .score { font-size: clamp(46px, 10vw, 84px); }
.detail-scoreline { display: grid; gap: 10px; padding: 14px; }
.detail-scoreline .game-mid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-scoreline .team { min-height: auto; padding: 6px 0; }
.detail-scoreline .logo { width: 40px; height: 40px; }
.detail-scoreline .abbr { font-size: 17px; }
.detail-scoreline .score { font-size: clamp(46px, 8vw, 70px); }
.mini-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 9px; }
.mini-card { padding: 9px 0; background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.mini-card b { display: block; color: var(--faint); font: 900 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.12em; margin-bottom: 5px; }

.situation-card { padding: 14px; display: grid; gap: 10px; }
.situation-layout { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; }
.base-panel { display: grid; justify-items: center; gap: 2px; }
.bases { width: 76px; height: 56px; position: relative; margin: 2px auto 6px; }
.base { width: 18px; height: 18px; background: var(--panel-3); border: 1px solid var(--line); transform: rotate(45deg); position: absolute; }
.base.on { background: #f5d35b; border-color: #f5d35b; box-shadow: 0 0 20px rgba(245, 211, 91, 0.18); }
.base.second { left: 27px; top: 0; }
.base.third { left: 0; top: 26px; }
.base.first { right: 0; top: 26px; }

.pitch-zone-wrap { display: grid; grid-template-columns: auto max-content; gap: 10px; align-items: center; min-width: 0; }
.pitch-zone {
  position: relative;
  width: min(170px, 100%);
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    rgba(255, 255, 255, 0.018);
  background-size: 33.333% 33.333%;
  border-radius: 4px;
}
.zone-box { position: absolute; left: 25%; right: 25%; top: 22%; bottom: 22%; border: 2px solid rgba(245, 247, 251, 0.32); }
.zone-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.pitch-dot { position: absolute; width: 22px; height: 22px; display: grid; place-items: center; transform: translate(-50%, -50%); border-radius: 50%; color: #06111a; font: 900 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; box-shadow: 0 0 0 2px rgba(8, 10, 15, 0.76); }
.pitch-dot.ball { background: var(--green); }
.pitch-dot.strike { background: var(--accent); }
.pitch-dot.in-play { background: #f5d35b; }
.zone-legend { display: grid; gap: 8px; color: var(--muted); font: 800 10px/1.1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: 0.08em; }
.zone-legend span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--green); }
.zone-legend span:nth-child(2)::before { background: var(--accent); }
.zone-legend span:nth-child(3)::before { background: #f5d35b; }
.pitch-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; color: var(--muted); font: 750 11px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; }

.play { padding: 11px 0; display: grid; gap: 4px; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; }
.play.scoring { border-color: rgba(53, 208, 127, 0.36); background: rgba(53, 208, 127, 0.07); }
.play-meta { color: var(--muted); font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.action-meta { color: var(--faint); }

.player-card, .team-card, .schedule-card { padding: 11px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; }
.schedule-card[role="button"] { cursor: pointer; }
.schedule-card[role="button"]:hover { border-color: rgba(125, 211, 252, 0.28); background: rgba(125, 211, 252, 0.035); }
.schedule-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.schedule-main .logo { width: 34px; height: 34px; }
.player-left, .team-left { display: flex; align-items: center; gap: 11px; min-width: 0; }
.avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--panel-3); flex: none; }
.heat { font: 900 20px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.hot { color: var(--red); }
.warm { color: var(--orange); }
.cool { color: var(--accent); }
.cold { color: var(--blue); }
.neutral { color: var(--muted); }

.icon-button { width: 36px; height: 36px; font-size: 24px; line-height: 1; display: grid; place-items: center; }

@media (max-width: 720px) {
  .shell { padding: 18px 12px 34px; }
  .topbar { align-items: flex-start; gap: 14px; margin-bottom: 20px; }
  .top-actions { width: 100%; justify-content: space-between; }
  .tabs { grid-template-columns: repeat(5, max-content); overflow-x: auto; border-radius: 6px; justify-content: start; }
  .tab { min-width: 88px; }
  .controls { align-items: stretch; }
  .control-group, .segmented { width: 100%; }
  .segmented button { flex: 1; }
  .control-group input[type="date"] { flex: 1; min-width: 0; }
  .grid { grid-template-columns: 1fr; }
  .score { font-size: 40px; }
  .scoreline { grid-template-columns: 1fr; text-align: center; }
  .team, .team.home { text-align: left; }
  .team .team-id, .team.home .team-id { flex-direction: row; }
  .matchup { grid-template-columns: 1fr; gap: 8px; }
  .matchup-at { display: none; }
  .matchup-team.home { justify-content: start; text-align: left; }
  .matchup-team.home .logo { order: 0; }
  .card-situation span + span::before { margin-right: 8px; }
  .game-mid { gap: 8px; }
  .name { display: none; }
  .detail-scoreline .game-mid { grid-template-columns: 1fr; }
  .detail-scoreline .score { font-size: 52px; }
  .situation-layout { grid-template-columns: 1fr; }
  .pitch-zone-wrap { grid-template-columns: 1fr; justify-items: center; }
  .zone-legend { grid-template-columns: repeat(3, max-content); }
  .web-shell, .workspace, .team-layout, .detail-grid { grid-template-columns: 1fr; }
  .team-state-grid { grid-template-columns: 1fr; }
  .side-panel, .detail-stage, .team-list { position: static; }
  .view-tabs { grid-template-columns: repeat(5, max-content); overflow-x: auto; }
  .view-tabs .tab { min-width: 88px; border-bottom: 0; border-right: 1px solid rgba(255,255,255,0.055); }
  .detail-hero { align-items: flex-start; flex-direction: column; }
}

@media (min-width: 1000px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Watch / Listen broadcast menus */
.watch-menu {
  position: relative;
  display: inline-block;
  margin: 0 4px;
}
.watch-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #4ec0ff;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  user-select: none;
}
.watch-menu summary::-webkit-details-marker { display: none; }
.watch-menu[open] summary { background: rgba(78,192,255,0.18); }
.watch-menu ul {
  position: absolute;
  z-index: 5;
  top: calc(100% + 4px);
  right: 0;
  min-width: 200px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #16191e;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.watch-menu li { padding: 0; }
.watch-menu li a {
  display: block;
  padding: 6px 10px;
  font-size: 12px;
  color: #e6e8ec;
  text-decoration: none;
  border-radius: 6px;
}
.watch-menu li a:hover { background: rgba(78,192,255,0.12); }
.detail-broadcasts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
