/* Record sleeves lead the collection. Metadata follows each sleeve as small tags. */
.albums{padding-top:clamp(18px,3vw,46px);scroll-margin-top:12px}
.wall-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:22px}
.wall-head h1{margin:0;font-family:"Songti SC","STZhongsong","Noto Serif CJK SC",SimSun,serif;font-size:clamp(2.6rem,4.2vw,4.4rem);line-height:1.05;letter-spacing:-.065em;font-weight:650}
.wall-head p{color:var(--sub);font-size:.9rem;line-height:1.55;margin:8px 0 0}
.wall-head p span{padding:0 8px}.wall-head .index-search{min-width:235px}
.wall-count{display:flex;align-items:center;justify-content:space-between;color:var(--sub);font-size:.78rem;padding:10px 0}
.wall-count a{min-height:34px;display:inline-flex;align-items:center;gap:4px}.wall-count .icon{width:14px}
#album-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:start;gap:clamp(20px,2.4vw,38px) clamp(14px,1.7vw,25px);margin:4px 0 25px}
.album-card{min-width:0;isolation:isolate}.album-link{display:block;border-radius:12px;color:var(--ink)}
.album-frame{position:relative;width:100%;aspect-ratio:1;background:var(--soft);border-radius:12px;overflow:hidden;box-shadow:0 5px 14px -9px #18141e70;outline:1px solid #0000000e;outline-offset:-1px}
.album-frame>img{width:100%;height:100%;display:block;object-fit:cover}
.album-count{position:absolute;right:9px;bottom:9px;padding:4px 8px;line-height:1.4;font-weight:600;border-radius:16px;color:#fff;background:rgb(13 13 20 / .80);font-size:.69rem;font-variant-numeric:tabular-nums}
.album-enter{position:absolute;width:39px;height:39px;left:10px;bottom:9px;align-items:center;justify-content:center;display:flex;background:#fffcfd;color:#201c28;border-radius:50%;opacity:0;transform:translateY(5px)}
.album-card h2{font-size:clamp(1rem,1.25vw,1.2rem);line-height:1.3;letter-spacing:-.022em;margin:11px 0 2px;overflow-wrap:anywhere}
.album-artist{font-size:.82rem;color:var(--sub);line-height:1.4;overflow-wrap:anywhere}
.album-tags{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin-top:7px}
.album-tags>span{font-size:.68rem;line-height:1.47;padding:2px 6px;border-radius:5px;border:1px solid var(--line);background:var(--surface);color:var(--sub)}
.album-tags .hluru,.work-heading .album-tags>span:first-child{color:var(--accent);background:var(--tint);border-color:transparent;font-weight:680}
.album-tags .ai{font-weight:650}.album-tags .origin{background:var(--soft);border-color:transparent}
#album-grid .zero{grid-column:1/-1}
.wall-heading{display:flex;align-items:baseline;gap:14px}.wall-heading #results{font-size:.84rem;color:var(--sub);white-space:nowrap}
.albums .index-controls{margin-bottom:20px}#wall-filters{display:none}
.work-heading{display:flex;align-items:center;gap:17px;margin:8px 0 22px}.work-heading>img{width:94px;height:94px;object-fit:cover;border-radius:10px;box-shadow:var(--shadow)}
.work-heading h1{font-size:clamp(1.7rem,3.1vw,3rem);line-height:1.12;letter-spacing:-.05em;margin:2px 0;overflow-wrap:anywhere}.work-heading p{color:var(--sub);font-size:.88rem;margin:0}
.version-switch{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:12px 15px;background:var(--surface);border:1px solid var(--line);border-radius:12px;margin:10px 0 15px}
.version-switch>div{display:flex;gap:9px;align-items:baseline}.version-switch strong{font-size:.93rem}.version-switch small{font-size:.76rem;color:var(--sub);white-space:nowrap}
.version-switch select{max-width:75%;min-height:44px;background:var(--soft);border:1px solid var(--line);border-radius:8px;padding:6px 12px;font-size:.86rem;font-weight:600;color:var(--ink)}
.version-switch .work-print{order:3;display:inline-flex;align-items:center;justify-content:center;gap:.45em;min-height:44px;color:var(--accent);text-decoration:underline;text-underline-offset:3px;font-size:.84rem;font-weight:600;white-space:nowrap}
.version-switch select{margin-left:auto;min-width:0}
.voicing-choices{display:inline-flex;align-items:center;padding:3px;border-radius:8px;background:var(--soft,#f0eff1);white-space:nowrap}
.voicing-choices a{display:grid;place-items:center;min-height:36px;padding:0 11px;border-radius:6px;color:var(--sub);font-size:.82rem;font-weight:580}
.voicing-choices a[aria-current]{background:var(--surface,#fff);color:var(--ink);box-shadow:0 1px 3px #26212b24}
@media(max-width:480px){.voicing-choices a{padding-inline:7px}.version-switch:has(.voicing-choices)>div small{display:none}}
.work-credit,.provider-pane,.book-loading{padding:16px 18px;margin:13px 0;border:1px solid var(--line);border-radius:12px;background:var(--surface);font-size:.86rem;line-height:1.6}
.work-credit summary{cursor:pointer;min-height:28px;align-content:center;font-weight:650}.work-credit a,.stream a{text-decoration:underline;text-underline-offset:3px}
.provider-pane h2{font-size:1.18rem}.provider-pane audio{max-width:540px;display:block}
.provider-images{display:grid;justify-items:center;gap:12px;background:var(--soft)}.provider-images figure{margin:0;width:min(100%,900px)}.provider-images img{max-width:100%;display:block;margin:auto}
.provider-pane summary{cursor:pointer;min-height:44px;align-content:center}.stream iframe,.provider-pdf iframe{display:block;width:min(100%,850px);aspect-ratio:16/9;border:0;background:#1a1a1d}
.companion-link{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:0 0 10px;margin-bottom:12px}.companion-link a{min-height:44px;display:inline-flex;align-items:center;gap:5px;color:var(--accent);font-weight:650}.companion-link .icon{width:14px}
.provider-pdf iframe{height:70vh}.provider-unavailable,.provider-scope{color:var(--sub);margin-bottom:8px}
@media(hover:hover){.album-link:hover h2{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}.album-link:hover .album-enter,.album-link:focus-visible .album-enter{opacity:1;transform:none}}
@media(prefers-reduced-motion:no-preference){.album-enter,.album-frame>img{transition:transform .22s ease,opacity .22s ease}.album-link:hover .album-frame>img{transform:scale(1.015)}}
@media(min-width:1600px){#album-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1050px){#album-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:780px){#album-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){
 #album-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px}.wall-head{display:block;margin-bottom:12px}.wall-head h1{font-size:2.5rem}.wall-head p{font-size:.8rem}.wall-head .index-search{width:100%;margin-top:13px}.album-frame{border-radius:8px}
 .album-count{bottom:6px;right:6px;font-size:.62rem}.album-card h2{font-size:1rem;margin-top:7px}.album-artist{font-size:.75rem}.album-tags{margin-top:5px;gap:3px}.album-tags>span{font-size:.64rem;padding:1px 4px}
 .version-switch{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 6px}.version-switch .work-print{grid-row:1;grid-column:2;font-size:.76rem}.version-switch select{grid-column:1/-1;width:100%;max-width:100%;margin-top:3px}.work-heading>img{width:72px;height:72px}.work-heading{gap:12px}.provider-pane,.work-credit{padding:12px}
 .albums .index-controls{margin-bottom:10px;gap:0}.wall-heading{gap:10px}#wall-filters{display:inline-flex;align-items:center;min-height:44px;padding:0 10px;font-size:.8rem;color:var(--accent)}
 .albums .index-options{display:none}.albums.filter-open .index-options{display:flex;width:100%}
}
@media print{.version-switch,.work-credit,.work-heading,.back,.mast,.footer{display:none!important}}
.companion-desk{margin:18px 0}.companion-desk>h2{font-size:1.1rem}.companion-desk>p,.personal-edition p{font-size:.83rem;color:var(--sub);margin:5px 0 10px}.file-picks{display:flex;gap:14px;flex-wrap:wrap}.file-picks label,.file-picks input{display:block;max-width:100%;margin:6px 0}.file-score iframe{border:0;width:100%;height:72vh}.file-score img{max-width:100%}.file-audio audio{width:min(100%,580px)}.file-clear{min-height:44px;text-decoration:underline}.companion-desk .note-desk{margin-top:8px}

.wall-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,315px) auto;align-items:center;gap:12px}
.wall-head .index-search input{width:100%}
.wall-density{display:inline-flex;align-items:center;padding:3px;border-radius:10px;background:var(--soft)}
.wall-density button{display:grid;place-items:center;width:40px;height:38px;border-radius:7px;color:var(--sub);cursor:pointer}
.wall-density button[aria-pressed=true]{color:var(--ink);background:var(--surface);box-shadow:0 1px 3px #1d182325}
.density-glyph{display:block;position:relative;width:16px;height:16px;color:inherit}
.density-glyph:before{content:"";position:absolute;inset:0 auto auto 0;background:currentColor;border-radius:1px}
.density-large:before{width:7px;height:7px;box-shadow:9px 0,0 9px,9px 9px}
.density-compact:before{width:4px;height:4px;box-shadow:6px 0,12px 0,0 6px,6px 6px,12px 6px,0 12px,6px 12px,12px 12px}
.collection-shelf{margin:0 0 clamp(15px,2.4vw,29px)}
.collection-shelf[hidden],.collection-nav[hidden],.collection-clear[hidden],#show-more[hidden]{display:none}
.collection-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 5px}
.collection-head h2{font-family:inherit;font-size:1.04rem;font-weight:650;line-height:1.4;margin:0}
.collection-nav{display:flex;gap:2px}
.collection-nav button{display:grid;place-items:center;min-width:38px;height:36px;border-radius:50%;font:23px/1 system-ui;color:var(--ink);cursor:pointer}
.collection-nav button:disabled{opacity:.3;cursor:default}
.collection-strip{display:flex;align-items:stretch;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;padding:3px 2px 5px}
.collection-strip::-webkit-scrollbar{display:none}
.collection-card{display:flex;position:relative;align-items:center;gap:13px;isolation:isolate;flex:0 0 clamp(200px,24%,290px);min-width:0;min-height:88px;overflow:hidden;padding:11px 12px 11px 16px;border-radius:12px;text-align:left;cursor:pointer;scroll-snap-align:start;
  background:linear-gradient(115deg,color-mix(in srgb,var(--collection-ink) 16%,var(--surface)),color-mix(in srgb,var(--collection-ink) 6%,var(--surface)));
  color:var(--ink);--collection-ink:#63715a}
.collection-card:nth-child(4n+2){--collection-ink:#716595}.collection-card:nth-child(4n+3){--collection-ink:#b87843}.collection-card:nth-child(4n){--collection-ink:#498086}
.collection-card[aria-pressed=true]{box-shadow:inset 0 0 0 2px var(--accent)}
.collection-card:focus-visible{outline-offset:-3px}
.collection-sleeves{flex:0 0 77px;height:63px;position:relative;display:block}
.collection-sleeves img{display:block;position:absolute;top:2px;width:59px;height:59px;aspect-ratio:1;object-fit:cover;border-radius:4px;outline:1px solid #0001;box-shadow:0 3px 8px #21122e24}
.collection-sleeves .sleeve-0{left:1px;z-index:3;transform:rotate(-6deg)}
.collection-sleeves .sleeve-1{left:11px;z-index:2;transform:rotate(3deg)}
.collection-sleeves .sleeve-2{left:19px;z-index:1;transform:rotate(9deg)}
.collection-copy{min-width:0;display:grid;gap:4px}
.collection-copy strong{font-family:inherit;font-weight:650;font-size:1.06rem;line-height:1.22;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.collection-copy small{color:var(--sub);font-size:.76rem;line-height:1.2}
.collection-clear{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:4px 12px;border-radius:20px;margin:0 0 10px;color:var(--accent);background:var(--tint);font-size:.85rem;font-weight:600;cursor:pointer}
.wall-foot{justify-content:space-between;padding-block:14px 26px;border-top:1px solid var(--line)}
.wall-foot #show-more{font-weight:620;border:1px solid var(--line);padding-inline:18px}
.albums[data-density=compact] #album-grid{grid-template-columns:repeat(7,minmax(0,1fr));column-gap:clamp(10px,1.3vw,20px);row-gap:18px}
.albums[data-density=compact] .album-card h2{font-size:clamp(.86rem,1.13vw,1.05rem)}
.albums[data-density=compact] .album-artist{font-size:.76rem}
.album-frame:after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(to top,#0003,transparent 38%);opacity:0}
.album-enter,.album-count{z-index:1}
@media(hover:hover){
  .collection-nav button:hover:not(:disabled){background:var(--soft)}
  .album-link:hover .album-frame:after{opacity:1}
}
@media(prefers-reduced-motion:no-preference){
  .collection-sleeves img{transition:transform .23s ease}
  .collection-card:is(:hover,:focus-visible) .sleeve-0{transform:translateX(-2px) rotate(-11deg)}
  .collection-card:is(:hover,:focus-visible) .sleeve-2{transform:translateX(3px) rotate(13deg)}
  .cover-arrived .album-frame{animation:sleeve-in .34s cubic-bezier(.2,.7,.23,1) var(--cover-delay,0ms) backwards}
  .album-frame:after{transition:opacity .2s ease}
  .wall-density button{transition:background-color .15s,color .15s}
  @keyframes sleeve-in{from{opacity:.7;transform:translateY(9px)}to{opacity:1;transform:none}}
}
@media(max-width:1050px){.albums[data-density=compact] #album-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:780px){.albums[data-density=compact] #album-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){
  .wall-head{grid-template-columns:minmax(0,1fr) auto;row-gap:10px}
  .wall-head .index-search{grid-column:1/-1;grid-row:2;min-width:0;margin:0}
  .wall-head .wall-density{grid-row:1;grid-column:2}
  .wall-density button{width:35px;height:36px}
  .collection-head h2{font-size:.93rem}.collection-nav button{height:33px;min-width:35px}
  .collection-strip{gap:8px}.collection-card{flex-basis:clamp(163px,64%,220px);min-height:76px;padding:8px 10px 8px 12px;gap:7px}
  .collection-sleeves{flex-basis:64px;height:52px}.collection-sleeves img{width:48px;height:48px}
  .collection-copy strong{font-size:.94rem}.collection-copy small{font-size:.69rem}
  .albums[data-density=compact] #album-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 8px}
  .albums[data-density=compact] .album-artist{font-size:.7rem}
  .albums[data-density=compact] .album-count{right:4px;bottom:4px;font-size:.59rem}
  .wall-foot{gap:6px}.wall-foot .export-index,.wall-foot #range-count{font-size:.73rem}
}
