:root {
  color-scheme: dark;
  --bg: #0b0b12;
  --panel: rgba(22, 22, 33, 0.72);
  --panel-solid: #15151f;
  --panel-soft: #1b1b27;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f8f7fb;
  --muted: #9b99aa;
  --faint: #656372;
  --accent: #ff5c4d;
  --accent-warm: #ff914d;
  --violet: #925cff;
  --green: #62d99f;
  --sidebar-width: 244px;
  --player-height: 94px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 76% -10%, rgba(132, 61, 255, 0.13), transparent 32rem),
    radial-gradient(circle at 20% 5%, rgba(255, 90, 67, 0.08), transparent 28rem), var(--bg);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button,
select,
label {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid #ffb36b;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 10px;
  background: #fff;
  color: #111;
}

.skip-link:focus {
  transform: none;
}

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

.is-hidden {
  display: none !important;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  pointer-events: none;
}

.ambient-one {
  top: -220px;
  right: -80px;
  background: #7646ff;
}

.ambient-two {
  bottom: -280px;
  left: 20%;
  background: #ff4d3d;
}

.app-shell {
  min-height: calc(100vh - var(--player-height));
}

.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto var(--player-height) 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 28px 18px 22px;
  border-right: 1px solid var(--line);
  background: rgba(11, 11, 18, 0.76);
  backdrop-filter: blur(26px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 10px 36px;
  color: var(--text);
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(255, 75, 78, 0.24);
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: 160ms ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.nav-item.is-active {
  background: linear-gradient(90deg, rgba(255, 92, 77, 0.15), rgba(255, 92, 77, 0.04));
  color: #fff;
}

.nav-item.is-active .nav-icon {
  color: #ff7669;
}

.nav-icon {
  font-size: 19px;
  line-height: 1;
}

.nav-count {
  color: var(--faint);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.playlist-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 10px 10px 12px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.icon-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  transition: 160ms ease;
}

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

.icon-button:disabled {
  cursor: default;
  opacity: 0.35;
}

.playlist-nav {
  max-height: 34vh;
  overflow: auto;
}

.playlist-nav:empty::after {
  margin: 8px 12px;
  color: var(--faint);
  content: "还没有歌单";
  font-size: 12px;
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 12px 0;
  border-top: 1px solid var(--line);
}

.sidebar-footer p {
  margin: 0 0 10px;
  color: var(--faint);
  font-size: 11px;
}

.privacy-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(98, 217, 159, 0.5);
}

.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.text-button:hover {
  color: var(--text);
}

.workspace {
  min-height: calc(100vh - var(--player-height));
  margin-left: var(--sidebar-width);
}

.topbar {
  position: sticky;
  z-index: 15;
  top: 0;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px clamp(24px, 4vw, 58px);
  border-bottom: 1px solid transparent;
  background: rgba(11, 11, 18, 0.68);
  backdrop-filter: blur(24px);
}

.search-box {
  display: flex;
  width: min(440px, 45vw);
  height: 46px;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  transition: 160ms ease;
}

.search-box:focus-within {
  border-color: rgba(255, 130, 99, 0.38);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 4px rgba(255, 92, 77, 0.06);
}

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

.search-box input::placeholder {
  color: #777584;
}

.search-box kbd {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--faint);
  font-size: 10px;
  font-family: inherit;
}

.topbar-actions,
.toolbar-actions,
.empty-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.connection-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--faint);
  font-size: 11px;
}

.connection-pill span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.connection-pill.is-offline span {
  background: #ffb25f;
}

.button {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: 160ms ease;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #ff784e);
  color: #fff;
  box-shadow: 0 10px 26px rgba(255, 79, 62, 0.2);
}

.button-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 13px 30px rgba(255, 79, 62, 0.3);
}

.button-quiet {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: #d2d0da;
}

.button-quiet:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
}

.button-danger {
  border-color: rgba(255, 92, 77, 0.28);
  background: rgba(255, 92, 77, 0.08);
  color: #ff8f80;
}

.button-danger:hover:not(:disabled) {
  border-color: rgba(255, 92, 77, 0.5);
  background: rgba(255, 92, 77, 0.14);
}

main {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 44px clamp(24px, 4vw, 58px) 170px;
}

.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 52px;
}

