/* MLB Game Detail — /mlb/game/<slug>
   Scoped under #mlb-game-detail so nothing leaks into the schedule / workbench.
   Sections: shared layout, matchup header, injuries, lineups, props, weather (wx-*). */

/* Isolated container — sits inside .main-content (horizontal flex)
   but we force it to be a full-width vertical stack with tight gaps. */
#mlb-game-detail {
  flex: 1 1 auto;
  min-width: 0;
  padding: 16px 20px 32px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
#mlb-game-detail * { box-sizing: border-box; }
#mlb-game-detail h3, #mlb-game-detail p { margin: 0; }

/* ─── Tabs (centered pill row) ─── */
#mlb-game-detail .mlb-gd-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 18px;
  padding: 0;
}
#mlb-game-detail .mlb-gd-tab {
  background: rgba(148, 163, 184, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #94a3b8;
  font-size: .82rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: .02em;
  transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease;
}
#mlb-game-detail .mlb-gd-tab:hover {
  color: #e2e8f0;
  background: rgba(148, 163, 184, .12);
  border-color: rgba(255, 255, 255, .14);
}
#mlb-game-detail .mlb-gd-tab.is-active {
  color: #0a1628;
  background: rgba(0, 211, 189, 0.75);
  border-color: rgba(0, 211, 189, 0.82);
}
#mlb-game-detail .mlb-gd-tab-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
#mlb-game-detail .mlb-gd-tab-panel[hidden] { display: none; }

/* ─── Section cards ─── */
#mlb-game-detail .mlb-gd-card {
  padding: 14px 16px;
  margin: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
}

/* ─── Matchup header ─── */
/* Back link styled to match the player dashboard's `.mlb-dash-back`:
   plain teal text with the arrow inline, no border/background. Subtle
   nudge-left on hover/active mirrors the player-dashboard interaction
   so both back affordances feel consistent. */
