/* ==========================================================================
   ATRI music —— 静态音乐播放站
   静态音乐播放站 · 无框架、无外链、可直接丢进 Cloudflare Pages
   主题：浅色「海面白昼」 / 深色「深海夜」，由 html[data-theme] 切换
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --bg: #f5fbfd;
  --bg-2: #e9f5fa;
  --bg-3: #dceff6;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-solid: #ffffff;
  --text: #0f2230;
  --text-2: #4a6877;
  --text-3: #7d98a6;
  --line: rgba(15, 34, 48, 0.10);
  --line-2: rgba(15, 34, 48, 0.18);
  --accent: #0e9cb8;
  --accent-ink: #0a7c93;
  --accent-soft: rgba(14, 156, 184, 0.12);
  --accent-2: #6cc9de;
  --accent-3: #ff9a63;
  --ruby: #d94a63;
  --shadow-sm: 0 6px 18px -10px rgba(11, 52, 71, 0.35);
  --shadow: 0 22px 55px -26px rgba(11, 52, 71, 0.42);
  --shadow-lg: 0 40px 90px -40px rgba(11, 52, 71, 0.5);
  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1160px;
  --nav-h: 68px;
  --player-h: 88px;
  --nav-bg: rgba(245, 251, 253, 0.72);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-moe: "MoeTi";
  --font-sans: var(--font-moe), -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace;
  /* 播放器缩略图的渐变：JS 按当前曲目把 --c1/--c2 写到 :root 上，这里给兜底色 */
  --c1: #0e5a72;
  --c2: #3fb8d1;
}

html[data-theme="dark"] {
  --bg: #05131e;
  --bg-2: #071e2c;
  --bg-3: #0a2939;
  --surface: rgba(12, 40, 56, 0.62);
  --surface-solid: #0a2433;
  --text: #e6f4fa;
  --text-2: #9db9c8;
  --text-3: #6f8fa0;
  --line: rgba(150, 205, 228, 0.14);
  --line-2: rgba(150, 205, 228, 0.24);
  --accent: #4ed4e8;
  --accent-ink: #86e6f4;
  --accent-soft: rgba(78, 212, 232, 0.14);
  --accent-2: #2f9fbc;
  --accent-3: #ffb27a;
  --ruby: #ff7d92;
  --shadow-sm: 0 8px 22px -12px rgba(0, 0, 0, 0.7);
  --shadow: 0 26px 60px -28px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 46px 100px -46px rgba(0, 0, 0, 0.85);
  --nav-bg: rgba(5, 19, 30, 0.72);
}

/* ---------- 1b. 萌体 Web Font ----------
   字体：黑糖话梅 / Black Sugar Plum Candy（作者 落霞孤鹜 lxgw，SIL OFL 1.1）。
   这里放的是按本站用字裁过的子集（约 600 KB）。改文案后如果出现「某个字突兀地
   换成了系统字体」，就是子集里没有这个字 —— 先换说法，或重新裁一份子集。
   ⚠️ font-weight 写区间 `100 900`：这是单一字重字体，声明成全区间后浏览器
      就不会为 700/800 的标题做合成粗体（CJK 合成粗体会糊成一团）。 */
@font-face {
  font-family: "MoeTi";
  src: url("../fonts/moeti.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: var(--player-h);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  font-synthesis: none;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
h1, h2, h3, h4, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: normal; }
canvas { display: block; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

.skip {
  position: fixed; top: 10px; left: 50%; transform: translate(-50%, -220%);
  z-index: 200; padding: 10px 18px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 14px;
  transition: transform 0.25s var(--ease);
}
.skip:focus { transform: translate(-50%, 0); }

/* 背景氛围（固定渐变 + 光斑） */
.atmos {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 45% at 82% 6%, var(--accent-soft), transparent 70%),
    radial-gradient(45% 40% at 8% 88%, var(--accent-soft), transparent 72%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%);
}

/* ---------- 3. Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.nav.is-stuck {
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  max-width: var(--wrap); margin-inline: auto; height: 100%;
  padding-inline: 22px;
  display: flex; align-items: center; gap: 18px;
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand__text { font-size: 16px; font-weight: 700; letter-spacing: 0.14em; white-space: nowrap; }
.brand__text em {
  display: inline; margin-left: 0.46em;
  font-size: 12px; letter-spacing: 0.14em; font-weight: 500; color: var(--text-3);
}

.nav__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
/* 主题切换：纯图标，不画盒子（与参考站一致） */
.iconbtn {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  color: var(--text-2);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.iconbtn:hover { color: var(--accent-ink); transform: translateY(-2px); }
.iconbtn:active { transform: translateY(0) scale(0.96); }
.iconbtn svg { width: 21px; height: 21px; }
.iconbtn .i-moon { display: none; }
html[data-theme="dark"] .iconbtn .i-sun { display: none; }
html[data-theme="dark"] .iconbtn .i-moon { display: block; }

/* ---------- 4. Buttons & utilities ---------- */
/* 视觉上不显示、但读屏和搜索引擎还看得见。
   首屏大标题撤掉之后，页面的一级标题就靠它撑着。 */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 24px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; letter-spacing: 0.04em;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    background-color 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; }
/* 只有 404 页在用：唯一的行动按钮，给个实心强调色比描边有指示性 */
.btn--primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #04222d;
  box-shadow: 0 16px 34px -16px var(--accent);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 22px 42px -16px var(--accent); }
