:root {
  --black: #101010;
  --ink: #111111;
  --paper: #f4f1ee;
  --soft: #96918f;
  --surface-rgb: 150, 145, 143;
  --line: rgba(17, 17, 17, 0.24);
  --muted: rgba(17, 17, 17, 0.62);
  --purple: var(--ink);
  --accent: var(--ink);
  --accent-rgb: 18, 18, 18;
  --red: var(--ink);
  /* Single typeface throughout — minimal, editorial (Helvetica grotesque) */
  --mono: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
body[data-active-catalogue="strings"] {
  --accent: var(--ink);
  --accent-rgb: 18, 18, 18;
}
body[data-active-catalogue="electronic"] {
  --accent: var(--ink);
  --accent-rgb: 18, 18, 18;
}
body[data-active-catalogue="piano"] {
  --accent: var(--ink);
  --accent-rgb: 18, 18, 18;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: var(--mono);
  overflow-x: hidden;
  padding-bottom: 86px;
}
body[data-theme="dark"] {
  --ink: #f4f1ee;
  --soft: #141414;
  --surface-rgb: 20, 20, 20;
  --line: rgba(244,241,238,0.18);
  --muted: rgba(244,241,238,0.62);
  --accent: #f4f1ee;
  --accent-rgb: 244, 241, 238;
  --red: #f4f1ee;
  background: var(--soft);
  color: var(--ink);
}
body.music-home {
  min-height: 100vh;
  padding-bottom: 0;
  background: var(--black);
  color: var(--paper);
}

html[data-pw-locked] body > *:not(#pw-gate) { display: none !important; }
html[data-pw-locked] { background: #0a0a0a; }
#pw-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0a0a0a;
  color: #f8f8f6;
  display: none;
  align-items: start;
  justify-content: center;
}
html[data-pw-locked] #pw-gate { display: flex; }
#pw-gate .pw-inner { width: min(360px, 80vw); text-align: center; }
#pw-gate .pw-brand {
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 48px;
}
#pw-gate .pw-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}
#pw-gate input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font: 16px var(--mono);
  letter-spacing: 0.12em;
  text-align: center;
  padding: 8px 0 10px;
  outline: none;
}
#pw-gate input:focus { border-bottom-color: #fff; }
#pw-gate .pw-error {
  margin-top: 14px;
  min-height: 14px;
  color: var(--paper);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.music-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px 32px;
  background: rgba(var(--surface-rgb), 0.94);
  border-bottom: 1px solid var(--ink);
  backdrop-filter: blur(10px);
}
.nav-name,
.nav-links a {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav-links a:hover { color: var(--accent); }

.music-home .music-nav {
  position: fixed;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.32);
  color: var(--paper);
  border-bottom: 1px solid rgba(248, 248, 244, 0.28);
}
.music-home .nav-links a:hover { color: var(--paper); }

.music-landing {
  min-height: 100vh;
}
.music-landing-hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding: 112px clamp(20px, 5vw, 70px) clamp(32px, 5vw, 70px);
  background:
    linear-gradient(90deg, rgba(10,10,10,0.82) 0%, rgba(10,10,10,0.42) 42%, rgba(10,10,10,0.12) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.76) 0%, rgba(10,10,10,0.08) 48%, rgba(10,10,10,0.64) 100%),
    url("img/music-hero.jpeg") center / cover no-repeat;
}
.landing-copy {
  width: min(760px, 100%);
}
.landing-index {
  margin-bottom: 22px;
  color: rgba(248,248,244,0.64);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.landing-copy h1 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(46px, 8vw, 112px);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: 0;
}
.landing-copy h1 span {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  color: var(--paper);
}
.landing-copy p {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(248,248,244,0.78);
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1.55;
  letter-spacing: 0.02em;
}
.landing-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.landing-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(248,248,244,0.48);
  padding: 0 16px;
  color: var(--paper);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(10,10,10,0.18);
}
.landing-links a:hover {
  background: var(--paper);
  color: var(--ink);
}
.landing-links span {
  color: rgba(248,248,244,0.48);
}
.landing-links a:hover span {
  color: rgba(10,10,10,0.48);
}

