: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);
}
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, .next-games, .stats-grid, .leader-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 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; }
.social-card { margin-top: 0; }
.social-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.avatar { width: 34px; height: 34px; border-radius: 999px; object-fit: cover; border: 1px solid #e5e7eb; }
.social-name { margin: 0; font-size: 14px; font-weight: 700; }
.social-handle { margin: 0; color: var(--muted); font-size: 11px; }
.social-text { margin: 0 0 8px; font-size: 14px; line-height: 1.35; white-space: pre-wrap; }
.social-media { width: 100%; border-radius: 10px; border: 1px solid var(--line); margin: 0 0 8px; }

@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, .next-games, .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; }
}
