/* ===== Callbook 档案库 · 浅色主题 ===== */
:root {
  --bg: #f2f7f8;
  --panel: #ffffff;
  --panel-2: #fbfdfd;
  --panel-3: #eef5f5;
  --line: rgba(18, 52, 62, .1);
  --line-2: rgba(18, 52, 62, .18);
  --text: #1b2b33;
  --ink: #0d1c23;
  --muted: #566e7c;
  --dim: #8296a2;
  --miku: #10a49a;
  --miku-soft: #d9f1ee;
  --pink: #df4a83;
  --gold: #cf8f1e;
  --radius: 14px;
  --shadow: 0 16px 40px rgba(15, 48, 58, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: #f4f9fa;
  background-image:
    radial-gradient(1100px 620px at 8% -6%, rgba(16, 164, 154, .10), transparent 60%),
    radial-gradient(900px 520px at 96% -4%, rgba(223, 74, 131, .07), transparent 62%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Microsoft YaHei", "Yu Gothic UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  touch-action: pan-x pan-y pinch-zoom;
  min-height: 100vh;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 14px 34px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6), 0 8px 24px rgba(15, 48, 58, .04);
  will-change: transform;
}

.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

.mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  color: #fff;
  background: linear-gradient(135deg, #0c8d86, #17b6ab 60%, #57d8ce);
  box-shadow: 0 0 0 1px rgba(16, 164, 154, .35), 0 6px 16px rgba(16, 164, 154, .28);
}
.mark i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff; opacity: .7;
}

.brand-text h1 { margin: 0; font-size: 17px; letter-spacing: .04em; line-height: 1.25; color: var(--ink); }
.brand-text p { margin: 0; font-size: 11px; color: var(--dim); letter-spacing: .16em; text-transform: uppercase; }

.tabs { display: flex; gap: 4px; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 0 0 auto;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: .18s;
  white-space: nowrap;
}
.tab:hover { color: var(--ink); background: rgba(16, 164, 154, .08); }
.tab.active {
  color: #fff;
  background: linear-gradient(135deg, #0d948c, #1eb8ad);
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(16, 164, 154, .26);
}
.tab[data-view="library"] { margin-left: 10px; }

.search {
  flex: 0 1 250px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  transition: .2s;
}
.search:focus-within { border-color: rgba(16, 164, 154, .6); box-shadow: 0 0 0 3px rgba(16, 164, 154, .12); }
.search svg { width: 15px; height: 15px; fill: none; stroke: var(--dim); stroke-width: 2; stroke-linecap: round; flex: 0 0 auto; }
.search input {
  width: 100%;
  border: none;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: none;
}
.search input::placeholder { color: var(--dim); }

/* ---------- 主体 ---------- */
main {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 34px 90px;
}
body.wide-song main { max-width: 1440px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: .3em;
  color: #0b8d84;
  text-transform: uppercase;
}

.hero h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.32;
  letter-spacing: .01em;
  font-weight: 700;
  background: linear-gradient(100deg, #0d1c23 8%, #10746d 56%, #b83665 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede { margin: 16px 0 0; max-width: 44ch; color: var(--muted); font-size: 14px; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 48, 58, .04), 0 10px 26px rgba(15, 48, 58, .05);
}
.stat b { display: block; font-size: 26px; line-height: 1.2; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--dim); letter-spacing: .08em; }
.stat b em { font-style: normal; font-size: 13px; color: var(--miku); margin-left: 3px; }

/* ---------- 筛选 ---------- */
.filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7fbfc;
  position: sticky;
  top: 61px;
  z-index: 20;
  box-shadow: 0 8px 22px rgba(15, 48, 58, .05);
}
.filter-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--row-color, var(--line));
  border-radius: 12px;
  background: var(--row-tint, #fff);
}
#year-filter { --row-color: #9db7c2; --row-tint: #f8fbfc; }
#series-filter { --row-color: #39c5bb; --row-tint: #f5fbf8; }
#char-filter { --row-color: #f06292; --row-tint: #fbf6fb; }
#call-filter { --row-color: #ff8a3d; --row-tint: #fff8f3; }
.filter-row:nth-child(1) { grid-area: 1 / 1; }
.filter-row:nth-child(2) { grid-area: 2 / 1; }
.filter-row:nth-child(3) { grid-area: 3 / 1; }
.filter-row:nth-child(4) { grid-area: 4 / 1; }
.reset { grid-area: 1 / 2 / span 4 / 2; align-self: start; margin-top: 10px; margin-left: 0; }
.filter-label {
  width: auto;
  min-width: 48px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
  text-transform: none;
  white-space: nowrap;
}
.filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: .16s;
}
.chip:hover { color: var(--ink); border-color: rgba(16, 164, 154, .5); transform: translateY(-1px); }
.chip.on { color: #0b6f68; border-color: rgba(16, 164, 154, .75); background: var(--miku-soft); font-weight: 600; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; }

.reset {
  padding: 6px 13px;
  border: 1px dashed var(--line-2);
  border-radius: 8px;
  background: #fff;
  color: var(--dim);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: .16s;
}
.reset:hover { color: var(--ink); border-color: var(--miku); background: var(--miku-soft); }
.mobile-filter-toggle { display: none; }
.mobile-nav-group { display: none; }
.mobile-nav-wrap { display: none; }
.header-icon-btn { display: none; }

/* ---------- 视图通用 ---------- */
#view { padding-top: 34px; }
.view-head { display: flex; align-items: baseline; gap: 14px; margin: 0 0 20px; }
.view-head h3 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: .02em; color: var(--ink); }
.view-head .count { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.view-head .rule { flex: 1; height: 1px; background: var(--line); }

.empty {
  padding: 70px 0;
  text-align: center;
  color: var(--dim);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .6);
  font-size: 14px;
}

