:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #15172b;
  --ink-soft: #5b5e76;
  --accent: #00876c;
  --accent-ink: #ffffff;
  --accent-soft: #e0f3ee;
  --hot: #c8102e;       /* official-ish */
  --border: #e3e6ee;
  --shadow: 0 1px 2px rgba(15,17,32,.04), 0 8px 24px rgba(15,17,32,.06);
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.hero {
  background: linear-gradient(135deg, #003a30 0%, #00876c 100%);
  color: white;
  padding: 56px 16px 40px;
}
.hero__inner { max-width: 980px; margin: 0 auto; }
.hero h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.hero__sub { margin: 0; opacity: .92; max-width: 640px; }

.container {
  max-width: 980px;
  margin: -24px auto 32px;
  padding: 0 16px 32px;
  display: grid;
  gap: 16px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  border: 1px solid var(--border);
}

.filters__row { display: grid; gap: 12px; }
.filters__row + .filters__row { margin-top: 16px; }
.filters__row--inline {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: end;
}
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group__label { font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
select {
  font: inherit;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: white;
  min-height: 38px;
}

.chip-grid {
  display: flex; flex-wrap: wrap; gap: 6px;
  max-height: 180px; overflow-y: auto;
  padding: 4px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fafbff;
}
.chip {
  font-size: .85rem; padding: 4px 10px; border-radius: 999px;
  background: white; border: 1px solid var(--border); cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
  user-select: none;
}
.chip[aria-pressed="true"] {
  background: var(--accent); color: white; border-color: var(--accent);
}

.tz-note { margin: 12px 0 0; color: var(--ink-soft); font-size: .9rem; }

.subscribe h2 { margin: 0 0 4px; }
.subscribe__summary { margin: 0 0 14px; color: var(--ink-soft); }
.subscribe__buttons { display: flex; flex-wrap: wrap; gap: 8px; }

.btn {
  font: inherit; font-weight: 600; cursor: pointer;
  padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: white; color: var(--ink);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: transform .04s ease, background .15s ease;
}
.btn:hover { background: #f1f4fa; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn--primary:hover { background: #006b56; }
.btn--ghost { background: transparent; }
.btn--small { padding: 6px 10px; font-size: .85rem; }

.subscribe__details { margin-top: 16px; }
.subscribe__details summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.subscribe__details ul { padding-left: 18px; }

.results { display: grid; gap: 16px; }
.results h2 { margin: 4px 4px 0; font-size: 1.1rem; color: var(--ink-soft); font-weight: 600; }

.day-group {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.day-group__header {
  padding: 12px 16px;
  background: var(--accent-soft);
  font-weight: 700;
  color: #004634;
  border-bottom: 1px solid var(--border);
}

.match {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.match:first-of-type { border-top: 0; }
.match__time { display: flex; flex-direction: column; }
.match__time-local { font-weight: 700; font-variant-numeric: tabular-nums; }
.match__time-venue { color: var(--ink-soft); font-size: .8rem; }
.match__teams-row { font-weight: 600; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.match__vs { color: var(--ink-soft); font-weight: 400; }
.match__home, .match__away { display: inline-flex; gap: 4px; align-items: center; }
.match__meta { color: var(--ink-soft); }

.placeholder { color: var(--ink-soft); font-style: italic; font-weight: 500; }

.empty {
  text-align: center; padding: 32px; color: var(--ink-soft);
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border);
}

.footer {
  text-align: center; padding: 24px 16px 40px; color: var(--ink-soft); font-size: .85rem;
}

@media (max-width: 600px) {
  .match { grid-template-columns: 1fr; }
  .match__actions { justify-self: stretch; }
  .match__actions .btn { width: 100%; justify-content: center; }
}

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: white; padding: 10px 16px; border-radius: 999px;
  box-shadow: var(--shadow); font-size: .9rem;
  opacity: 0; transition: opacity .2s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; }
