/* ==========================================================================
   墨竹印象 · 界面外壳
   ========================================================================== */

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

[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--ink-0);
  color: var(--paper);
  font-family: var(--font-cn-ui);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

/* 纸面肌理：极淡的噪点，避免大面积纯黑显得死板 */
/* 全局噪点纹理已移除：它就是远看一层灰蒙蒙的脏的来源。
   质感改由【封面自身的模糊】提供，见 stage.css 的 .stage::before */
body::before { display: none; }

h1, h2, h3, h4, p, dl, dd, dt, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { display: block; max-width: 100%; }
input { font: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(242, 245, 248, 0.12);
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(242, 245, 248, 0.24); background-clip: content-box; }

::selection { background: var(--seal); color: #fff; }

/* ------------------------------------------------------------------ 布局 */

.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  height: calc(100dvh - var(--dock-h));
  /* 关键：flex 子项默认不收缩，缺这一条时内容会被 body 的 overflow:hidden 截断且无法滚动 */
  min-height: 0;
}

/* ------------------------------------------------------------------ 引首 */

.rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  background:
    linear-gradient(180deg, rgba(190, 50, 39, 0.05), transparent 22%),
    linear-gradient(180deg, var(--ink-1), var(--ink-0));
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-1) var(--sp-2) var(--sp-4);
  border-bottom: 1px solid var(--line);
}

.brand__seal {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  box-shadow: 0 6px 20px -10px var(--seal-glow), 0 0 0 1px rgba(242, 245, 248, 0.08) inset;
  transition: transform var(--dur-mid) var(--ease-settle);
}
.brand:hover .brand__seal { transform: rotate(-3deg) scale(1.04); }

.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name {
  font-family: var(--font-cn-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--paper);
}
.brand__latin {
  font-family: var(--font-latin-display);
  /* 2026-10-10：10px → var(--fs-micro)（13）。品牌拉丁字是侧栏里唯一没跟令牌走的字，
     整档抬起后它反而成了全站最小的字（10px，在 2560 宽屏上等于看不见）。 */
  font-size: var(--fs-micro);
  letter-spacing: 0.42em;
  color: var(--paper-faint);
  margin-top: 3px;
}
.brand__ip {
  margin-top: 5px;
  font-size: var(--fs-tiny);
  letter-spacing: 0.18em;
  color: var(--river);
}
.brand__ip::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 1px;
  margin-right: 6px;
  vertical-align: 4px;
  background: var(--seal);
}

.rail__group { display: flex; flex-direction: column; gap: 2px; }

.rail__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-2) var(--sp-2);
  font-size: var(--fs-micro);
  letter-spacing: 0.3em;
  color: var(--paper-ghost);
}

.mini {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-s);
  color: var(--paper-faint);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.mini .ico { width: 14px; height: 14px; }
.mini:hover { color: var(--paper); background: var(--ink-3); }

.navlink {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 9px var(--sp-2);
  border-radius: var(--radius-m);
  color: var(--paper-dim);
  transition: color var(--dur-fast) var(--ease-ink), background var(--dur-fast) var(--ease-ink);
}
.navlink .ico { width: 18px; height: 18px; opacity: 0.72; }
.navlink__count { margin-left: auto; font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--paper-ghost); }
.navlink:hover { color: var(--paper); background: var(--ink-2); }
.navlink.is-active { color: var(--paper); background: var(--ink-2); }
.navlink.is-active .ico { opacity: 1; color: var(--river); }
.navlink.is-active::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: var(--gold-bright); /* 金=导航，朱砂只留给"正在播放" */
  box-shadow: 0 0 12px rgba(232, 200, 126, 0.5);
}

.rail__group--playlist { flex: 1 1 auto; min-height: 0; }
#playlistNav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }

.playlist-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 7px var(--sp-2);
  border-radius: var(--radius-m);
  color: var(--paper-faint);
  font-size: var(--fs-small);
  text-align: left;
  width: 100%;
  transition: color var(--dur-fast), background var(--dur-fast);
}
.playlist-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playlist-link em { margin-left: auto; font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--paper-ghost); font-style: normal; }
.playlist-link:hover { color: var(--paper-dim); background: var(--ink-2); }
.playlist-link.is-active { color: var(--paper); background: var(--ink-2); }

/* ── 收藏的歌单：有封面的一行（参考图左栏最下面那一段）──
   圆封面 24px，比创建的歌单多一枚图；点进去落在该音源的歌单页。 */
.playlist-link--cover { gap: var(--sp-2); padding: 5px var(--sp-2); }

.playlist-link__art {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--ink-2);
  border: 1px solid var(--line);
}

.playlist-link__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.playlist-link__mono {
  font-family: var(--font-cn-display);
  font-size: 12px;
  line-height: 1;
  color: var(--paper-dim);
}

.playlist-link__name { min-width: 0; }

/* 分组标题右侧的数量（对齐参考图「创建的歌单 1」「收藏的歌单 11」） */
.rail__count {
  margin-left: auto;
  margin-right: 6px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0;
  color: var(--paper-ghost);
}

/* 两组歌单的高度分配：创建的按内容，收藏的吃掉剩余并可滚 */
.rail__group--playlist { flex: 0 1 auto; }
.rail__group--collected { flex: 0 1 auto; min-height: 0; }

/* 分组之间原本是 --sp-5（24px），五个分组就吃掉 120px。压到 --sp-3。 */
.rail { gap: var(--sp-3); }

/* ⚠ 两组歌单**不许被压缩**。
   之前写成 flex: 0 1 auto（shrink:1），左栏内容一超高，浏览器就把它们往下压 ——
   实测压到只剩几像素，两个标题叠成一片乱码。溢出要由 .rail 自己滚（它有 overflow-y: auto），
   而不是牺牲某个分组。 */
.rail__group--playlist,
.rail__group--collected { flex: 0 0 auto; min-height: 0; }

#collectedNav { display: flex; flex-direction: column; gap: 1px; }
.playlist-link::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--river-deep);
  flex: none;
}

.rail__foot { display: flex; flex-direction: column; gap: var(--sp-3); padding-top: var(--sp-4); border-top: 1px solid var(--line); }

.gauge { display: flex; flex-direction: column; gap: 7px; }
.gauge__bar {
  display: flex;
  height: 3px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--ink-3);
}
.gauge__bar span { display: block; height: 100%; transition: width var(--dur-slow) var(--ease-settle); }
#gaugeLossless { background: var(--seal); }
#gaugeHq { background: var(--river); }
.gauge__text { font-size: var(--fs-micro); color: var(--paper-faint); letter-spacing: 0.06em; }
.gauge__text b { font-family: var(--font-mono); color: var(--paper-dim); font-weight: 500; }

.rail__meta { font-size: var(--fs-micro); color: var(--paper-ghost); line-height: 1.7; word-break: break-all; }

/* ------------------------------------------------------------------ 画心 */

.canvas {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(10, 20, 40, 0.5), transparent 320px);
  /* 关键：flex 子项默认不收缩，缺这一条时内容会被 body 的 overflow:hidden 截断且无法滚动 */
  min-height: 0;
}

.topbar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6) var(--sp-3);
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, var(--ink-0) 62%, transparent);
  backdrop-filter: var(--blur);
}

.topbar__nav { opacity: 0.7; }

.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: min(420px, 42vw);
  padding: 0 var(--sp-3);
  height: 38px;
  border-radius: 99px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  transition: border-color var(--dur-mid), background var(--dur-mid);
}
.search:focus-within { border-color: var(--line-seal); background: var(--ink-1); }
.search__ico { width: 16px; height: 16px; color: var(--paper-faint); }
.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: none;
  border: none;
  outline: none;
  color: var(--paper);
  font-size: var(--fs-small);
}
.search input::placeholder { color: var(--paper-ghost); }
.search input::-webkit-search-cancel-button { appearance: none; }

/* 顶栏右侧工具：不许被搜索框挤窄，否则「全部音质」会一个字换一行（窄屏实测） */
.topbar__tools { margin-left: auto; display: flex; align-items: center; gap: var(--sp-2); flex: none; }
.topbar__tools > * { white-space: nowrap; flex: none; }

.chipbtn {
  padding: 7px var(--sp-3);
  border-radius: 99px;
  font-size: var(--fs-tiny);
  color: var(--paper-dim);
  background: var(--ink-2);
  border: 1px solid var(--line);
  transition: all var(--dur-fast);
}
.chipbtn:hover { color: var(--paper); border-color: var(--line-strong); }
.chipbtn.is-on { color: var(--paper); border-color: var(--line-seal); background: rgba(190, 50, 39, 0.12); }

.iconbtn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 99px;
  color: var(--paper-dim);
  transition: color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast);
}
.iconbtn:hover { color: var(--paper); background: var(--ink-3); }
.iconbtn:active { transform: scale(0.94); }
.iconbtn--sm { width: 32px; height: 32px; }
.iconbtn--sm .ico { width: 17px; height: 17px; }
.iconbtn.is-on { color: var(--seal-bright); }
.iconbtn.is-on .ico { stroke-width: 2.1; }

/* 窄屏才出现的侧栏抽屉开关 */
.rail-toggle { display: none; }

.view {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 var(--sp-6) var(--sp-7);
  scroll-behavior: smooth;
}
.view:focus { outline: none; }

/* 页面进入：唯一一次编舞，之后一律安静 */
.view > * { animation: ink-rise var(--dur-slow) var(--ease-settle) both; }
@keyframes ink-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* -------------------------------------------------- 山脊：分节标题的脊线 */

.join {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: var(--sp-3);
  margin: var(--sp-4) 0 var(--sp-3);
  padding-left: 2px;
}
/* 一枚"山脊 + 竖线"的记号：上半是米拉山的峰，下半是一道规整的骨线 */
.join::before {
  content: "";
  flex: none;
  width: 13px;
  height: 27px;
  background: linear-gradient(180deg, var(--river) 0 20%, var(--river-deep) 20% 100%);
  clip-path: polygon(50% 0%, 100% 22%, 62% 22%, 62% 100%, 38% 100%, 38% 22%, 0% 22%);
}
.join__title {
  font-family: var(--font-cn-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.1;
}
.join__sub { font-size: var(--fs-tiny); color: var(--paper-faint); letter-spacing: 0.08em; padding-bottom: 3px; }
.join__more {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-tiny);
  color: var(--paper-faint);
  padding-bottom: 3px;
  transition: color var(--dur-fast);
}
.join__more:hover { color: var(--river); }
.join__more .ico { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ 首页 */

.hero {
  position: relative;
  margin-top: var(--sp-2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, var(--ink-2), var(--ink-1) 62%, #0a0f0e);
  min-height: 208px;
  display: grid;
  /* 去掉唱片后不再需要双栏：一整片山水，署名压在左边 */
  grid-template-columns: 1fr;
  isolation: isolate;
}
.hero__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../assets/ink-wash.svg") center bottom / auto 78% no-repeat;
  opacity: 0.95;
  animation: wash-in 1.6s var(--ease-settle) both;
}
@keyframes wash-in {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 0.9; transform: none; }
}
/* 山脊上的寺院：首屏的"地标"。经幡会飘——与盘面同一套风 */
.hero__monastery > svg {
  height: 100%;
  width: auto;
  display: block;
}

