/* First-party listening room. Scoped tokens preserve the publication's chosen theme. */
.podcast-library {
  --font-sans: 'DM Sans', sans-serif;
  --pl-bg: #fff;
  --pl-surface: #f7f7f8;
  --pl-text: #111;
  --pl-muted: #64666c;
  --pl-line: #e5e5e7;
  --pl-accent: #0069d9;
  --pl-button: #111;
  --pl-on-button: #fff;
  background: var(--pl-bg);
  color: var(--pl-text);
  padding: 80px 0 96px;
  scroll-margin-top: 90px;
}
.podcast-library :is(h2, h3) {
  --font-sans: 'Sora', sans-serif;
}
[data-theme='dark'] .podcast-library {
  --pl-bg: #0a0a0a;
  --pl-surface: #141414;
  --pl-text: #f4f4f4;
  --pl-muted: #aaa;
  --pl-line: #292929;
  --pl-accent: #419cff;
  --pl-button: #f4f4f4;
  --pl-on-button: #111;
}
.podcast-library [hidden] {
  display: none !important;
}
.podcast-library button,
.podcast-library input,
.podcast-library select {
  font: inherit;
}
.podcast-library button,
.podcast-library select {
  cursor: pointer;
}
.podcast-library button {
  -webkit-tap-highlight-color: transparent;
}
.podcast-library button:disabled {
  cursor: default;
  opacity: 0.35;
}
.podcast-library :is(button, a, input, select):focus-visible {
  outline: 2px solid var(--pl-muted);
  outline-offset: 5px;
}
.pl-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 30px;
}
.pl-kicker {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--pl-accent);
}
.podcast-library .pl-heading h2 {
  font-size: clamp(30px, 3.2vw, 44px);
  letter-spacing: -0.045em;
  line-height: 1.13;
  color: var(--pl-text);
  margin: 14px 0 0;
}
.pl-heading > p {
  color: var(--pl-muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 2px;
}
.pl-player {
  scroll-margin-top: 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--pl-surface);
  box-shadow: inset 0 0 0 1px var(--pl-line);
}
.pl-player-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.pl-meta {
  font-size: 11px;
  color: var(--pl-muted);
}
.podcast-library .pl-player h3 {
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.035em;
  color: var(--pl-text);
  margin: 8px 0 6px;
}
.pl-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}
.pl-controls button {
  border: 0;
  flex: 0 0 auto;
}
.pl-play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pl-button);
  color: var(--pl-on-button);
  display: grid;
  place-items: center;
}
.pl-play-icon {
  font-size: 18px;
  line-height: 1;
}
.pl-play:hover:not(:disabled) {
  opacity: 0.8;
}
.pl-skip {
  position: relative;
  width: 44px;
  height: 44px;
  color: var(--pl-text);
  background: transparent;
}
.pl-skip,
.pl-share {
  display: grid;
  place-items: center;
  padding: 0;
}
.pl-skip text {
  font:
    600 7px 'DM Sans',
    sans-serif;
}
.pl-timeline {
  flex: 1;
  min-width: 40px;
  padding-top: 0;
}
.pl-wave-seek {
  position: relative;
  height: 46px;
}
.pl-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 100%;
  pointer-events: none;
}
.pl-wave span {
  flex: 1;
  min-width: 1px;
  border-radius: 2px;
  background: var(--pl-line);
}
.pl-wave span.is-played {
  background: var(--pl-accent);
}
.pl-timeline input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 46px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.pl-timeline input:disabled {
  cursor: default;
}
.pl-timeline input::-webkit-slider-runnable-track {
  height: 46px;
  background: transparent;
}
.pl-timeline input::-webkit-slider-thumb {
  appearance: none;
  width: 3px;
  height: 46px;
  border-radius: 2px;
  background: var(--pl-accent);
}
.pl-timeline input::-moz-range-track {
  height: 46px;
  background: transparent;
}
.pl-timeline input::-moz-range-thumb {
  width: 3px;
  height: 46px;
  border: 0;
  background: var(--pl-accent);
}
.pl-times {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: var(--pl-muted);
}
.pl-speed select {
  background: transparent;
  border: 0;
  color: var(--pl-text);
  font-size: 12px;
  padding: 10px 0;
  min-height: 44px;
}
.pl-speed option,
.pl-results-line option {
  color: var(--pl-text);
  background: var(--pl-surface);
}
.pl-share {
  background: transparent;
  color: var(--pl-text);
  width: 44px;
  height: 44px;
  font-size: 24px !important;
}
.pl-player-status {
  font-size: 11px;
  color: var(--pl-muted);
  margin: 0;
  min-height: 17px;
}
.pl-player-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin-top: 6px;
}
.pl-library-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  border-bottom: 1px solid var(--pl-line);
}
.pl-filters {
  display: flex;
  gap: 26px;
  align-self: stretch;
}
.pl-filters button {
  min-height: 62px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  color: var(--pl-muted);
  background: transparent;
  font-size: 13px;
}
.pl-filters button[aria-pressed='true'] {
  border-bottom-color: var(--pl-text);
  color: var(--pl-text);
  font-weight: 600;
}
.pl-count {
  margin-left: 5px;
  color: var(--pl-muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.pl-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(320px, 35%);
  color: var(--pl-muted);
  border-radius: 8px;
  background: var(--pl-surface);
  padding: 0 12px;
}
.pl-search input {
  min-width: 0;
  width: 100%;
  padding: 12px 0;
  border: 0;
  outline: 0 !important;
  background: transparent;
  color: var(--pl-text);
  font-size: 13px;
  box-shadow: none !important;
}
.pl-search:focus-within {
  box-shadow: 0 0 0 1px var(--pl-muted);
}
/* The containing search field supplies the visible neutral focus state. */
html body.podcast-page .podcast-library #pl-search:focus {
  outline: none !important;
  box-shadow: none !important;
}
.pl-search input::placeholder {
  color: var(--pl-muted);
  opacity: 1;
}
.pl-results-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0 24px;
  color: var(--pl-muted);
  font-size: 12px;
}
.pl-results-line p {
  margin: 0;
}
.pl-results-line select {
  background: transparent;
  color: var(--pl-muted);
  border: 0;
  padding: 8px 0 8px 8px;
  font-size: 12px;
}
.pl-feed-notice {
  color: var(--pl-muted);
  font-size: 12px;
  margin-bottom: 20px;
}
.pl-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--pl-line);
}
.pl-card {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  border-bottom: 1px solid var(--pl-line);
  padding: 18px 0;
}
.pl-card-button {
  min-width: 0;
  flex: 1;
  text-align: left;
  background: none;
  border: 0;
  color: var(--pl-text);
  padding: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}
