:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --card: #fff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #d7dce5;
  --accent: #2f5bea;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
.app-shell {
  width: min(1100px, calc(100vw - 24px));
  margin: 24px auto 48px;
}
.topbar, .player-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 18px rgba(31, 41, 55, 0.05);
}
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.topbar h1 { margin: 0 0 8px; }
.topbar p, .meta { color: var(--muted); }
.player-card { margin-top: 18px; }
select, button {
  font: inherit;
}
select {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
button, .origin-links a {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
button[disabled] {
  background: #b7c0d4;
  cursor: not-allowed;
}
.hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.controls {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
audio {
  width: 100%;
  margin-top: 18px;
}
.nav-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.content {
  margin-top: 20px;
  line-height: 1.8;
  font-size: 18px;
}
.content h1, .content h2, .content h3 {
  line-height: 1.35;
}
.content a {
  color: var(--accent);
}
.content ul, .content ol {
  padding-left: 1.4em;
}
.bottom-text-nav {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.bottom-text-nav a {
  color: var(--accent);
  text-decoration: none;
}
.bottom-text-nav a[aria-disabled="true"] {
  color: #9ca3af;
  pointer-events: none;
}
.bottom-nav-sep {
  color: #9ca3af;
}
@media (max-width: 720px) {
  .topbar, .hero {
    flex-direction: column;
    align-items: stretch;
  }
  .controls {
    width: 100%;
  }
}
