:root {
  --podcast-ink: #1c1a17;
  --podcast-paper: #faf7f2;
  --podcast-line: #e4ddd2;
  --podcast-accent: #2f5d50;
  --podcast-accent-soft: #dce8e3;
  --podcast-muted: #837c6f;
  --podcast-font-body: Georgia, "Iowan Old Style", serif;
  --podcast-font-ui: -apple-system, "Segoe UI", Roboto, sans-serif;
}

.episode {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  color: var(--podcast-ink);
  font-family: var(--podcast-font-body);
}

.episode__eyebrow {
  font-family: var(--podcast-font-ui);
  font-size: 0.85rem;
  color: var(--podcast-muted);
  margin: 0 0 0.4rem;
}

.episode__title {
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

.episode__meta {
  font-family: var(--podcast-font-ui);
  font-size: 0.9rem;
  color: var(--podcast-muted);
  margin: 0 0 1.75rem;
}

.episode__dot {
  margin: 0 0.4em;
}

.episode__cover {
  width: 100%;
  border-radius: 6px;
  margin: 1.75rem 0;
}

.episode__body,
.episode__notes {
  font-size: 1.05rem;
  line-height: 1.7;
}

.episode__notes {
  border-top: 1px solid var(--podcast-line);
  margin-top: 2.5rem;
  padding-top: 2rem;
}

.episode__notes h2 {
  font-family: var(--podcast-font-ui);
  font-size: 1rem;
  color: var(--podcast-muted);
}

.episode__share {
  margin-top: 2.5rem;
}

.episode__download {
  font-family: var(--podcast-font-ui);
  font-size: 0.85rem;
  color: var(--podcast-accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* Player */

.player {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--podcast-accent-soft);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-family: var(--podcast-font-ui);
}

.player__toggle {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--podcast-accent);
  /* !important because the site's global button style
     (color: #00836F !important) otherwise wins and makes
     the icon nearly invisible against the button's own
     background. */
  color: var(--podcast-paper) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.player__icon {
  display: inline-block;
}

.player__icon:before {
  font-size: 1.1rem;
}

.player__icon[hidden] {
  display: none !important;
}

.player__body {
  flex: 1 1 auto;
  min-width: 0;
}

.player__scrubber {
  height: 6px;
  border-radius: 3px;
  background: rgba(47, 93, 80, 0.18);
  cursor: pointer;
  position: relative;
}

.player__progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--podcast-accent);
  border-radius: 3px;
}

.player__time {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--podcast-muted);
  margin-top: 0.35rem;
}

.player__speed {
  flex: 0 0 auto;
  font-size: 0.8rem;
  color: var(--podcast-accent);
  text-decoration: none;
  border: 1px solid var(--podcast-accent);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

@media (max-width: 480px) {
  .episode__title { font-size: 1.6rem; }
  .player__speed { display: none; }
}

/* Hub / episode list */

.podcast-list__search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--podcast-line);
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  margin: 1.75rem 0;
}

.podcast-list__search .icon {
  color: var(--podcast-muted);
}

.podcast-list__search input {
  flex: 1 1 auto;
  border: none;
  outline: none;
  font-family: var(--podcast-font-ui);
  font-size: 0.95rem;
  background: transparent;
}

.podcast-list__items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.podcast-list__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--podcast-line);
}

.podcast-list__item:first-child {
  border-top: none;
}

.podcast-list__play {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--podcast-accent);
  color: var(--podcast-paper) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-top: 0.2rem;
}

.podcast-list__icon[hidden] {
  display: none !important;
}

.podcast-list__body {
  flex: 1 1 auto;
  min-width: 0;
}

.podcast-list__title {
  display: block;
  font-family: var(--podcast-font-ui);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--podcast-ink);
  text-decoration: none;
  margin-bottom: 0.35rem;
}

.podcast-list__title:hover {
  text-decoration: underline;
}

.podcast-list__excerpt {
  font-family: var(--podcast-font-ui);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--podcast-ink);
  margin: 0 0 0.5rem;
}

.podcast-list__meta {
  font-family: var(--podcast-font-ui);
  font-size: 0.8rem;
  color: var(--podcast-muted);
  margin: 0;
}

.podcast-list__thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 6px;
  border: 1px solid var(--podcast-line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--podcast-accent-soft);
}

.podcast-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.podcast-list__thumb .icon {
  color: var(--podcast-accent);
  font-size: 1.2rem;
}

.podcast-list__empty {
  font-family: var(--podcast-font-ui);
  color: var(--podcast-muted);
  padding: 2rem 0;
  text-align: center;
}