.hero__monastery {
  position: absolute;
  right: 8%;
  bottom: -2px;
  /* 与唱片页同一张图、同一档观感。
     首屏原来只给 46%（约 110px），ༀ、喇嘛、足迹全被压成了噪点；
     统一放大后，两处看到的是同一座寺院。 */
  height: min(184px, 68%);
  width: auto;
  display: block;
  opacity: 0.9;
  pointer-events: none;
  filter: drop-shadow(0 16px 28px rgba(4, 7, 15, 0.6));
  mask-image: linear-gradient(180deg, #000 82%, rgba(0, 0, 0, 0.35));
  -webkit-mask-image: linear-gradient(180deg, #000 82%, rgba(0, 0, 0, 0.35));
}

/* brand.showMonastery = false 时，整站不出现寺院 */
body.no-monastery .hero__monastery,
body.no-monastery .stage__monastery { display: none; }

.hero__left {
  padding: var(--sp-5) var(--sp-6) var(--sp-4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-2);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-micro);
  letter-spacing: 0.34em;
  color: var(--river);
}
.hero__eyebrow::after { content: ""; width: 40px; height: 1px; background: var(--river-deep); }
/* 署名：印章 · 品牌 · 细线 · IP。一行四件，靠结构与字距立住 */
.masthead {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-3);
  margin: var(--sp-1) 0 var(--sp-2);
}
.masthead__seal {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  flex: none;
  box-shadow: 0 6px 18px -10px var(--seal-glow);
}
.masthead__brand {
  font-family: var(--font-cn-display);
  font-size: clamp(26px, 2.9vw, 38px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.2em;
  color: var(--paper);
  text-indent: 0.2em; /* 补偿字距在右侧多出的一格，视觉居中 */
}
.masthead__rule {
  flex: 0 1 84px;
  height: 1px;
  min-width: 28px;
  background: linear-gradient(90deg, var(--paper-ghost), transparent);
}
.masthead__ip {
  font-family: var(--font-cn-display);
  font-size: clamp(15px, 1.5vw, 19px);
  letter-spacing: 0.34em;
  color: var(--paper-dim);
  text-indent: 0.34em;
}
.hero__desc { max-width: 34ch; color: var(--paper-dim); font-size: var(--fs-body); }
.hero__cta { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-1); }

.solidbtn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 11px var(--sp-5);
  border-radius: 99px;
  background: var(--seal);
  color: #fff5f2;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  box-shadow: 0 10px 30px -12px var(--seal-glow);
  transition: transform var(--dur-fast), background var(--dur-fast);
}
.solidbtn:hover { background: var(--seal-bright); transform: translateY(-1px); }
.solidbtn:active { transform: translateY(0); }
.solidbtn .ico { width: 17px; height: 17px; }

.ghostbtn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 11px var(--sp-5);
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  color: var(--paper-dim);
  font-size: var(--fs-small);
  transition: all var(--dur-fast);
}
.ghostbtn:hover { color: var(--paper); border-color: var(--paper-ghost); }
.ghostbtn .ico { width: 16px; height: 16px; }

.hero__stats { display: flex; gap: var(--sp-5); margin-top: var(--sp-2); }
.stat__n { font-family: var(--font-mono); font-size: var(--fs-title); color: var(--paper); letter-spacing: -0.01em; }
.stat__l { font-size: var(--fs-micro); color: var(--paper-ghost); letter-spacing: 0.2em; margin-top: 2px; }

.hero__right {
  position: absolute;
  right: var(--sp-6);
  top: var(--sp-5);
  display: block;
  padding: 0;
}
/* 首屏不再放唱片（唱片的正面属于唱片页），样式一并收掉 */
.hero__now {
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  color: var(--paper-ghost);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ 卡片网格 */

.grid {
  display: grid;
  gap: var(--sp-4) var(--sp-3);
  grid-template-columns: repeat(auto-fill, minmax(160px, 196px));
  justify-content: start;
}
/* 固定列宽、左对齐：不要让五张卡片被 1fr 撑成五块巨板 */
.grid--shelf {
  grid-template-columns: repeat(auto-fill, minmax(146px, 162px));
  justify-content: start;
}
.grid--artists { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  text-align: left;
  border-radius: var(--radius-m);
  transition: transform var(--dur-mid) var(--ease-settle);
}
.card:hover { transform: translateY(-4px); }
.card__art {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: var(--shadow-2);
}
/* ⚠ 必须带 !important：后面那轮设计修订写了 `.card__art { border-radius: 10px !important }`，
   权重虽低但 !important 通吃，把圆形头像压成了 10px 圆角 ——
   实测「艺术家」页与首页歌手墙的头像全都是方的。 */
.card--round .card__art { border-radius: 50% !important; }
.card__art img { width: 100%; height: 100%; object-fit: cover; }
.card__art .cover-svg { width: 100%; height: 100%; display: block; }
.card__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 7, 15, 0.72));
  opacity: 0;
  transition: opacity var(--dur-mid);
}
.card:hover .card__veil { opacity: 1; }
.card__play {
  position: absolute;
  right: var(--sp-3);
  bottom: var(--sp-3);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--seal);
  color: #fff;
  box-shadow: var(--shadow-2);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-mid), transform var(--dur-mid) var(--ease-settle);
}
.card:hover .card__play, .card:focus-within .card__play { opacity: 1; transform: none; }
.card__title {
  font-size: var(--fs-small);
  color: var(--paper);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card__sub {
  font-size: var(--fs-tiny);
  color: var(--paper-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card__meta { display: flex; align-items: center; gap: var(--sp-2); font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--paper-ghost); }

/* ------------------------------------------------------------------ 曲目行 */

.songlist { display: flex; flex-direction: column; }

/* 新版式：序号 · 标题（含封面） · 山脊声纹 · 音质 · 时长 · 工具
   专辑名并进标题的副行，把中间这一列让给声纹 */
/* 最后一列（工具：喜欢 / 下载 / 更多）宽 92px —— 三个 28px 按钮加间隙正好。
   原来写 40px 时，多出来的按钮会被 .song 的 overflow:hidden 从左边裁掉。 */
.songlist__head,
.song {
  grid-template-columns: 34px minmax(190px, 1.35fr) minmax(88px, 1fr) 100px 58px 92px;
}
.songlist__head {
  display: grid;
  gap: var(--sp-3);
  padding: 0 var(--sp-3) var(--sp-2);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-micro);
  letter-spacing: 0.2em;
  color: var(--paper-ghost);
}
.songlist__head span:nth-child(4) { text-align: right; }
.songlist__head span:nth-child(5) { text-align: right; }

.song {
  display: grid;
  gap: var(--sp-3);
  align-items: center;
  padding: 8px var(--sp-3);
  border-radius: var(--radius-m);
  cursor: default;
  position: relative;
  transition: background var(--dur-mid) var(--ease-ink), transform var(--dur-mid) var(--ease-settle);
}
/* 悬停：底色从左侧漫进来 + 整行轻轻抬起，像被风推了一下 */
.song::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ink-3), rgba(10, 20, 40, 0.2) 62%, transparent);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-ink);
  pointer-events: none;
}
.song:hover::before { opacity: 1; }
.song:hover { transform: translateX(2px); }

/* ---------------------------------------------------- 山脊声纹 */

.song__ridge {
  height: 24px;
  min-width: 0;
  display: flex;
  align-items: center;
  position: relative;
  opacity: 0.55;
  transition: opacity var(--dur-mid) var(--ease-ink);
}
.song__ridge .ridge {
  width: 100%;
  height: 22px;
  display: block;
  transform-origin: center bottom;
  animation: ridge-breathe 7s ease-in-out infinite alternate;
  animation-delay: var(--phase, 0s);
}
/* 云影过山：0.6px 的起伏。看得见"活着"，看不出"在动" */
@keyframes ridge-breathe {
  from { transform: translateY(0.6px); }
  to { transform: translateY(-0.6px); }
}
/* 基线：没有它，山会读成一条分隔线 */
.song__ridge::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent 92%);
}
.song:hover .song__ridge { opacity: 1; }
.song:hover .ridge__main { stroke-opacity: 0.62; }

/* 亮线：平时停在起点，播放时才顺着山脊跑一遍。
   这是"只在发生事情时动"——列表里 20 行不会同时晃。 */
.ridge__pulse {
  stroke-dasharray: 14 130;
  stroke-dashoffset: 144;
  opacity: 0;
}
.song.is-current .ridge__pulse { opacity: 1; }
body.is-playing .song.is-current .ridge__pulse {
  animation: ridge-run 2.8s linear infinite;
}
@keyframes ridge-run {
  from { stroke-dashoffset: 144; }
  to { stroke-dashoffset: -144; }
}
.song.is-current .song__ridge { opacity: 1; }
.song.is-current .ridge__main { stroke-opacity: 0.72; }

/* ---------------------------------------------------- 音质分组标题 */

.songgroup {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-5) 0 var(--sp-2);
  padding: 0 var(--sp-3);
}
.songgroup:first-child { margin-top: var(--sp-2); }
.songgroup__name {
  font-family: var(--font-cn-display);
  font-size: var(--fs-lead);
  letter-spacing: 0.14em;
  color: var(--paper);
}
.songgroup__count { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--paper-faint); }
.songgroup__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent 82%);
}
.songgroup::before {
  content: "";
  width: 11px;
  height: 22px;
  flex: none;
  background: linear-gradient(180deg, var(--river) 0 20%, var(--river-deep) 20% 100%);
  clip-path: polygon(50% 0%, 100% 22%, 62% 22%, 62% 100%, 38% 100%, 38% 22%, 0% 22%);
}
.song.is-current { background: linear-gradient(90deg, rgba(190, 50, 39, 0.13), transparent 70%); }
.song.is-current .song__title { color: var(--seal-bright); }
.song.is-dead { opacity: 0.55; }

.song__idx {
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  color: var(--paper-ghost);
  height: 28px;
}
.song__idx .ico { width: 14px; height: 14px; }
.song__play { display: none; }
.song:hover .song__num { display: none; }
.song:hover .song__play { display: block; }
.song.is-current .song__num { display: none; }
.song.is-current .song__eq { display: flex; }
.song__eq { display: none; align-items: flex-end; gap: 2px; height: 14px; }
.song__eq i {
  width: 2px;
  background: var(--seal-bright);
  animation: eq 900ms var(--ease-ink) infinite alternate;
}
.song__eq i:nth-child(1) { height: 40%; animation-delay: 0ms; }
.song__eq i:nth-child(2) { height: 100%; animation-delay: 140ms; }
.song__eq i:nth-child(3) { height: 62%; animation-delay: 280ms; }
.song.is-paused .song__eq i { animation-play-state: paused; }
@keyframes eq { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }

