/* Melodii 乐库 — 深色主题 */
:root {
  --bg: #0e1014;
  --bg-soft: #14171d;
  --panel: #191d26;
  --panel-2: #1f242f;
  --line: #262c39;
  --text: #e8eaf0;
  --text-dim: #9aa3b2;
  --text-faint: #6b7382;
  --accent: #6d7cff;
  --accent-2: #a855f7;
  --accent-grad: linear-gradient(135deg, #6d7cff, #a855f7);
  --danger: #f0566a;
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-w: 224px;
  --player-h: 86px;
  --shadow: 0 8px 32px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select { font-family: inherit; }
svg { display: block; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a3040; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #39415a; }
::-webkit-scrollbar-track { background: transparent; }

#app { display: none; height: 100%; }
#auth { display: none; height: 100%; }

/* ---------- 布局 ---------- */
.layout { display: flex; height: 100%; }
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 18px 12px 14px;
  overflow-y: auto;
}
.main {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  position: relative;
}
.content {
  flex: 1; overflow-y: auto; padding: 26px 30px 40px;
  background: radial-gradient(1200px 500px at 20% -10%, rgba(109, 124, 255, .08), transparent 60%), var(--bg);
}
.main.has-player .content { padding-bottom: calc(var(--player-h) + 24px); }

/* ---------- 侧栏 ---------- */
.logo {
  display: flex; align-items: center; gap: 10px;
  padding: 2px 10px 16px; font-size: 19px; font-weight: 700; letter-spacing: .5px;
}
.logo .mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--accent-grad);
  display: grid; place-items: center; color: #fff; box-shadow: 0 4px 14px rgba(109, 124, 255, .4);
}
.logo .sub { display: block; font-size: 10px; color: var(--text-faint); font-weight: 400; letter-spacing: 2px; }
.nav-section { margin-top: 10px; }
.nav-title {
  font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 1.5px;
  padding: 12px 12px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text-dim); font-size: 14px; cursor: pointer;
  transition: background .15s, color .15s;
  user-select: none;
}
.nav-item:hover { background: var(--panel); color: var(--text); }
.nav-item.active { background: var(--panel-2); color: var(--text); font-weight: 600; }
.nav-item.active svg { color: var(--accent); }
.nav-item svg { width: 19px; height: 19px; min-width: 19px; }
.nav-item .count { margin-left: auto; font-size: 11px; color: var(--text-faint); }

