/* =========================================================
   共鸣电台 · 样式
   深色、留白、轻微颗粒感。全部为本地 CSS，无外部字体。
   ========================================================= */

:root {
  --accent: #f3b06a;
  --accent-2: #ffd7a3;
  --accent-rgb: 243, 176, 106;
  --accent2-rgb: 255, 215, 163;

  --bg: #08070a;
  --bg-soft: #100e13;
  --text: #f2eee9;
  --muted: rgba(242, 238, 233, 0.6);
  --faint: rgba(242, 238, 233, 0.36);
  --line: rgba(255, 255, 255, 0.085);
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.07);

  --font: "Segoe UI Variable Text", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei",
    "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", system-ui, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Cascadia Code", "Consolas", "Liberation Mono", monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(var(--accent-rgb), 0.32);
  color: #fff;
}

button,
input {
  font: inherit;
  letter-spacing: inherit;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

h1,
h2,
p {
  margin: 0;
}

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0.18em 0.42em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom-color: rgba(255, 255, 255, 0.07);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(242, 238, 233, 0.62);
  font-family: var(--mono);
  font-size: 0.84em;
  line-height: 1.4;
  text-align: center;
}

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

.icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ---------- 背景 ---------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.42;
  transform: translateZ(0);
  will-change: transform;
}

.ambient__orb--a {
  top: -18%;
  left: 12%;
  width: min(52vw, 620px);
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, rgba(var(--accent-rgb), 0.55), transparent 68%);
  animation: orb-drift-a 26s ease-in-out infinite alternate;
}

.ambient__orb--b {
  right: -12%;
  bottom: -22%;
  width: min(58vw, 720px);
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, rgba(var(--accent2-rgb), 0.35), transparent 68%);
  animation: orb-drift-b 32s ease-in-out infinite alternate;
}

.ambient__orb--c {
  top: 24%;
  left: 48%;
  width: min(34vw, 420px);
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, rgba(var(--accent-rgb), 0.22), transparent 70%);
  opacity: 0.5;
  animation: orb-drift-c 22s ease-in-out infinite alternate;
}

.ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 84px 84px;
  opacity: 0.34;
  -webkit-mask-image: radial-gradient(ellipse 74% 64% at 50% 32%, #000 4%, transparent 76%);
  mask-image: radial-gradient(ellipse 74% 64% at 50% 32%, #000 4%, transparent 76%);
}

.ambient__noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.52'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
}

@keyframes orb-drift-a {
  from { transform: translate3d(-2%, -2%, 0) scale(1); }
  to { transform: translate3d(9%, 7%, 0) scale(1.16); }
}

@keyframes orb-drift-b {
  from { transform: translate3d(3%, 2%, 0) scale(1.08); }
  to { transform: translate3d(-8%, -6%, 0) scale(0.94); }
}

@keyframes orb-drift-c {
  from { transform: translate3d(-5%, 4%, 0) scale(0.92); }
  to { transform: translate3d(7%, -7%, 0) scale(1.14); }
}

/* ---------- 骨架 ---------- */

.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 326px minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(4, 3, 6, 0.66);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.scrim.show {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- 侧栏 ---------- */

.sidebar {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 0;
  margin: 16px 0 16px 16px;
  padding: 19px 15px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(158deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.022) 42%, rgba(255, 255, 255, 0.045));
  box-shadow:
    0 36px 90px -44px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.075);
  -webkit-backdrop-filter: blur(30px) saturate(130%);
  backdrop-filter: blur(30px) saturate(130%);
}

.sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 0;
  background: none;
  box-shadow: none;
  flex: none;
}

.brand__mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

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

.brand__text strong {
  font-family: "Franklin Gothic Heavy", "Arial Black", "Segoe UI Black", sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.015em;
  line-height: 0.95;
}

.brand__text span {
  color: rgba(242, 238, 233, 0.45);
  font-family: "Franklin Gothic Heavy", "Arial Black", "Segoe UI Black", sans-serif;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1;
}