.music-hero {
  position: relative;
  min-height: clamp(250px, 34vh, 390px);
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(300px, 42vw);
  gap: clamp(18px, 3vw, 46px);
  align-items: center;
  padding: clamp(28px, 4vw, 56px) clamp(20px, 4vw, 58px);
  background:
    linear-gradient(90deg, rgba(10,10,10,0.18) 0%, rgba(10,10,10,0.1) 46%, rgba(10,10,10,0.78) 76%, rgba(10,10,10,0.94) 100%),
    linear-gradient(0deg, rgba(10,10,10,0.22) 0%, rgba(10,10,10,0.02) 58%),
    url("img/library-hero.jpg") center / contain no-repeat,
    #0a0a0a;
  color: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.theme-toggle {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  width: auto;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(248,248,244,0.58);
  background: rgba(10,10,10,0.22);
  color: var(--paper);
  padding: 5px 7px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}
.theme-toggle:hover {
  background: var(--paper);
  color: var(--ink);
}
.hero-index {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  align-self: stretch;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(248,248,244,0.58);
}
.music-hero h1 {
  grid-column: 3;
  justify-self: end;
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(28px, 4.2vw, 60px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  max-width: 920px;
  text-align: right;
}
.music-hero h1 span {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  color: var(--paper);
}
.hero-copy {
  grid-column: 2;
  max-width: 620px;
  margin: 10px 0 0;
  color: rgba(248,248,244,0.78);
  font-family: var(--mono);
  font-size: clamp(11px, 0.9vw, 13px);
  line-height: 1.55;
  letter-spacing: 0.02em;
}
.catalogue-tabs {
  grid-column: 3;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.catalogue-tab {
  min-height: 38px;
  border: 1px solid rgba(248,248,244,0.42);
  background: rgba(10,10,10,0.18);
  color: var(--paper);
  padding: 0 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.catalogue-tab:hover,
.catalogue-tab.active {
  background: var(--paper);
  color: var(--ink);
}
.library-hero {
  --hero-text-shift: clamp(72px, 6.2vw, 148px);
  position: relative;
  min-height: clamp(300px, 23vw, 390px);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 38vw);
  grid-template-rows: auto 1fr;
  align-items: center;
  padding: clamp(18px, 3vw, 42px) clamp(22px, 3.6vw, 54px);
  background: #0a0a0a;
  overflow: hidden;
}
.library-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0.02) 38%, rgba(10,10,10,0.72) 56%, #0a0a0a 72%, #0a0a0a 100%);
}
.hero-image-layer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: clamp(760px, 58vw, 1580px);
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: left 55%;
  opacity: 0;
  filter: grayscale(1) contrast(1.08) brightness(0.9);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - clamp(180px, 17vw, 440px)), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - clamp(180px, 17vw, 440px)), transparent 100%);
  transition: opacity 360ms ease-in-out;
}
.hero-image-layer.is-visible {
  opacity: 1;
}
.library-hero > *:not(.theme-toggle) {
  position: relative;
  z-index: 2;
}
.library-hero > .theme-toggle {
  position: absolute;
  z-index: 5;
}
.library-hero .hero-image-layer {
  position: absolute;
  z-index: 0;
}
.library-hero .hero-index {
  display: none;
}
.library-hero .catalogue-tabs {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  justify-self: end;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 2px;
  width: auto;
  margin-top: clamp(2px, 0.45vw, 8px);
  transform: translateX(calc(-1 * var(--hero-text-shift)));
}
.library-hero .catalogue-tab {
  --hero-tab-color: var(--paper);
  min-height: 0;
  border: 0;
  background: transparent;
  color: rgba(248,248,244,0.5);
  padding: 0;
  font-family: var(--sans);
  font-size: clamp(32px, 4.3vw, 79px);
  font-style: normal;
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.022em;
  text-align: right;
  text-transform: none;
  text-shadow: 0 3px 22px rgba(0,0,0,0.78);
}
.library-hero h1 {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  text-align: right;
  display: block;
  margin: 0 0 clamp(2px, 0.45vw, 8px);
  max-width: 100%;
  transform: translateX(calc(-1 * var(--hero-text-shift)));
}
.library-hero h1 .artist-name {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: clamp(38px, 4.5vw, 83px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--paper);
  text-shadow: 0 3px 24px rgba(0,0,0,0.78);
}
.library-hero .catalogue-tab.active {
  background: transparent;
  color: var(--hero-tab-color);
}
.library-hero .catalogue-tabs:hover .catalogue-tab {
  color: rgba(248,248,244,0.25);
}
.library-hero .catalogue-tabs:hover .catalogue-tab.active {
  color: var(--hero-tab-color);
}
.library-hero .catalogue-tabs:hover .catalogue-tab:hover,
.library-hero .catalogue-tabs:focus-within .catalogue-tab:focus-visible {
  color: var(--paper);
}
.library-hero .catalogue-tabs:hover .catalogue-tab.active:hover,
.library-hero .catalogue-tabs:focus-within .catalogue-tab.active:focus-visible {
  color: var(--hero-tab-color);
}
.library-hero .catalogue-tab.active {
  font-size: clamp(32px, 4.3vw, 79px);
  line-height: 0.94;
}
.hero-meta {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}
.hero-meta span {
  border: 1px solid rgba(248,248,244,0.35);
  padding: 8px 12px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(10,10,10,0.22);
}

