:root {
  color-scheme: light;
  --page: #f4f7fc;
  --page-glow-a: #dce9ff94;
  --page-glow-b: #e7e1ff66;
  --panel: #ffffff;
  --panel-glass: #ffffffde;
  --panel-muted: #f6f9fe;
  --panel-subtle: #eef3fb;
  --text: #111e30;
  --muted: #52657c;
  --line: #dde5f1;
  --line-strong: #c5d4e8;
  --accent: #1d4ed8;
  --accent-hover: #173fae;
  --on-accent: #ffffff;
  --soft: #e8f0fe;
  --soft-strong: #d7e6fd;
  --focus: #2563eb;
  --hover: #eef4fe;
  --heart: #e11d48;
  --heart-soft: #ffe4eb;
  --success: #0d746b;
  --success-soft: #dff7f2;
  --amber: #945309;
  --amber-soft: #fef3c7;
  --warning: #b42318;
  --warning-soft: #fee4e2;
  --cover-fallback: #dfeafa;
  --card-shadow: 0 8px 28px -6px #10254412, 0 2px 6px -1px #10254408;
  --floating: 0 18px 48px -8px #10244224;
  --gutter: clamp(1rem, 4.2vw, 4.2rem);
  --player-height: 96px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0c131d;
  --page-glow-a: #18315475;
  --page-glow-b: #241f4752;
  --panel: #141f2e;
  --panel-glass: #141f2ee6;
  --panel-muted: #192739;
  --panel-subtle: #1f3046;
  --text: #eef4ff;
  --muted: #9eb2cc;
  --line: #27394f;
  --line-strong: #374f6b;
  --accent: #8ab8ff;
  --accent-hover: #b2d1ff;
  --on-accent: #0d1f38;
  --soft: #1f3654;
  --soft-strong: #274469;
  --focus: #93c5fd;
  --hover: #1d2f45;
  --heart: #fb7185;
  --heart-soft: #3c1b29;
  --success: #5eead4;
  --success-soft: #123534;
  --amber: #fcd34d;
  --amber-soft: #3a2a10;
  --warning: #fda29b;
  --warning-soft: #3b1818;
  --cover-fallback: #223752;
  --card-shadow: 0 12px 32px -8px #02081266;
  --floating: 0 20px 54px -8px #02081299;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-padding-top: 84px;
  scroll-padding-bottom: calc(var(--player-height) + 24px + env(safe-area-inset-bottom));
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--page);
  background-image:
    radial-gradient(1050px 440px at 14% -4%, var(--page-glow-a), transparent 70%),
    radial-gradient(880px 380px at 88% -2%, var(--page-glow-b), transparent 68%);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 1rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

body:has(#player-bar:not([hidden])) {
  padding-bottom: calc(var(--player-height) + env(safe-area-inset-bottom));
}

p, h1, h2, h3, ol { margin: 0; }
ol { list-style: none; padding: 0; }
a { color: var(--accent); text-underline-offset: .22em; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
summary { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; }

.visually-hidden, .icon-library {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 10;
  inset: .7rem auto auto var(--gutter);
  padding: .6rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--text);
  font-weight: 650;
  box-shadow: var(--floating);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.page-width {
  width: min(1280px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.icon {
  width: 19px;
  height: 19px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 通用按钮体系 */
.control, .icon-button, .text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 42px;
  background: transparent;
  color: var(--text);
  line-height: 1.25;
  font-size: .875rem;
  font-weight: 640;
}
.control {
  padding: .56rem .95rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 1px 2px #0f1f3808;
  text-decoration: none;
}
.icon-button {
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
}
.text-button {
  min-height: 36px;
  padding: .25rem .4rem;
  border: 0;
  border-radius: 7px;
  color: var(--accent);
  text-align: left;
  text-underline-offset: .22em;
}
.control:hover:not(:disabled), .icon-button:hover:not(:disabled) {
  background: var(--hover);
  border-color: var(--line-strong);
  color: var(--accent);
}
.icon-button:hover:not(:disabled) { border-color: transparent; }
.text-button:hover:not(:disabled) { background: var(--hover); text-decoration: none; }
.control:active:not(:disabled), .icon-button:active:not(:disabled) { transform: translateY(1px); }

.primary, .primary:hover:not(:disabled) {
  background: var(--accent);
  border-color: transparent;
  color: var(--on-accent);
  box-shadow: 0 4px 14px -3px #1d4ed855;
}
.primary:hover:not(:disabled) { background: var(--accent-hover); }
.full-action { width: 100%; justify-content: center; min-height: 46px; font-size: .92rem; }

.muted, .rights { color: var(--muted); }
.rights { font-size: .8125rem; line-height: 1.5; overflow-wrap: anywhere; }

/* 顶部导航栏 */
.masthead {
  position: sticky;
  z-index: 5;
  top: 0;
  background: var(--panel-glass);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.bar, .home, .header-actions, .page-heading {
  display: flex;
  align-items: center;
}
.bar { justify-content: space-between; min-height: 68px; gap: .75rem; }
.home {
  gap: .68rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.home img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 2px 8px #0f234218;
}
.brand-copy { display: flex; align-items: baseline; gap: .5rem; }
.brand-name { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.brand-tag {
  padding: .14rem .48rem;
  border-radius: 999px;
  background: var(--panel-subtle);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 620;
}
.header-actions { gap: .5rem; }
.header-download {
  background: var(--soft);
  border-color: transparent;
  color: var(--accent);
  box-shadow: none;
  white-space: nowrap;
}
.header-download:hover:not(:disabled) { background: var(--soft-strong); border-color: transparent; }
.header-download .icon { width: 17px; height: 17px; }
.account-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: .38rem;
  padding: .45rem .78rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font-size: .875rem;
  font-weight: 640;
  text-decoration: none;
  white-space: nowrap;
}
.account-link .account-icon { width: 17px; height: 17px; color: var(--muted); }
.account-link:hover { background: var(--hover); border-color: var(--line-strong); color: var(--accent); }
.account-link:hover .account-icon { color: var(--accent); }
.theme-button { border-color: var(--line); background: var(--panel); }

/* 页头与搜索框 */
main { flex: 1; min-width: 0; padding: clamp(1.35rem, 2.8vw, 2.5rem) 0 3.2rem; }
.page-heading {
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.1rem 2rem;
  margin-bottom: 1.45rem;
}
.heading-copy { display: grid; gap: .3rem; min-width: 0; }
.page-heading h1 {
  font-size: clamp(1.85rem, 3.3vw, 2.65rem);
  line-height: 1.14;
  font-weight: 820;
  letter-spacing: -.04em;
}
.page-subtitle {
  color: var(--muted);
  font-size: .9rem;
}
.search {
  width: min(100%, 390px);
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: 0 .35rem 0 .9rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 8px -2px #1025440a;
  color: var(--muted);
}
.search:hover { border-color: var(--line-strong); }
.search:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--soft);
}
.search .search-icon { width: 18px; height: 18px; }
.search input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: .92rem;
  outline: 0;
}
.search input::placeholder { color: var(--muted); opacity: .85; }
.search input::-webkit-search-cancel-button { appearance: none; }
.search-kbd {
  flex: none;
  padding: .18rem .46rem;
  margin-right: .3rem;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--panel-muted);
  color: var(--muted);
  font: 600 .73rem/1.2 var(--font);
  pointer-events: none;
}
.search:focus-within .search-kbd { display: none; }
.search .icon-button { min-height: 36px; min-width: 36px; border-radius: 8px; }

