:root {
  --bg: #100e0c;
  --paper: #f3eadf;
  --muted: #b3a89c;
  --accent: #e07a4c;
  --line: rgba(243, 234, 223, 0.1);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100dvh;
  font-family: var(--sans);
  color: var(--paper);
  background:
    radial-gradient(1000px 420px at 0% -10%, rgba(224, 122, 76, 0.18), transparent 55%),
    radial-gradient(800px 380px at 100% 0%, rgba(143, 191, 168, 0.08), transparent 50%),
    var(--bg);
}

button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
}

::selection { background: rgba(224, 122, 76, 0.35); }

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

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.brand {
  font-family: var(--serif);
  font-size: 2rem;
  margin: 0;
  letter-spacing: -0.04em;
}

.muted, .fine, .who { color: var(--muted); }

.account { position: relative; flex: none; max-width: 42%; }
.account-trigger {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-weight: 600;
  padding: 6px 0;
}
.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 148px;
  background: #1c1915;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  z-index: 30;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.account-item {
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
}
.account-item:hover { background: rgba(243, 234, 223, 0.06); }
.account-note, .account-code-msg {
  margin: 0;
  padding: 6px 8px 2px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}
.account-code {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
}
.account-code input {
  width: 100%;
  padding: 8px 10px;
  font-size: 16px;
}
.account-menu { min-width: 196px; }
.fine { font-size: 0.8rem; line-height: 1.4; }
.lede { color: var(--muted); line-height: 1.45; }

.primary, .ghost, .danger {
  border-radius: 999px;
  padding: 12px 18px;
  line-height: 1;
}

.sm { padding: 8px 12px; font-size: 0.85rem; }
.primary { background: var(--accent); color: #1a0d08; font-weight: 600; }
.ghost { border: 1px solid var(--line); }
.danger { background: #6e2e24; }
button:disabled { opacity: 0.55; cursor: wait; }

.alert {
  background: rgba(110, 46, 36, 0.45);
  border: 1px solid rgba(224, 122, 76, 0.45);
  padding: 10px 12px;
  border-radius: 12px;
}

input[type="text"],
input[type="password"],
input[type="search"] {
  width: 100%;
  background: #221c17;
  border: 1px solid rgba(243, 234, 223, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
}

input[type="range"] { width: 100%; accent-color: var(--accent); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 0.85rem; color: var(--muted); }

.icon svg { width: 22px; height: 22px; display: block; }
.icon-play svg,
.icon-pause svg,
.icon-prev svg,
.icon-next svg,
.icon-heartOn svg { fill: currentColor; }
.icon-play svg { transform: translateX(1px); }

body.auth {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(440px, 100%);
  background: rgba(27, 23, 20, 0.94);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px 24px 22px;
}

.auth-card form,
.stack { display: flex; flex-direction: column; gap: 14px; }

.auth-card h1 { margin: 0; font-size: 2.3rem; line-height: 1; }
.auth-card .primary { width: 100%; }
.switch a { color: var(--accent); }

.mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 7px #1b1714,
    0 0 0 9px var(--accent),
    0 0 0 16px #1b1714,
    0 0 0 18px rgba(243, 234, 223, 0.55);
  margin: 10px 12px 18px;
}

.app { min-height: 100dvh; }

.sidebar { display: none; }

.stage { padding-bottom: calc(var(--dock-h, 76px) + 12px); }

body.has-player .stage { padding-bottom: calc(var(--dock-h, 148px) + 12px); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) 20px 12px;
  background: rgba(16, 14, 12, 0.88);
  backdrop-filter: blur(18px);
}

#view-title {
  margin: 0;
  font-size: 1.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}

.quick-search { display: none; }

#view { padding: 8px 20px 32px; }