.eyebrow,
.empty-kicker {
  margin: 0 0 10px;
  color: #ff806f;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 5.3vw, 74px);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero-copy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.hero-stats {
  display: flex;
  gap: clamp(28px, 4vw, 56px);
  padding: 0 0 3px;
}

.hero-stats div {
  display: grid;
  gap: 5px;
}

.hero-stats strong {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.hero-stats span {
  color: var(--faint);
  font-size: 11px;
}

.library-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px);
}

.discover-panel {
  min-height: 560px;
}

.discover-toolbar {
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.discover-toolbar h2 {
  margin: 0 0 7px;
  font-size: 23px;
  letter-spacing: -0.04em;
}

.discover-toolbar > div > p:last-child {
  margin: 0;
  color: var(--faint);
  font-size: 11px;
}

.worker-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 10px;
}

.worker-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(98, 217, 159, 0.5);
}

.worker-status.is-error span {
  background: #ffaf59;
  box-shadow: none;
}

.provider-chips {
  display: flex;
  gap: 8px;
  padding: 16px 28px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.provider-chips::-webkit-scrollbar {
  display: none;
}

.category-chips {
  display: flex;
  gap: 8px;
  padding: 13px 28px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.category-chips::-webkit-scrollbar {
  display: none;
}

.provider-chip {
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}

.provider-chip:hover,
.provider-chip.is-active {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.075);
  color: #fff;
}

.category-chip {
  min-height: 32px;
  flex: 0 0 auto;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--faint);
  font-size: 10px;
  cursor: pointer;
  transition: 150ms ease;
}

.category-chip:hover,
.category-chip.is-active {
  border-color: rgba(255, 119, 92, 0.25);
  background: rgba(255, 107, 79, 0.1);
  color: #fff;
}

.provider-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.provider-netease { background: #e4473d; }
.provider-qq { background: #31c27c; }
.provider-kugou { background: #2d8cff; }
.provider-kuwo { background: #ff9d19; }
.provider-bilibili { background: #fb7299; }
.provider-migu { background: #e94278; }
.provider-taihe { background: #7557ff; }

.recommendations-view {
  padding: 26px 28px 34px;
}

.collection-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.collection-heading h3 {
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: -0.045em;
}

.collection-heading > div > p:last-child {
  margin: 0;
  color: var(--faint);
  font-size: 11px;
}

.playlist-grid,
.recommendation-loading {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 16px;
}

.recommendation-card {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.recommendation-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 17px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 134, 96, 0.36), transparent 34%),
    linear-gradient(145deg, #2a2431, #16161f);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
  transition: 180ms ease;
}

.recommendation-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 220ms ease;
}

.recommendation-card:hover .recommendation-cover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.3);
}

.recommendation-card:hover .recommendation-cover img {
  transform: scale(1.035);
}

.recommendation-play {
  position: absolute;
  right: 11px;
  bottom: 11px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff8655);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.42);
  opacity: 0;
  transform: translateY(5px);
  transition: 160ms ease;
}

.recommendation-card:hover .recommendation-play,
.recommendation-card:focus-visible .recommendation-play {
  opacity: 1;
  transform: none;
}

.recommendation-source,
.recommendation-listens {
  position: absolute;
  top: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 8, 13, 0.68);
  color: rgba(255, 255, 255, 0.86);
  font-size: 8px;
  backdrop-filter: blur(12px);
}

.recommendation-source { left: 10px; }
.recommendation-listens { right: 10px; }

.recommendation-card h4 {
  display: -webkit-box;
  min-height: 38px;
  margin: 11px 2px 5px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.015em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.recommendation-card > span:last-child {
  display: block;
  margin: 0 2px;
  overflow: hidden;
  color: var(--faint);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommendation-loading span {
  display: block;
  aspect-ratio: 1 / 1.24;
  border-radius: 17px;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.035) 25%, rgba(255, 255, 255, 0.08) 42%, rgba(255, 255, 255, 0.035) 60%);
  background-size: 240% 100%;
  animation: recommendation-shimmer 1.4s ease infinite;
}

@keyframes recommendation-shimmer {
  to { background-position: -180% 0; }
}

.recommendation-empty {
  display: grid;
  min-height: 280px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 36px;
  color: var(--muted);
  text-align: center;
}

.recommendation-empty > span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  color: #ff8b75;
  font-size: 24px;
}

.recommendation-empty h3,
.recommendation-empty p {
  margin: 0;
}