.song__main { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.song__thumb {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-s);
  overflow: hidden;
  flex: none;
  background: var(--ink-3);
}
.song__thumb img, .song__thumb .cover-svg { width: 100%; height: 100%; object-fit: cover; }
/* 横版：歌名与「歌手 · 专辑」并排一行（原来是上下堆两行）。
   参考图的排法就是一行读完：歌名（亮）→ 参数 → 歌手（暗）。
   顺带把行高降下来，一屏能多看几首。 */
.song__text { min-width: 0; display: flex; flex-direction: row; align-items: baseline; gap: 10px; }
.song__title { font-size: var(--fs-small); color: var(--paper); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song__artist { font-size: var(--fs-tiny); color: var(--paper-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song__album { font-size: var(--fs-tiny); color: var(--paper-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song__quality { display: flex; justify-content: flex-end; }
.song__time { font-family: var(--font-mono); font-size: var(--fs-tiny); color: var(--paper-faint); text-align: right; }
.song__tools { display: flex; justify-content: flex-end; gap: 2px; opacity: 0; transition: opacity var(--dur-fast); }
.song:hover .song__tools, .song:focus-within .song__tools { opacity: 1; }
.song__tools .iconbtn { width: 28px; height: 28px; }
.song__tools .iconbtn .ico { width: 15px; height: 15px; }
.song__tools .iconbtn.is-on { color: var(--seal-bright); opacity: 1; }

/* 音质徽标 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
  border: 1px solid var(--line);
  color: var(--paper-faint);
  white-space: nowrap;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
/* 调色板：一个参数一个固定色，颜色本身就是信息（哪一档音质、是否在线）。
   色相从高到低排：金 → 青 → 淡青 → 冷灰；在线走绿、需转码走橙。
   ⚠ 这几档颜色曾被后面两轮设计修订用 !important 抹成同一种白（注释写着"细线、无色"）。
   要改回有色，靠的是**把那两处的 .badge 摘出去**（见文件末尾两段），不是在这里加 !important。 */
.badge--hires { color: #e8c87e; border-color: rgba(232, 200, 126, 0.4); background: rgba(232, 200, 126, 0.1); }
.badge--lossless { color: #5fe3d2; border-color: rgba(95, 227, 210, 0.4); background: rgba(95, 227, 210, 0.1); }
.badge--hq { color: #7fa8bd; border-color: rgba(127, 168, 189, 0.34); background: rgba(127, 168, 189, 0.08); }
.badge--standard { color: rgba(236, 245, 250, 0.52); border-color: rgba(236, 245, 250, 0.16); }
.badge--online { color: #7ed957; border-color: rgba(126, 217, 87, 0.4); background: rgba(126, 217, 87, 0.1); }
.badge--loading { color: var(--river); border-color: var(--line-bamboo); background: rgba(57, 211, 196, 0.08); }
.badge--loading::before { animation: buffering-pulse 900ms ease-in-out infinite alternate; }
@keyframes buffering-pulse { from { opacity: 0.25; } to { opacity: 1; } }
.badge--needConvert { color: #e0a15f; border-color: rgba(224, 161, 95, 0.4); background: rgba(224, 161, 95, 0.1); }

/* ------------------------------------------------------------------ 空状态 */

.empty {
  display: grid;
  place-items: center;
  gap: var(--sp-4);
  padding: var(--sp-8) var(--sp-5);
  text-align: center;
  color: var(--paper-faint);
}
.empty__mark {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--river);
}
.empty__mark .ico { width: 30px; height: 30px; }
.empty h3 { font-family: var(--font-cn-display); font-size: var(--fs-title); color: var(--paper); letter-spacing: 0.05em; }
.empty p { max-width: 46ch; font-size: var(--fs-small); line-height: 1.8; }
.empty code {
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--paper-dim);
}

/* ------------------------------------------------------------------ 详情页 */

.detail {
  display: grid;
  grid-template-columns: minmax(200px, 268px) minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: end;
  padding: var(--sp-5) 0 var(--sp-4);
}
.detail__art {
  aspect-ratio: 1;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-3);
  background: var(--ink-2);
}
.detail__art img, .detail__art .cover-svg { width: 100%; height: 100%; object-fit: cover; }
.detail__art--round { border-radius: 50%; }
.detail__kind { font-size: var(--fs-micro); letter-spacing: 0.34em; color: var(--river); }
.detail__name {
  font-family: var(--font-cn-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.14;
  margin: var(--sp-3) 0 var(--sp-2);
  letter-spacing: 0.02em;
}
.detail__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); color: var(--paper-faint); font-size: var(--fs-small); }
.detail__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--paper-ghost); }
.detail__actions { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-5); }

/* ------------------------------------------------------------------ 设置页 */

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, var(--ink-1), rgba(6, 12, 27, 0.4));
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
}
.panel__title { font-family: var(--font-cn-display); font-size: var(--fs-title); letter-spacing: 0.06em; margin-bottom: var(--sp-2); }
.panel__hint { font-size: var(--fs-small); color: var(--paper-faint); line-height: 1.9; }
.panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
}
.panel__row:last-child { border-bottom: none; }
.panel__row b { font-weight: 500; color: var(--paper); }
.panel__row span { color: var(--paper-faint); font-size: var(--fs-small); }
.kv { font-family: var(--font-mono); font-size: var(--fs-tiny); color: var(--paper-dim); }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--sp-3); margin-top: var(--sp-3); }
.spec { border: 1px solid var(--line); border-radius: var(--radius-m); padding: var(--sp-3); }
.spec dt { font-size: var(--fs-micro); letter-spacing: 0.18em; color: var(--paper-ghost); }
.spec dd { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--paper); margin-top: 4px; word-break: break-all; }

/* -------------------------------------------------------------- 在线音源 */

.navlink__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: var(--river);
  box-shadow: 0 0 8px var(--river-glow);
}

.source-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  margin-top: var(--sp-3);
}
.source-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px var(--sp-4);
  border-radius: 99px;
  font-size: var(--fs-small);
  color: var(--paper-faint);
  transition: all var(--dur-fast);
}
.source-tab:hover { color: var(--paper-dim); }
.source-tab.is-on { color: var(--ink-0); background: var(--paper); }
.source-tab__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--river); }

.online__notice {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  border-left: 3px solid var(--river-deep);
  background: linear-gradient(90deg, rgba(57, 211, 196, 0.05), transparent 62%);
  font-size: var(--fs-tiny);
  color: var(--paper-faint);
}
.online__notice b { color: var(--paper); font-weight: 500; font-size: var(--fs-small); }
.online__notice-note { color: var(--paper-ghost); }
.online__notice-note::before { content: "·"; margin-right: var(--sp-3); }

.online__search {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: var(--sp-4) 0 var(--sp-2);
  padding: 0 var(--sp-2) 0 var(--sp-4);
  height: 48px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  transition: border-color var(--dur-mid);
}
.online__search:focus-within { border-color: var(--line-bamboo); }
.online__search .ico { color: var(--paper-faint); }
.online__search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: none;
  border: none;
  outline: none;
  color: var(--paper);
  font-size: var(--fs-body);
}
.online__search input::placeholder { color: var(--paper-ghost); }
.online__search input::-webkit-search-cancel-button { appearance: none; }

.online__sync { padding: 2px 4px 0; }
.online__sync .panel__hint { display: inline-flex; align-items: center; gap: 7px; }

/* 同步指示灯：河水青＝刚同步过，灰＝数据已经放了一会儿 */
.sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
  background: var(--river);
  box-shadow: 0 0 8px var(--river-glow);
}

.online__playlist-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding: var(--sp-3) 0 var(--sp-4);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-3);
}
.online__playlist-head .solidbtn,
.online__playlist-head .ghostbtn { padding: 8px var(--sp-4); font-size: var(--fs-tiny); }
.online__playlist-head .solidbtn .ico,
.online__playlist-head .ghostbtn .ico { width: 15px; height: 15px; }

.online__bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-3) var(--sp-2);
}
.online__bar .ghostbtn { padding: 7px var(--sp-4); font-size: var(--fs-tiny); }
.online__bar .ghostbtn .ico { width: 14px; height: 14px; }

.srcchip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--paper-faint);
  white-space: nowrap;
}
.badge--vip {
  color: #e0b070;
  border-color: rgba(224, 176, 112, 0.36);
  background: rgba(224, 176, 112, 0.1);
  margin-right: 6px;
}

/* ------------------------------------------------------------- 动效系统

   四条规矩（见 DESIGN.md 第 07 节）：
     1. 风是唯一的动力——不用弹跳、不用回弹
     2. 慢到像呼吸——循环 2–8s，位移 ≤6px
     3. 只在"发生了什么"时动
     4. 一次编舞，不撒胡椒面
   系统开启"减少动态效果"时，tokens.css 会把时长压到 1ms，全部静止。 */

/* 封面上的经幡同理，只是慢一点、幅度小一点，小尺寸上不至于毛躁 */
.cover-svg .flag { animation-duration: 3.4s; }

/* 悬停时笔扫缓慢走一遍：画面"被风吹动"，不是无端抖动 */
.card:hover .cover-svg .ink-sweep { animation: sweep-drift 4.5s ease-in-out infinite alternate; }
@keyframes sweep-drift {
  from { transform: translateX(-4px); }
  to { transform: translateX(6px); }
}

/* 云影：水墨底纹极缓地横向漂移，像高原上云过山头（60s 只走 2%） */
.hero__wash { animation: wash-in 1.6s var(--ease-settle) both, cloud-drift 60s ease-in-out infinite alternate; }
@keyframes cloud-drift {
  from { background-position: 49% bottom; }
  to { background-position: 51% bottom; }
}

/* 首屏寺院的经幡沿用同一条风的规则（相位在 SVG 里，逐面递增） */

/* 编舞：标题先落，唱片刻后 140ms 跟上——一次成组，不做逐元素乱跳 */
.hero__left > * { animation: ink-rise var(--dur-slow) var(--ease-settle) both; }
.hero__left > *:nth-child(1) { animation-delay: 60ms; }
.hero__left > *:nth-child(2) { animation-delay: 130ms; }
.hero__left > *:nth-child(3) { animation-delay: 200ms; }
.hero__left > *:nth-child(4) { animation-delay: 270ms; }
.hero__disc { animation: ink-rise var(--dur-slow) var(--ease-settle) 140ms both; }

/* 点了喜欢：一圈墨色涟漪 + 那颗心**填成实心朱砂**（用户："喜欢键点击出现红色爱心"）。
   这是"操作之后的回应"，不是常驻装饰。

   ⚠ 判据是专门的 `.iconbtn--like`，不是 `[title='喜欢']`：底轴那颗的 title 是「喜欢 (L)」，
   老选择器从来没匹配上它 —— 所以底轴一直只有描边变红、没有涟漪。别再改回 title 匹配。

   `.ico` 的默认是 `fill: none`（见前面图标一节），所以实心要在这里显式补 fill；
   只对 like 这一类补，别放到 `.iconbtn.is-on` 上 —— 那样会把随机/循环那几颗
   描边图标的内部也填成色块。 */