.hero-empty {
  padding: 48px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.hero-empty h2 { margin: 0; font-size: 2.5rem; line-height: 1.02; }

.block-head, .inline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inline-actions { justify-content: flex-start; flex-wrap: wrap; }

.block-head { margin: 22px 0 8px; }
.block-head h2 { margin: 0; font-size: 1.6rem; }

.track {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}

.track-main {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  text-align: left;
}

.track-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.track-meta strong,
.track-meta span,
.mini-text strong,
.mini-text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-meta span, .time { color: var(--muted); font-size: 0.85rem; }
.time { font-variant-numeric: tabular-nums; }
.track.is-playing .track-meta strong { color: var(--accent); }

.row-actions { display: flex; flex: none; }

.icon-btn, .round {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
}

.icon-btn.is-on { color: var(--accent); }

.round {
  width: 44px;
  height: 44px;
  background: var(--paper);
  color: #1a120e;
  flex: none;
}

.cover, .mini-cover, .now-cover {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #2a2420;
  color: var(--paper);
  font-family: var(--serif);
}

.cover { width: 52px; height: 52px; border-radius: 8px; }
.mini-cover { width: 46px; height: 46px; border-radius: 8px; flex: none; }

.now-cover {
  width: min(78vw, 340px);
  aspect-ratio: 1;
  border-radius: 18px;
  margin: 8px auto 18px;
  font-size: 4rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.cover img, .mini-cover img, .now-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-form { display: flex; gap: 8px; margin-bottom: 18px; }
.search-form input { flex: 1; }

.search-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.search-tabs::-webkit-scrollbar { display: none; }

.search-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--muted);
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.search-tab:hover {
  color: var(--paper);
  background: rgba(243, 234, 223, 0.04);
}

.search-tab.is-active {
  color: var(--paper);
  background: rgba(243, 234, 223, 0.09);
  border-color: var(--line);
  font-weight: 600;
}

.search-tab.is-active.is-sc {
  color: #ff8533;
  border-color: rgba(255, 115, 0, 0.4);
  background: rgba(255, 115, 0, 0.12);
}

.search-tab.is-active.is-sp {
  color: #1ed760;
  border-color: rgba(30, 215, 96, 0.45);
  background: rgba(30, 215, 96, 0.12);
}

.tab-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(30, 215, 96, 0.16);
  color: #1ed760;
  border: 1px solid rgba(30, 215, 96, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tab-badge.is-sc {
  background: rgba(255, 120, 20, 0.2);
  color: #ff9d5c;
  border-color: rgba(255, 120, 20, 0.35);
}

.search-tab .icon svg {
  width: 18px;
  height: 18px;
}

.yt-card {
  background: rgba(27, 23, 20, 0.94);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}

.yt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  width: fit-content;
  line-height: 1;
}

.yt-badge.is-found {
  background: rgba(46, 160, 80, 0.18);
  color: #72e096;
  border: 1px solid rgba(114, 224, 150, 0.35);
}

.yt-badge.is-missing {
  background: rgba(220, 70, 50, 0.15);
  color: #f28b7e;
  border: 1px solid rgba(242, 139, 126, 0.35);
}

.yt-badge .icon svg {
  width: 16px;
  height: 16px;
}

.yt-track {
  display: flex;
  gap: 16px;
  align-items: center;
}

@media (max-width: 580px) {
  .yt-track {
    flex-direction: column;
    align-items: flex-start;
  }
}

.yt-cover-wrap {
  position: relative;
  width: 140px;
  height: 84px;
  border-radius: 12px;
  overflow: hidden;
  background: #1e1915;
  flex-shrink: 0;
}

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

.yt-dur {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.yt-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.yt-meta h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--paper);
}

.yt-meta .yt-channel {
  color: var(--muted);
  font-size: 0.9rem;
}

.yt-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.yt-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.yt-btn-download .icon svg {
  width: 16px;
  height: 16px;
}

.yt-download-success {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(46, 160, 80, 0.1);
  border: 1px solid rgba(114, 224, 150, 0.25);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 6px;
}

.yt-success-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.yt-more-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.yt-more-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.82rem;
}

.yt-more-dl .icon svg {
  width: 14px;
  height: 14px;
}

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(243, 234, 223, 0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: yt-spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 4px;
}

.yt-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.yt-link .icon svg {
  width: 16px;
  height: 16px;
}

