/* ==========================================================================
   Rain Player · Noir Glass
   设计语言：沉浸式全屏雨窗 + 克制的磨砂玻璃界面
   - 中性白灰做主色，仅保留一个冷调强调色（雨）/ 冰白（雪）
   - 界面在播放时自动淡出，只留下歌词、时钟和雨
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #05080d;
  --ink: #f3f6fa;
  --ink-2: rgba(243, 246, 250, 0.74);
  --ink-3: rgba(243, 246, 250, 0.48);
  --ink-4: rgba(243, 246, 250, 0.26);

  --glass: rgba(14, 20, 29, 0.42);
  --glass-strong: rgba(10, 15, 22, 0.72);
  --glass-hover: rgba(255, 255, 255, 0.09);
  --stroke: rgba(255, 255, 255, 0.1);
  --stroke-2: rgba(255, 255, 255, 0.18);

  --accent: #a6d9ff;
  --accent-soft: rgba(166, 217, 255, 0.16);
  --accent-glow: rgba(166, 217, 255, 0.35);
  --warm: #ffbf80;

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --font-ui: "Inter", "SF Pro Display", "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC",
    "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;

  --cassette-speed: 1.2s;
  --cassette-energy: 0;
}

body[data-weather-mode="snow"] {
  --accent: #e4f3ff;
  --accent-soft: rgba(228, 243, 255, 0.18);
  --accent-glow: rgba(228, 243, 255, 0.4);
  --glass: rgba(20, 34, 50, 0.46);
  --glass-strong: rgba(16, 28, 42, 0.74);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
  color: inherit;
}

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

h1,
h2,
p {
  margin: 0;
}

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

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

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

#roomBack,
#roomFront {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  pointer-events: none;
}

#roomBack {
  z-index: 0;
}

#rainCanvas {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  display: block;
  background: var(--bg);
}

#spectrumCanvas {
  position: fixed;
  z-index: 2;
  display: block;
  pointer-events: none;
}

#roomFront {
  z-index: 3;
}

body:not(.has-window) #roomBack,
body:not(.has-window) #roomFront {
  display: none;
}

/* 上下压暗，保证文字可读；播放/空闲时略微收紧，让雨成为主角 */
.veil {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 6, 10, 0.62) 0%, rgba(3, 6, 10, 0) 24%),
    linear-gradient(0deg, rgba(3, 6, 10, 0.78) 0%, rgba(3, 6, 10, 0.32) 22%, rgba(3, 6, 10, 0) 46%),
    radial-gradient(120% 90% at 50% 45%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.38) 100%);
  transition: opacity 1.2s var(--ease-soft);
}

body[data-weather-mode="snow"] .veil {
  background:
    linear-gradient(180deg, rgba(8, 20, 34, 0.55) 0%, rgba(8, 20, 34, 0) 26%),
    linear-gradient(0deg, rgba(8, 20, 34, 0.7) 0%, rgba(8, 20, 34, 0.28) 24%, rgba(8, 20, 34, 0) 48%),
    radial-gradient(120% 90% at 50% 45%, rgba(0, 0, 0, 0) 60%, rgba(6, 16, 28, 0.3) 100%);
}

.film-grain {
  position: fixed;
  inset: -50%;
  z-index: 5;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* 拖拽提示 */
.drop-hint {
  position: fixed;
  inset: 16px;
  z-index: 60;
  display: grid;
  place-items: center;
  border: 1.5px dashed var(--stroke-2);
  border-radius: var(--radius-xl);
  background: rgba(5, 10, 16, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-soft);
}

.drop-hint span {
  font-size: 20px;
  letter-spacing: 0.12em;
  color: var(--ink);
}

body.drop-active .drop-hint {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   顶栏
   -------------------------------------------------------------------------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  transition:
    opacity 0.7s var(--ease-soft),
    transform 0.7s var(--ease);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  transform: rotate(180deg) scale(0.86);
  background:
    radial-gradient(60% 50% at 34% 28%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, var(--accent), rgba(80, 140, 220, 0.85));
  box-shadow:
    0 0 24px var(--accent-glow),
    inset 0 -6px 10px rgba(20, 60, 120, 0.35);
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand strong {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.brand small {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}

/* 天气切换：带滑动指示器的分段控件 */
.weather-mode-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
}

.weather-mode-toggle::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.45s var(--ease);
}

body[data-weather-mode="snow"] .weather-mode-toggle::before {
  transform: translateX(100%);
}

.weather-mode-toggle button {
  position: relative;
  z-index: 1;
  min-width: 68px;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  transition: color 0.3s var(--ease-soft);
}

.weather-mode-toggle button:hover {
  color: var(--ink-2);
}

.weather-mode-toggle button.is-active {
  color: var(--ink);
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.icon-button {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-2);
  background: var(--glass);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  transition:
    background 0.25s var(--ease-soft),
    color 0.25s var(--ease-soft),
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease-soft);
}

.icon-button:hover {
  background: var(--glass-hover);
  color: var(--ink);
  border-color: var(--stroke-2);
}

.icon-button:active {
  transform: scale(0.92);
}

.icon-button.small {
  width: 34px;
  height: 34px;
  background: transparent;
  border-color: transparent;
}

.icon-button.small .ic {
  width: 18px;
  height: 18px;
}

.icon-button.is-accent[aria-expanded="true"] {
  background: var(--accent-soft);
  border-color: var(--accent-glow);
  color: var(--accent);
}

.icon-button .ic-play {
  display: none;
}

.icon-button[aria-pressed="true"] .ic-pause {
  display: none;
}

.icon-button[aria-pressed="true"] .ic-play {
  display: block;
}

.icon-button[aria-pressed="true"] {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   舞台：时钟 / 空状态 / 歌词
   -------------------------------------------------------------------------- */

.stage {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.stage > * {
  pointer-events: auto;
}

.clock-block {
  position: absolute;
  left: 48px;
  top: 108px;
  display: grid;
  gap: 4px;
  pointer-events: none;
  transition: opacity 1s var(--ease-soft);
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--accent);
  opacity: 0.9;
}

.clock {
  font-family: var(--font-num);
  font-size: clamp(56px, 7.4vw, 112px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
}

.clock i {
  margin-left: 0.12em;
  font-style: normal;
  font-size: 0.3em;
  font-weight: 300;
  letter-spacing: 0;
  color: var(--ink-3);
}

.clock-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ink-2);
}

