/* Shared listening player: used by release pages and artist pages.
   Moved out of releases.css so the artists surface can reuse it verbatim. */
.releases-page, .artists-page { --release-accent: var(--accent); }

/* Listening stays compact in the archive; full albums have their own page. */
.release-player { position: relative; width: 100%; max-width: 360px; }
.release-player--full { max-width: none; min-width: 0; }
.release-player .release-audio-engine { position: absolute; width: 1px; height: 1px; border: 0; opacity: 0; pointer-events: none; }
.release-audio-controls { display: flex; align-items: center; gap: 18px; padding: 20px 0; border-block: 1px solid var(--line-strong); }
.release-audio-play { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; background: var(--release-accent); color: var(--bg); border: 0; cursor: pointer; }
.release-audio-play:disabled { opacity: .45; cursor: wait; }
.release-audio-play:hover:not(:disabled) { background: var(--fg); }
.release-audio-main { flex: 1; min-width: 0; }
.release-audio-heading { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px 10px; align-items: baseline; font-size: 11px; line-height: 1.5; }
.release-audio-heading a { display: none; }
.release-audio-seek { display: block; width: 100%; min-height: 28px; margin: 4px 0; accent-color: var(--release-accent); cursor: pointer; }
.release-audio-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; color: #aaa; font-size: 11px; font-variant-numeric: tabular-nums; }
.release-audio-skip button { border: 0; background: none; color: var(--fg); font: inherit; padding: 0 0 0 12px; cursor: pointer; }
.release-audio-controls :focus-visible { outline: 2px solid var(--release-accent); outline-offset: 4px; }
.release-audio-tracks { list-style: none; padding: 0; margin: 0; max-height: 320px; overflow-y: auto; scrollbar-color: var(--accent) var(--bg); }
.release-audio-tracks li { border-bottom: 1px solid var(--line); }
.release-audio-track { display: flex; align-items: baseline; width: 100%; gap: 14px; padding: 13px 8px; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 12px; line-height: 1.6; text-align: left; cursor: pointer; }
.release-audio-track > span:first-child { flex: 0 0 2ch; color: var(--fg-dim); font-variant-numeric: tabular-nums; }
.release-audio-track > span:last-child { overflow-wrap: anywhere; }
.release-audio-track:hover:not(:disabled), .release-audio-track[aria-current="true"] { background: var(--hover-bg); color: var(--accent); }
.release-audio-track[aria-current="true"] > span:first-child { color: inherit; }
.release-audio-track:disabled { cursor: default; }
.release-audio-track:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.release-audio-preview-note { margin: 12px 0 0; font-size: 11px; line-height: 1.6; color: #aaa; }

@media (max-width: 700px) {
  .release-audio-controls { gap: 12px; }
  .release-audio-tracks { max-height: min(320px, 45svh); }
}
