:root {
  --bg: #f7f7f8;
  --bg-elev: #ffffff;
  --text: #1a1a1e;
  --text-muted: #5c5c66;
  --border: #e2e2e6;
  --accent: #3457d5;
  --accent-soft: #eef1fd;
  --anchor-bg: #fff8e6;
  --anchor-border: #e8cf7a;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16161a;
    --bg-elev: #1e1e23;
    --text: #ececef;
    --text-muted: #a3a3ad;
    --border: #303039;
    --accent: #7d94f5;
    --accent-soft: #232a4a;
    --anchor-bg: #33290f;
    --anchor-border: #6b551f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.3);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

header.page-head h1 {
  font-size: 1.6rem;
  margin: 0 0 0.35rem;
}

header.page-head .subtitle {
  color: var(--text-muted);
  margin: 0 0 1rem;
  font-size: 0.98rem;
}

header.page-head .links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

header.page-head .links a {
  color: var(--accent);
  text-decoration: none;
}

header.page-head .links a:hover {
  text-decoration: underline;
}

header.page-head .citation {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-left: 3px solid var(--border);
  padding-left: 0.75rem;
  margin: 0 0 1.5rem;
}

.disclaimer {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  background: var(--anchor-bg);
  border: 1px solid var(--anchor-border);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  margin: 0 0 1.5rem;
}

nav.tabs {
  display: flex;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

nav.tabs button {
  appearance: none;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.6rem 0.2rem;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

nav.tabs button + button {
  margin-left: 1.4rem;
}

nav.tabs button:hover {
  color: var(--text);
}

nav.tabs button[aria-selected="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

section.tab-panel[hidden] {
  display: none;
}

.selector-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.selector-row button.chip {
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.selector-row button.chip:hover {
  border-color: var(--accent);
}

.selector-row button.chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.grid-desc {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.grid-desc figure {
  margin: 0;
  flex: 0 0 auto;
}

.grid-desc img {
  display: block;
  width: 336px;
  height: 336px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.grid-desc figcaption {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 336px;
}

.grid-desc p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.grid-desc p strong {
  color: var(--text);
}

.eq-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
}

.player-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.player-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.player-row .label {
  flex: 0 0 140px;
  width: 140px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-row .meta {
  flex: 0 0 2.75rem;
  width: 2.75rem;
  text-align: center;
}

.player-row .rank {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.player-row .tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 0.15rem 0.3rem;
  font-weight: 700;
}

.player-row audio {
  flex: 1 1 220px;
  min-width: 200px;
  height: 34px;
}

footer.page-foot {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer.page-foot a {
  color: var(--accent);
}

@media (max-width: 480px) {
  .grid-desc {
    flex-direction: column;
    align-items: flex-start;
  }
  .player-row .label {
    flex-basis: 100%;
    width: auto;
  }
}
