:root {
  --bg: #120a1a;
  --bg-alt: #1c1128;
  --gold: #d9b463;
  --purple: #a855e8;
  --cream: #f6f1eb;
  --muted: #c3b6d1;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); color: var(--gold); }
h3 { font-size: 1.15rem; color: var(--cream); }

p { margin: 0 0 1em; color: var(--muted); }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 1080px; margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(18,10,26,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(168,85,232,0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-primary {
  background: var(--purple);
  color: #ffffff;
}

.btn-header {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  padding: 90px 0 80px;
  background: radial-gradient(circle at top right, rgba(168,85,232,0.45), transparent 55%),
              radial-gradient(circle at bottom left, rgba(217,180,99,0.12), transparent 45%);
}

.hero-podcast {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-cover {
  flex: 0 0 220px;
  width: 220px;
  height: 220px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(168,85,232,0.35);
}

.hero-podcast-text { flex: 1; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  color: var(--purple);
  font-weight: 600;
  margin-bottom: 14px;
}

.hero h1 { color: var(--cream); margin-bottom: 18px; }

.hero-sub {
  font-size: 1.2rem;
  color: var(--cream);
}

.hero-body { max-width: 560px; margin-bottom: 28px; }

.hero-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-note a { color: var(--gold); }

@media (max-width: 700px) {
  .hero-podcast { flex-direction: column; text-align: left; }
  .hero-cover { width: 160px; height: 160px; flex-basis: auto; }
}

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }

/* About with portrait */
.about-flex {
  display: flex;
  gap: 40px;
  align-items: center;
}

.about-portrait {
  flex: 0 0 200px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(168,85,232,0.4);
}

.about-text { flex: 1; }

.credibility-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.credibility-badge {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.credibility-label {
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .about-flex { flex-direction: column; text-align: left; }
  .about-portrait { width: 140px; height: 140px; flex-basis: auto; }
}

.text-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(217,180,99,0.4);
}

.text-link:hover { border-color: var(--gold); }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid rgba(168,85,232,0.2);
  border-radius: 8px;
  padding: 28px;
}

.stars {
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.testimonial-quote {
  color: var(--cream);
  font-style: italic;
  margin-bottom: 18px;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(168,85,232,0.4);
}

.testimonial-avatar-initial {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(168,85,232,0.15);
  border: 1px solid rgba(168,85,232,0.4);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  color: var(--cream);
  font-size: 0.9rem;
}

.testimonial-location {
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* FAQ */
.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(168,85,232,0.15);
}

.faq-item:last-child { border-bottom: none; }

/* Image band, degrades gracefully if the background photo isn't present */
.image-band {
  height: 320px;
  background-color: var(--bg-alt);
  background-image: linear-gradient(180deg, rgba(18,10,26,0.2), rgba(18,10,26,0.6)), url("images/section-photo.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.image-band-quote { max-width: 640px; text-align: center; }

.image-band-quote p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--cream);
  margin: 0;
}

/* Final CTA */
.final-cta {
  text-align: center;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}

.final-cta .wrap { margin: 0 auto; }
.final-cta p { max-width: 480px; margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer {
  padding: 40px 0 60px;
  text-align: center;
  border-top: 1px solid rgba(168,85,232,0.15);
}

.site-footer p { margin: 4px 0; font-size: 0.85rem; }
.site-footer a { color: var(--gold); text-decoration: none; }

/* ------------------------------------------------------------------
   Podcast additions: nav, listen badges, latest episode, cards, resources
   ------------------------------------------------------------------ */

/* Header nav (hidden on small screens, the Spotify button stays) */
.header-nav {
  display: flex;
  gap: 26px;
}

.header-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
}

.header-nav a:hover { color: var(--gold); }

@media (max-width: 860px) {
  .header-nav { display: none; }
}

/* Anchored sections sit clear of the sticky header */
#latest, #clips, #meditations, #resources, #listen { scroll-margin-top: 70px; }

/* Secondary button */
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* Listen on badges */
.listen-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.listen-badges-center { justify-content: center; margin-top: 8px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 9px;
  padding: 8px 18px 8px 12px;
  text-decoration: none;
  line-height: 1.15;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.badge:hover { border-color: var(--gold); transform: translateY(-1px); }

.badge svg { width: 28px; height: 28px; flex: none; }

.badge small {
  display: block;
  font-size: 0.66rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.02em;
}

.badge strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
}

/* More platforms */
.more-platforms { margin-bottom: 8px; }

.more-platforms summary {
  cursor: pointer;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 600;
  list-style: none;
}

.more-platforms summary::-webkit-details-marker { display: none; }
.more-platforms summary::after { content: " +"; }
.more-platforms[open] summary::after { content: " \2212"; }

.more-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
}

.more-links a {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(195,182,209,0.35);
}

.more-links a:hover { color: var(--gold); border-color: var(--gold); }

/* Thumbnails: degrade to a purple glow if the image file isn't there yet */
.thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--bg-alt);
  background-image: radial-gradient(circle at 30% 20%, rgba(168,85,232,0.45), transparent 60%);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(168,85,232,0.25);
}