/* 动态音频均衡器指示 */
.eq, .mini-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  width: 12px;
  height: 12px;
}
.eq i, .mini-eq i {
  flex: 1;
  display: block;
  height: 38%;
  border-radius: 2px;
  background: currentColor;
}
.eq i:nth-child(2), .mini-eq i:nth-child(2) { height: 78%; }
.eq i:nth-child(3), .mini-eq i:nth-child(3) { height: 55%; }

@keyframes eq-pulse {
  0%, 100% { transform: scaleY(.38); }
  50% { transform: scaleY(1); }
}
@media (prefers-reduced-motion: no-preference) {
  [data-playing="true"] .eq i,
  .mini-eq[data-playing="true"] i,
  .row-eq[data-playing="true"] i {
    height: 100%;
    transform-origin: bottom;
    animation: eq-pulse .85s ease-in-out infinite;
  }
  [data-playing="true"] .eq i:nth-child(2),
  .mini-eq[data-playing="true"] i:nth-child(2),
  .row-eq[data-playing="true"] i:nth-child(2) { animation-delay: -.28s; animation-duration: .72s; }
  [data-playing="true"] .eq i:nth-child(3),
  .mini-eq[data-playing="true"] i:nth-child(3),
  .row-eq[data-playing="true"] i:nth-child(3) { animation-delay: -.52s; animation-duration: .94s; }
}

