/* ==================================================================
   旧音 · SOUND RELIC ARCHIVE
   深棕木质 / 暖琥珀 / 旧纸质感
   ================================================================== */

:root {
  --bg: #0d0906;
  --bg-2: #130e09;
  --panel: #19120c;
  --panel-2: #211710;
  --cream: #f2e6d2;
  --cream-2: #dfcfb6;
  --muted: #b29b80;
  --dim: #8a735d;
  --amber: #dba565;
  --amber-2: #f2c98f;
  --rust: #c9825f;
  --sage: #9ab7a6;
  --line: rgba(216, 161, 95, .17);
  --line-soft: rgba(239, 226, 205, .075);
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
  --latin: "Georgia", "Times New Roman", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --phone-w: 430px;
  --tab-h: 72px;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

body { overflow: hidden; }

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; opacity: .55; }

::selection { background: rgba(216, 161, 95, .32); color: #fff; }

:focus-visible {
  outline: 1px solid var(--amber);
  outline-offset: 2px;
}

/* ---------------- 舞台与手机 ---------------- */

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  isolation: isolate;
}

.stage::before {
  content: "";
  position: fixed;
  inset: -40px;
  z-index: -2;
  background: url("../assets/cover.jpg") center / cover no-repeat;
  filter: blur(26px) brightness(.26) saturate(.8);
  transform: scale(1.05);
}

.stage::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 70% 40%, rgba(216, 161, 95, .09), transparent 55%),
    linear-gradient(180deg, rgba(8, 6, 5, .55), rgba(8, 6, 5, .9));
}

.phone {
  position: relative;
  width: var(--phone-w);
  height: min(920px, calc(100vh - 48px));
  height: min(920px, calc(100dvh - 48px));
  background: var(--bg);
  border: 1px solid rgba(216, 161, 95, .22);
  border-radius: 34px;
  overflow: hidden;
  box-shadow:
    0 60px 120px rgba(0, 0, 0, .7),
    0 0 0 8px rgba(20, 14, 10, .75),
    0 0 90px rgba(216, 161, 95, .08);
  isolation: isolate;
}

.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 58%, rgba(6, 4, 3, .34) 100%),
    linear-gradient(180deg, rgba(239, 226, 205, .03), transparent 14%);
}

.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 61;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.app {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.app::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: var(--tab-h);
  height: 26px;
  z-index: 54;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(13, 9, 6, .92));
}

.screen-host {
  position: absolute;
  inset: 0;
  bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0 22px calc(26px + env(safe-area-inset-bottom));
}

.screen-host::-webkit-scrollbar { display: none; }

.screen {
  animation: screen-in .38s var(--ease) both;
  padding-bottom: 8px;
}

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

/* ---------------- 桌面侧栏 ---------------- */

.desktop-aside {
  position: absolute;
  left: max(44px, 7vw);
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  z-index: 2;
  display: none;
  pointer-events: none;
}

.aside-mark { display: flex; align-items: center; gap: 16px; margin-bottom: 34px; }

.aside-seal {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border: 1px solid rgba(216, 161, 95, .55);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: .08em;
  position: relative;
}
.aside-seal::after {
  content: ""; position: absolute; inset: 4px; border: 1px solid rgba(216, 161, 95, .18);
}

.aside-index {
  font-family: var(--latin);
  font-size: 9px;
  letter-spacing: .3em;
  color: var(--dim);
}

.desktop-aside h2 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 42px;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--cream);
  white-space: nowrap;
}

.aside-en {
  margin: 0 0 18px;
  font-family: var(--latin);
  font-size: 10px;
  letter-spacing: .38em;
  color: var(--amber);
}

.aside-desc {
  margin: 0 0 28px;
  font-size: 12px;
  line-height: 2.1;
  color: var(--muted);
}

.aside-rule { width: 48px; height: 1px; background: rgba(216, 161, 95, .4); margin-bottom: 22px; }

.aside-credit {
  margin: 0;
  font-size: 10px;
  line-height: 1.9;
  letter-spacing: .08em;
  color: var(--dim);
}

.aside-vertical {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--latin);
  font-size: 8px;
  letter-spacing: .5em;
  color: rgba(216, 161, 95, .28);
}

/* ---------------- 通用 ---------------- */

.kicker {
  font-family: var(--latin);
  font-size: 8px;
  letter-spacing: .26em;
  color: var(--amber);
  text-transform: uppercase;
  opacity: .82;
}

.ico { width: 1em; height: 1em; display: block; flex: none; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: max(20px, env(safe-area-inset-top));
  gap: 12px;
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-seal {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid rgba(216, 161, 95, .5);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--cream);
  position: relative;
}
.brand-seal::after { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(216, 161, 95, .16); }

.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-text b { font-family: var(--serif); font-weight: 500; font-size: 15px; letter-spacing: .22em; }
.brand-text span { font-family: var(--latin); font-size: 6.5px; letter-spacing: .24em; color: var(--dim); }

.topbar-actions { display: flex; align-items: center; gap: 7px; }
.qr-btn { color: var(--amber); border-color: rgba(216, 161, 95, .3); }
.qr-btn:hover { background: rgba(216, 161, 95, .08); }