/* ---------- 通用 ---------- */
.page-title { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.page-sub { color: var(--text-dim); margin-bottom: 22px; font-size: 13px; }
.section { margin-bottom: 30px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
}
.section-head h2 { font-size: 17px; font-weight: 700; }
.section-head .more { color: var(--text-dim); font-size: 12px; cursor: pointer; }
.section-head .more:hover { color: var(--text); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 18px;
}
.card {
  background: var(--panel); border-radius: var(--radius); padding: 12px;
  cursor: pointer; transition: transform .15s, background .15s;
  border: 1px solid transparent;
}
.card:hover { background: var(--panel-2); transform: translateY(-2px); }
.card .art {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden;
  position: relative; margin-bottom: 10px; background: var(--panel-2);
  display: grid; place-items: center; font-size: 34px; font-weight: 800; color: rgba(255,255,255,.55);
}
.card .art img { width: 100%; height: 100%; object-fit: cover; }
.card .art .hover-play {
  position: absolute; right: 8px; bottom: 8px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  opacity: 0; transform: translateY(6px); transition: all .18s; box-shadow: var(--shadow);
}
.card:hover .hover-play { opacity: 1; transform: none; }
.card .name { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .meta { color: var(--text-dim); font-size: 12px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.art-grad-0 { background: linear-gradient(135deg, #3b4a8f, #7a4fd0); }
.art-grad-1 { background: linear-gradient(135deg, #8f3b6b, #d04f7e); }
.art-grad-2 { background: linear-gradient(135deg, #3b8f70, #4fd0a8); }
.art-grad-3 { background: linear-gradient(135deg, #8f6e3b, #d0a44f); }
.art-grad-4 { background: linear-gradient(135deg, #4a3b8f, #4f7ed0); }
.art-grad-5 { background: linear-gradient(135deg, #2f3542, #5a6478); }

/* 艺人圆卡 */
.artist-card { text-align: center; }
.artist-card .art { border-radius: 50%; font-size: 30px; }

/* ---------- 曲目表 ---------- */
.tracklist { display: flex; flex-direction: column; }
.tracklist-head, .track-row {
  display: grid;
  grid-template-columns: 42px 1fr 220px 90px 96px;
  gap: 12px; align-items: center;
  padding: 7px 14px; border-radius: var(--radius-sm);
}
.tracklist-head {
  color: var(--text-faint); font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px;
  border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 4px;
  position: sticky; top: -26px; background: transparent; z-index: 2;
  backdrop-filter: blur(8px); background: rgba(14,16,20,.75);
}
.track-row { cursor: pointer; color: var(--text-dim); }
.track-row:hover { background: var(--panel); color: var(--text); }
.track-row.playing { color: var(--accent); }
.track-row.playing .t-title { color: var(--accent); font-weight: 600; }
.track-row .num { text-align: right; color: var(--text-faint); font-variant-numeric: tabular-nums; position: relative; }
.track-row .num .eq { display: none; }
.track-row.playing .num .digit { visibility: hidden; }
.track-row.playing .num .eq { display: block; position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.t-main { min-width: 0; }
.t-title { color: var(--text); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-album { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.t-dur { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }
.t-actions { display: flex; gap: 2px; justify-content: flex-end; opacity: 0; transition: opacity .15s; }
.track-row:hover .t-actions { opacity: 1; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  color: var(--text-dim); transition: background .12s, color .12s;
}
.icon-btn:hover { background: var(--panel-2); color: var(--text); }
.icon-btn.active { color: var(--accent-2); }
.icon-btn svg { width: 17px; height: 17px; }

/* 均衡器动画 */
.eq { display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: var(--accent); animation: eq 1s ease-in-out infinite; border-radius: 1px; }
.eq i:nth-child(1) { height: 60%; animation-delay: 0s; }
.eq i:nth-child(2) { height: 100%; animation-delay: .25s; }
.eq i:nth-child(3) { height: 40%; animation-delay: .5s; }
@keyframes eq { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }

/* ---------- 专辑/艺人详情头 ---------- */
.detail-head {
  display: flex; gap: 26px; align-items: flex-end; margin-bottom: 28px; flex-wrap: wrap;
}
.detail-head .art {
  width: 208px; height: 208px; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: grid; place-items: center; font-size: 64px; font-weight: 800; color: rgba(255,255,255,.5);
  flex-shrink: 0;
}
.detail-head .art img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { min-width: 260px; flex: 1; }
.detail-info h1 { font-size: 27px; font-weight: 800; margin-bottom: 6px; }
.detail-info .sub { color: var(--text-dim); font-size: 13.5px; line-height: 1.7; }
.detail-info .sub b { color: var(--text); font-weight: 600; }
.play-all {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  background: var(--accent-grad); color: #fff; font-weight: 600; font-size: 14px;
  padding: 10px 22px; border-radius: 24px; transition: filter .15s, transform .15s;
  box-shadow: 0 6px 20px rgba(109, 124, 255, .35);
}
.play-all:hover { filter: brightness(1.1); transform: translateY(-1px); }
.play-all svg { width: 16px; height: 16px; }
.ghost-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; margin-left: 10px;
  border: 1px solid var(--line); color: var(--text-dim); font-size: 13.5px;
  padding: 9px 18px; border-radius: 24px; transition: all .15s;
}
.ghost-btn:hover { border-color: var(--accent); color: var(--text); }

/* ---------- 搜索框 ---------- */
.searchbar {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 24px;
  padding: 10px 18px; max-width: 560px; margin-bottom: 26px;
}
.searchbar:focus-within { border-color: var(--accent); }
.searchbar svg { width: 17px; height: 17px; color: var(--text-faint); min-width: 17px; }
.searchbar input {
  flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 14px;
}
.searchbar input::placeholder { color: var(--text-faint); }

/* ---------- 播放器 ---------- */
.player {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--player-h);
  background: rgba(20, 23, 29, .92); backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center; gap: 16px; padding: 0 20px; z-index: 40;
}
.main.has-player .player { display: grid; }
.p-info { display: flex; align-items: center; gap: 13px; min-width: 0; }
.p-info .art {
  width: 54px; height: 54px; border-radius: 9px; overflow: hidden; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 22px; color: rgba(255,255,255,.5);
}
.p-info .art img { width: 100%; height: 100%; object-fit: cover; }
.p-info .meta { min-width: 0; }
.p-info .meta .t { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-info .meta .s { font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.p-info .icon-btn { width: 28px; height: 28px; }
.p-info .icon-btn svg { width: 15px; height: 15px; }

.p-center { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.p-controls { display: flex; align-items: center; gap: 6px; }
.p-controls .icon-btn { width: 36px; height: 36px; }
.p-controls .toggle.active { color: var(--accent); }
.p-btn-play {
  width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #111;
  display: grid; place-items: center; transition: transform .12s, background .12s;
}
.p-btn-play:hover { transform: scale(1.06); }
.p-btn-play svg { width: 18px; height: 18px; }
.p-progress { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 560px; }
.p-progress .time { font-size: 11px; color: var(--text-faint); font-variant-numeric: tabular-nums; min-width: 36px; }
.p-progress .time:last-child { text-align: left; }
.bar { flex: 1; height: 4px; background: var(--line); border-radius: 3px; position: relative; cursor: pointer; }
.bar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 3px; width: 0; }
.bar .fill::after {
  content: ""; position: absolute; right: -5px; top: 50%; transform: translateY(-50%);
  width: 11px; height: 11px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity .15s;
}
.bar:hover .fill::after { opacity: 1; }

.p-right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.p-right .icon-btn { width: 32px; height: 32px; }
.vol-bar { width: 88px; }

/* ---------- 队列抽屉 ---------- */
.queue-panel {
  position: absolute; right: 14px; bottom: calc(var(--player-h) + 12px); top: 70px;
  width: 380px; max-width: calc(100vw - 28px);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); display: none; flex-direction: column; z-index: 60; overflow: hidden;
}
.queue-panel.open { display: flex; }
.queue-panel .qh {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px; border-bottom: 1px solid var(--line);
}
.queue-panel .qh b { font-size: 14px; }
.queue-panel .qh span { color: var(--text-faint); font-size: 12px; margin-left: 8px; }
.queue-list { flex: 1; overflow-y: auto; padding: 6px; }
.queue-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm);
  cursor: pointer; color: var(--text-dim);
}
.queue-item:hover { background: var(--panel-2); }
.queue-item.now { color: var(--accent); }
.queue-item.now .q-title { color: var(--accent); font-weight: 600; }
.queue-item .q-idx { width: 20px; text-align: center; font-size: 11px; color: var(--text-faint); }
.q-main { flex: 1; min-width: 0; }
.q-title { font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-sub { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.queue-empty { text-align: center; color: var(--text-faint); padding: 50px 0; font-size: 13px; }

/* ---------- 右键/更多菜单 ---------- */
.ctx-menu {
  position: fixed; z-index: 100; min-width: 190px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 5px; display: none;
}
.ctx-menu.open { display: block; }
.ctx-menu .mi {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 12px; border-radius: 6px; font-size: 13px; color: var(--text); text-align: left;
}
.ctx-menu .mi:hover { background: var(--accent); color: #fff; }
.ctx-menu .mi svg { width: 15px; height: 15px; color: var(--text-dim); }
.ctx-menu .mi:hover svg { color: #fff; }
.ctx-menu .sep { height: 1px; background: var(--line); margin: 5px 8px; }

/* ---------- 登录页 ---------- */
.auth-wrap {
  height: 100%; display: grid; place-items: center;
  background: radial-gradient(900px 500px at 70% 20%, rgba(168, 85, 247, .12), transparent 60%),
              radial-gradient(900px 500px at 20% 80%, rgba(109, 124, 255, .12), transparent 60%), var(--bg);
}
.auth-card {
  width: 380px; max-width: calc(100vw - 40px);
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 40px 36px 34px; box-shadow: var(--shadow);
}
.auth-card .logo { justify-content: center; padding-bottom: 8px; font-size: 22px; }
.auth-card .tagline { text-align: center; color: var(--text-dim); font-size: 13px; margin-bottom: 28px; }
.auth-card .hint { text-align: center; color: var(--text-faint); font-size: 12px; margin-top: 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; color: var(--text-dim); margin-bottom: 7px; }
.field input, .field select {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 9px;
  color: var(--text); padding: 11px 14px; font-size: 14px; outline: none; transition: border-color .15s;
}
.field input:focus { border-color: var(--accent); }
.btn-primary {
  width: 100%; background: var(--accent-grad); color: #fff; font-size: 14.5px; font-weight: 600;
  padding: 12px; border-radius: 10px; margin-top: 6px; transition: filter .15s;
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-primary:disabled { opacity: .55; cursor: default; }

/* ---------- 设置页 ---------- */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 18px; max-width: 1000px; }
.set-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.set-card h3 { font-size: 15.5px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.set-card h3 svg { width: 17px; height: 17px; color: var(--accent); }
.set-card .desc { color: var(--text-faint); font-size: 12.5px; margin-bottom: 16px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; }
.set-row .lab { font-size: 13.5px; }
.set-row .lab small { display: block; color: var(--text-faint); font-size: 11.5px; margin-top: 2px; }
.set-row select, .set-row input {
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 7px 10px; font-size: 13px; outline: none;
}
.btn-sm {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px; padding: 7px 14px; transition: all .15s;
}
.btn-sm:hover { border-color: var(--accent); }
.btn-sm.danger:hover { border-color: var(--danger); color: var(--danger); }

.dropzone {
  border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 34px 20px;
  text-align: center; color: var(--text-dim); font-size: 13.5px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: rgba(109, 124, 255, .06); }
.dropzone svg { width: 34px; height: 34px; margin: 0 auto 10px; color: var(--text-faint); }
.upload-log { margin-top: 12px; font-size: 12.5px; max-height: 160px; overflow-y: auto; line-height: 1.8; }
.upload-log .ok { color: #4ade80; }
.upload-log .fail { color: var(--danger); }

.scan-status {
  background: var(--bg-soft); border-radius: 9px; padding: 12px 14px; font-size: 12.5px;
  color: var(--text-dim); margin-top: 12px; line-height: 1.8; display: none;
}
.scan-status.show { display: block; }
.spin {
  display: inline-block; width: 13px; height: 13px; border: 2px solid var(--accent);
  border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite;
  vertical-align: -2px; margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.user-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 4px;
  border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.user-row:last-child { border-bottom: none; }
.user-row .avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent-grad);
  display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff;
}
.user-row .role { font-size: 11px; padding: 2px 9px; border-radius: 10px; background: var(--panel-2); color: var(--text-dim); }
.user-row .role.admin { background: rgba(109, 124, 255, .18); color: var(--accent); }

/* ---------- 空状态 / 提示 ---------- */
.empty { text-align: center; padding: 70px 20px; color: var(--text-faint); }
.empty svg { width: 44px; height: 44px; margin: 0 auto 14px; opacity: .5; }
.empty p { font-size: 14px; margin-bottom: 6px; color: var(--text-dim); }
.empty small { font-size: 12.5px; }

.toast-wrap {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 200;
  display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.toast {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  padding: 10px 20px; border-radius: 22px; font-size: 13px; box-shadow: var(--shadow);
  animation: toast-in .25s ease;
}
.toast.err { border-color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--panel); border: 1px solid var(--line); padding: 8px 16px;
  border-radius: 20px; font-size: 13px; color: var(--text-dim); cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--accent); color: var(--text); }

.playlist-form { display: flex; gap: 10px; margin-bottom: 20px; }
.playlist-form input {
  flex: 1; max-width: 320px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 22px; color: var(--text); padding: 9px 18px; outline: none; font-size: 13.5px;
}
.playlist-form input:focus { border-color: var(--accent); }

.stat-chips { display: flex; gap: 12px; margin: 14px 0 26px; flex-wrap: wrap; }
.stat-chip {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 20px; min-width: 110px;
}
.stat-chip b { font-size: 20px; display: block; font-variant-numeric: tabular-nums; }
.stat-chip span { font-size: 11.5px; color: var(--text-faint); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .tracklist-head, .track-row { grid-template-columns: 36px 1fr 160px 70px 88px; }
}
@media (max-width: 900px) {
  :root { --sidebar-w: 68px; }
  .sidebar { padding: 18px 8px 14px; align-items: center; }
  .logo .text, .nav-item span:not(.count), .nav-title { display: none; }
  .nav-item { justify-content: center; padding: 11px; width: 46px; }
  .tracklist-head, .track-row { grid-template-columns: 34px 1fr 60px 66px; }
  .t-album { display: none; }
  .detail-head .art { width: 160px; height: 160px; }
  .player { grid-template-columns: 1fr 2fr; }
  .p-right { display: none; }
}
@media (max-width: 640px) {
  .content { padding: 18px 16px 40px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
  .player { grid-template-columns: 1fr; gap: 8px; padding: 10px 14px; height: 120px; }
  :root { --player-h: 120px; }
  .p-right { display: flex; position: absolute; right: 12px; top: 10px; }
  .queue-panel { top: 20px; right: 8px; left: 8px; width: auto; }
  .tracklist-head, .track-row { grid-template-columns: 30px 1fr 52px 62px; }
}