.clock-meta i {
  width: 24px;
  height: 1px;
  background: var(--ink-4);
}

.clock-meta em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}

body.is-playing .clock-block {
  opacity: 0.6;
}

/* 空状态 */
.empty-hero {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(640px, 88vw);
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
}

.empty-hero h1 {
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 250;
  line-height: 1.14;
  letter-spacing: 0.08em;
  text-shadow: 0 6px 50px rgba(0, 0, 0, 0.5);
}

.empty-hero p {
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 14px 28px 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #07111c;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 0 6px rgba(255, 255, 255, 0.08);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.hero-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.45),
    0 0 0 9px rgba(255, 255, 255, 0.1);
}

.hero-button:active {
  transform: scale(0.97);
}

body.has-tracks .empty-hero {
  display: none;
}

/* 歌词 */
.lyric-stage {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(960px, 88vw);
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
  pointer-events: none !important;
}

body:not(.has-tracks) .lyric-stage {
  display: none;
}

.lyric-stage small {
  max-width: 100%;
  font-size: clamp(13px, 1.2vw, 16px);
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lyric-stage p {
  max-width: 100%;
  font-size: clamp(26px, 4.4vw, 62px);
  font-weight: 300;
  line-height: 1.32;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.25),
    0 6px 46px rgba(0, 0, 0, 0.55);
  text-wrap: balance;
}

.lyric-stage p.is-enter {
  animation: lyric-in 0.9s var(--ease) both;
}

@keyframes lyric-in {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

/* 没有歌词时，安静地退到画面下方，只留一句提示 */
body:not(.has-lyrics) .lyric-stage {
  top: 60%;
}

body:not(.has-lyrics) .lyric-stage small {
  display: none;
}

body:not(.has-lyrics) .lyric-stage p {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   底部频谱
   -------------------------------------------------------------------------- */

.signal-bars {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  height: 26vh;
  min-height: 140px;
  padding: 0 clamp(8px, 3vw, 48px);
  display: flex;
  align-items: flex-end;
  gap: clamp(2px, 0.35vw, 5px);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
  mask-image: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
}

.signal-bars span {
  flex: 1;
  min-width: 0;
  height: 6%;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.02));
  transition: height 0.09s linear;
  will-change: height;
}

.signal-bars span:nth-child(3n) {
  background: linear-gradient(0deg, var(--accent-glow), transparent);
}

/* --------------------------------------------------------------------------
   播放坞
   -------------------------------------------------------------------------- */

.dock {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  width: min(1180px, calc(100vw - 48px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 14px 22px;
  border-radius: var(--radius-xl);
  background: var(--glass);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(34px) saturate(1.5);
  -webkit-backdrop-filter: blur(34px) saturate(1.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 30px 90px rgba(0, 0, 0, 0.45);
  transition:
    opacity 0.7s var(--ease-soft),
    transform 0.7s var(--ease);
}

.dock-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

/* 涟漪唱片 */
.disc {
  position: relative;
  flex: none;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 15%, rgba(255, 255, 255, 0.05) 15.5% 16.5%, transparent 17%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 4px),
    conic-gradient(from 20deg, #0b1118, #1e2a38 12%, #0b1118 26%, #253547 42%, #0b1118 60%, #1c2836 78%, #0b1118);
  border: 1px solid var(--stroke-2);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.5),
    0 0 calc(10px + var(--cassette-energy) * 34px) var(--accent-glow);
  animation: disc-spin calc(var(--cassette-speed) * 4) linear infinite;
  animation-play-state: paused;
}

.disc::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 8%, rgba(255, 255, 255, 0.22) 12%, transparent 18% 58%, rgba(255, 255, 255, 0.14) 63%, transparent 70%);
  mix-blend-mode: screen;
}

.disc span {
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff, var(--accent) 45%, rgba(70, 130, 210, 0.9));
  box-shadow: 0 0 14px var(--accent-glow);
}

.disc span::after {
  content: "";
  position: absolute;
  inset: 36%;
  border-radius: 50%;
  background: #05080d;
}

body.is-playing .disc {
  animation-play-state: running;
}

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

.track-info {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.track-type {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--accent);
}

.track-info h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-info small {
  font-size: 12px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dock-center {
  display: grid;
  gap: 8px;
  justify-items: center;
}

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

.transport-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-2);
  transition:
    color 0.25s var(--ease-soft),
    background 0.25s var(--ease-soft),
    transform 0.25s var(--ease);
}

.transport-button:hover {
  color: var(--ink);
  background: var(--glass-hover);
}

.transport-button:active {
  transform: scale(0.88);
}

.play-button {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #06101a;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 calc(var(--cassette-energy) * 42px) rgba(255, 255, 255, 0.35);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.play-button .ic {
  width: 24px;
  height: 24px;
}

.play-button .ic-play {
  transform: translateX(1px);
}

.play-button:hover {
  transform: scale(1.06);
}

.play-button:active {
  transform: scale(0.94);
}

.play-button .ic-pause {
  display: none;
}

body.is-playing .play-button .ic-play {
  display: none;
}

body.is-playing .play-button .ic-pause {
  display: block;
}

.timeline-row {
  width: 100%;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}

.timeline-row span:first-child {
  text-align: right;
}

.dock-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.tool-button {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-3);
  cursor: pointer;
  transition:
    color 0.25s var(--ease-soft),
    background 0.25s var(--ease-soft),
    transform 0.25s var(--ease);
}

.tool-button:hover {
  color: var(--ink);
  background: var(--glass-hover);
}

.tool-button:active {
  transform: scale(0.9);
}

.tool-button[aria-pressed="true"] {
  color: var(--accent);
  background: var(--accent-soft);
}

.tool-button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  color: var(--ink-3);
}

.volume-control .ic {
  width: 18px;
  height: 18px;
}

.volume-control .range {
  width: 96px;
}

/* 播放中且鼠标静止：界面淡出，只留歌词与雨 */
body.is-idle.is-playing:not(.drawer-open) .topbar {
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
}

body.is-idle.is-playing:not(.drawer-open) .dock {
  opacity: 0;
  transform: translate(-50%, 22px);
  pointer-events: none;
}

body.is-idle.is-playing:not(.drawer-open) {
  cursor: none;
}

/* --------------------------------------------------------------------------
   滑杆（进度 / 音量 / 参数）
   -------------------------------------------------------------------------- */

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

