:root {
  --bg: #07070b;
  --panel: #0d0d15;
  --panel2: #12121c;
  --line: rgba(255, 255, 255, 0.07);
  --txt: #ececf4;
  --mut: #8b8b9d;
  --acc: #00ff9d;
  --acc2: #00d4ff;
  --danger: #ff5470;
  --radius: 12px;
  --player-h: 140px;
  font-size: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html, body { height: 100%; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--txt);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  min-height: 100vh;
  padding-bottom: calc(var(--player-h) + 24px);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.icon-btn, .btn, .track, .playlist-item, .album-head, .menu-item { touch-action: manipulation; }

::selection { background: rgba(0, 255, 157, 0.25); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #1c1c2a; border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }

#errBanner {
  background: rgba(255, 84, 112, 0.12);
  border: 1px solid var(--danger);
  color: #ffb3c0;
  padding: 10px 16px;
  font-size: 0.85rem;
  text-align: center;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(7, 7, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 12px var(--acc);
}

.search-wrap {
  flex: 1;
  max-width: 460px;
  margin: 0 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--mut);
  transition: border-color 0.2s;
}

.search-wrap:focus-within { border-color: rgba(0, 255, 157, 0.5); }

.search-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--txt);
  font-size: 0.9rem;
  min-width: 0;
}

.search-wrap input::placeholder { color: var(--mut); }
.search-wrap input::-webkit-search-cancel-button { display: none; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--mut);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  flex: none;
}

.icon-btn:hover { color: var(--txt); background: rgba(255, 255, 255, 0.06); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn.small { width: 26px; height: 26px; border-radius: 7px; }
.icon-btn.disabled { opacity: 0.35; pointer-events: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(0, 255, 157, 0.35);
  background: rgba(0, 255, 157, 0.06);
  color: var(--acc);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  flex: none;
}

.btn:hover { background: rgba(0, 255, 157, 0.14); box-shadow: 0 0 18px rgba(0, 255, 157, 0.18); }

.layout {
  display: flex;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px clamp(16px, 4vw, 40px) 40px;
  gap: 28px;
}

.sidebar {
  width: 250px;
  flex: none;
  position: sticky;
  top: 74px;
  align-self: flex-start;
  max-height: calc(100vh - 200px);
  overflow: auto;
}

.side-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--mut);
  margin-bottom: 12px;
}

.side-new {
  width: 100%;
  justify-content: center;
  margin-bottom: 14px;
  flex: none;
}

.playlist-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.playlist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--mut);
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}

.playlist-item:hover { background: var(--panel2); color: var(--txt); }

.playlist-item.active {
  background: rgba(0, 255, 157, 0.08);
  border-color: rgba(0, 255, 157, 0.3);
  color: var(--acc);
}

.playlist-item .pl-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-item .pl-count { font-size: 0.72rem; color: var(--mut); }

.pl-actions { display: none; gap: 2px; }
.playlist-item:hover .pl-actions { display: flex; }
.playlist-item.active .pl-actions { display: flex; }

.side-empty {
  color: var(--mut);
  font-size: 0.82rem;
  line-height: 1.5;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
}

.content { flex: 1; min-width: 0; padding-bottom: 200px; }

.content-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.content-sub { color: var(--mut); font-size: 0.85rem; margin-bottom: 22px; }

.album {
  margin-bottom: 34px;
}

.album-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 8px;
  transition: background 0.15s;
  user-select: none;
}

.album-head:hover { background: var(--panel); }

.album-info { flex: 1; min-width: 0; }

.album-chev {
  color: var(--mut);
  display: flex;
  align-items: center;
  flex: none;
  transition: transform 0.2s ease;
}

.album.open .album-chev { transform: rotate(180deg); }

.album .tracks { display: none; }
.album.open .tracks { display: flex; }

.album-cover-wrap {
  position: relative;
  flex: none;
}

.album-cover {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex: none;
  display: block;
}

.album-play {
  position: absolute;
  inset: 0;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, opacity 0.15s;
  touch-action: manipulation;
  opacity: 0;
}

.album-head:hover .album-play,
.album-play.on { opacity: 1; }

