/* 视觉方向：南京复印店里的地下刊物。新闻纸、油墨黑、一枚红章。 */
/* 思源宋体子集（只含站内用到的字，见 scripts/subset-font.mjs）。700 及以上都用 900 那份，避免浏览器假加粗 */
@font-face { font-family: "LZ Serif"; src: url("../fonts/noto-serif-sc-400.woff2?v=5a7b9c81") format("woff2"); font-weight: 100 600; font-display: swap; }
@font-face { font-family: "LZ Serif"; src: url("../fonts/noto-serif-sc-900.woff2?v=bc157304") format("woff2"); font-weight: 700 900; font-display: swap; }
:root {
  --paper: #ebe6da;
  --paper-2: #e1dbcc;
  --ink: #1b1916;
  --ink-2: #4a463f;
  --ink-3: #625d55;   /* 小字灰：在 --paper 与 --paper-2 上对比度均 ≥ 4.5:1 */
  --red: #b3261e;
  --rule: #1b1916;
  --serif: "LZ Serif", "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --hand: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  --mono: "SF Mono", "Menlo", "Courier New", monospace;
  --w: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
/* 复印颗粒 */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
a { color: inherit; }
img { display: block; max-width: 100%; }
#sheet-title:focus { outline: none; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: var(--paper); }

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 28px; }

/* ---------- 页面转场（支持 View Transitions 的浏览器；不支持时正常跳转） ---------- */
@view-transition { navigation: auto; }
.masthead { view-transition-name: masthead; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .38s cubic-bezier(.2,.7,.2,1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- 页眉 ---------- */
.masthead { border-bottom: 3px double var(--rule); }
.masthead .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 12px; }
.logo { font-size: 26px; font-weight: 900; letter-spacing: .3em; text-decoration: none; }
.logo small { font-family: var(--mono); font-size: 11px; letter-spacing: .15em; color: var(--ink-3); margin-left: 6px; font-weight: 400; }
.nav { display: flex; gap: 26px; font-size: 15px; }
.nav a { text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.nav a:hover { border-color: var(--ink); }
.nav a[aria-current="page"] { color: var(--red); border-color: var(--red); }

.dateline { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--ink-3); border-bottom: 1px solid var(--rule); }
.dateline .wrap { display: flex; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; }

/* ---------- 通用 ---------- */
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--red); text-transform: uppercase; }
.section { padding: 88px 0; border-bottom: 1px solid var(--rule); }
.section.tight { padding-top: 48px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 900; line-height: 1.15; letter-spacing: .04em; }
.more { font-size: 15px; text-decoration: none; border-bottom: 1px solid; white-space: nowrap; }
.more:hover { color: var(--red); }
.stamp {
  display: inline-block; font-family: var(--serif); font-weight: 900; color: var(--red);
  border: 3px solid var(--red); padding: 4px 12px; letter-spacing: .2em;
  transform: rotate(-6deg); opacity: .88; mix-blend-mode: multiply;
}
.page-title { padding: 72px 0 48px; border-bottom: 1px solid var(--rule); }
.page-title h1 { font-size: clamp(44px, 7vw, 92px); font-weight: 900; line-height: 1.05; letter-spacing: .05em; margin: 10px 0 18px; }
.page-title p { max-width: 36em; color: var(--ink-2); }