.icon-btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .015);
  color: var(--muted);
  font-family: var(--latin);
  font-size: 13px;
  transition: .2s;
}
.icon-btn:hover { color: var(--amber); border-color: rgba(216, 161, 95, .45); }
.icon-btn .ico { width: 15px; height: 15px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 13px;
}
.section-head > div { display: flex; align-items: baseline; gap: 9px; }
.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: .08em;
}
.section-en {
  font-family: var(--latin);
  font-size: 7.5px;
  letter-spacing: .2em;
  color: var(--dim);
}
.section-note { font-size: 8.5px; color: var(--dim); letter-spacing: .04em; white-space: nowrap; }

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .02);
  color: var(--cream);
  font-size: 12px;
  letter-spacing: .06em;
  transition: .2s var(--ease);
  white-space: nowrap;
}
.btn .ico { width: 16px; height: 16px; }
.btn:hover { border-color: rgba(216, 161, 95, .45); background: rgba(216, 161, 95, .06); }
.btn.primary {
  background: linear-gradient(150deg, var(--amber-2), var(--amber) 55%, #c08a4c);
  border-color: rgba(240, 192, 131, .8);
  color: #1a1109;
  font-weight: 600;
  box-shadow: 0 8px 26px rgba(216, 161, 95, .16);
}
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: rgba(255, 255, 255, .02); }
.btn.small { height: 36px; padding: 0 13px; font-size: 11px; }
.btn.danger { background: #8f3b2a; border-color: #a94d38; color: #ffe9e0; }
.btn.danger-text { color: #d6836c; border-color: rgba(196, 123, 90, .3); }
.btn.danger-text:hover { background: rgba(196, 123, 90, .12); }

.mini-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 9px;
  letter-spacing: .05em;
  transition: .2s;
}
.mini-btn:hover { color: var(--amber); border-color: rgba(216, 161, 95, .45); }

/* ---------------- 采集 · hero ---------------- */

.hero {
  position: relative;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.hero-art {
  position: absolute;
  right: -18px;
  top: 4px;
  width: 150px;
  height: 150px;
  pointer-events: none;
  opacity: .7;
}
.hero-char {
  position: absolute;
  right: 8px;
  top: -14px;
  font-family: var(--serif);
  font-size: 128px;
  line-height: 1;
  color: rgba(216, 161, 95, .045);
  transform: rotate(-6deg);
}
.hero-ring {
  position: absolute;
  right: 22px;
  top: 54px;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(216, 161, 95, .12);
  border-radius: 50%;
}
.hero-ring::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(216, 161, 95, .1);
  border-radius: 50%;
}

.hero h1 {
  margin: 14px 0 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 9.2vw, 40px);
  line-height: 1.42;
  letter-spacing: .03em;
  color: var(--cream);
}
.hero h1 em {
  font-style: normal;
  color: var(--amber-2);
  position: relative;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 3px;
  height: 1px;
  background: linear-gradient(90deg, rgba(216, 161, 95, .5), transparent);
}

.hero-lead {
  margin: 0;
  max-width: 300px;
  font-size: 12px;
  line-height: 1.95;
  letter-spacing: .03em;
  color: var(--muted);
}

.hero-stats {
  display: flex;
  gap: 26px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  position: relative;
  z-index: 1;
}
.stat { display: flex; align-items: baseline; gap: 6px; }
.stat b {
  font-family: var(--latin);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: .04em;
  color: var(--amber);
}
.stat span { font-size: 8px; letter-spacing: .1em; color: var(--dim); }

/* ---------------- 旧物卡片 ---------------- */

.relic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.relic-card {
  position: relative;
  height: 158px;
  padding: 12px;
  border: 1px solid rgba(216, 161, 95, .22);
  border-radius: 12px;
  background: linear-gradient(165deg, #241a12, #171009);
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 55%),
    linear-gradient(165deg, #241a12, #171009);
  overflow: hidden;
  cursor: pointer;
  transition: transform .28s var(--ease), border-color .28s, box-shadow .28s;
}
.relic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(9, 6, 4, .55));
  pointer-events: none;
}
.relic-card::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c) 50%, transparent), transparent);
  opacity: .5;
}
.relic-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 16px 34px rgba(0, 0, 0, .35); }
.relic-card.is-playing {
  border-color: color-mix(in srgb, var(--c) 70%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 18%, transparent), 0 14px 40px rgba(0, 0, 0, .4);
}

.relic-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }
.relic-icon { color: var(--c); opacity: .9; }
.relic-icon .ico { width: 29px; height: 29px; }
.relic-dur { font-family: var(--latin); font-size: 9px; letter-spacing: .08em; color: var(--dim); }

.relic-wave {
  position: absolute;
  left: 12px; right: 12px; top: 58px;
  height: 38px;
  opacity: .85;
  mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, .35));
  -webkit-mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, .35));
}
.relic-wave .wave-svg { width: 100%; height: 100%; }

.relic-foot { position: absolute; left: 12px; bottom: 12px; z-index: 1; }
.relic-name { font-family: var(--serif); font-size: 16px; letter-spacing: .06em; color: var(--cream); }
.relic-en { margin-top: 3px; font-family: var(--latin); font-size: 6px; letter-spacing: .18em; color: var(--dim); }