.btn--primary:active { transform: translateY(-1px) scale(0.99); }
.btn--ghost {
  color: var(--text);
  border: 1px solid var(--line-2);
  background: var(--surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- 5. Section scaffolding ---------- */
/* 页脚贴底：内容不够长时（首屏删掉后就是这样）不能让声明被固定播放器压住。
   .page 撑满「一屏减去播放器」，main 吃掉剩余空间，footer 自然落在播放器上沿。 */
.page { display: flex; flex-direction: column; min-height: calc(100svh - var(--player-h)); }
.page > main { flex: 1 0 auto; }
.page > .footer { flex: none; }

.section { padding: 96px 0; position: relative; }
/* 第一段就是曲目表：顶部让开固定导航，底部收紧一点 ——
   这样 1000px 高的窗口里「列表 + 页脚」正好落在播放器上沿，不会被压住半行。 */
.section--first { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 56px; }

/* 区块标题：只剩一行「曲目」，整行居中（原来的「—— TRACK LIST」小标已按截图去掉） */
.sec-head { margin: 0 auto 40px; text-align: center; }
.sec-head__title {
  font-size: clamp(28px, 4.8vw, 40px);
  font-weight: 800; letter-spacing: 0.06em; line-height: 1.3;
}
/* 标题下面那颗「下载无损原声」。用 ghost 皮肤：页面上唯一的行动按钮，
   但不需要抢标题的注意力；hover 时才变强调色。 */
.sec-head__action {
  display: inline-flex;
  margin-top: 20px;
  padding: 10px 22px;
  font-size: 13.5px;
}

/* ---------- 6. Reveal on scroll ---------- */
.js-ready .reveal { opacity: 0; transform: translateY(26px); }
.js-ready .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

/* ---------- 7. Playlist ---------- */
.list {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.list__head,
.track {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 62px;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
}
.list__head {
  height: 44px;
  font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--line);
}
.list__head span:nth-child(3) { text-align: right; }

.trackrow { border-bottom: 1px solid var(--line); }
.trackrow:last-child { border-bottom: 0; }

/* 整行是按钮：grid 布局，块级铺满 */
.track {
  width: 100%;
  height: 56px;
  text-align: left;
  background: transparent;
  transition: background-color 0.24s var(--ease);
  position: relative;
}
.track::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px;
  border-radius: 2px; background: var(--accent);
  transform: scaleY(0); transform-origin: center;
  transition: transform 0.3s var(--ease);
}
.track:hover { background: var(--accent-soft); }
.track:hover::before { transform: scaleY(0.55); }
.trackrow.is-playing .track { background: var(--accent-soft); }
.trackrow.is-playing .track::before { transform: scaleY(1); }

/* 序号 / 播放中的三根跳动的柱子 */
.track__idx {
  position: relative;
  height: 20px;
  display: grid; place-items: center;
  font-size: 12.5px; color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.track__idx .bars {
  position: absolute; inset: 0;
  display: none; align-items: flex-end; justify-content: center; gap: 2.5px;
}
.track__idx .bars i {
  display: block; width: 2.5px; border-radius: 1px;
  background: var(--accent);
  height: 40%;
  animation: bars 1.1s var(--ease) infinite alternate;
}
.track__idx .bars i:nth-child(2) { animation-delay: 0.18s; height: 80%; }
.track__idx .bars i:nth-child(3) { animation-delay: 0.36s; height: 55%; }
@keyframes bars {
  from { transform: scaleY(0.4); }
  to { transform: scaleY(1); }
}
.trackrow.is-playing .track__idx > span { display: none; }
.trackrow.is-playing .track__idx .bars { display: flex; }
/* 播放中若暂停了，柱子停住（不再闪烁），一眼能看出「选中但没在响」 */
.trackrow.is-playing.is-paused .bars i { animation-play-state: paused; opacity: 0.5; }

.track__title {
  min-width: 0;
  font-size: 15.5px; font-weight: 600; color: var(--text); letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.trackrow.is-playing .track__title { color: var(--accent-ink); }
/* 「-by 演唱者」整体不拆行，窄屏换行时整段落到第二行 */
.track__by { white-space: nowrap; }
.track__dur {
  text-align: right;
  font-size: 13.5px; color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

/* 分页条：只有一页时整条隐藏（main.js 会设 hidden） */
.pager {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 20px 16px;
  border-top: 1px solid var(--line);
}
.pager[hidden] { display: none; }
.pager__btn {
  min-width: 32px; height: 32px; padding: 0 9px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13px; color: var(--text-2);
  font-variant-numeric: tabular-nums;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.pager__btn:hover:not(:disabled) { color: var(--accent-ink); background: var(--accent-soft); }
.pager__btn:active:not(:disabled) { transform: scale(0.94); }
.pager__btn.is-active {
  color: var(--accent-ink); font-weight: 700;
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.pager__btn:disabled { color: var(--text-3); opacity: 0.45; cursor: default; }
.pager__gap { padding: 0 2px; color: var(--text-3); font-size: 12px; }

/* ---------- 8. Player bar ---------- */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  border-top: 1px solid var(--line);
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 -18px 40px -32px rgba(11, 52, 71, 0.6);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.player__inner {
  max-width: var(--wrap); margin-inline: auto;
  height: var(--player-h);
  padding-inline: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.player__meta { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player__cover {
  position: relative;
  width: 46px; height: 46px; flex: none; border-radius: 10px;
  background: linear-gradient(150deg, var(--c1), var(--c2));
  box-shadow: 0 8px 18px -10px var(--c1), 0 0 0 1px rgba(255, 255, 255, 0.16) inset;
  overflow: hidden;
}
/* 封面上的两圈「唱片纹」*/
.player__cover::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.28) 0 14%, transparent 15%),
    repeating-radial-gradient(circle at 50% 50%,
      rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 4px);
  opacity: 0.55;
}
.player__text { min-width: 0; }
.player__title {
  font-size: 14.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player__sub {
  font-size: 11.5px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.player__center { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.player__btns { display: flex; align-items: center; gap: 6px; }

.ctrl {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-2);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.ctrl:hover { color: var(--accent-ink); background: var(--accent-soft); }
.ctrl:active { transform: scale(0.94); }
.ctrl svg { width: 19px; height: 19px; }

.playbtn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04222d;
  box-shadow: 0 12px 26px -12px var(--accent);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.playbtn:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -14px var(--accent); }
.playbtn:active { transform: scale(0.96); }
.playbtn svg { width: 20px; height: 20px; }
.playbtn .i-pause { display: none; }
.player.is-playing .playbtn .i-play { display: none; }
.player.is-playing .playbtn .i-pause { display: block; }

/* 进度条：range 的填充用 --p 变量画渐变，thumb 平时收起来，hover 才出现 */
.player__seek {
  display: flex; align-items: center; gap: 10px;
  width: 100%; max-width: 520px;
}
.player__time {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text-3);
  font-variant-numeric: tabular-nums;
  min-width: 34px;
}
.player__time--end { text-align: right; }

.seek {
  -webkit-appearance: none; appearance: none;
  flex: 1; height: 4px; border-radius: 999px;
  background:
    linear-gradient(to right, var(--accent) calc(var(--p, 0) * 1%), var(--line-2) 0);
  cursor: pointer;
  transition: height 0.15s var(--ease);
}
.seek:hover { height: 6px; }
.seek::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface-solid);
  border: 2px solid var(--accent);
  box-shadow: 0 2px 8px -2px rgba(11, 52, 71, 0.5);
  opacity: 0; transition: opacity 0.18s var(--ease);
}
.seek:hover::-webkit-slider-thumb,
.seek:focus-visible::-webkit-slider-thumb { opacity: 1; }
.seek::-moz-range-thumb {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface-solid);
  border: 2px solid var(--accent);
  opacity: 0; transition: opacity 0.18s var(--ease);
}
.seek:hover::-moz-range-thumb { opacity: 1; }
.seek::-moz-range-track { height: 4px; border-radius: 999px; background: transparent; }

.player__side { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.player__side .ctrl.is-on { color: var(--accent-ink); background: var(--accent-soft); }
.player__side .ctrl .i-loop-one,
.player__side .ctrl .i-shuffle { display: none; }
.player__side .ctrl[data-mode="one"] .i-loop { display: none; }
.player__side .ctrl[data-mode="one"] .i-loop-one { display: block; }
.player__side .ctrl[data-mode="shuffle"] .i-loop { display: none; }
.player__side .ctrl[data-mode="shuffle"] .i-shuffle { display: block; }

.vol {
  -webkit-appearance: none; appearance: none;
  width: 76px; height: 4px; border-radius: 999px;
  background: linear-gradient(to right, var(--text-3) calc(var(--v, 80) * 1%), var(--line-2) 0);
  cursor: pointer;
}
.vol::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--surface-solid);
  border: 2px solid var(--text-2);
}
.vol::-moz-range-thumb {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--surface-solid); border: 2px solid var(--text-2);
}
.vol::-moz-range-track { height: 4px; background: transparent; }

/* ---------- 9. Footer ---------- */
.footer {
  padding: 54px 0 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, var(--bg-2));
}
.footer__bottom {
  display: flex; flex-direction: column; gap: 10px;
  justify-content: center; text-align: center;
  font-size: 12.5px; color: var(--text-3); line-height: 1.9;
}