.catalogue-shell {
  display: block;
  min-height: 80vh;
}
body.music-hive-active .library-hero {
  min-height: 210px;
}
.music-hive-shell {
  position: relative;
  min-height: calc(100vh - 294px);
  overflow: hidden;
  background: var(--soft);
  border-top: 1px solid var(--ink);
}
.music-hive-shell[hidden] {
  display: none;
}
.hive-toolbar {
  position: absolute;
  top: 16px;
  left: 18px;
  right: 18px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  pointer-events: none;
}
.hive-kicker,
.hive-count,
.hive-filter,
.hive-track,
.hive-floating-player {
  font-family: var(--mono);
}
.hive-kicker {
  display: inline-block;
  border: 2px solid var(--ink);
  background: rgba(var(--surface-rgb), 0.92);
  padding: 8px 11px;
  color: var(--ink);
  font-size: clamp(26px, 4.8vw, 76px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.hive-count {
  width: max-content;
  margin-top: 8px;
  border: 1px solid var(--ink);
  background: rgba(var(--surface-rgb), 0.92);
  padding: 5px 8px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.hive-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  max-width: min(560px, 50vw);
  pointer-events: auto;
}
.hive-filter {
  min-height: 32px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: rgba(var(--surface-rgb), 0.9);
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  transform-origin: center;
  transition: transform 140ms ease, background 120ms ease, color 120ms ease;
}
.hive-filter:hover,
.hive-filter.active {
  color: var(--soft);
  background: var(--ink);
}
.hive-filter:hover {
  transform: scale(1.14);
}
.hive-map,
.hive-labels {
  position: absolute;
  inset: 0;
}
.hive-map {
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hive-line {
  stroke: var(--ink);
  stroke-width: 1;
  stroke-opacity: 0.08;
  vector-effect: non-scaling-stroke;
}
.hive-line-strong {
  stroke-width: 1.2;
  stroke-opacity: 0.16;
}
.hive-labels {
  z-index: 2;
  pointer-events: none;
}
.hive-track {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  max-width: min(250px, 66vw);
  min-height: 23px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: rgba(var(--surface-rgb), 0.96);
  box-shadow: 2px 2px 0 rgba(10,10,10,0.12);
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  transform-origin: center;
  will-change: transform, opacity;
  transition: background 120ms ease, color 120ms ease, box-shadow 120ms ease;
}
.hive-track:hover,
.hive-track.is-active {
  color: var(--soft);
  background: var(--ink);
}
.hive-track.is-hidden {
  pointer-events: none;
}
.hive-track-star {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1px solid currentColor;
  font-size: 9px;
}
.hive-track-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hive-track-time {
  font-size: 9px;
  opacity: 0.72;
}
.hive-floating-player {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 8;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: min(390px, calc(100% - 24px));
  min-height: 62px;
  border: 2px solid var(--ink);
  background: rgba(var(--surface-rgb), 0.97);
  color: var(--ink);
  box-shadow: 5px 5px 0 rgba(10,10,10,0.14);
  padding: 9px 10px;
  transform: translate3d(-50%, -50%, 0);
  pointer-events: auto;
}
.hive-floating-player[hidden] {
  display: none;
}
.hive-player-play,
.hive-player-star {
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-weight: 700;
  transition: transform 140ms ease, background 120ms ease, color 120ms ease;
}
.hive-player-play {
  width: 48px;
  height: 34px;
  border-radius: 999px;
  font-size: 10px;
}
.hive-player-star {
  width: 30px;
  height: 30px;
  font-size: 16px;
}
.hive-player-play:hover,
.hive-player-star:hover,
.hive-player-star.is-starred {
  color: var(--soft);
  background: var(--ink);
  transform: scale(1.12);
}
.hive-player-copy {
  min-width: 0;
}
.hive-player-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
}
.hive-player-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}
.hive-player-progress {
  position: relative;
  height: 3px;
  margin-top: 7px;
  background: rgba(10,10,10,0.18);
}
.hive-player-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--ink);
}
@media (max-width: 780px) {
  .music-hive-shell {
    min-height: calc(100vh - 230px);
  }
  .hive-toolbar {
    top: 12px;
    left: 12px;
    right: 12px;
    display: grid;
    gap: 10px;
  }
  .hive-kicker {
    font-size: 28px;
  }
  .hive-filters {
    justify-content: flex-start;
    max-width: none;
  }
  .hive-track {
    max-width: min(220px, 76vw);
    font-size: 9px;
  }
  .hive-floating-player {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .hive-player-star {
    display: none;
  }
}
.catalogue-side {
  border-right: 1px solid var(--ink);
  background: var(--soft);
  padding: 32px;
}
.side-block {
  border-bottom: 1px solid var(--line);
  padding: 0 0 26px;
  margin-bottom: 26px;
}
.side-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.side-title {
  font-family: var(--sans);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.98;
}
.side-catalogue-list {
  display: grid;
  gap: 9px;
}
.side-catalogue {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(10,10,10,0.2);
  background: rgba(244,241,238,0.08);
  color: rgba(10,10,10,0.48);
  padding: 8px 12px 10px;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(22px, 2.35vw, 34px);
  font-style: italic;
  line-height: 1;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.side-catalogue.active {
  color: var(--paper);
  border-color: var(--accent);
  background: var(--accent);
}
.side-catalogue-list:hover .side-catalogue {
  color: rgba(10,10,10,0.30);
  border-color: rgba(10,10,10,0.10);
  background: rgba(244,241,238,0.08);
}
.side-catalogue-list:hover .side-catalogue.active {
  color: var(--paper);
  border-color: var(--accent);
  background: var(--accent);
}
.side-catalogue-list:hover .side-catalogue:hover,
.side-catalogue-list:focus-within .side-catalogue:focus-visible {
  color: var(--ink);
  border-color: rgba(10,10,10,0.55);
  background: rgba(244,241,238,0.18);
  transform: translateX(4px);
  letter-spacing: 0.012em;
}
.pinned-block {
  border: 1px solid rgba(10,10,10,0.18);
  box-shadow: none;
  padding: 14px 14px 22px;
  margin: -14px -14px 26px;
}
.pinned-block .side-label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}
.pinned-list {
  display: grid;
  gap: 8px;
}
.pinned-empty {
  color: rgba(10,10,10,0.48);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.45;
  text-transform: uppercase;
}
.pinned-track {
  --track-accent: rgba(10,10,10,0.3);
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 32px;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--track-accent);
  background: rgba(244,241,238,0.12);
  box-shadow: inset 3px 0 0 var(--track-accent);
  padding: 8px;
}
.pinned-track[data-catalogue="strings"] {
  --track-accent: var(--ink);
}
.pinned-track[data-catalogue="electronic"] {
  --track-accent: var(--ink);
}
.pinned-track[data-catalogue="piano"] {
  --track-accent: var(--ink);
}
.pinned-track.is-active {
  border-color: var(--track-accent);
  box-shadow: inset 4px 0 0 var(--track-accent);
}
.pinned-play {
  width: 28px;
  height: 28px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 11px;
  text-indent: 1px;
}
.pinned-play:hover {
  background: var(--ink);
  color: var(--paper);
}
.pinned-copy {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.pinned-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.pinned-meta {
  display: block;
  margin-top: 3px;
  color: rgba(10,10,10,0.56);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pinned-remove {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  justify-self: end;
  font-size: 18px;
}
.pinned-remove:hover {
  background: var(--paper);
  color: var(--ink);
}
.pinned-undo {
  width: 100%;
  min-height: 32px;
  border: 1px solid rgba(10,10,10,0.34);
  background: transparent;
  color: var(--ink);
  padding: 0 10px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.pinned-undo:hover {
  background: var(--ink);
  color: var(--paper);
}
.eq-block {
  position: sticky;
  top: 22px;
  z-index: 18;
  border-bottom: 0;
  background: var(--soft);
  margin-bottom: 0;
  padding-bottom: 0;
}
.eq-title {
  position: relative;
  display: flex;
  width: 100%;
  justify-content: center;
  text-align: center;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
  cursor: help;
}
.eq-title::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  width: min(240px, 70vw);
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  padding: 10px 12px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 5;
}
.eq-title:hover::after,
.eq-title:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}
.eq-control {
  margin-top: 18px;
}
.eq-control label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: rgba(10,10,10,0.72);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eq-control label span {
  color: rgba(10,10,10,0.62);
  white-space: nowrap;
}
.eq-control input,
.seek {
  -webkit-appearance: none;
  appearance: none;
}
.eq-control input {
  width: 100%;
  height: 18px;
  background: transparent;
  accent-color: var(--accent);
}
.eq-control input::-webkit-slider-runnable-track {
  height: 3px;
  background: rgba(10,10,10,0.28);
}
.eq-control input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  margin-top: -7px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.eq-control input::-moz-range-track {
  height: 3px;
  background: rgba(10,10,10,0.28);
}
.eq-control input::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.eq-reset {
  width: 100%;
  min-height: 36px;
  margin-top: 10px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.eq-reset:hover {
  background: var(--ink);
  color: var(--paper);
}

.catalogue-main {
  min-width: 0;
  background: var(--soft);
  padding: 28px clamp(18px, 3vw, 48px) 56px;
}
.control-strip {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(var(--surface-rgb), 0.94);
  border-bottom: 1px solid var(--ink);
  padding: 0 0 18px;
  margin-bottom: 10px;
  backdrop-filter: blur(10px);
}
.search-wrap {
  border: 1px solid var(--ink);
  background: rgba(244,241,238,0.16);
  margin-bottom: 12px;
}
.list-search {
  margin: 14px 0 0;
}
#search {
  width: 100%;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
  padding: 0 16px;
  font-size: 13px;
}
#search::placeholder {
  color: rgba(10,10,10,0.38);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
}
.filter-row {
  display: flex;
  gap: clamp(18px, 2.4vw, 40px);
  flex-wrap: wrap;
  align-items: flex-start;
}
.filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-help {
  max-width: 920px;
  margin: 0 0 16px;
  color: rgba(10,10,10,0.62);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.03em;
}
.filter-button {
  min-height: 38px;
  border: 1px solid rgba(10,10,10,0.26);
  background: transparent;
  color: var(--ink);
  padding: 0 13px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.filter-button.active,
.filter-button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}
.track-list {
  opacity: 1;
  transition: opacity 180ms ease;
}
.track-list.is-reordering {
  opacity: 0.18;
}
.track-row {
  display: grid;
  grid-template-columns: 116px minmax(280px, 1.7fr) 48px minmax(64px, 92px) minmax(58px, 84px);
  gap: 10px;
  align-items: center;
  min-height: 0;
  border-bottom: 1px solid var(--line);
  padding: 7px 0;
}
.track-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}
.track-control-button {
  width: 23px;
  height: 23px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.track-play {
  font-family: Arial, sans-serif;
  font-size: 9px;
  text-indent: 1px;
}
.track-control-button:hover,
.track-control-button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pause-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.pause-icon span {
  display: block;
  width: 3px;
  height: 10px;
  border-radius: 1px;
  background: currentColor;
}
.track-loop.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.star-button,
.like-button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(248,248,244,0.48);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  padding: 0;
}
.track-star,
.track-like {
  width: 23px;
  height: 23px;
  border-color: var(--ink);
  border-radius: 50%;
  color: var(--ink);
  font-size: 13px;
  line-height: 1;
  font-family: Arial, sans-serif;
  padding-bottom: 1px;
}
.star-button:hover,
.like-button:hover,
.like-button.is-liked {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.track-star.is-starred {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.now-star.is-starred {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.now-star:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.loop-symbol {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1;
  transform: translateY(-1px);
}
.track-title {
  display: grid;
  grid-template-columns: 2.4ch minmax(0, 1fr);
  align-items: baseline;
  column-gap: 10px;
  font-family: var(--sans);
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
  word-break: break-word;
}
.track-number {
  color: inherit;
  font-family: inherit;
  font-size: 0.82em;
  font-weight: inherit;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: inherit;
  text-align: right;
}
.track-name {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-source {
  color: var(--soft);
  font-size: 5px;
  letter-spacing: 0.06em;
  line-height: 1.15;
  max-width: 188px;
  overflow-wrap: anywhere;
  text-align: right;
  justify-self: end;
}
.track-source::selection {
  background: var(--ink);
  color: var(--paper);
}
.track-duration {
  border: 0;
  background: transparent;
  color: rgba(10,10,10,0.68);
  cursor: pointer;
  font-size: 11px;
  padding: 0;
  text-align: right;
}
.track-duration:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.track-tags {
  display: flex;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 6px;
  overflow: hidden;
}
.track-tags span {
  border: 1px solid rgba(10,10,10,0.2);
  padding: 3px 6px;
  color: rgba(10,10,10,0.68);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  flex: 0 0 auto;
}
.track-row.is-active {
  background: linear-gradient(90deg, rgba(var(--accent-rgb),0.12), transparent 38%);
}
.track-row.is-looped {
  box-shadow: inset 4px 0 0 var(--red);
}

body[data-theme="dark"] .catalogue-side,
body[data-theme="dark"] .catalogue-main {
  background: var(--soft);
}
body[data-theme="dark"] .control-strip {
  background: rgba(var(--surface-rgb), 0.94);
}
body[data-theme="dark"] .theme-toggle:hover,
body[data-theme="dark"] .side-catalogue.active,
body[data-theme="dark"] .side-catalogue-list:hover .side-catalogue.active,
body[data-theme="dark"] .side-catalogue-list:hover .side-catalogue:hover,
body[data-theme="dark"] .side-catalogue-list:focus-within .side-catalogue:focus-visible,
body[data-theme="dark"] .filter-button.active,
body[data-theme="dark"] .filter-button:hover,
body[data-theme="dark"] .track-control-button:hover,
body[data-theme="dark"] .track-control-button.is-active,
body[data-theme="dark"] .track-loop.is-active,
body[data-theme="dark"] .track-star.is-starred,
body[data-theme="dark"] .like-button:hover,
body[data-theme="dark"] .like-button.is-liked,
body[data-theme="dark"] .pinned-remove:hover,
body[data-theme="dark"] .eq-reset:hover,
body[data-theme="dark"] .pinned-undo:hover,
body[data-theme="dark"] .now-star.is-starred,
body[data-theme="dark"] .now-star:hover {
  color: var(--black);
}
body[data-theme="dark"] .side-catalogue {
  border-color: rgba(244,241,238,0.22);
  background: rgba(244,241,238,0.04);
  color: rgba(244,241,238,0.52);
}
body[data-theme="dark"] .side-catalogue-list:hover .side-catalogue {
  border-color: rgba(244,241,238,0.12);
  background: rgba(244,241,238,0.04);
  color: rgba(244,241,238,0.28);
}
body[data-theme="dark"] .side-catalogue.active,
body[data-theme="dark"] .side-catalogue-list:hover .side-catalogue.active {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--black);
}
body[data-theme="dark"] .pinned-block,
body[data-theme="dark"] .pinned-track,
body[data-theme="dark"] .search-wrap,
body[data-theme="dark"] .filter-button,
body[data-theme="dark"] .track-tags span,
body[data-theme="dark"] .pinned-undo {
  border-color: rgba(244,241,238,0.24);
}
body[data-theme="dark"] .pinned-track,
body[data-theme="dark"] .search-wrap {
  background: rgba(244,241,238,0.05);
}
body[data-theme="dark"] .pinned-empty,
body[data-theme="dark"] .pinned-meta,
body[data-theme="dark"] .filter-help,
body[data-theme="dark"] .track-duration,
body[data-theme="dark"] .track-tags span,
body[data-theme="dark"] .eq-control label,
body[data-theme="dark"] .eq-control label span {
  color: rgba(244,241,238,0.62);
}
body[data-theme="dark"] #search {
  color: var(--ink);
}
body[data-theme="dark"] #search::placeholder {
  color: rgba(244,241,238,0.36);
}
body[data-theme="dark"] .track-source {
  color: var(--soft);
}
body[data-theme="dark"] .track-source::selection {
  background: var(--paper);
  color: var(--black);
}
body[data-theme="dark"] .eq-title::after {
  color: var(--black);
}
body[data-theme="dark"] .eq-control input::-webkit-slider-runnable-track {
  background: rgba(244,241,238,0.28);
}
body[data-theme="dark"] .eq-control input::-moz-range-track {
  background: rgba(244,241,238,0.28);
}
body[data-theme="dark"] .eq-control input::-webkit-slider-thumb,
body[data-theme="dark"] .eq-control input::-moz-range-thumb {
  border-color: var(--ink);
  background: var(--black);
}

#global-play {
  font-family: Arial, sans-serif;
  font-size: 14px;
  text-indent: 1px;
}

