:root {
  color-scheme: dark;
  --ink: #ffffff;
  --muted: #b8b8b8;
  --panel: #202020;
  --panel-soft: #292929;
  --line: #454545;
  --sounds: #ff4c12;
  --sounds-light: #ff7a2f;
  --error: #ffb19a;
  --black: #000000;
  --near-black: #101010;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--near-black); scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--near-black);
}

a { color: inherit; }
button, input { font: inherit; }

.sounds-inner,
.content-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.sounds-bar {
  background: #151515;
  border-bottom: 1px solid #303030;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.sounds-inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
}

nav { display: flex; align-items: stretch; }

nav a {
  display: flex;
  align-items: center;
  padding: 0 20px;
  color: #bdbdbd;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  border-bottom: 4px solid transparent;
  height: 72px;
}

nav a:hover { color: #fff; background: #242424; }
nav a.active { color: #fff; border-bottom-color: var(--sounds); }

.eyebrow {
  margin: 0 0 15px;
  color: var(--sounds-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

form label {
  display: block;
  margin-bottom: 9px;
  font-size: 0.82rem;
  font-weight: 800;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

input {
  min-width: 0;
  padding: 18px 18px;
  border: 3px solid #fff;
  border-right: 0;
  border-radius: 0;
  color: #111;
  background: #fff;
  outline: 0;
}

input:focus { border-color: var(--sounds-light); box-shadow: inset 0 0 0 2px #111; }
input::placeholder { color: #646464; }

.programme-combobox {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px;
}

#programme-search {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border: 2px solid #fff;
  border-right: 0;
  border-radius: 0;
  color: #111;
  background: #fff;
  outline: 0;
}

#programme-search:focus { border-color: var(--sounds-light); box-shadow: inset 0 0 0 2px #111; }
.programme-dropdown-button {
  min-height: 0;
  justify-content: center;
  gap: 0;
  padding: 0;
  border: 2px solid #fff;
  color: #111;
  background: #fff;
}
.programme-dropdown-button span:last-child { font-size: 1.25rem; line-height: 1; transition: transform 150ms ease; }
.programme-dropdown-button:hover,
.programme-dropdown-button:focus { color: #fff; background: #292929; }
.programme-dropdown-button.is-open span { transform: rotate(180deg); }
.programme-options {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 20;
  max-height: 320px;
  overflow-y: auto;
  border: 2px solid var(--sounds-light);
  background: #fff;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.5);
}
.programme-options[hidden] { display: none; }
.programme-options [role="option"] {
  width: 100%;
  min-height: 0;
  display: block;
  padding: 11px 14px;
  border-bottom: 1px solid #ddd;
  color: #111;
  background: #fff;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}
.programme-options [role="option"] span { display: block; font-size: inherit; line-height: 1.3; }
.programme-options .programme-option-title { font-size: 0.92rem; font-weight: 800; }
.programme-options .programme-option-episode { margin-top: 2px; color: #555; font-size: 0.78rem; font-weight: 500; }
.programme-options .programme-option-date { margin-top: 7px; color: #6b6b6b; font-size: 0.7rem; font-weight: 700; }
.programme-options [role="option"]:hover .programme-option-episode,
.programme-options [role="option"]:hover .programme-option-date,
.programme-options [role="option"].is-active .programme-option-episode,
.programme-options [role="option"].is-active .programme-option-date { color: #ddd; }
.programme-options [role="option"]:last-child { border-bottom: 0; }
.programme-options [role="option"]:hover,
.programme-options [role="option"].is-active { color: #fff; background: #292929; }
.programme-list-status { min-height: 1.2em; margin: 8px 0 18px; color: #ddd; font-size: 0.74rem; }

button,
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 0;
  border-radius: 0;
  padding: 0 22px;
  color: #fff;
  background: var(--black);
  font-weight: 800;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

button span:last-child,
.download-button span:last-child { font-size: 1.7rem; line-height: 0; }
button:hover, .download-button:hover { background: #292929; }
button:active, .download-button:active { transform: translateY(1px); }
button:disabled { cursor: wait; opacity: 0.65; }

.content-shell { padding: 40px 0; }

.process-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-bottom: 40px;
  padding: clamp(26px, 5vw, 48px);
  background: linear-gradient(112deg, #290500, #731300);
  border-top: 6px solid var(--sounds);
}

.process-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.process-heading p {
  max-width: 420px;
  margin: 14px 0 0;
  color: #ddd;
  line-height: 1.45;
}

.selected-tracklist {
  grid-column: 1 / -1;
  container-type: inline-size;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.selected-tracklist h3 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -0.025em;
}

.selected-tracklist-status { min-height: 1.2em; margin: 8px 0 18px; color: #ddd; font-size: 0.78rem; }
.music-played-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.music-played-grid .offline-now-playing { margin: 0; }
.show-track-favourite { width: 38px; height: 38px; font-size: 1.35rem; }

@container (min-width: 513px) {
  .music-played-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@container (min-width: 775px) {
  .music-played-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@container (min-width: 1037px) {
  .music-played-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.job-card {
  margin-bottom: 52px;
  padding: clamp(24px, 5vw, 42px);
  border-top: 6px solid var(--sounds);
  background: var(--panel);
}

.job-card[data-status="failed"] { border-top-color: var(--error); }
.job-card[data-status="failed"] .eyebrow { color: var(--error); }

.job-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.job-heading h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.8rem); letter-spacing: -0.035em; }
.progress-number { font: 800 clamp(1.8rem, 4vw, 3rem)/1 Arial, sans-serif; color: var(--sounds-light); }

.progress-track { height: 12px; margin-top: 27px; overflow: hidden; background: #4b4b4b; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--sounds); transition: width 350ms ease; }
.job-card[data-status="failed"] .progress-track span { background: var(--error); }

.job-message { min-height: 1.5em; margin: 18px 0 0; color: #d0d0d0; }

details { margin-top: 25px; border-top: 1px solid var(--line); padding-top: 18px; }
summary { color: #ccc; cursor: pointer; font-size: 0.84rem; font-weight: 700; }
pre { max-height: 190px; overflow: auto; white-space: pre-wrap; color: #c9c9c9; font: 0.76rem/1.55 ui-monospace, monospace; }

.download-button {
  margin-top: 28px;
  padding: 18px 22px;
  color: #111;
  background: var(--sounds-light);
  text-decoration: none;
}

.download-button:hover { color: #fff; background: var(--sounds); }
[hidden] { display: none !important; }

.live-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin: 0 0 52px;
  padding: clamp(26px, 5vw, 48px);
  color: #111;
  background: var(--sounds-light);
}

.live-section.is-fip { background: #e2007a; }
.live-section.is-fip .station-mark { background: #4b0029; border-color: #7c2756; }
.live-section.is-fip .station-mark b { color: #ff80c3; }
.live-section.is-fip .on-air i { background: #ff80c3; box-shadow: 0 0 0 4px rgba(226, 0, 122, 0.22); }
.is-fip-live .header-artwork,
.is-fip-live .now-playing-artwork { color: #ff80c3; background: #4b0029; }
.is-fip-live .header-track-copy p,
.is-fip-live .now-playing-copy p { color: #ff80c3; }

.on-air {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 9px;
  color: #fff;
  background: #111;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.on-air i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sounds);
  box-shadow: 0 0 0 4px rgba(255, 76, 18, 0.2);
}

.live-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.live-copy > p:last-child {
  max-width: 470px;
  margin: 18px 0 0;
  line-height: 1.5;
}

.live-player-panel {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: stretch;
  min-width: 0;
  background: #111;
  box-shadow: 0 18px 38px rgba(69, 14, 0, 0.28);
}

.station-mark {
  width: 190px;
  height: 190px;
  min-height: 190px;
  display: grid;
  align-content: center;
  justify-items: center;
  color: #fff;
  background: #2a0600;
  border-right: 1px solid #4c2b25;
  overflow: hidden;
}

.station-mark > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.station-mark > span {
  display: grid;
  justify-items: center;
}

.station-mark strong {
  font-size: 4.8rem;
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.08em;
}

.station-mark b { margin-top: 7px; color: var(--sounds-light); font-size: 0.8rem; letter-spacing: 0.12em; }

.player-area {
  min-width: 0;
  align-self: center;
  padding: 28px;
}

.fip-toggle-row {
  min-height: 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.fip-toggle-status {
  color: #aaa;
  font-size: 0.62rem;
}

.fip-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 5px 3px 7px;
  border: 1px solid #7c2756;
  border-radius: 999px;
  color: #ff80c3;
  background: #4b0029;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
  min-height: 24px;
  white-space: nowrap;
}

.fip-toggle i {
  position: relative;
  width: 25px;
  height: 14px;
  border-radius: 999px;
  background: #241018;
  transition: background 160ms ease;
}

.fip-toggle i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff80c3;
  transition: transform 160ms ease;
}

.fip-toggle[aria-checked="true"] i { background: #e2007a; }
.fip-toggle[aria-checked="true"] i::after { transform: translateX(11px); background: #fff; }
.fip-toggle:hover { border-color: #ff80c3; }
.fip-toggle:focus-visible { outline: 2px solid #ff80c3; outline-offset: 2px; }
.fip-toggle:disabled { cursor: wait; opacity: 0.65; }

.header-now-playing {
  min-width: 0;
  max-width: 390px;
  display: flex;
  flex: 1 1 390px;
  gap: 10px;
  align-items: center;
}

.header-artwork {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--sounds-light);
  background: #2a0600;
}

.header-artwork img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.header-artwork span {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
}

.header-track-copy { min-width: 0; flex: 1 1 auto; }

.header-track-copy p {
  margin: 0 0 2px;
  color: var(--sounds-light);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header-track-copy .track-search-link,
.header-track-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-track-copy .track-search-link {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
}

.track-search-link:hover { text-decoration: underline; }

.header-track-copy span {
  margin-top: 2px;
  color: #bdbdbd;
  font-size: 0.7rem;
}

.header-radio-toggle {
  width: 38px;
  height: 38px;
  min-height: 0;
  flex: 0 0 38px;
  justify-content: center;
  gap: 0;
  padding: 0;
  border: 1px solid #666;
  border-radius: 50%;
  color: #fff;
  background: #242424;
}

.header-radio-toggle span:last-child { font-size: 0.82rem; line-height: 1; }
.header-radio-toggle:hover { color: var(--sounds-light); background: #303030; }
.header-radio-toggle.is-playing { color: var(--sounds-light); }
.favourite-button.header-favourite { width: 38px; height: 38px; font-size: 1.35rem; }

.favourite-button {
  position: relative;
  width: 46px;
  height: 46px;
  min-height: 0;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  gap: 0;
  padding: 0;
  border: 1px solid #777;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-size: 1.7rem;
}

.favourite-button span:last-child {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1em;
  height: 1em;
  display: grid;
  place-items: center;
  font-size: inherit;
  line-height: 1;
  transform: translate(-50%, -50%);
}
.favourite-button:hover { color: #fff; background: #4a1000; border-color: var(--sounds-light); }
.favourite-button.is-favourite { color: var(--sounds-light); border-color: var(--sounds-light); }
.favourite-button:disabled { cursor: default; opacity: 0.35; }

.now-playing {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.now-playing-artwork {
  width: 76px;
  height: 76px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--sounds-light);
  background: #2a0600;
}

.now-playing-artwork img { width: 100%; height: 100%; display: block; object-fit: cover; }
.now-playing-artwork span { font-size: 2.8rem; font-weight: 800; line-height: 1; letter-spacing: -0.08em; }
.now-playing-copy { min-width: 0; }
.now-playing-copy p { margin: 0 0 5px; color: var(--sounds-light); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.now-playing-copy .track-search-link,
.now-playing-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-playing-copy .track-search-link { color: #fff; font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 800; line-height: 1.15; text-decoration: none; }
.now-playing-copy span { margin-top: 6px; color: #bdbdbd; font-size: 0.82rem; }

main section { scroll-margin-top: 88px; }

.favourites-page { padding: clamp(32px, 6vw, 72px) 0; }
.favourites-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 6px solid var(--sounds);
}
.favourites-heading h1,
.favourites-heading h2 { margin: 0; font-size: clamp(2.3rem, 6vw, 4.5rem); letter-spacing: -0.05em; }
.favourites-heading p:last-child { margin-bottom: 0; color: var(--muted); }
.favourites-list { display: grid; gap: 10px; margin-top: 28px; }
.favourite-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background: var(--panel);
  border-left: 4px solid var(--sounds);
}
.favourite-artwork {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--sounds-light);
  background: #2a0600;
  font-size: 2.8rem;
  font-weight: 800;
}
.favourite-artwork img { width: 100%; height: 100%; object-fit: cover; }
.favourite-copy { min-width: 0; }
.favourite-copy a { color: #fff; font-size: 1.2rem; font-weight: 800; text-decoration: none; }
.favourite-copy a:hover { text-decoration: underline; }
.favourite-copy p { margin: 6px 0; color: #ddd; }
.favourite-copy small { color: var(--muted); }
.favourite-context { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0; }
.favourite-context p { margin: 0; color: var(--muted); font-size: 0.78rem; }
.favourite-context span { margin-right: 6px; color: var(--sounds-light); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.live-player-panel .video-js {
  width: 100%;
  height: 58px;
  color: #fff;
  background: #242424;
  font-size: 12px;
}

.live-player-panel .video-js.vjs-audio-only-mode { height: 58px !important; }
.live-player-panel .video-js .vjs-control-bar { height: 58px; align-items: center; background: #242424; }
.live-player-panel .video-js .vjs-control { height: 58px; }
.live-player-panel .video-js button {
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 400;
  transform: none;
  transition: none;
}
.live-player-panel .video-js button span:last-child { font-size: inherit; line-height: inherit; }
.live-player-panel .video-js .vjs-play-progress,
.live-player-panel .video-js .vjs-volume-level { background: var(--sounds-light); }
.live-player-panel .video-js .vjs-slider { background: #5d5d5d; }
.live-player-panel .video-js .vjs-load-progress { background: #777; }
.live-player-panel .video-js .vjs-big-play-button { border-color: var(--sounds-light); }
.live-player-panel .video-js button:hover { background: transparent; color: var(--sounds-light); }

.radio-status {
  min-height: 1.2em;
  margin: 12px 0 0;
  color: #a9a9a9;
  font-size: 0.74rem;
}

.activity-section {
  margin-top: 20px;
  padding: clamp(24px, 4vw, 40px);
  background: #181818;
  border-top: 6px solid var(--sounds);
}

.activity-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.activity-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
}

.quiet-button,
.remove-button,
.library-download {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid #666;
  color: #fff;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.quiet-button:hover,
.remove-button:hover { background: #333; }

.activity-group { margin-top: 34px; }

.group-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.group-heading h3 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.count-badge {
  min-width: 28px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  color: #111;
  background: var(--sounds-light);
  font-size: 0.75rem;
  font-weight: 800;
}

.process-list { display: grid; gap: 10px; }

.process-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 15px 24px;
  padding: 20px;
  border-left: 4px solid var(--sounds);
  background: var(--panel-soft);
}

.process-item[data-status="failed"] { border-left-color: var(--error); }
.process-item[data-status="queued"] { border-left-color: #8b8b8b; }

.processed-item {
  grid-template-columns: minmax(132px, 170px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
  padding: clamp(18px, 3vw, 26px);
}

.programme-artwork {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #1a0500;
}

.programme-artwork img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.artwork-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  background: linear-gradient(145deg, #5e1300, #1b0500);
}

.artwork-fallback b {
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  line-height: 0.8;
  letter-spacing: -0.09em;
}

.artwork-fallback span {
  margin-top: 10px;
  color: var(--sounds-light);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.artwork-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  min-height: 0;
  box-sizing: border-box;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.84);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  font-size: 0;
  transform: translate(-50%, -50%);
}

.artwork-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 46px;
  background: currentColor;
  clip-path: polygon(10% 0, 100% 50%, 10% 100%);
  /* The triangle's centroid is 40% across this box, not 50%. */
  transform: translate(-40%, -50%);
}

.artwork-play:hover {
  color: #111;
  background: var(--sounds-light);
  transform: translate(-50%, -50%) scale(1.05);
}

.artwork-play:active { transform: translate(-50%, -50%) scale(0.98); }
.artwork-play.is-playing {
  color: #111;
  background: var(--sounds-light);
}

.artwork-play.is-playing::before {
  width: 40px;
  height: 40px;
  clip-path: none;
  transform: translate(-50%, -50%);
}

.programme-details { min-width: 0; }

.programme-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.programme-heading h4 {
  margin: 0;
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.programme-description {
  max-width: 880px;
  margin: 12px 0 0;
  color: #d1d1d1;
  font-size: 0.9rem;
  line-height: 1.5;
}

.programme-meta {
  margin: 10px 0 0;
  color: #aaa;
  font-size: 0.76rem;
}

.history-player-wrap { margin-top: 18px; }

.offline-now-playing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  padding: 14px 16px;
  background: #151515;
  border-left: 3px solid var(--sounds-light);
}

.offline-track-copy { min-width: 0; }
.offline-track-copy p { margin: 0 0 4px; color: var(--sounds-light); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.offline-track-copy a,
.offline-track-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offline-track-copy a { color: #fff; font-weight: 800; text-decoration: none; }
.offline-track-copy a:hover { text-decoration: underline; }
.offline-track-copy span { margin-top: 4px; color: #bbb; font-size: 0.8rem; }

.history-player-wrap .video-js {
  width: 100%;
  height: 52px;
  color: #fff;
  background: #171717;
  font-size: 11px;
}

.history-player-wrap .video-js.vjs-audio-only-mode { height: 52px !important; }
.history-player-wrap .video-js .vjs-control-bar { height: 52px; align-items: center; background: #171717; }
.history-player-wrap .video-js .vjs-control { height: 52px; }
.history-player-wrap .video-js button {
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 400;
  transform: none;
  transition: none;
}
.history-player-wrap .video-js button span:last-child { font-size: inherit; line-height: inherit; }
.history-player-wrap .video-js .vjs-play-progress,
.history-player-wrap .video-js .vjs-volume-level { background: var(--sounds-light); }
.history-player-wrap .video-js .vjs-slider { background: #555; }
.history-player-wrap .video-js button:hover { color: var(--sounds-light); background: transparent; }
.history-player-wrap .video-js.vjs-layout-tiny .vjs-progress-control,
.history-player-wrap .video-js.vjs-layout-x-small .vjs-progress-control {
  min-width: 44px;
  display: flex;
  flex: 1 1 auto;
}

.history-player-wrap .video-js.vjs-layout-tiny .vjs-custom-control-spacer,
.history-player-wrap .video-js.vjs-layout-x-small .vjs-custom-control-spacer {
  display: none;
}

.history-player-status {
  min-height: 1.2em;
  margin: 8px 0 0;
  color: #aaa;
  font-size: 0.72rem;
}

.processed-item .process-filename { margin-top: 12px; }
.processed-item .process-actions { margin-top: 14px; }

.process-summary {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.process-copy { min-width: 0; }
.process-copy h4 { margin: 0; font-size: 1rem; }
.process-meta { margin: 6px 0 0; color: #aaa; font-size: 0.76rem; }

.job-status {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: #111;
  background: var(--sounds-light);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.process-item[data-status="failed"] .job-status { background: var(--error); }
.process-item[data-status="queued"] .job-status { color: #fff; background: #656565; }

.compact-progress-line {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #ccc;
  font-size: 0.8rem;
}

.compact-progress-line b { color: var(--sounds-light); }

.compact-progress {
  grid-column: 1 / -1;
  height: 6px;
  overflow: hidden;
  background: #515151;
}

.compact-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--sounds);
  transition: width 350ms ease;
}

.process-filename {
  min-width: 0;
  margin: 0;
  align-self: center;
  overflow-wrap: anywhere;
  color: #bbb;
  font: 0.76rem/1.4 ui-monospace, monospace;
}

.process-actions { display: flex; gap: 8px; }

.library-download {
  border-color: var(--sounds-light);
  color: #111;
  background: var(--sounds-light);
}

.library-download:hover { color: #fff; background: var(--sounds); }
.remove-button { cursor: pointer; }
.remove-button:hover { border-color: var(--error); color: var(--error); }

.empty-state {
  margin: 0;
  padding: 22px;
  border: 1px dashed #4b4b4b;
  color: #999;
  font-size: 0.86rem;
}

.library-message { min-height: 1.3em; margin: 18px 0 0; color: #bbb; font-size: 0.82rem; }

@media (max-width: 820px) {
  .sounds-inner { height: auto; min-height: 72px; flex-wrap: wrap; gap: 0; padding-top: 10px; }
  .header-now-playing { max-width: none; flex: 1 1 100%; gap: 8px; }
  nav { width: 100%; min-width: 0; flex: 1 1 100%; overflow-x: auto; }
  nav a { height: 50px; padding: 0 14px; white-space: nowrap; }
  .live-section, .process-section { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .sounds-inner, .content-shell { width: min(100% - 24px, 1240px); }
  .header-artwork { width: 38px; height: 38px; flex-basis: 38px; }
  nav a { white-space: nowrap; padding: 0 11px; font-size: 0.82rem; }
  h1 { font-size: clamp(2.7rem, 14vw, 4.4rem); }
  .input-row { grid-template-columns: 1fr; box-shadow: none; }
  input { border-right: 3px solid #fff; }
  button { min-height: 58px; }
  .fip-toggle { min-height: 24px; }
  .header-radio-toggle, .favourite-button.header-favourite { min-height: 0; }
  .job-heading { align-items: flex-start; }
  .live-section, .process-section { padding: 24px; }
  .live-player-panel { grid-template-columns: 1fr; }
  .station-mark { width: 100%; height: 180px; min-height: 115px; border-right: 0; border-bottom: 1px solid #4c2b25; }
  .station-mark strong { font-size: 3.5rem; }
  .station-mark > img { object-fit: cover; }
  .player-area { padding: 20px; }
  .activity-heading { align-items: flex-start; flex-direction: column; }
  .favourites-heading { align-items: flex-start; flex-direction: column; }
  .process-item { grid-template-columns: 1fr; }
  .processed-item { grid-template-columns: minmax(110px, 145px) minmax(0, 1fr); }
  .process-filename, .process-actions { grid-column: 1; }
  .process-actions { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .processed-item { grid-template-columns: 1fr; }
  .programme-artwork { width: min(100%, 280px); }
  .programme-heading { flex-direction: column-reverse; gap: 10px; }
  .now-playing { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; }
  .now-playing-artwork { width: 64px; height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