.relic-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  border-radius: 50%;
  background: rgba(10, 7, 5, .4);
  color: var(--c);
  transition: .2s;
}
.relic-play .ico { width: 10px; height: 10px; transform: translateX(1px); }
.relic-play:hover { background: var(--c); color: #140d08; }
.relic-card.is-playing .relic-play { background: var(--c); color: #140d08; }
.relic-card.is-playing .relic-play .ico { transform: none; }

/* ---------------- 我的采集 ---------------- */

.archive-strip {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 5px;
  scroll-snap-type: x mandatory;
}
.archive-strip::-webkit-scrollbar { display: none; }

.archive-item {
  position: relative;
  flex: 0 0 154px;
  min-height: 132px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(165deg, #1b130d, #120d09);
  scroll-snap-align: start;
  cursor: pointer;
  transition: .22s;
}
.archive-item:hover { border-color: rgba(216, 161, 95, .38); transform: translateY(-2px); }
.archive-icon { color: var(--c); }
.archive-icon .ico { width: 20px; height: 20px; }
.archive-wave { height: 28px; margin: 6px 0 8px; opacity: .8; }
.archive-wave .wave-svg { width: 100%; height: 100%; }
.archive-name { font-family: var(--serif); font-size: 13px; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.archive-meta { margin-top: 3px; font-size: 8px; letter-spacing: .04em; color: var(--dim); }
.archive-arrow { position: absolute; right: 8px; bottom: 8px; color: var(--dim); }
.archive-arrow .ico { width: 11px; height: 11px; transform: rotate(-90deg); }

.archive-empty {
  width: 100%;
  min-height: 124px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px dashed rgba(216, 161, 95, .22);
  border-radius: 10px;
  background: rgba(216, 161, 95, .02);
  color: var(--muted);
  text-align: center;
  padding: 16px;
}
.archive-empty .empty-plus { color: var(--amber); opacity: .7; }
.archive-empty .empty-plus .ico { width: 20px; height: 20px; }
.archive-empty b { font-family: var(--serif); font-size: 13px; font-weight: 500; color: var(--cream-2); letter-spacing: .06em; }
.archive-empty p { margin: 0; font-size: 9.5px; line-height: 1.7; color: var(--dim); }

.collect-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 20px 0 0; }

.collect-foot {
  margin: 28px 0 6px;
  text-align: center;
  font-family: var(--serif);
  font-size: 11px;
  line-height: 2.1;
  letter-spacing: .12em;
  color: rgba(216, 161, 95, .55);
}
.collect-foot span { font-family: var(--latin); font-size: 6px; letter-spacing: .28em; color: var(--dim); }

/* ---------------- 底部导航 ---------------- */

.tabbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  align-items: center;
  z-index: 55;
  background: rgba(13, 9, 6, .82);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-top: 1px solid var(--line-soft);
}

.tab {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: none;
  background: transparent;
  color: var(--dim);
  font-size: 9px;
  letter-spacing: .18em;
  transition: .22s;
  position: relative;
}
.tab svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.tab i {
  position: absolute;
  top: 9px;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: transparent;
  transition: .22s;
}
.tab.is-active { color: var(--amber-2); }
.tab.is-active i { background: var(--amber); box-shadow: 0 0 8px rgba(216, 161, 95, .8); }
.tab.is-active svg { filter: drop-shadow(0 0 8px rgba(216, 161, 95, .28)); }

/* ---------------- Toast ---------------- */

.toast {
  position: absolute;
  left: 50%;
  bottom: calc(var(--tab-h) + 22px);
  transform: translate(-50%, 12px);
  z-index: 160;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(30, 21, 14, .96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  font-size: 10.5px;
  letter-spacing: .02em;
  color: var(--cream);
  opacity: 0;
  transition: .24s var(--ease);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--amber); flex: none; }
.toast-error { border-color: rgba(196, 123, 90, .5); }
.toast-error .toast-dot { background: var(--rust); }

/* ---------------- 底部抽屉 ---------------- */

#overlay-root { position: absolute; inset: 0; z-index: 100; pointer-events: none; }

.sheet-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: auto;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 3, .62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .26s;
}

.sheet {
  position: relative;
  width: 100%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 60% at 80% 0%, rgba(216, 161, 95, .07), transparent 60%),
    #16100b;
  border: 1px solid rgba(216, 161, 95, .2);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -30px 70px rgba(0, 0, 0, .55);
  transform: translateY(102%);
  transition: transform .34s var(--ease);
}
.sheet-layer.is-open .sheet-backdrop { opacity: 1; }
.sheet-layer.is-open .sheet { transform: translateY(0); }

.sheet-small { max-height: 84%; }
.detail-sheet { max-height: 93%; }

.sheet-grab {
  width: 34px; height: 3px;
  border-radius: 3px;
  background: rgba(216, 161, 95, .25);
  margin: 9px auto 2px;
  flex: none;
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px 12px;
  flex: none;
}
.sheet-title-wrap .kicker { margin-bottom: 6px; }
.sheet-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 23px;
  letter-spacing: .06em;
  line-height: 1.3;
}
.sheet-close {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  flex: none;
  margin-top: 2px;
}
.sheet-close:hover { color: var(--cream); border-color: rgba(216, 161, 95, .45); }
.sheet-close .ico { width: 12px; height: 12px; }

.sheet-body {
  padding: 0 20px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  flex: 1;
}
.sheet-body::-webkit-scrollbar { display: none; }

.sheet-foot {
  display: flex;
  gap: 9px;
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft);
  background: rgba(14, 10, 7, .55);
  flex: none;
}
.sheet-foot .btn { flex: 1; }
.sheet-foot .btn.icon-only { flex: 0 0 44px; padding: 0; }

/* ---------------- 采集详情 ---------------- */

.detail-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .015);
  background:
    radial-gradient(100% 120% at 0% 0%, color-mix(in srgb, var(--c) 12%, transparent), transparent 60%),
    rgba(255, 255, 255, .015);
}
.detail-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--c) 38%, transparent);
  border-radius: 50%;
  color: var(--c);
  flex: none;
}
.detail-icon .ico { width: 23px; height: 23px; }
.detail-headtext { flex: 1; min-width: 0; }
.detail-en { font-family: var(--latin); font-size: 8px; letter-spacing: .18em; color: var(--c); margin-bottom: 4px; }
.detail-tag { font-size: 10px; color: var(--muted); letter-spacing: .04em; }
.detail-dur { font-family: var(--latin); font-size: 12px; color: var(--dim); letter-spacing: .06em; }

.detail-story {
  margin: 13px 1px 14px;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.95;
  letter-spacing: .04em;
  color: var(--cream-2);
}

.trim-wrap { position: relative; }
.trim-canvas {
  width: 100%;
  height: 112px;
  display: block;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(0, 0, 0, .18);
  touch-action: none;
  cursor: ew-resize;
}
.trim-hint {
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  text-align: center;
  font-size: 7px;
  letter-spacing: .2em;
  color: rgba(216, 161, 95, .45);
  pointer-events: none;
}

.trim-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 9px 2px 0;
  font-size: 9px;
  letter-spacing: .06em;
  color: var(--dim);
}
.trim-readout b { font-family: var(--latin); font-weight: 400; font-size: 11px; color: var(--amber); margin-left: 3px; }

.trim-quick { display: flex; gap: 6px; margin: 11px 0 0; }

.detail-note {
  margin: 13px 0 0;
  font-size: 9px;
  line-height: 1.8;
  color: var(--dim);
  padding-left: 10px;
  border-left: 1px solid rgba(216, 161, 95, .22);
}

.btn.is-playing { border-color: rgba(216, 161, 95, .55); color: var(--amber); }

/* 已保存片段 */

.saved-visual {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(110% 100% at 0% 0%, color-mix(in srgb, var(--c) 10%, transparent), transparent 60%),
    rgba(255, 255, 255, .015);
}
.saved-icon { color: var(--c); flex: none; }
.saved-icon .ico { width: 30px; height: 30px; }
.saved-wave { flex: 1; height: 52px; }
.saved-wave .wave-svg { width: 100%; height: 100%; }

