/* Inline audio list: shared playback, an independent control surface per recording. */
body { padding-bottom: 0; }
.collection .set-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
.audio-row {
  --audio-accent: var(--accent, #e0a16c);
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  padding: 0 0 26px;
  border-bottom: 1px solid #ffffff12;
  scroll-margin-top: var(--site-header-offset, 170px);
}
#panel-hotmix-air .audio-row { --audio-accent: #73b9e8; }
/* Own Sets: a quiet third accent, separate from the two radio brands. */
:root { --own-accent: #74ad91; --own-accent-active: #8dd5a8; }
#panel-own .audio-row { --audio-accent: var(--own-accent); }
.collection-tabs #tab-own.is-selected {
  background: #25332d;
  border-color: #354a3f;
  border-bottom-color: var(--own-accent-active);
}
.collection-tabs #tab-own.is-selected strong { color: var(--own-accent-active); }

.audio-row:last-child { border-bottom: 0; }
.set-cover {
  width: 128px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 6px;
  overflow: hidden;
  background: #282a32;
  color: #a4a0b3;
  font-size: 40px;
}
.set-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.set-player { min-width: 0; }
.set-heading { display: flex; align-items: flex-start; gap: 13px; min-height: 43px; }
.set-play {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f2f2f5;
  color: #17181d;
  font: inherit;
  font-size: 17px;
  cursor: pointer;
}
.set-play-icon { line-height: 1; }
.set-play:hover, .audio-row.is-playing .set-play { background: var(--audio-accent); }
.set-description { flex: 1; min-width: 0; padding-top: 1px; }
.audio-row .set-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}
.audio-row.active .set-title { color: var(--audio-accent); }
.audio-row .set-sub {
  display: block;
  min-height: 0;
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.4;
  overflow: visible;
  white-space: normal;
  -webkit-line-clamp: unset;
}
.set-download {
  flex: 0 0 36px;
  width: 36px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #b5b7c1;
  border-radius: 5px;
}
.set-download:hover { background: #ffffff0b; color: var(--audio-accent); }
.set-wave { position: relative; height: 46px; margin-top: 13px; cursor: pointer; border-radius: 3px; outline-offset: 4px; }
.set-wave[aria-disabled="true"] { cursor: default; }
.set-wave canvas { width: 100%; height: 100%; display: block; }
.set-wave-cursor { display: none; position: absolute; inset: 0 auto 0 0; width: 1px; background: #f2f2f5; pointer-events: none; }
.audio-row.active .set-wave-cursor { display: block; }
.set-meta { display: flex; align-items: center; gap: 12px; min-height: 23px; margin-top: 3px; }
.set-timing { color: #aeb0ba; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.set-duration { color: #d5d5dc; }
.set-status { flex: 1; font-size: 11px; line-height: 1.4; color: var(--muted); }
.set-status.is-error { color: #f0a291; }
/* Zeitangabe rechts unter der Wellenform; Statusmeldungen bleiben links. */
.set-meta .set-timing { order: 2; margin-left: auto; text-align: right; }
.set-meta .set-status { order: 1; }
.set-volume-label { display: flex; align-items: center; gap: 7px; margin-left: auto; color: #aeb0ba; }
.set-volume { width: 64px; margin: 0; accent-color: var(--audio-accent); }
.set-play:focus-visible, .set-download:focus-visible, .set-wave:focus-visible, .set-volume:focus-visible { outline: 2px solid var(--audio-accent); outline-offset: 4px; }
.return-to-audio {
  position: fixed;
  bottom: 22px;
  right: max(22px, calc((100vw - var(--content)) / 2));
  z-index: 25;
  padding: 11px 16px;
  border: 1px solid #655346;
  border-radius: 24px;
  background: #25232b;
  color: var(--text);
  box-shadow: 0 4px 18px #0005;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.return-to-audio[hidden] { display: none; }
.return-to-audio:hover { border-color: var(--accent); }
@media (max-width: 650px) {
  .collection .set-grid { gap: 22px; }
  .audio-row { grid-template-columns: 68px minmax(0, 1fr); gap: 12px; padding-bottom: 22px; }
  .set-cover { width: 68px; font-size: 28px; }
  .set-player { display: contents; }
  .set-heading { grid-column: 2; gap: 9px; min-height: 68px; }
  .set-play { flex-basis: 34px; width: 34px; height: 34px; font-size: 15px; }
  .audio-row .set-title { font-size: 13px; }
  .audio-row .set-sub { font-size: 11px; }
  .set-download { flex-basis: 28px; width: 28px; height: 34px; }
  .set-wave { grid-column: 1 / -1; height: 43px; margin-top: 0; }
  .set-meta { grid-column: 1 / -1; margin-top: -8px; gap: 8px; }
  .set-volume { width: 56px; }
  .return-to-audio { bottom: 16px; right: 14px; }
}
/* Keep the existing heading and record inside particularly narrow screens. */
@media (max-width: 380px) {
  .hero h1 { font-size: clamp(17px, 5.6vw, 21px); }
  .hero .hero-record { width: 54px; max-width: 54px; scale: 1; }
  .hero .eyebrow { font-size: 10px; letter-spacing: .2em; }
}
@media (max-width: 380px) {
  .audio-row { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; }
  .set-cover { width: 52px; }
  .set-heading { min-height: 52px; gap: 7px; }
  .set-play { flex-basis: 30px; width: 30px; height: 30px; font-size: 13px; }
  .audio-row .set-title { font-size: 12px; }
  .set-download { flex-basis: 24px; width: 24px; height: 30px; }
}

/* Cover draft: gently muted until that recording is playing. */
.audio-row {
  --cover-idle-saturation: .5;
  --cover-idle-veil: .14;
}
.audio-row .set-cover {
  position: relative;
  isolation: isolate;
}
.audio-row .set-cover img {
  filter: saturate(var(--cover-idle-saturation));
  transition: filter .35s ease;
}
.audio-row .set-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgb(128 128 128 / var(--cover-idle-veil));
  opacity: 1;
  pointer-events: none;
  transition: opacity .35s ease;
}
.audio-row.is-playing .set-cover img { filter: saturate(1); }
.audio-row.is-playing .set-cover::after { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .audio-row .set-cover img,
  .audio-row .set-cover::after { transition: none; }
}

/* Navigation accents reflect the collections represented in each section. */
.collection-tabs :is(#tab-story, #tab-hmf-air, #tab-hmf).is-selected {
  background: #342f2e;
  border-color: #443832;
  border-bottom-color: #e0a16c;
}
.collection-tabs :is(#tab-story, #tab-hmf-air, #tab-hmf).is-selected strong {
  color: #e0a16c;
}
.collection-tabs #tab-hotmix-air.is-selected {
  background: #21313d;
  border-color: #355b73;
  border-bottom-color: #73b9e8;
}
.collection-tabs #tab-hotmix-air.is-selected strong { color: #73b9e8; }
.collection-tabs :is(#tab-playlist, #tab-lineup).is-selected {
  /* The opaque inner layer leaves the existing rounded bottom border visible
     as two equal colour segments, at its desktop and mobile thicknesses. */
  background:
    linear-gradient(#202229, #202229) padding-box,
    linear-gradient(90deg, #e0a16c 0%, #e0a16c 50%, #73b9e8 50%, #73b9e8 100%) border-box;
  border-color: #3b3b43;
  border-bottom-color: transparent;
}
.collection-tabs :is(#tab-playlist, #tab-lineup).is-selected strong { color: var(--text); }

/* Counts and total duration stay together; narrow headings can wrap cleanly. */
.set-collection-head { flex-wrap: wrap; gap: 8px 16px; }
.set-collection-head > div { flex: 1 1 280px; }
.set-collection-head > .set-summary {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* THMF broadcast covers: rotate the existing blue tint for each year.
   Applying this to the wrapper preserves the image's separate play/pause
   saturation transition and the neutral grey veil. */
#panel-hmf-air .audio-row[data-cover-year="1994"] { --cover-year-hue: 110deg; }
#panel-hmf-air .audio-row[data-cover-year="1995"] { --cover-year-hue: 0deg; }
#panel-hmf-air .audio-row[data-cover-year="1996"] { --cover-year-hue: 240deg; }
#panel-hmf-air .audio-row[data-cover-year="1997"] { --cover-year-hue: 155deg; }
#panel-hmf-air .audio-row[data-cover-year] .set-cover {
  filter: hue-rotate(var(--cover-year-hue, 0deg));
}

/* Flat heart: white outline at zero, red outline with likes, solid red after own like. */
.set-like-group { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 5px; height: 40px; }
.set-like-count { color: #e1e1e6; min-width: 1ch; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.set-like { border: 0; background: transparent; padding: 4px; width: 32px; height: 36px; display: grid; place-items: center; cursor: pointer; color: #fff; }
.set-like svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.set-like.has-likes { color: #d94c53; }
.set-like.is-liked { color: #d94c53; cursor: default; }
.set-like.is-liked svg { fill: #d94c53; stroke: #d94c53; }
.set-like:disabled:not(.is-liked) { opacity: .55; cursor: wait; }
.set-like:focus-visible { outline: 2px solid var(--audio-accent); outline-offset: 2px; border-radius: 3px; }
@media (max-width: 650px) { .set-like-group { height: 34px; gap: 2px; } .set-like { width: 27px; height: 32px; padding: 3px; } .set-like-count { font-size: 11px; } }
@media (max-width: 380px) { .set-heading { gap: 4px; } .set-like { width: 24px; } .set-like svg { width: 20px; height: 20px; } }

/* Compact desktop list (2026-10-22): reduce whitespace and artwork,
   but keep the waveform and all transport/like/download controls full-size.
   Mobile retains its established layout below 651px. */
@media (min-width: 651px) {
  .collection .set-grid { gap: 14px; }
  .audio-row {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    padding-bottom: 12px;
  }
  .set-cover { width: 96px; font-size: 32px; }
  .set-wave { margin-top: 6px; } /* keep 46px height */
  .set-meta { min-height: 17px; margin-top: 1px; }
}