@keyframes like-ripple {
  from { box-shadow: 0 0 0 0 rgba(190, 50, 39, 0.34); }
  to { box-shadow: 0 0 0 14px rgba(190, 50, 39, 0); }
}
.iconbtn--like.is-on { color: var(--seal-bright); animation: like-ripple 420ms var(--ease-ink); }
.iconbtn--like.is-on .ico { fill: currentColor; stroke-width: 2.1; }

/* 空状态：中心的墨圈极缓呼吸，免得一片死黑 */
.empty__mark { animation: breath 3.8s ease-in-out infinite; }
@keyframes breath {
  0%, 100% { opacity: 0.55; border-color: var(--line-strong); }
  50% { opacity: 0.95; border-color: var(--line-bamboo); }
}

/* 进度条末端：拖动时一颗小墨点散开 */
.track__thumb::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(190, 50, 39, 0.3), transparent 68%);
  opacity: 0;
  transition: opacity var(--dur-fast);
}
.track:hover .track__thumb::after,
.track:focus-visible .track__thumb::after { opacity: 1; }

/* ------------------------------------------------------------------ 底轴 */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--dock-h);
  z-index: var(--z-dock);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 520px) minmax(240px, 1fr);
  align-items: center;
  gap: var(--sp-4);
  padding: 0 var(--sp-5);
  background: var(--glass);
  backdrop-filter: var(--blur);
  border-top: 1px solid var(--line);
}
.dock::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-seal), transparent);
}

.dock__track { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.dock__cover {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-m);
  overflow: hidden;
  flex: none;
  background: var(--ink-3);
  box-shadow: var(--shadow-1);
}
.dock__cover-art { position: absolute; inset: 0; display: block; }
.dock__cover-art img,
.dock__cover-art .cover-svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.dock__cover-expand {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--paper);
  background: rgba(4, 7, 15, 0.6);
  opacity: 0;
  transition: opacity var(--dur-mid);
}
.dock__cover:hover .dock__cover-expand { opacity: 1; }
.dock__meta { min-width: 0; }
.dock__title { font-size: var(--fs-small); color: var(--paper); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock__sub { font-size: var(--fs-tiny); color: var(--paper-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock__badges { display: flex; gap: 6px; }
.dock__actions { display: flex; gap: 2px; margin-left: auto; }

.dock__center { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.transport { display: flex; align-items: center; gap: var(--sp-3); }

.playbtn {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--ink-0);
  box-shadow: 0 8px 26px -12px rgba(242, 245, 248, 0.5);
  transition: transform var(--dur-fast) var(--ease-settle), background var(--dur-fast);
}
.playbtn:hover { transform: scale(1.05); }
.playbtn:active { transform: scale(0.97); }
.playbtn .ico { width: 20px; height: 20px; }

/* 缓冲中：播放键套一圈墨环，同时把曲目副标题换成"缓冲中…" */
.playbtn.is-buffering::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(4, 7, 15, 0.18);
  border-top-color: var(--seal);
  animation: buffering-spin 900ms linear infinite;
}
@keyframes buffering-spin { to { transform: rotate(360deg); } }

body.is-buffering .dock__sub { color: var(--river); }
body.is-buffering .dock__sub::after {
  content: " · 缓冲中…";
  color: var(--river);
}
body.is-buffering .song.is-current .song__eq i { animation-play-state: paused; opacity: 0.35; }

.playbtn__pause { display: none; }
body.is-playing .playbtn__play { display: none; }
body.is-playing .playbtn__pause { display: block; }

.timeline { display: flex; align-items: center; gap: var(--sp-3); width: 100%; }
.timeline__t { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--paper-faint); flex: none; width: 40px; }
.timeline__t:last-child { text-align: right; }

.track { position: relative; flex: 1; height: 18px; display: flex; align-items: center; cursor: pointer; }
.track__rail { position: relative; width: 100%; height: 3px; border-radius: 99px; background: rgba(242, 245, 248, 0.13); overflow: hidden; }
.track__buffer { position: absolute; left: 0; top: 0; height: 3px; border-radius: 99px; background: rgba(242, 245, 248, 0.1); }
.track__fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--seal);
  border-radius: 99px;
  transition: width 120ms linear;
}
.track__thumb {
  position: absolute;
  left: 0;
  top: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  transform: translate(-50%, -50%) scale(0);
  transition: transform var(--dur-fast) var(--ease-settle);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.track:hover .track__thumb, .track:focus-visible .track__thumb { transform: translate(-50%, -50%) scale(1); }
.track--vol { max-width: 96px; flex: none; width: 96px; }
.track--vol .track__fill { background: var(--paper-dim); }
.track--vol:hover .track__fill { background: var(--paper); }

.dock__right { display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-2); }
.quality {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--paper-faint);
  margin-right: var(--sp-2);
  white-space: nowrap;
}
.quality.is-lossless { color: #7fe6d8; border-color: var(--line-seal); background: rgba(190, 50, 39, 0.1); }
.quality.is-hires { color: #e4ebf0; border-color: rgba(228, 235, 240, 0.34); background: rgba(228, 235, 240, 0.07); }

/* ------------------------------------------------------------------ 队列 */

.queue {
  position: fixed;
  right: var(--sp-4);
  bottom: calc(var(--dock-h) + var(--sp-3));
  width: min(380px, calc(100vw - 32px));
  max-height: min(62vh, 560px);
  z-index: var(--z-queue);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  animation: pop-in var(--dur-mid) var(--ease-settle) both;
}
@keyframes pop-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.queue__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.queue__head h2 { font-family: var(--font-cn-display); font-size: var(--fs-lead); letter-spacing: 0.1em; }
.queue__tools { display: flex; align-items: center; gap: var(--sp-2); }
.queue__list { overflow-y: auto; padding: var(--sp-2); }
.queue__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 7px var(--sp-2);
  border-radius: var(--radius-s);
  cursor: pointer;
  font-size: var(--fs-small);
  color: var(--paper-dim);
}
.queue__item:hover { background: var(--ink-3); color: var(--paper); }
.queue__item.is-current { color: var(--seal-bright); }
.queue__item em { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--paper-ghost); font-style: normal; }
.queue__item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue__item .queue__dur { margin-left: auto; font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--paper-ghost); }

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

.toasts {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock-h) + var(--sp-4));
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  align-items: center;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  max-width: min(520px, calc(100vw - 48px));
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-m);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--river);
  background: var(--glass);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-3);
  font-size: var(--fs-small);
  color: var(--paper-dim);
  animation: pop-in var(--dur-mid) var(--ease-settle) both;
}
.toast b { display: block; color: var(--paper); font-weight: 500; margin-bottom: 2px; }
.toast--error { border-left-color: var(--seal); }
.toast--warn { border-left-color: #d8a06a; }
.toast__close { color: var(--paper-ghost); }
.toast__close:hover { color: var(--paper); }

/* ------------------------------------------------------------------ 菜单 / 对话框 */

.menu {
  position: fixed;
  z-index: var(--z-menu);
  min-width: 188px;
  padding: var(--sp-1);
  border-radius: var(--radius-m);
  border: 1px solid var(--line-strong);
  background: var(--glass);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-3);
  animation: pop-in var(--dur-fast) var(--ease-settle) both;
}
.menu button {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  padding: 8px var(--sp-3);
  border-radius: var(--radius-s);
  font-size: var(--fs-small);
  color: var(--paper-dim);
  text-align: left;
}
.menu button:hover { background: var(--ink-3); color: var(--paper); }
.menu .ico { width: 15px; height: 15px; }
.menu hr { border: none; border-top: 1px solid var(--line); margin: var(--sp-1) 0; }

.dialog {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: var(--ink-1);
  color: var(--paper);
  padding: 0;
  width: min(460px, calc(100vw - 32px));
  box-shadow: var(--shadow-3);
}
.dialog::backdrop { background: rgba(4, 7, 15, 0.7); backdrop-filter: blur(6px); }
.dialog__inner { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-4); }
.dialog h2 { font-family: var(--font-cn-display); font-size: var(--fs-title); letter-spacing: 0.08em; }
.dialog p { font-size: var(--fs-small); color: var(--paper-faint); line-height: 1.8; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--fs-tiny); color: var(--paper-faint); letter-spacing: 0.1em; }
.field input, .field select, .field textarea {
  padding: 10px var(--sp-3);
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: var(--ink-0);
  color: var(--paper);
  outline: none;
  transition: border-color var(--dur-fast);
}
.field input:focus, .field select:focus { border-color: var(--line-seal); }
.dialog__actions { display: flex; justify-content: flex-end; gap: var(--sp-2); }

/* ------------------------------------------------------------------ 顶部滚动条 / 响应式 */

@media (max-width: 1080px) {
  :root { --rail-w: 76px; }
  .brand__text, .navlink span, .navlink__count, .rail__label, .gauge, .rail__meta, .playlist-link span, .playlist-link em { display: none; }
  .brand { justify-content: center; padding-bottom: var(--sp-3); }
  .navlink { justify-content: center; padding: 11px 0; }
  .navlink.is-active::before { left: -4px; }
  .rail__label { justify-content: center; }
  .rail__group--playlist { display: none; }
  .dock { grid-template-columns: minmax(0, 1fr) minmax(280px, 420px) auto; }
  .quality { display: none; }
}

@media (max-width: 820px) {
  :root { --dock-h: 76px; }
  .app { grid-template-columns: 1fr; }
  .rail-toggle { display: grid; }
  .rail {
    position: fixed;
    left: 0; top: 0; bottom: var(--dock-h);
    width: 240px;
    transform: translateX(-100%);
    transition: transform var(--dur-mid) var(--ease-settle);
    z-index: var(--z-queue);
    box-shadow: var(--shadow-3);
  }
  .rail.is-open { transform: none; }
  .brand__text, .navlink span, .navlink__count, .rail__label span, .gauge, .rail__meta { display: initial; }
  .rail__label { display: flex; }
  .navlink { justify-content: flex-start; padding: 9px 8px; }
  .view { padding: 0 var(--sp-4) 120px; }
  .topbar { padding: var(--sp-3) var(--sp-4); }
  /* 原来写的是 width: 100% —— 在弹性行里它会去和右侧工具抢宽度，
     抢赢的结果是按钮被压到一个字宽、竖着排。改成"占满剩余空间"。 */
  .search { flex: 1 1 auto; width: auto; min-width: 0; }
  .hero { grid-template-columns: 1fr; }
  .hero__right, .hero__monastery { display: none; }
  .detail { grid-template-columns: 1fr; }
  .songlist__head { display: none; }
  .song { grid-template-columns: 30px minmax(0, 1fr) 58px 34px; }
  .song__ridge, .song__quality { display: none; }
  .dock { display: flex; gap: var(--sp-2); padding: 0 var(--sp-3); }
  .dock__track { flex: 1; min-width: 0; }
  .dock__badges, .dock__actions, .dock__right .quality, #queueBtn, #stageBtn, #shuffleBtn, #repeatBtn, .track--vol { display: none; }
  .dock__center { display: flex; flex: none; }
  .timeline { display: none; }
  .transport { gap: var(--sp-2); }
}