.icon-btn.sidebar__close {
  display: none;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--muted);
  transition:
    color 0.2s var(--ease),
    background-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.icon-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.icon-btn:active {
  transform: scale(0.94);
}

.icon-btn .icon {
  width: 19px;
  height: 19px;
}

.sidebar__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 0;
}

.sidebar__title h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(242, 238, 233, 0.78);
}

.sidebar__title span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
}

.playlist-tabs {
  display: flex;
  gap: 6px;
  margin: -7px -4px -2px;
  padding: 1px 4px 2px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.playlist-tabs::-webkit-scrollbar {
  display: none;
}

.playlist-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  max-width: 168px;
  padding: 6px 9px 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(242, 238, 233, 0.5);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  transition:
    color 0.22s var(--ease),
    border-color 0.22s var(--ease),
    background-color 0.22s var(--ease);
}

.playlist-tab:hover {
  border-color: rgba(var(--accent-rgb), 0.32);
  background: rgba(var(--accent-rgb), 0.06);
  color: rgba(242, 238, 233, 0.82);
}

.playlist-tab.is-active {
  border-color: rgba(var(--accent-rgb), 0.46);
  background: rgba(var(--accent-rgb), 0.13);
  color: var(--accent-2);
  box-shadow: 0 4px 16px -10px rgba(var(--accent-rgb), 0.8);
}

.playlist-tab__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-tab__count {
  flex: none;
  min-width: 17px;
  padding: 1px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(242, 238, 233, 0.34);
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.35;
  text-align: center;
}

.playlist-tab.is-active .playlist-tab__count {
  background: rgba(var(--accent-rgb), 0.2);
  color: var(--accent-2);
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.22);
  transition:
    border-color 0.22s var(--ease),
    background-color 0.22s var(--ease);
}

.search:focus-within {
  border-color: rgba(var(--accent-rgb), 0.42);
  background: rgba(0, 0, 0, 0.3);
}

.search > .icon {
  width: 15px;
  height: 15px;
  color: var(--faint);
}

.search input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  outline: none;
}

.search input::placeholder {
  color: rgba(242, 238, 233, 0.3);
}

.search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search kbd {
  flex: none;
  min-width: 18px;
  padding: 1px 4px;
  font-size: 9px;
  color: rgba(242, 238, 233, 0.32);
  background: rgba(255, 255, 255, 0.03);
}

.playlist {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0 -4px;
  padding: 1px 4px 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.playlist::-webkit-scrollbar {
  width: 5px;
}

.playlist::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.11);
}

.track-row {
  position: relative;
  display: grid;
  grid-template-columns: 26px 43px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  text-align: left;
  transition:
    background-color 0.22s var(--ease),
    border-color 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.track-row:hover {
  background: rgba(255, 255, 255, 0.048);
}

.track-row:active {
  transform: scale(0.995);
}

.track-row.is-active {
  border-color: rgba(var(--accent-rgb), 0.26);
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.17), rgba(var(--accent-rgb), 0.035) 62%, transparent);
  box-shadow: inset 2px 0 0 rgba(var(--accent-rgb), 0.78);
}

.row-index {
  display: grid;
  place-items: center;
  min-width: 0;
}

.row-num {
  color: rgba(242, 238, 233, 0.3);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.row-eq {
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  width: 14px;
  height: 13px;
}

.row-eq i {
  width: 2px;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleY(0.3);
  transform-origin: bottom;
}

.track-row.is-active .row-num {
  display: none;
}

.track-row.is-active .row-eq {
  display: flex;
}

.track-row.is-playing .row-eq i {
  animation: equalize 0.9s ease-in-out infinite;
}

.track-row.is-playing .row-eq i:nth-child(2) {
  animation-delay: -0.32s;
  animation-duration: 0.74s;
}

.track-row.is-playing .row-eq i:nth-child(3) {
  animation-delay: -0.52s;
  animation-duration: 1.04s;
}

@keyframes equalize {
  0%,
  100% { transform: scaleY(0.28); }
  50% { transform: scaleY(1); }
}

.row-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 9px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13);
}