.range::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ink) var(--track-fill), rgba(255, 255, 255, 0.16) var(--track-fill));
  transition: height 0.2s var(--ease);
}

.range::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.range::-moz-range-progress {
  height: 3px;
  border-radius: 999px;
  background: var(--ink);
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transform: scale(0);
  transition: transform 0.2s var(--ease);
}

.range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transform: scale(0);
  transition: transform 0.2s var(--ease);
}

.range:hover::-webkit-slider-runnable-track,
.range:focus-visible::-webkit-slider-runnable-track {
  height: 5px;
}

.range:hover::-webkit-slider-thumb,
.range:focus-visible::-webkit-slider-thumb,
.range:active::-webkit-slider-thumb {
  transform: scale(1);
}

.range:hover::-moz-range-thumb,
.range:focus-visible::-moz-range-thumb,
.range:active::-moz-range-thumb {
  transform: scale(1);
}

.range:focus-visible {
  outline: none;
}

/* 抽屉里的参数滑杆：使用强调色，缩略点常驻 */
.drawer .range::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, var(--accent) var(--track-fill), rgba(255, 255, 255, 0.14) var(--track-fill));
}

.drawer .range::-moz-range-progress {
  background: var(--accent);
}

.drawer .range::-webkit-slider-thumb {
  transform: scale(0.85);
}

.drawer .range::-moz-range-thumb {
  transform: scale(0.85);
}

.drawer .range:hover::-webkit-slider-thumb {
  transform: scale(1.1);
}

.drawer .range:hover::-moz-range-thumb {
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   抽屉
   -------------------------------------------------------------------------- */

.drawer {
  position: fixed;
  top: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  width: min(396px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  background: var(--glass-strong);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(44px) saturate(1.6);
  -webkit-backdrop-filter: blur(44px) saturate(1.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 40px 120px rgba(0, 0, 0, 0.6);
  transform: translateX(calc(100% + 40px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.6s var(--ease),
    opacity 0.4s var(--ease-soft),
    visibility 0s linear 0.6s;
}

body.drawer-open .drawer {
  transform: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    transform 0.6s var(--ease),
    opacity 0.4s var(--ease-soft),
    visibility 0s;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px 20px;
}

.drawer-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.drawer-tabs button {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  transition:
    background 0.3s var(--ease-soft),
    color 0.3s var(--ease-soft);
}

.drawer-tabs button:hover {
  color: var(--ink-2);
}

.drawer-tabs button.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.13);
}

.drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 20px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.drawer-body::-webkit-scrollbar {
  width: 6px;
}

.drawer-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.tab-panel {
  display: none;
}

.drawer[data-tab="visual"] .tab-panel[data-panel="visual"],
.drawer[data-tab="playlist"] .tab-panel[data-panel="playlist"] {
  display: block;
  animation: panel-in 0.5s var(--ease) both;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 8px 0 6px;
}

.panel-heading p {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--accent);
}

.panel-heading h2 {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.status-dot {
  width: 8px;
  height: 8px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2.6s var(--ease-soft) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

.section-label {
  margin: 22px 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ink-3);
}

/* 预设 */
.weather-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.smart-preset {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 14px 6px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  color: var(--ink-2);
  transition:
    background 0.25s var(--ease-soft),
    border-color 0.25s var(--ease-soft),
    transform 0.25s var(--ease);
}

.smart-preset:hover {
  background: rgba(255, 255, 255, 0.09);
}

.smart-preset:active {
  transform: scale(0.96);
}

.smart-preset span {
  font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", var(--font-ui);
  font-size: 20px;
  line-height: 1;
  color: var(--ink-3);
  transition: color 0.25s var(--ease-soft);
}

.smart-preset strong {
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.06em;
}

.smart-preset.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-glow);
  color: var(--ink);
}

.smart-preset.is-active span {
  color: var(--accent);
}

/* 形状 / 汇聚 */
.shape-options,
.gather-options {
  display: grid;
  gap: 6px;
}

.shape-options {
  grid-template-columns: repeat(4, 1fr);
}

.gather-options {
  grid-template-columns: repeat(5, 1fr);
}

.shape-option,
.gather-option {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 9px 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid transparent;
  color: var(--ink-3);
  transition:
    background 0.25s var(--ease-soft),
    border-color 0.25s var(--ease-soft),
    color 0.25s var(--ease-soft),
    transform 0.25s var(--ease);
}

.shape-option:hover,
.gather-option:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--ink-2);
}

.shape-option:active,
.gather-option:active {
  transform: scale(0.94);
}

.shape-option span,
.gather-option span {
  font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", var(--font-ui);
  font-size: 16px;
  line-height: 1.2;
}

.shape-option strong,
.gather-option strong {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.shape-option.is-active,
.gather-option.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-glow);
  color: var(--accent);
}

/* 开关 */
.settings-stack {
  margin-top: 16px;
  display: grid;
  gap: 2px;
}

.toggle-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 2px;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
}

.switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex: none;
}

.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transition: background 0.3s var(--ease-soft);
  pointer-events: none;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s var(--ease);
}

.switch input:checked + span {
  background: var(--accent);
}

.switch input:checked + span::after {
  transform: translateX(18px);
}

.switch input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* 参数 */
.control-stack {
  display: grid;
  gap: 6px;
}

.mini-control {
  display: grid;
  gap: 2px;
  padding: 4px 0;
}

.control-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-2);
}

.control-row output {
  font-family: var(--font-num);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

/* 色调 */
.tint-row {
  display: flex;
  gap: 12px;
}

.tint-swatch {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s var(--ease);
}

.tint-swatch::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  transition: border-color 0.25s var(--ease-soft);
}

.tint-swatch:hover {
  transform: scale(1.1);
}

.tint-swatch.is-active::after {
  border-color: rgba(255, 255, 255, 0.85);
}

/* 背景管理 */
.background-manager {
  display: grid;
  gap: 8px;
}

.background-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  text-align: left;
  font-size: 12px;
  color: var(--ink-3);
  transition: background 0.25s var(--ease-soft);
}

.background-chip:hover {
  background: rgba(255, 255, 255, 0.09);
}

.background-chip strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 550;
  color: var(--ink);
}

.background-chip .ic {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--ease);
}

.background-chip[aria-expanded="true"] .ic {
  transform: rotate(180deg);
}

.background-library {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
}

.background-library[hidden] {
  display: none;
}