/* 主视觉推荐区与随心探索 */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(265px, 1fr);
  gap: 1.15rem;
}
.showcase:has(#recent[hidden]) { grid-template-columns: minmax(0, 1fr); }

.feature {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 288px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(150px, .8fr);
  align-items: center;
  gap: clamp(1.1rem, 3vw, 3rem);
  padding: clamp(1.45rem, 3.1vw, 2.75rem);
  overflow: hidden;
  border-radius: 20px;
  background: #10233b;
  color: #ffffff;
  box-shadow: 0 18px 42px -12px #09182d47;
}
.hero-background, .feature::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.hero-background {
  inset: -22%;
  width: 144%;
  height: 144%;
  object-fit: cover;
  opacity: .72;
  filter: blur(36px) saturate(1.12);
}
.feature::after {
  content: "";
  inset: 0;
  background:
    radial-gradient(circle at 86% 24%, #3b82f62b, transparent 52%),
    linear-gradient(104deg, #0b192ce8 0%, #102540db 46%, #16325288 100%);
}
.feature-copy { min-width: 0; }
.feature-label {
  display: inline-flex;
  align-items: center;
  gap: .44rem;
  padding: .26rem .68rem;
  margin-bottom: .75rem;
  border-radius: 999px;
  background: #ffffff1c;
  border: 1px solid #ffffff26;
  color: #e6f0ff;
  font-size: .78rem;
  font-weight: 660;
  letter-spacing: .02em;
}
.feature-label[data-playing="true"] {
  background: #60a5fa33;
  border-color: #93c5fd66;
  color: #ffffff;
}
.feature h2 {
  margin-bottom: .55rem;
  font-size: clamp(1.75rem, 3.2vw, 2.95rem);
  line-height: 1.15;
  font-weight: 820;
  letter-spacing: -.038em;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.feature-edition {
  display: block;
  margin-top: .22em;
  font-size: .52em;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: #cfe1fb;
}
.feature-meta {
  color: #d7e6fb;
  font-size: .92rem;
  overflow-wrap: anywhere;
}
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .72rem;
}
.feature-tags:empty { display: none; }
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  padding: .18rem .56rem;
  border-radius: 6px;
  background: #0b1c3185;
  border: 1px solid #ffffff24;
  color: #dceaff;
  font-size: .75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hero-chip .icon { width: 13px; height: 13px; }
.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.35rem;
}
.feature .control {
  border-color: transparent;
  border-radius: 10px;
  box-shadow: none;
  white-space: nowrap;
}
.feature .control:focus-visible { outline-color: #ffffff; }
.feature .control .icon { width: 17px; height: 17px; }
.feature .hero-play, .feature .hero-play:hover:not(:disabled) {
  padding-inline: 1.15rem;
  color: #0e2239;
  background: #ffffff;
  font-weight: 720;
}
.feature .hero-play:hover:not(:disabled) { background: #e5f0ff; }
.feature .hero-detail, .feature .hero-download {
  color: #ffffff;
  border-color: #ffffff3d;
  background: #0b1f3878;
}
.feature .hero-detail:hover:not(:disabled),
.feature .hero-download:hover:not(:disabled) {
  color: #ffffff;
  border-color: #ffffff6e;
  background: #163354bd;
}

.cover-slot {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background: var(--cover-fallback);
  color: var(--accent);
}
.cover-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-art {
  width: min(100%, 244px);
  justify-self: end;
  aspect-ratio: 1;
  border-radius: 14px;
  background: #233f5e;
  color: #deecff;
  box-shadow: 0 20px 48px #07112266, 0 0 0 1px #ffffff2b;
}
.hero-art .icon { width: 28%; height: 28%; }
.hero-art img { object-fit: cover; background: #152e48; }

/* 随心探索侧栏 */
.recent {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--card-shadow);
  padding: 1.1rem clamp(.85rem, 1.8vw, 1.3rem) .75rem;
}
.recent-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .5rem;
}
.recent h2 { font-size: 1.06rem; font-weight: 760; letter-spacing: -.015em; }
.recent-sub { color: var(--muted); font-size: .76rem; margin-top: .08rem; }
.recent-shuffle {
  min-height: 32px;
  padding: .2rem .52rem;
  border-radius: 8px;
  font-size: .78rem;
  white-space: nowrap;
}
.recent-shuffle .icon { width: 14px; height: 14px; }
.recent ol { flex: 1; display: grid; grid-auto-rows: 1fr; }
.recent li + li { border-top: 1px solid var(--line); }
.recent li { min-width: 0; }
.recent-track {
  display: flex;
  align-items: center;
  gap: .72rem;
  width: calc(100% + .76rem);
  height: 100%;
  min-height: 62px;
  padding: .44rem .38rem;
  margin-inline: -.38rem;
  border-radius: 10px;
  text-align: left;
  border: 0;
  background: transparent;
}
.recent-track:hover { background: var(--hover); color: var(--accent); }
.recent-track[aria-current="true"] { background: var(--soft); color: var(--accent); }
.recent-track .recent-cover { width: 48px; aspect-ratio: 1; border-radius: 9px; flex: none; }
.recent-track .recent-go { margin-left: auto; width: 16px; height: 16px; color: var(--muted); }
.recent-track:hover .recent-go { color: var(--accent); transform: translateX(2px); }
.recent-track .track-text { min-width: 0; }

/* 曲库主体与筛选条 */
.library { margin-top: clamp(1.65rem, 3vw, 2.4rem); }
.library-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .45rem 1rem;
  margin-bottom: .85rem;
}
.library-title-group {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .45rem .75rem;
}
.library-head h2 {
  font-size: clamp(1.32rem, 2.1vw, 1.68rem);
  font-weight: 780;
  letter-spacing: -.03em;
}
.count {
  padding: .12rem .52rem;
  border-radius: 999px;
  background: var(--panel-subtle);
  color: var(--muted);
  font-size: .79rem;
  font-weight: 640;
  font-variant-numeric: tabular-nums;
}
.count:empty { display: none; }
.inline-reset { min-height: 30px; font-size: .82rem; padding: .15rem .45rem; }
.library-notice { color: var(--muted); font-size: .8rem; }

.library-filters {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .85rem;
}
.categories {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: .45rem;
  padding: 3px 2px 6px;
  overflow: auto hidden;
  scrollbar-width: thin;
}
.category {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  min-height: 38px;
  padding: .36rem .82rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: .85rem;
  font-weight: 640;
  white-space: nowrap;
}
.category:hover { background: var(--hover); border-color: var(--line-strong); color: var(--accent); }
.category[aria-pressed="true"] {
  color: var(--on-accent);
  background: var(--accent);
  border-color: transparent;
  box-shadow: 0 3px 10px -2px #1d4ed84d;
}
.pill-count {
  font-size: .73rem;
  font-weight: 620;
  opacity: .78;
  font-variant-numeric: tabular-nums;
}
.category[aria-pressed="true"] .pill-count { opacity: .92; }

.favorites-filter { margin-bottom: 3px; }
.favorites-filter .icon { width: 16px; height: 16px; }
.favorites-filter:hover { color: var(--heart); border-color: var(--heart); background: var(--heart-soft); }
.favorites-filter[aria-pressed="true"],
.favorites-filter[aria-pressed="true"]:hover {
  background: var(--heart);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 3px 10px -2px #e11d484d;
}
.favorites-filter[aria-pressed="true"] .icon { fill: currentColor; }
.category-state { margin-bottom: .65rem; color: var(--muted); font-size: .86rem; }

/* 曲目表格 */
.track-table {
  --track-actions-width: 15.8rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.table-head, .track-row {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr) 3.4rem var(--track-actions-width);
  align-items: center;
  gap: clamp(.4rem, 1.2vw, 1.1rem);
  padding-inline: clamp(.65rem, 1.6vw, 1.3rem);
}
.table-head {
  min-height: 42px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-muted);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 660;
  letter-spacing: .01em;
}
.head-actions-label { text-align: right; padding-right: .25rem; }

.track-row {
  position: relative;
  min-height: 68px;
  padding-block: 6px;
}
.track-row + .track-row { border-top: 1px solid var(--line); }
.track-row:focus-within, .track-row:hover { background: var(--panel-muted); }
.track-row[data-current] { background: var(--soft); }

/* 空状态与加载卡片 */
.catalog-state {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: .38rem;
  padding: 2.8rem 1.4rem;
  color: var(--muted);
}
.state-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: .25rem;
  border-radius: 14px;
  background: var(--panel-subtle);
  color: var(--accent);
}
.state-icon .icon { width: 24px; height: 24px; }
.state-title { color: var(--text); font-size: 1rem; font-weight: 700; }
.state-hint { max-width: 38ch; font-size: .85rem; color: var(--muted); }
.state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
  margin-top: .65rem;
}
.state-actions:not(:has(:not([hidden]))) { display: none; }

.more-rows {
  display: flex;
  justify-content: center;
  padding: .95rem;
  border-top: 1px solid var(--line);
  background: var(--panel-muted);
}

/* 曲目行内容 */
.track {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  gap: .72rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
}
.track:hover, .track[aria-current="true"] { color: var(--accent); }
.track-num {
  width: 1.65rem;
  flex: none;
  text-align: center;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.row-eq {
  display: none;
  width: 13px;
  height: 13px;
  margin-inline: auto;
  color: var(--accent);
  align-items: flex-end;
  gap: 2px;
}
.row-eq i {
  flex: 1;
  display: block;
  height: 45%;
  border-radius: 2px;
  background: currentColor;
}
.row-eq i:nth-child(2) { height: 85%; }
.row-eq i:nth-child(3) { height: 60%; }
.track[aria-current="true"] .track-num-digits { display: none; }
.track[aria-current="true"] .row-eq { display: inline-flex; }

.track-cover {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  flex: none;
  box-shadow: 0 2px 6px #0e1e3614;
}
.cover-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #0d1f36ad;
  color: #ffffff;
  opacity: 0;
}
.track:hover .cover-play,
.track:focus-visible .cover-play,
.track[aria-current="true"] .cover-play { opacity: 1; }

