:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f1f2;
  color: #251b1d;
  --hayate-wine: #6d1728;
  --hayate-wine-dark: #4f0f1d;
  --hayate-gold: #d9aa45;
  --surface: #ffffff;
  --surface-muted: #f8f5f6;
  --border: #dfd4d6;
  --text-muted: #6c5c60;
  --shadow: 0 10px 28px rgb(55 21 29 / 10%);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, #efe8ea 0, #f4f1f2 220px, #f4f1f2 100%);
}

button,
select {
  font: inherit;
}

.site-header {
  border-bottom: 4px solid var(--hayate-gold);
  background:
    radial-gradient(circle at top right, rgb(255 255 255 / 10%), transparent 38%),
    linear-gradient(135deg, var(--hayate-wine-dark), var(--hayate-wine));
  color: #fff;
}

.site-header__inner {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 30px;
}

.site-header h1 {
  margin: 4px 0 8px;
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1.15;
}

.site-header__description {
  max-width: 680px;
  margin: 0;
  color: rgb(255 255 255 / 84%);
  line-height: 1.75;
}

.eyebrow,
.section-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.catalog-shell {
  width: min(960px, calc(100% - 32px));
  margin: 24px auto 48px;
}

.catalog-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.catalog-toolbar h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.section-kicker {
  color: var(--hayate-wine);
}

.season-filter {
  display: grid;
  gap: 6px;
  min-width: 170px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.season-filter select {
  width: 100%;
  min-height: 44px;
  padding: 0 38px 0 12px;
  border: 1px solid #cdbdc1;
  border-radius: 10px;
  background: #fff;
  color: #251b1d;
}

.season-filter select:focus-visible {
  outline: 3px solid rgb(109 23 40 / 22%);
  outline-offset: 2px;
}

.season-filter select:disabled {
  cursor: not-allowed;
  background: #eee9ea;
  color: #8e8084;
}

.catalog-status {
  margin: 16px 4px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}

.catalog-status[data-state="error"] {
  color: #9d1e2f;
}

.catalog-list {
  display: grid;
  gap: 18px;
}

.media-day-card,
.message-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.media-day-card__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(135deg, #fff, var(--surface-muted));
}

.media-day-card__date {
  margin: 0 0 5px;
  color: var(--hayate-wine);
  font-size: 14px;
  font-weight: 800;
}

.media-day-card__title {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
}

.activity-badge {
  flex: none;
  padding: 6px 10px;
  border: 1px solid rgb(109 23 40 / 20%);
  border-radius: 999px;
  background: rgb(109 23 40 / 8%);
  color: var(--hayate-wine);
  font-size: 12px;
  font-weight: 800;
}

.game-list {
  display: grid;
}

.game-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
}

.game-card + .game-card {
  border-top: 1px solid var(--border);
}

.game-card__heading h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

.game-card__heading p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.media-counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.media-count {
  display: grid;
  min-width: 72px;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f2edef;
  text-align: center;
}

.media-count__label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.media-count__value {
  color: var(--hayate-wine);
  font-size: 15px;
}

.media-day-card__empty {
  margin: 0;
  padding: 22px 20px;
  color: var(--text-muted);
}

.message-card {
  padding: 36px 24px;
  text-align: center;
}

.message-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.message-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

a {
  color: var(--hayate-wine);
}

@media (max-width: 640px) {
  .site-header__inner {
    padding: 28px 0 24px;
  }

  .catalog-shell {
    margin-top: 18px;
  }

  .catalog-toolbar {
    display: grid;
    align-items: stretch;
    padding: 18px;
  }

  .season-filter {
    min-width: 0;
  }

  .media-day-card__header {
    padding: 18px;
  }

  .game-card {
    grid-template-columns: 1fr;
    padding: 17px 18px;
  }

  .media-counts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .media-count {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
