.audio-playlist {
  margin: 26px 0 30px;
  border: 1px solid var(--border, #d8d2c4);
  border-radius: 14px;
  padding: 16px 18px 14px;
  background: rgba(72, 43, 64, 0.035);
}
.audio-playlist-head {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 10px;
}
.audio-playlist-badge { font-size: 1.1em; color: #482b40; }
.audio-playlist-head h2 {
  margin: 0; font-size: 1.05em; letter-spacing: .01em;
}
.audio-playlist-count {
  font-size: .8em; opacity: .65;
  font-variant-numeric: tabular-nums; margin-left: auto; white-space: nowrap;
}

.audio-tracks { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.audio-tracks li { margin: 0; }

.audio-track {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 12px; text-align: left; padding: 8px 10px;
  border: 0; border-radius: 10px;
  background: transparent; cursor: pointer; text-decoration: none; color: inherit;
  font: inherit; transition: background-color .15s ease;
}
.audio-track:hover, .audio-track:focus-visible { background: rgba(72, 43, 64, 0.07); }
.audio-track-current { background: rgba(72, 43, 64, 0.09); }

/* The play button: a real, round, pressed-looking control. */
.audio-track-glyph {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid #482b40; color: #482b40;
  font-size: 13px; line-height: 1; flex: none;
  transition: background-color .15s ease, color .15s ease;
}
.audio-track:hover .audio-track-glyph,
.audio-track-playing .audio-track-glyph {
  background: #482b40; color: #fff;
}

.audio-track-main { display: grid; gap: 1px; min-width: 0; }
.audio-track-title { font-weight: 600; }
.audio-track-attr { font-size: .82em; opacity: .8; }
.audio-track-dur {
  font-size: .8em; opacity: .7; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.audio-track-note { font-size: .75em; opacity: .6; white-space: nowrap; }
.audio-track-draft .audio-track-glyph { border-color: var(--border, #d8d2c4); color: var(--border, #d8d2c4); }

.audio-player-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px;
  display: flex; align-items: center; gap: 10px; padding: 8px 14px;
  max-width: min(92vw, 640px); border-radius: 12px;
  background: #fff; border: 1px solid #d8d2c4; box-shadow: 0 4px 18px rgba(0,0,0,.14);
  z-index: 60;
}
.audio-player-bar[hidden] { display: none; }
.audio-player-bar button { border: 0; background: none; cursor: pointer; font-size: 15px; padding: 4px; color: #482b40; }
.audio-player-bar .ap-title { font-size: .85em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.audio-player-bar .ap-seek { flex: 1; min-width: 90px; accent-color: #482b40; }
.audio-player-bar .ap-time { font-size: .75em; font-variant-numeric: tabular-nums; opacity: .75; white-space: nowrap; }
.audio-player-bar.ap-buffering .ap-title { opacity: .55; }
@media (max-width: 560px) {
  .audio-player-bar { gap: 6px; padding: 6px 10px; bottom: 8px; }
  .audio-player-bar .ap-time { display: none; }
  .audio-track { grid-template-columns: auto 1fr; }
  .audio-track-dur, .audio-track-note { display: none; }
  .audio-playlist { padding: 12px; }
}

/* Supplemental article videos use the same click-to-load player. */
#story-videos { max-width: 760px; margin-inline: auto; box-sizing: border-box; }
#story-videos .audio-track { width: 100%; text-align: start; }
#story-videos .story-video + .story-video { margin-top: 20px; }
#story-videos .story-video p { font-size: .85em; }