.transport .pause-icon span {
  width: 5px;
  height: 18px;
}
.loop-transport .loop-symbol {
  font-size: 30px;
  transform: translateY(-2px);
}
.transport.is-active {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.now-sub,
.time-readout {
  color: rgba(248,248,244,0.56);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.time-readout {
  white-space: nowrap;
}
.now-star,
.now-like {
  width: 38px;
  height: 38px;
  font-size: 22px;
  line-height: 1;
  font-family: Arial, sans-serif;
  padding-bottom: 2px;
}

.volume-button {
  height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(248,248,244,0.32);
  background: transparent;
  color: var(--paper);
  padding: 0 11px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.volume-slider {
  flex: 1;
  min-width: 80px;
  height: 22px;
  background: transparent;
  --volume: 85%;
  -webkit-appearance: none;
  appearance: none;
}
.volume-slider::-webkit-slider-runnable-track {
  height: 6px;
  background: linear-gradient(90deg, var(--paper) 0 var(--volume), rgba(248,248,244,0.22) var(--volume) 100%);
  border-radius: 999px;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -3px;
  border-radius: 50%;
  border: 1px solid var(--paper);
  background: var(--paper);
}
.volume-slider::-moz-range-track {
  height: 6px;
  background: rgba(248,248,244,0.22);
  border-radius: 999px;
}
.volume-slider::-moz-range-progress {
  height: 6px;
  background: var(--paper);
  border-radius: 999px;
}
.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--paper);
  background: var(--paper);
}
.seek {
  width: 100%;
  height: 22px;
  background: transparent;
  --progress: 0%;
}
.seek::-webkit-slider-runnable-track {
  height: 6px;
  background: linear-gradient(90deg, var(--paper) 0 var(--progress), rgba(248,248,244,0.24) var(--progress) 100%);
  border-radius: 999px;
}
.seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -3px;
  border-radius: 50%;
  border: 1px solid var(--paper);
  background: var(--paper);
}
.seek::-moz-range-track {
  height: 6px;
  background: rgba(248,248,244,0.24);
  border-radius: 999px;
}
.seek::-moz-range-progress {
  height: 6px;
  background: var(--paper);
  border-radius: 999px;
}
.seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--paper);
  background: var(--paper);
}