.recommendation-empty h3 { color: var(--text); font-size: 17px; }
.recommendation-empty p { color: var(--faint); font-size: 11px; }

.featured-playlist-view {
  padding: 24px 28px 30px;
}

.playlist-back-button {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

.playlist-back-button:hover { color: #fff; }

.featured-playlist-hero {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.featured-playlist-cover {
  position: relative;
  display: grid;
  overflow: hidden;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, #302533, #16161f);
  color: rgba(255, 255, 255, 0.5);
  font-size: 44px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);
}

.featured-playlist-cover img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-playlist-copy h2 {
  margin: 13px 0 10px;
  font-size: clamp(28px, 3.5vw, 48px);
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.featured-playlist-copy > p {
  display: -webkit-box;
  max-width: 720px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.featured-playlist-meta {
  margin-top: 12px;
  color: var(--faint);
  font-size: 10px;
}

.featured-playlist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.featured-playlist-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

#featured-playlist-results {
  margin-top: 18px;
}

.discover-message {
  display: grid;
  min-height: 360px;
  place-items: center;
  align-content: center;
  padding: 48px 24px;
  text-align: center;
}

.search-orbit {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 133, 89, 0.3), transparent 42%),
    linear-gradient(145deg, #27222d, #15151e);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.search-orbit span {
  font-size: 35px;
  transform: rotate(-12deg);
}

.discover-message h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.045em;
}

.discover-message > p {
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 12px;
}

.search-suggestions {
  display: flex;
  gap: 8px;
}

.search-suggestions button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--faint);
  font-size: 10px;
  cursor: pointer;
}

.search-suggestions button:hover {
  border-color: var(--line-strong);
  color: #fff;
}

.discover-loading {
  display: flex;
  min-height: 300px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
}

.discover-loading > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  animation: search-pulse 900ms ease-in-out infinite alternate;
}

.discover-loading > span:nth-child(2) { animation-delay: 160ms; }
.discover-loading > span:nth-child(3) { animation-delay: 320ms; }

.discover-loading p {
  margin-left: 8px;
  font-size: 11px;
}

@keyframes search-pulse {
  to { opacity: 0.25; transform: translateY(-5px); }
}

.provider-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 14px 28px 2px;
}

.provider-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--faint);
  font-size: 9px;
}

.provider-status::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.provider-status.is-error::before {
  background: #ffaf59;
}

.remote-table {
  padding-top: 4px;
}

.source-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
}

.source-badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--source-color, var(--accent));
  content: "";
}

.availability-mark {
  display: inline !important;
  margin-left: 5px;
  color: #ffb465;
  font-size: 9px;
}

.section-toolbar {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
}

.section-toolbar h2 {
  margin: 0 0 5px;
  font-size: 17px;
  letter-spacing: -0.025em;
}

.section-toolbar p {
  margin: 0;
  color: var(--faint);
  font-size: 12px;
}

.sort-select select {
  min-height: 42px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
}

.track-table {
  padding: 0 16px 18px;
}

.track-head,
.track-row {
  display: grid;
  grid-template-columns: 38px minmax(220px, 1.65fr) minmax(120px, 0.8fr) 100px 56px 140px;
  align-items: center;
  gap: 14px;
}