.thumb::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: rgba(18,10,26,0.62);
  border: 2px solid rgba(255,255,255,0.85);
  transition: transform 0.2s ease, background 0.2s ease;
}

.thumb::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  margin: -10px 0 0 -6px;
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #ffffff;
}

a:hover > .thumb::after,
a.thumb:hover::after { transform: scale(1.08); background: rgba(168,85,232,0.75); }

/* Latest episode feature */
.episode-feature {
  display: flex;
  gap: 44px;
  align-items: center;
}

.episode-thumb { flex: 0 0 46%; }
.episode-text { flex: 1; }

.episode-hook {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--cream);
}

.takeaways {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--muted);
}

.takeaways li { margin-bottom: 6px; }
.takeaways li::marker { color: var(--purple); }

.episode-note { font-size: 0.9rem; }

@media (max-width: 760px) {
  .episode-feature { flex-direction: column; align-items: stretch; gap: 26px; }
  .episode-thumb { flex-basis: auto; }
}

/* Section intro line */
.section-intro { max-width: 620px; margin-bottom: 32px; }

/* Cards for clips and meditations */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid rgba(168,85,232,0.2);
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.section-alt .card { background: var(--bg); }

.card:hover { border-color: var(--gold); transform: translateY(-2px); }

.card .thumb { border-radius: 8px; }

.card-body { display: block; padding: 16px 6px 6px; }

.card-meta {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple);
  font-weight: 600;
  margin-bottom: 8px;
}

.card-title {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.25;
  margin-bottom: 8px;
}

.card-text {
  display: block;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* Resources */
.resource-group { margin-top: 8px; }

.resource-group h3 {
  color: var(--gold);
  font-size: 1.05rem;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(168,85,232,0.2);
  margin-bottom: 4px;
}

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

.resource-list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(168,85,232,0.12);
}

.resource-list li:last-child { border-bottom: none; }

.resource-list a,
.resource-list strong {
  display: block;
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 2px;
}

.resource-list a { color: var(--gold); }
.resource-list a::after { content: " \2192"; }
.resource-list a:hover { text-decoration: underline; }

.resource-list span {
  display: block;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ------------------------------------------------------------------
   Playable video (latest episode preview) and Shorts
   ------------------------------------------------------------------ */

.episode-media { flex: 0 0 46%; }

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(168,85,232,0.25);
  box-shadow: 0 16px 40px rgba(168,85,232,0.2);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  margin: 10px 0 0;
  font-size: 0.82rem;
  text-align: center;
}

@media (max-width: 760px) {
  .episode-media { flex-basis: auto; }
}

/* Shorts: click-to-play vertical cards */
.shorts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.shorts-grid:empty { display: none; }

.short {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(168,85,232,0.25);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.short:hover { border-color: var(--gold); transform: translateY(-2px); }

.short iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.short-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  text-align: left;
  font: inherit;
  color: inherit;
  background-color: var(--bg-alt);
  background-image: radial-gradient(circle at 30% 20%, rgba(168,85,232,0.45), transparent 60%);
  background-size: cover;
  background-position: center;
}

.short-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: rgba(18,10,26,0.62);
  border: 2px solid rgba(255,255,255,0.85);
  transition: transform 0.2s ease, background 0.2s ease;
}

.short-play::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  z-index: 1;
  margin: -10px 0 0 -6px;
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #ffffff;
}

.short-play:hover::after,
.short-play:focus-visible::after { transform: scale(1.08); background: rgba(168,85,232,0.75); }

.short-play:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }

.short-title {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  padding: 44px 14px 14px;
  background: linear-gradient(180deg, transparent, rgba(18,10,26,0.92));
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--cream);
}

@media (max-width: 900px) {
  .shorts-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .shorts-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .short:nth-child(n+5) { display: none; }
}