/* ---------- 10. Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--player-h) + 22px); z-index: 180;
  transform: translate(-50%, 16px);
  opacity: 0; visibility: hidden;
  padding: 10px 20px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: #04222d;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow);
  white-space: nowrap;
  transition: transform 0.34s var(--ease), opacity 0.28s var(--ease), visibility 0.28s var(--ease);
}
.toast.is-show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- 11. Responsive ---------- */
@media (max-width: 860px) {
  :root { --player-h: 118px; }
  .section { padding: 74px 0; }
  .section--first { padding-top: calc(var(--nav-h) + 30px); }

  .list__head, .track { grid-template-columns: 38px minmax(0, 1fr) 52px; gap: 10px; padding-inline: 16px; }
  .track { height: 54px; }
  .pager { padding: 12px 16px 14px; gap: 4px; }
  .pager__btn { min-width: 30px; height: 30px; }

  /* 曲名现在带着「-by 演唱者」，窄屏一行放不下：允许折两行，行高自适应，
     别把演唱者截掉（截掉等于白加）。 */
  .track { height: auto; min-height: 54px; padding-block: 9px; }
  .track__title { white-space: normal; line-height: 1.32; }

  /* 播放器：两行（信息 + 控制 / 进度条）
     ⚠️ `.player__center` 在窄屏用 display:contents 摊平，让「按钮」和「进度条」
        直接成为 grid item —— 否则进度条是 justify-content:center 那一列的子元素，
        只能缩在 110px 里，左边曲名也会被 auto 列挤掉一半。
     ⚠️ 第二列写死 110px，不能留 auto：进度条的 max-content（两个时间标签 +
        range 默认宽度）会把 auto 列撑到 200px+。 */
  .player__inner {
    height: auto; padding: 10px 16px 12px;
    grid-template-columns: minmax(0, 1fr) 110px;
    grid-template-areas:
      "meta  btns"
      "seek  seek";
    gap: 4px 12px;
  }
  .player__meta { grid-area: meta; }
  .player__cover { width: 40px; height: 40px; }
  .player__center { display: contents; }
  .player__btns { grid-area: btns; justify-self: end; align-self: center; }
  .player__seek { grid-area: seek; max-width: none; width: 100%; }
  .player__side { display: none; }
  /* 上一首 / 下一首在手机上留着 —— 单手切歌全靠它们，只是收小一圈 */
  .player__btns { gap: 2px; }
  .player__btns .ctrl { width: 32px; height: 32px; }
  .player__btns .ctrl svg { width: 17px; height: 17px; }
  .playbtn { width: 42px; height: 42px; }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  /* 字标短了之后手机上不用再藏副名：ATRI music 整体也就 85px 宽 */
  .brand__text { font-size: 15px; letter-spacing: 0.1em; }
  .brand__text em { font-size: 11px; letter-spacing: 0.1em; margin-left: 0.4em; }

}