/* ---------- 首页 Hero ---------- */
.hero { border-bottom: 1px solid var(--rule); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; padding-top: 28px; padding-bottom: 48px; align-items: center; }
.hero h1 { font-size: clamp(120px, 19vw, 248px); font-weight: 900; line-height: .9; letter-spacing: -.02em; }
.hero h1 span { display: block; animation: ink-up .9s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 span:nth-child(2) { animation-delay: .14s; }
@keyframes ink-up { from { clip-path: inset(100% 0 0 0); transform: translateY(28%); } to { clip-path: inset(0); transform: none; } }
.hero .kicker, .hero .sub, .hero .meta, .hero-caption { animation: pop .6s cubic-bezier(.2,.7,.2,1) both; }
.hero .kicker { animation-delay: .05s; }
.hero .sub { animation-delay: .45s; }
.hero .meta { animation-delay: .6s; }
.hero-caption { animation-delay: 1.1s; }
.hero .sub { margin-top: 28px; font-size: 20px; max-width: 22em; }
.hero .sub em { font-style: normal; background: var(--ink); color: var(--paper); padding: 0 6px; }
.hero .meta { margin-top: 26px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: .1em; }
.hero-stack { position: relative; aspect-ratio: 1; cursor: pointer; outline: none; }
.hero-stack:focus-visible { outline: 2px solid var(--red); outline-offset: 8px; }
.hs img { width: 100%; height: 100%; object-fit: cover; }
.hero-stack .hs:nth-child(3) { animation: slide-in .45s cubic-bezier(.2,.7,.2,1); }
@keyframes slide-in { from { opacity: 0; transform: rotate(-1deg) translate(30px, 24px); } }
.hero-caption { display: flex; justify-content: space-between; margin-top: 18px; font-size: 15px; }
.hero-caption .hint-mini { font-family: var(--hand); color: var(--ink-3); }
.hero-stack .hs {
  position: absolute; width: 72%; aspect-ratio: 1;
  box-shadow: 0 1px 0 var(--ink), 6px 8px 0 rgba(27,25,22,.12);
  filter: grayscale(.25) contrast(1.05);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.hero-stack .hs:nth-child(1) { top: 0; left: 0; transform: rotate(-4deg); }
.hero-stack .hs:nth-child(2) { top: 12%; left: 22%; transform: rotate(3deg); }
.hero-stack .hs:nth-child(3) { top: 26%; left: 10%; transform: rotate(-1deg); filter: none; }
@media (hover: hover) {
  .hero-stack:hover .hs:nth-child(1) { transform: rotate(-9deg) translate(-14px, -8px); }
  .hero-stack:hover .hs:nth-child(2) { transform: rotate(7deg) translate(16px, -4px); }
}
.hero-stack .stamp { position: absolute; right: 2%; bottom: 6%; font-size: 22px; z-index: 2; animation: thump .5s .95s cubic-bezier(.3,1.4,.5,1) both; }
@keyframes thump { from { opacity: 0; transform: rotate(-6deg) scale(2.6); } 60% { opacity: .9; } to { transform: rotate(-6deg) scale(1); } }
/* 首次进入：三张封面像发牌一样依次落下（JS 在动画结束后移除 .intro） */
.hero-stack.intro .hs { animation: deal .75s cubic-bezier(.2,.7,.2,1) both; }
.hero-stack.intro .hs:nth-child(1) { animation-delay: .25s; }
.hero-stack.intro .hs:nth-child(2) { animation-delay: .4s; }
.hero-stack.intro .hs:nth-child(3) { animation-delay: .55s; }
/* 本次会话已经看过入场动画：直接显示最终状态 */
.intro-seen .hero h1 span, .intro-seen .hero .kicker, .intro-seen .hero .sub, .intro-seen .hero .meta, .intro-seen .hero-caption, .intro-seen .hero-stack .stamp { animation: none; }
@keyframes deal { from { opacity: 0; transform: translate(80px, -60px) rotate(14deg); } }

/* 跑马灯：一行像复印传单边角的小字 */
.ticker { border-bottom: 1px solid var(--rule); overflow: hidden; white-space: nowrap; background: var(--ink); color: var(--paper); }
.ticker div { display: inline-block; padding: 10px 0; font-size: 15px; letter-spacing: .1em; animation: tick 60s linear infinite; }
.ticker a { margin: 0 28px; text-decoration: none; }
.ticker a::before { content: "✕"; color: #e0574d; margin-right: 28px; }
.ticker a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.ticker:hover div { animation-play-state: paused; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
@keyframes tick { to { transform: translateX(-50%); } }

/* 首页：三栏短文 */
.columns { display: grid; grid-template-columns: repeat(3, 1fr); }
.columns article { padding: 0 32px; border-left: 1px solid var(--rule); }
.columns article:first-child { padding-left: 0; border-left: 0; }
.columns h3 { font-size: 24px; margin: 8px 0 12px; }
.columns p { color: var(--ink-2); font-size: 16px; }
.columns .num { font-family: var(--mono); font-size: 48px; line-height: 1; color: var(--red); }

/* 首页：引言大字 */
.manifesto { padding: 110px 0; border-bottom: 1px solid var(--rule); text-align: center; }
.manifesto p { font-size: clamp(30px, 4.6vw, 58px); font-weight: 900; line-height: 1.35; max-width: 15em; margin: 0 auto; }
.manifesto p s { white-space: nowrap; text-decoration-color: var(--red); text-decoration-thickness: 4px; }
.manifesto .by { font-family: var(--hand); font-size: 20px; color: var(--ink-3); margin-top: 22px; font-weight: 400; }

/* ---------- 唱片墙 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 36px 28px; }
.album { cursor: pointer; background: none; border: 0; text-align: left; font: inherit; color: inherit; }
.album .cover { display: block; position: relative; aspect-ratio: 1; overflow: hidden; background: var(--paper-2); box-shadow: 0 0 0 1px rgba(27,25,22,.25); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.album:focus-visible .cover { transform: translateY(-5px) rotate(-.6deg); box-shadow: 0 0 0 1px rgba(27,25,22,.35), 6px 10px 0 rgba(27,25,22,.14); }
@media (hover: hover) { .album:hover .cover { transform: translateY(-5px) rotate(-.6deg); box-shadow: 0 0 0 1px rgba(27,25,22,.35), 6px 10px 0 rgba(27,25,22,.14); } }
.album img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); transition: filter .35s, transform .6s cubic-bezier(.2,.7,.2,1); }
.album:focus-visible img, .album.vivid img { filter: none; }
.album:focus-visible img { transform: scale(1.04); }
@media (hover: hover) { .album:hover img { filter: none; transform: scale(1.04); } }
.album:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.album .yr { position: absolute; left: 0; top: 0; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 12px; padding: 3px 8px; }
.album .album-title { display: block; font-size: 18px; font-weight: 700; margin-top: 12px; line-height: 1.4; }
.album .t { display: block; font-size: 13px; color: var(--ink-3); }

.home-split { display: grid; grid-template-columns: 1fr 2.4fr; gap: 56px; align-items: start; }
.home-split-head { position: sticky; top: 32px; }
.home-split-head h2 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 900; line-height: 1.2; margin: 10px 0 18px; }
.home-split-head p { color: var(--ink-2); font-size: 16px; margin-bottom: 24px; }
.nw { white-space: nowrap; }
#grid { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { #grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.group-head { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-top: 24px; }
.group-head:first-child { margin-top: 0; }
.group-head h2 { font-size: 26px; font-weight: 900; letter-spacing: .06em; }
.group-head span { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: .1em; }
.filters { display: flex; gap: 10px; margin-bottom: 36px; flex-wrap: wrap; }
.filters button { font: inherit; font-size: 14px; background: none; border: 1px solid var(--ink); padding: 4px 16px; cursor: pointer; color: var(--ink); }
.filters button small { font-family: var(--mono); font-size: 11px; margin-left: 6px; opacity: .6; }
.filters button:hover { background: var(--paper-2); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* 专辑详情弹层 */
dialog.sheet { border: 0; padding: 0; background: transparent; color: var(--ink); width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; box-shadow: none; }
dialog.sheet[open] { display: flex; align-items: center; justify-content: center; }
/* 卡片：纵向不占满，上下各留约 48px；点卡片外面一定打到全屏透明的 dialog 上（iOS 点 ::backdrop 没反应也照样关） */
.sheet-card { width: calc(100% - 40px); max-width: 980px; max-height: calc(100dvh - 96px); background: var(--paper); box-shadow: 0 30px 80px rgba(0,0,0,.4); overflow: hidden; display: flex; flex-direction: column; }
.sheet-card .sheet-in { min-height: 0; }
dialog.sheet::backdrop { background: rgba(27,25,22,.72); }
dialog.sheet[open] { animation: sheet-in .3s cubic-bezier(.2,.7,.2,1); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px); } }
dialog.sheet[open]::backdrop { animation: fade-in .3s ease; }
dialog.sheet.closing { animation: sheet-out .17s ease forwards; }
dialog.sheet.closing::backdrop { animation: fade-out .17s ease forwards; }
@keyframes sheet-out { to { opacity: 0; transform: translateY(10px) scale(.99); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.sheet-in { display: grid; grid-template-columns: 1fr 1fr; }
.sheet-cover picture { display: block; }
.sheet-in img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.sheet-body { padding: 32px 40px; overflow: auto; max-height: min(490px, calc(100vh - 100px)); }
.sheet-body h2 { font-size: 34px; line-height: 1.2; margin: 8px 0 6px; animation: pop .35s cubic-bezier(.2,.7,.2,1); }
.sheet-body .note { color: var(--ink-2); margin: 14px 0 20px; font-size: 15px; }
.sheet-body .tl-label { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--ink-3); padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.sheet-body .tracks { list-style: none; columns: 2; column-gap: 24px; }
.sheet-body .tracks li { break-inside: avoid; padding: 8px 0; border-bottom: 1px dotted var(--ink-3); font-size: 15px; line-height: 1.5; }
.sheet-body .tbd { font-family: var(--hand); color: var(--ink-3); border-top: 1px solid var(--rule); padding-top: 14px; }
.sheet-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--rule); background: var(--paper); }
.sheet-count { font-family: var(--mono); font-size: 12px; letter-spacing: .15em; color: var(--ink-3); }
.nav-btn { background: var(--paper); border: 1px solid var(--ink); width: 40px; height: 40px; font-size: 18px; cursor: pointer; color: var(--ink); margin-left: 6px; transition: background .15s, color .15s; }
.nav-btn:hover { background: var(--ink); color: var(--paper); }
.nav-btn.close:hover { background: var(--red); border-color: var(--red); }
.sheet-cover { position: relative; }
.sheet-cover img { animation: develop .6s ease-out; }
.sheet-cover .stamp { position: absolute; right: 16px; bottom: 16px; font-family: var(--mono); font-size: 20px; background: rgba(235,230,218,.85); }
@keyframes develop { from { filter: grayscale(1) contrast(1.3) brightness(1.1); } }

/* ---------- 歌里的地方 ---------- */
.places { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; padding-top: 56px; padding-bottom: 88px; align-items: start; }
.map { position: relative; aspect-ratio: 1.25; border: 1px solid var(--rule); background:
  repeating-linear-gradient(0deg, transparent 0 39px, rgba(27,25,22,.08) 39px 40px),
  repeating-linear-gradient(90deg, transparent 0 39px, rgba(27,25,22,.08) 39px 40px); }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin { cursor: pointer; outline: none; }
.pin.home .dot { animation: pulse 2.4s 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { r: 10; } }
.pin .hit { fill: transparent; }
.pin .dot { fill: var(--ink); transition: r .2s, fill .2s; }
.pin text { font-family: var(--serif); font-size: 15px; fill: var(--ink); font-weight: 700; transition: fill .2s; }
.pin:hover .dot, .pin:focus-visible .dot { fill: var(--red); r: 8; }
.pin:hover text, .pin:focus-visible text { fill: var(--red); }
.pin.on .dot { fill: var(--red); r: 9; }
.pin.on text { fill: var(--red); }
.pin.home .dot { fill: var(--red); }
.mini { fill: var(--ink-2); }
.zoom-box { fill: none; stroke: var(--ink); stroke-width: 1; }
.zoom-link { stroke: var(--ink); stroke-width: .75; stroke-dasharray: 2 3; }
.inset { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.inset-label { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; fill: var(--ink-3); }
.route { fill: none; stroke: var(--red); stroke-width: 1; stroke-dasharray: 3 4; opacity: .55; transition: opacity .25s, stroke-width .25s; }
.route.on { stroke-dasharray: none; stroke-width: 2; opacity: 1; }
.draw { fill: none; stroke: #fff; stroke-width: 6; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--d, 0s) cubic-bezier(.6,0,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pin { animation: pin-in .45s var(--d, 0s) cubic-bezier(.3,1.5,.5,1) both; transform-box: fill-box; transform-origin: center; }
@keyframes pin-in { from { opacity: 0; transform: scale(.2); } }
.map .legend { position: absolute; right: 12px; top: 10px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips button { font: inherit; font-size: 14px; background: none; border: 1px solid var(--ink); color: var(--ink); padding: 4px 14px; cursor: pointer; min-height: 36px; }
.chips button:hover { background: var(--paper-2); }
.chips button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--paper); }
.place-card { position: sticky; top: 24px; border-top: 3px solid var(--ink); padding-top: 18px; }
.place-card h2 { font-size: 64px; animation: pop .35s cubic-bezier(.2,.7,.2,1); line-height: 1; font-weight: 900; margin: 8px 0 18px; }
.place-card p { color: var(--ink-2); margin-bottom: 18px; }
.place-card ul { list-style: none; }
.place-card li { padding: 8px 0; border-bottom: 1px dotted var(--ink-3); font-size: 18px; }
.place-card li::before { content: "♪"; color: var(--red); margin-right: 10px; }

/* ---------- 年表 ---------- */
.timeline { padding-top: 40px; padding-bottom: 100px; }
.tl-row { display: grid; grid-template-columns: 180px 1fr auto; gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.tl-covers { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; max-width: 300px; }
.album.thumb { width: 64px; height: 64px; padding: 0; box-shadow: 0 0 0 1px rgba(27,25,22,.25); overflow: hidden; transition: transform .25s; }
@media (hover: hover) { .album.thumb:hover { transform: translateY(-3px) rotate(-2deg); } }
.album.thumb picture, .album.thumb img { display: block; width: 100%; height: 100%; }
.album.thumb img { width: 100%; height: 100%; object-fit: cover; }
.tl-row .y { font-family: var(--mono); font-size: 40px; line-height: 1; color: var(--ink); }
.tl-row p { font-size: 20px; max-width: 34em; }
.tl-row.redact p { position: relative; }
/* 遮挡条：行出现后像盖章一样从左到右刷黑；指上去或点开时从右侧收走 */
.tl-row.redact p span { color: transparent; background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 0 / 0 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size .55s cubic-bezier(.6,0,.2,1) .45s, color .25s; cursor: help; }
.tl-row.redact.in p span, html:not(.js) .tl-row.redact p span { background-size: 100% 100%; }
.tl-row.redact.open p span, .tl-row.redact:focus-visible p span { background-size: 0 100%; background-position: 100% 0; color: var(--ink); transition-delay: 0s, .15s; }
.tl-row.redact .y { color: var(--red); }
.tl-row:last-child .y { color: var(--ink-3); }
@media (hover: hover) { .tl-row.redact.in:hover p span, html:not(.js) .tl-row.redact:hover p span { background-size: 0 100%; background-position: 100% 0; color: var(--ink); transition-delay: 0s, .15s; } }
.hint { font-family: var(--hand); color: var(--ink-3); font-size: 15px; margin-top: 8px; }

/* ---------- 播放器（config.js 启用后才出现） ---------- */
body.has-player { padding-bottom: 84px; }
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; animation: bar-up .45s cubic-bezier(.2,.7,.2,1); }
@keyframes bar-up { from { transform: translateY(100%); } }
.player-bar { display: grid; grid-template-columns: 56px minmax(140px, 1fr) auto minmax(200px, 2fr) auto auto auto; align-items: center; gap: 18px; padding: 12px 28px; background: var(--paper); border-top: 3px double var(--ink); box-shadow: 0 -10px 30px rgba(27,25,22,.08); }
.p-cover { width: 56px; height: 56px; object-fit: cover; box-shadow: 0 0 0 1px rgba(27,25,22,.3); }
.p-cover, .p-title, .p-album { cursor: pointer; }
.player.playing .p-cover { animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 50% { transform: rotate(-2deg) scale(1.03); } }
.player.swap .p-meta, .player.swap .p-cover { animation: pop .4s cubic-bezier(.2,.7,.2,1); }
.p-meta { min-width: 0; line-height: 1.4; }
.p-title { font-weight: 900; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-sub { font-size: 13px; color: var(--ink-3); display: flex; gap: 10px; white-space: nowrap; overflow: hidden; }
.p-fmt { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; border: 1px solid var(--ink-3); padding: 0 5px; align-self: center; line-height: 16px; background: none; color: var(--ink-3); cursor: pointer; }
.p-fmt:disabled { cursor: default; }
.p-fmt:not(:disabled):hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.p-buf { font-family: var(--hand); color: var(--ink-3); }
.p-sub.err .p-buf { color: var(--red); }
/* 缓冲中：播放键外圈转起来 */
.player.buffering .p-play { position: relative; }
.player.buffering .p-play::after { content: ""; position: absolute; inset: -5px; border: 2px solid transparent; border-top-color: var(--red); border-right-color: var(--red); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.p-vol { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.p-vol input { width: 80px; accent-color: var(--ink); }
.p-fmt.lossless { color: var(--red); border-color: var(--red); }
.p-fmt:empty { display: none; }
.lp-lines button { all: unset; display: block; width: 100%; cursor: pointer; box-sizing: border-box; }
.lp-lines button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.p-ctrl { display: flex; gap: 6px; }
.p-btn { width: 40px; height: 40px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font-size: 14px; cursor: pointer; font-family: var(--serif); transition: background .15s, color .15s, transform .1s; }
.p-btn:hover { background: var(--ink); color: var(--paper); }
.p-btn:active { transform: scale(.94); }
.p-play { width: 48px; height: 48px; margin-top: -4px; background: var(--ink); color: var(--paper); font-size: 15px; }
.p-play:hover { background: var(--red); border-color: var(--red); }
.p-lyr[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--paper); }
.p-x { border-color: transparent; font-size: 20px; }
.p-progress { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.p-seek { flex: 1; -webkit-appearance: none; appearance: none; height: 18px; background: transparent; cursor: pointer; --p: 0%; }
.p-seek::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(var(--ink), var(--ink)) 0 0 / var(--p) 100% no-repeat, rgba(27,25,22,.18); }
.p-seek::-moz-range-track { height: 3px; background: rgba(27,25,22,.18); }
.p-seek::-moz-range-progress { height: 3px; background: var(--ink); }
.p-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4.5px; background: var(--red); border: 0; border-radius: 0; transform: rotate(45deg); }
.p-seek::-moz-range-thumb { width: 10px; height: 10px; background: var(--red); border: 0; border-radius: 0; transform: rotate(45deg); }

.lyrics-panel { position: absolute; right: 28px; bottom: calc(100% + 12px); width: min(440px, calc(100vw - 56px)); background: var(--paper); border: 1px solid var(--ink); box-shadow: 8px 10px 0 rgba(27,25,22,.12); animation: pop .3s cubic-bezier(.2,.7,.2,1); }
.lp-head { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 16px; border-bottom: 1px solid var(--rule); }
.lp-title { font-weight: 900; }
.lp-lines { /* 歌词来自 LRC，很多字不在站内字体子集里；整段用系统宋体，避免同一行里两种字形混排 */ font-family: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif; list-style: none; height: min(46vh, 380px); overflow-y: auto; padding: 48px 16px 140px; scrollbar-width: thin; mask-image: linear-gradient(transparent, #000 12%, #000 85%, transparent); }
.lp-lines li { position: relative; padding: 7px 0; font-size: 16px; line-height: 1.5; color: var(--ink-3); cursor: pointer; transition: color .3s, transform .3s; transform-origin: left center; }
@media (hover: hover) { .lp-lines li:hover { color: var(--ink-2); } }
.lp-lines li.on { color: var(--ink); font-weight: 900; transform: scale(1.08); }
.lp-lines li.gap { letter-spacing: .3em; }
/* 前奏、间奏时提示下一句：♪ 放在行首左侧空白里，不占行，开唱后消失 */
.lp-lines li.next::before { content: "♪"; color: var(--red); position: absolute; right: calc(100% + 3px); top: 7px; animation: note-bounce 1s ease-in-out infinite; }
@keyframes note-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.lp-lines .lp-empty { font-family: var(--hand); cursor: default; }
.lp-lines .lp-note { font-family: var(--hand); cursor: default; color: var(--ink-2); }

/* 弹层里的可播放曲目 */
.play-all { font: inherit; font-size: 15px; background: var(--ink); color: var(--paper); border: 0; padding: 8px 18px; margin-bottom: 18px; cursor: pointer; transition: background .15s; }
.play-all:hover { background: var(--red); }
.sheet-body .tracks.playable { columns: 1; }
.trk { display: flex; width: 100%; gap: 14px; align-items: baseline; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; padding: 0; }
.trk .n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); width: 20px; }
.trk .tt { flex: 1; }
.trk .du { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.trk:hover .tt { color: var(--red); }
.trk.playing .tt { color: var(--red); font-weight: 900; }
.trk.playing .n { color: var(--red); }
.trk.playing .n::before { content: "▶\FE0E"; }
.trk.playing .n { font-size: 0; }
.trk.playing .n::before { font-size: 11px; }

/* ---------- 页脚 ---------- */
footer { padding: 40px 0 56px; font-size: 13px; color: var(--ink-3); }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer a { text-decoration: none; border-bottom: 1px solid; }

/* ---------- 进场动画 ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ticker div { animation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .draw { stroke-dashoffset: 0; }
  .tl-row.redact p span { background-size: 100% 100%; }
}

/* ---------- 搜索 ---------- */
.searchbar { border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.searchbar .wrap { position: relative; padding-top: 8px; padding-bottom: 8px; }
.search-box { display: flex; align-items: center; gap: 14px; }
#search-input {
  flex: 1; min-width: 0; font: inherit; font-size: 16px; background: var(--paper);
  border: 1px solid var(--ink); padding: 7px 14px; color: var(--ink); border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
#search-input:focus { outline: 2px solid var(--red); outline-offset: 2px; }
#search-input::placeholder { color: var(--ink-3); }
#search-input::-webkit-search-cancel-button { display: none; }
.search-clear { flex: none; width: 40px; height: 40px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; font-family: var(--serif); }
.search-clear:hover { background: var(--ink); color: var(--paper); }
.search-results {
  position: absolute; left: 28px; right: 28px; top: 100%; z-index: 80;
  background: var(--paper); border: 1px solid var(--ink);
  box-shadow: 8px 10px 0 rgba(27,25,22,.12);
  max-height: min(60vh, 480px); overflow-y: auto; text-align: left;
}
.sr-count { padding: 10px 16px 4px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--ink-3); }
.sr-item { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px dotted var(--ink-3); padding: 12px 16px; cursor: pointer; font: inherit; color: inherit; }
.sr-item:last-child { border-bottom: 0; }
.sr-item:hover, .sr-item.active { background: var(--paper-2); }
.sr-item .sr-kind { float: right; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--red); margin-left: 12px; }
.sr-item .sr-title { font-weight: 900; font-size: 17px; }
.sr-item .sr-album { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--ink-3); margin-top: 2px; }
.sr-item .sr-snippet { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin-top: 6px; }
.sr-item mark, .sr-snippet mark { background: none; color: var(--red); }
.sr-empty, .sr-status { padding: 16px; color: var(--ink-3); font-family: var(--hand); font-size: 16px; }
.sr-more { padding: 10px 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-3); border-top: 1px solid var(--rule); }
@media (max-width: 860px) {
  .searchbar .kicker { display: none; }
  .search-results { left: 16px; right: 16px; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .hero .wrap, .places, .sheet-in, .home-split { grid-template-columns: 1fr; }
  .home-split-head { position: static; }
  .hero-stack { max-width: 420px; width: 100%; margin: 0 auto; }
  .hero h1 { font-size: clamp(120px, 40vw, 200px); }
  .hero h1 span { display: inline-block; }
  .columns { grid-template-columns: 1fr; gap: 32px; }
  .columns article { padding: 0; border-left: 0; border-top: 1px solid var(--rule); padding-top: 24px; }
  .columns article:first-child { border-top: 0; padding-top: 0; }
  .tl-row { grid-template-columns: 1fr; gap: 8px; }
  .tl-covers { justify-content: flex-start; }
  .sheet-body .tracks { columns: 1; }
  .place-card { position: static; }
  /* 手机：弹层铺满屏幕，整体一起滚动；顶栏固定，随时能关 */
  dialog.sheet { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; overflow-y: auto; overscroll-behavior: contain; }
  dialog.sheet[open] { display: block; }
  .sheet-card { width: 100%; max-width: none; max-height: none; box-shadow: none; overflow: visible; }
  .sheet-bar { position: sticky; top: 0; z-index: 2; }
  .sheet-in img { max-height: 46vh; }
  .sheet-body { max-height: none; overflow: visible; padding: 24px 20px 40px; }
  /* 手机：地图上只标出选中的城市（以及南京），其余靠下方按钮选择；点击范围放大 */
  .pin text { display: none; font-size: 34px; }
  .pin.on text, .pin.home text { display: inline; }
  .pin .hit { r: 44px; }
  .chips button { min-height: 44px; padding: 6px 16px; font-size: 15px; }
  .map .legend { display: none; }
  .masthead .wrap { flex-direction: column; gap: 6px; }
  .dateline .wrap span:last-child { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  body.has-player { padding-bottom: 112px; }
  .player-bar { grid-template-columns: 44px 1fr auto auto auto; gap: 10px 10px; padding: 10px 16px; }
  .p-cover { width: 44px; height: 44px; }
  .p-ctrl [data-act="prev"] { display: none; }
  .p-vol { display: none; }
  .p-progress { grid-column: 1 / -1; grid-row: 2; }
  .lyrics-panel { left: 0; right: 0; margin: 0 auto; width: min(400px, calc(100vw - 64px)); }
}

/* 404 页 */
.notfound { min-height: 60vh; }
.notfound h1 { position: relative; display: inline-block; }
.notfound h1::after { content: "缺页"; position: absolute; right: -1.6em; top: .1em; font-size: .28em; color: var(--red); border: 3px solid var(--red); padding: .05em .3em; transform: rotate(-12deg); letter-spacing: .1em; }
.notfound-links { display: flex; gap: 28px; margin-top: 28px; }
