:root {
  --bg: #14110e;
  --panel: #1d1914;
  --ink: #f3eadc;
  --muted: #b3a48d;
  --line: #3a3228;
  --accent: #e07a3d;
  --accent-2: #7eb8b0;
  --card: #241f19;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  background: var(--bg);
  color: var(--ink);
}
.app {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 300px;
  height: 100%;
  min-height: 100vh;
  padding-bottom: 110px;
}
.rail, .notes-col {
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 1.2rem 1rem 2rem;
  overflow: auto;
}
.notes-col { border-right: 0; border-left: 1px solid var(--line); }
.eyebrow {
  margin: 0 0 0.25rem;
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
h1, h2, h3 { margin: 0 0 0.35rem; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.05rem; color: var(--accent-2); }
.lede, .meta { color: var(--muted); margin: 0 0 1rem; font-size: 0.95rem; }
.search {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  margin-bottom: 0.7rem;
}
.topics { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.85rem; }
.topics button, .btn {
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  cursor: pointer;
  text-decoration: none;
}
.topics button.on, .btn:hover { background: var(--accent); color: #1a120c; border-color: var(--accent); }
.shows { display: grid; gap: 0.4rem; }
.show {
  text-align: left;
  width: 100%;
  background: var(--card);
  border: 1px solid transparent;
  color: inherit;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
}
.show:hover, .show.on { border-color: var(--accent); }
.show b { display: block; }
.show span { color: var(--muted); font-size: 0.8rem; font-family: system-ui, sans-serif; }
.stage { padding: 1.3rem 1.4rem 2rem; overflow: auto; }
.episodes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.ep {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
}
.ep.playing { border-color: var(--accent); }
.ep h4 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.ep p { margin: 0 0 0.55rem; color: var(--muted); font-size: 0.9rem; }
.ep .row { display: flex; gap: 0.45rem; flex-wrap: wrap; align-items: center; }
.ep button, .ep a {
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 650;
  border-radius: 8px;
  border: 0;
  padding: 0.38rem 0.7rem;
  cursor: pointer;
  text-decoration: none;
}
.play { background: var(--accent); color: #1a120c; }
.note-btn { background: #2d4a47; color: #dff3f0; }
.dl { background: #3a3228; color: var(--ink); }
textarea {
  width: 100%;
  min-height: 55vh;
  resize: vertical;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem;
  font: inherit;
  line-height: 1.45;
}
.save-state { font-family: system-ui, sans-serif; font-size: 0.75rem; color: var(--muted); }
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 1.4fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.7rem 1.1rem;
  background: #100e0b;
  border-top: 1px solid var(--line);
}
.now-show { margin: 0; font-size: 0.75rem; color: var(--accent-2); font-family: system-ui, sans-serif; }
.now-title { margin: 0.1rem 0 0; font-weight: 700; }
audio { width: 100%; }
@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; height: auto; }
  .rail, .notes-col { border: 0; max-height: none; }
  .dock { grid-template-columns: 1fr; }
}