.mlb-gd-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  background: transparent;
  border: none;
  color: #00F5D4;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 120ms ease, transform 120ms ease;
}
.mlb-gd-back:hover {
  color: #00D3BD;
  background: transparent;
  transform: translateX(-1px);
}
.mlb-gd-back:active { transform: translateX(-1px) scale(0.97); }
.mlb-gd-matchup { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-top: 10px; }
.mlb-gd-team { display: flex; gap: 12px; align-items: center; min-width: 0; }
.mlb-gd-team-home { flex-direction: row-reverse; text-align: right; }
.mlb-gd-team-home .mlb-gd-team-info { text-align: right; }
.mlb-gd-team-info { min-width: 0; }
.mlb-gd-team-logo { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
.mlb-gd-team-code { font-size: 1.25rem; font-weight: 700; color: #f8fafc; letter-spacing: .02em; line-height: 1.1; }
.mlb-gd-team-name { font-size: .78rem; color: #94a3b8; margin-bottom: 4px; }
/* ─── Starting pitchers (Overview tab) ─── */
.mlb-gd-sp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mlb-gd-sp-card {
  padding: 16px;
  background: linear-gradient(180deg, rgba(148,163,184,.06), rgba(148,163,184,.02));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  display: flex; flex-direction: column; gap: 14px;
}
.mlb-gd-sp-top { display: flex; gap: 14px; align-items: center; min-width: 0; }
.mlb-gd-sp-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  background: rgba(148,163,184,.08);
  border: 1px solid rgba(255,255,255,.06);
}
.mlb-gd-sp-avatar.is-fallback { object-fit: contain; padding: 8px; }
.mlb-gd-sp-head { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.mlb-gd-sp-team-tag {
  display: flex; align-items: center; gap: 6px;
  font-size: .65rem; color: #94a3b8;
  text-transform: uppercase; letter-spacing: .1em; font-weight: 700;
}
.mlb-gd-sp-team-logo { width: 16px; height: 16px; object-fit: contain; }
.mlb-gd-sp-name {
  font-size: 1.25rem; font-weight: 700; color: #f8fafc;
  line-height: 1.15; letter-spacing: -.01em;
  text-decoration: none;
}
.mlb-gd-sp-name:hover { color: #67e8f9; text-decoration: underline; }
.mlb-gd-sp-chips { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.mlb-gd-sp-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  font-size: .65rem; font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase; letter-spacing: .06em;
}
.mlb-gd-sp-chip-hand {
  background: rgba(239,68,68,.12); color: #fca5a5;
  border: 1px solid rgba(239,68,68,.28);
}
.mlb-gd-sp-chip-record {
  background: rgba(148,163,184,.08); color: #cbd5e1;
  border: 1px solid rgba(148,163,184,.16);
  text-transform: none; letter-spacing: 0; font-weight: 500;
}
.mlb-gd-sp-chip-record b { color: #f8fafc; font-weight: 700; margin-left: 2px; }

.mlb-gd-sp-tabs {
  display: flex; gap: 2px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 2px;
}
.mlb-gd-sp-tab {
  background: none; border: none;
  color: #94a3b8;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 6px 10px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 120ms ease, border-color 120ms ease;
}
.mlb-gd-sp-tab:hover { color: #e2e8f0; }
.mlb-gd-sp-tab.is-active {
  color: #67e8f9;
  border-bottom-color: #22d3ee;
}
.mlb-gd-sp-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.mlb-gd-sp-stats-grid[hidden] { display: none; }
.mlb-gd-sp-split-panel[hidden] { display: none; }

/* Hand-split table (Against Hitters tab) */
.mlb-gd-sp-split-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
  color: #e2e8f0;
}
.mlb-gd-sp-split-table thead th {
  font-size: .6rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  padding: 6px 6px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: center;
}
.mlb-gd-sp-split-table thead th:first-child { text-align: left; }
.mlb-gd-sp-split-table tbody td {
  padding: 8px 6px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.mlb-gd-sp-split-table tbody tr:last-child td { border-bottom: none; }
.mlb-gd-sp-split-table .sp-split-label {
  text-align: left;
  font-weight: 700;
  color: #67e8f9;
  letter-spacing: .02em;
  font-size: .78rem;
}
.mlb-gd-sp-split-table .sp-split-empty-cell {
  color: #64748b;
  font-style: italic;
}
.mlb-gd-sp-split-empty {
  padding: 20px 8px;
  text-align: center;
  color: #64748b;
  font-style: italic;
  font-size: .85rem;
}
/* Arsenal table — pitch-type name gets a colored dot */
.mlb-gd-sp-arsenal-table .sp-arsenal-name {
  text-align: left;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
}
.mlb-gd-sp-arsenal-table .sp-arsenal-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* Tiered color classes — match the player dashboard Q2 palette so the
   two views read identically. */
.mlb-gd-sp-split-table .sp-split-green-3 { background: rgba(34, 197, 94, 0.30); color: #bbf7d0; font-weight: 700; }
.mlb-gd-sp-split-table .sp-split-green-2 { background: rgba(34, 197, 94, 0.18); color: #d9f99d; }
.mlb-gd-sp-split-table .sp-split-green-1 { background: rgba(34, 197, 94, 0.09); color: #ecfccb; }
.mlb-gd-sp-split-table .sp-split-red-1   { background: rgba(239, 68, 68, 0.10); color: #fed7aa; }
.mlb-gd-sp-split-table .sp-split-red-2   { background: rgba(239, 68, 68, 0.20); color: #fca5a5; }
.mlb-gd-sp-split-table .sp-split-red-3   { background: rgba(239, 68, 68, 0.32); color: #fecaca; font-weight: 700; }
.mlb-gd-sp-stat {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 10px;
  background: rgba(148,163,184,.04);
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 8px;
  min-width: 0;
}
.mlb-gd-sp-stat-label {
  font-size: .6rem; color: #94a3b8;
  text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
}
.mlb-gd-sp-stat-val {
  font-size: 1.1rem; font-weight: 700; color: #f8fafc;
  line-height: 1.1; letter-spacing: -.01em;
  display: inline-flex; align-items: center; gap: 3px;
}
.mlb-gd-sp-stat-base {
  font-size: .6rem; color: #64748b;
  text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}
.mlb-gd-sp-arrow { font-size: .68rem; line-height: 1; }
.mlb-gd-sp-stat.is-good {
  background: rgba(34,197,94,.07);
  border-color: rgba(34,197,94,.22);
}
.mlb-gd-sp-stat.is-good .mlb-gd-sp-stat-val { color: #4ade80; }
.mlb-gd-sp-stat.is-good .mlb-gd-sp-arrow   { color: #4ade80; }
.mlb-gd-sp-stat.is-bad {
  background: rgba(239,68,68,.06);
  border-color: rgba(239,68,68,.22);
}
.mlb-gd-sp-stat.is-bad .mlb-gd-sp-stat-val { color: #f87171; }
.mlb-gd-sp-stat.is-bad .mlb-gd-sp-arrow    { color: #f87171; }

.mlb-gd-sp-empty-card {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  background: rgba(148,163,184,.04);
  border: 1px dashed rgba(255,255,255,.08);
  border-radius: 12px;
}
.mlb-gd-sp-empty-card .mlb-gd-sp-team-logo { width: 40px; height: 40px; }
.mlb-gd-sp-empty { font-size: .88rem; color: #64748b; font-style: italic; }

/* Mobile-only: stretch the game-detail container to fill the viewport
   so the page-level footer is pushed below the fold on every tab —
   Weather's chart-heavy layout naturally fills most screens, but Props
   with an empty "No props posted" card and Overview with a short layout
   leave the footer creeping into view. `min-height: 100dvh` uses the
   dynamic viewport height (accounts for mobile browser chrome that
   shows/hides on scroll); `100vh` is the static fallback for browsers
   that don't support `dvh` yet. The bottom-nav is position: fixed so
   it doesn't claim layout height — main-app-wrapper's padding-bottom
   already keeps content above it, so we don't need to subtract here. */
@media (max-width: 1000px) {
  #mlb-game-detail {
    min-height: 100vh;
    min-height: 100dvh;
  }
}

@media (max-width: 880px) {
  .mlb-gd-sp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .mlb-gd-sp-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.mlb-gd-vs { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 120px; }
.mlb-gd-status { font-size: .68rem; color: #22d3ee; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.mlb-gd-at { font-size: 1.4rem; color: #475569; font-weight: 700; line-height: 1; }
.mlb-gd-when { font-size: .76rem; color: #cbd5e1; }
.mlb-gd-chip {
  display: inline-block; margin-top: 4px; padding: 2px 8px;
  font-size: .68rem; background: rgba(34, 211, 238, .1);
  color: #67e8f9; border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, .2);
}

/* ─── Section-level ─── */
.mlb-gd-section-title { margin: 0 0 10px; font-size: .95rem; color: #f8fafc; letter-spacing: .02em; }
.mlb-gd-inj-grid, .mlb-gd-lineup-grid, .mlb-gd-props-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mlb-gd-inj-team, .mlb-gd-lineup-team, .mlb-gd-props-team {
  font-weight: 700; color: #67e8f9;
  font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 6px; padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* ─── Injuries ─── */
.mlb-gd-inj-row { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.mlb-gd-inj-row:last-child { border-bottom: none; }
.mlb-gd-inj-name { font-size: .88rem; color: #e2e8f0; font-weight: 500; }
.mlb-gd-inj-pos { margin-left: 8px; font-size: .68rem; color: #64748b; text-transform: uppercase; }
.mlb-gd-inj-status {
  display: inline-block; margin-top: 3px; padding: 1px 7px;
  font-size: .65rem; border-radius: 999px;
  font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  background: rgba(239, 68, 68, .12); color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, .28);
}
.mlb-gd-inj-status-day-to-day { background: rgba(245, 158, 11, .12); color: #fcd34d; border-color: rgba(245, 158, 11, .28); }
.mlb-gd-inj-desc { font-size: .76rem; color: #94a3b8; margin-top: 2px; }
.mlb-gd-inj-return { font-size: .7rem; color: #64748b; margin-top: 1px; }
.mlb-gd-inj-empty, .mlb-gd-empty { font-size: .82rem; color: #64748b; font-style: italic; padding: 6px 0; }

/* ─── Lineup tables ─── */
.mlb-gd-lineup-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.mlb-gd-lineup-table th {
  text-align: left; color: #94a3b8;
  font-size: .68rem; text-transform: uppercase; letter-spacing: .06em;
  padding: 6px; border-bottom: 1px solid rgba(255,255,255,.06); font-weight: 600;
}
.mlb-gd-lineup-table td { padding: 8px 6px; color: #e2e8f0; border-bottom: 1px solid rgba(255,255,255,.03); vertical-align: middle; }
.mlb-gd-lineup-table tr:last-child td { border-bottom: none; }
.mlb-gd-order { font-weight: 700; color: #67e8f9; width: 24px; }

/* Batter cell — avatar + name + confirmed / hand chips. */
.mlb-gd-lineup-batter {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.mlb-gd-lineup-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(148,163,184,.08);
  border: 1px solid rgba(255,255,255,.06);
}
.mlb-gd-lineup-avatar.is-fallback { object-fit: contain; padding: 4px; }
.mlb-gd-lineup-name-col {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.mlb-gd-lineup-name-link {
  font-weight: 600; color: #e2e8f0;
  text-decoration: none; font-size: .9rem;
  line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mlb-gd-lineup-name-link:hover { color: #67e8f9; text-decoration: underline; }
.mlb-gd-lineup-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.mlb-gd-lineup-confirmed {
  color: #4ade80; font-weight: 700;
}
.mlb-gd-lineup-confirmed.mlb-gd-lineup-projected {
  color: #f59e0b;
}
.mlb-gd-lineup-hand {
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: .58rem;
  letter-spacing: .06em;
}
.mlb-gd-lineup-hand-r { background: rgba(239,68,68,.14); color: #fca5a5; }
.mlb-gd-lineup-hand-l { background: rgba(79,143,247,.14); color: #7dd3fc; }
.mlb-gd-lineup-hand-s { background: rgba(168,85,247,.14); color: #d8b4fe; }

/* Section header (title + toggle pill group on the right) */
.mlb-gd-section-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.mlb-gd-section-header .mlb-gd-section-title { margin: 0; }

/* Season / vs-SP toggle */
.mlb-gd-lineup-toggle {
  display: inline-flex;
  gap: 4px;
  background: rgba(148, 163, 184, .06);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 999px;
  padding: 2px;
}
.mlb-gd-lineup-pill {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: .03em;
  transition: color 120ms ease, background-color 120ms ease;
}
.mlb-gd-lineup-pill:hover:not(.is-active) { color: #e2e8f0; }
.mlb-gd-lineup-pill.is-active {
  color: #0a1628;
  background: rgba(0, 211, 189, 0.75);
}

/* Each team is its own card. Header is centered: logo + full team name
   + mode toggle (Season / vs SP) stacked; range toggle sits on its own
   centered row below; table scrolls horizontally on narrow screens. */
.mlb-gd-lineup-tablewrap {
  overflow-x: auto;
}
.mlb-gd-lineup-table td[data-stat] {
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mlb-gd-lineup-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 4px 0 14px;
  margin-bottom: 10px;
}
.mlb-gd-lineup-logo {
  width: 56px; height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}
.mlb-gd-lineup-head-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.mlb-gd-lineup-team-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -.01em;
  line-height: 1.1;
}

.mlb-gd-lineup-projected-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  border-radius: 999px;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

/* Range toggle — right-aligned, compact. Each option is its own
   standalone pill; inactive pills are outlined / muted, the active
   one is filled teal. */
.mlb-gd-lineup-toggle-range {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0 0 14px;
  border-radius: 0;
}
.mlb-gd-lineup-toggle-range .mlb-gd-lineup-pill {
  border: 1px solid rgba(255, 255, 255, .10);
  background: transparent;
  padding: 4px 14px;
  font-size: .72rem;
  text-align: center;
}
.mlb-gd-lineup-toggle-range .mlb-gd-lineup-pill:hover:not(.is-active) {
  color: #e2e8f0;
  background: rgba(148, 163, 184, .08);
  border-color: rgba(255, 255, 255, .16);
}
.mlb-gd-lineup-toggle-range .mlb-gd-lineup-pill.is-active {
  color: #0a1628;
  background: rgba(0, 211, 189, 0.75);
  border-color: rgba(0, 211, 189, 0.82);
}

.mlb-gd-lineup-pill:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* Loading dim — while a filter fetch is in flight, dim only that team
   section's table (leave the filter bar interactive so the user can
   flip again or bail). */
.mlb-gd-lineup-section.is-loading .mlb-gd-lineup-tablewrap {
  opacity: 0.5;
  transition: opacity 120ms ease;
  pointer-events: none;
}

/* Tier colors — mirror the player-dashboard Q2 palette so readers get a
   consistent visual language across cards. */
.mlb-gd-lineup-table .lineup-green-3 { background: rgba(34, 197, 94, 0.30); color: #bbf7d0; font-weight: 700; }
.mlb-gd-lineup-table .lineup-green-2 { background: rgba(34, 197, 94, 0.18); color: #d9f99d; }
.mlb-gd-lineup-table .lineup-green-1 { background: rgba(34, 197, 94, 0.09); color: #ecfccb; }
.mlb-gd-lineup-table .lineup-red-1   { background: rgba(239, 68, 68, 0.10); color: #fed7aa; }
.mlb-gd-lineup-table .lineup-red-2   { background: rgba(239, 68, 68, 0.20); color: #fca5a5; }
.mlb-gd-lineup-table .lineup-red-3   { background: rgba(239, 68, 68, 0.32); color: #fecaca; font-weight: 700; }

/* ─── Pitch Mix column — clickable grade pill per batter ─── */
.mlb-gd-pm-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; padding: 4px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(148,163,184,.08);
  color: #cbd5e1;
  font-size: .82rem; font-weight: 700;
  cursor: pointer; user-select: none;
  transition: transform 100ms ease, border-color 100ms, background 100ms;
}
.mlb-gd-pm-pill:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.20); }
.mlb-gd-pm-pill.is-empty { cursor: default; opacity: .5; }
.mlb-gd-pm-pill.is-empty:hover { transform: none; border-color: rgba(255,255,255,.08); }
.mlb-gd-pm-pill.q2-green-3 { background: rgba(34,197,94,.30); color: #bbf7d0; border-color: rgba(34,197,94,.45); }
.mlb-gd-pm-pill.q2-green-2 { background: rgba(34,197,94,.18); color: #d9f99d; border-color: rgba(34,197,94,.30); }
.mlb-gd-pm-pill.q2-red-2   { background: rgba(239,68,68,.20); color: #fca5a5; border-color: rgba(239,68,68,.35); }
.mlb-gd-pm-pill.q2-red-3   { background: rgba(239,68,68,.32); color: #fecaca; border-color: rgba(239,68,68,.50); }

/* ─── Pitch Mix modal ─── */
body.mlb-gd-pm-open { overflow: hidden; }

.mlb-gd-pm-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(2, 6, 16, 0.72);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: mlb-gd-pm-fade-in 140ms ease;
}
@keyframes mlb-gd-pm-fade-in { from { opacity: 0; } to { opacity: 1; } }

.mlb-gd-pm-modal {
  position: relative;
  background: linear-gradient(180deg, #0f172a 0%, #0a0f1f 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  width: min(1000px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  padding: 22px 24px 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  color: #e2e8f0;
}

.mlb-gd-pm-close {
  position: absolute; top: 10px; right: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  color: #cbd5e1; font-size: 1.1rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 100ms;
}
.mlb-gd-pm-close:hover { background: rgba(255,255,255,.12); }

.mlb-gd-pm-header { margin-bottom: 14px; }
.mlb-gd-pm-matchup-title {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  font-size: 1.05rem; font-weight: 700; color: #f8fafc;
}
.mlb-gd-pm-name { color: #f8fafc; }
.mlb-gd-pm-vs {
  color: #64748b; font-weight: 600;
  font-size: .82rem; text-transform: lowercase;
  letter-spacing: .04em;
  margin: 0 2px;
}
/* Hand chips — red/blue/purple matches the batting-order chips so a
   batter reads as L/R/S the same across the app. */
.mlb-gd-pm-hand {
  font-size: .62rem; font-weight: 700;
  letter-spacing: .4px;
  padding: 2px 7px; border-radius: 4px;
}
.mlb-gd-pm-hand-r { background: rgba(239,68,68,.14);  color: #fca5a5; }
.mlb-gd-pm-hand-l { background: rgba(79,143,247,.14); color: #7dd3fc; }
.mlb-gd-pm-hand-s { background: rgba(168,85,247,.14); color: #d8b4fe; }

/* Rating banner */
.mlb-gd-pm-rating {
  background: rgba(148,163,184,.05);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.mlb-gd-pm-rating-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.mlb-gd-pm-rating-label {
  font-size: .7rem; font-weight: 700; letter-spacing: 1px;
  color: #94a3b8; text-transform: uppercase;
}
.mlb-gd-pm-rating-score { display: flex; align-items: baseline; gap: 6px; }
.mlb-gd-pm-rating-num { font-size: 1.6rem; font-weight: 700; color: #f8fafc; }
.mlb-gd-pm-rating-denom { font-size: .8rem; color: #64748b; }
.mlb-gd-pm-rating-tag {
  margin-left: 10px; font-size: .82rem; font-weight: 700; color: #86efac;
}
.mlb-gd-pm-rating.q2-red-3 .mlb-gd-pm-rating-tag,
.mlb-gd-pm-rating.q2-red-2 .mlb-gd-pm-rating-tag { color: #fca5a5; }
.mlb-gd-pm-rating.q2-green-3 .mlb-gd-pm-rating-tag { color: #bbf7d0; }

.mlb-gd-pm-rating-track {
  position: relative; height: 8px; border-radius: 999px;
  background: rgba(255,255,255,.06); overflow: hidden;
}
.mlb-gd-pm-rating-fill {
  position: absolute; inset: 0 auto 0 0;
  background: linear-gradient(90deg, rgba(34,197,94,.6), rgba(34,197,94,.95));
  border-radius: 999px; transition: width 200ms ease;
}
.mlb-gd-pm-rating.q2-red-3 .mlb-gd-pm-rating-fill,
.mlb-gd-pm-rating.q2-red-2 .mlb-gd-pm-rating-fill {
  background: linear-gradient(90deg, rgba(239,68,68,.6), rgba(239,68,68,.95));
}
.mlb-gd-pm-rating-marks {
  position: absolute; left: 0; right: 0; top: 14px;
  display: flex; justify-content: space-between;
  font-size: .62rem; letter-spacing: .5px; color: #64748b;
  text-transform: uppercase; font-weight: 700;
}
.mlb-gd-pm-rating-marks span { flex: 1; text-align: center; }

/* Per-pitch table */
.mlb-gd-pm-table {
  width: 100%; border-collapse: collapse;
  font-size: .82rem; margin-top: 18px;
}
.mlb-gd-pm-table th {
  text-align: left; padding: 8px 10px; font-size: .68rem;
  font-weight: 700; color: #64748b; letter-spacing: .7px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mlb-gd-pm-table td {
  padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,.04);
  color: #cbd5e1; vertical-align: middle;
}
.mlb-gd-pm-table tr:last-child td { border-bottom: none; }

.mlb-gd-pm-pitch { font-weight: 600; color: #f1f5f9; }
.mlb-gd-pm-usage { color: #94a3b8; font-size: .78rem; }
.mlb-gd-pm-velo  { color: #64748b; font-size: .68rem; margin-top: 2px; }

.mlb-gd-pm-batter,
.mlb-gd-pm-pitcher { font-weight: 700; width: 80px; }
.mlb-gd-pm-ab {
  font-size: .65rem; font-weight: 600;
  color: #64748b; margin-top: 2px;
  letter-spacing: .3px;
}
.mlb-gd-pm-ab-prior {
  color: #475569; font-weight: 500;
  margin-left: 3px;
}
/* Per-player coloring: sign-based. `+` = above league avg for that player
   (green), `−` = below league avg (red). The edge bar + overall rating
   still read from the batter's matchup perspective. */
.mlb-gd-pm-batter.is-pos,
.mlb-gd-pm-pitcher.is-pos { color: #86efac; }
.mlb-gd-pm-batter.is-neg,
.mlb-gd-pm-pitcher.is-neg { color: #fca5a5; }
.mlb-gd-pm-batter { text-align: right; }

.mlb-gd-pm-edge-head { text-align: center !important; color: #64748b; }

.mlb-gd-pm-edge-cell { padding: 0 8px; }
.mlb-gd-pm-edge-track {
  position: relative; height: 22px; background: rgba(255,255,255,.04);
  border-radius: 4px;
}
.mlb-gd-pm-edge-track::before {
  content: ""; position: absolute; left: 50%; top: 2px; bottom: 2px;
  width: 1px; background: rgba(255,255,255,.14);
}
.mlb-gd-pm-edge-fill {
  position: absolute; top: 0; bottom: 0;
  border-radius: 3px;
  display: flex; align-items: center;
}
.mlb-gd-pm-edge-batter  {
  left: 50%;
  background: linear-gradient(90deg, rgba(34,197,94,.35), rgba(34,197,94,.85));
  justify-content: flex-end;
  padding-right: 6px;
}
.mlb-gd-pm-edge-pitcher {
  right: 50%;
  background: linear-gradient(90deg, rgba(239,68,68,.85), rgba(239,68,68,.35));
  justify-content: flex-start;
  padding-left: 6px;
}
.mlb-gd-pm-edge-val {
  font-size: .72rem; font-weight: 700;
  color: #f8fafc; white-space: nowrap; pointer-events: none;
}

.mlb-gd-pm-empty {
  text-align: center; padding: 20px; color: #64748b; font-style: italic;
}
.mlb-gd-pm-foot {
  margin-top: 14px; font-size: .72rem; color: #64748b; line-height: 1.5;
}

/* ─── Props — pills + single row per player ─── */
.mlb-gd-pills {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px;
  padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.mlb-gd-pill {
  background: rgba(148,163,184,.08); color: #cbd5e1;
  border: 1px solid rgba(255,255,255,.06);
  padding: 6px 14px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; cursor: pointer;
  transition: color 120ms, background 120ms, border-color 120ms;
}
.mlb-gd-pill:hover { color: #f8fafc; background: rgba(148,163,184,.14); }
/* Active state mirrors .mlb-gd-tab.is-active above (the Overview/Props/
   Weather tabs) — same teal fill + dark text — so the visual treatment
   for "selected" is consistent across both rows of pills. */
.mlb-gd-pill.is-active {
  color: #0a1628;
  background: rgba(0, 211, 189, 0.75);
  border-color: rgba(0, 211, 189, 0.82);
}
.mlb-gd-players-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.mlb-gd-team-col { display: flex; flex-direction: column; min-width: 0; }
.mlb-gd-team-col-header {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; color: #67e8f9;
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  padding-bottom: 8px; margin-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mlb-gd-team-col-logo { width: 20px; height: 20px; object-fit: contain; }
.mlb-gd-prop-player {
  display: grid; grid-template-columns: 1fr auto;
  gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.04);
}
.mlb-gd-prop-player:last-child { border-bottom: none; }
.mlb-gd-prop-header { display: flex; gap: 10px; align-items: center; min-width: 0; }
.mlb-gd-prop-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  background: rgba(34, 211, 238, .08); flex-shrink: 0;
}
.mlb-gd-prop-avatar.is-fallback { object-fit: contain; padding: 4px; }
.mlb-gd-prop-identity { min-width: 0; flex: 1; }
.mlb-gd-prop-name {
  font-size: .9rem; font-weight: 600; color: #f8fafc; line-height: 1.15;
  text-decoration: none; cursor: pointer;
  transition: color 120ms ease;
}
.mlb-gd-prop-name:hover { color: #67e8f9; text-decoration: underline; }
.mlb-gd-prop-meta {
  display: flex; gap: 6px; margin-top: 2px;
  font-size: .66rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em;
}
.mlb-gd-more-btn {
  background: rgba(34, 211, 238, .1); color: #67e8f9;
  border: 1px solid rgba(34, 211, 238, .22);
  padding: 3px 9px; border-radius: 999px;
  font-size: .7rem; font-weight: 700; cursor: pointer;
  margin-left: 8px; flex-shrink: 0;
}
.mlb-gd-more-btn:hover { background: rgba(34, 211, 238, .18); }
.mlb-gd-lines { display: flex; flex-direction: column; gap: 4px; justify-self: end; }
.mlb-gd-line-row {
  display: flex; gap: 6px;
  /* Alt lines stay collapsed until user clicks +N */
  display: none;
}
.mlb-gd-line-row.is-main { display: flex; }
.mlb-gd-prop-player[data-expanded="true"] .mlb-gd-line-row { display: flex; }
.mlb-gd-line-over, .mlb-gd-line-under {
  display: inline-flex; align-items: baseline; gap: 4px;
  min-width: 78px; justify-content: center;
  padding: 6px 10px; border-radius: 6px;
  font-size: .74rem; font-weight: 500;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(255,255,255,.06);
}
.mlb-gd-line-over  { background: rgba(15,23,42,.4); color: #cbd5e1; }
.mlb-gd-line-under { background: rgba(15,23,42,.4); color: #cbd5e1; }
.mlb-gd-line-over em, .mlb-gd-line-under em { font-style: normal; font-weight: 700; color: #f8fafc; }
.mlb-gd-line-row.is-main .mlb-gd-line-over em  { color: #86efac; }
.mlb-gd-line-row.is-main .mlb-gd-line-under em { color: #fca5a5; }

/* ─── Loading / error ─── */
.mlb-gd-loading, .mlb-gd-error { padding: 30px; text-align: center; color: #94a3b8; }
.mlb-gd-error { color: #fca5a5; }

/* ═══════════════════════════════════════════════════════════
   Weather panel (ported from DataUpdater/demos/mlb/css/styles.css)
   ═══════════════════════════════════════════════════════════ */
.wx-panel { padding: 4px 0; }
.wx-panel.wx-indoor { text-align: center; padding: 28px; }
.wx-indoor-msg { font-size: 12px; color: #94a3b8; margin-top: 8px; }
.wx-empty { padding: 24px; text-align: center; color: #94a3b8; font-size: .85rem; }
.wx-top-row {
  display: grid; grid-template-columns: 280px 1fr; gap: 20px; margin-bottom: 16px;
}
/* Two-column layout: strip + field + venue caption on the left, score +
   key stats + ball flight model on the right. */
.wx-split-row {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 24px;
  margin-bottom: 16px;
}
.wx-split-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.wx-split-left svg {
  border-radius: 8px;
  width: 100%;
  max-width: 420px;
  height: auto;
}
.wx-venue-caption {
  padding: 8px 2px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.wx-venue-caption .wx-venue {
  font-size: 15px;
  justify-content: center;
}
.wx-split-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* Conditions strip (shared with the research-hub weather grid).
   When it's the top child of .wx-split-left we drop the bottom border to
   keep the visual grouping tight against the field. */
.wh-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding: 4px 0 8px;
}
.wh-stat {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
  align-items: center; text-align: center;
}
.wh-stat-label {
  font-size: .7rem; color: #94a3b8;
  text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
}
.wh-stat-val {
  font-size: 1.25rem; font-weight: 700; color: #f8fafc;
  line-height: 1.1; letter-spacing: -.01em;
}
.wh-stat-sub {
  font-size: .7rem; color: #64748b;
  text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}
.wh-forecast {
  display: flex; align-items: center; gap: 6px;
  text-transform: none; letter-spacing: 0;
  font-size: .85rem; color: #cbd5e1; font-weight: 500;
}
.wh-pill-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px; padding: 0 2px 4px; margin-top: -4px;
}
.wh-pill-row-solo { margin-top: 0; padding: 14px 2px 8px; }
.wh-tag-row {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px;
}
.wh-tag {
  display: inline-block; align-self: flex-start;
  margin-top: 3px; padding: 2px 8px;
  font-size: .62rem; border-radius: 999px;
  font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; border: 1px solid transparent;
  white-space: nowrap;
}
.wh-tag-row .wh-tag { margin-top: 0; }
.wh-tag-boost       { background: rgba(34,197,94,.12);  color: #4ade80; border-color: rgba(34,197,94,.28); }
.wh-tag-boost-soft  { background: rgba(34,197,94,.07);  color: #86efac; border-color: rgba(34,197,94,.18); }
.wh-tag-suppress    { background: rgba(239,68,68,.12);  color: #f87171; border-color: rgba(239,68,68,.28); }
.wh-tag-suppress-soft { background: rgba(239,68,68,.07); color: #fca5a5; border-color: rgba(239,68,68,.18); }
.wh-tag-neutral     { background: rgba(148,163,184,.1); color: #cbd5e1; border-color: rgba(148,163,184,.18); }
.wh-tag-alert       { background: rgba(234,179,8,.12);  color: #fcd34d; border-color: rgba(234,179,8,.28); }
.wh-tag-indoor      { background: rgba(79,143,247,.12); color: #7dd3fc; border-color: rgba(79,143,247,.28); }

.wx-info-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.wx-venue {
  font-size: 14px; font-weight: 600; color: #f8fafc;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.wx-desc { font-size: 12px; color: #cbd5e1; margin-top: 3px; }
.wx-gust { color: #fcd34d; font-size: 11px; }

.wx-score-box {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,.06);
}
.wx-score-num {
  font-size: 36px; font-weight: 800; letter-spacing: -1px;
  line-height: 1; min-width: 56px; text-align: center;
}
.wx-score-label { font-size: 14px; font-weight: 700; }
.wx-score-sub {
  font-size: 10px; color: #94a3b8; text-transform: uppercase;
  letter-spacing: .5px; margin-top: 1px;
}
.wx-score-elite    { background: rgba(34,197,94,.1);   border-color: rgba(34,197,94,.25); }
.wx-score-elite    .wx-score-num,
.wx-score-elite    .wx-score-label { color: #22c55e; }
.wx-score-boost    { background: rgba(74,222,128,.08); border-color: rgba(74,222,128,.2); }
.wx-score-boost    .wx-score-num,
.wx-score-boost    .wx-score-label { color: #4ade80; }
.wx-score-neutral  { background: rgba(139,146,165,.06); border-color: rgba(139,146,165,.15); }
.wx-score-neutral  .wx-score-num,
.wx-score-neutral  .wx-score-label { color: #cbd5e1; }
.wx-score-suppress { background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.2); }
.wx-score-suppress .wx-score-num,
.wx-score-suppress .wx-score-label { color: #f87171; }
.wx-score-dead     { background: rgba(239,68,68,.1);   border-color: rgba(239,68,68,.25); }
.wx-score-dead     .wx-score-num,
.wx-score-dead     .wx-score-label { color: #ef4444; }

.wx-key-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wx-kstat { padding: 6px 10px; background: rgba(15,23,42,.5); border-radius: 8px; }
.wx-kstat-label {
  font-size: 9px; font-weight: 600; color: #94a3b8;
  text-transform: uppercase; letter-spacing: .4px;
}
.wx-kstat-val { font-size: 13px; font-weight: 600; color: #f8fafc; margin-top: 1px; }

.wx-precip-warn {
  padding: 8px 14px; border-radius: 8px; font-size: 12px; font-weight: 600;
  background: rgba(234,179,8,.1); border: 1px solid rgba(234,179,8,.25);
  color: #fcd34d; margin-bottom: 14px; text-align: center;
}

.wx-physics { margin-top: 14px; }
.wx-panel-title {
  font-size: 11px; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px;
}
.wx-panel-sub { font-weight: 400; text-transform: none; letter-spacing: 0; color: #64748b; }
.wx-physics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wx-phys-card {
  padding: 10px 12px; background: rgba(15,23,42,.5); border-radius: 8px;
  border: 1px solid transparent;
}
.wx-phys-title {
  font-size: 9px; font-weight: 600; color: #94a3b8;
  text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px;
}
.wx-phys-val { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.wx-phys-note { font-size: 10px; color: #94a3b8; line-height: 1.3; }

.wx-carry-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wx-carry-card {
  padding: 12px 14px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.06); text-align: center;
}
.wx-carry-boost { background: rgba(34,197,94,.06); border-color: rgba(34,197,94,.2); }
.wx-carry-suppress { background: rgba(239,68,68,.06); border-color: rgba(239,68,68,.2); }
.wx-carry-neutral { background: rgba(148,163,184,.04); border-color: rgba(148,163,184,.18); }
/* Roof-closed cards take the place of the three per-direction cards, so
   they span the same width — leaving the score box in the 4th column. */
.wx-carry-roof-closed { grid-column: span 3; }
.wx-carry-dir {
  font-size: 10px; font-weight: 600; color: #94a3b8;
  text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px;
}
.wx-carry-val { font-size: 22px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 4px; }
.wx-carry-boost    .wx-carry-val { color: #4ade80; }
.wx-carry-suppress .wx-carry-val { color: #f87171; }
.wx-carry-neutral  .wx-carry-val { color: #cbd5e1; }
.wx-carry-breakdown { font-size: 9px; color: #94a3b8; }
.wx-carry-tag { color: #64748b; font-weight: 400; }

.wx-val-boost    { color: #4ade80; }
.wx-val-suppress { color: #f87171; }
.wx-val-neutral  { color: #cbd5e1; }
.wx-val-alert    { color: #fcd34d; }

.wx-roof-badge {
  font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 4px; letter-spacing: .3px;
}
.wx-roof-retractable { background: rgba(79,143,247,.12); color: #7dd3fc; }
.wx-roof-fixed       { background: rgba(139,146,165,.12); color: #cbd5e1; }
.wx-roof-open        { background: rgba(34,197,94,.12); color: #4ade80; }
.wx-roof-closed      { background: rgba(239,68,68,.12); color: #f87171; }
.wx-roof-uncertain   { background: rgba(234,179,8,.12); color: #fcd34d; }
.wx-roof-alert {
  padding: 8px 12px; border-radius: 8px; font-size: 11px; font-weight: 500;
  background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.2);
  color: #fca5a5; margin: 8px 0;
}
.wx-roof-warn {
  padding: 8px 12px; border-radius: 8px; font-size: 11px; font-weight: 500;
  background: rgba(234,179,8,.08); border: 1px solid rgba(234,179,8,.2);
  color: #fcd34d; margin: 8px 0;
}

/* ─── Weather-Adjusted Props table ─── */
.wx-prop-group { margin-top: 14px; }
.wx-prop-group:first-of-type { margin-top: 4px; }
.wx-prop-group-header {
  font-size: 12px; font-weight: 700; padding: 8px 12px;
  border-radius: 8px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.wx-prop-count {
  font-size: 10px; font-weight: 600; padding: 1px 8px;
  border-radius: 10px; background: rgba(255,255,255,.08);
}
.wx-grp-boost    { background: rgba(34,197,94,.08);  color: #4ade80; border: 1px solid rgba(34,197,94,.2); }
.wx-grp-suppress { background: rgba(239,68,68,.08);  color: #f87171; border: 1px solid rgba(239,68,68,.2); }

.wx-prop-scroll { overflow-x: auto; }
.wx-prop-table {
  width: 100%; border-collapse: collapse; font-size: 12px;
}
.wx-prop-table th {
  text-align: left; font-size: 10px; font-weight: 600;
  color: #94a3b8; text-transform: uppercase; letter-spacing: .06em;
  padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.06);
  white-space: nowrap;
}
.wx-prop-table td {
  padding: 7px 8px; color: #e2e8f0;
  border-bottom: 1px solid rgba(255,255,255,.03);
  vertical-align: top;
}
.wx-prop-table tr:last-child td { border-bottom: none; }
.wx-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wx-prop-table .wx-prop-name { font-weight: 600; white-space: nowrap; }
.wx-prop-team {
  display: inline-block; margin-left: 8px;
  font-size: 10px; color: #64748b; text-transform: uppercase; letter-spacing: .04em;
  font-weight: 500;
}
.wx-prop-rating { font-weight: 700; text-align: center; font-size: 13px; }
.wx-prop-reasons {
  font-size: 11px; color: #94a3b8; max-width: 360px;
  white-space: normal; line-height: 1.4;
}

/* Row tinting by impact */
#mlb-game-detail tr.wx-prop-strong-boost    td { background: rgba(34,197,94,.06); }
#mlb-game-detail tr.wx-prop-boost           td { background: rgba(34,197,94,.03); }
#mlb-game-detail tr.wx-prop-strong-suppress td { background: rgba(239,68,68,.06); }
#mlb-game-detail tr.wx-prop-suppress        td { background: rgba(239,68,68,.03); }

/* Rating arrow colors */
.wx-prop-strong-boost    .wx-prop-rating { color: #22c55e; }
.wx-prop-boost           .wx-prop-rating { color: #4ade80; }
.wx-prop-suppress        .wx-prop-rating { color: #f87171; }
.wx-prop-strong-suppress .wx-prop-rating { color: #ef4444; }
.wx-prop-neutral         .wx-prop-rating { color: #64748b; }

/* Handedness badges */
.wx-hand-badge {
  font-size: 9px; font-weight: 700; padding: 2px 6px;
  border-radius: 3px; letter-spacing: .3px;
}
.wx-hand-r { background: rgba(79,143,247,.12); color: #7dd3fc; }
.wx-hand-l { background: rgba(139,92,246,.12); color: #c4b5fd; }
.wx-hand-s { background: rgba(234,179,8,.12);  color: #fcd34d; }
.wx-hand-x { background: rgba(139,146,165,.12); color: #94a3b8; }

/* ─── Responsive ─── */
@media (max-width: 820px) {
  #mlb-game-detail { padding: 10px 12px; gap: 8px; }
  .mlb-gd-matchup { grid-template-columns: 1fr; gap: 10px; }
  .mlb-gd-team-home { flex-direction: row; text-align: left; }
  .mlb-gd-team-home .mlb-gd-team-info { text-align: left; }
  .mlb-gd-vs { min-width: 0; flex-direction: row; gap: 8px; justify-content: center; }
  .mlb-gd-inj-grid, .mlb-gd-lineup-grid, .mlb-gd-props-grid,
  .mlb-gd-players-list { grid-template-columns: 1fr; gap: 12px; }
  .wx-top-row,
  .wx-split-row { grid-template-columns: 1fr; }
  .wx-physics-grid { grid-template-columns: 1fr 1fr; }
  .wx-carry-row { grid-template-columns: 1fr; }
}