/* ------------------------------------------------------------------
   Meditation videos, feature sections (circles + quiz), resource cards
   ------------------------------------------------------------------ */

/* Click-to-play meditation videos */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background-color: var(--bg-alt);
  background-image: radial-gradient(circle at 30% 20%, rgba(168,85,232,0.45), transparent 60%);
  background-size: cover;
  background-position: center;
}

.video-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: rgba(18,10,26,0.62);
  border: 2px solid rgba(255,255,255,0.85);
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-play::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  margin: -10px 0 0 -6px;
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #ffffff;
}

.video-play:hover::after,
.video-play:focus-visible::after { transform: scale(1.08); background: rgba(168,85,232,0.75); }

.video-play:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* Feature sections: visual on one side, text on the other */
.feature-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.feature-split-reverse { grid-template-columns: 1.05fr 0.95fr; }
.feature-split-reverse .feature-visual { order: 2; }

.feature-visual {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-alt);
  background-image: radial-gradient(circle at 50% 40%, rgba(168,85,232,0.32), transparent 65%);
  border: 1px solid rgba(168,85,232,0.25);
}

.section-alt .feature-visual { background-color: var(--bg); }

.feature-visual > svg { width: 84%; height: auto; }

.feature-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-tag {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 2;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(18,10,26,0.82);
  border: 1px solid rgba(217,180,99,0.5);
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-text .takeaways { margin-bottom: 18px; }

/* Stress Mask visual */
.mask-visual > svg.mask-icon {
  width: 42%;
  fill: rgba(168,85,232,0.14);
  stroke: var(--gold);
  stroke-width: 0.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mask-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding: 0 16px;
}

.mask-chips span {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(168,85,232,0.5);
  background: rgba(168,85,232,0.12);
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Quiz steps */
.steps {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.steps li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(168,85,232,0.15);
  color: var(--muted);
}

.steps li:last-child { border-bottom: none; }

.step-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--purple);
}

@media (max-width: 760px) {
  .feature-split,
  .feature-split-reverse { grid-template-columns: 1fr; gap: 28px; }
  .feature-split-reverse .feature-visual { order: 0; }
}

/* Resource cards with visuals. If an image file is missing, the icon tile shows instead. */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 22px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
  border: 1px solid rgba(168,85,232,0.2);
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

a.resource-card:hover { border-color: var(--gold); transform: translateY(-2px); }

.resource-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background-color: #241636;
  background-image: radial-gradient(circle at 30% 20%, rgba(168,85,232,0.45), transparent 60%),
                    linear-gradient(135deg, #2a1740, #1c1128);
}

.resource-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.resource-visual.photo > img { object-fit: cover; }

.resource-icon {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resource-body { display: block; padding: 16px 6px 6px; }

@media (max-width: 900px) {
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .resource-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
   Expanding players and episode cards
   ------------------------------------------------------------------ */

/* A playing meditation takes the full row and moves to the top of its grid,
   so the other cards drop underneath it */
.card.is-playing {
  grid-column: 1 / -1;
  order: -1;
  transform: none;
  border-color: var(--gold);
  padding: 18px;
}

.card.is-playing:hover { transform: none; }

.card.is-playing .video-frame { border-radius: 10px; }

.card.is-playing .card-body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 18px;
  padding: 18px 4px 4px;
}

.card.is-playing .card-meta,
.card.is-playing .card-title { margin-bottom: 0; }

.card.is-playing .card-title { font-size: 1.4rem; }

.card.is-playing .card-text { flex-basis: 100%; margin-top: 8px; }

.player-close {
  margin-left: auto;
  padding: 6px 14px;
  border: 1px solid rgba(217,180,99,0.5);
  border-radius: 999px;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.player-close:hover,
.player-close:focus-visible { background: var(--gold); color: var(--bg); }

/* Episode cards (filled from the RSS feed) */
.episode-grid { margin-bottom: 36px; }
.episode-grid:empty { display: none; }

.episode-cover {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-alt);
  background-image: radial-gradient(circle at 30% 20%, rgba(168,85,232,0.45), transparent 60%);
}

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

.episode-card .card-body { flex: 1; }

.episode-card audio {
  width: 100%;
  margin-top: 14px;
  color-scheme: dark;
}

.episode-link {
  align-self: flex-start;
  margin: 12px 6px 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(217,180,99,0.4);
}

.episode-link:hover { border-bottom-color: var(--gold); }

/* Spotify player */
.spotify-player {
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid rgba(168,85,232,0.2);
}

.spotify-player iframe { display: block; border: 0; }
