:root {
  --bg: #fffdf7;
  --fg: #2b2418;
  --muted: #6b6355;
  --accent: #b8860b;
  --accent-strong: #8a6508;
  --card-bg: #ffffff;
  --border: #e8e0cc;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1712;
    --fg: #f2ead9;
    --muted: #b3a892;
    --accent: #e8c04a;
    --accent-strong: #f3d570;
    --card-bg: #23201a;
    --border: #3a3527;
  }
}

* {
  box-sizing: border-box;
}

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

header, main, footer {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header {
  padding-top: 2.5rem;
  text-align: center;
}

.logo {
  max-width: 100%;
  width: 480px;
  height: auto;
}

.tagline {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 1.25rem auto 0;
}

main {
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}

h2 {
  font-size: 1.25rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

section {
  margin-bottom: 2.5rem;
}

.loading {
  color: var(--muted);
  font-style: italic;
}

#now-playing-content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

#now-playing-content h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

#now-playing-content .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

#now-playing-content audio {
  width: 100%;
  margin-bottom: 1rem;
}

#now-playing-content .description {
  font-size: 0.95rem;
}

#now-playing-content .description p {
  margin: 0 0 0.75rem;
}

#episode-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#episode-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

#episode-list li:last-child {
  border-bottom: none;
}

.episode-title {
  font-weight: 600;
}

.episode-title a {
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
}

.episode-title a:hover {
  text-decoration: underline;
  color: var(--accent-strong);
}

#episode-list li.is-playing .episode-title a {
  color: var(--accent-strong);
}

#episode-list li.is-playing .episode-title a::before {
  content: "\25B6  ";
  font-size: 0.75em;
}

.episode-date {
  color: var(--muted);
  font-size: 0.85rem;
}

.list-status {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1rem 0;
}

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

footer {
  padding: 2rem 1.25rem 3rem;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.links a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
}

.links a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.links span {
  color: var(--muted);
  margin: 0 0.5rem;
}

.error {
  color: #b3261e;
}