/* ---------- 提示条 ---------- */
.notice {
  padding: 12px 16px;
  margin-bottom: 22px;
  border: 1px dashed rgba(16, 164, 154, .45);
  border-radius: 10px;
  background: rgba(16, 164, 154, .07);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.9;
}
.notice b { color: #0b7a73; font-weight: 700; }

/* ---------- 手册卡片 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}

.book {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 48, 58, .04);
  cursor: pointer;
  transition: border-color .18s, background-color .18s;
  animation: rise .45s both;
}
.book.has-cover { grid-template-columns: minmax(0, 1fr) 126px; }
.book-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 24px 18px;
  min-width: 0;
}
.book-cover {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  object-position: center top;
  border-left: 1px solid var(--line);
}
.book.has-cover::after { display: none; }
.book:hover {
  border-color: rgba(16, 164, 154, .45);
  background: #fcffff;
}
.book::after {
  content: attr(data-year);
  position: absolute;
  right: 16px;
  bottom: -28px;
  font-size: 84px;
  font-weight: 800;
  line-height: 1;
  color: rgba(14, 70, 80, .06);
  letter-spacing: -.03em;
  pointer-events: none;
}
.book::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--bar, var(--miku));
  opacity: .85;
}

.book-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.series-tag {
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--sc, #566e7c);
  background: color-mix(in srgb, var(--sc, #566e7c) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--sc, #566e7c) 42%, #fff);
}
.yr {
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #0b7a73;
  background: var(--miku-soft);
  border: 1px solid rgba(16, 164, 154, .3);
}
.kind {
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: #f7fbfb;
}

.book h4 {
  margin: 0;
  font-size: 20px;
  line-height: 1.28;
  letter-spacing: .01em;
  color: var(--ink);
}
.book .venue { margin: -6px 0 0; font-size: 12.5px; color: var(--dim); }

.book .meta { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.book .meta b { color: var(--ink); font-weight: 700; }

.preview { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-song {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--muted);
  background: #f6fafb;
  border: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-decoration: none;
  transition: .16s;
}
.chip-song:hover { color: #0b6f68; border-color: rgba(16, 164, 154, .55); background: var(--miku-soft); }
.chip-song.more { color: var(--dim); border-style: dashed; cursor: default; }
.chip-song.more:hover { color: var(--dim); border-color: var(--line); background: #f6fafb; }

.book-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.chars-dots { display: flex; gap: 3px; margin-right: auto; }
.chars-dots i {
  width: 9px; height: 9px; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(10, 40, 48, .12) inset;
}
.mini {
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--muted);
  font-size: 11.5px;
  text-decoration: none;
  transition: .16s;
}
.mini:hover { color: #0b6f68; border-color: var(--miku); background: var(--miku-soft); }

/* ---------- 按年份 ---------- */
.year-block { margin-bottom: 46px; }
.year-block header { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 18px; }
.year-block h3 {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: transparent;
  background: linear-gradient(120deg, #0d1c23, #4e8b92);
  -webkit-background-clip: text;
  background-clip: text;
  font-variant-numeric: tabular-nums;
}
.year-block .sub { font-size: 12.5px; color: var(--dim); padding-bottom: 5px; }
.year-block .rule { flex: 1; height: 1px; background: var(--line); margin-bottom: 9px; }

/* ---------- 按人物 ---------- */
.char-layout { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 26px; align-items: start; }

.char-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 132px;
}
.char-btn {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: .16s;
}
.char-btn:hover { color: var(--ink); border-color: rgba(16, 164, 154, .5); }
.char-btn.on { color: var(--ink); background: var(--miku-soft); border-color: rgba(16, 164, 154, .7); box-shadow: 0 6px 16px rgba(16, 164, 154, .12); }
.char-btn .sw { width: 9px; height: 9px; border-radius: 50%; }
.char-btn .nm { font-size: 13.5px; }
.char-btn .nm small { display: block; font-size: 10.5px; color: var(--dim); letter-spacing: .05em; }
.char-btn .n { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.char-btn.multi-btn { margin-top: 8px; background: #f7fafc; border-style: dashed; }
.char-btn.multi-btn.on { background: #eef4f7; border-style: solid; }

.char-panel { min-width: 0; }
.char-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(600px 200px at 100% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    #fff;
  box-shadow: 0 1px 2px rgba(15, 48, 58, .04), 0 10px 26px rgba(15, 48, 58, .05);
  margin-bottom: 22px;
}
.char-hero .big { font-size: 34px; font-weight: 800; line-height: 1.2; color: var(--ink); }
.char-hero .big small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .16em; margin-top: 4px; }
.char-hero .desc { color: var(--muted); font-size: 13.5px; max-width: 46ch; }
.char-hero .fig { margin-left: auto; text-align: right; }
.char-hero .fig b { display: block; font-size: 30px; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.char-hero .fig span { font-size: 11px; color: var(--dim); letter-spacing: .1em; }

.book-group { margin-bottom: 26px; }
.book-group > header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.book-group > header b { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.book-group > header .yr { font-size: 11px; }
.book-group > header .n { margin-left: auto; font-size: 11.5px; color: var(--dim); }

.songlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px; }
.songlist.wide { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.song {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  transition: .16s;
}
.song:hover { background: #fff; border-color: rgba(16, 164, 154, .35); box-shadow: 0 6px 16px rgba(15, 48, 58, .07); }
.song .idx { font-size: 11.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.song .t { min-width: 0; }
.song-name { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-name:hover { color: #0b7a73; text-decoration: underline; text-underline-offset: 3px; }
.song-name.big { font-size: 15px; }
.song .t small { display: block; font-size: 11px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song .tags { display: flex; gap: 3px; }
.song.occ-row { align-items: start; padding-top: 10px; padding-bottom: 10px; }
.song.occ-row > .idx,
.song.occ-row > .chars-dots,
.song.occ-row > .vid { align-self: center; }
.occ-select {
  margin-top: 5px;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
}
.occ-select:focus-visible { outline: 2px solid rgba(16, 164, 154, .35); outline-offset: 1px; }
.vid {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(223, 74, 131, .38);
  background: rgba(223, 74, 131, .08);
  color: #bf2f66;
  font-size: 10.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: .16s;
}
.vid:hover { color: #fff; border-color: var(--pink); background: var(--pink); }

/* ---------- 曲库 ---------- */
.lib-list { display: flex; flex-direction: column; gap: 2px; }
.lib-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 58px;
  gap: 18px;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  border-radius: 6px;
  transition: .16s;
}
.lib-row:hover { background: #fff; box-shadow: 0 4px 14px rgba(15, 48, 58, .06); }
.lib-row .tt { min-width: 0; }
.lib-row .tt small { display: block; font-size: 11.5px; color: var(--dim); }
.lib-row .vid-cell { text-align: right; }
.lib-row .badges { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-start; }
.badge {
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: #fff;
  white-space: nowrap;
  text-decoration: none;
  transition: .16s;
}
.badge:hover { color: #0b6f68; border-color: var(--miku); background: var(--miku-soft); }
.lib-row .dots { display: flex; gap: 3px; }
.lib-row .dots i { width: 8px; height: 8px; border-radius: 50%; }
.bv {
  font-size: 10.5px;
  color: #0b7a73;
  text-decoration: none;
  border-bottom: 1px dotted rgba(16, 164, 154, .55);
}

/* ---------- 单曲 CALL 页 ---------- */
.songpage { max-width: 100%; padding-top: 44px; }

.song-body {
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 28px;
}
.video-col {
  position: sticky;
  top: 82px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 104px);
  min-height: 0;
}
.video-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.video-head h4 { margin: 0; font-size: 13.5px; color: var(--ink); letter-spacing: .02em; }
.video-head .bv { font-size: 11px; color: #0b7a73; text-decoration: none; font-weight: 700; }
.video-head .bv:hover { text-decoration: underline; }
.start-badge {
  font-size: 11px;
  font-weight: 700;
  color: #bf2f66;
  background: rgba(223, 74, 131, .10);
  border: 1px solid rgba(223, 74, 131, .32);
  border-radius: 999px;
  padding: 2px 9px;
}
.start-note {
  margin: 9px 0 0;
  padding: 7px 11px;
  font-size: 11.5px;
  line-height: 1.6;
  color: #a52753;
  background: rgba(223, 74, 131, .07);
  border-left: 3px solid rgba(223, 74, 131, .45);
  border-radius: 0 8px 8px 0;
}
.start-note b { color: #bf2f66; font-variant-numeric: tabular-nums; }
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #0b1b20;
  box-shadow: 0 6px 18px rgba(15, 48, 58, .08);
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(16, 164, 154, .28), transparent 70%),
    #0d2027;
  color: #eaf6f5;
}
.player-poster .play-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .35);
  font-size: 16px;
  transition: background .16s, transform .16s;
}
.player-poster:hover .play-btn { background: rgba(16, 164, 154, .55); transform: scale(1.05); }
.player-poster .poster-t { font-size: 13px; letter-spacing: .04em; }
.player-poster .poster-s { font-size: 11px; color: rgba(234, 246, 245, .62); }

/* 左侧固定的本场曲目索引 */
.tracklist-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 48, 58, .04);
  overflow: hidden;
}
.tracklist-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px 9px;
  border-bottom: 1px solid var(--line);
  background: #fbfefe;
}
.tracklist-head h4 { margin: 0; font-size: 13px; color: var(--ink); }
.tracklist-head .n { font-size: 11px; color: var(--dim); }
.tracklist { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 6px 0 8px; overscroll-behavior: contain; }
.track-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 5px 12px 5px 9px;
  border-left: 3px solid transparent;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  text-decoration: none;
}
.track-item:hover { background: #f4fbfb; color: var(--ink); }
.track-item.on { border-left-color: var(--miku); background: var(--miku-soft); color: var(--ink); font-weight: 600; }
.track-item .n { color: var(--dim); font-size: 11px; font-variant-numeric: tabular-nums; }
.track-item .t { overflow-wrap: anywhere; }
.player.none {
  aspect-ratio: auto;
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--dim);
  font-size: 12.5px;
}
.player-tip { margin: 10px 0 0; font-size: 11.5px; line-height: 1.65; color: var(--dim); }
.player-tip a { color: #0b7a73; }
.call-col { min-width: 0; }
.call-col .tbl-title { margin-top: 0; }
.call-pages { display: none; }

.songpage .tbl-title { margin-top: 30px; }
.songpage .tbl-title h4 { font-size: 13.5px; }

.back {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--line-2);
  padding-bottom: 2px;
}
.back:hover { color: #0b7a73; border-color: var(--miku); }

.song-head {
  position: relative;
  padding: 26px 28px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(700px 220px at 100% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 72%),
    #fff;
  box-shadow: 0 1px 2px rgba(15, 48, 58, .04), 0 12px 30px rgba(15, 48, 58, .06);
  overflow: hidden;
}
.song-head::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
}
.song-head h2 { margin: 0; font-size: 32px; line-height: 1.35; letter-spacing: .01em; color: var(--ink); }
.song-head .cn { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.song-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: 12.5px; color: var(--dim); }
.fact { display: inline-flex; align-items: center; gap: 6px; }
.fact b { color: var(--ink); font-weight: 600; }
.color-list { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; }
.support-color { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.support-color i { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.color-sep { color: var(--dim); font-weight: 400; }

/* 同曲可切换场次的下拉栏 */
.venue-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.vp-label { font-size: 12.5px; color: var(--dim); }
.venue-select {
  appearance: none;
  -webkit-appearance: none;
  max-width: 100%;
  padding: 7px 34px 7px 13px;
  border: 1px solid rgba(16, 164, 154, .38);
  border-radius: 999px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2310a49a' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 11px 8px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 48, 58, .04);
}
.venue-select:hover { border-color: var(--miku); }
.venue-select:focus-visible { outline: 2px solid rgba(16, 164, 154, .35); outline-offset: 2px; }

.song-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 10px; }
.song-nav-mobile { display: none; }
.mobile-next-hint, .mobile-prev-hint, .mobile-trackbox, .mobile-media-controls, .mobile-video-player, .video-toggle, .mobile-video-spacer, .practice-seek, .mobile-player-actions, .video-minimize, .player-drag-handle, .player-resize-handle { display: none; }
.btn.disabled { color: var(--dim); border-style: dashed; pointer-events: none; }
.btn.vid-btn { border-color: rgba(223, 74, 131, .45); color: #bf2f66; }
.btn.vid-btn:hover { border-color: var(--pink); background: rgba(223, 74, 131, .12); }

.other-books { font-size: 12.5px; color: var(--dim); margin-bottom: 22px; }
.other-books .badge { margin-left: 6px; }

/* 还原手册原排版：无格线，左窄栏打法 + 右歌词流 */
.call-table {
  padding: 12px 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 48, 58, .04);
  overflow-x: auto;
  touch-action: pan-x pan-y pinch-zoom;
}
.crow {
  display: grid;
  grid-template-columns: 54px minmax(0, auto);
  gap: 12px;
  align-items: baseline;
  width: 100%;
  min-width: max-content;
  padding: 3px 22px 3px 12px;
}
.crow.gap { height: 13px; }
.crow:hover { background: rgba(24, 92, 90, .055); }
.crow .csym {
  text-align: center;
  font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", "Microsoft YaHei", sans-serif;
  font-variant-emoji: text;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  font-variant-numeric: normal;
}
.crow .clyric {
  margin: 0;
  font-size: 14px;
  line-height: 1.95;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  color: #185c5a;
}
.crow.dolce-echo-row .clyric { position: relative; min-height: 2.1em; }
.dolce-echo .echo-answer,
.dolce-echo .echo-reply {
  position: absolute;
  top: 0;
  color: #1b2b33;
  font-weight: 700;
  white-space: nowrap;
}
.dolce-echo .echo-answer { left: min(53%, 391px); }
.dolce-echo .echo-reply { left: calc(min(68%, 505px) + 3px); }

/* ---------- 符号表 ---------- */
.symbol-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 26px; align-items: start; }
.sym-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 2px rgba(15, 48, 58, .04); }
.sym-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--dim);
  border-bottom: 1px solid var(--line-2);
  text-transform: uppercase;
  font-weight: 600;
  background: #f5fafb;
}
.sym-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.sym-table td.sym { font-size: 22px; color: var(--ink); width: 74px; text-align: center; line-height: 1.2; }
.sym-table td.name { color: var(--ink); white-space: nowrap; width: 150px; }
.sym-table td.pat { font-family: "Cascadia Mono", Consolas, monospace; font-size: 12px; color: #0b7a73; }

.sym-aside {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 48, 58, .04), 0 10px 26px rgba(15, 48, 58, .05);
  font-size: 13px;
  color: var(--muted);
}
.sym-aside h4 { margin: 0 0 10px; font-size: 14px; color: var(--ink); }
.sym-aside ul { margin: 0; padding-left: 16px; }
.sym-aside li { margin-bottom: 6px; }
.sym-aside a { color: #0b7a73; text-decoration: none; border-bottom: 1px dotted rgba(16, 164, 154, .55); }

/* ---------- 详情浮层 ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 4vh 24px; }
.overlay[hidden] { display: none; }
.overlay-mask { position: absolute; inset: 0; background: rgba(19, 40, 48, .46); animation: fade .25s both; }

.sheet {
  position: relative;
  width: min(1080px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 34px 38px 30px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 40px 90px rgba(15, 45, 55, .28);
  animation: pop .32s cubic-bezier(.2, .8, .3, 1) both;
  scrollbar-width: thin;
}
.sheet::-webkit-scrollbar { width: 8px; }
.sheet::-webkit-scrollbar-thumb { background: rgba(18, 52, 62, .16); border-radius: 8px; }

.sheet-close {
  position: absolute;
  top: 18px; right: 20px;
  width: 34px; height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: #fff;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: .16s;
}
.sheet-close:hover { color: var(--ink); border-color: var(--miku); background: var(--miku-soft); }

.sheet-head .eyebrow { margin-bottom: 8px; }
.sheet-head h3 { margin: 0; font-size: 26px; line-height: 1.3; color: var(--ink); }
.sheet-head .sub { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.sheet-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 22px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  font-size: 12.5px;
  text-decoration: none;
  transition: .16s;
}
.btn:hover { border-color: var(--miku); background: var(--miku-soft); }
.btn.primary { background: linear-gradient(135deg, #0d948c, #1eb8ad); color: #fff; font-weight: 700; border-color: transparent; box-shadow: 0 6px 16px rgba(16, 164, 154, .24); }
.btn.primary:hover { filter: brightness(1.04); }

.dist { display: flex; flex-direction: column; gap: 7px; margin-bottom: 24px; }
.dist-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) 40px; align-items: center; gap: 12px; font-size: 12px; }
.dist-row .nm { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.dist-row .nm i { width: 8px; height: 8px; border-radius: 50%; }
.dist-row .bar { height: 6px; border-radius: 4px; background: rgba(18, 52, 62, .09); overflow: hidden; }
.dist-row .bar span { display: block; height: 100%; border-radius: 4px; }
.dist-row .n { text-align: right; color: var(--dim); font-variant-numeric: tabular-nums; }

.tbl-title { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 10px; }
.tbl-title h4 { margin: 0; font-size: 15px; color: var(--ink); }
.tbl-title .n { font-size: 11.5px; color: var(--dim); }
.tbl-title .rule { flex: 1; height: 1px; background: var(--line); }

.song-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.song-table th {
  padding: 9px 10px;
  text-align: left;
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--dim);
  border-bottom: 1px solid var(--line-2);
  font-weight: 600;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.song-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.song-table tr:hover td { background: #f7fbfc; }
.song-table td.idx { color: var(--dim); font-variant-numeric: tabular-nums; width: 44px; }
.song-table td.title { color: var(--ink); font-weight: 600; }
.song-table td.cn { color: var(--muted); }
.song-table td.color { color: var(--muted); white-space: nowrap; }
.song-table .support-color { display: inline-flex; align-items: center; gap: 4px; margin: 1px 4px 1px 0; font-size: 10.5px; font-weight: 600; }
.song-table .support-color i { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; }
.song-table .color-sep { display: none; }
.song-table td.vd { width: 58px; text-align: right; }
.ctag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  margin: 1px 3px 1px 0;
  border-radius: 5px;
  font-size: 10.5px;
  background: #f2f8f8;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.ctag i { width: 6px; height: 6px; border-radius: 50%; }

.foot {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.foot p { margin: 4px 0; }
.foot .path { color: #0b7a73; font-family: "Cascadia Mono", Consolas, monospace; font-size: 11.5px; }
.foot .dim, .dim { color: var(--dim); }
code { padding: 1px 5px; border-radius: 4px; background: rgba(18, 52, 62, .07); font-size: 11.5px; }

/* ---------- 反馈与交流 QQ 群 ---------- */
.community-wrap {
  max-width: 720px;
  margin: 0 auto;
}
.community-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 48, 58, .04), 0 10px 26px rgba(15, 48, 58, .05);
}
.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 28px;
  align-items: center;
}
.community-info { min-width: 0; }
.community-qr {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.community-qr img {
  width: 190px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 8px;
  box-sizing: border-box;
}
.community-qr figcaption {
  color: var(--dim);
  font-size: 12.5px;
}
.community-main {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.community-eyebrow {
  margin: 0 0 6px;
  color: var(--miku);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}
.community-main h4 {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--ink);
}
.community-desc {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}
.community-badge {
  flex: 0 0 auto;
  min-width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--miku-soft);
  color: var(--miku);
  font-weight: 800;
}
.community-meta {
  margin: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 2px;
  font-size: 13px;
  color: var(--muted);
}
.meta-row + .meta-row { border-top: 1px solid var(--line); }
.meta-row b { color: var(--ink); font-weight: 700; }
.qq-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border-radius: 11px;
  background: var(--miku);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: .16s;
}
.qq-cta:hover { filter: brightness(.96); }
.community-note {
  margin: 14px 0 0;
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.65;
}

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 26px; align-items: start; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .char-layout { grid-template-columns: 1fr; }
  .char-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .char-btn { flex: 1 1 150px; }
  .symbol-wrap { grid-template-columns: 1fr; }
  .song-body { grid-template-columns: 1fr; gap: 22px; }
  .video-col { position: static; order: -1; max-height: none; }
  .player { max-width: 640px; }
  .tracklist { max-height: 300px; }
}