.album-play.on { background: rgba(0, 255, 157, 0.9); color: #00140b; }

.album-play:hover { background: rgba(0, 255, 157, 0.75); color: #00140b; box-shadow: 0 0 14px rgba(0, 255, 157, 0.35); }

.album-name { font-size: 1.15rem; font-weight: 700; }

.album-meta { color: var(--mut); font-size: 0.8rem; margin-top: 3px; }

.tracks { display: flex; flex-direction: column; }

.track {
  display: grid;
  grid-template-columns: 24px 42px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  border: 1px solid transparent;
  user-select: none;
}

.track:hover { background: var(--panel2); }

.track.playing {
  background: rgba(0, 255, 157, 0.06);
  border-color: rgba(0, 255, 157, 0.22);
}

.track .t-num { color: var(--mut); font-size: 0.82rem; text-align: right; font-variant-numeric: tabular-nums; }

.track.playing .t-num { color: var(--acc); }

.track .t-cover-wrap {
  position: relative;
  flex: none;
}

.track .t-cover {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex: none;
  display: block;
}

.track .t-play {
  position: absolute;
  inset: 0;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  touch-action: manipulation;
  opacity: 0;
}

.track:hover .t-play,
.track .t-play.on { opacity: 1; }

.track .t-play.on { background: rgba(0, 255, 157, 0.9); color: #00140b; }

.track .t-play:hover { background: rgba(0, 255, 157, 0.75); color: #00140b; }

@media (hover: none) {
  .album-play,
  .track .t-play { opacity: 1; }
}

.track .t-title { font-weight: 600; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.track.playing .t-title { color: var(--acc); }

.track .t-sub { color: var(--mut); font-size: 0.78rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.track .t-tags { display: flex; align-items: center; gap: 8px; color: var(--mut); font-size: 0.75rem; white-space: nowrap; }

.track .t-badge {
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  color: var(--mut);
}

.track .t-dur { font-variant-numeric: tabular-nums; }

.track .t-actions { display: flex; gap: 2px; }

.track .t-grip { cursor: grab; color: var(--mut); }
.track .t-grip:active { cursor: grabbing; }

.empty {
  text-align: center;
  color: var(--mut);
  padding: 60px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  line-height: 1.7;
}

.player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--player-h);
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 12px clamp(16px, 3vw, 32px);
  background: rgba(10, 10, 16, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}

.p-left { display: flex; align-items: center; gap: 12px; min-width: 0; }

.p-cover {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--panel2);
  border: 1px solid var(--line);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--acc);
  overflow: hidden;
}

.p-cover img { width: 100%; height: 100%; object-fit: cover; }

.p-meta { min-width: 0; }

.p-title { font-weight: 700; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.p-sub { color: var(--mut); font-size: 0.76rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

#viz {
  width: clamp(90px, 16vw, 200px);
  height: 40px;
  margin-left: 4px;
  opacity: 0.9;
  flex: none;
}

.p-mid { width: min(560px, 42vw); }

.p-handle {
  display: none;
}

.seek { display: flex; align-items: center; gap: 10px; }

.t { font-size: 0.72rem; color: var(--mut); font-variant-numeric: tabular-nums; min-width: 34px; }

.t:first-child { text-align: right; }

.bar {
  position: relative;
  flex: 1;
  height: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.rail {
  position: relative;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: #1d1d2a;
  overflow: hidden;
}

.buf {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.buf > div {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, var(--acc), var(--acc2));
  box-shadow: 0 0 8px rgba(0, 255, 157, 0.5);
  width: 0;
  border-radius: 999px;
}

.thumb {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--txt);
  border: 2px solid var(--acc);
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.6);
  transform: translateX(-50%);
  left: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.15s;
}

.controls { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 6px; }

.icon-btn.play {
  width: 44px;
  height: 44px;
  background: var(--acc);
  color: #04100b;
  border-radius: 50%;
}

.icon-btn.play:hover { background: #35ffb2; color: #04100b; box-shadow: 0 0 18px rgba(0, 255, 157, 0.4); }

#btnRepeat { position: relative; }

.icon-btn.rpt-on { color: var(--acc); }

#btnRepeat .rpt-one {
  position: absolute;
  top: 0;
  right: 1px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.vol {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 65%;
  margin: 0 auto;
}

.vol-range-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.vol-track {
  position: relative;
  flex: 1;
  height: 24px;
  cursor: pointer;
  touch-action: none;
}

.vol-rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 5px;
  margin-top: -2.5px;
  background: #555;
  border-radius: 15px;
}

.vol-fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 5px;
  margin-top: -2.5px;
  width: 0;
  background: #2ecc71;
  border-radius: 15px;
}

.vol-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.35);
}

.vol .icon-btn { flex: none; width: 34px; height: 34px; }

.p-right { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }

.pop {
  position: fixed;
  z-index: 60;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  padding: 14px;
  min-width: 220px;
}

.pop-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--mut); margin-bottom: 10px; }

.pop-row { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; }

.pop-row input[type="range"] { flex: 1; accent-color: var(--acc); touch-action: none; }

.pop-hint { color: var(--mut); font-size: 0.72rem; margin-top: 8px; line-height: 1.5; }

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--txt);
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
}

.menu-item:hover { background: rgba(255, 255, 255, 0.06); }

.menu-item.muted { color: var(--mut); }

.menu-create { display: flex; gap: 6px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }

.menu-create input {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--txt);
  font-size: 0.82rem;
  outline: none;
}

.menu-create input:focus { border-color: rgba(0, 255, 157, 0.5); }

#overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(3, 3, 7, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  padding: 22px;
  width: min(380px, 100%);
}

.modal-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.modal input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--txt);
  font-size: 0.9rem;
  outline: none;
  margin-bottom: 16px;
}

.modal input:focus { border-color: rgba(0, 255, 157, 0.5); }

.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