.track-text { display: grid; gap: .18rem; min-width: 0; }
.title-line {
  display: flex;
  align-items: center;
  gap: .4rem;
  min-width: 0;
}
.track-text .name, .track-text .byline, .track-style, .player-track-copy > * {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.track-text .name { font-size: .94rem; font-weight: 720; }
.track-badge {
  flex: none;
  padding: .06rem .36rem;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: var(--panel-muted);
  color: var(--muted);
  font-size: .66rem;
  font-weight: 680;
  line-height: 1.35;
}
.track-badge-mv {
  color: var(--accent);
  background: var(--soft);
  border-color: transparent;
}
.track-text .byline, .track-style, .track-time { color: var(--muted); font-size: .8rem; }
.compact-meta { display: none; font-variant-numeric: tabular-nums; }
.track-time { font-variant-numeric: tabular-nums; text-align: right; }

/* 行操作按钮组 */
.track-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .2rem;
}
.reaction-group {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  margin-right: .22rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-muted);
}
.track-actions .icon { width: 17px; height: 17px; }
.reaction-button {
  min-width: 34px;
  min-height: 32px;
  gap: .22rem;
  padding-inline: .45rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  font-size: .72rem;
}
.reaction-button .icon { width: 15px; height: 15px; }
.reaction-button[aria-pressed="true"] {
  background: var(--panel);
  color: var(--accent);
  box-shadow: 0 1px 3px #0d1d3518;
}

.favorite-button:hover:not(:disabled) {
  color: var(--heart);
  background: var(--heart-soft);
  border-color: transparent;
}
.favorite-button[aria-pressed="true"],
.favorite-button[aria-pressed="true"]:hover:not(:disabled) {
  background: var(--heart-soft);
  color: var(--heart);
  border-color: transparent;
}
.favorite-button[aria-pressed="true"] .icon { fill: currentColor; }
.reaction-button[aria-busy="true"], .favorite-button[aria-busy="true"] { opacity: .55; cursor: progress; }

/* GEO 曲库指南与 Q01-Q06 常见问题模块 */
.geo-faq {
  margin-top: clamp(2rem, 3.6vw, 2.8rem);
  padding-top: clamp(1.5rem, 2.6vw, 2rem);
  border-top: 1px solid var(--line);
}
.faq-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem 1.2rem;
  margin-bottom: 1rem;
}
.faq-head h2 {
  font-size: clamp(1.22rem, 1.9vw, 1.48rem);
  font-weight: 770;
  letter-spacing: -.025em;
}
.faq-subtitle {
  margin-top: .18rem;
  color: var(--muted);
  font-size: .84rem;
}
.copy-faq-btn {
  min-height: 38px;
  padding: .4rem .78rem;
  font-size: .82rem;
}
.copy-faq-btn .icon { width: 16px; height: 16px; }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  align-items: start;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  box-shadow: 0 2px 10px -4px #1025440d;
  overflow: hidden;
}
.faq-item:hover { border-color: var(--line-strong); }
.faq-item[open] {
  border-color: var(--line-strong);
  background: var(--panel-muted);
}
.faq-item summary {
  display: flex;
  align-items: center;
  gap: .62rem;
  padding: .78rem .95rem;
  list-style: none;
  font-size: .9rem;
  font-weight: 680;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-num {
  flex: none;
  padding: .14rem .44rem;
  border-radius: 6px;
  background: var(--soft);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.faq-q { flex: 1; min-width: 0; }
.faq-a-wrap {
  padding: 0 .95rem .88rem 3.15rem;
}
.faq-a {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.68;
}

/* 页脚 */
.page-footer {
  display: grid;
  gap: .75rem;
  padding: 1.35rem 0 1.85rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8125rem;
}
.brand-sites, .footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem 1.25rem;
}
.brand-sites a {
  display: inline-flex;
  align-items: center;
  gap: .44rem;
  min-height: 34px;
  padding: .2rem .5rem;
  margin-left: -.5rem;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.brand-sites a + a { margin-left: 0; }
.brand-sites svg, .brand-sites img { width: 20px; height: 20px; flex: none; object-fit: contain; border-radius: 5px; }
.brand-sites a:hover { background: var(--hover); color: var(--accent); }
.footer-legal > a, .privacy-note summary { min-height: 30px; padding-block: .3rem; }
.privacy-note summary:hover { color: var(--text); }
.privacy-note section {
  max-width: 64ch;
  padding: 1rem 1.15rem;
  margin: .35rem 0 .75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--card-shadow);
  line-height: 1.68;
}
.privacy-note section h3 { margin: 0 0 .3rem; font-size: .92rem; color: var(--text); }
.privacy-note section p { margin: 0; }
.privacy-note section p + h3 { margin-top: .85rem; }
.page-footer a { color: inherit; }
.privacy-note section a { color: var(--accent); }

/* 底部常驻播放器 */
.player {
  position: fixed;
  z-index: 6;
  inset: auto 0 0;
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--panel-glass);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 -10px 36px #0d1f3a14;
}
.player-inner {
  min-height: var(--player-height);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 1.55fr) minmax(0, 1.05fr);
  grid-template-areas: "info transport tools" "info progress tools";
  grid-template-rows: 1fr auto;
  column-gap: 1.15rem;
  align-items: center;
  padding-block: 6px 9px;
}
.player-track {
  grid-area: info;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: .72rem;
  padding: .3rem .45rem;
  margin-left: -.45rem;
  border: 0;
  border-radius: 10px;
  text-align: left;
  background: transparent;
}
.player-track:hover { background: var(--hover); color: var(--accent); }
.player-cover {
  width: 50px;
  height: 50px;
  border-radius: 9px;
  flex: none;
  box-shadow: 0 3px 10px #0c1d3622;
}
.mini-eq {
  position: absolute;
  inset: auto 4px 4px auto;
  width: 16px;
  height: 14px;
  padding: 2px 3px;
  border-radius: 4px;
  background: #0d1f38cc;
  color: #ffffff;
}
.player-track-copy { display: grid; min-width: 0; gap: .14rem; }
.player-track-copy strong { font-size: .92rem; font-weight: 740; }
.player-subcopy {
  display: flex;
  align-items: center;
  gap: .4rem;
  min-width: 0;
  color: var(--muted);
  font-size: .77rem;
}
.player-subcopy > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#player-artist { flex: none; max-width: 45%; }
.player-cue {
  color: var(--accent);
  font-weight: 560;
}
.player-cue::before {
  content: "· ";
  color: var(--muted);
}

