.pod-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.pod-art {
  aspect-ratio: 1;
  border-radius: 26px;
  background: linear-gradient(
    145deg,
    var(--coral),
    var(--teal) 70%,
    var(--forest)
  );
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-align: center;
  padding: 2rem;
  max-width: 380px;
  justify-self: center;
  width: 100%;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
  margin-bottom: 2rem;
}
.toolbar .field {
  margin: 0;
  min-width: 220px;
}
@media (max-width: 760px) {
  .pod-hero-grid {
    grid-template-columns: 1fr;
  }
}

/* Playlist-style episode list */
.ep-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(247, 242, 230, 0.12);
  border-radius: 20px;
  padding: 0.6rem 0.6rem 1rem;
}
.ep-head,
.ep-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 120px 70px 130px;
  gap: 1rem;
  align-items: center;
  padding: 0.65rem 1rem;
}
.ep-head {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 242, 230, 0.6);
  border-bottom: 1px solid rgba(247, 242, 230, 0.12);
  margin-bottom: 0.4rem;
}
.ep-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ep-row {
  border-radius: 12px;
  transition: background 0.25s;
}
.ep-row:hover,
.ep-row:focus-within {
  background: rgba(255, 255, 255, 0.08);
}
.ep-row.is-playing {
  background: rgba(226, 160, 82, 0.12);
}
.ep-row.is-playing .ep-title {
  color: var(--gold);
}
.row-play {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ivory);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
  transition:
    background 0.25s,
    transform 0.25s;
}
.row-play:hover {
  background: var(--gold);
  color: var(--forest);
  transform: scale(1.06);
}
.row-play .pi,
.row-play .eq {
  display: none;
}
.ep-row:hover .row-play .num,
.row-play:focus-visible .num {
  display: none;
}
.ep-row:hover .row-play .pi,
.row-play:focus-visible .pi {
  display: block;
}
.ep-row.is-playing .row-play .num {
  display: none;
}
.ep-row.is-playing .row-play .eq {
  display: inline-flex;
}
.ep-row.is-playing:hover .row-play .eq {
  display: none;
}
.ep-row.is-playing:hover .row-play .pi {
  display: block;
}
.ep-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}
.ep-art {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: rgba(247, 242, 230, 0.9);
  background: linear-gradient(145deg, var(--coral), var(--teal));
}
.ep-row:nth-child(3n + 2) .ep-art {
  background: linear-gradient(145deg, var(--green), var(--forest-2));
}
.ep-row:nth-child(3n) .ep-art {
  background: linear-gradient(145deg, var(--gold), var(--coral));
}
.ep-art svg {
  width: 60%;
  height: 60%;
}
.ep-text {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  justify-items: start;
}
.ep-title {
  border: 0;
  background: none;
  color: inherit;
  font: 600 1.05rem/1.25 var(--font-body);
  text-align: left;
  padding: 0;
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ep-title:hover {
  text-decoration: underline;
  text-decoration-color: var(--gold);
}
.ep-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(247, 242, 230, 0.65);
}
.ep-date,
.ep-dur {
  font-size: 0.9rem;
  color: rgba(247, 242, 230, 0.75);
  font-variant-numeric: tabular-nums;
}
.ep-desc {
  justify-self: end;
  min-height: 40px;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(247, 242, 230, 0.4);
  background: none;
  color: var(--ivory);
  font: 600 0.85rem var(--font-body);
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.ep-desc:hover {
  background: var(--ivory);
  color: var(--forest);
  border-color: var(--ivory);
}
@media (max-width: 800px) {
  .ep-head {
    display: none;
  }
  .ep-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 0.7rem;
    padding: 0.6rem 0.4rem;
  }
  .ep-date,
  .ep-dur {
    display: none;
  }
  .ep-art {
    width: 44px;
    height: 44px;
  }
  .ep-title {
    white-space: normal;
  }
}
@media (max-width: 480px) {
  .ep-art {
    display: none;
  }
}

/* Description modal */
.ep-modal {
  border: 0;
  padding: 0;
  margin: auto;
  width: min(94vw, 800px);
  max-height: 88svh;
  overflow: auto;
  border-radius: 24px;
  background: var(--ivory);
  color: var(--ink);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.6);
}
.ep-modal[open] {
  animation: ep-in 0.5s var(--ease);
}
.ep-modal::backdrop {
  background: rgba(10, 24, 16, 0.72);
  backdrop-filter: blur(6px);
}
@keyframes ep-in {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ep-modal-close {
  position: sticky;
  top: 0.6rem;
  float: right;
  margin: 0.6rem 0.6rem 0 0;
  z-index: 2;
  color: var(--ink);
  background: rgba(29, 42, 34, 0.08);
}
.ep-modal-close:hover {
  background: rgba(29, 42, 34, 0.16);
}
.ep-modal-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(1.4rem, 4vw, 2.6rem);
  padding: clamp(1.4rem, 4vw, 2.8rem);
  clear: both;
}
.ep-modal-art {
  aspect-ratio: 1;
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    var(--coral),
    var(--teal) 70%,
    var(--forest)
  );
  display: grid;
  place-items: center;
  color: rgba(247, 242, 230, 0.85);
}
.ep-modal-art svg {
  width: 50%;
}
.ep-modal h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
@media (max-width: 700px) {
  .ep-modal-inner {
    grid-template-columns: 1fr;
  }
  .ep-modal-art {
    max-width: 160px;
  }
}