.saved-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 14px 0;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
}
.saved-grid > div { padding: 10px 12px; background: #15100b; }
.saved-grid span { display: block; font-size: 8px; color: var(--dim); margin-bottom: 4px; letter-spacing: .08em; }
.saved-grid b { font-family: var(--serif); font-weight: 400; font-size: 12px; letter-spacing: .03em; color: var(--cream-2); }

.saved-note {
  margin: 0 0 4px;
  font-size: 10px;
  line-height: 1.85;
  color: var(--muted);
  font-family: var(--serif);
}

.saved-delete {
  margin-top: 14px;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(214, 131, 108, .6);
  font-size: 9px;
  letter-spacing: .08em;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(214, 131, 108, .25);
}
.saved-delete:hover { color: #d6836c; }

/* ---------------- 录入 / 录制 ---------------- */

.record-stage {
  position: relative;
  margin-top: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(90% 90% at 50% 0%, rgba(216, 161, 95, .07), transparent 65%),
    rgba(0, 0, 0, .14);
  text-align: center;
}
.rec-canvas { width: 100%; height: 84px; display: block; }
.record-status { font-family: var(--serif); font-size: 12px; letter-spacing: .1em; color: var(--cream-2); margin-top: 4px; }
.record-time { font-family: var(--latin); font-size: 30px; letter-spacing: .08em; color: var(--amber); margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.record-meter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--latin);
  font-size: 7px;
  letter-spacing: .22em;
  color: var(--dim);
}
#rec-dot { width: 5px; height: 5px; border-radius: 50%; background: transparent; transition: .2s; }
.record-tip {
  margin: 14px 2px 0;
  font-size: 9.5px;
  line-height: 1.8;
  color: var(--dim);
}
#rec-start.is-recording { background: rgba(196, 123, 90, .16); border-color: rgba(196, 123, 90, .5); color: #e5a58e; }

/* ---------------- 关于 ---------------- */

.about-lead {
  margin: 2px 0 16px;
  font-family: var(--serif);
  font-size: 12.5px;
  line-height: 1.95;
  color: var(--cream-2);
  letter-spacing: .03em;
}
.about-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 9px; overflow: hidden; }
.about-flow > div { background: #15100b; padding: 12px 9px; display: flex; flex-direction: column; gap: 4px; }
.about-flow b { font-family: var(--latin); font-weight: 400; font-size: 9px; color: var(--amber); letter-spacing: .12em; }
.about-flow span { font-family: var(--serif); font-size: 14px; letter-spacing: .1em; }
.about-flow em { font-style: normal; font-size: 8px; line-height: 1.6; color: var(--dim); }
.about-small { margin: 16px 0 0; font-size: 9.5px; line-height: 1.9; color: var(--muted); }
.about-credit {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: var(--dim);
}
.about-credit b { font-family: var(--serif); font-weight: 400; font-size: 11px; letter-spacing: .08em; color: var(--amber); }

/* 手机扫码 */

.qr-wrap { text-align: center; padding-top: 2px; }
.qr-img {
  display: block;
  width: min(100%, 300px);
  margin: 0 auto 14px;
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .4);
}
.qr-copy { margin: 0 0 8px; font-family: var(--serif); font-size: 12px; letter-spacing: .04em; color: var(--cream-2); }
.qr-url {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  font-family: var(--latin);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--amber);
  background: rgba(0, 0, 0, .18);
}
.qr-tip { margin: 12px 0 2px; font-size: 9px; line-height: 1.7; color: var(--dim); }

/* ---------------- 创作区 ---------------- */

.create-topbar { align-items: flex-end; padding-top: max(18px, env(safe-area-inset-top)); }
.create-title { flex: 1; min-width: 0; }
.create-title .kicker { margin-bottom: 6px; }
.project-name {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px dashed transparent;
  padding: 0 0 3px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .05em;
  color: var(--cream);
  transition: border-color .2s;
}
.project-name::placeholder { color: var(--dim); }
.project-name:focus { outline: none; border-bottom-color: rgba(216, 161, 95, .4); }

.transport {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 15px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(100% 130% at 0% 0%, rgba(216, 161, 95, .08), transparent 55%),
    linear-gradient(160deg, #1c140e, #130e09);
  box-shadow: inset 0 1px 0 rgba(239, 226, 205, .04);
}
.transport-play {
  width: 52px; height: 52px;
  flex: none;
  display: grid; place-items: center;
  border: 1px solid rgba(240, 192, 131, .8);
  border-radius: 50%;
  background: linear-gradient(150deg, var(--amber-2), var(--amber));
  color: #1a1109;
  box-shadow: 0 6px 22px rgba(216, 161, 95, .2);
  transition: .2s;
}
.transport-play .ico { width: 18px; height: 18px; transform: translateX(1px); }
.transport-play.is-playing { background: transparent; color: var(--amber); }
.transport-play.is-playing .ico { transform: none; }

.transport-center { flex: 1; min-width: 0; }
.transport-time { display: flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; }
.transport-time b { font-family: var(--latin); font-weight: 400; font-size: 19px; letter-spacing: .03em; color: var(--cream); }
.transport-time span { color: var(--dim); font-size: 10px; }
.transport-time em { font-family: var(--latin); font-style: normal; font-size: 10px; color: var(--dim); }
.transport-sub { margin-top: 3px; display: flex; align-items: center; gap: 6px; font-size: 8.5px; color: var(--muted); letter-spacing: .04em; }
.transport-sub .dot { color: var(--dim); }

.transport-toggles { display: flex; flex-direction: column; gap: 6px; }
.round-toggle {
  width: 29px; height: 29px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--dim);
  transition: .2s;
}
.round-toggle .ico { width: 14px; height: 14px; }
.round-toggle:hover { color: var(--amber); border-color: rgba(216, 161, 95, .4); }
.round-toggle.is-on { color: var(--amber); border-color: rgba(216, 161, 95, .5); background: rgba(216, 161, 95, .08); }