.transport {
  grid-area: transport;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .38rem;
}
.transport .icon-button { color: var(--text); border-radius: 50%; }
.transport .icon-button[aria-disabled="true"] {
  opacity: .38;
  cursor: default;
  background: transparent;
  color: var(--text);
}
.transport .player-play {
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  color: var(--on-accent);
  background: var(--accent);
  box-shadow: 0 4px 12px -2px #1d4ed866;
}
.transport .player-play:hover:not(:disabled) {
  color: var(--on-accent);
  background: var(--accent-hover);
}
.transport .player-play .icon { width: 22px; height: 22px; }

.player-progress {
  grid-area: progress;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: .7rem;
}
.timeline {
  flex: 1;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  gap: .55rem;
  align-items: center;
  min-width: 0;
}
.timeline time {
  min-width: 2.65em;
  text-align: center;
  color: var(--muted);
  font-size: .73rem;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
}

/* 精致滑杆样式 */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  accent-color: var(--accent);
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: var(--line-strong);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  margin-top: -4px;
  border-radius: 50%;
  border: 2px solid var(--panel);
  background: var(--accent);
  box-shadow: 0 1px 4px #0b1c3645;
}
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: var(--line-strong);
}
input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--panel);
  background: var(--accent);
}
.timeline input { min-width: 0; width: 100%; height: 20px; margin: 0; }

.playback-mode { position: relative; flex: none; color: var(--accent); }
.playback-mode .icon, .playback-mode::after { position: absolute; top: 50%; pointer-events: none; }
.playback-mode .icon { left: .52rem; width: 15px; height: 15px; transform: translateY(-50%); }
.playback-mode::after {
  content: "";
  right: .58rem;
  width: .32rem;
  height: .32rem;
  border: solid currentColor;
  border-width: 0 1.6px 1.6px 0;
  transform: translateY(-70%) rotate(45deg);
}
.playback-mode select {
  appearance: none;
  min-height: 32px;
  width: 6.85rem;
  padding: 0 1.2rem 0 1.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-muted);
  color: var(--text);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 640;
}
.playback-mode select:hover { border-color: var(--accent); background: var(--hover); }

.player-actions {
  grid-area: tools;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .25rem;
}
.player-download-btn {
  gap: .32rem;
  padding-inline: .68rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-size: .8rem;
  font-weight: 660;
}
.player-download-btn:hover:not(:disabled) {
  background: var(--soft-strong);
}
.player-download-btn .icon { width: 16px; height: 16px; }
.volume-control { display: flex; align-items: center; gap: .15rem; margin-left: .15rem; }
.volume-control input { width: clamp(3rem, 5.2vw, 5.5rem); height: 20px; margin: 0; }

.player-error { position: relative; }
#play-status, .notice {
  margin: 0;
  padding: .58rem .92rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel);
  color: var(--warning);
  box-shadow: var(--floating);
  font-size: .86rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
#play-status { position: absolute; inset: auto auto calc(var(--player-height) + .55rem) 0; }
.notice {
  position: fixed;
  z-index: 7;
  inset: auto var(--gutter) calc(var(--player-height) + .7rem + env(safe-area-inset-bottom));
  width: fit-content;
  max-width: calc(100% - 2 * var(--gutter));
}

/* 模态抽屉 / 对话框（歌曲详情与结账） */
.sheet {
  width: min(40rem, calc(100% - 2rem));
  max-width: none;
  max-height: min(85vh, 55rem);
  max-height: min(85dvh, 55rem);
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 28px 90px -10px #06132966;
}
.sheet::backdrop {
  background: #081529ad;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
body:has(.sheet[open]) { overflow: hidden; }

.sheet-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1.3rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.sheet-heading-group { min-width: 0; }
.sheet-eyebrow {
  display: block;
  color: var(--accent);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.sheet-header h2 {
  font-size: 1.38rem;
  font-weight: 780;
  line-height: 1.28;
  margin-top: .12rem;
  overflow-wrap: anywhere;
}
.sheet-subtitle {
  margin-top: .18rem;
  color: var(--muted);
  font-size: .82rem;
}
.sheet [tabindex="-1"]:focus { outline: none; }
.sheet-body { padding: 1.15rem 1.3rem 1.45rem; }
.sheet h3 { font-size: 1.02rem; font-weight: 750; }

/* 歌曲详情内容 */
.detail-record {
  display: grid;
  align-items: center;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 1.1rem;
  padding: .9rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-muted);
}
.detail-cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 11px;
  box-shadow: 0 6px 18px #0b1c361f;
}
.detail-info { min-width: 0; display: grid; gap: .38rem; }
.detail-meta {
  color: var(--text);
  font-size: .9rem;
  font-weight: 620;
  overflow-wrap: anywhere;
}
.detail-badges { display: flex; flex-wrap: wrap; gap: .35rem; }
.detail-badges:empty { display: none; }
.detail-chip {
  padding: .14rem .5rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: .74rem;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}