.row-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 45%, rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.row-thumb img,
.queue-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-row.is-active .row-thumb {
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.55),
    0 6px 18px -8px rgba(var(--accent-rgb), 0.7);
}

.row-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.row-title {
  overflow: hidden;
  color: rgba(242, 238, 233, 0.86);
  font-size: 12.5px;
  font-weight: 550;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-row.is-active .row-title {
  color: var(--accent-2);
}

.row-meta {
  overflow: hidden;
  color: rgba(242, 238, 233, 0.34);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-dur {
  padding-left: 2px;
  color: rgba(242, 238, 233, 0.3);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.playlist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 180px;
  padding: 22px 16px;
  text-align: center;
}

.playlist-empty__mark {
  color: rgba(var(--accent-rgb), 0.55);
  font-family: var(--mono);
  font-size: 26px;
  line-height: 1;
}

.playlist-empty p {
  color: var(--muted);
  font-size: 12px;
}

.playlist-empty small {
  color: var(--faint);
  font-size: 10px;
  line-height: 1.6;
}

.sidebar__foot {
  margin-top: auto;
  padding-top: 2px;
}

.add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 10px 12px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  color: rgba(242, 238, 233, 0.58);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  transition:
    color 0.22s var(--ease),
    border-color 0.22s var(--ease),
    background-color 0.22s var(--ease);
}

.add-btn .icon {
  width: 15px;
  height: 15px;
}

.add-btn:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.07);
  color: var(--accent-2);
}

.foot-note {
  margin-top: 10px;
  color: rgba(242, 238, 233, 0.26);
  font-size: 9.5px;
  line-height: 1.65;
  letter-spacing: 0.035em;
  text-align: center;
}

/* ---------- 主区域与顶栏 ---------- */

.main {
  position: relative;
  z-index: 2;
  height: 100vh;
  height: 100dvh;
  padding: 0 clamp(22px, 3.6vw, 48px) 24px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.main::-webkit-scrollbar {
  width: 7px;
}

.main::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 21px 0 19px;
  background: linear-gradient(
    180deg,
    rgba(8, 7, 10, 0.99) 0%,
    rgba(8, 7, 10, 0.94) 58%,
    rgba(8, 7, 10, 0.5) 86%,
    rgba(8, 7, 10, 0) 100%
  );
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
}

.topbar__left {
  gap: 12px;
  min-width: 0;
}

.topbar__right {
  gap: 15px;
  flex: none;
}

.menu-btn {
  display: none;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: rgba(242, 238, 233, 0.34);
  font-size: 11px;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

.crumbs__slash {
  color: rgba(255, 255, 255, 0.18);
}

.crumbs strong {
  color: rgba(242, 238, 233, 0.82);
  font-weight: 550;
  letter-spacing: 0.15em;
}

.clock {
  color: rgba(242, 238, 233, 0.32);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.meta-pill {
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(242, 238, 233, 0.44);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.ghost-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(242, 238, 233, 0.46);
  font-size: 10px;
  letter-spacing: 0.07em;
  white-space: nowrap;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.ghost-btn .icon {
  width: 14px;
  height: 14px;
}

.ghost-btn:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.07);
  color: var(--accent-2);
}

/* ---------- 主舞台 ---------- */

.stage {
  display: grid;
  grid-template-columns: minmax(260px, 410px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 4.2vw, 62px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(8px, 2.2vh, 26px) 0 clamp(28px, 4.2vh, 46px);
}

.cover-col {
  width: 100%;
  max-width: min(410px, 47vh);
  justify-self: center;
  min-width: 0;
}

.cover-frame {
  position: relative;
  isolation: isolate;
  border-radius: 20px;
  transition:
    transform 0.7s var(--ease),
    box-shadow 0.7s var(--ease);
  box-shadow:
    0 40px 90px -38px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.09),
    0 0 64px -30px rgba(var(--accent-rgb), 0.5);
}

.cover-frame::before {
  content: "";
  position: absolute;
  inset: -16px;
  z-index: -1;
  border-radius: 36px;
  background: radial-gradient(58% 58% at 50% 62%, rgba(var(--accent-rgb), 0.34), transparent 72%);
  filter: blur(24px);
  opacity: 0.55;
  transition: opacity 0.8s var(--ease);
}

.cover-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.cover-frame.is-playing {
  transform: translateY(-3px) scale(1.006);
  box-shadow:
    0 46px 100px -36px rgba(0, 0, 0, 0.98),
    0 0 0 1px rgba(var(--accent-rgb), 0.24),
    0 0 90px -24px rgba(var(--accent-rgb), 0.62);
}

.cover-frame.is-playing::before {
  opacity: 0.9;
  animation: cover-breathe 7s ease-in-out infinite;
}

@keyframes cover-breathe {
  0%,
  100% { transform: scale(1); opacity: 0.65; }
  50% { transform: scale(1.035); opacity: 0.95; }
}

#cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  background: #151319;
}