@media (max-width: 900px) {
  body { padding-bottom: 132px; }
  .music-hero {
    grid-template-columns: 1fr;
    min-height: 420px;
  }
  .library-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: 320px;
    padding: 22px 20px;
    background: #0a0a0a;
  }
  .library-hero::after {
    background:
      linear-gradient(0deg, rgba(10,10,10,0.64) 0%, rgba(10,10,10,0.04) 62%),
      linear-gradient(90deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0.72) 100%);
  }
  .hero-index {
    writing-mode: horizontal-tb;
    transform: none;
  }
  .music-hero h1 {
    grid-column: auto;
    justify-self: start;
    text-align: left;
  }
  .library-hero .hero-index,
  .library-hero h1,
  .library-hero .catalogue-tabs {
    grid-column: 1;
    grid-row: auto;
    justify-self: end;
    text-align: right;
  }
  .library-hero .hero-index {
    display: none;
  }
  .library-hero .catalogue-tabs {
    flex-direction: column;
    align-items: flex-end;
    width: auto;
    grid-row: 2;
    align-self: start;
    justify-self: end;
  }
  .library-hero h1 {
    grid-row: 1;
    justify-self: end;
    text-align: right;
  }
  .hero-meta { grid-column: auto; }
  .hero-copy { grid-column: auto; }
  .catalogue-tabs {
    grid-column: auto;
    justify-self: start;
    justify-content: flex-start;
  }
  .catalogue-shell {
    grid-template-columns: 1fr;
  }
  .catalogue-side {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
    padding: 20px;
  }
  .side-block {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  .side-title {
    font-size: 22px;
  }
  .eq-block {
    position: static;
    grid-column: 1 / 4;
    border-top: 1px solid var(--line);
    padding-top: 18px;
  }
  .pinned-block {
    grid-column: 1 / 4;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
  }
  .control-strip {
    top: 0;
  }
  .track-row {
    grid-template-columns: 156px minmax(0, 1fr) 52px;
  }
  .track-tags {
    grid-column: 2 / 4;
    justify-content: flex-start;
  }
  
  .seek {
    grid-column: 1 / 7;
  }
}