/* 极窄屏：只留最重要的东西 */
@media (max-width: 560px) {
  .dock__cover { width: 44px; height: 44px; }
  .dock__sub { display: none; }
}

/* ═══════════════════════════════════════════════════════════ 菜单栏 · 鎏金

   判断：整条栏填金是灾难——金字压金底，对比全垮，而且俗。
   藏地本来就是"鎏边不鎏面"：金顶只是压一道边，不是整块金。
   所以金在这条栏上只做三件事：
     1. 一条鎏金细边（右缘），像经卷的包边
     2. 分组标题用金——字号最小、最不吵，却一下就把"这是菜单"点出来
     3. 当前项 = 金 + 左侧一道金标 + 一点金雾底；悬停 = 金
   其余仍是夜靛与纸白。金是线，不是面。 */

/* 右缘鎏金细边 */
.rail::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold) 12%, var(--gold-bright) 50%, var(--gold) 88%, transparent);
  opacity: 0.42;
  pointer-events: none;
}

/* 分组标题：金，字距再拉开一点 */
.rail__label {
  color: var(--gold);
  opacity: 0.82;
  text-shadow: 0 0 18px rgba(200, 162, 83, 0.22);
}

/* 品牌块下面压一道金线，像钤印之后的界栏 */
.rail__brand {
  border-bottom: 1px solid rgba(200, 162, 83, 0.28);
  padding-bottom: var(--sp-4);
}

/* 链接：悬停转金 */
.navlink { transition: color var(--dur-fast), background var(--dur-fast), padding-left var(--dur-mid) var(--ease-settle); }
.navlink:hover { color: var(--gold-bright); background: var(--ink-2); padding-left: calc(var(--sp-2) + 3px); }
.navlink:hover .ico { color: var(--gold); opacity: 0.95; }

/* 当前项：金 + 左侧金标 + 一层金雾底 */
.navlink.is-active {
  color: var(--gold-bright);
  background: linear-gradient(90deg, rgba(200, 162, 83, 0.14), rgba(200, 162, 83, 0.04) 62%, transparent);
}
.navlink.is-active .ico { color: var(--gold-bright); opacity: 1; }
.navlink.is-active .navlink__count { color: var(--gold); opacity: 0.8; }

/* 底部百分比：栏里唯一的大数字，用金收住 */
.rail__foot .gauge__value { color: var(--gold-bright); }

/* ═══════════════════════════════════════════════════ 字体 · 发丝几何（分级）

   参考图那种极细几何无衬线，只在大字上成立。
   小字（列表行、按钮、设置项）保持 300 以上——11px 的发丝字在暗底上会消失。
   封面上的"一字"仍用宋体：那是画面元素，不是界面字。 */

/* 大字：发丝 + 几何 + 宽字距 */
.masthead__brand,
.masthead__ip,
.join__title,
.songgroup__name,
.card__title,
.hero__stats .stat__value,
.settings__value {
  font-family: var(--font-thin);
  font-weight: var(--w-thin);
  letter-spacing: var(--track-display);
  -webkit-font-smoothing: antialiased;
}

/* 署名再轻一档：它是全站最大的字 */
.masthead__brand { font-weight: var(--w-hairline); letter-spacing: 0.2em; }

/* 菜单栏：分组标题发丝，链接保持 300（可读下限） */
.rail__label { font-family: var(--font-thin); font-weight: var(--w-light, 300); }
.navlink { font-family: var(--font-thin); font-weight: 300; letter-spacing: 0.04em; }

/* 分节标题的副标题（如"按文件时间排序"）保持原来的 UI 字 */
.join__sub { font-family: var(--font-cn-ui); font-weight: 400; }