.cover-frame__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)' opacity='.4'/%3E%3C/svg%3E");
  opacity: 0.16;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.cover-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 15px;
  padding: 0 3px;
  color: rgba(242, 238, 233, 0.34);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.mono {
  font-family: var(--mono);
}

.cover-caption__badge {
  margin-left: auto;
  padding: 3px 8px;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  border-radius: 5px;
  background: rgba(var(--accent-rgb), 0.06);
  color: rgba(var(--accent-rgb), 0.8);
  font-size: 8.5px;
  letter-spacing: 0.1em;
}

.cover-caption__code {
  flex-basis: 100%;
  color: rgba(242, 238, 233, 0.24);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 曲目信息 ---------- */

.track-col {
  min-width: 0;
  padding-bottom: 2px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  color: rgba(242, 238, 233, 0.44);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
}

.eyebrow__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12), 0 0 14px rgba(var(--accent-rgb), 0.8);
  flex: none;
}

.app.is-playing .eyebrow__dot {
  animation: dot-pulse 2.4s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%,
  100% { box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12), 0 0 12px rgba(var(--accent-rgb), 0.7); }
  50% { box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.06), 0 0 22px rgba(var(--accent-rgb), 1); }
}

.track-title {
  font-size: clamp(2.7rem, 5vw, 4.35rem);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: 0.035em;
  text-wrap: balance;
}

.track-artist {
  margin-top: 13px;
  color: rgba(242, 238, 233, 0.52);
  font-size: 12.5px;
  letter-spacing: 0.07em;
}

.track-desc {
  max-width: 48ch;
  margin-top: 17px;
  color: rgba(242, 238, 233, 0.5);
  font-size: 12.5px;
  line-height: 1.85;
  letter-spacing: 0.025em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 17px;
}

.tag {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.022);
  color: rgba(242, 238, 233, 0.36);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.tag:first-child {
  border-color: rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.075);
  color: rgba(var(--accent-rgb), 0.9);
}

/* ---------- 可视化 ---------- */

.viz {
  height: clamp(42px, 6.4vh, 62px);
  margin-top: 21px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.viz canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- 进度条 ---------- */

.progress {
  margin-top: 8px;
}

.range {
  display: block;
  width: 100%;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  --fill: 0%;
}

.range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    rgba(var(--accent-rgb), 0.95) 0%,
    rgba(var(--accent2-rgb), 0.95) var(--fill),
    rgba(255, 255, 255, 0.12) var(--fill),
    rgba(255, 255, 255, 0.12) 100%
  );
}

.range::-moz-range-track {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    rgba(var(--accent-rgb), 0.95) 0%,
    rgba(var(--accent2-rgb), 0.95) var(--fill),
    rgba(255, 255, 255, 0.12) var(--fill),
    rgba(255, 255, 255, 0.12) 100%
  );
}

