.sheet[data-panel="podcasts"] {
  --podcast-ink: var(--surface-contrast, #fff);
  --podcast-ink-rgb: var(--surface-contrast-rgb, 255, 255, 255);
}

.sheet[data-panel="podcasts"] .sheetHeader,
.sheet[data-panel="podcasts"] .sheetPanel h2 {
  color: var(--podcast-ink);
}

.sheet[data-panel="podcasts"] .sheetClose {
  color: rgba(var(--podcast-ink-rgb), .72);
  background: rgba(var(--podcast-ink-rgb), .07);
  box-shadow: inset 0 0 0 1px rgba(var(--podcast-ink-rgb), .04);
}

.sheet[data-panel="podcasts"] .sheetClose:hover {
  color: var(--podcast-ink);
  background: rgba(var(--podcast-ink-rgb), .12);
}

.mainPodcastTimeline {
  display: grid;
  width: min(100%, 480px);
  gap: 7px;
  margin-top: 24px;
}

.mainPodcastTimeline[hidden],
.podcastReturnToLive[hidden] {
  display: none;
}

.mainPodcastTimeline input[type="range"] {
  width: 100%;
  height: 22px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.mainPodcastTimeline input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--accent) 0 var(--podcast-progress, 0%),
    rgba(255, 255, 255, .2) var(--podcast-progress, 0%) 100%
  );
}

.mainPodcastTimeline input[type="range"]::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -5px;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid var(--accent-contrast, #08090b);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 9px rgba(0, 0, 0, .34);
}

.mainPodcastTimeline input[type="range"]::-moz-range-track {
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
}

.mainPodcastTimeline input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
}

.mainPodcastTimeline input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent-contrast, #08090b);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 9px rgba(0, 0, 0, .34);
}

.mainPodcastTimeline input[type="range"]:focus-visible {
  outline: 3px solid rgba(var(--accent-rgb), .46);
  outline-offset: 3px;
}

.mainPodcastTimeline input[type="range"]:disabled {
  cursor: progress;
  opacity: .58;
}

.mainPodcastTimes {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, .56);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.podcastReturnToLive {
  position: relative;
  z-index: 3;
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  margin-top: 17px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  color: #fff;
  background: rgba(8, 9, 11, .56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 28px rgba(0, 0, 0, .2);
  backdrop-filter: blur(18px) saturate(1.2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 720;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.podcastReturnToLive img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  opacity: .82;
}

.podcastReturnToLive:hover {
  border-color: rgba(var(--accent-rgb), .56);
  background: rgba(var(--accent-rgb), .18);
  transform: translateY(-1px);
}

.podcastReturnToLive:focus-visible {
  outline: 3px solid rgba(var(--accent-rgb), .7);
  outline-offset: 3px;
}

.app.is-podcast-mode .nowPlaying {
  color: var(--accent);
}

.app.is-podcast-mode .meta h1 {
  font-size: clamp(1.9rem, 3.5vw, 3.35rem);
  line-height: 1.04;
}

.app.is-podcast-mode .videoBackdrop {
  opacity: 0 !important;
  pointer-events: none;
}

.app.is-podcast-mode .currentTrackVote:disabled {
  opacity: .42;
  pointer-events: none;
}

.podcastShowDirectory {
  display: grid;
  gap: 18px;
}

.podcastShowDirectoryIntro {
  position: relative;
  margin: 0;
  padding-left: 13px;
  color: rgba(var(--podcast-ink-rgb), .62);
  font-size: 13px;
  line-height: 1.55;
}

.podcastShowDirectoryIntro::before {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
}

.podcastShowGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
}

.podcastShowCard {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 118px;
  grid-template-columns: 96px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 14px;
  padding: 10px 9px 10px 10px;
  overflow: hidden;
  border: 1px solid rgba(var(--podcast-ink-rgb), .1);
  border-radius: 8px;
  color: var(--podcast-ink);
  text-align: left;
  background: rgba(var(--podcast-ink-rgb), .035);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .11);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.podcastShowCard:hover {
  border-color: rgba(var(--accent-rgb), .42);
  background: rgba(var(--podcast-ink-rgb), .06);
  box-shadow: 0 13px 34px rgba(0, 0, 0, .16);
}

.podcastShowCard:focus-visible {
  outline: 3px solid rgba(var(--accent-rgb), .72);
  outline-offset: 3px;
}

.podcastShowArtwork {
  position: relative;
  display: block;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 7px;
  background: rgba(var(--podcast-ink-rgb), .08);
  box-shadow: inset 0 0 0 1px rgba(var(--podcast-ink-rgb), .08);
}

.podcastShowArtwork::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

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

.podcastShowCopy {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 6px;
}

.podcastShowCopy strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--podcast-ink);
  font-size: 16px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.podcastShowCopy small {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(var(--podcast-ink-rgb), .56);
  font-size: 12px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.podcastShowCount {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  color: rgba(var(--podcast-ink-rgb), .72);
  font-size: 11px;
  font-weight: 700;
}

.podcastShowCount::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .14);
  content: "";
}

