/* 听到 网页版：令牌与 ios/Tingdao/Theme/Theme.swift 一致；1rem = 16px，大字模式放大 21/17 */
@font-face {
  font-family: 'TingdaoCover';
  src: url('/app/TingdaoCover-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'TingdaoCover';
  src: url('/app/TingdaoCover-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

/* 大标题字体（D-20）：和 YouTube 封面同款思源宋体（Noto Serif SC 700），子集 = 国标一级 3755 字 + 数据和界面里出现的字（scripts/build-title-font.py） */
@font-face {
  font-family: 'TingdaoTitle';
  src: url('/app/TingdaoTitle-Bold.woff2') format('woff2');
  font-weight: 600 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #fef8e9;
  --surface: #fffdf6;
  --ink: #532d18;
  --brown: #40200f;
  --muted: #7e5e48;
  --line: #eadfc8;
  --track: #eee2ca;
  --soft: #f6ebd3;
  --done: #5e7a4a;
  --cover-brown: #40200f;
  --cover-cream: #fef8e9;
  --hero-sub: #e9d9be;
  --danger: #c0392b;
  --glass: rgba(255, 253, 246, 0.82);
  --hl-bg: #f7e6bd; /* 文字版正在播的那一句：蜂蜜底 + 琥珀竖条（D-9） */
  --hl-bar: #b8741a;
  --mark-bg: #ffd45e; /* 文字版里收藏的句子：荧光笔底色，比 --hl-bg 亮，正在播的那段里也看得出来（D-26） */
  --r-card: 16px;
  --r-btn: 14px;
  --hit: 44px;
  --font: 'Songti SC', 'STSong', 'Noto Serif SC', 'Source Han Serif SC', serif;
  --tabbar-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
[data-theme='dark'] {
  color-scheme: dark;
  --cream: #1e130b;
  --surface: #2a1b10;
  --ink: #f4e7cf;
  --brown: #fef8e9;
  --muted: #c2aa8e;
  --line: #3e2b1c;
  --track: #3e2b1c;
  --soft: #332215;
  --done: #9dbb86;
  --hero-sub: #7e5e48;
  --danger: #ff7b6b;
  --glass: rgba(42, 27, 16, 0.82);
  --hl-bg: #4a3219;
  --hl-bar: #e0a650;
  --mark-bg: #7d5a12;
}

* { box-sizing: border-box; }
html { font-size: 16px; background: var(--cream); -webkit-text-size-adjust: 100%; }
html.big { font-size: 19.76px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; opacity: 0.4; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; border-radius: 8px; }

.shell {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100vh;
  padding-top: env(safe-area-inset-top, 0px);
}
.view {
  padding: 0 20px calc(var(--tabbar-h) + var(--safe-b) + 96px);
  outline: none;
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--cream);
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px 4px 20px;
}
.navbar.inline { padding-left: 4px; }
.navbar.scrolled { box-shadow: 0 1px 0 var(--line); }
.nav-title-large { font-family: 'TingdaoTitle', var(--font); font-size: 2.125rem; font-weight: 700; color: var(--brown); margin: 0; flex: 1; }
.nav-title { flex: 1; text-align: center; font-size: 1.0625rem; font-weight: 600; color: var(--brown); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-spacer { flex: 1; }
.wordmark { height: 34px; width: auto; }
.wordmark-dark { display: none; }
[data-theme='dark'] .wordmark-light { display: none; }
[data-theme='dark'] .wordmark-dark { display: block; }
.icon-btn {
  width: var(--hit);
  height: var(--hit);
  display: grid;
  place-items: center;
  color: var(--brown);
  border-radius: 50%;
  flex: none;
}
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.filled svg { fill: currentColor; }
.icon-btn.like-btn { width: auto; gap: 2px; padding-inline: 6px; }
.like-count { font-size: 13px; font-variant-numeric: tabular-nums; }
.like-count:empty { display: none; }
.back-btn { display: flex; align-items: center; gap: 2px; color: var(--brown); font-size: 1.0625rem; height: var(--hit); padding: 0 8px 0 4px; flex: none; }
.back-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav-side { min-width: 88px; display: flex; justify-content: flex-end; }
.nav-side.left { justify-content: flex-start; }

/* ---------- 基础组件 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 4px 16px;
}
.card > * + * { border-top: 1px solid var(--line); }
.section-title { font-size: 0.9375rem; font-weight: 600; color: var(--muted); margin: 22px 0 8px; }
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  width: 100%;
  text-align: left;
  color: var(--ink);
}
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 8px 0; }
.row-title { font-size: 1.0625rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.row-title > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.row.em .row-title { font-weight: 700; color: var(--brown); }
.row-caption { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.danger .row-title { color: var(--danger); }
.badge { font-size: 0.6875rem; font-weight: 600; color: var(--brown); background: var(--soft); border-radius: 999px; padding: 2px 6px; flex: none; }
.chev { width: 14px; height: 14px; color: var(--muted); flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lead-num { width: 30px; text-align: center; color: var(--muted); font-size: 0.9375rem; flex: none; }
.lead-icon { width: 30px; display: grid; place-items: center; color: var(--brown); flex: none; }
.lead-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lead-icon.done { color: var(--done); }
.lead-icon.fill svg { fill: currentColor; stroke: none; }
.trail-text { font-size: 0.8125rem; color: var(--muted); flex: none; }
.row-play { width: var(--hit); height: var(--hit); display: grid; place-items: center; color: var(--brown); flex: none; }
.row-play svg { width: 18px; height: 18px; fill: currentColor; }
.row-split { display: flex; align-items: center; }
.row-split > .row { flex: 1; min-width: 0; }

.cover {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: var(--cover-brown);
  font-family: 'TingdaoCover', var(--font);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 0 1px rgba(64, 32, 15, 0.12);
}
.cover[data-cat='旧约'] { background-image: url('/app/cover-old.jpg'); }
.cover[data-cat='新约'] { background-image: url('/app/cover-new.jpg'); }
.cover[data-cat='主日'] { background-image: url('/app/cover-sunday.jpg'); }
.cover[data-cat='系列'], .cover[data-cat='专题'] { background-image: url('/app/cover-topic.jpg'); }
.cover-stack { display: flex; flex-direction: column; align-items: center; }
.cover-lines { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.cover-rule { background: rgba(64, 32, 15, 0.5); height: 1px; }
.cover-name { font-weight: 400; opacity: 0.85; text-shadow: none; white-space: nowrap; }

.speaker-mark {
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 22%;
  background: var(--cover-brown);
  color: var(--cover-cream);
  font-family: 'TingdaoCover', var(--font);
  font-weight: 700;
}
.speaker-mark { position: relative; overflow: hidden; }
.speaker-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-theme='dark'] .speaker-mark { box-shadow: inset 0 0 0 1px var(--line); }

.progress { height: 4px; border-radius: 999px; background: var(--track); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--brown); border-radius: inherit; }
.dots { display: flex; gap: 4px; flex: none; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--track); }
.dots i.on { background: var(--brown); }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 52px;
  border-radius: var(--r-btn);
  background: var(--brown);
  color: var(--cream);
  font-size: 1.0625rem;
  font-weight: 600;
  padding: 0 16px;
  text-align: center;
}
.btn.inverted { background: var(--cream); color: var(--brown); }
.btn.ghost { background: transparent; color: var(--brown); box-shadow: inset 0 0 0 1.5px var(--brown); }
.btn svg { width: 16px; height: 16px; fill: currentColor; }

.hero {
  background: var(--cover-brown);
  border-radius: 20px;
  padding: 18px;
  margin-top: 6px;
  color: var(--cover-cream);
}
[data-theme='dark'] .hero { background: var(--cover-cream); color: var(--cover-brown); }
.hero-sub { font-size: 0.9375rem; color: var(--hero-sub); margin: 0; }
.hero-title { font-family: 'TingdaoTitle', var(--font); font-size: 1.75rem; font-weight: 700; margin: 4px 0; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero .btn { margin-top: 12px; background: var(--cover-cream); color: var(--cover-brown); }
[data-theme='dark'] .hero .btn { background: var(--cover-brown); color: var(--cover-cream); }
.tagline { font-size: 0.75rem; color: var(--muted); margin: 0 0 14px; white-space: nowrap; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; font-size: 0.875rem; padding: 7px 12px; border-radius: 999px; background: var(--soft); color: var(--ink); }
.chip.on { background: var(--brown); color: var(--cream); font-weight: 600; }
.chip.outline { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: 0 14px; height: 36px; font-size: 0.9375rem; }

.segmented { display: flex; background: var(--soft); border-radius: 9px; padding: 2px; margin-bottom: 14px; }
.segmented button { flex: 1; height: 32px; border-radius: 7px; font-size: 0.875rem; color: var(--ink); }
.segmented button.on { background: var(--surface); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }

.book-head { display: flex; align-items: center; gap: 16px; padding-top: 4px; }
.book-head h1 { font-family: 'TingdaoTitle', var(--font); font-size: 1.75rem; color: var(--brown); margin: 0 0 4px; }
.meta { font-size: 0.9375rem; color: var(--muted); margin: 0; }
.meta.small { font-size: 0.8125rem; }
.progress-block { margin-top: 18px; }
.progress-block .between { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 0.9375rem; color: var(--muted); }
.progress-block .progress { height: 6px; }
.row.speaker-row { padding-top: 8px; padding-bottom: 8px; }
.sp-chev { display: inline-grid; transition: transform 0.15s; }
.sp-chev.open { transform: rotate(90deg); }
.kicker-link { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.series-head { display: flex; align-items: center; gap: 12px; margin: 24px 0 10px; }
.series-head h2 { font-family: 'TingdaoTitle', var(--font); font-size: 1.25rem; font-weight: 600; margin: 0 0 3px; color: var(--ink); }
.more-row { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; color: var(--muted); font-size: 0.9375rem; }

.lesson-kicker { font-size: 0.9375rem; color: var(--muted); margin: 8px 0 0; }
.lesson-title { font-family: 'TingdaoTitle', var(--font); font-size: 1.75rem; color: var(--brown); margin: 4px 0; line-height: 1.25; }

.stats { display: flex; gap: 10px; margin-bottom: 16px; }
.stat { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px; }
.stat b { display: block; font-size: 1.375rem; color: var(--brown); }
.stat span { font-size: 0.8125rem; color: var(--muted); }

.switch { position: relative; width: 51px; height: 31px; border-radius: 999px; background: var(--track); flex: none; transition: background 0.2s; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); transition: transform 0.2s; }
.switch.on { background: var(--brown); }
.switch.on::after { transform: translateX(20px); }
[data-theme='dark'] .switch.on::after { background: #40200f; }

.search-field { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; background: var(--soft); border-radius: 12px; margin-top: 4px; color: var(--muted); }
.search-field svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.search-field input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1.0625rem; color: var(--ink); outline: none; }
.search-field input::-webkit-search-cancel-button { display: none; }
.clear-btn { width: 22px; height: 22px; border-radius: 50%; background: var(--muted); color: var(--cream); font-size: 14px; line-height: 22px; text-align: center; flex: none; }

.note-item { padding: 12px 0; }
.note-item + .note-item { border-top: 1px solid var(--line); }
.note-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.note-time { font-size: 0.8125rem; font-weight: 600; color: var(--brown); background: var(--soft); border-radius: 999px; padding: 0 10px; min-height: 30px; font-variant-numeric: tabular-nums; }
.note-text { font-size: 1.0625rem; margin: 6px 0 0; white-space: pre-wrap; }
.note-del { font-size: 0.8125rem; color: var(--muted); padding: 4px 0 4px 10px; }

.empty { text-align: center; color: var(--muted); font-size: 0.9375rem; padding: 60px 20px; }
.hint { font-size: 0.8125rem; color: var(--muted); margin: 8px 2px 0; }
.status-line { font-size: 0.8125rem; color: var(--muted); margin: 6px 2px 0; }
.status-line.err { color: var(--danger); }

/* 资源 */
.resource-row .res-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; font-size: 1.125rem; }
.res-icon svg { width: 22px; height: 22px; fill: currentColor; }
.res-family { background: #4e7a5a; }
.res-men { background: #c58b2a; font-size: 0.75rem !important; letter-spacing: 0.5px; }
.res-john { background: #4f6a93; font-family: 'TingdaoCover', var(--font); }

/* ---------- 底部：迷你播放条 + Tab 栏 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  pointer-events: none;
}
.dock > * { pointer-events: auto; }
.mini {
  max-width: 620px;
  margin: 0 auto 8px;
  width: calc(100% - 20px);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(1.6) blur(20px);
  backdrop-filter: saturate(1.6) blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(64, 32, 15, 0.12);
}
.mini-body { display: flex; align-items: center; gap: 12px; padding: 12px 6px 0 14px; cursor: pointer; }
/* 迷你条左边小图（D-27）：讲员画像方的，课封面 16:9 */
.mini-art { flex: none; width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.mini-art.wide { width: 85px; }
.mini-text { flex: 1; min-width: 0; }
.mini-title { font-size: 0.9375rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-sub { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 控制键：整条可点开播放页，这三个键各自 stopPropagation（见 app.js 事件分发） */
.mini-controls { display: flex; align-items: center; gap: 0; flex: none; }
.mini-foot { display: flex; align-items: center; gap: 10px; padding: 10px 14px 12px; }
.mini-foot #mini-progress { flex: 1; min-width: 0; }
.mini-time { font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini .progress { height: 4px; }
.mini .icon-btn svg { width: 26px; height: 26px; fill: currentColor; stroke: none; }
/* ±15 秒是描边图标，别被上面那条 fill 规则吃掉（同 .transport .skip） */
.mini .icon-btn.skip svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mini .icon-btn.skip text { fill: currentColor; stroke: none; font-size: 8px; font-weight: 700; font-family: -apple-system, sans-serif; }
.tabbar {
  display: flex;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(1.6) blur(20px);
  backdrop-filter: saturate(1.6) blur(20px);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
}
.tab { flex: 1; height: var(--tabbar-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 0.625rem; max-width: 160px; margin: 0 auto; }
html.big .tab { font-size: 11px; }
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.tab.on { color: var(--brown); font-weight: 600; }
.tab.on svg { stroke-width: 2.1; }

/* ---------- 播放页 ---------- */
.player {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--cream);
  overflow-y: auto;
  animation: slide-up 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes slide-up { from { transform: translateY(100%); } to { transform: none; } }
.player-inner {
  max-width: 480px;
  min-height: 100%;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 24px calc(var(--safe-b) + 16px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.player-top { display: flex; align-items: center; color: var(--brown); }
.player-top .nav-title { color: var(--muted); font-size: 0.9375rem; }
.player-cover { display: flex; justify-content: center; margin: auto 0; padding: 16px 0; }
.player-cover .cover { width: min(240px, 62vw, 34vh); height: min(240px, 62vw, 34vh); }
/* 横版大封面（和 YouTube 同款），有 lesson.cover 的课才有 */
.player-cover .player-wide { width: min(560px, 100%); aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); }
.player-title { font-family: 'TingdaoTitle', var(--font); font-size: 1.75rem; font-weight: 700; color: var(--brown); text-align: center; margin: 0; line-height: 1.25; }
.player-sub { font-size: 0.9375rem; color: var(--muted); text-align: center; margin: 6px 0 0; }
.scrub { margin-top: 18px; }
.scrub-track { position: relative; height: 28px; cursor: pointer; touch-action: none; }
.scrub-track .bar { position: absolute; left: 0; right: 0; top: 11px; height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.scrub-track .bar i { display: block; height: 100%; background: var(--brown); }
.scrub-track .knob { position: absolute; top: 7px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--brown); transition: transform 0.1s; }
.scrub-track.dragging .knob { transform: scale(1.55); }
.scrub-times { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 6px; }
.transport { display: flex; justify-content: center; align-items: center; gap: 36px; margin-top: 8px; color: var(--brown); }
.transport .skip { width: 64px; height: 64px; display: grid; place-items: center; }
.transport .skip svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.transport .skip text { fill: currentColor; stroke: none; font-size: 7px; font-weight: 700; font-family: -apple-system, sans-serif; }
.play-big { width: 88px; height: 88px; border-radius: 50%; background: var(--cover-brown); color: var(--cover-cream); display: grid; place-items: center; }
[data-theme='dark'] .play-big { background: var(--cover-cream); color: var(--cover-brown); }
.play-big svg { width: 36px; height: 36px; fill: currentColor; }
.tools {
  display: flex;
  margin-top: 20px;
  padding: 6px 0;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--line);
}
.tool { flex: 1; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--brown); font-size: 0.8125rem; }
.tool .tool-icon { height: 26px; display: grid; place-items: center; font-size: 1.0625rem; font-weight: 600; }
.tool svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool.filled svg { fill: currentColor; }
.player-note { font-size: 0.8125rem; color: var(--muted); text-align: center; margin: 14px 0 0; }
.player-note.warn { color: var(--brown); font-size: 0.9375rem; font-weight: 500; }
.line-switch { display: block; margin: 14px auto 0; padding: 6px 14px; border: 1px solid var(--line, rgba(0,0,0,.12)); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 0.8125rem; cursor: pointer; }
.line-switch b { color: var(--brown); font-weight: 600; }
.alt-switch { display: flex; gap: 0; margin: 14px auto 0; width: fit-content; max-width: 100%; border: 1px solid var(--line, rgba(0,0,0,.12)); border-radius: 999px; padding: 3px; }
.alt-switch button { padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 0.8125rem; cursor: pointer; white-space: nowrap; }
.alt-switch button.on { background: var(--brown); color: var(--surface); font-weight: 600; }

/* ---------- 底部弹层（记一句 / 登录） ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(30, 19, 11, 0.4); }
.sheet-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--cream);
  border-radius: 14px 14px 0 0;
  padding: 0 20px calc(var(--safe-b) + 20px);
  animation: slide-up 0.25s ease-out;
}
@media (min-width: 700px) {
  .sheet { align-items: center; }
  .sheet-panel { border-radius: 16px; }
}
.sheet-head { display: flex; align-items: center; height: 56px; }
.sheet-head .nav-title { font-size: 1.0625rem; }
.sheet-link { color: var(--brown); font-size: 1.0625rem; min-width: 56px; height: var(--hit); }
.sheet-link.strong { font-weight: 700; text-align: right; }
.sheet p.lead { font-size: 0.9375rem; color: var(--muted); margin: 0 0 16px; }
.field {
  width: 100%;
  min-height: 52px;
  border-radius: var(--r-btn);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  padding: 12px 14px;
  outline: none;
}
textarea.field { min-height: 110px; resize: vertical; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.or { text-align: center; font-size: 0.8125rem; color: var(--muted); margin: 6px 0; }
.btn.google { background: #000; color: #fff; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 500; }
[data-theme='dark'] .btn.google { background: #fff; color: #000; }
.btn.google img { width: 18px; height: 18px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 90px);
  transform: translateX(-50%);
  z-index: 80;
  background: var(--cover-brown);
  color: var(--cover-cream);
  font-size: 0.9375rem;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  max-width: calc(100% - 40px);
}

/* ---------- 添加到主屏幕提示（install.js） ---------- */
.install-banner {
  position: fixed;
  left: 10px;
  right: 10px;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  z-index: 70;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 12px;
  box-shadow: 0 8px 28px rgba(64, 32, 15, 0.16);
}
.install-banner-icon img { border-radius: 10px; display: block; }
.install-banner-copy { flex: 1; min-width: 0; }
.install-banner-title { font-size: 0.9375rem; color: var(--brown); }
.install-banner-lead { font-size: 0.8125rem; color: var(--muted); margin: 2px 0 0; }
.install-banner-steps { font-size: 0.8125rem; color: var(--ink); margin: 6px 0 0; padding-left: 18px; }
.install-banner-actions { display: flex; align-items: center; gap: 6px; }
.install-banner-button { background: var(--brown); color: var(--cream); border-radius: 999px; padding: 6px 14px; font-size: 0.875rem; font-weight: 600; }
.install-banner-close { width: 32px; height: 32px; font-size: 22px; color: var(--muted); }

@media (hover: hover) {
  a.row:hover .row-title, button.row:hover .row-title { color: var(--brown); }
  .chip:hover:not(.on) { filter: brightness(0.97); }
}
@media (prefers-reduced-motion: reduce) {
  .player, .sheet-panel { animation: none; }
}

/* 书卷页「按章」tab：章号网格 */
.chap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 8px; margin-bottom: 4px; }
.chap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 48px; border-radius: 10px; background: var(--soft); color: var(--ink); }
.chap.wide { grid-column: span 2; }
.chap-n { font-size: 1rem; font-weight: 600; line-height: 1.1; }
.chap-c { font-size: 0.6875rem; color: var(--muted); }
.chap.on { background: var(--ink); color: var(--surface); }
.chap.on .chap-c { color: var(--surface); opacity: 0.75; }
.chap-group { font-size: 0.8125rem; font-weight: 600; color: var(--muted); padding: 10px 14px 4px; }
.chap-group + .row { border-top: none; }

/* 转写文字（点句跳播）：整屏覆盖层，结构同 .player；上千行，靠 class 增删高亮，不整块重画 */
.tscript { position: fixed; inset: 0; z-index: 55; background: var(--cream); overflow-y: auto; animation: slide-up 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
.tscript-inner { max-width: 560px; min-height: 100%; margin: 0 auto; padding: 0 16px 48px; }
.tscript-title { font-family: 'TingdaoTitle', var(--font); font-size: 1.25rem; margin: 4px 0 2px; }
.tscript-sub { font-size: 0.875rem; color: var(--muted); margin: 0 0 12px; }
.tscript-note { font-size: 0.9375rem; color: var(--muted); padding: 24px 0; text-align: center; }
.tscript-list { margin-top: 16px; }
/* 段落阅读：默认不显示时间、不显示可点样式，读起来是文章不是字幕 */
.tscript-line { display: block; width: 100%; text-align: justify; padding: 0; border-radius: 10px; cursor: default; }
.tscript-line + .tscript-line { margin-top: 1.1em; }
.tscript-at { display: none; flex: 0 0 auto; font-variant-numeric: tabular-nums; font-size: 0.8125rem; color: var(--muted); }
.tscript-t { display: block; font-family: Georgia, 'Songti SC', 'Noto Serif CJK SC', serif; font-size: 1.0625rem; line-height: 1.95; letter-spacing: 0.01em; text-indent: 2em; }
/* 「跟读」打开后才变成可点、显示时间、高亮当前段 */
.tscript-list.follow .tscript-line { cursor: pointer; padding: 6px 10px; margin-left: -10px; margin-right: -10px; }
.tscript-list.follow .tscript-at { display: block; margin-bottom: 2px; text-indent: 0; }
.tscript-line { transition: background-color 0.25s, box-shadow 0.25s; }
.tscript-line.on { background: var(--hl-bg); box-shadow: inset 3px 0 0 var(--hl-bar); }
.tscript-line.on .tscript-t { font-weight: 600; color: var(--brown); }
/* 双击 / 长按收藏的句子刷荧光笔底色（D-26）；长按不要弹系统的选字 / 菜单 */
.tscript-line { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.tscript-s.mk, .mark-q { background: var(--mark-bg); color: inherit; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.mark-q { font-family: Georgia, 'Songti SC', 'Noto Serif CJK SC', serif; line-height: 1.8; padding: 1px 0; }
.mark-from { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 一组中英连成一块：组内不留缝，两句的圆角只留外侧 */
.tscript-line.pair-a + .tscript-line.pair-b { margin-top: 0; }
.tscript-list.follow .tscript-line.pair-a { border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 2px; }
.tscript-list.follow .tscript-line.pair-b { border-top-left-radius: 0; border-top-right-radius: 0; padding-top: 2px; }
.tscript-list.follow .tscript-line.pair-b .tscript-at { display: none; }
.tscript-line.pair-b .tscript-t { text-indent: 0; }
.tscript-line.on .tscript-at { color: var(--hl-bar); font-weight: 600; }
/* 中英交替里的英文句：无衬线、不缩进，和中文一眼分开（D-9） */
.tscript-line.en .tscript-t { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; text-indent: 0; text-align: left; line-height: 1.7; }
.tscript-by { display: block; margin-top: 2px; font-size: 0.75rem; color: var(--muted); text-indent: 0; }
.tscript-list.fixing .tscript-line { cursor: pointer; outline: 1px dashed rgba(83, 45, 24, 0.25); outline-offset: 2px; }
/* 底部常驻控制条（D-16）：贴在滚动容器底部，滚到哪都在；关闭 / ±15 / 播放暂停 / 进度 */
.tscript-bar { position: sticky; bottom: 0; z-index: 1; background: var(--glass); -webkit-backdrop-filter: saturate(1.6) blur(20px); backdrop-filter: saturate(1.6) blur(20px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tscript-bar-inner { max-width: 560px; margin: 0 auto; padding: 8px 16px 10px; }
.tscript-bar-prog { display: flex; align-items: center; gap: 10px; }
.tscript-bar-prog #tscript-progress { flex: 1; min-width: 0; }
.tscript-bar .progress { height: 4px; }
.tscript-time { font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tscript-bar-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 4px; }
.tscript-close { justify-self: start; height: var(--hit); padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--brown); font-size: 0.9375rem; font-weight: 600; }
.tscript-top { justify-self: end; }
.tscript-ctrls { display: flex; align-items: center; gap: 18px; color: var(--brown); }
.tscript-ctrls .icon-btn.skip svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tscript-ctrls .icon-btn.skip text { fill: currentColor; stroke: none; font-size: 7px; font-weight: 700; font-family: -apple-system, sans-serif; }
.tscript-ctrls .icon-btn:disabled { opacity: 0.35; }
.tscript-play { width: 56px; height: 56px; border-radius: 50%; background: var(--cover-brown); color: var(--cover-cream); display: grid; place-items: center; }
[data-theme='dark'] .tscript-play { background: var(--cover-cream); color: var(--cover-brown); }
.tscript-play svg { width: 26px; height: 26px; fill: currentColor; }
.tscript-fix { position: fixed; inset: 0; z-index: 60; background: var(--cream); overflow-y: auto; }
.tscript-fix .text-btn { background: none; border: 0; color: var(--brown, #532d18); font-size: 1rem; padding: 8px 4px; cursor: pointer; }
.tscript-fix .text-btn.strong { font-weight: 700; }
.tscript-was { background: var(--surface, #fff); border-radius: 12px; padding: 12px; color: var(--muted); line-height: 1.8; }
.tscript-fix textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line, rgba(83, 45, 24, 0.15)); border-radius: 12px; padding: 12px; font: inherit; font-size: 1.0625rem; line-height: 1.8; background: var(--surface, #fff); color: var(--ink); }

/* ---------- 游戏化：等级 / 今日目标 / 奖牌 / 圣经地图（对应 iOS Medals + BibleMap） ---------- */
.medal { object-fit: contain; flex: none; }
.medal.dim { filter: grayscale(1); opacity: 0.28; }
.medal.blank { display: grid; place-items: center; border-radius: 50%; background: var(--soft); border: 1px solid var(--line); }
.medal.blank svg { width: 40%; height: 40%; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.5; }

.ring { position: relative; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; }
.ring .ring-track { stroke: var(--track); }
.ring .ring-fill { stroke: var(--brown); stroke-linecap: round; transition: stroke-dashoffset 0.4s; }
.ring.hit .ring-fill { stroke: var(--done); }
.ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ring-text b { font-size: 1.125rem; color: var(--brown); }
.ring-text span { font-size: 0.625rem; color: var(--muted); }

.today-strip,
.level-card,
.seal-card { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.today-strip { margin-top: 14px; }
.today-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.today-streak { display: flex; align-items: center; gap: 6px; font-size: 0.9375rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today-level { display: flex; flex-direction: column; gap: 4px; }
.today-level span { font-size: 0.8125rem; color: var(--muted); }
.today-level .progress,
.level-main .progress,
.seal-main .progress { height: 5px; }

.level-card { gap: 14px; }
.level-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.level-main h2 { font-family: 'TingdaoTitle', var(--font); font-size: 1.375rem; color: var(--brown); margin: 0; font-weight: 600; }
.level-main > span { font-size: 0.8125rem; color: var(--muted); }

.seal-card { margin-top: 16px; }
.seal-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.seal-main strong { font-size: 0.9375rem; font-weight: 500; }
.seal-main > span { font-size: 0.8125rem; color: var(--muted); }
.seal-stack { display: flex; flex: none; }
.seal-stack .medal + .medal { margin-left: -10px; }

.week-card { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.week-card > * + * { border-top: 0; }
.week-head { display: flex; align-items: baseline; gap: 8px; }
.week-head b { font-size: 1.25rem; color: var(--brown); }
.week-head span { font-size: 0.8125rem; color: var(--muted); }
.week { display: flex; align-items: flex-end; gap: 8px; height: 96px; }
.week-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.week-col i { width: 18px; border-radius: 6px; background: var(--track); }
.week-col i.today { background: var(--brown); }
.week-col i.hit { background: var(--done); }
.week-col span { font-size: 0.6875rem; color: var(--muted); margin-top: 6px; }
.week-col span.on { color: var(--brown); }

.goal-pick { display: flex; gap: 4px; flex: none; }
.goal-pick button { min-width: 38px; height: 30px; border-radius: 8px; background: var(--soft); color: var(--ink); font-size: 0.8125rem; }
.goal-pick button.on { background: var(--brown); color: var(--cream); font-weight: 600; }
.dot-badge { min-width: 20px; height: 20px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 0.75rem; font-weight: 600; display: grid; place-items: center; padding: 0 5px; flex: none; }

.map-head { margin-top: 6px; padding: 18px; border-radius: 20px; background: var(--cover-brown); color: var(--cover-cream); display: flex; flex-direction: column; gap: 10px; }
.map-count { display: flex; align-items: baseline; gap: 6px; }
.map-count b { font-size: 2.125rem; font-weight: 700; }
.map-count span { font-size: 0.9375rem; color: var(--hero-sub); }
.map-head .progress { height: 6px; background: rgba(255, 255, 255, 0.22); }
.map-head .progress > i { background: var(--cover-cream); }

.seal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 14px 10px; align-items: start; }
.seal-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.seal-cell.faded { opacity: 0.5; }
.seal-art { position: relative; display: grid; place-items: center; }
.seal-ring { position: absolute; inset: 0; width: 64px; height: 64px; transform: rotate(-90deg); }
.seal-ring circle { fill: none; stroke: var(--brown); stroke-width: 3; stroke-linecap: round; }
.seal-name { font-size: 0.6875rem; color: var(--muted); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seal-name.on { color: var(--ink); }
.seal-sub { font-size: 0.625rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.medal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 18px 12px; }
.medal-cell { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.medal-name { font-size: 0.8125rem; font-weight: 500; color: var(--muted); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.medal-name.on { color: var(--ink); }
.medal-sub { font-size: 0.6875rem; color: var(--muted); }

.session-xp { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-top: 14px; }
.session-xp b { font-size: 0.9375rem; color: var(--brown); }
.session-xp span { font-size: 0.75rem; color: var(--muted); }

.earned {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 90px);
  transform: translateX(-50%);
  z-index: 85;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100% - 40px);
  text-align: left;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--cover-brown);
  color: var(--cover-cream);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.earned-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.earned-text strong { font-size: 1rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.earned-text span { font-size: 0.8125rem; color: var(--hero-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 每日一句（首页最上方，对应 iOS DailyVerseCard / 安卓 DailyVerseCard） */
.verse {
  background: var(--surface);
  border-radius: var(--r-card, 16px);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.verse-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 6px; }
.verse-text { font-family: Georgia, 'Songti SC', 'Noto Serif CJK SC', serif; font-size: 1.0625rem; line-height: 1.7; color: var(--ink); margin: 0; }
.verse-ref { font-size: 0.8125rem; color: var(--muted); margin: 8px 0 0; text-align: right; }

/* ---------- 成就大图（点奖牌看大图 + 分享）---------- */
.medalview { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.mv-backdrop { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(30, 19, 11, 0.62); backdrop-filter: blur(6px); animation: mv-fade 220ms ease both; }
.mv-card {
  position: relative; width: min(420px, 100%); max-height: 92vh; overflow: auto; text-align: center;
  padding: 26px 22px 24px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(30, 19, 11, 0.4); animation: mv-in 420ms cubic-bezier(0.2, 1.4, 0.35, 1) both;
}
.mv-close { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.mv-art { position: relative; width: 230px; height: 230px; margin: 6px auto 14px; display: grid; place-items: center; }
.mv-rays, .mv-glow, .mv-shine, .mv-sparks { position: absolute; inset: 0; pointer-events: none; }
.mv-rays {
  border-radius: 50%; opacity: 0; animation: mv-rays-in 600ms 120ms ease-out forwards, mv-spin 14s linear 120ms infinite;
  background: repeating-conic-gradient(from 0deg, rgba(214, 167, 74, 0.26) 0deg 7deg, transparent 7deg 22deg);
  -webkit-mask-image: radial-gradient(circle, #000 28%, transparent 72%); mask-image: radial-gradient(circle, #000 28%, transparent 72%);
}
.mv-glow { border-radius: 50%; background: radial-gradient(circle, rgba(255, 238, 200, 0.95), rgba(255, 238, 200, 0) 68%); opacity: 0; animation: mv-glow 900ms 80ms ease-out forwards; }
.mv-img { position: relative; width: 168px; height: 168px; object-fit: contain; animation: mv-pop 620ms cubic-bezier(0.18, 1.5, 0.35, 1) both; }
.mv-card.mv-off .mv-img { filter: grayscale(1); opacity: 0.5; } /* 大图里比墙上格子亮一些——点开就是为了看清这张图 */
.mv-card.mv-off .mv-rays, .mv-card.mv-off .mv-glow, .mv-card.mv-off .mv-shine { display: none; }
.mv-shine { overflow: hidden; border-radius: 50%; }
.mv-shine::after {
  content: ''; position: absolute; top: -40%; left: -60%; width: 40%; height: 180%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  transform: rotate(18deg); animation: mv-sweep 1.5s 420ms ease-out 2;
}
.mv-spark {
  position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%;
  background: radial-gradient(circle, #fff, rgba(214, 167, 74, 0.9)); opacity: 0;
  animation: mv-spark 900ms var(--d, 0ms) cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}
.mv-name { font-family: 'Noto Serif SC', serif; font-size: 1.5rem; margin: 2px 0 4px; color: var(--brown); animation: mv-up 420ms 260ms ease both; }
.mv-tier { color: var(--done); font-weight: 600; margin: 0 0 4px; animation: mv-up 420ms 340ms ease both; }
.mv-card.mv-off .mv-tier { color: var(--muted); font-weight: 500; }
.mv-cap { color: var(--muted); font-size: 0.875rem; margin: 0; animation: mv-up 420ms 380ms ease both; }
.mv-bar { margin: 14px auto 0; max-width: 220px; }
.mv-who {
  display: inline-block; margin: 16px auto 4px; padding: 7px 16px; border-radius: 999px; cursor: pointer;
  border: 1px dashed var(--line); background: var(--soft); color: var(--ink); font-size: 0.9375rem; animation: mv-up 420ms 440ms ease both;
}
.mv-btns { display: flex; gap: 10px; margin-top: 16px; animation: mv-up 420ms 500ms ease both; }
.mv-btns .btn { flex: 1; }
.mv-hint { margin: 16px 0 0; color: var(--muted); font-size: 0.8125rem; }
.medal-cell { border: 0; background: transparent; padding: 0; cursor: pointer; font: inherit; }
.medal-cell:active { transform: scale(0.96); }
.seal-tap { border: 0; background: transparent; padding: 0; cursor: pointer; line-height: 0; }

@keyframes mv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mv-in { from { opacity: 0; transform: translateY(26px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes mv-pop { 0% { opacity: 0; transform: scale(0.3) rotate(-24deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes mv-glow { 0% { opacity: 0; transform: scale(0.5); } 55% { opacity: 1; } 100% { opacity: 0.55; transform: scale(1); } }
@keyframes mv-rays-in { to { opacity: 1; } }
@keyframes mv-spin { to { transform: rotate(360deg); } }
@keyframes mv-sweep { 0% { left: -60%; } 100% { left: 130%; } }
@keyframes mv-spark {
  0% { opacity: 0; transform: rotate(var(--deg)) translateY(-10px) scale(0.4); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--deg)) translateY(calc(-1 * var(--r, 110px))) scale(0.9); }
}
@keyframes mv-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .mv-card, .mv-img, .mv-name, .mv-tier, .mv-cap, .mv-who, .mv-btns, .mv-glow, .mv-rays { animation: none !important; opacity: 1 !important; transform: none !important; }
  .mv-shine, .mv-sparks { display: none; }
}

/* 专辑（D-31）：封面图盖在字标上；首页横向货架 + 「专辑」格子 */
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.section-title.between { display: flex; justify-content: space-between; align-items: baseline; }
.section-more { font-size: 0.8125rem; font-weight: 400; color: var(--muted); text-decoration: none; }
.album { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: inherit; text-decoration: none; }
.album-art { width: 100%; aspect-ratio: 1; border-radius: 14px; font-size: 3rem; margin-bottom: 6px; box-shadow: inset 0 0 0 1px rgba(64, 32, 15, 0.12), 0 4px 12px rgba(64, 32, 15, 0.12); }
.album strong { font-size: 0.9375rem; font-weight: 600; color: var(--brown); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album > span { font-size: 0.75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album-shelf { display: flex; gap: 12px; overflow-x: auto; padding: 2px 20px 6px; margin: 0 -20px; scroll-snap-type: x proximity; scrollbar-width: none; }
.album-shelf::-webkit-scrollbar { display: none; }
.album-shelf .album { flex: none; width: 132px; scroll-snap-align: start; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 14px; margin-top: 14px; }
.album-desc { font-size: 0.9375rem; line-height: 1.6; color: var(--muted); margin: 14px 0 0; }