.detail-provenance {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.detail-disclosure {
  padding: .55rem .8rem;
  margin-top: .55rem;
  border-radius: 9px;
  background: var(--panel-muted);
  color: var(--muted);
  font-size: .84rem;
  overflow-wrap: anywhere;
}
.detail-disclosure[data-tone="error"] {
  background: var(--warning-soft);
  color: var(--warning);
}

.detail-actions, .detail-utility, .shop-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.detail-actions { margin: 1rem 0 .65rem; }
.detail-actions > .control { white-space: nowrap; }
.detail-utility {
  justify-content: space-between;
  padding-top: .25rem;
}
.detail-reaction-capsule { margin-right: 0; }
.feedback-link .icon { width: 16px; height: 16px; }

.detail-section {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1rem;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .4rem .75rem;
  margin-bottom: .55rem;
}
.section-title-wrap {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .35rem .65rem;
}
.section-hint { color: var(--muted); font-size: .78rem; }
.follow { min-height: 34px; padding: .3rem .72rem; font-size: .8rem; border-radius: 999px; }
.follow[aria-pressed="true"] { background: var(--soft); border-color: transparent; color: var(--accent); }

#sync-lines {
  max-height: min(44vh, 20.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: .38rem;
  border: 1px solid var(--line);
  background: var(--panel-muted);
  border-radius: 12px;
}
#sync-lines button {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
  min-height: 42px;
  padding: .56rem .78rem;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0 8px 8px 0;
  text-align: left;
  background: transparent;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
#sync-lines button + button { margin-top: 2px; }
#sync-lines .cue-text { white-space: pre-line; min-width: 0; }
#sync-lines .cue-time {
  flex: none;
  color: var(--muted);
  opacity: 0;
  font-size: .74rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
#sync-lines button:hover {
  background: var(--hover);
  color: var(--accent);
}
#sync-lines button:hover .cue-time,
#sync-lines button:focus-visible .cue-time,
#sync-lines button[aria-current="true"] .cue-time { opacity: .82; }
#sync-lines button[aria-current="true"] {
  background: var(--soft);
  color: var(--text);
  border-left-color: var(--accent);
  font-size: .98rem;
  font-weight: 740;
}
#sync-lines button[aria-current="true"] .cue-time { color: var(--accent); opacity: 1; }

#full-text { margin-top: .55rem; }
#full-text summary { color: var(--muted); font-size: .84rem; }
#lyrics {
  margin-top: .45rem;
  padding: .85rem 1rem;
  border-radius: 10px;
  background: var(--panel-muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.85;
  font-size: .92rem;
}
#mv {
  display: block;
  width: 100%;
  max-height: 56vh;
  margin-top: .45rem;
  border-radius: 12px;
  background: #000;
}
.sheet summary { min-height: 36px; padding-block: .35rem; font-weight: 680; }

/* 下载、已购与账号面板 */
.checkout-sheet {
  width: min(33.5rem, calc(100% - 2rem));
  font-variant-numeric: tabular-nums;
}
.checkout-sheet .sheet-header { padding-bottom: .8rem; }
.checkout-sheet .sheet-header h2 { font-size: 1.25rem; margin-top: 0; }

.checkout-tabs {
  display: flex;
  gap: .35rem;
  padding: .55rem 1.3rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel-muted);
  overflow-x: auto;
}
.checkout-tab {
  flex: 1 1 auto;
  min-height: 36px;
  padding: .35rem .72rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 660;
  white-space: nowrap;
}
.checkout-tab:hover { color: var(--text); background: var(--hover); }
.checkout-tab[aria-current="true"] {
  background: var(--panel);
  border-color: var(--line);
  color: var(--accent);
  box-shadow: 0 1px 3px #0e1e3812;
}

.checkout-record {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: .82rem;
  align-items: center;
  padding: .78rem .85rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel-muted);
}
.checkout-cover { width: 56px; height: 56px; border-radius: 9px; }
.checkout-record-copy { min-width: 0; }
.record-eyebrow {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 650;
}
.checkout-record h3 { font-size: .98rem; overflow-wrap: anywhere; margin-top: .06rem; }
.checkout-record .rights { margin-top: .14rem; }

.checkout-status {
  padding: .62rem .82rem;
  border-radius: 10px;
  background: var(--panel-muted);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
  overflow-wrap: anywhere;
}
.checkout-status:empty { display: none; }
.checkout-status:not(:empty) { margin-block: .75rem; }
.checkout-status[data-tone="error"] {
  background: var(--warning-soft);
  border-color: transparent;
  color: var(--warning);
  font-weight: 600;
}
.checkout-status[data-tone="success"] {
  background: var(--success-soft);
  border-color: transparent;
  color: var(--success);
  font-weight: 620;
}

.shop-files {
  display: grid;
  gap: .5rem;
}
.shop-files:not(:empty) { margin-top: .7rem; }
.shop-files .control {
  width: 100%;
  justify-content: space-between;
  padding: .68rem .95rem;
  text-align: left;
  overflow-wrap: anywhere;
}
.file-btn-meta {
  font-size: .76rem;
  font-weight: 600;
  opacity: .84;
}
.shop-actions:not(:empty) { margin-top: .68rem; }
.shop-actions .control { max-width: 100%; overflow-wrap: anywhere; }
#single-order { margin-top: .5rem; }

/* 微信扫码支付卡片 */
.checkout-payment {
  margin-top: .85rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: var(--soft);
}
.checkout-payment-header, .checkout-payment-footer, .checkout-payment-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}
.checkout-payment-header h3 { font-size: .96rem; }
#payment-product, #payment-reference { overflow-wrap: anywhere; }
.checkout-price {
  flex: none;
  color: var(--accent);
  font-size: 1.85rem;
  font-weight: 780;
  line-height: 1;
}
.checkout-code {
  display: grid;
  justify-items: center;
  margin-block: .8rem .4rem;
}
.checkout-code img {
  display: block;
  width: min(192px, 100%);
  height: auto;
  padding: 8px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 6px 20px #0b1e3b1f;
}
.payment-scan-tip {
  text-align: center;
  color: var(--muted);
  font-size: .78rem;
  margin-bottom: .55rem;
}
.checkout-payment-state { flex-wrap: wrap; font-size: .83rem; margin-top: .25rem; }
.payment-badge {
  padding: .18rem .55rem;
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-size: .78rem;
  font-weight: 680;
}
.payment-badge[data-state="paid"] { background: var(--success-soft); color: var(--success); }
.payment-badge[data-state="pending"] { background: var(--amber-soft); color: var(--amber); }
#payment-expiry { color: var(--muted); font-size: .79rem; }
.checkout-payment-footer {
  margin-top: .55rem;
  padding-top: .45rem;
  border-top: 1px solid var(--line);
}
.checkout-payment-footer .text-button { flex: none; font-size: .81rem; font-weight: 680; }
.checkout-sale-terms { margin-top: .55rem; text-align: center; }