.track-head {
  height: 48px;
  padding: 0 12px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.track-row {
  min-height: 68px;
  padding: 7px 12px;
  border-radius: 14px;
  color: var(--muted);
  transition: 150ms ease;
}

.track-row:hover,
.track-row.is-current {
  background: rgba(255, 255, 255, 0.045);
}

.track-row.is-current {
  box-shadow: inset 3px 0 0 var(--accent);
}

.track-index {
  color: var(--faint);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.track-row:hover .track-index-number,
.track-row.is-current .track-index-number {
  display: none;
}

.row-play {
  display: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.track-row:hover .row-play,
.track-row.is-current .row-play {
  display: inline-grid;
  place-items: center;
}

.track-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
}

.track-cover,
.mini-cover,
.queue-cover {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, hsl(var(--cover-h) 76% 56%), hsl(calc(var(--cover-h) + 44) 76% 26%));
  color: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.track-cover img,
.mini-cover img,
.queue-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-cover img[data-failed="true"],
.mini-cover img[data-failed="true"],
.queue-cover img[data-failed="true"],
.recommendation-cover img[data-failed="true"],
.featured-playlist-cover img[data-failed="true"] {
  display: none;
}

.track-cover {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 17px;
}

.cover-hue-0 { --cover-h: 8; }
.cover-hue-1 { --cover-h: 26; }
.cover-hue-2 { --cover-h: 164; }
.cover-hue-3 { --cover-h: 202; }
.cover-hue-4 { --cover-h: 246; }
.cover-hue-5 { --cover-h: 278; }
.cover-hue-6 { --cover-h: 320; }
.cover-hue-7 { --cover-h: 346; }

.track-copy,
.queue-copy {
  min-width: 0;
}

.track-copy strong,
.queue-copy strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-copy span,
.queue-copy span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--faint);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-cell {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
  transition: 150ms ease;
}

.track-row:hover .track-actions,
.track-actions:focus-within {
  opacity: 1;
}

.track-actions .icon-button {
  width: 30px;
  height: 30px;
  font-size: 16px;
}

.track-actions a.icon-button {
  text-decoration: none;
}

.favorite-button.is-favorite,
.favorite-player.is-favorite {
  color: #ff756a;
}

.empty-state {
  display: grid;
  min-height: 470px;
  place-items: center;
  align-content: center;
  padding: 46px 24px 60px;
  text-align: center;
}

.empty-state.is-hidden + * {
  display: none;
}

.empty-art {
  position: relative;
  width: 132px;
  height: 132px;
  margin-bottom: 28px;
}

.empty-disc {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background:
    radial-gradient(circle, #191922 0 9%, rgba(255, 103, 82, 0.9) 10% 14%, #171720 15% 26%, transparent 27%),
    repeating-radial-gradient(circle, #20202b 0 2px, #14141d 3px 6px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
  transform: rotate(-12deg);
}

.empty-note {
  position: absolute;
  right: -8px;
  bottom: -4px;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  box-shadow: 0 14px 35px rgba(161, 60, 148, 0.35);
  font-size: 25px;
}

.empty-state h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.045em;
}

.empty-state > p:not(.empty-kicker) {
  max-width: 470px;
  margin: 13px 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.drop-hint {
  margin-top: 26px;
  color: var(--faint);
  font-size: 11px;
}

.drop-hint span {
  margin-right: 5px;
  color: var(--muted);
}

.player {
  position: fixed;
  z-index: 50;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(360px, 1.3fr) minmax(240px, 1fr);
  min-height: var(--player-height);
  align-items: center;
  gap: 20px;
  padding: 12px 24px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-strong);
  background: rgba(16, 16, 24, 0.92);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(30px);
}

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

.mini-cover {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  font-size: 21px;
}

.now-playing-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.now-playing-copy strong,
.now-playing-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.now-playing-copy strong {
  font-size: 13px;
}

.now-playing-copy span {
  color: var(--faint);
  font-size: 11px;
}

.favorite-player {
  margin-left: 4px;
}

.transport {
  display: grid;
  gap: 8px;
}

.transport-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.player-button {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.player-button:hover,
.player-button.is-active {
  color: #fff;
}

.player-button.is-active {
  background: rgba(255, 92, 77, 0.12);
  color: #ff7567;
}

.play-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0 0 0 2px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111018;
  font-size: 13px;
  cursor: pointer;
  transition: 140ms ease;
}

.play-button:hover:not(:disabled) {
  transform: scale(1.05);
}

.play-button:disabled {
  cursor: default;
  opacity: 0.3;
}

.timeline {
  display: grid;
  grid-template-columns: 35px 1fr 35px;
  align-items: center;
  gap: 9px;
  color: var(--faint);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  height: 3px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.player-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

#volume-input {
  width: 82px;
}

.queue-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

.queue-button:hover {
  color: #fff;
}

.queue-button span:last-child {
  margin-left: 4px;
  color: var(--faint);
}

.queue-drawer {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  bottom: var(--player-height);
  display: flex;
  width: min(400px, 92vw);
  flex-direction: column;
  padding: 26px 20px 20px;
  border-left: 1px solid var(--line-strong);
  background: rgba(18, 18, 27, 0.97);
  box-shadow: -30px 0 70px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(28px);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.queue-drawer.is-open {
  transform: none;
}

.drawer-head,
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.drawer-head h2,
.modal-head h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.045em;
}

.queue-list {
  display: grid;
  gap: 5px;
  margin-top: 26px;
  overflow: auto;
}

.queue-list:empty::after {
  padding: 50px 20px;
  color: var(--faint);
  content: "队列还是空的";
  font-size: 12px;
  text-align: center;
}

.queue-row {
  display: grid;
  grid-template-columns: 42px 1fr 30px;
  align-items: center;
  gap: 11px;
  padding: 7px;
  border-radius: 12px;
  cursor: pointer;
}

.queue-row:hover,
.queue-row.is-current {
  background: rgba(255, 255, 255, 0.055);
}

.queue-cover {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.queue-remove {
  opacity: 0;
}

.queue-row:hover .queue-remove,
.queue-remove:focus {
  opacity: 1;
}

.drawer-clear {
  margin: auto auto 0;
  padding-top: 20px;
}

.drawer-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0 0 var(--player-height);
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.drawer-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: min(600px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 40px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: #181821;
  color: var(--text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

.modal::backdrop {
  background: rgba(4, 4, 8, 0.72);
  backdrop-filter: blur(8px);
}

.modal-card {
  padding: 28px;
}

.compact-card {
  width: 100%;
  max-width: 440px;
}

.compact-modal {
  width: min(440px, calc(100vw - 28px));
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 28px 0 20px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #101017;
}

.segmented button {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--faint);
  font-size: 12px;
  cursor: pointer;
}

.segmented button.is-active {
  background: var(--panel-soft);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.import-pane {
  display: none;
}

.import-pane.is-active {
  display: block;
}

.file-drop {
  display: grid;
  min-height: 240px;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: 160ms ease;
}

.file-drop:hover,
.file-drop.is-over {
  border-color: rgba(255, 104, 82, 0.55);
  background: rgba(255, 92, 77, 0.05);
}

.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.file-drop-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: #ff806f;
  font-size: 24px;
}

.file-drop strong {
  font-size: 14px;
}

.file-drop > span:last-child,
.privacy-note {
  color: var(--faint);
  font-size: 11px;
}

.privacy-note {
  margin: 14px 2px 0;
  line-height: 1.65;
}

.privacy-note span {
  margin-right: 6px;
  color: var(--green);
  font-size: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid label,
.stacked-label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.form-grid label:first-child {
  grid-column: 1 / -1;
}

.form-grid input,
.stacked-label input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: #101017;
  color: #fff;
  font-size: 13px;
}

.form-grid input:focus,
.stacked-label input:focus {
  border-color: rgba(255, 112, 87, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 92, 77, 0.06);
}

.stacked-label {
  margin: 28px 0 20px;
}

.full-button {
  width: 100%;
  margin-top: 20px;
}

.choose-playlist-list {
  display: grid;
  gap: 6px;
  max-height: 300px;
  margin-top: 24px;
  overflow: auto;
}

.choose-playlist-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 5px 9px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.choose-playlist-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.choose-playlist-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(255, 92, 77, 0.22), rgba(146, 92, 255, 0.22));
  color: #ff8b7e;
}

.choose-playlist-item span:last-child {
  color: var(--faint);
  font-size: 11px;
}

.drop-overlay {
  position: fixed;
  z-index: 200;
  inset: 18px;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(255, 133, 101, 0.6);
  border-radius: 28px;
  background: rgba(11, 11, 18, 0.92);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(28px);
  transition: 150ms ease;
}

.drop-overlay.is-visible {
  opacity: 1;
}

.drop-overlay div {
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
}

.drop-overlay span {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  font-size: 36px;
}

.drop-overlay strong {
  margin-top: 8px;
  font-size: 24px;
}

.drop-overlay p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.toast-region {
  position: fixed;
  z-index: 300;
  top: 22px;
  left: 50%;
  display: grid;
  gap: 8px;
  transform: translateX(-50%);
}

.toast {
  min-width: 220px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(30, 30, 42, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  color: #eeedf2;
  font-size: 12px;
  text-align: center;
  animation: toast-in 180ms ease both;
}

.toast.is-error {
  border-color: rgba(255, 91, 78, 0.38);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
}

.mobile-nav {
  display: none;
}

@media (max-width: 1050px) {
  :root {
    --sidebar-width: 206px;
  }

  .hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .track-head,
  .track-row {
    grid-template-columns: 32px minmax(210px, 1.5fr) minmax(100px, 0.8fr) 54px 128px;
  }

  .track-head span:nth-child(4),
  .track-row .track-added {
    display: none;
  }

  .remote-table .source-badge {
    display: none;
  }

  .playlist-grid,
  .recommendation-loading {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .player {
    grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.3fr) minmax(170px, 0.7fr);
  }

  #volume-input,
  #mute-button {
    display: none;
  }
}

@media (max-width: 780px) {
  :root {
    --player-height: 76px;
  }

  .sidebar {
    display: none;
  }

  .workspace {
    margin-left: 0;
  }

  .topbar {
    min-height: 68px;
    padding: 11px 16px;
  }

  .search-box {
    width: 100%;
    height: 44px;
  }

  .search-box kbd,
  .connection-pill,
  .topbar-actions .button-quiet {
    display: none;
  }

  .topbar-actions .button-primary {
    width: 44px;
    padding: 0;
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }

  .topbar-actions .button-primary span {
    color: #fff;
    font-size: 20px;
  }

  main {
    padding: 30px 16px 180px;
  }

  .hero {
    gap: 26px;
    margin-bottom: 34px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-stats {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
  }

  .hero-stats strong {
    font-size: 18px;
  }

  .library-panel {
    border-radius: 22px;
  }

  .section-toolbar {
    min-height: 78px;
    padding: 16px 18px;
  }

  .discover-toolbar {
    min-height: 106px;
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 18px;
  }

  .provider-chips {
    padding: 13px 18px;
  }

  .category-chips {
    padding: 11px 18px;
  }

  .recommendations-view,
  .featured-playlist-view {
    padding: 20px 18px 26px;
  }

  .playlist-grid,
  .recommendation-loading {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

  .collection-heading {
    align-items: flex-start;
  }

  .collection-heading h3 {
    font-size: 21px;
  }

  .featured-playlist-hero {
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: start;
    gap: 17px;
  }

  .featured-playlist-cover {
    border-radius: 16px;
  }

  .featured-playlist-copy h2 {
    margin-top: 9px;
    font-size: 26px;
  }

  .featured-playlist-copy > p {
    -webkit-line-clamp: 2;
  }

  .featured-playlist-actions {
    grid-column: 1 / -1;
  }

  .featured-playlist-actions .button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 10px;
  }

  .provider-statuses {
    padding-right: 18px;
    padding-left: 18px;
  }

  .toolbar-actions .sort-select {
    display: none;
  }

  .toolbar-actions .button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 11px;
  }

  .track-table {
    padding: 5px 8px 12px;
  }

  .track-head {
    display: none;
  }

  .track-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 70px;
    padding: 8px;
  }

  .track-index,
  .track-cell {
    display: none;
  }

  .track-actions {
    opacity: 1;
  }

  .track-actions .delete-track,
  .track-actions .queue-track {
    display: none;
  }

  .empty-state {
    min-height: 460px;
    padding: 38px 18px;
  }

  .empty-state h2 {
    font-size: 26px;
  }

  .empty-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .player {
    bottom: calc(66px + env(safe-area-inset-bottom));
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: var(--player-height);
    padding: 9px 14px;
  }

  .mini-cover {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }

  .favorite-player,
  .timeline,
  .player-actions,
  .transport-buttons .player-button,
  .transport-buttons .repeat-button {
    display: none;
  }

  .transport {
    display: block;
  }

  .transport-buttons {
    gap: 0;
  }

  .transport-buttons .play-button {
    display: grid;
  }

  .mobile-nav {
    position: fixed;
    z-index: 60;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: calc(66px + env(safe-area-inset-bottom));
    padding: 7px 5px max(7px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line-strong);
    background: rgba(14, 14, 21, 0.98);
    backdrop-filter: blur(26px);
  }

  .mobile-nav button {
    display: grid;
    place-items: center;
    gap: 2px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--faint);
    font-size: 9px;
  }

  .mobile-nav button > span {
    color: var(--muted);
    font-size: 17px;
  }

  .mobile-nav button.is-active,
  .mobile-nav button.is-active > span {
    color: #ff7769;
  }

  .mobile-add {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #ff8654);
    color: #fff !important;
  }

  .queue-drawer {
    bottom: calc(142px + env(safe-area-inset-bottom));
  }

  .drawer-backdrop {
    bottom: calc(142px + env(safe-area-inset-bottom));
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid label:first-child {
    grid-column: auto;
  }

  .modal-card {
    padding: 23px 20px;
  }
}

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