.pl-card-play {
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--pl-line);
  border-radius: 50%;
  color: var(--pl-text);
  font-size: 13px;
}
.pl-card-button:hover .pl-card-play,
.pl-card-button[aria-current='true'] .pl-card-play {
  background: var(--pl-button);
  color: var(--pl-on-button);
  border-color: var(--pl-button);
}
.pl-card-copy {
  display: block;
  min-width: 0;
}
.pl-card-title {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.pl-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  color: var(--pl-muted);
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.5;
}
.pl-card-length {
  font-variant-numeric: tabular-nums;
}
.pl-youtube {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--pl-line);
  border-radius: 100px;
  text-decoration: none;
  color: var(--pl-text);
  font-size: 12px;
  font-weight: 500;
}
.pl-youtube:hover {
  border-color: var(--pl-muted);
  background: var(--pl-bg);
}
#pl-youtube {
  margin-top: 0;
}
.pl-youtube-logo {
  flex: 0 0 20px;
  display: block;
}
.pl-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--pl-surface);
  border-radius: 12px;
}
.pl-empty h3 {
  color: var(--pl-text);
  font-size: 24px;
  margin: 0 0 12px;
}
.pl-empty p {
  color: var(--pl-muted);
  margin: 0 0 20px;
}
.pl-empty button,
.pl-more {
  color: var(--pl-text);
  background: transparent;
  border: 1px solid var(--pl-line);
  border-radius: 100px;
  padding: 14px 23px;
  font-size: 13px;
}
.pl-more {
  display: block;
  margin: 40px auto 0;
}
.pl-more span {
  margin-left: 18px;
}
.pl-more:hover,
.pl-empty button:hover {
  border-color: var(--pl-muted);
}
.pl-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid var(--pl-line);
  color: var(--pl-muted);
  font-size: 12px;
}
.pl-bottom div {
  display: flex;
  gap: 22px;
}
.pl-bottom a {
  color: var(--pl-text);
  text-decoration: none;
}
.pl-mini {
  position: fixed;
  z-index: 99;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--pl-surface);
  box-shadow:
    0 8px 40px #0003,
    inset 0 0 0 1px var(--pl-line);
  color: var(--pl-text);
}
.pl-mini > button:first-child {
  background: var(--pl-button);
  color: var(--pl-on-button);
  border: 0;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}