.range::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  margin-top: -4.5px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: #fdf9f3;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  -webkit-appearance: none;
  appearance: none;
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: #fdf9f3;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.range:hover::-webkit-slider-thumb {
  transform: scale(1.18);
  box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.13), 0 1px 8px rgba(0, 0, 0, 0.6);
}

.range:hover::-moz-range-thumb {
  transform: scale(1.18);
  box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.13), 0 1px 8px rgba(0, 0, 0, 0.6);
}

.range:focus-visible {
  outline-offset: 6px;
}

.progress__time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  color: rgba(242, 238, 233, 0.36);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
}

/* ---------- 控制按钮 ---------- */

.controls {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 19px;
}

.ctl {
  width: 42px;
  height: 42px;
  color: rgba(242, 238, 233, 0.5);
}

.ctl .icon {
  width: 18px;
  height: 18px;
}

.ctl:hover {
  color: var(--accent-2);
  background: rgba(var(--accent-rgb), 0.08);
}

.ctl.is-on {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
}

.ctl.is-on::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
}

.ctl {
  position: relative;
}

.ctl--skip {
  width: 44px;
  height: 44px;
}

.ctl--skip .icon {
  width: 20px;
  height: 20px;
}

.play-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 7px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-2), var(--accent) 62%, rgba(var(--accent-rgb), 0.8));
  color: #17130d;
  box-shadow:
    0 18px 40px -16px rgba(var(--accent-rgb), 0.85),
    0 2px 0 rgba(255, 255, 255, 0.22) inset,
    0 -6px 18px rgba(0, 0, 0, 0.14) inset;
  transition:
    transform 0.24s var(--ease),
    box-shadow 0.24s var(--ease),
    filter 0.24s var(--ease);
}

.play-btn .icon {
  width: 27px;
  height: 27px;
}

.play-btn:hover {
  transform: scale(1.045);
  filter: brightness(1.06);
  box-shadow:
    0 22px 50px -16px rgba(var(--accent-rgb), 0.95),
    0 2px 0 rgba(255, 255, 255, 0.28) inset,
    0 -6px 18px rgba(0, 0, 0, 0.14) inset;
}

.play-btn:active {
  transform: scale(0.97);
}

.play-btn.is-loading .icon {
  opacity: 0;
}

.play-btn.is-loading::after {
  content: "";
  position: absolute;
  width: 23px;
  height: 23px;
  border: 2px solid rgba(20, 15, 8, 0.22);
  border-top-color: rgba(20, 15, 8, 0.85);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

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

/* ---------- 音量与提示 ---------- */

.under-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 17px;
}

.volume {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.icon-btn--sm {
  width: 30px;
  height: 30px;
}

.icon-btn--sm .icon {
  width: 17px;
  height: 17px;
}

.range--vol {
  width: 106px;
  height: 16px;
}

.range--vol::-webkit-slider-runnable-track {
  height: 3px;
}

.range--vol::-moz-range-track {
  height: 3px;
}

.range--vol::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  margin-top: -3.5px;
  border-width: 1.5px;
}

.range--vol::-moz-range-thumb {
  width: 7px;
  height: 7px;
  border-width: 1.5px;
}

.volume__label {
  width: 22px;
  color: rgba(242, 238, 233, 0.4);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
  text-align: right;
}

.hint {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 2px;
  color: rgba(242, 238, 233, 0.3);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  transition: color 0.2s var(--ease);
}

.hint:hover {
  color: rgba(242, 238, 233, 0.65);
}

.hint kbd {
  font-size: 8.5px;
  color: rgba(242, 238, 233, 0.42);
}

/* ---------- 接下来 ---------- */

.upnext {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.upnext__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.upnext__head h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.13em;
  color: rgba(242, 238, 233, 0.82);
}

.upnext__head span#upnextMeta {
  display: block;
  margin-top: 5px;
  color: rgba(242, 238, 233, 0.3);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.upnext__hint {
  color: rgba(242, 238, 233, 0.24);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.queue {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.queue-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.072);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  color: inherit;
  text-align: left;
  transition:
    border-color 0.24s var(--ease),
    background-color 0.24s var(--ease),
    transform 0.24s var(--ease);
}

