/* Riddim Repo — Black Rasta Brutalist.
   Solid black stage. Archivo Black display, Space Mono labels, 2px
   borders, skewed section headers, marquee player, spinning 45 badge.
   Each category wears a Rasta color: Drums gold, Riddims orange,
   Takes green. */

@font-face { font-family: 'Archivo Black'; src: url('../fonts/archivo-black-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('../fonts/space-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('../fonts/space-mono-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --black: #000000;
  --orange: #FF4D00;
  --gold: #FDC800;
  --green: #00B25B;
  --white: #FFFFFF;

  --display: 'Archivo Black', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --sans: 'Inter', system-ui, sans-serif;

  --player-h: 190px;
}

* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--orange); color: var(--black); }

html, body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Hard lock: the app never scrolls sideways or rubber-bands horizontally. */
html {
  width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(var(--player-h) + 24px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}

button { font: inherit; cursor: pointer; border-radius: 0; }
input, select, textarea { font: inherit; border-radius: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Opening splash: sound waves off the icon ---------- */

.splash {
  position: fixed;
  inset: 0;
  z-index: 500;
  overflow: hidden;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 500ms ease;
}
.splash.splash-hide { opacity: 0; pointer-events: none; }

.splash-icon {
  position: relative;
  z-index: 2;
  width: 132px; height: 168px;
  /* No background/frame — just the speaker, floating on the black splash. */
}

.splash-rings {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 140px; height: 140px;
  margin: -70px 0 0 -70px;
  border-radius: 50%;
  border: 9px solid transparent;
  opacity: 0;
  animation: ring-expand 4.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
.ring-red  { border-color: var(--orange); }
.ring-gold { border-color: var(--gold); }
.ring-green{ border-color: var(--green); }
.ring:nth-child(1) { animation-delay: 0s; }
.ring:nth-child(2) { animation-delay: 0.48s; }
.ring:nth-child(3) { animation-delay: 0.96s; }
.ring:nth-child(4) { animation-delay: 1.44s; }
.ring:nth-child(5) { animation-delay: 1.92s; }
.ring:nth-child(6) { animation-delay: 2.4s; }

@keyframes ring-expand {
  0%   { transform: scale(1);   opacity: 0.95; border-width: 10px; }
  70%  { opacity: 0.4; }
  100% { transform: scale(3.4); opacity: 0; border-width: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .ring { animation: none; opacity: 0; }
  .splash { transition: opacity 200ms ease; }
}

/* ---------- Header ---------- */

.topbar {
  padding: calc(36px + env(safe-area-inset-top, 0px)) 24px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 2px solid var(--orange);
}

.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex: 1; }

.wordmark {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 104px);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.85;
}
.w-riddim { color: var(--orange); }
.w-repo { color: var(--gold); }

.spin-badge {
  flex: none;
  width: 125px; height: 125px;
  border: 2px solid var(--green);
  border-radius: 50%;
  position: relative;
  animation: spin 12s linear infinite;
}
.spin-badge svg { width: 100%; height: 100%; }
.spin-badge text {
  font-family: var(--mono); font-weight: 700; font-size: 8.4px;
  letter-spacing: 0.18em; fill: var(--green); text-transform: uppercase;
}
.spin-badge::after {
  content: ""; position: absolute; inset: 46px; border-radius: 50%;
  background: var(--gold);
}

.topbar-actions { display: flex; gap: 12px; align-items: center; padding-bottom: 6px; }

.btn-brutal {
  font-family: var(--mono); font-weight: 700; font-size: 13px;
  letter-spacing: -0.02em; text-transform: uppercase;
  border: 2px solid var(--orange);
  background: var(--orange); color: var(--black);
  padding: 13px 20px;
  white-space: nowrap;
  transition: transform .15s ease;
}
.btn-brutal:hover { transform: translateX(4px); }
.btn-brutal:active { transform: translateX(4px) translateY(1px); }

.btn-gold { background: var(--gold); border-color: var(--gold); }
.btn-ghost { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline-danger { background: transparent; border-color: var(--orange); color: var(--orange); }
.btn-outline-danger:hover { background: var(--orange); color: var(--black); }

.icon-sq {
  width: 48px; height: 48px;
  border: 2px solid var(--white); background: transparent; color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px;
  transition: transform .15s ease;
}
.icon-sq:hover { transform: scale(1.1); }
.icon-sq svg { width: 100%; height: 100%; display: block; }

/* ---------- Toolbar (revealed by search) ---------- */

.toolbar {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 2px solid var(--white);
}

.btn-favorites {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-favorites svg { width: 15px; height: 15px; }
.btn-favorites:hover { transform: translateX(4px); }
.btn-favorites.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--black);
}
.btn-favorites.active svg { fill: var(--black); }

.search {
  flex: 1;
  min-width: 0;
  background: var(--black);
  border: 2px solid var(--white);
  color: var(--white);
  height: 48px;
  padding: 0 16px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.search::placeholder { color: rgba(255,255,255,0.45); }
.search:focus { outline: none; border-color: var(--gold); }

.select {
  background: var(--black);
  border: 2px solid var(--white);
  color: var(--white);
  height: 48px;
  padding: 0 12px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}
.select:focus { outline: none; border-color: var(--gold); }
.select-small { height: 40px; }

/* ---------- Sections ---------- */

.library { padding-bottom: 12px; }

.section-head {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 16px 28px;
  margin-top: 18px;
  background: var(--black);
  border: none;
  border-bottom: 2px solid currentColor;
  cursor: pointer;
  text-align: left;
  user-select: none;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 4.5vw, 48px);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.9;
  display: inline-flex; align-items: center; gap: 16px;
}
.chev {
  width: 0; height: 0; flex: none;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid currentColor;
  display: inline-block;
  transition: transform .15s ease;
}
.section-head.open .chev { transform: rotate(90deg); }
.section-count {
  font-family: var(--mono); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: -0.02em;
  border: 2px solid currentColor; padding: 5px 11px;
}

.sec-gold { color: var(--gold); }
.sec-orange { color: var(--orange); }
.sec-green { color: var(--green); }

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 0;
}
.library-grid.cat-gold { border-bottom: 2px solid var(--gold); }
.library-grid.cat-orange { border-bottom: 2px solid var(--orange); }
.library-grid.cat-green { border-bottom: 2px solid var(--green); }

/* ---------- Cards ---------- */

.track-card {
  position: relative;
  background: var(--black);
  cursor: pointer;
  min-height: 300px;
  transform-style: preserve-3d;
  transform: perspective(1600px) rotateY(0deg);
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1), background .15s ease;
}
.track-card.cat-gold { color: var(--gold); border-right: 2px solid var(--gold); border-top: 2px solid var(--gold); }
.track-card.cat-orange { color: var(--orange); border-right: 2px solid var(--orange); border-top: 2px solid var(--orange); }
.track-card.cat-green { color: var(--green); border-right: 2px solid var(--green); border-top: 2px solid var(--green); }