/* 新人首曲与邮箱认证 */
.checkout-account {
  margin-top: .75rem;
  padding: .95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-muted);
}
.newcomer-banner {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
}
.newcomer-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: var(--amber-soft);
  color: var(--amber);
}
.newcomer-icon .icon { width: 18px; height: 18px; }
.checkout-account .rights { margin-top: .22rem; }
.email-auth-box { margin-top: .35rem; }
.auth-hint { margin-top: .55rem; }

.shop-field { display: block; margin-top: .75rem; }
.shop-field label {
  display: block;
  margin-bottom: .28rem;
  font-size: .84rem;
  font-weight: 680;
}
.shop-field input, .shop-field select {
  display: block;
  max-width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: .52rem .72rem;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--text);
}
.shop-field input:focus, .shop-field select:focus {
  border-color: var(--focus);
  outline: none;
  box-shadow: 0 0 0 3px var(--soft);
}
.shop-field select { width: 100%; }
.input-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.input-actions input { flex: 1 1 9rem; }

/* 折叠区：套餐、钱包与历史订单 */
.checkout-options { margin-top: .85rem; }
.checkout-options > :not([hidden]) { border-top: 1px solid var(--line); }
.promo-entry-link {
  justify-content: flex-start;
  width: 100%;
  padding-block: .55rem;
  font-weight: 680;
}
.checkout-options summary {
  padding-block: .72rem;
  font-size: .88rem;
  font-weight: 700;
}
.checkout-options details[open] { padding-bottom: .8rem; }
.checkout-options details details {
  padding-inline: .6rem;
  margin-top: .35rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-muted);
}

.plan-meta { margin-bottom: .45rem; }
.checkout-plans {
  display: grid;
  gap: .55rem;
  min-inline-size: 0;
  margin: .45rem 0 .65rem;
  padding: 0;
  border: 0;
}
.checkout-plan {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: .68rem;
  padding: .75rem .82rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-muted);
  cursor: pointer;
}
.checkout-plan:hover { border-color: var(--line-strong); background: var(--hover); }
.checkout-plan:has(:checked) {
  border-color: var(--accent);
  background: var(--soft);
  box-shadow: 0 0 0 1px var(--accent);
}
.checkout-plan input { margin: 0; accent-color: var(--accent); }
.plan-copy { display: grid; gap: .16rem; min-width: 0; }
.plan-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.checkout-plan strong { font-size: .92rem; }
.plan-badge {
  font-style: normal;
  padding: .1rem .44rem;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: .7rem;
  font-weight: 700;
}
.checkout-plan b { font-size: 1.02rem; color: var(--accent); }
.checkout-plan small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.45; }
#shop-order { margin-top: .6rem; }

.checkout-wallet { padding-block: .35rem .5rem; }
.wallet-balance { font-size: .86rem; font-weight: 660; color: var(--text); }
.wallet-balance:empty { display: none; }
.checkout-wallet .text-button { font-size: .82rem; padding-left: 0; }
.checkout-recovery {
  margin-top: .35rem;
  padding: .7rem .8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-muted);
}
.recovery-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .45rem;
}
#recovery-code {
  flex: 1 1 12rem;
  padding: .42rem .6rem;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: .82rem;
  overflow-wrap: anywhere;
  user-select: all;
}
.copy-btn { min-height: 36px; padding: .35rem .72rem; font-size: .8rem; }
.copy-btn .icon { width: 15px; height: 15px; }

/* 历史订单列表 */
.order-list {
  display: grid;
  gap: .42rem;
  margin-top: .35rem;
}
.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  width: 100%;
  min-height: 44px;
  padding: .55rem .75rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  text-align: left;
  font-size: .83rem;
}
.order-item:hover { background: var(--hover); border-color: var(--line-strong); color: var(--accent); }
.order-item-title { font-weight: 650; min-width: 0; overflow-wrap: anywhere; }
.order-item-right {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .78rem;
}
.order-status-pill {
  padding: .12rem .46rem;
  border-radius: 999px;
  background: var(--panel-subtle);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 660;
}
.order-status-pill[data-status="paid"] { background: var(--success-soft); color: var(--success); }
.order-status-pill[data-status="pending"],
.order-status-pill[data-status="verifying"] { background: var(--amber-soft); color: var(--amber); }

.checkout-support {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .35rem 1rem;
  align-items: center;
  margin-top: .65rem;
  padding-top: .65rem;
  border-top: 1px solid var(--line);
  font-size: .8rem;
}
.checkout-support .text-button { min-height: 34px; font-size: inherit; }
.checkout-support .icon { width: 14px; height: 14px; }

/* 响应式适配 */
@media (max-width: 1020px) {
  .player-inner { grid-template-columns: minmax(0, 1fr) minmax(17rem, 1.45fr) minmax(0, 1fr); }
  .volume-control input { display: none; }
  .player-download-label { display: none; }
  .player-download-btn { padding-inline: 0; border-radius: 10px; min-width: 40px; }
  .feature h2 { font-size: clamp(1.65rem, 3.8vw, 2.55rem); }
}

@media (max-width: 820px) {
  :root { --player-height: 106px; }
  .showcase { grid-template-columns: minmax(0, 1fr); }
  .recent ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .55rem;
  }
  .recent li + li { border-top: 0; }
  .recent-track {
    margin-inline: 0;
    width: 100%;
    padding: .5rem;
    border: 1px solid var(--line);
    background: var(--panel-muted);
  }
  .recent-track .recent-go { display: none; }
  .page-heading { flex-wrap: wrap; align-items: stretch; margin-bottom: 1.15rem; }
  .search { width: 100%; }
  .search-kbd { display: none; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .track-style, .table-head > span:nth-child(2) { display: none; }
  .table-head, .track-row { grid-template-columns: minmax(0, 1fr) 2.8rem var(--track-actions-width); }
  .category { min-height: 40px; }
  .player-inner {
    grid-template-columns: minmax(0, 1fr) max-content max-content;
    grid-template-areas: "info transport tools" "progress progress progress";
    column-gap: .35rem;
  }
  .playback-mode select { min-height: 36px; }
  .timeline input { height: 34px; }
  .volume-control { display: none; }
}