.queue-card:hover {
  border-color: rgba(var(--accent-rgb), 0.32);
  background: rgba(var(--accent-rgb), 0.06);
  transform: translateY(-2px);
}

.queue-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  flex: none;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 650;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13);
}

.queue-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.queue-body strong {
  overflow: hidden;
  color: rgba(242, 238, 233, 0.8);
  font-size: 11.5px;
  font-weight: 550;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-body small {
  overflow: hidden;
  color: rgba(242, 238, 233, 0.3);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-dur {
  margin-left: auto;
  color: rgba(242, 238, 233, 0.28);
  font-family: var(--mono);
  font-size: 8.5px;
}

.queue-arrow {
  width: 15px;
  height: 15px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 0.24s var(--ease),
    transform 0.24s var(--ease);
}

.queue-card:hover .queue-arrow {
  opacity: 1;
  transform: translateX(0);
}

.queue-empty {
  grid-column: 1 / -1;
  padding: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: rgba(242, 238, 233, 0.3);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: center;
}

/* ---------- 页脚 ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  max-width: 1180px;
  margin: 26px auto 0;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  color: rgba(242, 238, 233, 0.24);
  font-size: 9px;
  letter-spacing: 0.09em;
}

.foot__dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

/* ---------- 拖拽层 ---------- */

.drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 4, 8, 0.72);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease);
}

.drop-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.drop-overlay__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: min(440px, 100%);
  padding: 48px 32px;
  border: 1.5px dashed rgba(var(--accent-rgb), 0.45);
  border-radius: 22px;
  background: rgba(var(--accent-rgb), 0.055);
  text-align: center;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}

.drop-overlay__box .icon {
  width: 34px;
  height: 34px;
  margin-bottom: 6px;
  color: var(--accent);
}