.track-card:not(.flipped):hover { background: #140F00; }
.track-card.flipped { transform: perspective(1600px) rotateY(180deg); }

/* WebKit renders <canvas> through backface-visibility during the
   rotation itself (not just at rest), which looks like the wrong
   image flashing mid-flip. Hide it for the duration of the turn. */
.track-card.is-flipping .track-wave { visibility: hidden; }

.track-card.playing { color: var(--black); }
.track-card.playing.cat-gold { background: var(--gold); }
.track-card.playing.cat-orange { background: var(--orange); }
.track-card.playing.cat-green { background: var(--green); }

.card-front,
.card-back {
  background: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.card-front {
  position: relative;
  min-height: inherit;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: default;
  border: 2px solid currentColor;
}

.track-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.track-play {
  flex: none;
  width: 52px; height: 52px;
  border: 2px solid currentColor;
  background: transparent;
  color: currentColor;
  font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.track-card:hover .track-play { transform: scale(1.1); }
.track-card.playing .track-play { background: var(--black); }
.track-card.playing.cat-gold .track-play { color: var(--gold); border-color: var(--black); }
.track-card.playing.cat-orange .track-play { color: var(--orange); border-color: var(--black); }
.track-card.playing.cat-green .track-play { color: var(--green); border-color: var(--black); }

.track-titles { min-width: 0; flex: 1; }

.track-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.9;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.track-pill {
  font-family: var(--mono); font-weight: 700; font-size: 10.5px;
  letter-spacing: -0.02em; text-transform: uppercase;
  border: 2px solid currentColor;
  padding: 3px 8px;
  white-space: nowrap;
}
.track-bpm { background: var(--orange); color: var(--black); border-color: var(--orange); }
.track-card.playing .track-bpm { background: var(--black); color: var(--white); border-color: var(--black); }

.track-actions-row { margin-left: auto; display: flex; gap: 4px; align-items: center; }

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.track-star {
  flex: none;
  width: 34px; height: 34px;
  border: none; background: none;
  color: currentColor;
  padding: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.track-star svg { width: 100%; height: 100%; display: block; pointer-events: none; }
.track-star:hover { transform: scale(1.1); }
.track-star.starred { color: var(--green); }
.track-star.starred svg { fill: var(--green); }
.track-card.playing .track-star.starred { color: var(--black); }
.track-card.playing .track-star.starred svg { fill: var(--black); }

.note-btn {
  width: 34px; height: 34px;
  border: none; background: none;
  color: currentColor;
  padding: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.note-btn svg { width: 100%; height: 100%; display: block; }
.note-btn:hover { transform: scale(1.15); }

.track-wave {
  width: 100%;
  height: 52px;
  display: block;
}

.track-edit {
  flex: none;
  background: none;
  border: none;
  color: currentColor;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-decoration: underline;
  padding: 8px 0;
  transition: transform .15s ease;
}
.track-edit:hover { transform: translateX(4px); }

.perc-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 2px solid currentColor;
  padding: 6px 12px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.perc-check input {
  appearance: none;
  width: 13px; height: 13px;
  margin: 0;
  border: 2px solid currentColor;
  background: transparent;
  cursor: pointer;
}
.perc-check input:checked { background: var(--green); border-color: var(--green); }
.track-card.playing .perc-check input:checked { background: var(--black); border-color: var(--black); }

/* ---------- Notes (card back) ---------- */

.note-head {
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 1;
  margin-bottom: 2px;
}
.note-head h4 {
  font-family: var(--display); font-weight: 400; font-size: 19px;
  text-transform: uppercase; letter-spacing: -0.04em;
}
.note-close {
  flex: none;
  width: 32px; height: 32px;
  border: 2px solid currentColor; background: none; color: currentColor;
  font-family: var(--mono); font-weight: 700; font-size: 12px;
  transition: transform .15s ease;
}
.note-close:hover { transform: scale(1.1); }

.note-list {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column; gap: 9px;
  min-height: 0;
  padding-right: 2px;
}
.note-entry { border: 2px solid currentColor; padding: 8px 11px; }
.note-stamp {
  font-family: var(--mono); font-weight: 700; font-size: 10px;
  text-transform: uppercase; letter-spacing: -0.02em; opacity: 0.7;
  margin-bottom: 3px;
}
.note-text {
  font-size: 14.5px; font-weight: 400; line-height: 1.45;
  white-space: pre-wrap; word-break: break-word; color: var(--white);
}
.track-card.playing .note-text { color: var(--black); }

.note-row { display: flex; gap: 8px; align-items: stretch; }
.note-input {
  flex: 1; min-width: 0; resize: none;
  border: 2px solid currentColor;
  background: transparent; color: var(--white);
  font-family: var(--sans); font-size: 14.5px; line-height: 1.4;
  padding: 8px 11px;
}
.track-card.playing .note-input { color: var(--black); }
.note-input::placeholder { color: currentColor; opacity: 0.5; }
.note-input:focus { outline: none; }
.note-save {
  flex: none;
  border: 2px solid currentColor;
  background: currentColor;
  color: var(--black);
  padding: 0 16px;
  font-family: var(--mono); font-weight: 700; font-size: 11px; text-transform: uppercase;
  transition: transform .15s ease;
}
.note-save:hover { transform: scale(1.05); }
.track-card.playing .note-save { color: var(--white); }

/* ---------- Empty state ---------- */

.empty-state { padding: 6vh 24px 0; }

.empty-card {
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 36px 30px 40px;
  max-width: 760px;
  margin: 0 auto;
}
.empty-badge {
  display: inline-block;
  font-family: var(--mono); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: -0.02em;
  border: 2px solid var(--gold);
  padding: 5px 12px;
}
.empty-card h2 {
  margin: 18px 0 14px;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  text-transform: uppercase; letter-spacing: -0.04em; line-height: 0.85;
}
.empty-card p {
  max-width: 480px; color: var(--white);
  font-size: 1.0325rem; line-height: 1.6;
}
.empty-card strong { color: var(--orange); font-weight: 600; }

/* ---------- Drop overlay ---------- */

.drop-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.drop-overlay-inner {
  background: var(--orange);
  color: var(--black);
  border: 2px solid var(--orange);
  padding: 56px 72px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  pointer-events: none;
  text-align: center;
}
.drop-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3rem, 8vw, 5.5rem);
  text-transform: uppercase; letter-spacing: -0.04em; line-height: 0.85;
}
.drop-sub { font-family: var(--mono); font-weight: 700; font-size: 12px; text-transform: uppercase; }

/* ---------- Player ---------- */

.player {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: var(--black);
  border-top: 2px solid var(--green);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.player-marquee {
  overflow: hidden;
  white-space: nowrap;
  background: var(--green);
  border-bottom: 2px solid var(--green);
  padding: 5px 0;
}
.player-marquee span {
  display: inline-block;
  font-family: var(--mono); font-weight: 700; font-size: 12px;
  letter-spacing: -0.02em; text-transform: uppercase;
  color: var(--black);
  animation: scroll 14s linear infinite;
}
.player-marquee.paused span { animation-play-state: paused; }

.player-wave-wrap { padding: 10px 24px 0; }
.player-wave { width: 100%; height: 46px; display: block; cursor: pointer; }

.player-times {
  display: flex; justify-content: space-between;
  padding: 3px 24px 4px;
  font-family: var(--mono); font-weight: 700; font-size: 10.5px;
  color: var(--gold);
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 6px 24px 14px;
}

.pbtn {
  width: 50px; height: 50px;
  border: 2px solid var(--white);
  background: none; color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px;
  font-family: var(--mono); font-weight: 700; font-size: 11px; text-transform: uppercase;
  transition: transform .15s ease;
}
.pbtn:hover { transform: scale(1.1); }
.pbtn svg { width: 100%; height: 100%; display: block; }

.p-play {
  width: 62px; height: 62px;
  background: var(--orange); border-color: var(--orange); color: var(--black);
  font-size: 18px; padding: 0;
}

.loop-btn { color: var(--white); }
.loop-btn.toggled {
  background: var(--green);
  border-color: var(--green);
  color: var(--black);
}

.rate-label .select-small { border-color: var(--gold); color: var(--gold); }

.volume { width: 110px; accent-color: var(--orange); }

/* ---------- Auth screen ---------- */

.auth-screen {
  position: fixed; inset: 0; z-index: 250;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.auth-card { width: min(400px, 92vw); text-align: center; }
.auth-logo { font-size: clamp(3rem, 11vw, 4.5rem); }
.auth-sub {
  font-family: var(--mono); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: -0.02em;
  color: var(--white); margin: 18px 0 22px;
}
#auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-passcode {
  background: var(--black);
  border: 2px solid var(--white);
  color: var(--white);
  height: 60px;
  text-align: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.5em;
}
.auth-passcode:focus { outline: none; border-color: var(--gold); }
.auth-submit { padding: 16px 22px; font-size: 15px; }
.auth-error {
  font-family: var(--mono); font-weight: 700; font-size: 12px;
  text-transform: uppercase; color: var(--orange);
}

/* ---------- Dialog ---------- */

.dialog {
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--gold);
  padding: 26px;
  width: min(460px, 92vw);
}
.dialog::backdrop { background: rgba(0, 0, 0, 0.85); }

.dialog h3 {
  font-family: var(--display); font-weight: 400;
  font-size: 1.9rem; text-transform: uppercase; letter-spacing: -0.04em;
  margin-bottom: 20px; color: var(--gold);
}
.dialog label {
  display: block; margin-bottom: 16px;
  font-family: var(--mono); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: -0.02em;
  color: var(--white);
}
.dialog input[type="text"],
.dialog input[type="number"] {
  display: block; width: 100%; margin-top: 6px;
  background: var(--black);
  border: 2px solid var(--white);
  color: var(--white);
  height: 48px; padding: 0 14px;
  font-family: var(--sans); font-size: 1rem;
}
.dialog input:focus { outline: none; border-color: var(--gold); }
.edit-select { display: block; width: 100%; margin-top: 6px; height: 48px; }
.dialog input[type="date"] { color-scheme: dark; }
.dialog-actions { display: flex; gap: 8px; margin-top: 24px; align-items: center; }
.spacer { flex: 1; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  bottom: calc(var(--player-h) + 18px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--black);
  border: 2px solid var(--orange);
  font-family: var(--mono); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: -0.02em;
  padding: 12px 22px;
  z-index: 150;
  white-space: nowrap;
}

/* ---------- Small screens ---------- */

@media (max-width: 720px) {
  .topbar { flex-direction: column; align-items: flex-start; gap: 18px; padding: 26px 16px 18px; }
  .brand-row { width: 100%; }
  .topbar-actions { padding-bottom: 0; }
  .spin-badge { width: 98px; height: 98px; }
  .spin-badge::after { inset: 35px; }
  .toolbar { padding: 12px 16px; flex-wrap: wrap; }
  .search { flex: 1 1 100%; order: -1; }
  .btn-favorites { flex: 1 1 auto; justify-content: center; }
  .toolbar .select { flex: 1 1 auto; min-width: 0; }
  .library-grid { grid-template-columns: 1fr; }
  .section-head { padding: 14px 18px; }
  .rate-label, .volume { display: none; }
  .drop-overlay-inner { padding: 40px 32px; }
  :root { --player-h: 176px; }
}