.background-playback {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.background-playback button {
  padding: 6px 0;
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-3);
  transition:
    background 0.25s var(--ease-soft),
    color 0.25s var(--ease-soft);
}

.background-playback button.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.13);
}

.background-list {
  display: grid;
  gap: 4px;
  max-height: 180px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.background-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  text-align: left;
  font-size: 12px;
  color: var(--ink-2);
  transition: background 0.25s var(--ease-soft);
}

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

.background-item span {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-3);
}

.background-item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.background-item small {
  font-variant-numeric: tabular-nums;
  color: var(--ink-4);
}

.background-item.is-active {
  background: var(--accent-soft);
  color: var(--ink);
}

.background-item.is-active span {
  background: var(--accent-soft);
  color: var(--accent);
}

.background-empty {
  padding: 10px;
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
}

.panel-actions {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.panel-action {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-2);
  transition:
    background 0.25s var(--ease-soft),
    transform 0.25s var(--ease);
}

.panel-action:hover {
  background: rgba(255, 255, 255, 0.11);
  color: var(--ink);
}

.panel-action:active {
  transform: scale(0.98);
}

.panel-action.primary {
  background: rgba(255, 255, 255, 0.92);
  color: #06101a;
}

.panel-action.primary:hover {
  background: #fff;
}

.meter-row {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
  font-size: 11.5px;
  color: var(--ink-3);
}

.meter-row strong {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--ink-2);
}

.shortcut-hint {
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--ink-4);
}

/* 播放列表 */
.playlist {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.playlist:empty::before {
  content: "还没有曲目。\A点击下方播放坞的 + 或直接把音频文件拖进来。";
  white-space: pre-line;
  display: block;
  padding: 36px 12px;
  border: 1px dashed var(--stroke-2);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  line-height: 2;
  text-align: center;
  color: var(--ink-3);
}

.track-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px 12px 16px;
  border-radius: var(--radius-md);
  text-align: left;
  color: var(--ink-2);
  transition: background 0.25s var(--ease-soft);
}

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

.track-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
}

.track-index {
  font-family: var(--font-num);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-4);
}

.track-item.is-active {
  background: var(--accent-soft);
  color: var(--ink);
}

.track-item.is-active::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 3px;
  height: 16px;
  margin-top: -8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.track-item.is-active .track-index {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   降级
   -------------------------------------------------------------------------- */

.webgl-error {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
}

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

@media (max-width: 1080px) {
  .dock {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 440px) auto;
    gap: 16px;
  }

  .volume-control {
    display: none;
  }
}

@media (max-width: 820px) {
  .topbar {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "brand actions"
      "toggle toggle";
    padding: 14px 16px;
    row-gap: 12px;
  }

  .brand {
    grid-area: brand;
  }

  .top-actions {
    grid-area: actions;
  }

  .weather-mode-toggle {
    grid-area: toggle;
    justify-self: start;
  }

  #fullscreenButton {
    display: none;
  }

  .brand-text small {
    display: none;
  }

  .clock-block {
    left: 20px;
    top: 134px;
  }

  .lyric-stage,
  .empty-hero {
    top: 44%;
  }

  .dock {
    bottom: 12px;
    width: calc(100vw - 24px);
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 16px 12px;
    border-radius: 24px;
  }

  .dock-left {
    order: 1;
  }

  .dock-center {
    order: 2;
  }

  .dock-right {
    order: 3;
    justify-content: space-between;
    padding-top: 2px;
  }

  .disc {
    width: 46px;
    height: 46px;
  }

  .track-info h2 {
    font-size: 15px;
  }

  .drawer {
    top: auto;
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    height: 78vh;
    transform: translateY(calc(100% + 24px));
  }

  .shape-options {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-height: 620px) and (min-width: 821px) {
  .clock {
    font-size: clamp(44px, 9vh, 72px);
  }

  .clock-block {
    top: 98px;
  }

  .dock {
    bottom: 14px;
    padding: 10px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .film-grain,
  .status-dot {
    animation: none;
  }

  .lyric-stage p.is-enter {
    animation-duration: 0.01s;
  }
}

.volume-control.is-muted {
  opacity: 0.4;
}

/* 抽屉打开时，主舞台向左让出空间（仅宽屏） */
@media (min-width: 821px) {
  .topbar,
  .dock,
  .lyric-stage,
  .empty-hero {
    transition:
      opacity 0.7s var(--ease-soft),
      transform 0.7s var(--ease),
      left 0.6s var(--ease),
      width 0.6s var(--ease),
      padding 0.6s var(--ease);
  }

  body.drawer-open .topbar {
    padding-right: 428px;
  }

  body.drawer-open .dock {
    left: calc((100vw - 412px) / 2);
    width: min(1180px, calc(100vw - 460px));
  }

  body.drawer-open .dock-right .volume-control {
    display: none;
  }

  body.drawer-open .lyric-stage,
  body.drawer-open .empty-hero {
    left: calc((100vw - 412px) / 2);
  }
}

.track-type {
  white-space: nowrap;
}

@media (min-width: 821px) {
  body.drawer-open .dock {
    grid-template-columns: minmax(150px, 1fr) minmax(220px, 360px) auto;
    gap: 16px;
  }

  body.drawer-open .dock-right {
    gap: 2px;
  }
}

/* 雪天背景偏亮，加强文字底部的柔和阴影以保证可读性 */
body[data-weather-mode="snow"] .clock,
body[data-weather-mode="snow"] .clock-meta,
body[data-weather-mode="snow"] .eyebrow,
body[data-weather-mode="snow"] .lyric-stage small,
body[data-weather-mode="snow"] .empty-hero p {
  text-shadow:
    0 1px 3px rgba(8, 22, 38, 0.55),
    0 4px 28px rgba(8, 22, 38, 0.6);
}

body[data-weather-mode="snow"] .lyric-stage p,
body[data-weather-mode="snow"] .empty-hero h1 {
  text-shadow:
    0 1px 4px rgba(8, 22, 38, 0.5),
    0 6px 44px rgba(8, 22, 38, 0.75);
}

body[data-weather-mode="snow"] .veil {
  background:
    radial-gradient(70% 55% at 22% 22%, rgba(8, 22, 38, 0.42), rgba(8, 22, 38, 0) 70%),
    linear-gradient(180deg, rgba(8, 20, 34, 0.55) 0%, rgba(8, 20, 34, 0) 26%),
    linear-gradient(0deg, rgba(8, 20, 34, 0.7) 0%, rgba(8, 20, 34, 0.28) 24%, rgba(8, 20, 34, 0) 48%),
    radial-gradient(120% 90% at 50% 45%, rgba(0, 0, 0, 0) 60%, rgba(6, 16, 28, 0.3) 100%);
}


/* ==========================================================================
   晴天模式
   ========================================================================== */

#natureCanvas {
  position: fixed;
  z-index: 2;
  display: block;
  pointer-events: none;
}