.podcastShowChevron {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: rgba(var(--podcast-ink-rgb), .62);
  background: rgba(var(--podcast-ink-rgb), .055);
  font-size: 24px;
  line-height: 1;
  transition: color .18s ease, background .18s ease;
}

.podcastShowCard:hover .podcastShowChevron {
  color: var(--accent);
  background: rgba(var(--accent-rgb), .12);
}

.podcastFeed {
  display: grid;
  gap: 18px;
}

.podcastBackButton {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  gap: 9px;
  padding: 0 4px 0 0;
  border: 0;
  color: rgba(var(--podcast-ink-rgb), .72);
  background: transparent;
  cursor: pointer;
}

.podcastBackButton:hover {
  color: var(--podcast-ink);
}

.podcastBackButton:focus-visible {
  outline: 3px solid rgba(var(--accent-rgb), .72);
  outline-offset: 3px;
}

.podcastBackButton > span:first-child {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(var(--podcast-ink-rgb), .1);
  border-radius: 50%;
  background: rgba(var(--podcast-ink-rgb), .045);
  font-size: 16px;
  line-height: 1;
}

.podcastBackButton > span:last-child {
  font-size: 12px;
  font-weight: 700;
}

.podcastShowDetail {
  animation: podcastDetailIn .2s ease both;
}

@keyframes podcastDetailIn {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: none; }
}

.podcastFeedIntro {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  padding: 2px 0 18px;
  border-bottom: 1px solid rgba(var(--podcast-ink-rgb), .1);
}

.podcastFeedIntro img {
  width: 78px;
  height: 78px;
  border-radius: 7px;
  object-fit: cover;
  object-position: center;
  background: rgba(var(--podcast-ink-rgb), .08);
  box-shadow: inset 0 0 0 1px rgba(var(--podcast-ink-rgb), .09);
}

.podcastFeedIntro strong,
.podcastFeedIntro small,
.podcastFeedIntro div > span {
  display: block;
}

.podcastFeedIntro strong {
  color: var(--podcast-ink);
  font-size: 18px;
  line-height: 1.25;
}

.podcastFeedIntro small {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 6px;
  color: rgba(var(--podcast-ink-rgb), .56);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.podcastFeedIntro div > span {
  margin-top: 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
}

.podcastEpisodeList {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.podcastEpisode {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(var(--podcast-ink-rgb), .09);
  border-radius: 8px;
  color: var(--podcast-ink);
  background: rgba(var(--podcast-ink-rgb), .035);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .12);
}

.podcastEpisode.is-playing {
  border-color: rgba(var(--accent-rgb), .56);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .15), 0 14px 36px rgba(0, 0, 0, .16);
}

.podcastEpisodeMedia {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #090b0d;
}

.podcastEpisodeMedia::after {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .2);
  content: "";
  pointer-events: none;
}

.podcastEpisodeCover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: rgba(var(--podcast-ink-rgb), .08);
}

.podcastPlayButton {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: inline-grid;
  width: 58px;
  height: 58px;
  place-items: center;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  color: var(--accent-contrast);
  background: var(--accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .38), 0 0 0 6px rgba(0, 0, 0, .16);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.podcastPlayButton:hover {
  transform: translate(-50%, -50%) scale(1.055);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .43), 0 0 0 7px rgba(var(--accent-rgb), .2);
}

.podcastPlayButton:active {
  transform: translate(-50%, -50%) scale(.97);
}

.podcastPlayButton:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4), 0 0 0 8px rgba(var(--accent-rgb), .38);
}

.podcastPlayButton::before {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid currentColor;
  content: "";
}

.podcastEpisode.is-playing .podcastPlayButton::before {
  width: 13px;
  height: 15px;
  margin: 0;
  border: 0;
  background: linear-gradient(90deg, currentColor 0 34%, transparent 34% 66%, currentColor 66%);
}

.podcastEpisodeBody {
  display: grid;
  min-width: 0;
  flex: 1;
  align-content: start;
  gap: 11px;
  padding: 13px 14px 15px;
}

.podcastEpisodeCopy {
  min-width: 0;
}