.btn.ghost { border-color: var(--line); color: var(--mut); background: transparent; }
.btn.ghost:hover { color: var(--txt); background: rgba(255, 255, 255, 0.05); box-shadow: none; }

.btn.danger {
  border-color: rgba(255, 84, 112, 0.45);
  background: rgba(255, 84, 112, 0.08);
  color: var(--danger);
}

.btn.danger:hover { background: rgba(255, 84, 112, 0.18); box-shadow: 0 0 18px rgba(255, 84, 112, 0.2); }

.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--player-h) + 20px);
  z-index: 70;
  background: var(--panel2);
  border: 1px solid rgba(0, 255, 157, 0.4);
  color: var(--txt);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.83rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.25s ease;
  white-space: nowrap;
  max-width: calc(100vw - 28px);
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

#artbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 3, 7, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  cursor: zoom-out;
}

#artImg {
  max-width: min(88vw, 640px);
  max-height: 78vh;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  object-fit: contain;
}

.art-close {
  color: var(--mut);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.album-cover-wrap,
.p-cover {
  cursor: zoom-in;
}

#resumeChip {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--player-h) + 20px);
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 255, 157, 0.1);
  border: 1px solid rgba(0, 255, 157, 0.45);
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
  backdrop-filter: blur(10px);
  max-width: calc(100vw - 28px);
}

#resumeChip button:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--acc);
  font-size: 0.82rem;
  cursor: pointer;
  font-weight: 600;
}

#resumeChip button:first-child:hover { color: #5dffc0; }

#resumeChip span { color: var(--mut); font-weight: 400; }

#menuBtn { display: none; }

@media (max-width: 900px) {
  :root { --player-h: 208px; }
  .vol-track { height: 44px; }
  .player {
    grid-template-columns: 1fr auto;
    grid-template-areas: "handle handle" "left right" "mid mid";
    grid-template-rows: 26px auto auto;
    height: auto;
    padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
    gap: 8px;
  }
  .p-handle {
    grid-area: handle;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    margin: -8px 0 -4px;
    background: none;
    border: none;
    color: var(--mut);
    cursor: pointer;
    touch-action: manipulation;
  }
  .p-handle svg { transition: transform 0.2s ease; }
  body.player-collapsed { --player-h: 96px; }
  body.player-collapsed .p-mid,
  body.player-collapsed .p-right { display: none; }
  body.player-collapsed .player {
    grid-template-areas: "handle handle" "left left";
    grid-template-rows: 26px auto;
  }
  body.player-collapsed .p-handle svg { transform: rotate(180deg); }
  .p-left { grid-area: left; }
  .p-mid { grid-area: mid; width: 100%; }
  .p-right { grid-area: right; position: static; }
  #viz { display: none; }
  .icon-btn { width: 42px; height: 42px; }
  .icon-btn.small { width: 34px; height: 34px; }
  .icon-btn.play { width: 48px; height: 48px; }
  .controls { margin-top: 2px; }
  .p-cover { width: 52px; height: 52px; }
  body { padding-bottom: calc(var(--player-h) + 26px + 200px + env(safe-area-inset-bottom)); }
  .toast, #resumeChip { bottom: calc(var(--player-h) + 16px + env(safe-area-inset-bottom)); }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 45;
    width: min(290px, 82vw);
    background: rgba(7, 7, 11, 0.98);
    backdrop-filter: blur(16px);
    padding: calc(76px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
    height: 100vh;
    height: 100dvh;
    max-height: none;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    box-shadow: 10px 0 34px rgba(0, 0, 0, 0.45);
  }
  body.sidebar-open { overflow: hidden; }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 44;
    background: rgba(3, 3, 7, 0.6);
    backdrop-filter: blur(2px);
  }

  #menuBtn { display: inline-flex; }
  .topbar { padding: 10px 14px; gap: 10px; }
  .brand { font-size: 1.05rem; letter-spacing: 4px; }
  .search-wrap { padding: 7px 12px; }
  .search-wrap input, .modal input, .menu-create input { font-size: 16px; }
  .track { grid-template-columns: 20px 40px 1fr auto; padding: 10px 8px; }
  .track .t-tags { display: none; }
  .track .t-actions { gap: 4px; }
  .album-cover { width: 60px; height: 60px; }
  .layout { padding-top: 16px; }
}

@media (max-width: 480px) {
  #newPlaylistBtn {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }
  #newPlaylistBtn svg { display: block; width: 18px; height: 18px; }
  .btn { padding: 8px 12px; font-size: 0.78rem; }
  .album-cover { width: 52px; height: 52px; }
  .p-right { gap: 0; }
}

@media (max-width: 340px) {
  .track { grid-template-columns: 40px 1fr auto; gap: 8px; }
  .track .t-num { display: none; }
  .track .t-actions { gap: 2px; }
  .track .t-actions .icon-btn.small { width: 30px; height: 30px; }
}

@media (max-width: 300px) {
  .track .t-actions [data-act="add"] { display: none; }
}