.yt-more {
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yt-more-title {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.yt-more-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yt-more-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(243, 234, 223, 0.04);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.yt-more-item:hover {
  background: rgba(243, 234, 223, 0.08);
}

.yt-more-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.yt-more-info strong {
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-more-info span {
  font-size: 0.8rem;
  color: var(--muted);
}

.yt-suggest-box {
  background: rgba(224, 122, 76, 0.07);
  border: 1px dashed rgba(224, 122, 76, 0.3);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.yt-suggest-box p {
  margin: 0;
  color: var(--paper);
  font-size: 0.95rem;
  line-height: 1.45;
}

.yt-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.yt-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(243, 234, 223, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: yt-spin 0.8s linear infinite;
}

@keyframes yt-spin {
  to { transform: rotate(360deg); }
}

.sc-badge-drm {
  background: rgba(230, 160, 40, 0.15);
  color: #f5be58;
  border: 1px solid rgba(245, 190, 88, 0.35);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sc-badge-free {
  background: rgba(46, 160, 80, 0.15);
  color: #72e096;
  border: 1px solid rgba(114, 224, 150, 0.3);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ext-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.ext-card-item {
  display: flex;
  gap: 14px;
  align-items: center;
  background: rgba(27, 23, 20, 0.85);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ext-card-item:hover {
  border-color: rgba(243, 234, 223, 0.2);
  background: rgba(27, 23, 20, 0.98);
}

.ext-artwork-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 10px;
  overflow: hidden;
  background: #1c1815;
  flex-shrink: 0;
}

.ext-artwork {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ext-artwork-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: rgba(243, 234, 223, 0.05);
}

.ext-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ext-info h4 {
  margin: 0;
  font-size: 1.02rem;
  color: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ext-info .ext-author {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ext-info .ext-details {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.ext-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 580px) {
  .ext-card-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .ext-artwork-wrap {
    width: 100%;
    height: 140px;
  }
  .ext-actions {
    width: 100%;
    justify-content: space-between;
  }
}

.ext-alert-box {
  background: rgba(220, 90, 50, 0.1);
  border: 1px solid rgba(220, 90, 50, 0.35);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.ext-alert-box p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.playlist-row, .list-pick {
  width: 100%;
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.playlist-row { display: flex; flex-direction: column; gap: 4px; }
.playlist-row span { color: var(--muted); font-size: 0.9rem; }

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--vv-bottom, 0px);
  z-index: 20;
  background: #100e0c;
  border-top: 1px solid var(--line);
  padding-bottom: var(--dock-safe, 0px);
}

@media (max-width: 879px) {
  .dock { --dock-safe: 0px; }
}

html.is-standalone .dock {
  --dock-safe: env(safe-area-inset-bottom, 0px);
}

.dock::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 80px;
  background: #100e0c;
  pointer-events: none;
}

.mini {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 4px;
}

.mini.is-hidden { display: none; }

.mini-open {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.mini-text { min-width: 0; display: flex; flex-direction: column; }
.mini-text span { color: var(--muted); font-size: 0.85rem; }

.mini-progress {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: rgba(243, 234, 223, 0.12);
}

.mini-progress span { display: block; height: 100%; width: 0; background: var(--accent); }

.tabbar { display: flex; }

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 0 10px;
  color: var(--muted);
  font-size: 11px;
}

.tab.is-active, .nav-link.is-active { color: var(--paper); }

.now {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(8, 7, 6, 0.62);
  justify-content: center;
}

.now.is-open { display: flex; }

.now-card {
  width: min(480px, 100%);
  height: 100%;
  overflow: auto;
  background:
    radial-gradient(500px 220px at 50% 0%, rgba(224, 122, 76, 0.22), transparent 60%),
    #171410;
  padding: calc(12px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom));
}

.now-grab { display: none; }

@media (max-width: 879px) {
  .now-card {
    overscroll-behavior: contain;
    touch-action: pan-y;
  }
  .now-grab {
    display: block;
    width: 42px;
    height: 5px;
    margin: 2px auto 14px;
    border-radius: 999px;
    background: rgba(243, 234, 223, 0.35);
  }
}

.now-meta h2 { margin: 0; font-size: 1.8rem; }
.now-meta p { margin: 4px 0 0; color: var(--muted); }

.seek-times {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
}

.transport {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.play-main {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a0d08;
  display: grid;
  place-items: center;
}

.play-main .icon svg { width: 30px; height: 30px; }

.volume {
  display: none;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  margin-top: 12px;
}

.queue-title { margin: 22px 0 8px; font-size: 1.2rem; }

.queue {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.queue-item {
  width: 100%;
  text-align: left;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid var(--line);
}

.queue-item span { color: var(--muted); font-size: 0.85rem; }
.queue li.is-current strong { color: var(--accent); }

#btn-repeat { position: relative; }
#btn-repeat.is-one::after {
  content: "1";
  position: absolute;
  right: 2px;
  bottom: 2px;
  font-size: 10px;
}

#audio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

#toasts {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock-h, 92px) + 16px);
  transform: translateX(-50%);
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(90vw, 420px);
  pointer-events: none;
}

.toast {
  background: var(--paper);
  color: #1a120e;
  padding: 12px 16px;
  border-radius: 999px;
  text-align: center;
}

dialog {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  max-width: calc(100vw - 24px);
}

dialog::backdrop { background: rgba(8, 7, 6, 0.66); }

.modal-card {
  width: min(420px, calc(100vw - 32px));
  background: #1c1915;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--line);
}

.modal-card h3 { margin: 0 0 12px; font-size: 1.6rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

body.player-open { overflow: hidden; }
body.player-open .dock { visibility: hidden; }

@media (hover: hover) {
  .track:hover { background: rgba(243, 234, 223, 0.04); }
}

@media (min-width: 880px) {
  .app { display: grid; grid-template-columns: 250px minmax(0, 1fr); }
  .sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 28px 18px;
    border-right: 1px solid var(--line);
    position: sticky;
    top: 0;
    height: 100dvh;
  }
  .side-nav { display: flex; flex-direction: column; gap: 4px; }
  .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--muted);
  }
  .nav-link.is-active { background: rgba(243, 234, 223, 0.06); }
  .side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
  .sidebar .account { max-width: 100%; }
  .sidebar .account-trigger { padding: 0; font-weight: 500; }
  .sidebar .account-menu { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; }
  .tabbar, .top-install, .topbar .account { display: none; }
  .stage { padding-bottom: 32px; }
  .dock { bottom: 0; }
  .dock::after { display: none; }
  .quick-search { display: block; flex: 1; max-width: 420px; }
  #view-title { flex: none; }
  .dock { left: 250px; }
  .dock:not(:has(.mini:not(.is-hidden))) { display: none; }
  body.has-player .stage { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .now { align-items: center; padding: 28px; }
  .now-card { height: min(900px, 100%); border-radius: 28px; }
  .volume { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