/* Real episode data: cover images, search field and pager */
.ep-art img,
.ep-modal-art img,
.pod-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.ep-art:has(img),
.ep-modal-art:has(img),
.pod-art:has(img) {
  padding: 0;
  overflow: hidden;
}
.ep-art svg {
  width: 60%;
  height: 60%;
}
.ep-note {
  padding: 1rem;
  color: rgba(247, 242, 230, 0.75);
}
.toolbar .field input[type="search"] {
  width: 100%;
}
.ep-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin-top: 2rem;
}
.ep-pager[hidden] {
  display: none;
}
.ep-pg {
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1.5px solid rgba(247, 242, 230, 0.4);
  border-radius: 999px;
  background: none;
  color: var(--ivory);
  font: 600 0.9rem var(--font-body);
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.ep-pg:hover:not(:disabled):not(.on) {
  background: rgba(247, 242, 230, 0.12);
}
.ep-pg.on {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--forest);
  cursor: default;
}
.ep-pg:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.ep-pg:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.ep-gap {
  color: rgba(247, 242, 230, 0.6);
}

/* Play and Description are icon buttons side by side; the number is plain text */
.ep-num {
  text-align: center;
  color: rgba(247, 242, 230, 0.7);
  font-variant-numeric: tabular-nums;
}
.ep-row.is-playing .ep-num {
  color: var(--gold);
  font-weight: 700;
}
.ep-acts {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}
.ep-acts .icon-btn {
  width: 44px;
  height: 44px;
  min-height: 0;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s,
    transform 0.25s;
}
.ep-acts .row-play {
  background: var(--gold);
  border: 0;
  color: var(--forest);
}
.ep-acts .row-play:hover {
  background: var(--ivory);
  transform: scale(1.06);
}
.ep-acts .row-play .pi {
  display: block;
}
.ep-acts .ep-desc {
  background: none;
  border: 1.5px solid rgba(247, 242, 230, 0.4);
  color: var(--ivory);
  justify-self: auto;
}
.ep-acts .ep-desc:hover {
  background: var(--ivory);
  color: var(--forest);
  border-color: var(--ivory);
}
.ep-acts .icon-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Latest episode in the hero */
.latest {
  margin: 1.2rem 0 1.4rem;
  max-width: 56ch;
}
.latest[hidden],
.latest-desc[hidden] {
  display: none;
}
.latest-label {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--forest);
  font: 700 0.75rem var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.latest-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.15;
}
.latest-meta {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  color: rgba(247, 242, 230, 0.7);
}
.latest-desc {
  margin: 0;
  color: rgba(247, 242, 230, 0.88);
  line-height: 1.65;
}
.pod-art {
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.55);
}

/* Search: full width, larger, and styled for the dark section */
.toolbar {
  display: block;
  margin-bottom: 1.6rem;
}
.toolbar .field {
  display: block;
  width: 100%;
  max-width: 640px;
  min-width: 0;
  margin: 0;
}
.toolbar .field label {
  display: block;
  margin: 0 0 0.5rem;
  font: 600 0.9rem var(--font-body);
  color: rgba(247, 242, 230, 0.85);
}
.toolbar .field input[type="search"] {
  display: block;
  width: 100%;
  height: 56px;
  padding: 0 1.2rem 0 3.2rem;
  border: 1.5px solid rgba(247, 242, 230, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7f2e6' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E")
    no-repeat 1.1rem center/22px;
  color: var(--ivory);
  font: 500 1.05rem var(--font-body);
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  transition:
    border-color 0.25s,
    background-color 0.25s,
    box-shadow 0.25s;
}
.toolbar .field input[type="search"]::placeholder {
  color: rgba(247, 242, 230, 0.6);
}
.toolbar .field input[type="search"]:focus {
  outline: none;
  border-color: var(--gold);
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(226, 160, 82, 0.25);
}
.mini-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.mini-art.has-cover {
  padding: 0;
  overflow: hidden;
  background: none;
}