@media (max-width: 560px) {
  .music-hero h1 {
    font-size: clamp(44px, 17vw, 72px);
  }
  .nav-links a {
    font-size: 10px;
  }
  .catalogue-side {
    grid-template-columns: 1fr;
  }
  .eq-block {
    grid-column: 1;
  }
  .pinned-block {
    grid-column: 1;
  }
  .track-row {
    grid-template-columns: 1fr 52px;
    min-height: 118px;
    gap: 10px 14px;
  }
  .track-controls {
    grid-column: 1 / 3;
  }
  .track-source {
    display: none;
  }
  .time-readout {
    display: none;
  }
  
  
  
  .seek {
    grid-column: 1;
  }
  
}

.track-duration .sort-indicator {
  margin-left: 4px;
  opacity: 0.5;
  font-size: 10px;
}
.track-duration.is-active-sort .sort-indicator {
  opacity: 1;
  color: var(--accent);
}

.loop-transport.is-active,
.loop-transport[aria-pressed="true"],

/* === Now Playing — Spotify-inspired layout === */
.now-playing {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(380px, 2fr) minmax(180px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 12px clamp(18px, 3vw, 32px);
  min-height: 84px;
  background: rgba(10,10,10,0.97);
  color: var(--paper);
  border-top: 1px solid rgba(248,248,244,0.18);
}

/* LEFT — title/sub + star */
.now-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.now-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.now-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.now-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248,248,244,0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* CENTER — transports + scrubber stack */
.now-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.now-transports {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
}

/* All transports start naked */
.transport {
  width: auto;
  height: 32px;
  min-width: 32px;
  background: transparent;
  border: 0;
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 180ms ease, color 180ms ease, transform 140ms ease;
}
.transport:hover {
  opacity: 1;
  color: var(--accent);
  transform: scale(1.06);
}
.transport[aria-pressed="true"],
.transport.is-active {
  opacity: 1;
  color: var(--accent);
}

/* Play and Pause are the visual anchor — filled paper circle */
.play-transport,
.pause-transport {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--black);
  opacity: 1;
  font-size: 14px;
}
.play-transport:hover,
.pause-transport:hover {
  background: var(--paper);
  color: var(--black);
  transform: scale(1.06);
  opacity: 1;
}