.weather-mode-toggle {
  grid-template-columns: repeat(3, 1fr);
}

.weather-mode-toggle::before {
  width: calc((100% - 8px) / 3);
}

body[data-weather-mode="sunny"] .weather-mode-toggle::before {
  transform: translateX(200%);
}

body[data-weather-mode="sunny"] {
  --accent: #ffd978;
  --accent-soft: rgba(255, 217, 120, 0.18);
  --accent-glow: rgba(255, 217, 120, 0.42);
  --glass: rgba(12, 42, 60, 0.5);
  --glass-strong: rgba(10, 38, 54, 0.8);
}

body[data-weather-mode="sunny"] .veil {
  background:
    linear-gradient(180deg, rgba(6, 22, 32, 0.34) 0%, rgba(6, 22, 32, 0) 22%),
    linear-gradient(0deg, rgba(6, 22, 32, 0.5) 0%, rgba(6, 22, 32, 0.16) 22%, rgba(6, 22, 32, 0) 46%),
    radial-gradient(120% 90% at 50% 45%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.16) 100%);
}

body[data-weather-mode="sunny"] .clock,
body[data-weather-mode="sunny"] .clock-meta,
body[data-weather-mode="sunny"] .eyebrow,
body[data-weather-mode="sunny"] .lyric-stage small,
body[data-weather-mode="sunny"] .empty-hero p {
  text-shadow:
    0 1px 3px rgba(8, 40, 70, 0.6),
    0 4px 26px rgba(8, 40, 70, 0.55);
}

body[data-weather-mode="sunny"] .lyric-stage p,
body[data-weather-mode="sunny"] .empty-hero h1 {
  text-shadow:
    0 1px 4px rgba(8, 40, 70, 0.55),
    0 6px 40px rgba(8, 40, 70, 0.7);
}

body[data-weather-mode="sunny"] #gatherSectionLabel,
body[data-weather-mode="sunny"] #gatherOptions,
body[data-weather-mode="sunny"] .toggle-line[for="heartToggle"] {
  display: none;
}

/* 晴天的天空很亮：在文字背后垫一层柔和的深蓝光晕，保证可读性 */
body[data-weather-mode="sunny"] .empty-hero::before,
body[data-weather-mode="sunny"] .lyric-stage::before {
  content: "";
  position: absolute;
  inset: -34% -14%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(8, 40, 70, 0.34), rgba(8, 40, 70, 0));
}


/* ==========================================================================
   水墨色块画风：宣纸、柔边色块、朱砂印、竖排题名
   ========================================================================== */

.style-toggle {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.style-toggle button {
  padding: 7px 0;
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  transition:
    background 0.25s var(--ease-soft),
    color 0.25s var(--ease-soft);
}

.style-toggle button.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.13);
}

.ink-title {
  position: fixed;
  z-index: 11;
  display: none;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 12px;
  pointer-events: none;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
  color: #2a2622;
}

body[data-style="ink"].has-window .ink-title {
  display: flex;
}

.ink-title .ink-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.ink-title b {
  writing-mode: vertical-rl;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.15;
}

.ink-title small {
  writing-mode: vertical-rl;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.34em;
  color: rgba(42, 38, 34, 0.6);
}

.ink-title .seal {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-style: normal;
  font-size: 14px;
  color: #f7efe2;
  background: #b23a30;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

body[data-style="ink"] {
  color-scheme: light;
  --bg: #eee8da;
  --ink: #2a2622;
  --ink-2: rgba(42, 38, 34, 0.76);
  --ink-3: rgba(42, 38, 34, 0.52);
  --ink-4: rgba(42, 38, 34, 0.3);
  --glass: rgba(251, 247, 238, 0.66);
  --glass-strong: rgba(249, 245, 236, 0.93);
  --glass-hover: rgba(42, 38, 34, 0.07);
  --stroke: rgba(42, 38, 34, 0.12);
  --stroke-2: rgba(42, 38, 34, 0.24);
  --accent: #b23a30;
  --accent-soft: rgba(178, 58, 48, 0.1);
  --accent-glow: rgba(178, 58, 48, 0.28);
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
  background: #eee8da;
}

body[data-style="ink"] .veil {
  background: none;
}

body[data-style="ink"] .film-grain {
  opacity: 0.035;
  mix-blend-mode: multiply;
}

body[data-style="ink"] .brand-mark {
  background:
    radial-gradient(60% 50% at 34% 28%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, #e8837a, #b23a30);
  box-shadow:
    0 0 14px rgba(178, 58, 48, 0.25),
    inset 0 -6px 10px rgba(120, 30, 25, 0.2);
}

body[data-style="ink"] .weather-mode-toggle::before {
  background: rgba(42, 38, 34, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

body[data-style="ink"] .clock,
body[data-style="ink"] .clock-meta,
body[data-style="ink"] .eyebrow,
body[data-style="ink"] .lyric-stage small,
body[data-style="ink"] .lyric-stage p,
body[data-style="ink"] .empty-hero p,
body[data-style="ink"] .empty-hero h1 {
  text-shadow: none;
}

body[data-style="ink"] .clock,
body[data-style="ink"] .lyric-stage p,
body[data-style="ink"] .empty-hero h1,
body[data-style="ink"] .track-info h2,
body[data-style="ink"] .panel-heading h2 {
  font-family: var(--font-serif);
}

body[data-style="ink"] .clock {
  font-weight: 300;
}

body[data-style="ink"] .lyric-stage p {
  font-weight: 500;
  letter-spacing: 0.12em;
}

body[data-style="ink"] .empty-hero h1 {
  font-weight: 500;
  letter-spacing: 0.16em;
}

body[data-style="ink"] .eyebrow {
  color: var(--accent);
}

body[data-style="ink"] .empty-hero::before,
body[data-style="ink"] .lyric-stage::before {
  display: none;
}

body[data-style="ink"] .hero-button,
body[data-style="ink"] .play-button,
body[data-style="ink"] .panel-action.primary {
  background: #2b2622;
  color: #f5efe3;
  box-shadow: 0 10px 28px rgba(60, 46, 34, 0.25);
}

body[data-style="ink"] .panel-action.primary:hover {
  background: #3a332d;
}

body[data-style="ink"] .range::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, var(--ink) var(--track-fill), rgba(42, 38, 34, 0.16) var(--track-fill));
}

body[data-style="ink"] .drawer .range::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, var(--accent) var(--track-fill), rgba(42, 38, 34, 0.14) var(--track-fill));
}