#pl-mini-jump {
  background: none;
  border: 0;
  color: var(--pl-text);
  text-align: left;
  min-width: 0;
  flex: 1;
}
#pl-mini-jump span {
  display: block;
  color: var(--pl-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 9px;
  margin-bottom: 5px;
}
#pl-mini-title {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 500;
}
#pl-mini-time {
  font-size: 11px;
  color: var(--pl-muted);
  font-variant-numeric: tabular-nums;
}
.pl-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.podcast-mini-visible {
  padding-bottom: 90px;
}
#pl-mini-close {
  width: 32px;
  height: 44px;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--pl-muted);
  font-size: 22px;
}
@media (max-width: 1000px) {
  .pl-heading {
    display: block;
  }
  .pl-heading > p {
    margin-top: 18px;
  }
  .pl-player {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 18px 20px;
  }
  .pl-controls {
    gap: 8px;
  }
  .pl-player-top {
    display: block;
  }
  .pl-meta {
    display: block;
    margin-top: 7px;
  }
  .pl-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .pl-filters {
    gap: 18px;
  }
}
@media (max-width: 640px) {
  .podcast-library {
    padding: 48px 0 64px;
  }
  .pl-heading {
    margin-bottom: 25px;
  }
  .pl-heading > p {
    font-size: 14px;
  }
  .pl-player {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    border-radius: 12px;
  }
  .pl-player-main {
    display: block;
  }
  .pl-player-top {
    grid-column: 2;
    align-self: center;
  }
  .podcast-library .pl-player h3 {
    grid-column: 1 / -1;
    font-size: 19px;
    margin: 8px 0 6px;
  }
  .pl-controls {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 44px) minmax(47px, 1fr) 44px;
    gap: 4px;
    margin: 14px 0 0;
  }
  .pl-timeline {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-top: 0;
  }
  .pl-timeline input {
    height: 46px;
  }
  .pl-controls .pl-play {
    width: 44px;
    height: 44px;
  }
  .pl-controls .pl-skip {
    width: 44px;
    grid-row: 2;
  }
  .pl-share {
    width: 44px;
  }
  .pl-controls .pl-play {
    grid-column: 2;
    grid-row: 2;
  }
  .pl-controls [data-skip='-15'] {
    grid-column: 1;
  }
  .pl-controls [data-skip='30'] {
    grid-column: 3;
  }
  .pl-speed {
    justify-self: end;
  }
  .pl-speed select {
    max-width: 47px;
  }
  .pl-player-status {
    grid-column: 1 / -1;
    font-size: 10px;
    margin: 0;
  }
  .pl-player-footer {
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
  }
  .pl-player-footer .pl-player-status {
    flex-basis: 100%;
  }
  .pl-library-bar {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
    margin-top: 28px;
  }
  .pl-search {
    width: 100%;
    box-sizing: border-box;
  }
  .podcast-library .pl-search input {
    font-size: 16px;
    padding: 12px 0;
  }
  .pl-filters {
    gap: 0;
    justify-content: space-between;
  }
  .pl-filters button {
    min-height: 50px;
    font-size: 12px;
  }
  .pl-results-line {
    padding: 12px 0 18px;
    font-size: 11px;
  }
  .pl-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .pl-card {
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 0;
  }
  .pl-card-button {
    flex-basis: 100%;
    align-items: flex-start;
    gap: 12px;
  }
  .pl-card-title {
    font-size: 15px;
  }
  .pl-card-meta {
    gap: 4px 12px;
  }
  .pl-card > .pl-youtube {
    margin-left: 56px;
    min-height: 44px;
    padding: 0 14px;
  }
  .pl-wave {
    gap: 2px;
  }
  .pl-wave span:nth-child(even) {
    display: none;
  }
  .pl-bottom {
    flex-direction: column;
    gap: 12px;
  }
  .pl-mini {
    bottom: max(12px, env(safe-area-inset-bottom));
  }
}