.bpm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 11px 0 15px;
}
.bpm-label { font-family: var(--latin); font-size: 7px; letter-spacing: .22em; color: var(--dim); }
.bpm-seg { display: flex; border: 1px solid var(--line-soft); border-radius: 6px; overflow: hidden; }
.bpm-btn {
  border: none;
  background: transparent;
  color: var(--dim);
  font-family: var(--latin);
  font-size: 10px;
  letter-spacing: .04em;
  padding: 6px 9px;
  line-height: 1;
  transition: .2s;
}
.bpm-btn small { font-size: 5px; letter-spacing: .1em; margin-left: 2px; opacity: .7; }
.bpm-btn + .bpm-btn { border-left: 1px solid var(--line-soft); }
.bpm-btn.is-on { background: rgba(216, 161, 95, .13); color: var(--amber-2); }
.bpm-hint { margin-left: auto; font-size: 8px; color: var(--dim); letter-spacing: .04em; }

/* 时间线 */

.timeline-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #130e09;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}

.tl-labels { background: #110c08; border-right: 1px solid var(--line-soft); position: relative; z-index: 2; }
.tl-label-spacer {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--latin);
  font-size: 6px;
  letter-spacing: .16em;
  color: var(--dim);
  border-bottom: 1px solid var(--line-soft);
}
.tl-label {
  height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.tl-label::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 2px; height: 18px;
  background: var(--c);
  opacity: .55;
}
.tl-label b { font-family: var(--latin); font-weight: 400; font-size: 6px; letter-spacing: .14em; color: var(--dim); }
.tl-label span { font-family: var(--serif); font-size: 10px; letter-spacing: .08em; color: var(--cream-2); }
.tl-label em { font-family: var(--latin); font-style: normal; font-size: 4.8px; letter-spacing: .12em; color: var(--dim); }

.tl-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; position: relative; }
.tl-scroll::-webkit-scrollbar { display: none; }

.tl-inner { position: relative; width: 336px; min-width: 100%; height: 216px; }

.tl-ruler {
  position: relative;
  height: 24px;
  border-bottom: 1px solid var(--line-soft);
  background: #110c08;
}
.ruler-bar {
  position: absolute;
  top: 7px;
  font-family: var(--latin);
  font-size: 7px;
  color: var(--dim);
  padding-left: 4px;
  border-left: 1px solid rgba(216, 161, 95, .22);
  line-height: 1;
}
.ruler-end {
  position: absolute;
  right: 4px;
  top: 8px;
  font-family: var(--latin);
  font-size: 5.5px;
  letter-spacing: .12em;
  color: var(--dim);
}

.tl-rows {
  height: 192px;
  background-image:
    linear-gradient(to right, rgba(239, 226, 205, .045) 1px, transparent 1px),
    linear-gradient(to right, rgba(216, 161, 95, .09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(239, 226, 205, .05) 1px, transparent 1px);
  background-size: 14px 100%, 56px 100%, 100% 64px;
  background-position: 0 0, 0 0, 0 0;
}

.tl-clips { position: absolute; left: 0; top: 24px; width: 100%; height: 192px; pointer-events: none; }

.clip {
  position: absolute;
  height: 48px;
  border-radius: 7px;
  border: 1px solid rgba(216, 161, 95, .45);
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  background: #3a281a;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--c) 40%, #1a120c), color-mix(in srgb, var(--c) 17%, #120d09));
  overflow: hidden;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: box-shadow .2s, border-color .2s;
}
.clip:active { cursor: grabbing; }
.clip.is-dragging { z-index: 8; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); transform: scale(1.015); }
.clip.is-selected { border-color: var(--amber-2); box-shadow: 0 0 0 1px rgba(240, 192, 131, .5), 0 8px 24px rgba(0, 0, 0, .4); }

.clip-wave { position: absolute; inset: 0; opacity: .9; pointer-events: none; }
.clip-wave .wave-svg { width: 100%; height: 100%; }

.clip-name {
  position: absolute;
  left: 7px; top: 6px;
  font-size: 9.5px;
  letter-spacing: .04em;
  color: #fff6e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 12px);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
  pointer-events: none;
}
.clip-len {
  position: absolute;
  right: 6px; bottom: 5px;
  font-family: var(--latin);
  font-size: 6.5px;
  color: rgba(255, 246, 232, .62);
  pointer-events: none;
}

.tl-playhead {
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 1px;
  background: var(--amber-2);
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(240, 192, 131, .55);
  will-change: transform;
}
.tl-playhead i {
  position: absolute;
  top: 0;
  left: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber-2);
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(240, 192, 131, .6);
}

.timeline-empty {
  position: absolute;
  left: 54px; right: 0; top: 24px; bottom: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 10, 7, .86);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  text-align: center;
}
.timeline-empty[hidden] { display: none; }
.tl-empty-inner { padding: 12px; }
.tl-empty-icon { color: rgba(216, 161, 95, .5); display: inline-block; }
.tl-empty-icon .ico { width: 24px; height: 24px; }
.tl-empty-inner b { display: block; margin: 6px 0 5px; font-family: var(--serif); font-weight: 500; font-size: 14px; letter-spacing: .08em; }
.tl-empty-inner p { margin: 0 0 10px; font-size: 8.5px; line-height: 1.75; color: var(--dim); }
.tl-empty-actions { display: flex; justify-content: center; gap: 6px; }
.tl-empty-actions .btn { height: 30px; font-size: 9px; padding: 0 9px; }

.timeline-hint {
  margin: 9px 0 0;
  text-align: center;
  font-size: 8px;
  letter-spacing: .12em;
  color: var(--dim);
}

.create-toolbar { display: flex; gap: 8px; margin-top: 14px; }
.tool-btn {
  width: 60px;
  height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .015);
  color: var(--muted);
  font-size: 7.5px;
  letter-spacing: .04em;
  transition: .2s;
}
.tool-btn .ico { width: 15px; height: 15px; }
.tool-btn:hover { color: var(--amber); border-color: rgba(216, 161, 95, .4); }
.save-btn { flex: 1; height: 46px; }