body[data-style="ink"] .range::-moz-range-track {
  background: rgba(42, 38, 34, 0.16);
}

body[data-style="ink"] .range::-webkit-slider-thumb,
body[data-style="ink"] .range::-moz-range-thumb {
  background: #2b2622;
  box-shadow: 0 2px 8px rgba(60, 46, 34, 0.35);
}

body[data-style="ink"] .switch span {
  background: rgba(42, 38, 34, 0.18);
}

body[data-style="ink"] .switch input:checked + span {
  background: var(--accent);
}

body[data-style="ink"] .smart-preset,
body[data-style="ink"] .shape-option,
body[data-style="ink"] .gather-option,
body[data-style="ink"] .background-chip,
body[data-style="ink"] .panel-action,
body[data-style="ink"] .drawer-tabs,
body[data-style="ink"] .background-playback,
body[data-style="ink"] .style-toggle {
  background: rgba(42, 38, 34, 0.05);
}

body[data-style="ink"] .smart-preset:hover,
body[data-style="ink"] .shape-option:hover,
body[data-style="ink"] .gather-option:hover,
body[data-style="ink"] .background-chip:hover,
body[data-style="ink"] .panel-action:hover,
body[data-style="ink"] .track-item:hover {
  background: rgba(42, 38, 34, 0.09);
}

body[data-style="ink"] .drawer-tabs button.is-active,
body[data-style="ink"] .background-playback button.is-active,
body[data-style="ink"] .style-toggle button.is-active {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 3px rgba(60, 46, 34, 0.12);
}

body[data-style="ink"] .smart-preset.is-active,
body[data-style="ink"] .shape-option.is-active,
body[data-style="ink"] .gather-option.is-active,
body[data-style="ink"] .track-item.is-active {
  background: var(--accent-soft);
}

body[data-style="ink"] .background-library,
body[data-style="ink"] .meter-row {
  background: rgba(42, 38, 34, 0.05);
}

body[data-style="ink"] .dock {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 18px 50px rgba(80, 62, 40, 0.18);
}

body[data-style="ink"] .drawer {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 30px 90px rgba(80, 62, 40, 0.28);
}

body[data-style="ink"] .drop-hint {
  background: rgba(245, 240, 230, 0.72);
}

body[data-style="ink"] .panel-heading p,
body[data-style="ink"] .track-type {
  color: var(--accent);
}


/* ==========================================================================
   微交互：涟漪、光标环
   ========================================================================== */

.ripple {
  position: fixed;
  z-index: 12;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, transparent 0 52%, var(--c, #fff) 60%, transparent 72%);
  opacity: 0;
  animation: ripple 1.8s cubic-bezier(0.16, 0.7, 0.2, 1) forwards;
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 0.85;
  }
  100% {
    transform: scale(36);
    opacity: 0;
  }
}

.cursor-ring {
  position: fixed;
  left: -12px;
  top: -12px;
  z-index: 90;
  width: 24px;
  height: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease-soft);
}

.cursor-spin {
  width: 100%;
  height: 100%;
  scale: 1;
  transition: scale 0.4s var(--ease);
}

.cursor-ring svg {
  display: none;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.1;
  stroke-opacity: 0.42;
  stroke-linecap: round;
  transition:
    stroke 0.35s var(--ease-soft),
    stroke-opacity 0.35s var(--ease-soft);
}

.cursor-ring svg .soft {
  stroke-opacity: 0.55;
}

.cursor-ring svg .dot {
  fill: var(--accent);
  stroke: none;
}

.cursor-ring svg .arc {
  stroke: var(--accent);
  stroke-width: 1.6;
}

body[data-deck="cassette"] .cursor-ring .c-reel,
body[data-deck="vinyl"] .cursor-ring .c-vinyl,
body[data-deck="cd"] .cursor-ring .c-cd {
  display: block;
}

body.has-cursor .cursor-ring {
  opacity: 0.9;
}

.cursor-ring.is-hot .cursor-spin {
  scale: 1.55;
}

.cursor-ring.is-hot svg {
  stroke: var(--accent);
  stroke-opacity: 0.8;
}

body.is-idle.is-playing:not(.drawer-open) .cursor-ring {
  opacity: 0;
}

@media (hover: none), (pointer: coarse) {
  .cursor-ring {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ripple {
    display: none;
  }
}


/* ==========================================================================
   开场、转场、分阶段入场
   ========================================================================== */

.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 26px;
  background: var(--bg);
  color: var(--ink);
  transition: transform 1.15s cubic-bezier(0.76, 0, 0.24, 1);
}

.intro.is-done {
  transform: translateY(-101%);
  pointer-events: none;
}

.intro-enso {
  width: 104px;
  height: 104px;
  transform: rotate(-112deg);
  overflow: visible;
}

.intro-enso circle {
  fill: none;
  stroke: var(--ink);
  stroke-width: 4.6;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: enso 1.5s 0.2s cubic-bezier(0.5, 0, 0.2, 1) forwards;
}

.intro-enso circle.thin {
  stroke-width: 1.4;
  stroke-opacity: 0.55;
  transform-origin: 60px 60px;
  transform: rotate(6deg) scale(1.03);
  animation-delay: 0.32s;
}

@keyframes enso {
  to {
    stroke-dashoffset: 21;
  }
}

.intro-title {
  display: grid;
  justify-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  animation: intro-text 0.9s 0.8s cubic-bezier(0.16, 0.7, 0.2, 1) forwards;
}

.intro-title span {
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-size: 22px;
  letter-spacing: 0.38em;
  padding-left: 0.38em;
}

.intro-title small {
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--ink-3);
  padding-left: 0.32em;
}

@keyframes intro-text {
  to {
    opacity: 1;
    transform: none;
  }
}

