:root {
  --bg: #f6f5ee;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #6f4d29;
  --card: #fff;
  --border: #e3e0d4;
  --maxw: 720px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header.site, main, footer.site {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px;
}

header.site {
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
}

header.site img.cover {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}

header.site h1 { margin: 0; font-size: 24px; line-height: 1.2; }
header.site p  { margin: 4px 0 0; color: var(--muted); }

.platforms {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}

main h2 { margin-top: 32px; font-size: 18px; }

ul.episodes { list-style: none; padding: 0; }

ul.episodes li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

ul.episodes li .title    { font-weight: 600; }
ul.episodes li .meta     { color: var(--muted); font-size: 13px; }

article.episode .player { width: 100%; margin: 16px 0; }
article.episode .meta   { color: var(--muted); font-size: 13px; margin-bottom: 24px; }

article.episode .segment {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 18px;
}
article.episode .segment h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
}
article.episode .segment p { margin: 0 0 12px; }

footer.site {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Voice picker (web player) */
.voice-picker-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}
.voice-picker-wrap label { font-weight: 600; }
select.voice-picker {
  font: inherit;
  font-size: 13px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--fg);
  cursor: pointer;
}

/* Downloads table */
table.downloads {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.downloads th, table.downloads td {
  border-bottom: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
table.downloads th { color: var(--muted); font-weight: 600; }
table.downloads a.dl { white-space: nowrap; font-weight: 600; }
span.badge {
  font-size: 11px; color: var(--accent);
  border: 1px solid var(--border); border-radius: 4px;
  padding: 1px 5px; margin-left: 4px;
}