/* ---------- 12. Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js-ready .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .player, .toast { display: none !important; }
  body { background: #fff; color: #000; padding-bottom: 0; }
}

/* ---------- 13. 404 ---------- */
.nf-body { padding-bottom: 0; }
.nf {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 80px 22px 220px;
}
.nf__kick {
  font-size: 11.5px; letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--accent-ink); font-weight: 700;
}
.nf__title {
  margin-top: 16px;
  font-size: clamp(28px, 6vw, 44px); font-weight: 800; letter-spacing: 0.04em;
}
.nf__text {
  margin-top: 14px; max-width: 32em;
  font-size: 15.5px; line-height: 2; color: var(--text-2);
}
.nf .btn { margin-top: 32px; }
/* 404 底部两层浪：原本复用首屏那套，首屏删掉后独立出来（含 keyframes） */
.nf__waves {
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 200px; z-index: 2; pointer-events: none;
}
.nf__waves svg { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; max-width: none; }
.nf__waves .wave--far { fill: rgba(198, 229, 243, 0.62); animation: waveSlide 19s linear infinite; }
.nf__waves .wave--near { fill: var(--bg); animation: waveSlide 28s linear infinite reverse; }
html[data-theme="dark"] .nf__waves .wave--far { fill: rgba(20, 66, 86, 0.7); }
@keyframes waveSlide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 曲目表空态（tracks.js 一首歌都没有时，JS 会插一条 .list__empty） */
.list__empty {
  padding: 44px 20px;
  text-align: center;
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.9;
}