.podcastEpisodeMeta {
  display: flex;
  min-height: 15px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: rgba(var(--podcast-ink-rgb), .5);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.podcastEpisodeMeta > * + *::before {
  margin-right: 8px;
  color: var(--accent);
  content: "•";
}

.podcastEpisodeCopy strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--podcast-ink);
  font-size: 15px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.podcastEpisodeCopy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 7px 0 0;
  color: rgba(var(--podcast-ink-rgb), .58);
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.podcastProgress {
  align-self: end;
  width: 100%;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(var(--podcast-ink-rgb), .1);
}

.podcastProgress > i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width .2s linear;
}

.podcastPanelState {
  display: grid;
  min-height: 240px;
  place-items: center;
  align-content: center;
  gap: 15px;
  padding: 28px;
  color: rgba(var(--podcast-ink-rgb), .62);
  text-align: center;
  line-height: 1.55;
}

.podcastPanelState::before {
  width: 46px;
  height: 46px;
  background: var(--accent);
  content: "";
  -webkit-mask: url("./assets/icons/ios-podcast.svg") center / contain no-repeat;
  mask: url("./assets/icons/ios-podcast.svg") center / contain no-repeat;
}

.podcastPanelState.is-compact {
  min-height: 170px;
}

.podcastRetry {
  min-height: 42px;
  margin-top: 2px;
  padding: 0 18px;
  border: 1px solid rgba(var(--podcast-ink-rgb), .14);
  border-radius: 7px;
  color: var(--podcast-ink);
  background: rgba(var(--podcast-ink-rgb), .055);
  cursor: pointer;
}

.podcastRetry:focus-visible {
  outline: 3px solid rgba(var(--accent-rgb), .72);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .mainPodcastTimeline {
    width: min(100%, 340px);
    margin: 17px auto 0;
  }

  .podcastReturnToLive {
    margin: 12px auto 0;
  }

  .app.is-podcast-mode .meta h1 {
    font-size: clamp(1.35rem, 5.8vw, 1.85rem);
  }

  .app.is-mobile.is-podcast-mode[data-playing="true"] .coverWrap .playButton,
  .app.is-mobile.is-podcast-mode[data-playing="true"].is-play-control-dismissed .coverWrap .playButton,
  .app.is-mobile.is-podcast-mode[data-playing="true"].is-play-control-hovered .coverWrap .playButton {
    position: absolute;
    inset: 50% auto auto 50%;
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .46);
    border-radius: 50%;
    background: rgba(8, 9, 12, .76);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .46), inset 0 1px 0 rgba(255, 255, 255, .18);
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translate(-50%, -50%) !important;
    backdrop-filter: blur(20px) saturate(1.3);
  }

  .app.is-mobile.is-podcast-mode[data-playing="true"] .playIcon {
    display: flex !important;
    width: 20px;
    height: 24px;
  }

  .podcastShowDirectory {
    gap: 15px;
  }

  .podcastShowGrid {
    gap: 8px;
  }

  .podcastShowCard {
    min-height: 108px;
    grid-template-columns: 84px minmax(0, 1fr) 28px;
    gap: 12px;
    padding: 11px 8px 11px 11px;
  }

  .podcastShowArtwork {
    width: 84px;
    height: 84px;
  }
}

@media (max-width: 620px) {
  .podcastFeed {
    gap: 15px;
  }

  .podcastFeedIntro {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 13px;
    padding-bottom: 16px;
  }

  .podcastFeedIntro img {
    width: 70px;
    height: 70px;
  }

  .podcastFeedIntro strong {
    font-size: 17px;
  }

  .podcastEpisodeMedia {
    aspect-ratio: 16 / 9;
  }

  .podcastPlayButton {
    width: 56px;
    height: 56px;
  }

  .podcastEpisodeBody {
    padding: 12px 13px 14px;
  }

  .podcastEpisodeCopy strong {
    font-size: 15px;
  }
}

@media (max-width: 370px) {
  .mainPodcastTimeline {
    margin-top: 13px;
  }

  .podcastReturnToLive {
    min-height: 38px;
    margin-top: 9px;
    padding: 0 12px;
    font-size: 12px;
  }

  .podcastShowCard {
    min-height: 96px;
    grid-template-columns: 72px minmax(0, 1fr) 26px;
    gap: 10px;
    padding: 10px 7px 10px 10px;
  }

  .podcastShowArtwork {
    width: 72px;
    height: 72px;
  }

  .podcastShowCopy strong {
    font-size: 15px;
  }

  .podcastShowCopy small {
    -webkit-line-clamp: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .podcastPlayButton,
  .podcastShowCard,
  .podcastShowChevron {
    transition: none;
  }

  .podcastShowDetail {
    animation: none;
  }
}
