:root {
  --bg: #090d0d;
  --panel: #111817;
  --panel-2: #18211f;
  --panel-3: #202a28;
  --line: rgba(255,255,255,.10);
  --text: #f4f6f5;
  --muted: #a9b3b0;
  --teal: #2ba79d;
  --teal-dark: #1f7e76;
  --gold: #d7b15b;
  --red: #c63c3c;
  --shadow: 0 18px 50px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(43,167,157,.12), transparent 36rem),
    linear-gradient(180deg, #0c1110 0%, var(--bg) 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }

.page-shell { min-height: 100vh; }
.hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(7,12,11,.80), rgba(7,12,11,.96)),
    url("assets/footer-pattern.jpg") center/cover;
}
.hero-inner {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 34px;
  text-align: center;
}
.league-logo {
  display: block;
  width: min(560px, 96%);
  max-height: 170px;
  object-fit: contain;
  margin: 0 auto 10px;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.35));
}
.eyebrow {
  margin: 4px 0 8px;
  color: var(--gold);
  font-size: .77rem;
  font-weight: 900;
  letter-spacing: .20em;
}
h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -.04em;
}
.hero-copy {
  color: var(--muted);
  max-width: 760px;
  margin: 14px auto 20px;
  font-size: clamp(.98rem, 2vw, 1.08rem);
  line-height: 1.55;
}
.live-strip {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid rgba(43,167,157,.35);
  border-radius: 999px;
  background: rgba(16,31,29,.72);
  color: #d7f7f3;
  font-size: .85rem;
}
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #55e6a9;
  box-shadow: 0 0 0 5px rgba(85,230,169,.10), 0 0 16px rgba(85,230,169,.6);
}
.live-strip.error .live-dot { background: #ff6b6b; box-shadow: 0 0 0 5px rgba(255,107,107,.10); }
.last-updated { color: #8ba29d; }

.content {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 44px;
}
.toolbar {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(240px, 2fr) repeat(2, minmax(150px, 1fr)) auto;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(17,24,23,.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.filter-field { min-width: 0; }
.filter-field label {
  display: block;
  margin: 0 0 7px;
  color: #c6cecc;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.filter-field input,
.filter-field select {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 11px;
  outline: none;
  background: #0c1211;
  color: var(--text);
  padding: 0 12px;
}
.filter-field input:focus,
.filter-field select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43,167,157,.12); }
.toolbar-actions { display: flex; gap: 8px; align-items: end; }
.btn {
  height: 46px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 0 15px;
  color: #fff;
  font-weight: 850;
  white-space: nowrap;
}
.btn.primary { background: linear-gradient(180deg, #2aa69c, #1d7b73); border-color: #36b6ab; }
.btn.secondary { background: #202927; border-color: rgba(255,255,255,.12); }
.btn:hover { transform: translateY(-1px); filter: brightness(1.07); }
.btn.active { background: #d7b15b; color: #18130a; border-color: #f1cc72; }

.summary-bar {
  display: grid;
  grid-template-columns: repeat(3, 112px) 1fr;
  gap: 10px;
  align-items: center;
  margin: 16px 0;
}
.summary-bar > div {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 13px 14px;
  text-align: center;
}
.summary-bar span { display: block; font-size: 1.55rem; font-weight: 950; }
.summary-bar small { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; font-weight: 800; }
.summary-bar p { margin: 0; color: var(--muted); text-align: right; font-size: .84rem; }

.schedule-notice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
  padding: 15px 16px;
  border: 1px solid rgba(215,177,91,.30);
  border-radius: 16px;
  background: rgba(75,59,27,.22);
}
.notice-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: #19140a;
  font-weight: 950;
}
.schedule-notice h2 { margin: 0 0 4px; font-size: .95rem; color: #f6d889; }
.schedule-notice p { margin: 0; color: #c8c1ae; font-size: .84rem; line-height: 1.45; }
.schedule-notice a {
  text-decoration: none;
  border: 1px solid rgba(215,177,91,.42);
  border-radius: 10px;
  padding: 9px 12px;
  color: #f6d889;
  font-weight: 850;
  font-size: .82rem;
  white-space: nowrap;
}

.schedule-root { display: grid; gap: 24px; }
.district-section {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(17,24,23,.82);
  box-shadow: 0 16px 40px rgba(0,0,0,.20);
}
.district-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 18px 20px;
  background: linear-gradient(90deg, rgba(43,167,157,.18), rgba(43,167,157,.03));
  border-bottom: 1px solid var(--line);
}
.district-title-wrap { display: flex; align-items: center; gap: 12px; }
.district-chip {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #48bcb2;
  background: #14211f;
  color: #71ded4;
  font-weight: 950;
}
.district-header h2 { margin: 0; font-size: 1.45rem; }
.district-header p { margin: 3px 0 0; color: var(--muted); font-size: .82rem; }
.district-count {
  color: #d3ddda;
  font-weight: 800;
  font-size: .82rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(0,0,0,.15);
}
.days-wrap { padding: 18px; display: grid; gap: 16px; }
.day-block {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  overflow: hidden;
  background: #0d1312;
}
.day-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: #18201f;
}
.day-heading h3 { margin: 0; font-size: 1rem; }
.day-heading span { color: var(--muted); font-size: .76rem; font-weight: 800; }
.day-heading.today { background: linear-gradient(90deg, rgba(215,177,91,.20), #18201f); }
.day-heading.today h3::after {
  content: " TODAY";
  margin-left: 8px;
  color: var(--gold);
  font-size: .68rem;
  letter-spacing: .08em;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}
.game-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  background: #131a19;
}
.game-card:hover { border-color: rgba(43,167,157,.35); background: #16201e; }
.game-card h4 {
  margin: 0 0 5px;
  overflow-wrap: anywhere;
  font-size: 1rem;
}
.address {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
  font-size: .80rem;
}
.meta-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 27px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #202a28;
  color: #d8dfdd;
  font-size: .72rem;
  font-weight: 760;
}
.meta-pill.start { background: rgba(43,167,157,.14); color: #8ce7df; border: 1px solid rgba(43,167,157,.20); }
.meta-pill.td { background: rgba(215,177,91,.11); color: #e6cd8d; }
.game-links { display: flex; flex-direction: column; gap: 7px; justify-content: center; }
.game-links a {
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 9px;
  padding: 7px 9px;
  background: #0c1110;
  color: #dce4e2;
  font-size: .72rem;
  font-weight: 820;
  text-align: center;
}
.game-links a:hover { border-color: var(--teal); color: #8ce7df; }

.empty-state, .error-state {
  margin-top: 20px;
  padding: 44px 20px;
  text-align: center;
  border: 1px dashed rgba(255,255,255,.15);
  border-radius: 20px;
  background: rgba(17,24,23,.72);
}
.empty-suit { font-size: 2.3rem; color: var(--teal); }
.empty-state h2, .error-state h2 { margin: 8px 0; }
.empty-state p, .error-state p { color: var(--muted); }

footer {
  padding: 30px 16px 38px;
  border-top: 1px solid var(--line);
  text-align: center;
  background:
    linear-gradient(rgba(6,10,9,.90), rgba(6,10,9,.96)),
    url("assets/footer-pattern.jpg") center/cover;
  color: #96a19e;
}
footer p { margin: 8px 0 4px; }
footer small { color: #6f7d79; }
.suits { color: #d7b15b; letter-spacing: .18em; font-size: 1.1rem; }
.suits span { color: #c44; }

@media (max-width: 900px) {
  .toolbar { position: static; grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .toolbar-actions { align-items: stretch; }
  .toolbar-actions .btn { flex: 1; }
  .summary-bar { grid-template-columns: repeat(3, 1fr); }
  .summary-bar p { grid-column: 1 / -1; text-align: center; }
  .game-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-inner { width: min(100% - 20px, 1180px); padding-top: 18px; }
  .content { width: min(100% - 18px, 1180px); padding-top: 14px; }
  .toolbar { grid-template-columns: 1fr; border-radius: 14px; padding: 12px; }
  .search-field { grid-column: auto; }
  .toolbar-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .summary-bar { gap: 7px; }
  .summary-bar > div { padding: 10px 7px; }
  .summary-bar span { font-size: 1.25rem; }
  .schedule-notice { grid-template-columns: auto 1fr; }
  .schedule-notice a { grid-column: 1 / -1; text-align: center; }
  .district-header { padding: 14px; }
  .district-chip { width: 42px; height: 42px; }
  .district-header h2 { font-size: 1.18rem; }
  .district-count { display: none; }
  .days-wrap { padding: 10px; gap: 10px; }
  .game-card { grid-template-columns: 1fr; }
  .game-links { flex-direction: row; }
  .game-links a { flex: 1; }
}