/* Star inherits .transport (left side, not in transports row) but bolder */
.star-transport {
  font-size: 22px;
  font-weight: 900;
  -webkit-text-stroke: 0.5px var(--paper);
  flex-shrink: 0;
}
.star-transport:hover {
  -webkit-text-stroke: 0.5px var(--accent);
}
.star-transport[aria-pressed="true"] {
  -webkit-text-stroke: 0.5px var(--accent);
  color: var(--accent);
}

/* Loop transport — same naked style as utility */
.loop-transport {
  font-size: 20px;
}

/* Scrubber row — time labels left/right, slider stretches between */
.now-scrubber {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.time-left,
.time-right {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(248,248,244,0.55);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  min-width: 36px;
}
.time-right { text-align: right; }
.now-scrubber .seek {
  width: 100%;
  margin: 0;
}

/* RIGHT — volume cluster */
.now-right {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
.volume-button {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--paper);
  opacity: 0.72;
  padding: 0;
  cursor: pointer;
  transition: opacity 180ms ease, color 180ms ease;
}
.volume-button:hover,
.volume-button.is-muted {
  opacity: 1;
  color: var(--accent);
}
.volume-button svg {
  display: block;
}
.volume-slider {
  width: 100px;
  height: 22px;
  background: transparent;
  --volume: 85%;
  -webkit-appearance: none;
  appearance: none;
}

.util-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--paper);
  opacity: 0.6;
  padding: 0;
  cursor: pointer;
  transition: opacity 180ms ease, color 180ms ease;
}
.util-icon:hover {
  opacity: 1;
  color: var(--accent);
}
.util-icon svg {
  display: block;
}

/* ─── Library minimal redesign (2026-06-02): hidden control stub + empty state ─── */
.eq-stub { display: none !important; }
.track-empty {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(18, 18, 18, 0.5);
  padding: 40px 4px;
}
body[data-theme="dark"] .track-empty { color: rgba(245, 245, 245, 0.5); }

/* ════════════════════════════════════════════════════════════════
   CARGO-MINIMAL MASTHEAD (2026-06-02) — flat header, giant headline,
   small nav, one clean full-width hero image. Overrides the old
   photo-background hero.
   ════════════════════════════════════════════════════════════════ */
.lib-masthead {
  display: block;
  position: relative;
  min-height: 0;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: clamp(22px, 3vw, 44px) clamp(20px, 4vw, 58px) clamp(20px, 2.6vw, 36px);
}
/* small label columns across the top — Cargo style */
.lib-masthead .mh-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-left: 66px; /* clear the theme toggle */
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: -0.005em;
}
.lib-masthead .mh-col { display: flex; flex-direction: column; }
.lib-masthead .mh-col.mh-right { text-align: right; }
.lib-masthead .mh-dim { color: rgba(18,18,18,0.5); }
.lib-masthead .mh-col a {
  align-self: flex-end;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}
/* giant headline — the Cargo signature */
.lib-masthead .mh-title {
  grid-column: auto;
  grid-row: auto;
  display: block;
  margin: clamp(28px, 5vw, 72px) 0 0;
  max-width: none;
  text-align: left;
  justify-self: start;
  align-self: auto;
  transform: none;
}
.lib-masthead .mh-title .artist-name {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(54px, 12.5vw, 176px);
  line-height: 0.88;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-shadow: none;
}
/* catalogue switcher — small text nav, not big */
.lib-masthead .catalogue-tabs {
  position: static;
  grid-column: auto;
  grid-row: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: baseline;
  gap: 20px;
  width: auto;
  margin: clamp(16px, 2vw, 26px) 0 0;
  transform: none;
}
.lib-masthead .catalogue-tab {
  min-height: 0;
  border: 0;
  background: transparent;
  color: rgba(18,18,18,0.42);
  padding: 0;
  font-family: var(--sans);
  font-style: normal;
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 500;
  letter-spacing: -0.015em;
  text-transform: none;
  text-shadow: none;
}
.lib-masthead .catalogue-tab:hover,
.lib-masthead .catalogue-tab.active {
  background: transparent;
  color: var(--ink);
}
/* one clean full-width hero image band */
.lib-hero-figure {
  margin: 0;
  padding: 0;
  background: transparent;
  border-bottom: 1px solid var(--ink);
}
/* kill the old hero gradient overlay that fades the photo to black */
.lib-hero-figure::after { content: none; display: none; }
.lib-hero-figure .hero-image-layer {
  position: static;
  z-index: auto;
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  filter: none;
  -webkit-mask-image: none;
  mask-image: none;
  transition: none;
}
/* theme toggle on the flat header */
.lib-masthead .theme-toggle {
  border: 1px solid rgba(18,18,18,0.4);
  background: transparent;
  color: var(--ink);
}
/* dark mode */
body[data-theme="dark"] .lib-masthead { background: var(--ink); color: var(--paper); }
body[data-theme="dark"] .lib-masthead .mh-dim { color: rgba(245,245,245,0.5); }
body[data-theme="dark"] .lib-masthead .mh-col a { color: var(--paper); }
body[data-theme="dark"] .lib-masthead .mh-title .artist-name { color: var(--paper); }
body[data-theme="dark"] .lib-masthead .catalogue-tab { color: rgba(245,245,245,0.42); }
body[data-theme="dark"] .lib-masthead .catalogue-tab:hover,
body[data-theme="dark"] .lib-masthead .catalogue-tab.active { color: var(--paper); }
body[data-theme="dark"] .lib-masthead .theme-toggle { border-color: rgba(245,245,245,0.4); color: var(--paper); }

