/* Album pair on a shared typesetting grid, with an unbroken line for the score. */
body:not([data-song]) {background:#f8f8f5}
body:not([data-song]) .mast {background:#f8f8f5}
body:not([data-song]) .shell {width:min(1280px,calc(100% - 8.5vw))}
.shelf-intro {display:flex;align-items:baseline;justify-content:space-between;gap:18px;margin:25px 0 19px}
.shelf-intro h1,.source-intro h2 {font-family:"Songti SC","STZhongsong","Source Han Serif SC","Noto Serif CJK SC","SimSun",serif;font-weight:650;letter-spacing:-.055em;line-height:1.16}
.shelf-intro h1 {font-size:clamp(2.15rem,3.25vw,3.25rem)}
.index-jump {display:inline-flex;gap:8px;align-items:center;min-height:44px;color:var(--sub);font-size:.85rem}
.index-jump .icon {width:16px}
.folio-grid {display:grid;grid-template-columns:minmax(0,1.38fr) minmax(0,1fr);gap:20px}
.folio {border-radius:16px;overflow:clip;background:var(--surface);border:1px solid var(--line);min-width:0;--cover-accent:#584b85}
.folio[data-album="time-machine"] {--cover-accent:#28579b}
.folio-art {position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:space-between;padding:22px clamp(18px,2.2vw,32px) 25px;height:clamp(250px,21vw,330px);background:#132537;color:#fff}
.folio-art .scene {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:48% 48%;z-index:-2}
.folio-art:after {content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,rgba(8,16,31,.88),rgba(10,17,35,.08) 67%),linear-gradient(130deg,rgba(9,16,32,.54),transparent 55%)}
.folio[data-album="time-machine"] .scene {object-position:64% 46%}
.folio[data-album="time-machine"] .folio-art:after {background:linear-gradient(0deg,#0c1e44e6,transparent 77%),linear-gradient(120deg,#1127479c,transparent 73%)}
.art-top {display:flex;align-items:flex-start;justify-content:space-between;gap:9px}
.record-id {display:flex;align-items:center;gap:8px;font-size:.8rem;line-height:1.3;font-weight:600;letter-spacing:.015em;text-shadow:0 1px 6px #07101c}
.official-cover {width:36px;height:36px;border-radius:3px;box-shadow:0 2px 8px #0b1a39a8;outline:1px solid #ffffff5c;outline-offset:-1px}
.instrument {flex:none;padding:4px 9px;border:1px solid #ffffff7a;border-radius:20px;background:#101a2b66;color:#fff;font-size:.76rem;font-weight:650;line-height:1.2}
.art-title p {color:#f5f5f7;font-size:.82rem;letter-spacing:.04em;margin-bottom:4px}
.art-title h2 {font-size:clamp(2.6rem,4.8vw,5rem);letter-spacing:-.05em;line-height:1.13;font-weight:620}
.folio[data-album="zenzenzense"] .art-title h2 {font-family:"Songti SC","STZhongsong","Source Han Serif SC","Noto Serif CJK SC","SimSun",serif;letter-spacing:.035em;}
.folio[data-album="time-machine"] .art-title h2 {font-size:clamp(2.2rem,3.8vw,3.95rem);font-weight:580;letter-spacing:-.065em}
.folio-art h2 a:after {content:"";position:absolute;inset:0}
.folio-art h2 a:focus-visible {outline-offset:5px;outline-color:#fff}
.folio-paper {padding:14px clamp(14px,1.8vw,26px) 13px;background:var(--surface)}
.phrase-head,.phrase-names,.sample-play,.folio-actions,.edition-start,.phrase-status,.index-search,.index-controls,.source-intro,.source-head,.source-foot {display:flex;align-items:center}
.phrase-head,.phrase-status,.source-intro,.source-head,.source-foot {justify-content:space-between;gap:10px}
.phrase-names {gap:10px;flex-wrap:wrap}
.phrase-names h3 {font-size:1rem;font-weight:670;letter-spacing:-.02em}
.phrase-names>span,.phrase-status {font-size:.73rem;color:var(--sub)}
.sample-play {gap:6px;justify-content:center;min-height:44px;padding:0 7px;font-size:.8rem;font-weight:620;color:var(--cover-accent);white-space:nowrap}
.sample-play .icon {width:14px;height:14px}.sample-play:hover,.edition-alt:hover,.index-jump:hover {text-decoration:underline;text-underline-offset:4px}
.phrase-staff {display:flex;align-items:center;justify-content:center;height:clamp(73px,6.6vw,91px);background:#fffefa;border-block:1px solid #e5e1d7;padding:4px 7px}
.printed-measure {flex:1;max-width:50%;position:relative;line-height:0;min-width:0}.printed-measure img {width:100%;height:auto;mix-blend-mode:multiply}
.phrase-cursor {position:absolute;pointer-events:none;background:#ffbf3f60;outline:1.3px solid #975811;border-bottom:3px solid #975811;border-radius:3px}
.phrase-status {height:20px;margin-top:2px;font-variant-numeric:tabular-nums}
.folio-actions {gap:13px;flex-wrap:wrap;margin-top:4px}
.edition-start,.edition-alt {font-size:.83rem;min-height:44px;display:inline-flex;align-items:center;justify-content:center;font-weight:620}
.edition-start {gap:8px;padding:0 14px;border-radius:23px;color:#fff;background:var(--cover-accent)}
.edition-start .icon {width:15px}.edition-start:hover {filter:brightness(1.13)}
.local-credit {margin-left:auto;color:var(--sub);font-size:.7rem}
.source-index {margin:34px 0 0;scroll-margin-top:12px}
.source-intro {align-items:flex-end;margin-bottom:16px;flex-wrap:wrap}
.source-intro h2 {font-size:clamp(1.85rem,2.65vw,2.65rem)}
.source-intro p {margin-top:6px;font-size:.86rem;color:var(--sub);line-height:1.6}
.index-search {gap:7px;padding:0 12px;background:var(--surface);min-height:44px;border:1px solid var(--line);border-radius:9px;color:var(--sub)}
.index-search .icon {width:17px}.index-search input {border:0;min-width:0;width:clamp(9.5rem,16vw,15rem);font-size:.88rem;color:var(--ink);background:transparent;outline:none}
.index-search:focus-within {outline:2px solid var(--focus);outline-offset:2px}
.index-controls {gap:8px 14px;justify-content:space-between;padding:6px 0;flex-wrap:wrap;border-block:1px solid var(--line)}
.index-kinds,.index-options {display:flex;gap:4px;align-items:center;flex-wrap:wrap}
.index-kinds button,.index-options select,.index-reset,.source-foot button {min-height:44px;font-size:.84rem}
.index-kinds button {padding:0 12px;border-radius:9px;color:var(--sub);font-weight:550}
.index-kinds button[aria-pressed="true"] {color:var(--ink);background:var(--soft);font-weight:720;box-shadow:inset 0 -2px currentColor}
.index-options select {border:0;background:transparent;padding:0 4px;color:var(--sub)}
.index-reset {text-decoration:underline}
.index-row {display:grid;align-items:center;grid-template-columns:minmax(0,1.5fr) minmax(0,.75fr) minmax(0,1fr) auto;gap:14px;border-bottom:1px solid var(--line);padding:11px 0;min-height:68px}
.index-song {display:flex;align-items:center;gap:11px;min-width:0}
.cover-tile {width:44px;height:44px;flex:none;border-radius:6px;display:grid;place-items:center;background:var(--soft);color:var(--sub);overflow:hidden}
.cover-tile img {width:100%;height:100%;object-fit:cover}
.index-song strong,.source-where strong {display:block;font-size:.92rem;line-height:1.4;font-weight:640}
.index-song small,.source-where small,.key-col small,.source-head,.index-more,.index-count,.info-body {color:var(--sub);font-size:.78rem;line-height:1.48}
.index-song a:hover,.source-where a:hover {text-decoration:underline;text-underline-offset:3px}
.key-col span {font-size:.85rem;font-weight:600}.key-col small {display:block}
.source-where {min-width:0;overflow-wrap:anywhere}
.source-where a {font-size:.85rem}.source-where small {display:block}
.info-button {min-height:44px;display:flex;align-items:center;gap:4px;font-size:.8rem;color:var(--sub);border-radius:6px}
.info-button .icon {width:12px}.info-button[aria-expanded="true"] .icon {transform:rotate(90deg)}
.info-body {grid-column:1/-1;margin:0;padding:12px 14px;border-radius:8px;background:var(--soft);line-height:1.7;overflow-wrap:anywhere}
.info-body a {text-decoration:underline;text-underline-offset:3px}
.info-body audio {display:block;max-width:440px;margin:8px 0}
.source-head {margin:8px 0 1px}.source-foot {padding:10px 0;flex-wrap:wrap}.source-foot button {padding-inline:12px;background:var(--soft);border-radius:8px}
.zero {padding:24px 0;text-align:center}.source-nav {display:flex;align-items:center;gap:8px;font-size:.8rem}
.notes .credit {display:block}
.export-index {color:var(--sub);font-size:.82rem;text-decoration:underline;text-underline-offset:3px;min-height:44px;display:inline-flex;align-items:center}
@media (min-width:1600px) {.folio-art {height:345px}}
@media(max-width:1000px) {.folio-grid{gap:14px;grid-template-columns:minmax(0,1.17fr) minmax(0,1fr)}.folio-art{height:250px}.phrase-names{gap:3px 8px}.local-credit{font-size:.68rem}}
@media(max-width:760px) {
 .folio-grid{grid-template-columns:1fr 1fr;gap:10px}.folio-art{height:220px;padding:14px 12px 16px}.art-title h2{font-size:2.55rem}.folio[data-album="time-machine"] .art-title h2{font-size:2.1rem}
 .folio-paper{padding:7px 10px 10px}.phrase-names{display:block}.phrase-names>span{font-size:.68rem}.folio-actions{gap:8px}.local-credit{margin-left:0}
 .index-row{grid-template-columns:minmax(0,1.2fr) minmax(0,.52fr) minmax(0,.8fr) auto;gap:8px}.official-cover{width:30px;height:30px}
}
@media(max-width:600px) {
 body:not([data-song]) .shell{width:calc(100% - 28px)}.shelf-intro{margin:16px 0 13px}.shelf-intro h1{font-size:2.2rem}.index-jump{font-size:.76rem}
 .folio-grid{grid-template-columns:1fr;gap:17px}.folio-art{height:clamp(154px,45vw,240px);padding:14px 16px}
 .art-title h2{font-size:2.85rem}.folio[data-album="time-machine"] .art-title h2{font-size:2.55rem}
 .folio-paper{padding:6px 14px 8px}.phrase-names{display:flex}.phrase-staff{height:70px}.printed-measure{flex:0 1 340px;max-width:100%}
 .printed-measure img{max-height:64px;object-fit:fill}.phrase-status{height:16px}.local-credit{margin-left:auto}.phrase-head{min-height:44px}
 .source-index{margin-top:26px}.source-intro{align-items:center;gap:10px}.index-search{width:100%}.index-search input{width:100%}.index-controls{gap:2px}.index-kinds button{padding:0 9px}
 .index-row{grid-template-columns:minmax(0,1fr) auto;gap:3px 9px;padding:10px 0}.index-song{grid-column:1;grid-row:1/3}.key-col{grid-column:2;grid-row:1;text-align:right}.key-col small{display:none}
 .source-where{grid-column:1;margin-left:55px}.info-button{grid-column:2;grid-row:2/4;justify-self:end}.index-song small{font-size:.75rem}
 .mast nav a,.mast nav button{padding-inline:7px;font-size:.78rem}.mast-inner{gap:6px}.brand{font-size:1.03rem;gap:6px}
}
@media(prefers-color-scheme:dark){
 body:not([data-song]),body:not([data-song]) .mast{background:var(--bg)}
 .folio{--cover-accent:#d2c6ff}.folio[data-album="time-machine"]{--cover-accent:#a7ceff}.edition-start{color:#182034}
}
@media(prefers-contrast:more){.phrase-cursor{outline-width:2px}}
@media(forced-colors:active){.phrase-cursor{background:transparent;outline:2px solid Highlight}}
