:root {
  --bg: #000000;
  --panel: #0b0b0b;
  --panel-2: #141414;
  --line: #222222;
  --line-2: #2e2e2e;
  --text: #ffffff;
  --muted: #9b9b9b;
  --accent: #0687f5;
  --accent-hover: #2b9bff;
  --accent-soft: rgba(6, 135, 245, 0.16);
  --danger: #ff5c5c;
  --radius: 10px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  user-select: none;
}
button { font-family: inherit; color: inherit; }
img { display: block; }
svg { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
h2 { white-space: nowrap; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 0; display: flex; align-items: baseline; gap: 10px; }
.count { color: var(--muted); font-weight: 500; letter-spacing: 0.02em; }

/* ---------- Top bar ---------- */
.topbar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 14px 24px 12px;
  border-bottom: 1px solid var(--line);
}
.brand { justify-self: center; }
.brand-logo { height: 46px; width: auto; }
.credit { display: flex; align-items: center; gap: 14px; justify-self: start; font-size: 15px; font-weight: 500; letter-spacing: 0.01em; }
.value { justify-self: end; }
.value { display: flex; align-items: center; gap: 14px; }
.value-logo { height: 40px; width: 40px; }
/* PJ logo's white frame matches the width of the ∞ logo's white artwork (~32px) */
.pj-logo { height: 34px; width: 34px; }
.tagline { font-size: 15px; font-weight: 500; letter-spacing: 0.01em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent;
  font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.btn svg { width: 16px; height: 16px; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost:hover:not(:disabled) { border-color: #555; background: #161616; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; }
.btn-lg { height: 46px; padding: 0 24px; font-size: 15px; width: 100%; }
.btn:disabled { opacity: .38; cursor: default; }
.btn:focus-visible, .icon-btn:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.icon-btn {
  position: relative;
  width: 36px; height: 36px; border-radius: 50%; border: none; background: transparent;
  display: inline-grid; place-items: center; cursor: pointer; color: #d8d8d8;
  transition: color .15s, background .15s, transform .1s;
}
.icon-btn:hover { color: #fff; background: #1a1a1a; }
.icon-btn:active { transform: scale(.94); }
.icon-btn.play { width: 46px; height: 46px; background: #fff; color: #000; }
.icon-btn.play:hover { background: #e6e6e6; color: #000; }
.icon-btn.play svg { width: 22px; height: 22px; }
.icon-btn.small { width: 30px; height: 30px; }
.icon-btn.toggle[aria-pressed="true"] { color: var(--accent); }
.icon-btn .badge {
  position: absolute; right: 3px; top: 3px; font-size: 9px; font-weight: 700;
  background: var(--accent); color: #fff; border-radius: 999px; width: 13px; height: 13px; display: none; place-items: center;
}
.icon-btn.one .badge { display: grid; }

/* ---------- Workspace ---------- */
.workspace {
  display: grid;
  grid-template-columns: minmax(330px, 1.15fr) minmax(320px, 1fr) minmax(340px, 1.05fr);
  gap: 14px; padding: 14px 18px; min-height: 0;
}
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 10px; min-height: 58px; }
.head-actions { display: flex; gap: 6px; }
.foot-actions { display: flex; gap: 6px; align-items: center; }
.btn.icon-only { width: 30px; padding: 0; }
.hint { margin: 0 16px 10px; color: var(--muted); font-size: 12px; }
.kbd-plus { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; background: #222; color: #fff; vertical-align: -4px; }
.kbd-plus svg { width: 11px; height: 11px; }

.search { display: flex; align-items: center; gap: 6px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; height: 32px; width: 200px; color: var(--muted); }
.search svg { width: 15px; height: 15px; }
.search input { all: unset; flex: 1; color: var(--text); font-size: 13px; user-select: text; }
.search input::-webkit-search-cancel-button { filter: invert(1) opacity(.6); }

/* ---------- Track rows ---------- */
.track-list { list-style: none; margin: 0; padding: 0 8px 12px; overflow-y: auto; flex: 1; }
.track-list::-webkit-scrollbar, .slots::-webkit-scrollbar { width: 10px; }
.track-list::-webkit-scrollbar-thumb, .slots::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 10px; border: 3px solid var(--panel); }

.row {
  display: grid; grid-template-columns: 64px 1fr auto auto; align-items: center; gap: 12px;
  padding: 6px 8px; border-radius: 8px; cursor: default; position: relative;
}
.row:hover { background: #151515; }
.row.playing { background: var(--accent-soft); }
.row.playing .title { color: #7cc0ff; }
.row.dragging { opacity: .4; }
.thumb {
  width: 64px; height: 48px; border-radius: 5px; overflow: hidden; border: none; padding: 0; background: #1a1a1a;
  cursor: zoom-in; position: relative;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.thumb:hover img { transform: scale(1.06); }
.meta { min-width: 0; }
.title { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dur { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.row-actions { display: flex; gap: 2px; }
.row .icon-btn { width: 30px; height: 30px; }
.row .icon-btn svg { width: 16px; height: 16px; }
.row .row-play { opacity: 0; }
.row:hover .row-play, .row.playing .row-play { opacity: 1; }
.add-btn.added { color: var(--accent); cursor: default; }
.add-btn.added:hover { background: transparent; }
.eq { display: none; gap: 2px; align-items: flex-end; height: 14px; }
.row.playing.is-playing .eq { display: inline-flex; }
.eq i { width: 3px; background: var(--accent); animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 14px; } }
.empty-search { color: var(--muted); text-align: center; padding: 40px 0; }

/* ---------- Tracklist slots ---------- */
.slots { list-style: none; margin: 0; padding: 4px 12px 8px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; flex: 1; }
.slot {
  display: grid; grid-template-columns: 34px 56px 1fr auto; align-items: center; gap: 10px;
  min-height: 54px; padding: 4px 8px 4px 4px; border-radius: 10px;
  border: 1px solid var(--line); background: #0f0f0f; position: relative;
  transition: border-color .12s, background .12s;
}
.slot .num { font-size: 22px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.slot.empty { border-style: dashed; border-color: #2c2c2c; background: transparent; grid-template-columns: 34px 1fr; }
.slot.empty .num { color: #4a4a4a; }
.slot.empty .placeholder { color: #4d4d4d; font-size: 13px; }
.slot.filled { cursor: default; user-select: none; -webkit-user-select: none; }
.slot.filled:hover { background: #161616; }
.slot.selected { border-color: #8a8a8a; background: #1d1d1d; }
.slot.selected:hover { background: #1d1d1d; }
.slot.playing { border-color: var(--accent); background: var(--accent-soft); }
.slot.playing .num { color: var(--accent); }
.slot .thumb { width: 56px; height: 42px; }
.slot .slot-actions { display: flex; align-items: center; gap: 0; opacity: .55; transition: opacity .15s; }
.slot:hover .slot-actions { opacity: 1; }
.slot .slot-actions .up, .slot .slot-actions .down { display: none; }
.slot:hover .slot-actions .up, .slot:hover .slot-actions .down { display: inline-grid; }
.slot .icon-btn { width: 26px; height: 26px; }
.slot .icon-btn svg { width: 15px; height: 15px; }
.slot .grip { cursor: grab; color: #666; }
.slot.drop-before::before, .slot.drop-replace::after { content: ""; position: absolute; pointer-events: none; }
.slot.drop-before::before { left: 6px; right: 6px; top: -5px; height: 3px; border-radius: 3px; background: var(--accent); }
.slot.drop-replace { border-color: var(--accent); background: var(--accent-soft); }
.slot.dragging { opacity: .35; }
.slots.drag-over-end .slot.empty:first-of-type, .slot.empty.drop-here { border-color: var(--accent); background: var(--accent-soft); }
.slots.drag-over-end .slot.empty:first-of-type .placeholder, .slot.empty.drop-here .placeholder { color: #bfe0ff; }
.tl-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 14px; border-top: 1px solid var(--line); font-size: 12px; }

/* ---------- Cover ---------- */
.coverpanel { }
.cover-wrap { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 4px 16px 0; container-type: size; }
.cover {
  width: min(100cqw, 100cqh); aspect-ratio: 1; background: #000;
  display: grid; grid-template-rows: 25% 75%; box-shadow: 0 10px 40px rgba(0,0,0,.6), 0 0 0 1px #242424; border-radius: 4px; overflow: hidden;
}
.cover-band { display: grid; place-items: center; }
.cover-band img { width: 50%; height: auto; }
.cover-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); }
.tile { position: relative; overflow: hidden; background: #000; }
.tile.empty { box-shadow: inset 0 0 0 0.5px #3a3a3a; display: grid; place-items: center; }
.tile.empty span { font-size: clamp(14px, 4.2cqmin, 34px); font-weight: 700; color: #5a5a5a; }
.tile img { width: 100%; height: 100%; object-fit: cover; animation: fadein .35s ease; }
.tile.filled { cursor: grab; }
.tile.filled::after { content: attr(data-n); position: absolute; left: 6px; top: 5px; font-size: 11px; font-weight: 700; background: rgba(0,0,0,.6); padding: 1px 6px; border-radius: 6px; opacity: 0; transition: opacity .15s; }
.cover:hover .tile.filled::after { opacity: 1; }
.tile.drop-target { box-shadow: inset 0 0 0 3px var(--accent); }
.tile.dragging { opacity: .35; }
@keyframes fadein { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
.download { padding: 14px 16px 16px; text-align: center; }
.download p { margin: 8px 0 0; }

/* ---------- Player ---------- */
.player {
  display: grid; grid-template-columns: minmax(240px, 1fr) minmax(420px, 1.6fr) minmax(240px, 1fr);
  align-items: center; gap: 20px; padding: 10px 24px 12px;
  border-top: 1px solid var(--line); background: #070707;
}
.np { display: flex; align-items: center; gap: 12px; min-width: 0; transition: opacity .25s; }
.np.idle { visibility: hidden; opacity: 0; }
.np-art { width: 72px; height: 54px; border-radius: 6px; overflow: hidden; border: none; padding: 0; background: #161616; cursor: zoom-in; flex: none; }
.np-art:disabled { cursor: default; }
.np-art img { width: 100%; height: 100%; object-fit: cover; }
.np-art img:not([src]) { display: none; }
.np-text { min-width: 0; }
.np-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-artist { font-size: 12px; margin-top: 2px; }
.transport { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.buttons { display: flex; align-items: center; gap: 10px; }
.seek { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 620px; }
.time { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; width: 40px; text-align: center; }
.vol { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.vol input { width: 110px; }
.vol #resetVol { margin-left: 4px; }

input[type=range] { -webkit-appearance: none; appearance: none; height: 16px; background: transparent; flex: 1; cursor: pointer; --p: 0%; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, #fff var(--p), #333 var(--p)); }
input[type=range]:hover::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--accent) var(--p), #333 var(--p)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; margin-top: -4px; opacity: 0; transition: opacity .15s; }
input[type=range]:hover::-webkit-slider-thumb, input[type=range]:active::-webkit-slider-thumb { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.94); z-index: 50;
  display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; animation: fade .18s ease;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; gap: 16px; width: fit-content; max-width: 100%; justify-self: center; }
#lbImg { max-width: calc(100vw - 200px); max-height: calc(100vh - 160px); transition: max-height .2s; object-fit: contain; border-radius: 4px; box-shadow: 0 20px 80px rgba(0,0,0,.8); }
/* caption and picker take the artwork's width, so they line up with its edges */
.lightbox figcaption { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 0; min-width: 100%; }
.lightbox figcaption > div:first-child { min-width: 0; }
.lb-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-actions { flex: none; }
.lb-title { font-size: 20px; font-weight: 700; }
.lb-actions { display: flex; gap: 8px; }
.lb-nav, .lb-close { border: none; background: transparent; color: #aaa; cursor: pointer; display: grid; place-items: center; }
.lb-nav { width: 56px; height: 56px; border-radius: 50%; justify-self: center; }
.lb-nav:hover, .lb-close:hover { color: #fff; background: #1a1a1a; }
.lb-nav svg { width: 28px; height: 28px; }
.lb-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; }
.lb-close svg { width: 22px; height: 22px; }
.lb-replace { width: 0; min-width: 100%; display: flex; flex-direction: column; gap: 8px; }
.lb-replace[hidden] { display: none; }
.lightbox.picking #lbImg { max-height: calc(100vh - 290px); }
.lb-replace-row { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; }
.lb-replace-btn { position: relative; padding: 0; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; background: #111; cursor: pointer; aspect-ratio: 4 / 3; }
.lb-replace-btn img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .15s; }
.lb-replace-btn span { position: absolute; left: 5px; top: 3px; font-weight: 700; font-size: 13px; text-shadow: 0 1px 3px #000; }
.lb-replace-btn:hover { border-color: var(--accent); }
.lb-replace-btn:hover img { opacity: 1; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.75); display: grid; place-items: center; z-index: 60; }
.modal[hidden] { display: none; }
.modal-card { width: 440px; background: #111; border: 1px solid var(--line-2); border-radius: 14px; padding: 24px; }
.modal-card h3 { margin: 0 0 16px; font-size: 18px; }
.progress { height: 6px; background: #262626; border-radius: 6px; overflow: hidden; }
.progress .bar { height: 100%; width: 0; background: var(--accent); transition: width .25s; }
.modal-card p { margin: 12px 0 0; min-height: 18px; overflow-wrap: anywhere; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.modal-actions[hidden] { display: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, calc(-50% + 6px)); opacity: 0; text-align: center; width: max-content;
  background: #1d1d1d; border: 1px solid #333; padding: 10px 16px; border-radius: 18px; font-size: 13px; line-height: 1.35;
  pointer-events: none; transition: opacity .2s, transform .2s; z-index: 70;
}
.toast.show { opacity: 1; transform: translate(-50%, -50%); }

/* Drag ghost */
.drag-ghost { position: fixed; top: -1000px; left: -1000px; display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; background: #1b1b1b; border: 1px solid var(--accent); border-radius: 10px; color: #fff; font: 600 13px var(--font); }
.drag-ghost img { width: 48px; height: 36px; object-fit: cover; border-radius: 4px; }

@media (max-width: 1280px) {
  .search { width: 150px; }
  .player { grid-template-columns: minmax(200px, 1fr) minmax(380px, 1.6fr) minmax(170px, .8fr); }
}

/* ================================================================== */
/* Web: touch screens, tablets and phones                              */
/* ================================================================== */
html { -webkit-text-size-adjust: 100%; }
button, a, .row, .slot, .tile { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.for-touch { display: none; }
body.touch .for-touch { display: inline; }
body.touch .for-mouse { display: none; }

.buy-copy { margin: 0 0 12px; line-height: 1.45; color: #ddd; }
.format-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.format-list li { border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 4px; text-align: center; font-size: 12px; font-weight: 600; }
.modal-card { max-width: calc(100vw - 32px); }

/* Touch screens have no hover: keep the controls that only appear on hover visible. */
body.touch .row .row-play { opacity: 1; }
body.touch .slot .slot-actions { opacity: 1; }
body.touch .slot .slot-actions .up, body.touch .slot .slot-actions .down { display: inline-grid; }
body.touch .slot .grip { display: none; }
/* Phones and tablets set volume with their own buttons (iOS ignores page volume). */
body.touch .thumb:hover img { transform: none; }
body.touch .row:hover { background: transparent; }
body.touch .row.playing:hover { background: var(--accent-soft); }
body.touch .slot.filled:hover { background: #0f0f0f; }
body.touch .vol { display: none; }

/* Small laptops and tablets in landscape */
@media (max-width: 1180px) {
  .panel-head { flex-wrap: wrap; row-gap: 8px; }
  .workspace { grid-template-columns: minmax(280px, 1.1fr) minmax(270px, 1fr) minmax(280px, 1fr); gap: 10px; padding: 10px 12px; }
  .search { width: 130px; }
  .player { grid-template-columns: minmax(180px, 1fr) minmax(320px, 1.6fr) minmax(140px, .8fr); padding: 10px 16px; }
  .vol input { width: 80px; }
}

/* Tablets in portrait and phones: one scrolling page */
@media (max-width: 900px) {
  body { display: block; overflow: auto; height: auto; min-height: 100%; padding-bottom: calc(132px + env(safe-area-inset-bottom)); }
  html { height: auto; }
  .topbar { grid-template-columns: 1fr auto; grid-template-areas: "brand brand" "credit value"; gap: 10px 12px; padding: 14px 16px 12px; padding-top: calc(14px + env(safe-area-inset-top)); }
  .brand { grid-area: brand; }
  .credit { grid-area: credit; font-size: 13px; }
  .value { grid-area: value; gap: 10px; }
  .tagline { font-size: 13px; text-align: right; }
  .brand-logo { height: 40px; }
  .workspace { grid-template-columns: 1fr 1fr; padding: 12px; gap: 12px; }
  .panel.library { grid-column: 1 / -1; height: min(62vh, 560px); }
  .panel.tracklist { min-height: 0; }
  .panel.tracklist .slots { overflow: visible; }
  .coverpanel .cover-wrap { container-type: inline-size; padding-top: 4px; }
  .coverpanel .cover { width: 100cqw; }
  .player {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    grid-template-columns: 1fr auto; grid-template-areas: "np vol" "transport transport";
    gap: 6px 12px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(7,7,7,.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .np { grid-area: np; }
  .np-art { width: 56px; height: 42px; }
  .vol { grid-area: vol; }
  .transport { grid-area: transport; }
  .buttons { gap: 6px; }
  .seek { max-width: none; }
  .lightbox { grid-template-columns: 1fr; grid-template-rows: 1fr; padding: 56px 12px calc(16px + env(safe-area-inset-bottom)); align-items: center; }
  .lightbox figure { grid-row: 1; grid-column: 1; }
  .lb-nav { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom)); width: 48px; height: 48px; background: #141414; }
  .lb-prev { left: 12px; } .lb-next { right: 12px; }
  #lbImg { max-width: calc(100vw - 24px); max-height: calc(100vh - 260px); max-height: calc(100dvh - 260px); }
  .lightbox.picking #lbImg { max-height: calc(100dvh - 380px); }
  .lightbox figcaption { flex-direction: column; align-items: stretch; gap: 12px; }
  .lb-actions { justify-content: stretch; }
  .lb-actions .btn { flex: 1; }
  .lb-title { font-size: 17px; }
  .lb-close { top: calc(8px + env(safe-area-inset-top)); right: 8px; }
  .lb-replace-row { grid-template-columns: repeat(5, 1fr); }
}

/* Phones */
@media (max-width: 640px) {
  .topbar { grid-template-columns: 1fr; grid-template-areas: "brand" "credit" "value"; justify-items: center; text-align: center; }
  .credit { justify-self: center; }
  .value { justify-self: center; }
  .workspace { grid-template-columns: 1fr; padding: 10px; }
  .panel.library { height: 60vh; height: 60dvh; }
  .panel-head { flex-wrap: wrap; min-height: 0; }
  .search { width: 100%; order: 3; height: 38px; }
  .search input { font-size: 16px; } /* stops iOS zooming into the search box */
  .row { grid-template-columns: 56px 1fr auto; gap: 10px; }
  .row .thumb { width: 56px; height: 42px; }
  .row .dur { display: none; }
  .row .icon-btn { width: 36px; height: 36px; }
  .slot .icon-btn { width: 32px; height: 32px; }
  .tl-foot { flex-wrap: wrap; gap: 8px; }
  .foot-actions { flex-wrap: wrap; }
  .format-list { grid-template-columns: repeat(2, 1fr); }
  .modal-card { padding: 20px; }
  .vol { display: none; }
  .player { grid-template-columns: 1fr; grid-template-areas: "np" "transport"; }
  .buttons { gap: 2px; }
}