.create-note {
  margin-top: 22px;
  padding: 15px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background:
    radial-gradient(110% 120% at 0% 0%, rgba(216, 161, 95, .05), transparent 55%),
    rgba(255, 255, 255, .012);
}
.create-note-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.create-note-head span { font-family: var(--latin); font-size: 6px; letter-spacing: .24em; color: var(--amber); }
.create-note-head i { flex: 1; height: 1px; background: var(--line-soft); }
.create-note p { margin: 0 0 6px; font-family: var(--serif); font-size: 12px; letter-spacing: .08em; color: var(--cream-2); }
.create-note em { font-style: normal; font-size: 8.5px; line-height: 1.8; color: var(--dim); }

.create-foot {
  margin: 28px 0 4px;
  text-align: center;
  font-family: var(--serif);
  font-size: 11px;
  line-height: 2;
  letter-spacing: .1em;
  color: rgba(216, 161, 95, .5);
}
.create-foot span { font-family: var(--latin); font-size: 6px; letter-spacing: .26em; color: var(--dim); }

/* 片段编辑 */

.clip-edit-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.clip-edit-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--c) 38%, transparent);
  border-radius: 50%;
  color: var(--c);
  flex: none;
}
.clip-edit-icon .ico { width: 20px; height: 20px; }
.clip-edit-head b { display: block; font-family: var(--serif); font-weight: 500; font-size: 15px; letter-spacing: .05em; }
.clip-edit-head span { display: block; margin-top: 3px; font-family: var(--latin); font-size: 7px; letter-spacing: .08em; color: var(--dim); }

.edit-group { margin-bottom: 17px; }
.edit-group > label { display: flex; align-items: center; justify-content: space-between; font-size: 9px; letter-spacing: .08em; color: var(--muted); margin-bottom: 9px; }
.edit-group > label b { font-family: var(--latin); font-weight: 400; font-size: 10px; color: var(--amber); }

.track-picker { display: flex; gap: 6px; }
.track-pick {
  flex: 1;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: transparent;
  color: var(--dim);
  font-size: 10px;
  transition: .2s;
}
.track-pick i { width: 5px; height: 5px; border-radius: 50%; background: var(--c); opacity: .55; }
.track-pick.is-on { border-color: color-mix(in srgb, var(--c) 50%, transparent); color: var(--cream); background: color-mix(in srgb, var(--c) 8%, transparent); }
.track-pick.is-on i { opacity: 1; box-shadow: 0 0 7px var(--c); }

input[type="range"].range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 18px;
  background: transparent;
  cursor: pointer;
}
input[type="range"].range::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(90deg, rgba(216, 161, 95, .7), rgba(239, 226, 205, .12));
  border-radius: 2px;
}
input[type="range"].range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--amber-2);
  border: 2px solid #1a1109;
  margin-top: -5.5px;
  box-shadow: 0 0 0 1px rgba(216, 161, 95, .5);
}
input[type="range"].range::-moz-range-track { height: 2px; background: rgba(216, 161, 95, .45); }
input[type="range"].range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--amber-2); border: 2px solid #1a1109; }

.edit-tip { font-size: 9px; line-height: 1.75; color: var(--dim); padding-left: 9px; border-left: 1px solid rgba(216, 161, 95, .22); }

/* 抽屉列表 */

.drawer-list { display: flex; flex-direction: column; }
.drawer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.drawer-icon { color: var(--c); flex: none; }
.drawer-icon .ico { width: 22px; height: 22px; }
.drawer-info { flex: none; width: 82px; min-width: 0; }
.drawer-info b { display: block; font-family: var(--serif); font-weight: 500; font-size: 12px; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-info span { font-family: var(--latin); font-size: 8px; color: var(--dim); }
.drawer-wave { flex: 1; height: 24px; opacity: .7; min-width: 0; }
.drawer-wave .wave-svg { width: 100%; height: 100%; }
.drawer-add {
  width: 28px; height: 28px;
  flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--amber);
  transition: .2s;
}
.drawer-add .ico { width: 12px; height: 12px; }
.drawer-add:hover { background: var(--amber); color: #1a1109; }
.drawer-empty { text-align: center; padding: 22px 0; }
.drawer-empty p { font-size: 10px; line-height: 1.8; color: var(--dim); margin: 0 0 12px; }

/* 菜单列表 */

.menu-list { display: flex; flex-direction: column; }
.menu-row {
  display: block;
  width: 100%;
  text-align: left;
  padding: 13px 2px;
  border: none;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  transition: .2s;
}
.menu-row:last-child { border-bottom: none; }
.menu-row > span { display: flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: 13px; letter-spacing: .05em; color: var(--cream); }
.menu-row > span .ico { width: 16px; height: 16px; color: var(--amber); }
.menu-row em { display: block; margin-top: 4px; padding-left: 25px; font-style: normal; font-size: 8.5px; letter-spacing: .03em; color: var(--dim); }
.menu-row:hover > span { color: var(--amber-2); }

/* 保存 */

.field-label {
  display: block;
  font-size: 8.5px;
  letter-spacing: .14em;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 7px;
}
.field-label .optional { color: rgba(117, 97, 78, .7); text-transform: none; letter-spacing: 0; font-size: 8px; }
.field {
  width: 100%;
  display: block;
  background: rgba(0, 0, 0, .2);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .03em;
  transition: border-color .2s;
}
.field:focus { outline: none; border-color: rgba(216, 161, 95, .45); }
.field::placeholder { color: var(--dim); font-size: 11px; }
textarea.field { resize: none; line-height: 1.7; }

.save-summary { display: flex; align-items: center; gap: 8px; margin: 15px 0 0; font-family: var(--latin); font-size: 8px; letter-spacing: .08em; color: var(--dim); }
.save-summary i { width: 2px; height: 2px; border-radius: 50%; background: var(--dim); }
.save-note { margin: 12px 0 2px; font-size: 9px; line-height: 1.8; color: var(--dim); }

/* 确认 */

.confirm-text { margin: 2px 0 6px; font-size: 12px; line-height: 1.9; color: var(--muted); }

/* ---------------- 聆听区 ---------------- */

.listen-count { font-family: var(--latin); font-size: 8px; letter-spacing: .16em; color: var(--dim); }

.listen-hero {
  position: relative;
  margin-top: 12px;
  padding: 14px 0 8px;
  text-align: center;
  overflow: hidden;
}
.listen-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 18%;
  width: 320px;
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 13%, transparent), transparent 65%);
  pointer-events: none;
}