@media (max-width: 560px) {
  .bar { min-height: 60px; }
  .brand-tag { display: none; }
  .home { gap: .42rem; }
  .brand-name { font-size: 1.02rem; }
  .home img { width: 32px; height: 32px; }
  .header-actions { gap: .28rem; }
  .header-download, .account-link { padding-inline: .55rem; min-height: 38px; font-size: .78rem; }
  .account-link .account-icon { display: none; }
  .theme-button { min-width: 38px; min-height: 38px; border-color: transparent; background: transparent; }
  .page-subtitle { font-size: .82rem; }

  .feature {
    gap: .85rem;
    grid-template-columns: minmax(0, 1.35fr) minmax(96px, .82fr);
    padding: 1.15rem;
    min-height: 204px;
    border-radius: 16px;
  }
  .feature h2 { font-size: clamp(1.32rem, 5.5vw, 1.85rem); }
  .feature-meta { font-size: .8rem; }
  .feature-tags { display: none; }
  .feature-actions { margin-top: .9rem; gap: .4rem; }
  .feature .control { min-height: 38px; padding: .42rem .68rem; font-size: .8rem; }
  .feature .hero-download { display: none; }
  .hero-art { border-radius: 10px; }

  .recent { padding: .9rem .95rem .75rem; border-radius: 16px; }
  .recent ol { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .recent li + li { border-top: 1px solid var(--line); }
  .recent-track { border: 0; background: transparent; padding: .42rem 0; }

  .library-notice { width: 100%; font-size: .76rem; }
  .track-row {
    min-height: 62px;
    grid-template-columns: minmax(0, 1fr) max-content;
    padding-inline: .55rem;
    gap: .25rem;
  }
  .table-head, .track-time, .track-num { display: none; }
  .track { gap: .58rem; }
  .track-cover { height: 42px; width: 42px; }
  .track-text .name { font-size: .89rem; }
  .track-text .byline { font-size: .76rem; }
  .compact-meta { display: inline; }
  .track-actions .reaction-group { display: none; }
  .track-actions .icon-button { min-width: 36px; min-height: 36px; }

  .player-cover { width: 42px; height: 42px; }
  .player-track { gap: .5rem; padding-inline: .2rem; margin-left: 0; }
  .player-track-copy strong { font-size: .84rem; }
  #player-artist { max-width: 100%; }
  .player-cue { display: none; }
  #player-lyrics { display: none; }
  .transport { gap: .1rem; }

  .sheet {
    inset: auto 0 0;
    width: 100%;
    margin: 0;
    max-height: 88vh;
    max-height: 88dvh;
    border-radius: 18px 18px 0 0;
  }
  .sheet-header, .sheet-body, .checkout-tabs { padding-inline: 1rem; }
  .sheet-body { padding-bottom: calc(1.2rem + env(safe-area-inset-bottom)); }
  .checkout-sheet { width: 100%; }
  .detail-record { grid-template-columns: 84px minmax(0, 1fr); padding: .75rem; gap: .8rem; }
  .faq-a-wrap { padding-left: .95rem; }
}

@media (max-width: 370px) {
  :root { --player-height: 142px; }
  .header-download .icon { display: none; }
  .player-inner {
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-areas: "info info" "transport tools" "progress progress";
    grid-template-rows: 1fr auto auto;
    column-gap: .4rem;
  }
  .transport { justify-content: flex-start; }
  .player-progress { gap: .35rem; }
  .timeline { gap: .28rem; }
  .detail-actions .control { padding-inline: .6rem; font-size: .82rem; }
}

@media (hover: none) {
  .track-cover .cover-play {
    inset: auto 3px 3px auto;
    width: 17px;
    height: 17px;
    border-radius: 5px;
    opacity: 1;
  }
  .track-cover .cover-play .icon { width: 12px; height: 12px; }
}

@media (prefers-reduced-motion: no-preference) {
  .control, .icon-button, .text-button, .category, .account-link,
  .track-row, .recent-track, .recent-go, .cover-play, .checkout-tab,
  .checkout-plan, .order-item, .faq-item, #sync-lines button {
    transition:
      background-color .15s ease,
      border-color .15s ease,
      color .15s ease,
      box-shadow .15s ease,
      opacity .15s ease,
      transform .15s ease;
  }
}
#player-mv-panel, #show-player-mv {
  position: absolute;
  right: var(--gutter, 1rem);
  bottom: calc(100% + .5rem);
}
#player-mv-panel {
  width: min(280px, 40vw);
  background: #15191c;
  border-radius: .6rem;
  overflow: hidden;
  box-shadow: 0 3px 18px #0004;
}
#player-mv-panel video { display: block; width: 100%; max-height: 30vh; object-fit: contain; }
#track-detail #player-mv-panel { position: relative; inset: auto; width: 100%; }
#hide-player-mv {
  position: absolute; top: 0; right: 0;
  width: 44px; height: 44px; background: #111b; color: white;
  border: 0; font-size: 1.4rem; cursor: pointer;
}

@media (max-width: 560px) {
  .feature { grid-template-columns: minmax(0,1fr) clamp(74px,22vw,108px); row-gap: .85rem; min-height: auto; }
  .feature-copy { display: contents; }
  .feature-label, .feature h2, .feature-meta { grid-column: 1; margin: 0; }
  .feature-label { justify-self: start; }
  .feature > .hero-art, .feature > .hero-art-stage { grid-column: 2; grid-row: 1 / 4; align-self: center; }
  .feature-actions { grid-column: 1 / -1; grid-row: 4; flex-wrap: nowrap; gap: .45rem; margin: 0; }
  .feature-actions .control { flex: 1 1 auto; white-space: nowrap; min-height: 44px; padding-inline: .45rem; }
  .feature-actions .hero-icon-btn { flex: 0 0 44px; }
  #player-mv-panel { width: min(62vw, 270px); }
}