/* 页面标题（歌曲 / 专辑 / 艺术家 / 设置） */
.pagehead__title {
  font-family: var(--font-thin);
  font-weight: var(--w-thin);
  letter-spacing: var(--track-display);
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════ 玻璃质感 + 菜单栏立体

   玻璃的三件套：半透明底 + backdrop 模糊 + 一道极细的高光边。
   缺了高光边，半透明只会读成"发灰"，不会读成"玻璃"。 */

/* 注意：不要把 backdrop-filter 加在 .stage__info 这类"浮在画面中间"的元素上。
   它模糊的是元素自身的矩形区域，于是舞台正中会出现一块可见的毛玻璃方块。
   玻璃只用在真正是"面板"的地方：菜单栏、顶栏、底轴、队列、卡片封面。 */
.rail,
.topbar,
.dock,
.queue,
.card__art {
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
}

/* 舞台上的信息块只用一层软暗底保证可读，不做玻璃 */
.stage__info { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* 菜单栏：玻璃面板 + 右缘高光 + 立体投影 */
.rail {
  background:
    linear-gradient(180deg, rgba(12, 27, 46, 0.72), rgba(6, 12, 27, 0.86));
  border-right: 1px solid rgba(242, 245, 248, 0.08);
  box-shadow:
    inset 1px 0 0 rgba(242, 245, 248, 0.05),
    inset -1px 0 0 rgba(0, 0, 0, 0.5),
    18px 0 40px -24px rgba(0, 0, 0, 0.9);
  /* 立体：整条栏有透视，子项才能真的"浮起来" */
  perspective: 700px;
  perspective-origin: left center;
}

/* 顶栏与底轴同样玻璃化 */
.topbar {
  background: linear-gradient(180deg, rgba(10, 20, 40, 0.66), rgba(6, 12, 27, 0.78));
  border-bottom: 1px solid rgba(242, 245, 248, 0.07);
}
.dock {
  background: linear-gradient(180deg, rgba(12, 27, 46, 0.78), rgba(4, 7, 15, 0.9));
  border-top: 1px solid rgba(242, 245, 248, 0.09);
  box-shadow: 0 -18px 48px -26px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(242, 245, 248, 0.06);
}

/* ── 菜单项：立体 + 有动画 ──
   一层"侧墙"（::after 的渐变）造成厚度错觉，悬停时整块转出并抬起。 */
.navlink {
  position: relative;
  transform-style: preserve-3d;
  transition:
    transform 280ms var(--ease-settle),
    box-shadow 280ms var(--ease-settle),
    background 200ms linear,
    color 200ms linear;
  box-shadow: 0 1px 0 rgba(242, 245, 248, 0.03);
}
.navlink:hover {
  transform: translateZ(14px) translateX(3px);
  box-shadow:
    0 10px 20px -12px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(242, 245, 248, 0.1),
    0 0 0 1px rgba(232, 200, 126, 0.16);
}
.navlink.is-active {
  transform: translateZ(8px);
  box-shadow:
    0 12px 26px -14px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(242, 245, 248, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}

/* 掠过的高光：悬停时一道柔光自左向右扫过，像金箔反光 */
.navlink::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(100deg, transparent 30%, rgba(232, 200, 126, 0.16) 50%, transparent 70%);
  background-size: 220% 100%;
  background-position: 130% 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms linear;
}
.navlink:hover::after,
.navlink.is-active::after {
  opacity: 1;
  animation: rail-sheen 1400ms var(--ease-ink) infinite;
}
@keyframes rail-sheen {
  from { background-position: 130% 0; }
  to { background-position: -30% 0; }
}

/* 菜单栏图标：悬停时轻微抬起，强化立体 */
.navlink .ico { transition: transform 280ms var(--ease-settle); }
.navlink:hover .ico { transform: translateZ(6px) scale(1.06); }

/* 卡片与面板也吃一层玻璃 */
.card {
  border-radius: var(--radius-l);
  transition: transform 280ms var(--ease-settle), box-shadow 280ms var(--ease-settle);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(232, 200, 126, 0.1);
}
.songlist, .panel {
  background: linear-gradient(180deg, rgba(12, 27, 46, 0.4), rgba(6, 12, 27, 0.28));
  border: 1px solid rgba(242, 245, 248, 0.06);
  border-radius: var(--radius-l);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ═══════════ 窄屏 / iOS 滚动与安全区 ═══════════ */
.view {
  /* iOS 上必须有这个才有惯性滚动；否则手指划动会被当成"没有可滚内容" */
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
@media (max-width: 860px) {
  /* 刘海屏底部：播放条不能被 Home Indicator 压住 */
  .dock { padding-bottom: max(env(safe-area-inset-bottom), 6px); }
  .rail { padding-top: max(env(safe-area-inset-top), 12px); }
  /* 给列表留出播放条的高度，最后一行才点得到 */
  .view { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
}

/* ═══════════════════════════════════════════════════════════════
   统一语言（对齐参考图）：深中性底 · 白字 · 一个朱砂强调色 · 只用线分隔
   原则：删掉所有装饰性效果（玻璃、金线堆叠、噪点、多层辉光），
   层次只由【留白 + 发丝线 + 一处强调色】建立。
   ═══════════════════════════════════════════════════════════════ */

/* 1 · 全面去玻璃模糊 */
.rail, .topbar, .dock, .queue, .card, .card__art, .songlist, .panel, .stage__info {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-image: none !important;
}

/* 2 · 桌面底色：一种颜色，不分层 */
body, .app, .canvas, .view { background: #0b0b0d !important; }

/* 3 · 三块面板：纯色 + 一条发丝线，不要阴影 */
.panel, .songlist, .card, .queue {
  background: #101012 !important;
  border: 1px solid rgba(255, 255, 255, 0.055) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}
.rail { background: #0a0a0c !important; border-right: 1px solid rgba(255, 255, 255, 0.05) !important; box-shadow: none !important; }
.topbar { background: #0b0b0d !important; border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important; box-shadow: none !important; }
.dock { background: #0b0b0d !important; border-top: 1px solid rgba(255, 255, 255, 0.05) !important; box-shadow: none !important; }

/* 4 · 去掉金色装饰：文字回到白/灰，强调只留朱砂 */
.rail__label { color: rgba(255, 255, 255, 0.36) !important; letter-spacing: 0.2em !important; }
.brand__name, .navlink, .navlink span { color: rgba(255, 255, 255, 0.78) !important; }
.navlink:hover { color: #fff !important; }
.navlink.is-active, .navlink[aria-current] { color: #fff !important; background: rgba(255, 255, 255, 0.06) !important; }
.navlink.is-active::before, .navlink[aria-current]::before { background: #e0574a !important; }
.navlink__count { color: rgba(255, 255, 255, 0.32) !important; }
.rail::after, .rail-sheen, .rail__before { display: none !important; }

/* 5 · 列表：发丝分隔线 + 悬停极淡叠加，当前行用朱砂 */
.song { border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important; }
.song:hover { background: rgba(255, 255, 255, 0.035) !important; }
.song.is-current { background: rgba(224, 87, 74, 0.10) !important; }
.song.is-current .song__title { color: #fff !important; }
.song__title, .song__artist { color: rgba(255, 255, 255, 0.9) !important; }
.song__artist { color: rgba(255, 255, 255, 0.45) !important; }
.song__num, .song__time, .song__album { color: rgba(255, 255, 255, 0.35) !important; }

/* 6 · 徽标与按钮：细线、无色（去掉金边与实心块）
   ⚠ 2026-10-01：把 .badge 从这个名单里摘出去了。
   徽标是**参数**，颜色就是它的信息量（哪一档音质、是否在线）——
   抹成同一种白之后，一排曲目右端的标签就全无分别了。按钮类保持无色不变。 */
.tag, .chip, .chipbtn, .srcchip, .quality, .iconbtn {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  box-shadow: none !important;
}
.chipbtn.is-active { border-color: rgba(224, 87, 74, 0.5) !important; color: #e0574a !important; }

/* 7 · 封面：去金边，只留一条发丝线 */
.card__art, .song__thumb, .cover { box-shadow: none !important; border: 1px solid rgba(255, 255, 255, 0.06) !important; }

/* 8 · 主色块（播放全部等）：一个强调色，不要金 */
.btn-primary, .btn--seal { background: #e0574a !important; border: none !important; color: #fff !important; }

/* 9 · 滚动条：细、暗，不抢视线 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ═══════════ 参考风格 · 第二批：播放条 与 首页 ═══════════
   参考图共同点：控制区一律细白线；播放键是大的圆形描边；
   进度条 3px + 白色小圆点；界面主体是封面，不是装饰。 */

/* ── 底部播放条 ── */
.dock .iconbtn { color: rgba(255, 255, 255, 0.82) !important; }
.dock .iconbtn:hover { color: #fff !important; }
.dock .playbtn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: transparent !important;
  border: 1.6px solid rgba(255, 255, 255, 0.85) !important;
  display: grid;
  place-items: center;
  box-shadow: none !important;
}
.dock .playbtn svg { width: 20px; height: 20px; fill: #fff !important; }
.dock .timeline__rail { height: 3px !important; background: rgba(255, 255, 255, 0.2) !important; border-radius: 2px !important; }
.dock .timeline__fill { background: #fff !important; border-radius: 2px !important; }
.dock .timeline__thumb {
  width: 11px !important; height: 11px !important;
  background: #fff !important; border: none !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
}
.dock__cover { border-radius: 8px !important; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.07) !important; }
.dock .quality, .dock__badges .tag { background: transparent !important; border: 1px solid rgba(255, 255, 255, 0.14) !important; color: rgba(255, 255, 255, 0.75) !important; }

/* ── 首页：以封面为主体，删掉装饰场景与金字标题 ── */
.hero__monastery, .hero__wash, .stage__monastery, .monastery { display: none !important; }
.hero { background: none !important; border: none !important; }
.hero__title, .hero__name, .masthead__title { color: #fff !important; letter-spacing: 0.02em !important; }
.hero__tagline, .hero__sub, .masthead__sub { color: rgba(255, 255, 255, 0.45) !important; }

/* ── 卡片与封面：干净、无金边、悬停只做极淡提亮 ── */
.card {
  background: #101012 !important;
  border: 1px solid rgba(255, 255, 255, 0.055) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}
.card:hover { border-color: rgba(255, 255, 255, 0.12) !important; transform: none !important; }
.card__art { border-radius: 10px !important; }
.card__title { color: rgba(255, 255, 255, 0.92) !important; }
.card__sub, .card__meta { color: rgba(255, 255, 255, 0.45) !important; }

/* ── 分组标题：发丝线 + 小字距，去掉金色 ── */
.group__title, .section__title, .panel__title, h1, h2, h3 { color: #fff !important; }
.group__title, .section__title { letter-spacing: 0.08em !important; border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important; padding-bottom: 8px !important; }

/* ═══════════ 参考风格 · 第三批：其余页面统一 ═══════════
   搜索页 / 专辑详情 / 艺术家 / 我喜欢 / 最近播放 / 设置 / 队列
   同一套规则：单色底 · 白字灰辅 · 发丝线 · 朱砂唯一强调 · 无金无玻璃 */

.view h1, .view h2, .view h3, .panel__title, .detail__title { color: #fff !important; font-weight: 500 !important; }
.panel__hint, .muted, .detail__sub, .detail__meta { color: rgba(255, 255, 255, 0.42) !important; }

/* 表单：暗色输入框 + 细线，去掉一切内阴影与发光 */
.field label { color: rgba(255, 255, 255, 0.5) !important; font-size: 12px !important; letter-spacing: 0.06em !important; }
input, textarea, select, .field input, .field textarea, .search input {
  background: #0e0e10 !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  color: #fff !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}
input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, 0.28) !important; }
input:focus, textarea:focus { border-color: rgba(224, 87, 74, 0.55) !important; outline: none !important; }

/* 按钮：默认细线无色；主按钮才用朱砂 */
.view button, .panel button, .detail button {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}
.view button:hover, .panel button:hover { border-color: rgba(255, 255, 255, 0.3) !important; color: #fff !important; }
.view button.btn-primary, .view .btn--seal { background: #e0574a !important; border-color: #e0574a !important; color: #fff !important; }

/* 列表表头与空状态：压低存在感 */
.songlist__head, .songlist__head span, .list__head { color: rgba(255, 255, 255, 0.3) !important; letter-spacing: 0.12em !important; }
.empty, .empty__text, .empty__title { color: rgba(255, 255, 255, 0.34) !important; }

/* 队列 / 歌单条目：发丝分隔 */
.queue, .queue__item, .playlist-link { border-color: rgba(255, 255, 255, 0.06) !important; background: transparent !important; }
.queue__item:hover, .playlist-link:hover { background: rgba(255, 255, 255, 0.035) !important; }

/* 详情页头图：去金边、去渐变边框 */
.detail__head, .detail__hero, .album__head { border-color: rgba(255, 255, 255, 0.06) !important; background-image: none !important; box-shadow: none !important; }

/* 全站：任何残留的金色描边/文字压回白灰（朱砂除外） */
[style*="#c8a253"], [style*="#e8c87e"] { color: rgba(255, 255, 255, 0.8) !important; }

/* ═══════════ 亮度与质地 总修（用户：太暗、没质感）═══════════
   原则：把"近黑"抬成"暖深灰"，并让每个面有可见的材质层次
   （顶部一层微光 + 一条边线 + 暖色渐变），而不是纯黑平铺。 */

/* ① 基础亮度：近黑 → 暖深灰（亮度约提升一倍） */
body, .app, .canvas, .view { background: #17161c !important; }
.rail { background: #121116 !important; }
.topbar, .dock { background: #141319 !important; }

/* ② 面板：暖色微渐变 + 顶高光 + 边线 = 材质感（不是纯色块） */
.panel, .songlist, .card, .queue {
  background: linear-gradient(180deg, #221f28 0%, #1b1a20 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.085) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 28px -20px rgba(0, 0, 0, 0.9) !important;
}
.card:hover { border-color: rgba(255, 255, 255, 0.16) !important; background: linear-gradient(180deg, #26232c 0%, #1e1c23 100%) !important; }

/* ③ 辅助文字提亮（暗底上 0.3 的灰几乎看不见） */
.song__artist, .song__album, .panel__hint, .muted, .card__sub, .card__meta, .hero__tagline {
  color: rgba(255, 255, 255, 0.55) !important;
}
.song__num, .song__time, .songlist__head, .songlist__head span { color: rgba(255, 255, 255, 0.42) !important; }

/* ④ 分隔线稍微可见一点（原来 0.04 几乎不存在） */
.song { border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important; }

/* ═══════════ 暗部优化：深色里要看得见层次 ═══════════
   目标不是"整体变亮"，而是把暗部从"一团黑"改成"有阶调的深"。
   做法：最深值带颜色 + 暗部色阶拉开三档 + 阴影减淡 + 边缘分离。 */

/* ① 最深值：从近黑改成有颜色的深（藏青/墨），底色分三档 */
body, .app, .canvas, .view { background: #1b2130 !important; }        /* 底：藏青一档 */
.rail { background: #161b27 !important; }                             /* 导航：再深一档 */
.topbar, .dock { background: #1a1f2c !important; }                    /* 顶栏/播放条：中间档 */

/* ② 面板：暗部色阶拉开（不是同一块灰），并给顶边一道微光做"分离" */
.panel, .songlist, .card, .queue {
  background: linear-gradient(180deg, #232a3a 0%, #1d2331 100%) !important;
  border: 1px solid rgba(200, 214, 240, 0.10) !important;
  box-shadow: inset 0 1px 0 rgba(220, 232, 255, 0.07) !important;      /* 顶边微光：暗部细节 */
}

/* ③ 阴影：减淡、带颜色（纯黑阴影会把暗部压死） */
.deck__platter { box-shadow: 0 26px 52px -20px rgba(4, 8, 18, 0.66) !important; }
.card, .panel, .songlist { box-shadow: inset 0 1px 0 rgba(220, 232, 255, 0.07) !important; }

/* ④ 暗底上的次级信息：不再消失 */
.song__num, .song__time, .song__album, .songlist__head, .songlist__head span { color: rgba(224, 232, 246, 0.48) !important; }
.song__artist, .card__sub, .card__meta, .muted, .panel__hint { color: rgba(224, 232, 246, 0.62) !important; }
.song__title, .card__title { color: rgba(240, 246, 255, 0.94) !important; }

/* ⑤ 分隔线：暗部里要"看得见但不抢" */
.song { border-bottom: 1px solid rgba(200, 214, 240, 0.075) !important; }

/* ═══════════ 全站统一到青蓝 + 磨砂（与唱片页同一材质）═══════════
   外壳用青蓝磨砂底；面板/侧栏/播放条用"更深的同色系半透明"分层，
   这样既是一个材料体系，也不会出现白底白字那类反差事故。 */

body, .app, .canvas, .view {
  background-color: #2a7280;
  background-image:
    url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23f)' opacity='0.5'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #2f7d8c 0%, #276a78 46%, #1d5563 100%);
  background-size: 180px 180px, cover;
  background-blend-mode: overlay, normal;
  background-attachment: fixed, fixed;
}

/* 侧栏 / 顶栏 / 播放条：同色系更深一档（不是另一种颜色的块） */
.rail { background: rgba(8, 30, 38, 0.58) !important; border-right: 1px solid rgba(236, 245, 250, 0.14) !important; }
.topbar, .dock { background: rgba(8, 30, 38, 0.64) !important; border-color: rgba(236, 245, 250, 0.14) !important; }

/* 面板与卡片：半透明深青蓝，能透出底下的磨砂 */
.panel, .songlist, .card, .queue {
  background: rgba(8, 30, 38, 0.42) !important;
  border: 1px solid rgba(236, 245, 250, 0.14) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

/* 文字：冷底上提亮一档 */
.card__title, .view h1, .view h2, .view h3, .panel__title { color: #f2fafd !important; }
/* 歌名单独给纯白：列表里标题要和灰色副行拉开层级（参考主流音乐 App 的列表观感） */
.song__title { color: #ffffff !important; }
.song__artist, .card__sub, .card__meta, .muted, .panel__hint { color: rgba(236, 245, 250, 0.68) !important; }
.song__num, .song__time, .song__album, .songlist__head span { color: rgba(236, 245, 250, 0.5) !important; }
.song { border-bottom: 1px solid rgba(236, 245, 250, 0.10) !important; }
.song:hover { background: rgba(236, 245, 250, 0.06) !important; }
.song.is-current { background: rgba(192, 57, 43, 0.16) !important; }
/* 徽标/按钮：半透明白描边（冷底上比灰线清楚） */
/* 同上：这里也必须把 .badge 摘出去，否则上面的调色板会被再抹一次 */
.tag, .chip, .chipbtn, .srcchip, .iconbtn { border-color: rgba(236, 245, 250, 0.2) !important; color: rgba(236, 245, 250, 0.85) !important; }

/* ═══════════ 播放条控件金属化（金环 + 高光 + 转动光效）═══════════
   每个圆钮做成一枚金属件：金环 + 顶高光 + 底暗衬（倒角感），
   再叠一层缓慢旋转的高光扫过（光效），播放键额外给一圈金辉。 */

.dock .iconbtn,
.dock .playbtn {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  background:
    linear-gradient(160deg, #4a3a16 0%, #7d6420 38%, #3b2f12 72%, #241d0d 100%) !important;
  border: 1.5px solid rgba(232, 200, 126, 0.78) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 242, 196, 0.5),      /* 顶高光 */
    inset 0 -3px 7px rgba(0, 0, 0, 0.55),        /* 底暗衬（倒角） */
    0 0 18px -7px rgba(201, 162, 39, 0.6) !important;   /* 金色外溢 */
  color: #f7e8b8 !important;
}
.dock .iconbtn svg,
.dock .playbtn svg { fill: #f7e8b8 !important; color: #f7e8b8 !important; stroke: #f7e8b8 !important; }

/* 转动的高光：一圈很窄的亮弧缓慢扫过（动画光效） */
.dock .iconbtn::after,
.dock .playbtn::after {
  content: "";
  position: absolute;
  inset: -45%;
  background: conic-gradient(from 0deg,
    rgba(255, 246, 214, 0) 0deg 38deg,
    rgba(255, 250, 226, 0.55) 48deg,
    rgba(255, 246, 214, 0) 60deg 360deg);
  animation: dockSheen 3.6s linear infinite;
  pointer-events: none;
}
@keyframes dockSheen { to { transform: rotate(360deg); } }
/* 尊重"减少动效"偏好 */
@media (prefers-reduced-motion: reduce) {
  .dock .iconbtn::after, .dock .playbtn::after { animation: none; }
}

/* 播放键：加粗一圈 + 更强的金辉（它是主角） */
.dock .playbtn {
  border-width: 2px !important;
  box-shadow:
    inset 0 2px 0 rgba(255, 244, 200, 0.55),
    inset 0 -3px 8px rgba(0, 0, 0, 0.6),
    0 0 34px -6px rgba(232, 200, 126, 0.75) !important;
}
/* 进度条也换成金属刻度感（金底 + 亮金填充） */
.dock .timeline__rail { background: rgba(201, 162, 39, 0.28) !important; }
.dock .timeline__fill { background: linear-gradient(90deg, #a8851f, #ffeaa8) !important; }
.dock .timeline__thumb {
  background: radial-gradient(circle at 34% 30%, #fff6d6, #c9a227 62%, #7a5c14 100%) !important;
  box-shadow: 0 0 0 1px rgba(90, 70, 20, 0.9), 0 1px 4px rgba(0, 0, 0, 0.5) !important;
}
/* 时间数字：暖金 */
.dock .timeline__t, .dock__meta, .dock .quality { color: rgba(247, 232, 184, 0.75) !important; }

/* ═══════════ 播放条改回与黑胶同一套材料（替换金色版）═══════════
   为什么换：金色控件压在青蓝磨砂底上不搭 ✗
   新方案：控件 = 哑光黑胶材料（与唱片同一质感）+ 一丝金边（呼应盘边两圈金）
          + 白图标；去掉转动光效，只留静态的顶高光与倒角。 */

.dock .iconbtn,
.dock .playbtn {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 62%),
    linear-gradient(170deg, #22262c 0%, #171a20 52%, #101318 100%) !important;
  border: 1px solid rgba(201, 162, 39, 0.45) !important;   /* 一丝金边，呼应盘边 */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -2px 6px rgba(0, 0, 0, 0.6) !important;
  color: rgba(240, 246, 252, 0.92) !important;
}
.dock .iconbtn svg,
.dock .playbtn svg { fill: rgba(240, 246, 252, 0.92) !important; color: rgba(240, 246, 252, 0.92) !important; stroke: rgba(240, 246, 252, 0.92) !important; }

/* 去掉转动光效（它和这套材料的静定气质不符） */
.dock .iconbtn::after,
.dock .playbtn::after { content: none !important; animation: none !important; }

.dock .iconbtn:hover {
  border-color: rgba(201, 162, 39, 0.8) !important;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 62%),
    linear-gradient(170deg, #2a2f37 0%, #1d2128 52%, #14171c 100%) !important;
}

/* 播放键：黑胶小盘 + 一圈更清楚的金边 + 白三角 */
.dock .playbtn {
  border-width: 1.5px !important;
  border-color: rgba(232, 200, 126, 0.7) !important;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 58%),
    radial-gradient(circle at 50% 50%, #1c2027 0%, #12151a 70%, #0c0e12 100%) !important;
}

/* 进度条：细白线 + 白点（清楚、不抢） */
.dock .timeline__rail { background: rgba(236, 245, 250, 0.22) !important; }
.dock .timeline__fill { background: rgba(240, 246, 252, 0.92) !important; }
.dock .timeline__thumb {
  background: #f2f6fa !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.55) !important;
}
.dock .timeline__t, .dock__meta, .dock .quality { color: rgba(236, 245, 250, 0.62) !important; }

/* ═══════════ 输入框：白线（替换朱砂红描边）═══════════ */
input, textarea, select, .field input, .field textarea,
.search input, .search, .online__search input, .online__search {
  background: rgba(8, 30, 38, 0.42) !important;
  border: 1px solid rgba(236, 245, 250, 0.30) !important;
  color: #f2fafd !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}
input::placeholder, textarea::placeholder { color: rgba(236, 245, 250, 0.42) !important; }
/* 聚焦：白线提亮一档 + 一道很淡的白晕（不再用红） */
input:focus, textarea:focus, select:focus,
.search:focus-within, .online__search:focus-within {
  border-color: rgba(242, 250, 253, 0.9) !important;
  box-shadow: 0 0 0 3px rgba(236, 245, 250, 0.12) !important;
  outline: none !important;
}
/* 搜索框里的放大镜图标也用白 */
.search__ico, .online__search .ico { color: rgba(236, 245, 250, 0.7) !important; stroke: currentColor !important; }

/* ═══════════ 首页版式重排 ═══════════
   原状：卡片偏小、横向一排挤在左边、标题被截断、底部一大片空。
   改法：用 :has() 找到"装着 .card 的容器"，直接改成自适应网格；
        卡片放大到 1:1、标题允许两行、区块间距与底部留白加大。 */

/* ① 卡片容器 → 自适应网格（不管它原本叫什么类名） */
.view :is(section, div, ul, ol):has(> .card) {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)) !important;
  gap: 22px 20px !important;
  align-items: start !important;
}
/* ② 卡片本体：去掉多余内边距，封面做成正方形 */
.card { padding: 0 !important; background: none !important; border: none !important; box-shadow: none !important; border-radius: 0 !important; }
.card__art {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  border: 1px solid rgba(236, 245, 250, 0.10) !important;
}
.card__art svg, .card__art img { width: 100% !important; height: 100% !important; display: block !important; }
/* ③ 文字：允许两行，不再被截成一截 */
.card__title {
  margin-top: 10px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  color: #f2fafd !important;
}
.card__sub {
  font-size: 12px !important;
  line-height: 1.5 !important;
  white-space: normal !important;
  overflow: visible !important;
  color: rgba(236, 245, 250, 0.55) !important;
}
/* ④ 区块节奏：标题与内容之间、区块与区块之间，留白加大 */
.view section, .view > div { margin-bottom: 8px !important; }
.view h2, .view .section__title, .view .group__title { margin: 30px 0 14px !important; }
.view { padding-bottom: 56px !important; }
/* ⑤ 首屏 hero 压缩一点，把空间让给卡片 */
.hero { padding: 20px 0 6px !important; }

/* ═══════════ 性能：全站外壳的合成层优化 ═══════════ */
body, .app, .canvas, .view { backface-visibility: hidden; }
/* 噪点层固定，不随滚动重绘 */
body { background-attachment: fixed !important; }
/* 卡片封面：只在悬停时提升，平时不占合成层 */
.card__art { contain: content; }
.card:hover .card__art { will-change: transform; }
/* 播放条与侧栏：固定层，避免滚动时重绘
   ⚠ translateZ(0) 只能在桌面端生效：移动端（≤820px）的 .rail 是靠
   transform: translateX(-100%) 收成抽屉的，而这条规则在文件更后面、又没有媒体查询，
   会把抽屉的 transform 整个盖掉 —— 左侧栏于是不退到屏外，直接压在歌曲列表上
   （手机端看起来就是"整页错位"）。抽屉本身就有 transform，不需要这层提示。 */
.rail, .topbar, .dock { backface-visibility: hidden; }
@media (min-width: 821px) {
  .rail, .topbar, .dock { transform: translateZ(0); }
}
/* 列表行：限制重绘范围（21 行×波形，滚动时最贵） */
.song { contain: layout paint style; }

/* ═══════════ 对话框收小（文件信息面板太占屏）═══════════ */
.dialog, .dialog__card, .modal, .sheet {
  width: min(92vw, 470px) !important;
  max-width: 470px !important;
  max-height: 76vh !important;
  overflow-y: auto !important;
  padding: 22px 24px !important;
  border-radius: 14px !important;
}
.dialog__title, .dialog h2, .dialog h3 { font-size: 17px !important; margin: 0 0 14px !important; }
/* 字段行：更紧凑 */
.dialog .field, .dialog .row, .dialog .info__row, .dialog .kv {
  padding: 9px 0 !important;
  font-size: 13px !important;
}
.dialog .field label, .dialog .row label, .dialog .kv label { font-size: 12px !important; color: rgba(236,245,250,0.55) !important; }
.dialog .field span, .dialog .row span, .dialog .kv span { font-size: 13px !important; }
/* 分组标题 */
.dialog h4, .dialog .group__title, .dialog .section__title { font-size: 13px !important; margin: 16px 0 8px !important; letter-spacing: 0.06em !important; }
/* 两列网格：间距与卡片一并收小 */
.dialog .grid, .dialog__grid, .dialog .fields { gap: 8px !important; }
.dialog .grid > *, .dialog__grid > *, .dialog .field--box {
  padding: 8px 10px !important;
  min-height: auto !important;
  font-size: 12px !important;
}
.dialog .actions, .dialog__actions { margin-top: 16px !important; gap: 10px !important; }
.dialog button { padding: 8px 16px !important; font-size: 13px !important; }

/* ═══════════ 对话框收小 · 兜底版（覆盖所有可能的容器类名）═══════════ */
[class*="dialog"], [class*="modal"], [class*="overlay"], [role="dialog"],
.dialog, .modal, .sheet, .popover {
  max-width: min(92vw, 460px) !important;
}
/* 只对"卡片本体"限制高度与内边距，避免把遮罩层也压小 */
[class*="dialog"] > *, [class*="overlay"] > *, [role="dialog"] > * {
  max-height: 78vh !important;
}
[class*="dialog__card"], [class*="dialog-box"], .sheet { overflow-y: auto !important; }
/* 内层的规格网格：两列更紧凑、单格更小 */
.specs { gap: 8px !important; }
.spec {
  padding: 9px 11px !important;
  min-height: 58px !important;
  font-size: 12px !important;
  border-radius: 10px !important;
}
/* 弹窗内的"读数"（文件信息里的位深/采样率那种）。
   2026-10-10：原来硬写 11 / 13，是全站仅剩的两处"不跟令牌走"的小字；
   统一交给 --fs-micro / --fs-small（13 / 15），这样整档抬起的动作能覆盖到弹窗。 */
.spec b, .spec__k { font-size: var(--fs-micro) !important; }
.spec span, .spec__v { font-size: var(--fs-small) !important; }
/* 键值行与字段行整体收小 */
.kv, .field { padding: 8px 0 !important; font-size: var(--fs-small) !important; }
.dialog__actions { margin-top: 14px !important; gap: 10px !important; }
.dialog__actions button, .ghostbtn, .solidbtn { padding: 8px 16px !important; font-size: var(--fs-small) !important; }

/* ═══════════ 关注歌手 · 新作品卡片 ═══════════ */
.watch-card {
  margin: 4px 0 22px !important;
  padding: 16px 18px !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(8,30,38,0.55), rgba(8,30,38,0.38)) !important;
  border: 1px solid rgba(201, 162, 39, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06) !important;
}
.watch-card__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.watch-card__title { font-size: 17px; color: #f2fafd; letter-spacing: 0.02em; }
.watch-card__badge {
  font-style: normal; font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: rgba(224, 87, 74, 0.22); border: 1px solid rgba(224, 87, 74, 0.6); color: #ffd9d3;
}
.watch-card__meta { font-size: 12px; color: rgba(236,245,250,0.55); margin-left: auto; }
.watch-card__news { margin: 12px 0 0 !important; padding: 0 0 0 16px !important; }
.watch-card__news li { font-size: 13px; color: rgba(236,245,250,0.82); line-height: 1.9; }
.watch-card__actions { margin-top: 12px; }
.watch-card__btn {
  display: inline-block; padding: 8px 16px; border-radius: 10px; font-size: 13px;
  border: 1px solid rgba(236,245,250,0.28); color: rgba(236,245,250,0.9); text-decoration: none;
}
.watch-card__btn:hover { border-color: rgba(201,162,39,0.8); color: #fff; }

/* ═══════════ 修：长标题冲进隔壁列（字幕穿插）═══════════
   原因：网格单元默认 min-width:auto，长标题不裁切就会撑开并压到相邻列 ✗
   修法：所有文字单元 min-width:0 + 单行省略号；容器本身也不许溢出。 */

/* 1 单元允许收缩 */
.song, .song__main, .song__text, .song__album, .song__quality, .song__time {
  min-width: 0 !important;
}
.song { overflow: hidden !important; }

/* 2 文字单元：单行 + 省略号，不再外溢 */
.song__title,
.song__artist,
.song__album,
.song__time,
.song__num {
  display: block !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* 3 标题与艺人现在并排一行，所以要按 flex 分配宽度，不能再各自 width:100%
   （那是竖排两行时的写法：各占满整行）。歌名按内容取宽，歌手吃掉剩余空间并省略。 */
.song__text { overflow: hidden !important; }
.song__text .song__title,
.song__text .song__artist {
  width: auto !important;
  min-width: 0 !important;
}
.song__text .song__title { flex: 0 1 auto !important; }
/* 歌手用 flex-basis:0：宽度不够时**先缩歌手**，歌名尽量保住（参考图的优先级也是这样） */
.song__text .song__artist { flex: 1 1 0 !important; }

/* 窄屏：一行放不下「歌手 · 专辑」两段，就只留歌手。
   专辑名在专辑页和唱片页都能看到，列表里让位给可读性。 */
@media (max-width: 700px) {
  .song__text .song__artist { max-width: 40% !important; }
}

/* 4 卡片标题同理（首页也出现过半截文字） */
.card__title, .card__sub { overflow: hidden !important; }

/* ═══════════ 曲目列表：宽屏多列（对齐参考图）═══════════

   参考图里歌单内容是**并排铺开**的，不是一首一行往下拉。窄屏自动退回单列
   （所以表头「序号/标题/声纹/音质/时长」只在单列时有意义，多列时收起）。

   格子里放不下两列独立空间，于是：
     · 序号去掉 —— 参考图也没有序号，封面本来就承担了"这块是什么"；
     · 山脊声纹从"独立一列"降为"行底纹" —— 格子再窄，每首歌的那座山不能丢。
   段标题（按音质分组时的 .songgroup）横跨整行，否则它会占掉一个格子。 */
@media (min-width: 1080px) {
  .songlist__head { display: none; }

  .songlist__body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    column-gap: 30px;
    min-width: 0;
  }

  /* 四列：标题 · 音质 · 时长 · 工具（本地与在线音源共用同一套，不再分叉）。
     去掉两样东西：
       · 序号 —— 多列里一列一个号毫无意义；
       · 在线音源那枚「来源」标记 —— 用多列的两处（音源页、首页在线预览）都是**单音源上下文**，
         来源是冗余的，而它占着位置会把歌名挤成「梦底 (lve) 张…」（实测）。时长比它有用，留下。 */
  /* ⚠️ 2026-10-05 修「看不到歌名」（普琼截图）：原模板是 minmax(0,1fr) auto 52px 92px，
     实测每行只有 352px，而徽标那列给了 52px、两个徽标实际要 97px → 徽标溢出 +
     歌名列能被压到 0（实测 .song__title 宽度 = 0px，文字 137px 全被吃掉）。
     现在：歌名列**保底 150px**（主信息优先），徽标列按实际宽度给（auto），
     徽标本身在多列里缩小一号。列数也从 340px 提到 380px，行不那么挤。 */
  .songlist__body .song { grid-template-columns: minmax(150px, 1fr) auto 44px auto; }
  /* 歌名与歌手**上下两行**（多列时一行塞不下两个：实测歌名 137px 之后歌手只剩 3px）。
     这也是网易云/汽水的做法：歌名在上、歌手在下，两行都能读全。 */
  .songlist__body .song__text {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    min-width: 0;
  }
  .songlist__body .song__title,
  .songlist__body .song__artist {
    max-width: 100%;
    min-width: 0;
    flex: 0 1 auto;
  }
  .songlist__body .song__quality { gap: 4px; }
  .songlist__body .badge {
    padding: 0 6px;
    font-size: 11px;
    letter-spacing: 0;
  }

  /* 必须带 !important：上面"文字单元"那段用 `display: block !important` 把
     .song__time 之类的钉成了块级（为了单列时能省略号截断），普通声明盖不住。 */
  .songlist__body .song__idx,
  .songlist__body .song__album { display: none !important; }

  .songlist__body .songgroup { grid-column: 1 / -1; }

  .songlist__body .song__ridge {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 1px;
    height: 14px;
    opacity: 0.18;
    pointer-events: none;
  }
  /* 正在播放那一行的山脊仍要认得出来，但它是底纹了，不能亮到抢字 */
  .songlist__body .song.is-current .song__ridge { opacity: 0.5; }
}

/* 分组标题右侧的动作按钮：不许被挤成竖排。
   窄屏上标题一长，动作区就被压到只剩一个字的宽度，按钮于是"一个字一行"，
   整页看起来错位。标题可以换行，按钮永远不换行也不收缩。 */
.join__actions { flex: none; }
.join__actions > * { white-space: nowrap; flex: none; }

@media (max-width: 700px) {
  .join { flex-wrap: wrap; row-gap: 10px; }
  /* margin-left:auto 是行内样式写的，只有 !important 盖得住 */
  .join__actions { margin-left: 0 !important; width: 100%; }
}

/* ═══════════ 喜欢：点了是**朱砂实心爱心**（底轴与列表都算）═══════════

   用户原话：「喜欢[键]点击出现红色爱心功能，要不然下面菜单太单一」。

   为什么必须 !important、而且必须写在文件末尾：
     · 底轴后来的两个「参考风格」覆盖块（金版 → 黑胶材料版）把 `.dock .iconbtn` 与
       `.dock .iconbtn svg` 的 color / fill / stroke 全写成白 !important，
       普通规则一律压不过 —— 实测点了还是白的，红心根本出不来（这里踩过一次）。
     · 它们之间同级、靠先后顺序取胜，所以这条放最后。
   红色取 #e0574a：与这一版界面里"正在发生"的红（`is-current` 曲目底色、
   选中胶囊 `.chipbtn.is-active`）是同一个值，不再另造一个红。

   列表里的心用同一条（列表的 `.iconbtn` 也被上面统一成白色了）。
   ⚠ 列表里还要**带容器**写 `.view .iconbtn--like.is-on`：裸的 `.iconbtn--like.is-on`（0,2,0）
   打不过那条 `.view button:hover, .panel button:hover { color: #fff !important }`（0,2,1）——
   鼠标一压上去已喜欢的红心就变白（实测就是先写成后者才发现）。带容器的写法（0,3,0）才够高。
   舞台页那颗是**朱砂实底主按钮**，只补 fill（实心 vs 描边＝已喜欢），不改红色 ——
   红底上的红心看不见。 */
.iconbtn--like.is-on,
.view .iconbtn--like.is-on,
.panel .iconbtn--like.is-on { color: #e0574a !important; }
.iconbtn--like.is-on .ico { fill: currentColor !important; stroke-width: 2.1; }

.dock .iconbtn--like.is-on,
.dock .iconbtn--like.is-on:hover { color: #e0574a !important; }
.dock .iconbtn--like.is-on svg {
  color: #e0574a !important;
  fill: #e0574a !important;
  stroke: #e0574a !important;
}
