/* Lucky Loser episode detail: mobile-first, one artwork, one listening action. */

.podcast-episode-page .topnav a.is-current {
  color: var(--orange);
}

.podcast-episode-page .topbar:not(.scrolled) .brand-name,
.podcast-episode-page .topbar:not(.scrolled) .topnav a {
  color: #f7f8fa;
}

.podcast-episode-page .topbar:not(.scrolled) .brand-sub {
  color: rgba(255, 255, 255, .64);
}

.podcast-episode-page .topbar:not(.scrolled) .burger span {
  background: #f7f8fa;
}

.podcast-episode-page .topbar:not(.scrolled) .topnav a.is-current {
  color: var(--orange);
}

.epd {
  background: var(--paper);
}

.epd-shell,
.epd-body-grid {
  width: min(100%, 1180px);
  margin-inline: auto;
}

.epd-hero {
  overflow: hidden;
  color: #f7f8fa;
  background:
    radial-gradient(circle at 86% 14%, rgba(232, 114, 26, .2), transparent 32%),
    var(--ink);
  padding: 6.8rem 1.25rem 2.25rem;
}

.epd-back {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  color: rgba(255, 255, 255, .72);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  transition: color .25s var(--ease), transform .25s var(--ease);
}

.epd-back:hover {
  color: var(--orange);
  transform: translateX(-3px);
}

.epd-hero-grid {
  display: grid;
  gap: 1.45rem;
  margin-top: 1.35rem;
}

.epd-art {
  width: 88px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 18px 44px -22px rgba(0, 0, 0, .78);
}

.epd-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.epd-intro {
  min-width: 0;
}

.epd-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem 0;
  color: rgba(255, 255, 255, .66);
  font-size: .68rem;
  font-weight: 700;
}

.epd-meta > * {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding-right: .75rem;
}

.epd-meta > * + * {
  border-left: 1px solid rgba(255, 255, 255, .22);
  padding-left: .75rem;
}

.epd-intro h1 {
  max-width: 18ch;
  margin-top: .8rem;
  color: #f7f8fa;
  font-family: var(--display);
  font-size: clamp(2.05rem, 9.2vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .98;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.epd-player {
  max-width: 700px;
  margin-top: 1.4rem;
  padding: .75rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: rgba(255, 255, 255, .055);
}

.epd-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font: 700 .84rem/1 var(--sans);
  cursor: pointer;
  transition: background-color .25s var(--ease), transform .25s var(--spring);
}

.epd-play:hover {
  background: var(--orange-2);
  transform: translateY(-1px);
}

.epd-play:active {
  transform: scale(.985);
}

.epd-play-mark {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--ink);
}

.epd-player audio {
  display: block;
  width: 100%;
  min-height: 52px;
  color-scheme: dark;
  accent-color: var(--orange);
}

.epd-player audio[hidden] {
  display: none;
}

.epd-privacy,
.epd-player-status {
  margin: .65rem .35rem 0;
  color: rgba(255, 255, 255, .52);
  font-size: .72rem;
  line-height: 1.5;
}

.epd-player-status:empty {
  display: none;
}

.epd-audio-missing {
  color: rgba(255, 255, 255, .72);
  font-size: .9rem;
  line-height: 1.55;
}

.epd-body {
  padding: 3.25rem 1.25rem 5.5rem;
}

.epd-body-grid {
  display: grid;
  gap: 3rem;
}

.epd-notes h2,
.epd-aside h2 {
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.025em;
}

.epd-notes h2 {
  margin-bottom: 1.35rem;
  font-size: clamp(1.8rem, 7vw, 3rem);
}

.epd-prose,
.epd-empty {
  max-width: 70ch;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.epd-prose > * + * {
  margin-top: 1.1rem;
}

.epd-prose h2,
.epd-prose h3,
.epd-prose h4 {
  margin-top: 2.25rem;
  color: var(--text);
  font-family: var(--display);
  line-height: 1.16;
}

.epd-prose h2 {
  font-size: 1.55rem;
}

.epd-prose h3 {
  font-size: 1.25rem;
}

.epd-prose a {
  color: var(--orange-text);
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.epd-prose ul,
.epd-prose ol {
  padding-left: 1.25rem;
}

.epd-prose li + li {
  margin-top: .5rem;
}

.epd-prose blockquote {
  padding: .2rem 0 .2rem 1.15rem;
  border-left: 3px solid var(--orange);
  color: var(--text);
  font-weight: 600;
}

.epd-prose img {
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.epd-aside {
  align-self: start;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-2);
}

.epd-aside h2 {
  margin-bottom: .7rem;
  font-size: 1.15rem;
}

.epd-actions {
  display: grid;
}

.epd-actions a,
.epd-actions button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 50px;
  padding: .75rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: 700 .82rem/1.3 var(--sans);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color .25s var(--ease), padding .25s var(--ease);
}

.epd-actions a:last-child,
.epd-actions button:last-child {
  border-bottom: 0;
}

.epd-actions a:hover,
.epd-actions button:hover {
  padding-left: .3rem;
  color: var(--orange-text);
}

.epd-share-status {
  min-height: 1.2em;
  margin-top: .7rem;
  color: var(--text-3);
  font-size: .65rem;
  line-height: 1.4;
}

.epd-footer {
  padding-top: 2.4rem;
}

.epd-footer .ft-word {
  margin-top: 0;
}

@media (min-width: 620px) {
  .epd-hero,
  .epd-body {
    padding-inline: clamp(1.5rem, 5vw, 4.5rem);
  }

  .epd-hero {
    padding-top: 7.6rem;
    padding-bottom: 3.4rem;
  }

  .epd-hero-grid {
    grid-template-columns: minmax(180px, 30%) minmax(0, 1fr);
    align-items: end;
    gap: clamp(2rem, 5vw, 4.5rem);
    margin-top: 2rem;
  }

  .epd-intro h1 {
    font-size: clamp(2.05rem, 7.4vw, 4.7rem);
  }

  .epd-art {
    width: 100%;
    max-width: 330px;
    border-radius: 22px;
  }

  .epd-player,
  .epd-aside {
    border-radius: 22px;
  }

  .epd-play {
    width: auto;
    min-width: 210px;
    padding-inline: 1.45rem;
  }

  .epd-body {
    padding-top: 4.5rem;
    padding-bottom: 7rem;
  }
}

@media (min-width: 960px) {
  .epd-body-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
    gap: clamp(4rem, 8vw, 7rem);
  }

  .epd-aside {
    position: sticky;
    top: 6.5rem;
  }
}

@media (max-width: 619px) {
  .epd-art,
  .epd-intro {
    grid-column: 1;
    grid-row: 1;
  }

  .epd-art {
    align-self: start;
  }

  .epd-meta,
  .epd-intro h1,
  .epd-player {
    margin-left: 104px;
  }

  .epd-intro h1 {
    min-height: 3.9rem;
    font-size: clamp(1.7rem, 7.6vw, 2.3rem);
    line-height: 1.02;
  }

  .epd-player {
    margin-top: 1.8rem;
    margin-left: 0;
  }

  .epd-meta > * {
    min-height: 21px;
    padding-right: .55rem;
  }

  .epd-meta > * + * {
    padding-left: .55rem;
  }
}

@media (max-width: 390px) {
  .epd-art {
    width: 84px;
  }

  .epd-meta,
  .epd-intro h1 {
    margin-left: 98px;
  }

  .epd-meta {
    font-size: .61rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .epd-back,
  .epd-play,
  .epd-actions a,
  .epd-actions button {
    transition: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .epd-player {
    background: #171c26;
  }
}
