/* podcast-episodes.css
   ------------------------------------------------------------
   Episode card grid + modal. Reuses the same CSS custom
   properties as the rest of the site (--surface, --text-soft,
   --border, --modal-surface, etc.) so this automatically follows
   light/dark and any character theme — nothing here is a new
   hardcoded palette.
   ------------------------------------------------------------ */

.podcast-episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.podcast-episode-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;

  padding: 1.1rem 1.25rem;
  border: none;
  border-radius: 14px;

  background: var(--surface);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: var(--text);
  text-align: left;
  cursor: pointer;

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.podcast-episode-card:hover,
.podcast-episode-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.podcast-episode-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.podcast-episode-card-count {
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* ── Modal ─────────────────────────────────────────────── */

.podcast-episode-modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 90vw;
  max-height: 90vh;
}

.podcast-episode-modal::backdrop {
  background: var(--modal-backdrop, rgba(0, 0, 0, 0.6));
}

.podcast-modal-frame {
  position: relative;
  width: min(560px, 90vw);
  max-height: 85vh;
  overflow-y: auto;

  padding: 1.75rem 1.75rem 1.5rem;
  border-radius: 18px;

  background: var(--modal-surface);
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.podcast-modal-frame .modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-soft);
}

.podcast-modal-title {
  margin: 0 2rem 0.4rem 0;
  font-size: 1.4rem;
}

.podcast-modal-blurb {
  margin: 0 0 1.25rem;
}

.podcast-modal-parts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.podcast-modal-part {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: var(--surface-soft);
}

.podcast-modal-part h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.podcast-modal-part p {
  margin: 0 0 0.6rem;
}

.podcast-part-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.podcast-part-platform {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

  padding: 0.35rem 0.7rem;
  border-radius: 999px;

  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
}

.podcast-part-platform:hover,
.podcast-part-platform:focus-visible {
  background: var(--surface-hover);
  text-decoration: none;
}

.podcast-part-platform-icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  color: #1db954; /* Spotify green — fine as a fixed brand color for this one icon */
}

.podcast-part-platform-icon svg {
  width: 100%;
  height: 100%;
}

.podcast-modal-footer {
  margin: 1.25rem 0 0;
  color: var(--text-soft);
}

/* .md-spoiler already exists in neur0list-interactions.css — this
   page doesn't load that stylesheet, so it's redeclared here too.
   If this page ever DOES load neur0list-interactions.css, the two
   rules are identical, so nothing conflicts either way. */
.md-spoiler {
  background: var(--text-soft);
  color: transparent;
  border-radius: 0.2rem;
  padding: 0 0.15em;
  cursor: pointer;
  transition: color 0.1s ease;
}
.md-spoiler.revealed,
.md-spoiler:focus {
  background: transparent;
  color: inherit;
}