:root { color-scheme: light; --paper: #f5f3eb; --ink: #30392e; --muted: #727669; --green: #53644c; --line: #dedfd3; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; color: var(--ink); background: #e9e9df; }
* { box-sizing: border-box; }
body { margin: 0; }
button, select, input { font: inherit; }
button, select { color: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { opacity: .32; cursor: default; }
button:focus-visible, select:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.player { max-width: 560px; margin: 0 auto; height: 100vh; height: 100dvh; min-height: 540px; padding: max(20px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); display: grid; grid-template-rows: auto auto minmax(120px, 1fr) auto; gap: 18px; background: var(--paper); }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Songti SC", "SimSun", serif; font-size: 19px; letter-spacing: 2px; }
.seal { display: grid; place-items: center; width: 34px; height: 38px; border: 1px solid #a3a991; border-radius: 9px 3px 9px 3px; font-size: 24px; color: var(--green); letter-spacing: 0; }
.brand-note { display: block; margin-top: 4px; font: 10px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 2px; color: var(--muted); }
.chapter-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 24px; font-size: 13px; background: #faf9f3; white-space: nowrap; }
.chapter-trigger svg { width: 17px; height: 17px; }
.chapter-heading { padding-top: 14px; }
.eyebrow { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: 2px; line-height: 1.6; }
.chapter-count { float: right; font-size: 11px; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
h1 { margin: 10px 0 8px; font-family: "Songti SC", "Noto Serif CJK SC", "SimSun", serif; font-weight: 500; font-size: 34px; letter-spacing: 6px; line-height: 1.3; }
.chapter-description { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: 1px; }
.listening { position: relative; min-height: 0; display: grid; }
.lyrics-viewport { height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; mask-image: linear-gradient(transparent, #000 18%, #000 80%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 80%, transparent); }
.lyrics-viewport::-webkit-scrollbar { display: none; }
.lyrics-list { padding: 70px 0; }
.lyric-line { min-height: 70px; margin: 0; padding: 15px 0; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; column-gap: 0; color: #858778; font-family: "Songti SC", "SimSun", serif; font-size: 21px; line-height: 1.9; text-align: center; }
.lyric-line span { white-space: nowrap; }
.lyric-line.is-current { color: var(--green); font-size: 26px; font-weight: 600; }
.lyrics-message, .quiet-view { align-self: center; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.8; }
.lyrics-message { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.quiet-character { display: block; font: 80px/1.5 "Songti SC", "SimSun", serif; color: #a3ad97; }
.quiet-view p { font-size: 13px; letter-spacing: 3px; }
.follow-button { position: absolute; bottom: 3px; justify-self: center; min-height: 48px; padding: 0 17px; border: 1px solid var(--line); border-radius: 25px; background: var(--paper); color: var(--green); font-size: 12px; box-shadow: 0 4px 16px #30392e08; }
.controls { padding-top: 0; }
.status-row { min-height: 30px; display: flex; align-items: center; justify-content: center; gap: 10px; }
#status { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }
.text-button { min-height: 48px; padding: 0 8px; color: var(--green); text-decoration: underline; text-underline-offset: 4px; font-size: 13px; }
.timeline { margin-top: 4px; }
#seek { display: block; margin: 0; width: 100%; height: 48px; cursor: pointer; -webkit-appearance: none; appearance: none; background: transparent; accent-color: var(--green); touch-action: pan-y; }
#seek::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(to right, var(--green) var(--progress, 0%), var(--line) var(--progress, 0%)); }
#seek::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; margin-top: -5px; border-radius: 50%; background: var(--green); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--green); }
#seek::-moz-range-track { height: 3px; background: var(--line); }
#seek::-moz-range-progress { height: 3px; background: var(--green); }
#seek::-moz-range-thumb { width: 10px; height: 10px; border: 2px solid var(--paper); background: var(--green); border-radius: 50%; }
#seek:disabled { opacity: .5; cursor: default; }
.time-labels { display: flex; justify-content: space-between; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--muted); letter-spacing: 1px; }
.transport { display: flex; justify-content: center; align-items: center; gap: clamp(28px, 9vw, 54px); margin: 14px 0 10px; }
.play-button { width: 78px; height: 78px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fffdf4; background: var(--green); box-shadow: 0 5px 18px #53644c1a; }
.play-button svg { width: 30px; height: 30px; }
.play-button:active { background: #43533d; }
.skip-button { min-width: 50px; min-height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; }
.skip-button span { font-size: 11px; color: var(--muted); }
.preferences { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.mode-control, .lyrics-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); min-height: 48px; }
.preferences svg { width: 17px; height: 17px; }
.mode-control select { border: 0; background: transparent; min-height: 48px; max-width: 140px; cursor: pointer; color: var(--ink); padding: 0 4px; font-size: 12px; }
.lyrics-toggle { padding: 0; color: var(--ink); }
dialog { width: min(100%, 560px); max-width: 100%; max-height: calc(100dvh - 24px); margin: auto auto 0; padding: 24px 24px max(16px, env(safe-area-inset-bottom)); border: 0; border-radius: 26px 26px 0 0; background: var(--paper); color: var(--ink); overscroll-behavior: contain; }
dialog::backdrop { background: #27302566; }
.sheet-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
h2 { font-family: "Songti SC", "SimSun", serif; font-size: 23px; font-weight: 500; letter-spacing: 2px; margin: 8px 0 16px; }
.close-button { width: 48px; height: 48px; display: grid; place-items: center; align-self: flex-start; }
.chapter-list { display: grid; gap: 7px; }
.chapter-option { display: flex; align-items: center; gap: 16px; width: 100%; padding: 14px; min-height: 70px; text-align: left; border: 1px solid transparent; border-radius: 12px; }
.chapter-option[aria-current="true"] { background: #e8ecdf; border-color: #d3dac6; }
.option-number { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.option-copy { flex: 1; }
.option-title { display: block; font-size: 15px; }
.option-detail { display: block; color: var(--muted); font-size: 11px; line-height: 1.6; margin-top: 5px; }
.option-mark { font-size: 12px; color: var(--green); }
.sheet-note { text-align: center; color: var(--muted); font-size: 11px; margin: 22px 0 6px; }
.noscript { position: fixed; bottom: 0; background: var(--paper); padding: 20px; width: 100%; text-align: center; }
@media (max-height: 680px) { .player { gap: 10px; padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: max(8px, env(safe-area-inset-bottom)); } .chapter-heading { padding-top: 2px; } h1 { font-size: 28px; margin: 6px 0; } .transport { margin: 8px 0; } .play-button { width: 72px; height: 72px; } .preferences { padding-top: 0; } .lyric-line { min-height: 62px; padding: 11px 0; } }
@media (max-width: 350px) { .player { padding-left: 18px; padding-right: 18px; } .lyric-line { font-size: 19px; } .lyric-line.is-current { font-size: 24px; } .brand { font-size: 17px; } .chapter-trigger { padding: 0 10px; } }
@media (min-width: 600px) { .player { border-left: 1px solid #dcded2; border-right: 1px solid #dcded2; padding-left: 38px; padding-right: 38px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