.wash {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  pointer-events: none;
}

/* 开场结束前，界面元素先藏起来；之后依次浮现 */
body:not(.is-loaded) .topbar,
body:not(.is-loaded) .dock,
body:not(.is-loaded) .clock-block,
body:not(.is-loaded) .ink-title,
body:not(.is-loaded) .empty-hero,
body:not(.is-loaded) .lyric-stage {
  opacity: 0;
}

body:not(.is-loaded) .topbar {
  transform: translateY(-14px);
}

body:not(.is-loaded) .dock {
  transform: translate(-50%, 18px);
}

body.is-loaded .clock-block {
  transition-delay: 0.35s;
}

body.is-loaded .empty-hero,
body.is-loaded .lyric-stage {
  animation: stage-in 1.1s 0.45s cubic-bezier(0.16, 0.7, 0.2, 1) both;
}

@keyframes stage-in {
  from {
    opacity: 0;
    filter: blur(8px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro,
  .intro * {
    animation-duration: 0.01s !important;
    animation-delay: 0s !important;
  }
}

/* ==========================================================================
   水墨画风的界面外壳：去掉「毛玻璃卡片」，只留笔画一样的线与字
   ========================================================================== */

body[data-style="ink"] .clock-block {
  left: 56px;
  top: 124px;
}

body[data-style="ink"] .brand strong {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 15px;
}

body[data-style="ink"] .brand small {
  letter-spacing: 0.16em;
}

/* 顶栏：天气是三个字，下面一道朱砂细线跟着滑动 */
body[data-style="ink"] .weather-mode-toggle {
  background: none;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 4px 0;
}

body[data-style="ink"] .weather-mode-toggle::before {
  top: auto;
  bottom: 0;
  height: 1.5px;
  left: calc(100% / 3 * 0.33);
  width: calc(100% / 3 * 0.34);
  transform: none;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: none;
  transition: left 0.55s var(--ease);
}

body[data-style="ink"][data-weather-mode="snow"] .weather-mode-toggle::before {
  left: calc(100% / 3 * 1.33);
  transform: none;
}

body[data-style="ink"][data-weather-mode="sunny"] .weather-mode-toggle::before {
  left: calc(100% / 3 * 2.33);
  transform: none;
}

body[data-style="ink"] .weather-mode-toggle button {
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.3em;
  padding: 7px 18px 9px 22px;
}

body[data-style="ink"] .icon-button {
  background: none;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-style="ink"] .icon-button:hover {
  background: rgba(42, 38, 34, 0.07);
}

/* 播放坞：无卡片，一道发丝线分隔 */
body[data-style="ink"] .dock {
  background: none;
  border: 0;
  border-top: 1px solid var(--stroke-2);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 16px 6px 4px;
}

/* 圆相：唱片换成一个会慢慢转动的墨圈，中间一点朱砂 */
body[data-style="ink"] .disc {
  width: 54px;
  height: 54px;
  background: conic-gradient(from 30deg, #2b2622 0 74%, rgba(43, 38, 34, 0) 74% 100%);
  -webkit-mask: radial-gradient(circle, transparent 0 61%, #000 63%);
  mask: radial-gradient(circle, transparent 0 61%, #000 63%);
  border: 0;
  box-shadow: none;
}

body[data-style="ink"] .disc::before {
  display: none;
}

body[data-style="ink"] .disc span {
  inset: 38%;
  background: var(--accent);
  box-shadow: none;
}

body[data-style="ink"] .disc span::after {
  display: none;
}

body[data-style="ink"] .track-info h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

body[data-style="ink"] .timeline-row {
  font-family: var(--font-serif);
  letter-spacing: 0.06em;
}

body[data-style="ink"] .tool-button[aria-pressed="true"] {
  background: none;
  color: var(--accent);
}

body[data-style="ink"] .volume-control .range {
  width: 84px;
}

/* 播放中静止后，水墨画风下发丝线也一并淡出 */
body.is-idle.is-playing:not(.drawer-open)[data-style="ink"] .dock {
  opacity: 0;
}

/* 窄屏的水墨画幅：题名、歌词与时钟各占一列，互不压住 */
@media (max-width: 820px) {
  body[data-style="ink"] .clock-block {
    left: 30px;
    top: 158px;
  }

  body[data-style="ink"] .lyric-stage,
  body[data-style="ink"] .empty-hero {
    width: calc(100vw - 150px);
  }

  body[data-style="ink"] .dock {
    padding: 12px 4px 2px;
  }
}

.brand strong {
  white-space: nowrap;
}


/* ==========================================================================
   唱机：磁带 / CD / 黑胶（播放坞里的那一枚）
   ========================================================================== */

:root {
  --deck-fill: rgba(255, 255, 255, 0.07);
  --deck-label: rgba(255, 255, 255, 0.12);
  --cd-base: #c9cfd3;
}

body[data-style="ink"] {
  --deck-fill: #f8f3e7;
  --deck-label: #efe6d1;
  --cd-base: #eeeae0;
}

.deck {
  position: relative;
  flex: none;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
}

body[data-deck="cassette"] .deck {
  width: 88px;
  height: 56px;
}

.deck svg {
  display: none;
  width: 100%;
  height: 100%;
  overflow: visible;
}

body[data-deck="cassette"] .deck .k-cassette,
body[data-deck="cd"] .deck .k-cd,
body[data-deck="vinyl"] .deck .k-vinyl {
  display: block;
}

.deck .spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: deck-spin calc(var(--cassette-speed, 1.2s) * 2.6) linear infinite;
  animation-play-state: paused;
}

body.is-playing .deck .spin {
  animation-play-state: running;
}

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

/* 磁带：墨线 + 一点朱砂 */
.deck .c-body {
  fill: var(--deck-fill);
  stroke: var(--ink);
  stroke-width: 1.6;
}

.deck .c-label {
  fill: var(--deck-label);
  stroke: var(--ink);
  stroke-width: 0.9;
}

.deck .c-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  stroke-opacity: 0.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.deck .c-seal {
  fill: var(--accent);
}

.deck .c-window {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.1;
}

.deck .c-tape {
  fill: var(--ink);
  fill-opacity: 0.82;
  transition: r 0.6s linear;
}

.deck .c-hub {
  fill: var(--deck-fill);
  stroke: var(--ink);
  stroke-width: 1.1;
}

.deck .c-teeth line {
  stroke: var(--ink);
  stroke-width: 1.1;
  stroke-linecap: round;
}

.deck .c-dot {
  fill: var(--ink);
  fill-opacity: 0.55;
}

/* CD */
.deck .d-base {
  fill: var(--cd-base);
}

.deck .d-clear {
  fill: var(--deck-fill);
  fill-opacity: 0.5;
}

.deck .d-ring {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: 0.25;
  stroke-width: 0.6;
}

.deck .d-hole {
  fill: var(--deck-fill);
  stroke: var(--ink);
  stroke-width: 0.9;
}

.deck .d-rim {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  stroke-opacity: 0.75;
}

/* 黑胶 */
.deck .v-disc {
  fill: #2b2622;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 0.8;
}

.deck .v-groove {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 0.6;
}

.deck .v-label {
  fill: var(--accent);
}

.deck .v-mark {
  fill: none;
  stroke: #f7efe2;
  stroke-opacity: 0.7;
  stroke-width: 1;
  stroke-linecap: round;
}

.deck .v-dot {
  fill: #f7efe2;
}

.deck .v-hole {
  fill: var(--deck-fill);
}

.deck .glare {
  fill: none;
  stroke: #fff;
  stroke-opacity: 0.55;
  stroke-width: 2.2;
  stroke-linecap: round;
}

@media (max-width: 820px) {
  .deck {
    width: 50px;
    height: 50px;
  }

  body[data-deck="cassette"] .deck {
    width: 76px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .deck .spin {
    animation: none;
  }
}

.deck-toggle {
  grid-template-columns: repeat(3, 1fr);
}


/* ==========================================================================
   水墨画风的字号与字重：留白要够、层级要清楚
   时钟与竖排题名都是配角，歌词才是主角。
   ========================================================================== */

:root {
  --art-x: 56px;
  --art-y: 92px;
  --art-w: 800px;
  --art-h: 400px;
}

body[data-style="ink"] {
  --font-clock: "Cormorant Garamond", "Didot", "Bodoni 72", "Bodoni MT", "Baskerville", "Hoefler Text", "Songti SC", "STSong", "SimSun", serif;
}

/* 时钟：缩小，对齐画幅内边距 */
body[data-style="ink"] .clock-block {
  left: calc(var(--art-x) + 30px);
  top: calc(var(--art-y) + 26px);
  gap: 7px;
}

body[data-style="ink"] .eyebrow {
  font-size: 10px;
  letter-spacing: 0.42em;
  font-weight: 500;
}

body[data-style="ink"] .clock {
  font-family: var(--font-clock);
  font-size: clamp(26px, 2.5vw, 40px);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1;
}

body[data-style="ink"] .clock i {
  font-size: 0.46em;
  margin-left: 0.2em;
  opacity: 0.55;
}

body[data-style="ink"] .clock-meta {
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
}

body[data-style="ink"] .clock-meta i {
  width: 16px;
}

/* 竖排题名：小一号、细一点，序号单独成一行小字 */
.ink-title .ink-main {
  gap: 9px;
}

.ink-title b {
  font-size: clamp(18px, 1.7vw, 26px);
  font-weight: 500;
  letter-spacing: 0.34em;
  line-height: 1.2;
}

.ink-title small {
  font-size: 11px;
  letter-spacing: 0.32em;
  margin-top: 4px;
}

.ink-title .ink-index {
  writing-mode: horizontal-tb;
  font-style: normal;
  font-family: var(--font-clock, serif);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.ink-title .ink-rule {
  width: 1px;
  height: 14px;
  background: rgba(42, 38, 34, 0.32);
}

.ink-title .seal {
  width: 21px;
  height: 21px;
  font-size: 12px;
  margin-top: 4px;
}

/* 歌词与空状态的大标题：同样收一收 */
body[data-style="ink"] .lyric-stage p {
  font-size: clamp(22px, 2.8vw, 40px);
  font-weight: 400;
  letter-spacing: 0.16em;
}

body[data-style="ink"]:not(.has-lyrics) .lyric-stage p {
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.26em;
  color: var(--ink-3);
}

body[data-style="ink"] .lyric-stage small {
  font-size: clamp(12px, 1vw, 14px);
}

body[data-style="ink"] .empty-hero h1 {
  font-size: clamp(30px, 3.8vw, 54px);
  font-weight: 400;
  letter-spacing: 0.2em;
}

body[data-style="ink"] .brand strong {
  font-weight: 500;
  font-size: 14px;
}

body[data-style="ink"] .track-info h2 {
  font-weight: 500;
}


/* ==========================================================================
   水墨画风：所有文字都收在画幅里面
   歌词 / 空状态跟随画幅居中，两侧给时钟与竖排题名留出位置
   ========================================================================== */

body[data-style="ink"].has-window .lyric-stage,
body[data-style="ink"].has-window .empty-hero {
  left: calc(var(--art-x) + var(--art-w) / 2);
  top: calc(var(--art-y) + var(--art-h) * 0.46);
  width: clamp(200px, calc(var(--art-w) - 300px), 900px);
}

body[data-style="ink"].has-window:not(.has-lyrics) .lyric-stage {
  top: calc(var(--art-y) + var(--art-h) * 0.6);
}

@media (min-width: 821px) {
  body[data-style="ink"].has-window.drawer-open .lyric-stage,
  body[data-style="ink"].has-window.drawer-open .empty-hero {
    left: calc((var(--art-x) + 100vw - 428px) / 2);
    width: clamp(200px, calc(100vw - 428px - var(--art-x) - 300px), 900px);
  }
}

@media (max-width: 820px) {
  body[data-style="ink"].has-window .lyric-stage,
  body[data-style="ink"].has-window .empty-hero {
    width: calc(var(--art-w) - 150px);
  }

  body[data-style="ink"] .empty-hero h1 {
    font-size: 24px;
    letter-spacing: 0.14em;
  }

  body[data-style="ink"] .empty-hero p {
    font-size: 12px;
    letter-spacing: 0.04em;
  }
}


/* 页脚：备案号（默认为空则不显示）与署名 */
.site-foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  text-align: center;
  font-size: 10px;
  line-height: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-4);
  pointer-events: none;
}

.site-foot:empty {
  display: none;
}

.site-foot a {
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
}

.site-foot a:hover {
  color: var(--ink-2);
}

.credit {
  margin-top: 10px;
  font-size: 10.5px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--ink-4);
}