@media (max-width: 720px) {
  .lib-masthead .mh-labels { grid-template-columns: 1fr; gap: 10px; padding-left: 60px; }
  .lib-masthead .mh-col.mh-right { text-align: left; }
  .lib-masthead .mh-col a { align-self: flex-start; }
}

/* ════ FLAT LIBRARY NAV (2026-06-02): Strings/Electronic/Piano/Featured/Starred ════ */
.control-strip { padding: 14px 0 14px; }
.lib-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: baseline;
}
.lib-nav-item {
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--sans);
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 500;
  letter-spacing: -0.012em;
  color: rgba(18,18,18,0.4);
  cursor: pointer;
}
.lib-nav-item:hover { color: var(--ink); }
.lib-nav-item.active { color: var(--ink); font-weight: 700; }
body[data-theme="dark"] .lib-nav-item { color: rgba(245,245,245,0.4); }
body[data-theme="dark"] .lib-nav-item:hover,
body[data-theme="dark"] .lib-nav-item.active { color: var(--paper); }

/* theme toggle floats now that the name header is gone */
.theme-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  left: auto;
  z-index: 60;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}
body[data-theme="dark"] .theme-toggle {
  border-color: var(--paper);
  background: var(--ink);
  color: var(--paper);
}

/* ════ TIDAL-STYLE PLAYER BAR (2026-06-04): compact · unified crisp SVG icons ════ */
.now-playing {
  min-height: 56px;
  padding: 7px clamp(16px, 3vw, 30px);
  gap: 20px;
}
.now-center { gap: 5px; }
.now-transports { gap: 16px; }

/* unified naked transport buttons */
.transport {
  width: 30px;
  height: 30px;
  min-width: 0;
  font-size: 0;
  opacity: 0.6;
  transition: opacity 160ms ease, transform 140ms ease;
}
.transport svg { display: block; }
.transport:hover { opacity: 1; color: var(--paper); transform: scale(1.06); }

/* loop + star: naked line icons, brighten when active */
.loop-transport,
.star-transport {
  width: 28px;
  height: 28px;
}
.loop-transport.is-active,
.loop-transport[aria-pressed="true"],
.star-transport.is-starred,
.star-transport[aria-pressed="true"] {
  opacity: 1;
  color: var(--paper);
}
.star-transport.is-starred svg { fill: currentColor; }

/* play / pause: ONE filled paper circle that toggles by state */
.play-transport,
.pause-transport {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--black);
  opacity: 1;
  display: none;
}
.play-transport:hover,
.pause-transport:hover {
  background: var(--paper);
  color: var(--black);
  opacity: 1;
  transform: scale(1.05);
}
body:not(.is-playing) .play-transport { display: inline-flex; }
body.is-playing .pause-transport { display: inline-flex; }

/* tighten scrubber + right cluster */
.now-scrubber { gap: 9px; }
.now-right { gap: 10px; }

/* tighter still — compact ~54px bar */
.now-playing { min-height: 0; padding: 5px clamp(16px, 3vw, 30px); }
.now-center { gap: 2px; }
.now-transports { gap: 15px; }
.transport { width: 26px; height: 26px; }
.play-transport, .pause-transport { width: 30px; height: 30px; }
.loop-transport, .star-transport { width: 24px; height: 24px; }
.now-scrubber { gap: 9px; }
.seek { height: 11px; }
.seek::-webkit-slider-thumb { width: 9px; height: 9px; margin-top: -1.5px; }
.seek::-moz-range-thumb { width: 9px; height: 9px; }
.time-left, .time-right { font-size: 9px; min-width: 30px; }

/* force the scrubber to its true content height (grid was over-sizing it) */
.now-scrubber { height: 13px; align-items: center; }

/* ════ VOLUME: Spotify-style mute icon toggle + 20%-shorter slider ════ */
.volume-button .vol-off { display: none; }
.volume-button.is-muted .vol-on { display: none; }
.volume-button.is-muted .vol-off { display: block; }
.volume-button.is-muted { opacity: 1; color: var(--paper); }
.volume-slider { width: 80px; flex: 0 0 auto; min-width: 0; }