.listen-top { display: flex; align-items: center; justify-content: space-between; }
.listen-side { font-family: var(--latin); font-size: 8px; letter-spacing: .2em; color: var(--dim); }

.vinyl-stage {
  position: relative;
  height: 174px;
  display: grid;
  place-items: center;
  margin: 2px 0 0;
}

.vinyl {
  position: relative;
  width: 154px;
  height: 154px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, #0a0705 0 1px, #171009 1px 2px, #0a0705 2px 3.5px),
    radial-gradient(circle at 38% 32%, #241a12, #090604 60%);
  box-shadow:
    0 26px 50px rgba(0, 0, 0, .55),
    inset 0 0 0 1px rgba(216, 161, 95, .16),
    inset 0 0 40px rgba(0, 0, 0, .7);
  animation: spin 9s linear infinite;
  animation-play-state: paused;
}
.vinyl.is-spinning { animation-play-state: running; }
.vinyl::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 210deg, transparent 0 18%, rgba(239, 226, 205, .07) 24%, transparent 36%, transparent 62%, rgba(239, 226, 205, .045) 70%, transparent 80%);
  pointer-events: none;
}
.vinyl::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(216, 161, 95, .12);
  pointer-events: none;
}
.vinyl-grooves { position: absolute; inset: 18px; border-radius: 50%; border: 1px solid rgba(239, 226, 205, .045); }
.vinyl-grooves::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 1px solid rgba(239, 226, 205, .035); }
.vinyl-label {
  position: absolute;
  left: 50%; top: 50%;
  width: 52px; height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(150deg, #d8a15f, #a9743c);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #1a1109;
  box-shadow: 0 0 0 3px rgba(10, 7, 5, .5);
}
.vinyl-label span { font-family: var(--serif); font-size: 14px; letter-spacing: .12em; line-height: 1; }
.vinyl-label em { font-family: var(--latin); font-style: normal; font-size: 3.4px; letter-spacing: .1em; opacity: .7; }
.vinyl-hole { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: #0a0705; transform: translate(-50%, -50%); z-index: 2; }

.tonearm {
  position: absolute;
  right: 24px;
  top: 16px;
  width: 4px;
  height: 96px;
  transform-origin: 50% 6px;
  transform: rotate(-18deg);
  transition: transform .7s var(--ease);
  pointer-events: none;
}
.tonearm::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e0b77f, #6f4a27);
  transform: translateX(-50%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
}
.tonearm i {
  position: absolute;
  left: 50%; top: 8px;
  width: 2px; height: 82px;
  background: linear-gradient(180deg, #a98052, #4c3520);
  transform: translateX(-50%);
  border-radius: 2px;
}
.tonearm i::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -7px;
  width: 7px; height: 12px;
  transform: translateX(-50%) rotate(12deg);
  background: #b98c58;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .4);
}
.tonearm.is-on { transform: rotate(12deg); }

.listen-title {
  margin: 6px auto 7px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.45;
  letter-spacing: .04em;
  color: var(--cream);
  max-width: 330px;
}
.listen-story {
  margin: 0 auto 8px;
  max-width: 310px;
  font-family: var(--serif);
  font-size: 10.5px;
  line-height: 1.85;
  color: var(--muted);
  letter-spacing: .03em;
}
.listen-meta { font-family: var(--latin); font-size: 7.5px; letter-spacing: .1em; color: var(--dim); margin-bottom: 13px; }

.listen-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 330px;
  margin: 0 auto;
}
.listen-play {
  width: 46px; height: 46px;
  flex: none;
  display: grid; place-items: center;
  border: 1px solid rgba(240, 192, 131, .8);
  border-radius: 50%;
  background: linear-gradient(150deg, var(--amber-2), var(--amber));
  color: #1a1109;
  box-shadow: 0 6px 20px rgba(216, 161, 95, .2);
  transition: .2s;
}
.listen-play .ico { width: 16px; height: 16px; transform: translateX(1px); }
.listen-play.is-playing { background: transparent; color: var(--amber); }
.listen-play.is-playing .ico { transform: none; }

.listen-progress-wrap { flex: 1; text-align: left; }
.listen-progress { height: 2px; background: rgba(239, 226, 205, .1); border-radius: 2px; overflow: hidden; }
.listen-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--amber), var(--amber-2)); box-shadow: 0 0 8px rgba(216, 161, 95, .5); }
.listen-time { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--latin); font-size: 7.5px; letter-spacing: .08em; color: var(--dim); }
.listen-time span:first-child { color: var(--amber); }

.listen-live { font-family: var(--latin); font-size: 7px; letter-spacing: .18em; color: var(--rust); border: 1px solid rgba(196, 123, 90, .3); padding: 4px 6px; border-radius: 3px; }

.listen-viz { width: 100%; height: 48px; display: block; margin-top: 12px; opacity: .9; }