.drop-overlay__box strong {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.drop-overlay__box span {
  color: var(--faint);
  font-size: 10.5px;
  letter-spacing: 0.09em;
}

/* ---------- 提示条 ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 90;
  max-width: min(420px, calc(100vw - 32px));
  padding: 10px 17px;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 999px;
  background: rgba(18, 16, 21, 0.92);
  color: rgba(242, 238, 233, 0.84);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: center;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.26s var(--ease),
    transform 0.26s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 快捷键弹窗 ---------- */

.sheet {
  width: min(430px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 21px 23px 20px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  background: linear-gradient(165deg, #17141b, #100e13);
  color: var(--text);
  box-shadow:
    0 50px 120px -30px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.sheet[open] {
  animation: sheet-in 0.3s var(--ease);
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sheet::backdrop {
  background: rgba(4, 3, 6, 0.68);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.sheet__head h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.keys {
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.keys li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.keys li:last-child {
  border-bottom: 0;
}

.keys kbd {
  min-width: 62px;
  text-align: center;
  color: rgba(242, 238, 233, 0.72);
}

.keys span {
  color: rgba(242, 238, 233, 0.48);
  font-size: 11.5px;
  letter-spacing: 0.03em;
}

.sheet__note {
  margin-top: 15px;
  color: rgba(242, 238, 233, 0.28);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1180px) {
  .stage {
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: 36px;
  }
}

@media (max-width: 1024px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
  }

  .main {
    padding: 0 24px 22px;
  }

  .sidebar {
    position: fixed;
    top: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 45;
    width: min(332px, 86vw);
    margin: 0;
    transform: translateX(calc(-100% - 26px));
    transition: transform 0.4s var(--ease);
    box-shadow:
      0 50px 120px -24px rgba(0, 0, 0, 0.95),
      inset 0 1px 0 rgba(255, 255, 255, 0.075);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .icon-btn.sidebar__close {
    display: grid;
  }

  .menu-btn {
    display: grid;
    flex: none;
  }

  .stage {
    grid-template-columns: minmax(240px, 370px) minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 30px;
    padding-top: 12px;
    text-align: center;
  }

  .cover-col {
    max-width: min(390px, 50vh, 100%);
  }

  .track-col {
    width: 100%;
    max-width: 540px;
  }

  .eyebrow,
  .tags,
  .controls {
    justify-content: center;
  }

  .track-desc {
    margin-right: auto;
    margin-left: auto;
  }

  .viz {
    max-width: 520px;
    margin-right: auto;
    margin-left: auto;
  }

  .under-controls {
    max-width: 440px;
    margin-right: auto;
    margin-left: auto;
  }

  .cover-caption {
    max-width: 390px;
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 760px) {
  .queue {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clock {
    display: none;
  }
}

@media (max-width: 640px) {
  .main {
    padding: 0 16px 18px;
  }

  .topbar {
    gap: 10px;
    padding: 14px 0;
  }

  .topbar__right {
    gap: 8px;
  }

  .crumbs {
    overflow: hidden;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-overflow: ellipsis;
  }

  .crumbs span:first-child,
  .crumbs__slash {
    display: none;
  }

  .meta-pill {
    display: none;
  }

  .ghost-btn {
    padding: 6px;
    border-radius: 50%;
  }

  .ghost-btn span {
    display: none;
  }

  .ghost-btn .icon {
    width: 15px;
    height: 15px;
  }

  .stage {
    gap: 23px;
    padding: 6px 0 26px;
  }

  .cover-col {
    max-width: min(320px, 68vw, 42vh);
  }

  .cover-caption {
    margin-top: 12px;
    font-size: 8.5px;
  }

  .track-title {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .track-artist {
    margin-top: 10px;
    font-size: 11.5px;
  }

  .track-desc {
    margin-top: 13px;
    font-size: 12px;
    line-height: 1.8;
  }

  .tags {
    gap: 6px;
    margin-top: 14px;
  }

  .tag {
    padding: 3px 7px;
    font-size: 8px;
  }

  .viz {
    height: 38px;
    margin-top: 16px;
  }

  .controls {
    gap: 3px;
    margin-top: 15px;
  }

  .ctl {
    width: 38px;
    height: 38px;
  }

  .ctl--skip {
    width: 40px;
    height: 40px;
  }

  .play-btn {
    width: 62px;
    height: 62px;
    margin: 0 5px;
  }

  .play-btn .icon {
    width: 24px;
    height: 24px;
  }

  .under-controls {
    flex-direction: column;
    gap: 8px;
    margin-top: 13px;
  }

  .hint {
    display: none;
  }

  .progress {
    margin-top: 4px;
  }

  .upnext {
    padding-top: 20px;
  }

  .upnext__head {
    align-items: center;
    margin-bottom: 12px;
  }

  .upnext__hint {
    display: none;
  }

  .queue {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .queue-card {
    padding: 9px 11px;
  }

  .foot {
    gap: 7px;
    margin-top: 20px;
    padding-top: 13px;
    font-size: 8.5px;
  }

  .sheet {
    padding: 19px 20px 18px;
    border-radius: 18px;
  }

  .toast {
    bottom: 18px;
  }

  .drop-overlay__box {
    padding: 38px 22px;
  }
}

@media (max-width: 400px) {
  .cover-col {
    max-width: min(292px, 74vw);
  }

  .track-title {
    font-size: 1.95rem;
  }

  .row-dur {
    display: none;
  }

  .track-row {
    grid-template-columns: 24px 43px minmax(0, 1fr);
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .stage {
    padding-top: 4px;
    padding-bottom: 28px;
  }

  .cover-col {
    max-width: min(350px, 43vh);
  }

  .track-title {
    font-size: clamp(2.5rem, 4.6vw, 3.6rem);
  }

  .track-desc {
    margin-top: 13px;
  }

  .viz {
    height: 40px;
    margin-top: 16px;
  }

  .controls {
    margin-top: 15px;
  }

  .upnext {
    padding-top: 18px;
  }

  .foot {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
