:root {
  --reds: #c6011f;
  --ink: #101828;
  --bg: #f5f6f8;
  --card: #ffffff;
  --line: #e4e7ec;
  --muted: #667085;
  --win: #16a34a;
  --loss: #dc2626;
  --future-home: #e5e7eb;
  --future-away: #9ca3af;
  --off: #1f2937;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(circle at 20% 0%, rgba(198, 1, 31, 0.09), transparent 36%), var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.container { max-width: 980px; margin: 0 auto; padding: 0 10px; }
.main { padding: 8px 0 18px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
}
.topbar .container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 9px 10px;
}
.brand { font-size: 15px; font-weight: 800; color: var(--reds); }
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tab {
  text-decoration: none;
  text-align: center;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  padding: 7px 2px;
  color: #344054;
  background: #fff;
  font-size: 13px;
}
.tab.active { color: var(--reds); border-color: var(--reds); font-weight: 700; }

.card {
  margin-top: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}
.async-section-root {
  min-height: 40px;
}
.loading-card {
  display: grid;
  gap: 4px;
  min-height: 110px;
  align-content: center;
}
.async-section-root.is-loading .loading-card {
  opacity: 0.8;
}
h2 { margin: 0 0 8px; font-size: 17px; }
.k { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.v { margin: 2px 0 0; font-size: 15px; font-weight: 700; }
.muted { color: var(--muted); font-size: 13px; margin: 0; }
.tight { margin: 3px 0; font-size: 13px; }

.stat-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.today-off { font-size: 24px; font-weight: 800; margin: 8px 0; }
.today-matchup { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.today-time { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.series-matchup { margin: -2px 0 8px; font-size: 14px; font-weight: 600; color: #344054; }

.series-grid, .stats-grid, .leader-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.next-games {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mini-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: #f8fafc;
}
.mini-label { margin: 0; font-size: 11px; text-transform: uppercase; color: var(--muted); }
.mini-main { margin: 2px 0 4px; font-size: 18px; font-weight: 800; line-height: 1.1; }
.mini-sub { margin: 0; font-size: 12px; color: #475467; }

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 5px;
}
.weekdays span { text-align: center; font-size: 10px; color: var(--muted); text-transform: uppercase; }
.compact-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.two-weeks { grid-template-rows: repeat(2, 1fr); }
.season-scroll { overflow-x: auto; }
.week-row { min-width: 680px; margin-bottom: 5px; }

.tile {
  min-height: 74px;
  border-radius: 9px;
  border: 1px solid transparent;
  padding: 5px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tile-date { margin: 0; font-size: 10px; opacity: .9; }
.tile-line { display: flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 11px; font-weight: 700; line-height: 1.1; }
.tile-logo { width: 14px; height: 14px; object-fit: contain; }
.tile-detail { margin: 3px 0 0; font-size: 11px; line-height: 1.1; }

.tile.win { background: var(--win); color: #fff; }
.tile.loss { background: var(--loss); color: #fff; }
.tile.future_home { background: var(--future-home); color: #111827; border-color: #d1d5db; }
.tile.future_away { background: var(--future-away); color: #111827; border-color: #6b7280; }
.tile.off { background: var(--off); color: #e5e7eb; }

.news-card { display: grid; gap: 8px; }
.news-image { width: 100%; max-height: 200px; object-fit: cover; border-radius: 10px; }
.news-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); }
.news-title { margin: 4px 0; font-size: 18px; line-height: 1.2; }
.news-summary { margin: 0 0 8px; color: #475467; font-size: 14px; }
.news-actions { display: flex; gap: 8px; align-items: center; }
.btn-link, .btn-muted {
  display: inline-flex;
  text-decoration: none;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
}
.btn-link { border: 1px solid var(--reds); color: var(--reds); background: #fff; }
.btn-muted { border: 1px solid #cbd5e1; color: #334155; background: #f8fafc; }
.news-expanded {
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  font-size: 14px;
  color: #334155;
}
.news-expanded-html img { max-width: 100%; border-radius: 8px; }

.social-feed {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.tweets-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.social-card {
  margin-top: 0;
  width: 100%;
  min-width: 0;
  padding: 10px;
  overflow: hidden;
}
.social-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  min-width: 0;
}
.social-head-copy {
  min-width: 0;
  flex: 1;
}
.social-name-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}
.social-name {
  margin: 0;
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.social-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.social-text {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.social-text a {
  color: var(--reds);
  text-decoration: underline;
  overflow-wrap: anywhere;
}
.social-media-link {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 8px;
  text-decoration: none;
}
.social-media-frame {
  position: relative;
  overflow: hidden;
  width: min(100%, 240px);
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #eef2f6;
  aspect-ratio: 4 / 3;
}
.social-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.social-media-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.82);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.social-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.third-base-matchup {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.third-base-leaders {
  display: grid;
  gap: 14px;
}
.third-base-leader-group {
  display: grid;
  gap: 8px;
}
.third-base-stack {
  display: grid;
  gap: 4px;
}
.third-base-watch-grid {
  display: grid;
  gap: 8px;
}
.third-base-team-notes {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.third-base-division {
  display: grid;
  gap: 8px;
}
.third-base-team-card {
  border-radius: 12px;
}
.third-base-team-summary {
  padding: 10px;
}
.third-base-division-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.third-base-division-team,
.third-base-division-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.third-base-division-meta {
  text-align: right;
}

@media (min-width: 768px) {
  .container { padding: 0 14px; }
  .main { padding: 12px 0 24px; }
  .topbar .container { flex-direction: row; justify-content: space-between; align-items: center; }
  .tabs { display: flex; gap: 8px; }
  .tab { padding: 8px 14px; font-size: 14px; }
  .stat-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .series-grid, .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .leader-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .news-card { grid-template-columns: 220px 1fr; }
  .news-image { height: 100%; max-height: none; }
  .social-feed { max-width: 640px; }
  .social-card { padding: 12px; }
  .social-media-frame { width: min(100%, 320px); }
  .third-base-watch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Home-only refinement pass */
.home-today-head {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.today-vs,
.series-vs {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  min-width: 20px;
  text-align: center;
}
.matchup-team {
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}
.today-opp-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.today-live-score {
  margin: 1px 0 6px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}
.home-today-card {
  text-align: left;
}
.today-stack {
  display: grid;
  gap: 10px;
}
.today-summary-card,
.today-lineup-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfcfd 0%, #f5f7fb 100%);
  padding: 12px;
}
.today-dayoff-card {
  background: #ffffff;
}
.today-dayoff-label {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.05;
}
.today-summary-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.today-summary-team,
.today-score-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.today-summary-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex: 0 0 auto;
}
.today-summary-team-copy,
.today-score-team-copy {
  min-width: 0;
}
.today-summary-team-abbr,
.today-score-team-abbr {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.05;
}
.today-summary-team-name,
.today-score-team-name {
  margin: 2px 0 0;
  font-size: 12px;
  color: #475467;
  line-height: 1.2;
}
.today-summary-vs {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.today-summary-time {
  margin: 12px 0 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
}
.today-summary-meta {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.today-summary-meta-row {
  display: grid;
  gap: 2px;
}
.today-summary-meta-label,
.today-section-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.today-summary-meta-value {
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.today-summary-state {
  margin: 0 0 10px;
  color: var(--reds);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.today-rhe-table {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}
.today-rhe-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, 30px);
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  border-top: 1px solid #edf1f5;
}
.today-rhe-row:first-child {
  border-top: 0;
}
.today-rhe-head {
  color: var(--muted);
  background: #f8fafc;
  font-size: 11px;
  font-weight: 800;
}
.today-rhe-team-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.today-rhe-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}
.today-rhe-team {
  color: #111827;
  font-weight: 800;
}
.today-lineup-card {
  display: grid;
  gap: 10px;
}
.today-lineup-list {
  display: grid;
  gap: 8px;
}
.today-lineup-row {
  display: grid;
  gap: 2px;
}
.today-lineup-main {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
  min-width: 0;
}
.today-lineup-order {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.today-lineup-player {
  font-size: 14px;
  font-weight: 700;
}
.today-lineup-sep {
  color: var(--muted);
}
.today-lineup-position,
.today-lineup-avg {
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}
.today-lineup-game {
  color: #344054;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.calendar-accordion,
.month-accordion {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}
.calendar-accordion-summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.calendar-accordion-summary::-webkit-details-marker {
  display: none;
}
.calendar-accordion-summary::after {
  content: "+";
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.calendar-accordion[open] > .calendar-accordion-summary::after,
.month-accordion[open] > .calendar-accordion-summary::after {
  content: "-";
}
.calendar-accordion-summary h2,
.calendar-accordion-summary h3 {
  margin: 0;
}
.calendar-accordion-panel {
  padding: 0 12px 12px;
}
.month-accordion {
  border-radius: 12px;
}
.month-accordion-summary {
  padding: 8px 10px;
}
.month-accordion-summary .home-month-title {
  margin: 0;
}

.home-series-head {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  border-left: 0;
  padding-left: 0;
  margin-bottom: 8px;
}
.series-opp-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.home-series-chip.final {
  background: #f8fafc;
}
.home-series-chip.upcoming {
  background: #eef2ff;
  border-color: #93c5fd;
}
.home-series-chip.live {
  background: #fff7ed;
  border-color: #fb923c;
}
.home-series-chip {
  position: relative;
}
.series-record {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #475467;
}
.home-series-card {
  text-align: center;
}
.home-series-card .home-series-head {
  justify-content: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.home-series-card .series-grid {
  justify-content: center;
}
.home-series-card .muted {
  text-align: center;
}

.modal-team-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tile-button {
  appearance: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  background: inherit;
  border-width: inherit;
  border-style: inherit;
  border-color: inherit;
  border-radius: inherit;
  box-shadow: inherit;
}

.modal-state {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  color: var(--reds);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.team-row,
.modal-team-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  text-align: left;
}
.score,
.modal-team-score {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}
.lineup-image-card {
  margin-top: 10px;
}
.lineup-image-link {
  display: block;
}
.lineup-image {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: block;
}
.modal.hidden {
  display: none;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.modal-content {
  background: white;
  border-radius: 12px;
  padding: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow: auto;
}
.game-modal-body {
  padding-top: 8px;
}
.game-modal-close {
  display: inline-flex;
  margin-left: auto;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #ffffff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.modal-matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.modal-detail-stack {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}
.modal-series-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.final-linescore-card,
.final-batting-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  overflow-x: auto;
}
.final-linescore-row {
  display: grid;
  grid-template-columns: 72px repeat(9, 24px) repeat(3, 28px);
  gap: 4px;
  align-items: center;
  min-width: 420px;
  padding: 8px 10px;
  border-top: 1px solid #edf1f5;
  font-size: 12px;
}
.final-linescore-row:first-child {
  border-top: 0;
}
.final-linescore-head {
  background: #ffffff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.final-linescore-team {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
}
.final-linescore-team-head {
  font-weight: 800;
}
.final-linescore-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 auto;
}
.final-linescore-cell,
.final-linescore-total {
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.final-linescore-total {
  font-weight: 800;
}
.final-batting-card {
  margin-top: 10px;
}
.final-batting-title {
  margin: 0;
  padding: 10px 10px 0;
  font-size: 14px;
  font-weight: 800;
}
.final-batting-table {
  min-width: 560px;
  padding: 8px 10px 10px;
}
.final-batting-row {
  display: grid;
  grid-template-columns: minmax(132px, 1.8fr) repeat(7, minmax(28px, 0.7fr)) minmax(42px, 0.8fr);
  gap: 6px;
  align-items: center;
  padding: 7px 0;
  border-top: 1px solid #edf1f5;
  font-size: 12px;
}
.final-batting-row:first-child {
  border-top: 0;
}
.final-batting-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.final-batting-player {
  font-weight: 700;
}
.final-pitching-head {
  grid-template-columns: minmax(132px, 1.8fr) repeat(7, minmax(28px, 0.7fr)) minmax(42px, 0.8fr);
}
.final-info-card {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}
.final-info-list {
  display: grid;
  gap: 8px;
  padding: 8px 10px 10px;
}
.final-info-row {
  display: grid;
  gap: 2px;
}
.final-extra-notes {
  padding: 0 10px 10px;
}

@media (max-width: 640px) {
  .tweets-toolbar-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .today-summary-matchup {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .today-summary-vs {
    justify-self: start;
  }
}

.next-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
.next-tile {
  min-width: 0;
  min-height: 74px;
  padding: 5px 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  border-top: 3px solid var(--opp-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
}
.next-tile-logo {
  width: 12px;
  height: 12px;
  object-fit: contain;
  flex: 0 0 auto;
}
.next-tile-matchup,
.next-tile-date,
.next-tile-time {
  margin: 0;
  line-height: 1.05;
}
.next-tile-matchup {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.next-tile-date,
.next-tile-time {
  font-size: 8px;
  color: #475467;
  font-weight: 700;
}

.home-month-stack {
  display: grid;
  gap: 8px;
}
.home-month-title {
  font-size: 28px;
  line-height: 1;
  color: var(--reds);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.home-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}
.calendar-weekdays {
  margin-bottom: 6px;
}
.lineup-block {
  margin: 4px 0;
}
.lineup-title {
  margin-bottom: 4px;
}
.lineup-row {
  display: flex;
  align-items: baseline;
  padding: 2px 0;
  gap: 4px;
  font-size: 13px;
  flex-wrap: nowrap;
}
.lineup-order {
  color: var(--muted);
  font-weight: 700;
  flex: 0 0 auto;
}
.lineup-name {
  font-weight: 600;
  flex: 0 1 auto;
  min-width: 0;
}
.lineup-pos {
  color: var(--muted);
  font-weight: 700;
  flex: 0 0 auto;
  margin-left: 2px;
}
.lineup-stat {
  color: #667085;
  font-weight: 700;
  flex: 0 0 auto;
  margin-left: 4px;
}
.lineup-sep {
  display: none;
}
.tile-day {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.today-tile {
  outline: 2px solid #facc15;
  outline-offset: 1px;
}

.series-matchup,
.today-matchup {
  margin: 0;
}

.result-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.badge-win {
  background: #16a34a;
  color: #ffffff;
}
.badge-loss {
  background: #1f2937;
  color: #f9fafb;
}

/* Venue backgrounds only */
.tile.venue_home {
  background: #c6011f;
  color: #ffffff;
  border-color: #991b1b;
  position: relative;
}
.tile.venue_away {
  background: #d1d5db;
  color: #111827;
  border-color: #9ca3af;
  position: relative;
}
.tile.venue_off {
  background: #1f2937;
  color: #e5e7eb;
  border-color: #475569;
  position: relative;
}
.tile.venue_blank {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  min-height: 86px;
}
.tile.venue_blank .tile-day,
.tile.venue_blank .tile-line,
.tile.venue_blank .tile-detail {
  visibility: hidden;
}

@media (min-width: 900px) {
  .modal-series-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .next-strip {
    gap: 8px;
  }
  .next-tile {
    min-height: 90px;
    padding: 8px 6px;
  }
  .next-tile-logo {
    width: 16px;
    height: 16px;
  }
  .next-tile-matchup {
    font-size: 11px;
  }
  .next-tile-date,
  .next-tile-time {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .next-strip {
    gap: 3px;
  }
  .next-tile {
    min-height: 66px;
    padding: 4px 2px;
  }
  .next-tile-logo {
    width: 11px;
    height: 11px;
  }
  .next-tile-matchup {
    font-size: 8px;
  }
  .next-tile-date,
  .next-tile-time {
    font-size: 7.5px;
  }
  .lineup-row {
    display: block;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
  }
  .lineup-order {
    display: inline;
    min-width: 0;
    margin-right: 2px;
  }
  .lineup-name {
    display: inline;
    max-width: none;
  }
  .lineup-sep {
    display: inline;
    margin: 0 3px;
    color: var(--muted);
  }
  .lineup-pos {
    display: inline;
    margin-left: 0;
    font-size: 11px;
  }
}