.works-head { margin-top: 24px; }
.work-list { border-top: 1px solid var(--line-soft); }
.work-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 6px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: .2s;
  position: relative;
}
.work-row::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 2px; height: 0;
  background: var(--amber);
  transition: .22s;
}
.work-row.is-active { background: rgba(216, 161, 95, .035); }
.work-row.is-active::before { height: 24px; }
.work-index { font-family: var(--latin); font-size: 8px; color: var(--dim); flex: none; width: 16px; }
.work-row.is-active .work-index { color: var(--amber); }
.work-info { flex: 1; min-width: 0; }
.work-info b { display: block; font-family: var(--serif); font-weight: 500; font-size: 12.5px; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work-info span { display: block; margin-top: 3px; font-family: var(--latin); font-size: 7px; letter-spacing: .06em; color: var(--dim); }
.work-wave { width: 64px; height: 22px; flex: none; opacity: .55; }
.work-wave .wave-svg { width: 100%; height: 100%; }
.work-play, .work-menu {
  width: 26px; height: 26px;
  flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--amber);
  transition: .2s;
}
.work-play .ico { width: 9px; height: 9px; transform: translateX(1px); }
.work-menu { border-color: transparent; color: var(--dim); }
.work-menu .ico { width: 12px; height: 12px; }
.work-play:hover { background: var(--amber); color: #1a1109; }
.work-menu:hover { color: var(--cream); }

.shelf-empty {
  padding: 20px 18px;
  border: 1px dashed rgba(216, 161, 95, .24);
  border-radius: 12px;
  text-align: center;
  background: rgba(216, 161, 95, .025);
}
.shelf-icon { color: rgba(216, 161, 95, .4); display: inline-block; }
.shelf-icon .ico { width: 28px; height: 28px; }
.shelf-empty b { display: block; margin: 7px 0 5px; font-family: var(--serif); font-weight: 500; font-size: 15px; letter-spacing: .08em; }
.shelf-empty p { margin: 0 0 12px; font-size: 9.5px; line-height: 1.8; color: var(--dim); }

.listen-foot {
  margin: 26px 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.listen-quote { font-family: var(--serif); font-size: 11px; letter-spacing: .14em; color: rgba(216, 161, 95, .6); }
.listen-en { font-family: var(--latin); font-size: 6px; letter-spacing: .26em; color: var(--dim); }

.work-menu-story { margin: 0 0 10px; font-family: var(--serif); font-size: 12px; line-height: 1.9; color: var(--muted); }
.work-menu-meta { display: flex; align-items: center; gap: 8px; font-family: var(--latin); font-size: 8px; letter-spacing: .08em; color: var(--dim); margin-bottom: 10px; }
.work-menu-meta i { width: 2px; height: 2px; border-radius: 50%; background: var(--dim); }

/* ---------------- 处理中 / 加载 ---------------- */

.processing {
  position: absolute;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  background: rgba(9, 6, 4, .82);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}
.processing.is-on { opacity: 1; pointer-events: auto; }
.processing-inner { text-align: center; }
.processing-disc {
  width: 58px; height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 1px solid rgba(216, 161, 95, .45);
  position: relative;
  animation: spin 2.2s linear infinite;
}
.processing-disc::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px dashed rgba(216, 161, 95, .25);
}
.processing-disc span {
  position: absolute;
  left: 50%; top: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--amber);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 14px rgba(216, 161, 95, .6);
}
.processing-inner b { display: block; font-family: var(--serif); font-weight: 400; font-size: 13px; letter-spacing: .1em; color: var(--cream); }
.processing-inner em { display: block; margin-top: 6px; font-family: var(--latin); font-style: normal; font-size: 6px; letter-spacing: .26em; color: var(--dim); }

.loading {
  position: absolute;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(216, 161, 95, .08), transparent 45%),
    #0d0906;
  transition: opacity .6s var(--ease), visibility .6s;
}
.loading.is-done { opacity: 0; visibility: hidden; }
.loading-inner { text-align: center; }
.loading-seal {
  width: 64px; height: 64px;
  margin: 0 auto 26px;
  display: grid; place-items: center;
  border: 1px solid rgba(216, 161, 95, .55);
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: .1em;
  color: var(--cream);
  position: relative;
}
.loading-seal::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(216, 161, 95, .16); }
.loading-wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 34px; margin-bottom: 18px; }
.loading-wave i {
  width: 2px;
  height: 8px;
  background: var(--amber);
  opacity: .65;
  border-radius: 2px;
  animation: wave 1.15s ease-in-out infinite;
}
.loading-wave i:nth-child(2) { animation-delay: .1s; }
.loading-wave i:nth-child(3) { animation-delay: .2s; }
.loading-wave i:nth-child(4) { animation-delay: .3s; }
.loading-wave i:nth-child(5) { animation-delay: .4s; }
.loading-wave i:nth-child(6) { animation-delay: .5s; }
.loading-wave i:nth-child(7) { animation-delay: .6s; }
.loading-wave i:nth-child(8) { animation-delay: .7s; }
.loading-wave i:nth-child(9) { animation-delay: .8s; }
@keyframes wave {
  0%, 100% { height: 7px; opacity: .3; }
  50% { height: 28px; opacity: .9; }
}
.loading-text { margin: 0 0 6px; font-family: var(--serif); font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.loading-en { margin: 0; font-family: var(--latin); font-size: 6px; letter-spacing: .3em; color: var(--dim); }

.fatal {
  position: absolute;
  left: 18px; right: 18px; bottom: 90px;
  z-index: 400;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(196, 123, 90, .5);
  border-radius: 8px;
  background: rgba(40, 18, 12, .96);
  color: #f0c7b6;
  font: 11px/1.7 ui-monospace, Consolas, monospace;
  white-space: pre-wrap;
  max-height: 60%;
  overflow: auto;
}

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

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

@media (min-width: 1080px) {
  .desktop-aside { display: block; }
  .stage { padding-left: 430px; }
  .phone { margin-left: 0; }
}

@media (min-width: 900px) and (max-width: 1079px) {
  .stage { padding-left: 300px; }
  .desktop-aside { display: block; width: 300px; left: 34px; }
  .desktop-aside h2 { font-size: 30px; white-space: nowrap; }
  .aside-desc, .aside-credit, .aside-vertical { display: none; }
  .phone { margin-left: 0; }
}

@media (max-width: 560px) {
  .stage { padding: 0; }
  .phone {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-left: 0;
  }
  .phone::before { background: radial-gradient(ellipse at center, transparent 60%, rgba(6, 4, 3, .3) 100%); }
  .screen-host { padding-left: 18px; padding-right: 18px; }
  .hero h1 { font-size: 33px; }
  .works-head { margin-top: 20px; }
}

@media (max-width: 380px) {
  .screen-host { padding-left: 14px; padding-right: 14px; }
  .hero h1 { font-size: 29px; }
  .relic-card { height: 148px; }
  .stat b { font-size: 19px; }
  .bpm-hint { display: none; }
  .work-wave { display: none; }
}

@media (max-height: 720px) {
  .vinyl-stage { height: 160px; }
  .vinyl { width: 142px; height: 142px; }
  .listen-title { font-size: 21px; }
  .listen-viz { height: 44px; }
  .hero { padding-top: 14px; }
  .hero h1 { font-size: 30px; }
}

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