:root {
  --bg: #071019;
  --bg-2: #0b1522;
  --panel: rgba(16, 28, 44, 0.92);
  --panel-2: rgba(21, 37, 56, 0.92);
  --border: rgba(148, 163, 184, 0.2);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --accent: #38bdf8;
  --accent-2: #22c55e;
  --gold: #fbbf24;
  --red: #fb7185;
  --blue: #60a5fa;
  --shadow: 0 22px 70px rgba(0,0,0,.35);
  --radius: 22px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(56,189,248,.18), transparent 32rem),
    radial-gradient(circle at 80% 10%, rgba(34,197,94,.14), transparent 28rem),
    linear-gradient(180deg, var(--bg), #04070d 65%, #030509);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(7, 16, 25, 0.82);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.logo-mark {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 900; color: #04111f; letter-spacing: -.08em;
  box-shadow: 0 12px 32px rgba(56,189,248,.28);
}
.brand-title { font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.brand-sub { color: var(--muted); font-size: 12px; margin-top: 2px; text-transform: uppercase; letter-spacing: .12em; }
.nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: #cbd5e1;
  font-weight: 700;
  font-size: 14px;
}
.nav-links a:hover, .nav-links a.active { background: rgba(148,163,184,.14); color: #fff; }
.nav-links a.discord-link { background: rgba(88,101,242,.18); color: #dbe4ff; border: 1px solid rgba(99,102,241,.28); }
main { max-width: var(--max); margin: 0 auto; padding: 34px 20px 70px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 26px;
  align-items: stretch;
}
.card {
  background: linear-gradient(180deg, rgba(16,28,44,.92), rgba(12,23,36,.92));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 26px; }
.eyebrow { color: var(--accent); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 900; margin: 0 0 10px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(42px, 6vw, 78px); line-height: .95; letter-spacing: -.07em; margin-bottom: 18px; }
h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1; letter-spacing: -.05em; margin-bottom: 12px; }
h3 { font-size: 22px; letter-spacing: -.03em; margin-bottom: 10px; }
.lead { color: #cbd5e1; font-size: 18px; line-height: 1.65; max-width: 760px; }
.muted { color: var(--muted); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(148,163,184,.12); color: #fff; font-weight: 900;
}
.button.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04111f; border: 0; }
.button.discord { background: #5865f2; color: #fff; border: 0; }
.scorebug { display: grid; gap: 12px; }
.scorebug-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(15,23,42,.76); border: 1px solid var(--border); }
.team-line { display: flex; align-items: center; gap: 12px; }
.team-logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(56,189,248,.14); font-weight: 900; }
.score { font-size: 32px; font-weight: 950; letter-spacing: -.05em; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 7px 10px; border-radius: 999px; background: rgba(34,197,94,.12); color: #bbf7d0; border: 1px solid rgba(34,197,94,.28); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.section { margin-top: 24px; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 14px; }
.stat-card { padding: 20px; }
.stat-num { font-size: 34px; font-weight: 950; letter-spacing: -.06em; margin-bottom: 4px; }
.stat-label { color: var(--muted); font-weight: 750; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.table-card { overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
th { color: #cbd5e1; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; background: rgba(15,23,42,.58); }
td { color: #e2e8f0; }
tr:hover td { background: rgba(148,163,184,.06); }
.player-cell { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.mc-head { width: 34px; height: 34px; border-radius: 8px; image-rendering: pixelated; background: rgba(148,163,184,.16); }
.rank-badge { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(251,191,36,.13); color: #fde68a; font-weight: 950; }
.panel-title { padding: 18px 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.timeline { display: grid; gap: 12px; padding: 18px; }
.event { padding: 14px 16px; border: 1px solid var(--border); border-radius: 16px; background: rgba(15,23,42,.56); }
.event-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.event-tag { color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.team-card { padding: 20px; }
.team-card .team-logo { width: 56px; height: 56px; font-size: 22px; margin-bottom: 14px; }
.roster-list { display: grid; gap: 10px; margin-top: 14px; }
.roster-player { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(15,23,42,.56); border: 1px solid var(--border); border-radius: 14px; }
.tag { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: rgba(148,163,184,.12); color: #cbd5e1; font-weight: 800; font-size: 12px; }
.tag.green { background: rgba(34,197,94,.12); color: #bbf7d0; }
.tag.red { background: rgba(251,113,133,.12); color: #fecdd3; }
.tag.gold { background: rgba(251,191,36,.12); color: #fde68a; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-btn { cursor: pointer; color: #cbd5e1; padding: 9px 12px; border-radius: 999px; border: 1px solid var(--border); background: rgba(148,163,184,.08); font-weight: 800; }
.filter-btn.active { background: rgba(56,189,248,.16); color: #e0f2fe; border-color: rgba(56,189,248,.34); }
.discord-panel { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.8fr); gap: 18px; }
.command-list { display: grid; gap: 10px; }
.command { padding: 12px 14px; border-radius: 14px; background: rgba(15,23,42,.58); border: 1px solid var(--border); }
.command code { color: #bae6fd; font-weight: 900; }
.footer { border-top: 1px solid var(--border); color: var(--muted); padding: 26px 20px; text-align: center; }
.empty { text-align: center; color: var(--muted); padding: 28px !important; }
@media (max-width: 850px) {
  .nav-wrap { align-items: flex-start; flex-direction: column; }
  .hero, .grid-2, .grid-3, .grid-4, .discord-panel { grid-template-columns: 1fr; }
  h1 { font-size: 48px; }
  .section-head { align-items: flex-start; flex-direction: column; }
}
/* Public polish pass */
.page-hero h1 { max-width: 980px; }
.compact-hero h1 { font-size: clamp(36px, 5vw, 64px); }
.panel-subtitle { margin: 0 0 2px; font-size: 14px; }
.clean-list { margin: 0; padding-left: 20px; color: #cbd5e1; line-height: 1.85; }
.clean-list.numbered li { margin-bottom: 8px; }
.feature-card { min-height: 210px; }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: rgba(56,189,248,.14); border: 1px solid rgba(56,189,248,.22); margin-bottom: 14px; font-size: 24px; }
.public-note { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.small-lead { font-size: 16px; }
.team-card-top { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.big-logo { width: 58px !important; height: 58px !important; margin: 0 !important; font-size: 22px; }
.mini-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.mini-metrics span { padding: 12px; border-radius: 14px; background: rgba(15,23,42,.56); border: 1px solid var(--border); display: grid; gap: 2px; }
.mini-metrics strong { font-size: 20px; }
.mini-metrics small { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.roster-empty { padding: 12px; border-radius: 14px; background: rgba(15,23,42,.4); border: 1px dashed var(--border); }
.pos { color: #86efac; font-weight: 900; }
.neg { color: #fca5a5; font-weight: 900; }
.join-card { align-self: stretch; }
@media (max-width: 850px) { .public-note { flex-direction: column; align-items: flex-start; } }

/* Home page broadcast redesign */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: 26px;
  align-items: stretch;
}
.hero-feature {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-feature:before {
  content: "";
  position: absolute;
  inset: -35% -15% auto auto;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56,189,248,.28), transparent 64%);
  pointer-events: none;
}
.hero-feature:after {
  content: "";
  position: absolute;
  inset: auto 24px 24px auto;
  width: 190px;
  height: 190px;
  opacity: .11;
  background:
    linear-gradient(45deg, transparent 45%, rgba(255,255,255,.9) 45% 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, rgba(255,255,255,.9) 45% 55%, transparent 55%);
  transform: rotate(45deg);
  pointer-events: none;
}
.hero-kicker-row,
.live-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.preseason-pill { background: rgba(251,191,36,.13); color: #fde68a; border-color: rgba(251,191,36,.28); }
.broadcast-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin-top: 28px;
}
.broadcast-strip span {
  padding: 14px;
  border-radius: 16px;
  background: rgba(15,23,42,.62);
  border: 1px solid var(--border);
  color: #dbeafe;
  font-weight: 850;
  font-size: 13px;
}
.live-showcase { min-height: 520px; display: flex; flex-direction: column; }
.live-title { font-size: 30px; line-height: 1.05; margin-bottom: 18px; }
.scoreboard-mini { display: grid; gap: 12px; margin-bottom: 16px; }
.game-context {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}
.game-context span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(148,163,184,.12);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 850;
}
.base-diamond {
  position: relative;
  width: 190px;
  height: 190px;
  margin: auto auto 0;
}
.base {
  position: absolute;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  transform: rotate(45deg);
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15,23,42,.68);
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}
.base span, .base { line-height: 1; }
.base.on { background: rgba(34,197,94,.28); color: #dcfce7; border-color: rgba(34,197,94,.52); box-shadow: 0 0 26px rgba(34,197,94,.24); }
.base-first { right: 18px; top: 72px; }
.base-second { left: 68px; top: 12px; }
.base-third { left: 18px; top: 72px; }
.base-home { left: 68px; bottom: 12px; color: #fde68a; border-color: rgba(251,191,36,.36); }
.preseason-board {
  display: grid;
  gap: 12px;
  margin-top: auto;
}
.preseason-board div {
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(15,23,42,.58);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.preseason-board span { color: var(--muted); text-align: right; }
.home-metrics .stat-card { min-height: 124px; }
.home-dashboard { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); }
.no-pad { padding: 0; }
.spotlight-stack { display: grid; gap: 12px; margin-top: 18px; }
.spotlight-player {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(15,23,42,.58);
  border: 1px solid var(--border);
}
.spotlight-metric { text-align: right; display: grid; gap: 1px; }
.spotlight-metric strong { font-size: 18px; }
.spotlight-metric span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 900; }
.preseason-rank {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 18px;
  background: rgba(15,23,42,.58);
  border: 1px dashed var(--border);
}
.compact-timeline { padding-top: 0; }
.home-bottom-cta h2 { max-width: 780px; }
@media (max-width: 900px) {
  .home-hero, .home-dashboard { grid-template-columns: 1fr; }
  .hero-feature, .live-showcase { min-height: auto; }
  .broadcast-strip { grid-template-columns: 1fr; }
  .spotlight-player { grid-template-columns: auto 1fr; }
  .spotlight-metric { text-align: left; }
}
