:root {
  --hcasc-schedule-bg: #f2efe8;
  --hcasc-schedule-paper: #fffdfa;
  --hcasc-schedule-ink: #1c1c1c;
  --hcasc-schedule-muted: #655f57;
  --hcasc-schedule-line: rgba(28, 28, 28, 0.12);
  --hcasc-schedule-accent: #a33a2b;
  --hcasc-schedule-accent-strong: #6f2016;
  --hcasc-schedule-accent-soft: #f4ddd4;
  --hcasc-schedule-gold: #c69a2e;
  --hcasc-schedule-shadow: 0 24px 60px rgba(50, 31, 16, 0.12);
}

.hcasc-schedule,
.hcasc-schedule * {
  box-sizing: border-box;
}

.hcasc-schedule {
  color: var(--hcasc-schedule-ink);
  background:
    radial-gradient(circle at top left, rgba(198, 154, 46, 0.18), transparent 30%),
    radial-gradient(circle at right 10% top 20%, rgba(163, 58, 43, 0.12), transparent 28%),
    linear-gradient(180deg, #f8f4ed 0%, var(--hcasc-schedule-bg) 100%);
  font-family: Georgia, 'Times New Roman', serif;
  border-radius: 18px;
  padding: 1rem;
}

.hcasc-schedule button,
.hcasc-schedule input,
.hcasc-schedule select {
  font: inherit;
}

.hcasc-schedule.page-shell {
  width: min(1180px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.hcasc-schedule .hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.hcasc-schedule .eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  color: var(--hcasc-schedule-accent-strong);
  font-weight:500;
}

.hcasc-schedule h1 {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 5rem);
  line-height: 0.95;
}

.hcasc-schedule .lede {
  color: var(--hcasc-schedule-muted);
  max-width: 54rem;
}

.hcasc-schedule .hero-meta {
  display: flex;
  justify-content: flex-end;
}

.hcasc-schedule .meta-card,
.hcasc-schedule .controls,
.hcasc-schedule .time-slot,
.hcasc-schedule .team-card,
.hcasc-schedule .empty-state {
  background: var(--hcasc-schedule-paper);
  border: 1px solid var(--hcasc-schedule-line);
  border-radius: 24px;
  box-shadow: var(--hcasc-schedule-shadow);
}

.hcasc-schedule .meta-card {
  padding: 1rem;
  min-width: 220px;
}

.hcasc-schedule .meta-label,
.hcasc-schedule .tile-kicker {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--hcasc-schedule-muted);
  font-weight: 500;
}

.hcasc-schedule .controls {
  padding: 1rem;
  margin-bottom: 1rem;
}

.hcasc-schedule .filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 1rem;
}

.hcasc-schedule label span {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.hcasc-schedule select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--hcasc-schedule-line);
  border-radius: 12px;
  background: #fff;
  color: var(--hcasc-schedule-ink);
}

.hcasc-schedule .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 0.5rem;
}

.hcasc-schedule button {
  border: 0;
  border-radius: 999px;
  background: var(--hcasc-schedule-accent-soft);
  color: var(--hcasc-schedule-accent-strong);
  padding: 0.65rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

.hcasc-schedule button.active,
.hcasc-schedule button:hover {
  background: var(--hcasc-schedule-accent);
  color: #fff;
}

.hcasc-schedule button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.hcasc-schedule .summary-text {
  margin: 0.5rem 0 0;
  color: var(--hcasc-schedule-muted);
}

.hcasc-schedule .time-grid,
.hcasc-schedule .team-grid {
  display: grid;
  gap: 1rem;
}

.hcasc-schedule .time-slot,
.hcasc-schedule .team-card {
  padding: 1rem;
}

.hcasc-schedule .slot-header,
.hcasc-schedule .team-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hcasc-schedule .slot-header h2,
.hcasc-schedule .team-header h2 {
  margin: 0.25rem 0 0;
}

.hcasc-schedule .match-meta {
  color: var(--hcasc-schedule-muted);
  font-weight: 700;
  white-space: nowrap;
}

.hcasc-schedule .matches,
.hcasc-schedule .team-games {
  display: grid;
  gap: 0.75rem;
}

.hcasc-schedule .match-card,
.hcasc-schedule .team-game {
  background: #fff;
  border: 1px solid var(--hcasc-schedule-line);
  border-radius: 18px;
  padding: 1rem;
}

.hcasc-schedule .match-card h6,
.hcasc-schedule .team-game h6 {
  margin: 0.35rem 0 0;
}

.hcasc-schedule .empty-state {
  text-align: center;
  padding: 2rem;
}

@media (max-width: 760px) {
  .hcasc-schedule .hero,
  .hcasc-schedule .filter-grid {
    grid-template-columns: 1fr;
  }

  .hcasc-schedule .hero-meta {
    justify-content: flex-start;
  }

  .hcasc-schedule .slot-header,
  .hcasc-schedule .team-header {
    flex-direction: column;
  }
}
