/* Scoped Serenity-derived sleeve; the original study remains untouched. */
.melodion-bay{grid-column:1/-1;max-width:900px;width:100%;justify-self:center}
.melodion-intro{color:var(--ink-soft);margin:-1rem 0 1.7rem;font-size:.95rem}
.sleeve{--s-ink:#edece3;--s-muted:#b3bcb1;--s-dim:#96a393;--s-line:#344034;--s-gold:#d8b27a;background:#171e1b;color:var(--s-ink);border:1px solid var(--s-line);border-radius:5px;padding:0;width:min(1100px,calc(100vw - 56px));max-width:none;max-height:calc(100dvh - 48px);margin:auto;box-shadow:0 30px 130px #000b;font:300 14px/1.6 'Outfit',sans-serif;overscroll-behavior:contain;scrollbar-color:var(--s-line) transparent}
.sleeve::backdrop{background:#070c09db;backdrop-filter:blur(7px)}
body.sleeve-open{overflow:hidden}
.sleeve button,.sleeve input,.sleeve select{font:inherit;color:inherit}
.sleeve button{cursor:pointer;border:0;background:transparent}
.sleeve button:disabled{opacity:.28;cursor:default}
.sleeve :is(button,input,select,a):focus-visible{outline:2px solid var(--s-gold);outline-offset:5px}
.sleeve a{color:var(--s-gold);text-decoration:none}
.sleeve a:hover{text-decoration:underline}
.sleeve-header{position:sticky;top:0;z-index:2;background:#171e1b;display:flex;justify-content:space-between;align-items:center;gap:24px;padding:25px 30px 23px;border-bottom:1px solid var(--s-line)}
.sleeve-kicker{color:var(--s-dim);font-size:10px;letter-spacing:.18em;font-weight:400;text-transform:uppercase}
#sleeveSubtitle{color:var(--s-ink);font:300 25px/1.25 'Cormorant Garamond',Georgia,serif;margin-top:7px}
.sleeve-close{width:44px;height:44px;flex-shrink:0;font-size:30px!important;line-height:1;color:var(--s-muted)!important}
.sleeve-body{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:52px;padding:24px 42px 30px}
.sleeve-stage{min-width:0}
.sleeve-record-art{display:grid;place-items:center;height:246px;position:relative;background:radial-gradient(ellipse,#a88b5114,transparent 68%)}
.sleeve-record{display:grid;place-items:center;width:216px;height:216px;position:relative;border:1px solid #59604b44;border-radius:50%;background:conic-gradient(from 40deg,#0d120f,#1d241d 18%,#0d120f 32%,#111712 61%,#222920 79%,#0d120f);box-shadow:0 16px 36px #0005;animation:sleeve-turn 13s linear infinite;animation-play-state:paused}
.sleeve.is-playing .sleeve-record{animation-play-state:running}
.sleeve-rings{position:absolute;inset:6px;border-radius:50%;background:repeating-radial-gradient(circle,#47514230 0 1px,transparent 1px 3px)}
.sleeve-label{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:72px;height:72px;border-radius:50%;background:#bba271;color:#20291e;box-shadow:inset 0 0 12px #4a482a24}
.sleeve-label span{font:italic 32px/1 'Cormorant Garamond',Georgia,serif}
.sleeve-label small{font-size:6px;letter-spacing:.2em;margin-top:7px}
.sleeve-record:after{content:'';position:absolute;left:50%;top:50%;width:4px;height:4px;border-radius:50%;background:#20291e;transform:translate(-50%,-50%)}
.sleeve-spark{position:absolute;top:22px;right:6%;color:var(--s-gold);opacity:.7;font:25px Georgia,serif}
#sleeveTitle{font:300 clamp(34px,3.5vw,47px)/1.12 'Cormorant Garamond',Georgia,serif;letter-spacing:-.025em;margin:8px 0 17px;overflow-wrap:anywhere}
.sleeve-transport{display:flex;align-items:center;gap:18px}
.sleeve-transport button{width:42px;height:42px;color:var(--s-gold);font-size:21px}
.sleeve-transport .sleeve-play{border:1px solid var(--s-gold);border-radius:50%;width:50px;height:50px;font-size:17px}
.sleeve-transport [data-sleeve=count]{margin-left:auto;color:var(--s-dim);font-size:11px;font-variant-numeric:tabular-nums;letter-spacing:.12em}
.sleeve-spectrum{display:block;width:100%;height:44px;margin-top:13px}
.sleeve-seek{width:100%;height:24px;display:block;accent-color:var(--s-gold);cursor:pointer;margin:0}
.sleeve-clock{display:flex;justify-content:space-between;color:var(--s-dim);font-size:11px;font-variant-numeric:tabular-nums}
.sleeve-volume{display:flex;align-items:center;gap:14px;font-size:11px;color:var(--s-muted);margin-top:15px}
.sleeve-volume input{width:90px;height:24px;accent-color:var(--s-gold);cursor:pointer}
.sleeve-status{color:var(--s-gold);font-size:12px;min-height:0;margin-top:5px}
.sleeve-materials{border-left:1px solid var(--s-line);padding-left:28px;min-width:0;padding-top:12px}
.sleeve-materials[hidden]{display:none}
.sleeve-thumbnails{display:flex;gap:10px;margin:13px 0 20px}
.sleeve-thumbnail{display:grid;grid-template-rows:58px auto;gap:7px;min-width:65px;padding:5px!important;border:1px solid transparent!important;border-radius:3px;color:var(--s-muted)!important;text-align:center;font-size:11px!important}
.sleeve-thumbnail[aria-pressed=true]{border-color:var(--s-gold)!important;color:var(--s-ink)!important}
.sleeve-thumbnail img{width:65px;height:58px;object-fit:cover;border-radius:1px}
.sleeve-thumb-letter{display:grid;place-items:center;width:65px;height:58px;border:1px solid var(--s-line);font:28px/1 'Cormorant Garamond',Georgia,serif;color:var(--s-gold)}
.sleeve-content{max-height:min(440px,53dvh);overflow:auto;scrollbar-width:thin;scrollbar-color:var(--s-line) transparent;padding:0 7px 10px 0;overscroll-behavior:contain}
.sleeve-artwork{width:100%;max-height:350px;object-fit:contain;display:block;border-radius:2px;background:#111713}
.sleeve .sleeve-material-link{display:flex;align-items:center;box-sizing:border-box;width:100%;min-height:56px;margin-top:12px;padding:15px 18px;border:1px solid #d8b27a80;border-radius:4px;background:#d8b27a0d;color:var(--s-ink);font-size:18px;font-weight:400;line-height:1.5;white-space:normal;text-wrap:balance;overflow-wrap:anywhere;text-decoration:none;transition:background-color .18s,border-color .18s}
.sleeve .sleeve-material-link:hover{background:#d8b27a1f;border-color:var(--s-gold);text-decoration:none}
.sleeve .sleeve-material-link:focus-visible{outline:2px solid var(--s-gold);outline-offset:-5px;background:#d8b27a1f;border-color:var(--s-gold)}
.sleeve-language{display:flex;flex-direction:column;gap:6px;color:var(--s-dim);font-size:11px}
.sleeve-language select{width:100%;padding:9px;border:1px solid var(--s-line);border-radius:2px;background:#111713;font-size:13px;color:var(--s-ink)}
.sleeve-lyric-note,.sleeve-credits{font-size:11px;color:var(--s-dim);margin:12px 0;line-height:1.6}
.sleeve-verses h3{color:var(--s-gold);font-size:10px;font-weight:400;letter-spacing:.1em;margin:25px 0 10px}
.sleeve-verses p{white-space:pre-wrap;color:var(--s-ink);font:400 19px/1.6 'Cormorant Garamond',Georgia,serif}
.sleeve-verses:lang(zh-CN) p{font:300 15px/1.95 'Outfit',sans-serif}
.sleeve-story-title{font:300 34px/1.2 'Cormorant Garamond',Georgia,serif;margin:20px 0}
@keyframes sleeve-turn{to{transform:rotate(360deg)}}
@media(max-width:760px){.sleeve{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.sleeve-header{padding:18px 18px 16px;gap:12px}.sleeve-kicker{font-size:9px;letter-spacing:.12em}#sleeveSubtitle{font-size:22px}.sleeve-body{grid-template-columns:1fr;gap:22px;padding:15px 22px 26px}.sleeve-record-art{height:198px}.sleeve-record{width:178px;height:178px}.sleeve-label{width:59px;height:59px}.sleeve-label span{font-size:27px}#sleeveTitle{font-size:37px}.sleeve-materials{border-left:0;border-top:1px solid var(--s-line);padding:20px 0 0}.sleeve-content{max-height:480px}.sleeve-artwork{max-height:none}.sleeve-thumbnails{margin-bottom:16px}.sleeve-volume{margin-top:8px}.sleeve-verses p{font-size:21px}}
@media(prefers-reduced-motion:reduce){.sleeve *{animation:none!important;transition:none!important}html{scroll-behavior:auto}}

/* Localized in-sleeve notes; material choices wrap at narrow widths. */
.sleeve-thumbnails{flex-wrap:wrap}
.sleeve-info p{font-size:16px;line-height:1.8;margin:0 0 1em}

/* Silent song-linked preview; manual start only for preferences/policy. */
.sleeve .sleeve-video-start{display:block;min-height:48px;width:100%;padding:12px 16px;margin-top:10px;border:1px solid var(--s-gold);border-radius:4px;background:#d8b27a12;color:var(--s-ink);font-size:16px;text-align:center}
.sleeve .sleeve-video-start[hidden]{display:none}
.sleeve-video-status{font-size:13px;line-height:1.6;color:var(--s-muted);margin-top:8px}
.sleeve-video-status:empty{display:none}
.sleeve-video-preview{height:auto;aspect-ratio:1;object-fit:contain}

/* Keep the accepted Infobox-sized frame stable across material changes. */
.sleeve[open]{display:flex;flex-direction:column;height:min(697px,calc(100dvh - 48px));overflow:hidden}
.sleeve-header{flex:0 0 auto}
.sleeve-body{flex:1 1 0;min-height:0;grid-template-rows:minmax(0,1fr);overflow:hidden}
.sleeve-stage{min-height:0;overflow:auto}
.sleeve-materials{display:flex;flex-direction:column;min-height:0}
.sleeve-materials>.sleeve-kicker,.sleeve-thumbnails{flex:0 0 auto}
.sleeve-content{flex:1 1 0;min-height:0;max-height:none}
.sleeve-content:has(>.sleeve-artwork){display:flex;flex-direction:column}
.sleeve-content>.sleeve-artwork{flex:1 1 0;min-height:0;height:0;max-height:none;aspect-ratio:auto;object-fit:contain}
.sleeve-content>.sleeve-material-link,.sleeve-content>.sleeve-video-start,.sleeve-content>.sleeve-video-status{flex:0 0 auto}
@media(max-width:760px){
 .sleeve[open]{display:block;height:calc(100dvh - 20px);overflow-x:hidden;overflow-y:auto;touch-action:pan-y}
 .sleeve-body{display:block;overflow:visible}
 .sleeve-stage{overflow:visible}
 .sleeve-materials{margin-top:22px}
 .sleeve .sleeve-content{display:block;flex:none;height:auto;max-height:none;overflow:visible}
 .sleeve-content>.sleeve-artwork{height:auto;max-height:none;flex:none}
}

/* Sharing stays within the existing material pane and its scroll ownership. */
.sleeve-thumb-letter svg{display:block}
.sleeve .sleeve-share{min-width:0;color:var(--s-ink)}
.sleeve-share-title{font:300 29px/1.2 'Cormorant Garamond',Georgia,serif;margin:0 0 10px}
.sleeve-share-note{font-size:12px;line-height:1.65;color:var(--s-muted);margin:10px 0 16px;overflow-wrap:anywhere}
.sleeve-share-label{font-size:11px;font-weight:400;color:var(--s-gold);letter-spacing:.07em;margin:18px 0 10px}
.sleeve-share-field{display:flex;flex-direction:column;gap:7px;color:var(--s-muted);font-size:11px;margin:16px 0 9px}
.sleeve .sleeve-share-field :is(input,textarea){box-sizing:border-box;width:100%;min-width:0;border:1px solid var(--s-line);border-radius:3px;background:#111713;color:var(--s-ink);font:300 13px/1.6 'Outfit',sans-serif;padding:11px 12px;resize:vertical}
.sleeve-share-field input{min-height:44px}
.sleeve-share-field textarea{min-height:132px}
.sleeve :is(textarea,.sleeve-share-field input):focus-visible{outline:2px solid var(--s-gold);outline-offset:-3px}
.sleeve .sleeve-share-action{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 12px;border:1px solid var(--s-line);border-radius:3px;background:#d8b27a08;color:var(--s-ink);font:300 12px/1.45 'Outfit',sans-serif;text-align:center;text-decoration:none;overflow-wrap:anywhere}
.sleeve .sleeve-share-action:hover{background:#d8b27a18;border-color:#d8b27a80;text-decoration:none}
.sleeve .sleeve-share-action:focus-visible{outline-offset:-4px}
.sleeve .sleeve-share-action[hidden]{display:none}
.sleeve-share-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.sleeve-share-actions:empty{display:none}
.sleeve-share-channels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.sleeve-share-status{color:var(--s-gold);font-size:12px;line-height:1.6;margin:12px 0;white-space:normal}
.sleeve-share-status:empty{display:none}
.sleeve-share-card{margin:20px 0 8px}
.sleeve-share-card img{display:block;width:100%;height:auto;border:1px solid var(--s-line);border-radius:2px}
.sleeve-share-card figcaption{margin-top:7px;margin-bottom:8px}
.track-share-fallback{grid-column:1/-1;display:grid;gap:8px;min-width:0;padding:9px 0;color:var(--amber);font-size:12px;white-space:normal}
.track-share-fallback input{box-sizing:border-box;width:100%;min-width:0;padding:10px;border:1px solid currentColor;background:#171e1b;color:#edece3;font:inherit}
@media(min-width:761px){.sleeve-thumbnails{gap:6px}}
@media(max-width:760px){.sleeve-share-channels{grid-template-columns:repeat(2,minmax(0,1fr))}.sleeve .sleeve-share-action{min-height:46px}.sleeve-share-note{font-size:13px}.sleeve-share-field{font-size:12px}.sleeve .sleeve-share-field :is(input,textarea){font-size:16px}.sleeve-share-actions>*{flex:1 1 auto}}