@media (max-width: 760px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  body {
    font-size: 14px;
    background-image: none;
    touch-action: pan-y pinch-zoom;
  }

  /* 顶部：双行紧凑导航，不横向挤入屏幕外 */
  .topbar {
    position: sticky;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    row-gap: 8px;
  }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand-text h1 { font-size: 15px; }
  .brand-text p { display: none; }
  .mark { padding: 6px 9px; letter-spacing: .12em; cursor: pointer; }
  .header-icon-btn {
    display: flex;
    order: 2;
    margin-left: auto;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line-2);
    border-radius: 11px;
    background: #fff;
    color: #42656c;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .header-icon-btn svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .header-icon-btn:active { background: #f3fbfb; }
  body.is-feedback .header-icon-btn {
    background: #e7f6f4;
    border-color: #9edbd5;
    color: #087f78;
  }
  .tabs { display: none !important; }
  .mobile-nav-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    order: 3;
    width: 100%;
  }
  .mobile-nav-wrap {
    display: block;
    width: 100%;
    position: relative;
  }
  .mobile-nav {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    padding: 9px 34px 9px 13px;
    border: 1px solid var(--line-2);
    border-radius: 11px;
    background: #fff;
    color: #17313a;
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
  }
  .mobile-nav-wrap::after {
    content: "";
    position: absolute;
    right: 13px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #56727a;
    border-bottom: 1.5px solid #56727a;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
  }
  .search { order: 4; flex: 1 1 100%; padding: 7px 10px; }

  main { padding: 18px 12px 56px; }
  #view { padding-top: 18px; }
  .hero { display: none !important; }

  /* 筛选：默认收起，只保留高频操作 */
  .filters {
    position: static;
    display: block;
    padding: 10px;
    margin-bottom: 14px;
  }
  .mobile-filter-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
  }
  .mft-state { font-size: 12px; color: var(--miku); font-weight: 600; }
  .filters .filter-row, .filters .reset { display: none; }
  .filters.open .filter-row { display: grid; margin-top: 8px; }
  .filters.open .reset { display: inline-flex; margin-top: 8px; }
  .filter-row { grid-template-columns: 1fr; gap: 7px; padding: 9px 10px; }
  .filter-label { justify-self: start; width: auto; }
  .chip { padding: 5px 10px; font-size: 12px; }

  .view-head { margin: 0 0 14px; gap: 8px; }
  .view-head h3 { font-size: 17px; }
  .view-head .count { font-size: 11px; }
  .notice { padding: 10px 12px; font-size: 12px; line-height: 1.6; }

  /* 手册卡片：左侧横裁封面，右侧年份/系列信息 */
  .cards { gap: 10px; }
  .book {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(118px, 1fr);
    grid-template-rows: 104px;
    align-items: stretch;
    height: 104px;
    min-height: 104px;
    border: 1px solid #e2eef0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 48, 58, .055);
  }
  .book.has-cover { grid-template-columns: minmax(0, 1.55fr) minmax(118px, 1fr); }
  .book::before, .book::after { display: none; }
  .book-cover {
    order: -1;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 104px;
    border-left: 0;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    object-fit: cover;
    object-position: center 26%;
  }
  .book[data-id="2019-expo"] .book-cover { object-position: center 24%; }
  .book[data-id="2019-magical-mirai"] .book-cover { object-position: center 18%; }
  .book[data-id="2019-snow-miku"] .book-cover { object-position: center 20%; }
  .book[data-id="2020-magical-mirai"] .book-cover { object-position: center 25%; }
  .book[data-id="cn-songs"] .book-cover { object-position: center 29%; }
  .book-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    max-height: 104px;
    min-height: 0;
    gap: 6px;
    padding: 9px 9px;
    background: #f8fcfc;
  }
  .book-top {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 6px;
    height: 100%;
  }
  .book-top .yr,
  .book-top .series-tag,
  .book-top .kind {
    width: 100%;
    box-sizing: border-box;
    box-shadow: none;
    text-align: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1.25;
  }
  .book-top .yr {
    padding: 7px 8px;
    border-radius: 999px;
    background: #e7f6f4;
    border: 1px solid #c8ece8;
    color: #087f78;
    font-weight: 800;
    letter-spacing: .08em;
  }
  .book-top .series-tag {
    position: relative;
    padding: 7px 10px 7px 23px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .04em;
    background: color-mix(in srgb, var(--sc, #566e7c) 13%, #fff);
    border: 1px solid color-mix(in srgb, var(--sc, #566e7c) 32%, #fff);
    color: color-mix(in srgb, var(--sc, #566e7c) 70%, #203840);
  }
  .book-top .series-tag::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sc, #566e7c);
    transform: translateY(-50%);
  }
  .book-top .kind {
    padding: 6px 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e3edf0;
    color: #58737b;
    font-size: 11.5px;
  }
  .book-top .kind.same-as-series { display: none; }
  .book[data-id="cn-songs"] .book-top .series-tag { display: none; }
  .book h4,
  .book .venue,
  .book .meta,
  .book .preview,
  .book-foot { display: none !important; }
  .year-block { margin-bottom: 24px; }
  .year-block header { margin-bottom: 12px; gap: 10px; }
  .year-block h3 { font-size: 26px; }
  .year-block .sub { font-size: 11px; }

  /* 人物 / Call 法：导航折成两列，当前角色信息精简 */
  .char-layout { display: block; }
  .char-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 12px;
  }
  body.chars-view.filters-open .char-nav,
  body.calltype-view.filters-open .char-nav { display: none; }
  .char-btn { padding: 8px 10px; min-width: 0; }
  .char-btn .nm { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .char-btn .nm small { display: none; }
  .char-hero { padding: 13px 14px; margin-bottom: 12px; gap: 10px; }
  .char-hero .big { font-size: 22px; }
  .char-hero .desc { display: none; }
  .char-hero .fig b { font-size: 22px; }
  .songlist, .songlist.wide { grid-template-columns: 1fr; gap: 6px; }
  .song {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 9px;
  }
  .song .chars-dots { display: none; }
  .song-name { white-space: normal; overflow: visible; }
  .song .t small { display: block; white-space: normal; overflow-wrap: anywhere; }
  .occ-select { max-width: 100%; width: 100%; margin-top: 6px; }

  /* 曲库列表纵向展开，避免多列挤压 */
  .lib-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 10px 4px; }
  .lib-row .dots { order: 2; }
  .lib-row .badges { grid-column: 1 / -1; }
  .lib-row .vid-cell { grid-column: 1 / -1; text-align: left; }
  .lib-row .tt small { white-space: normal; overflow-wrap: anywhere; }

  /* 单曲学习页：紧凑标题、上下曲、播放器保持上方，CALL 表不横向滑动 */
  .songpage { padding-top: 8px; }
  .back { margin-bottom: 10px; font-size: 12px; }
  .song-head { padding: 14px 14px 12px; border-radius: 13px; }
  .song-head .eyebrow { margin-bottom: 6px; font-size: 10px; letter-spacing: .12em; }
  .song-head h2 { font-size: 22px; line-height: 1.35; }
  .song-head .cn { font-size: 12.5px; }
  .song-facts { gap: 6px 12px; margin-top: 10px; font-size: 12px; }
  .song-facts .fact:last-child { display: none; }
  .venue-pick { margin-top: 10px; }
  .song-actions { display: grid; grid-template-columns: 1fr; gap: 7px; margin: 12px 0; }
  .song-actions .btn:nth-child(1), .song-actions .btn:nth-child(2) { display: none; }
  .song-actions .btn { justify-content: center; }
  .song-nav-mobile {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
  }
  .nav-btn { justify-content: center; padding: 8px 6px; font-size: 12px; }
  .song-pos { font-size: 11px; color: var(--dim); text-align: center; white-space: nowrap; }
  .mobile-next-hint, .mobile-prev-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid #e2eef0;
    border-radius: 12px;
    background: #fff;
  }
  .mobile-next-hint { margin: 0 0 10px; }
  .mobile-prev-hint { margin: 0 0 6px; }
  .mobile-prev-hint .mnh-label { background: #f1f5f7; color: #667781; }
  .mnh-label {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e7f6f4;
    color: #087f78;
    font-size: 11px;
    font-weight: 700;
  }
  .mnh-title {
    min-width: 0;
    color: #17313a;
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
  }
  a.mnh-title { text-decoration: none; }
  .mobile-trackbox {
    display: block;
    margin: 0 0 10px;
    border: 1px solid #e2eef0;
    border-radius: 13px;
    background: #fff;
    overflow: hidden;
  }
  .mobile-track-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 12px;
    border: 0;
    background: #f8fcfc;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #17313a;
    cursor: pointer;
  }
  .mt-count {
    font-size: 11px;
    font-weight: 700;
    color: #087f78;
    background: #e7f6f4;
    padding: 2px 8px;
    border-radius: 999px;
  }
  .mobile-track-panel { display: none; max-height: 230px; overflow: auto; padding: 6px; }
  .mobile-track-panel.open { display: block; }
  .mt-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 9px;
    border-radius: 9px;
    color: #17313a;
    text-decoration: none;
    font-size: 13px;
  }
  .mt-item.on { background: #e7f6f4; color: #087f78; font-weight: 700; }
  .mt-n { flex: 0 0 auto; font-size: 11px; color: #789099; font-variant-numeric: tabular-nums; }
  .mt-t { min-width: 0; overflow-wrap: anywhere; }
  .mobile-media-controls { display: block; margin: 0 0 10px; }
  .video-toggle {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #c8ece8;
    border-radius: 11px;
    background: #fff;
    color: #087f78;
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
  }
  .video-toggle:disabled { color: #8a9aa2; border-style: dashed; cursor: default; }
  .video-toggle:active { background: #f3fbfb; }
  .song-body { display: flex; flex-direction: column; margin-top: 10px; }
  .video-col { display: none; }
  .mobile-video-spacer {
    display: block;
    height: 236px;
    margin: 0 0 8px;
  }
  .mobile-video-player.on {
    display: block;
    position: fixed;
    top: 118px;
    left: 10px;
    right: auto;
    width: min(340px, calc(100vw - 20px));
    z-index: 35;
    margin: 0;
    padding: 6px;
    background: rgba(255, 255, 255, .98);
    border: 1px solid #d8eef0;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(15, 48, 58, .12);
  }
  .mobile-video-player.dragging {
    box-shadow: 0 12px 28px rgba(15, 48, 58, .22);
  }
  .player-drag-handle {
    display: block;
    position: relative;
    height: 18px;
    margin: 0 34px 4px 0;
    cursor: grab;
    touch-action: none;
    border-radius: 8px;
  }
  .player-drag-handle::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 7px;
    width: 34px;
    height: 4px;
    border-radius: 999px;
    background: #c8d9dc;
    transform: translateX(-50%);
  }
  .player-drag-handle:active { cursor: grabbing; }
  .player-resize-handle {
    display: block;
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 22px;
    height: 22px;
    cursor: nwse-resize;
    touch-action: none;
    border-right: 2px solid rgba(8, 127, 120, .55);
    border-bottom: 2px solid rgba(8, 127, 120, .55);
    border-bottom-right-radius: 10px;
  }
  .mobile-player-main {
    display: block;
    padding-right: 0;
  }
  .mobile-video-player .player {
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
  }
  .practice-seek {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: #42656c;
  }
  .ps-label { flex: 0 0 auto; font-size: 11px; font-weight: 700; white-space: nowrap; }
  .seek-range { flex: 1 1 auto; min-width: 0; height: 22px; accent-color: #087f78; }
  .seek-time { flex: 0 0 auto; min-width: 38px; text-align: right; font-size: 11px; font-variant-numeric: tabular-nums; }
  .video-minimize {
    position: absolute;
    z-index: 20;
    top: 3px;
    right: 6px;
    width: 24px;
    height: 24px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8eef0;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 48, 58, .12);
    color: #42656c;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    pointer-events: auto;
  }
  .player-live iframe { width: 100%; height: 100%; border: 0; }
  .video-head { display: none; }
  .player { max-width: 100%; aspect-ratio: 16 / 9; border-radius: 11px; }
  .player-poster { gap: 4px; }
  .player-poster .poster-t { font-size: 12px; }
  .player-poster .poster-s { display: none; }
  .video-col .tracklist-wrap,
  .video-col .start-note,
  .video-col .player-tip { display: none; }
  .call-col { min-width: 0; }
  .call-col .tbl-title, .songpage .tbl-title { margin-top: 8px; }
  .call-pages {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 8px 0 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 48, 58, .08);
  }
  .call-pages img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
    border-radius: 0;
    background: #fff;
    margin: 0;
    box-shadow: none;
  }
  .call-col.has-call-pages .call-table { display: none !important; }
  .tbl-title .n { display: none; }

  /* 手册详情浮层：手机端轻量曲目卡片列表 */
  .overlay { padding: 0; align-items: stretch; }
  .sheet {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    padding: 18px 14px 26px;
    background: #f1f8f9;
  }
  .sheet-close {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 48, 58, .10);
  }
  .sheet-head { padding-right: 44px; }
  .sheet-head h3 { margin: 2px 0 0; font-size: 22px; color: #17313a; letter-spacing: .01em; font-weight: 800; }
  .sheet-head .sub { display: none; }
  .sheet-actions { margin: 13px 0 18px; }
  .sheet-actions .btn.primary {
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    box-shadow: 0 7px 16px rgba(13, 148, 140, .20);
  }
  .dist { display: none; }
  .sheet .tbl-title { display: none; }
  .song-table { display: block; font-size: 13px; }
  .song-table thead { display: none; }
  .song-table tbody {
    display: flex;
    flex-direction: column;
    gap: 9px;
  }
  .song-table tr {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 10px 12px;
    border: 1px solid #e2eef0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 48, 58, .05);
  }
  .song-table tr:active { background: #f4fbfb; }
  .song-table td { display: block; padding: 0; border: 0; min-width: 0; }
  .song-table td.idx {
    flex: 0 0 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 24px;
    border-radius: 8px;
    background: #e7f6f4;
    color: #087f78;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .04em;
  }
  .song-table td.title { flex: 1 1 auto; }
  .song-table td.title .song-name {
    display: block;
    color: #17313a;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-decoration: none;
  }
  .song-table td.title .song-name:hover { color: #0b7a73; }
  .song-table td.roles {
    flex: 0 1 auto;
    max-width: 54%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
  }
  .song-table td.cn,
  .song-table td.color,
  .song-table td.vd { display: none !important; }
  .song-table .ctag {
    gap: 5px;
    padding: 4px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--cc, #10a49a) 11%, #fff);
    border: 1px solid color-mix(in srgb, var(--cc, #10a49a) 28%, #fff);
    color: color-mix(in srgb, var(--cc, #10a49a) 64%, #203840);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
  }
  .song-table .ctag i { width: 7px; height: 7px; flex: 0 0 auto; }

  /* 符号表与反馈页精简 */
  .symbol-wrap { display: block; }
  .sym-aside { display: none; }
  .sym-table { font-size: 12px; }
  .sym-table td { padding: 8px 6px; }
  .sym-table td.name { white-space: normal; width: auto; }
  .community-card { padding: 16px; }
  .community-layout { grid-template-columns: 1fr; gap: 18px; }
  .community-main { flex-direction: column; gap: 10px; }
  .community-qr img { width: 170px; }
  .community-note { display: none; }
  .foot { display: none; }
}
