/* Separate bilingual layout layer; no modifications to the original animation. */
.language-switch{display:inline-flex;align-items:center;justify-content:center;font-size:10px;letter-spacing:.08em;color:var(--muted);white-space:nowrap;min-height:40px;padding:0 4px}
.language-switch:hover,.language-switch:focus-visible{color:var(--fg)}
.language-switch:focus-visible{outline:1px solid currentColor;outline-offset:2px}
.entry-language-switch{position:absolute;top:12px;right:clamp(16px,3vw,34px);z-index:10}
html[lang="en"] .brand-link{font-size:12px}
html[lang="en"] .home .door h1{font-size:clamp(26px,3.2vw,52px);white-space:normal;overflow-wrap:anywhere}
html[lang="en"] .work h1{font-size:clamp(38px,7vw,96px);letter-spacing:-.035em;line-height:1;white-space:normal;overflow-wrap:anywhere}
html[lang="en"] .play-row .note{white-space:normal}
html[lang="en"] .play-row .title-line{letter-spacing:-.015em}
html[lang="en"] .language-note{font-size:12px;color:var(--muted);line-height:1.6;margin:10px 0 16px}
html[lang="en"] .title-line [hidden],html[lang="en"] .brand-link [hidden],html[lang="en"] .door [hidden]{display:none!important}
html[lang="en"] .global-nav{gap:clamp(5px,1vw,15px)}
@media(max-width:820px){.site-head .global-nav{min-width:0;max-width:100%;gap:8px}.language-switch{font-size:9px}.site-head{gap:8px}html[lang="en"] .global-nav a{font-size:9px;letter-spacing:.03em}}
@media(max-width:600px){.site-head.has-back{grid-template-columns:auto minmax(0,1fr) auto;gap:0 8px}.site-head.has-back .global-nav{width:max-content;max-width:100%;justify-self:end;justify-content:flex-start;overflow-x:auto}.site-head.has-back .global-nav a{flex-shrink:0}.site-head.has-back .header-language-switch{grid-column:3;grid-row:1;justify-self:end}.site-head:not(.has-back) .global-nav{overflow:auto}html[lang="en"] .home .door h1{font-size:42px}}

.header-language-switch{flex-shrink:0}.site-head .global-nav{margin-left:auto;min-width:0}html[lang="en"] .work-en{letter-spacing:.08em}html[lang="en"] .play-row .title-line{white-space:normal;overflow-wrap:anywhere}html[lang="en"] .play-row .en{display:none}

/* Review 2: Latin-script labels have a different measure from two hanzi.
   Keep the original Chinese timeline geometry, including mobile. */
html[lang="en"] .record-detail{grid-template-columns:110px minmax(0,1fr);gap:18px;align-items:baseline}
html[lang="en"] .record-type{white-space:normal;letter-spacing:.045em;overflow-wrap:anywhere}
html[lang="en"] .record-detail p,html[lang="en"] .record-item h4,html[lang="en"] .record-role{min-width:0;overflow-wrap:anywhere}
html[lang="en"] .record-item-top{column-gap:20px;row-gap:5px}
html[lang="en"] .poem-open{grid-template-columns:minmax(0,1fr) 18px}
html[lang="en"] .poem-title,html[lang="en"] .poem-reader-title,html[lang="en"] .track-title,html[lang="en"] .track-meta,html[lang="en"] .player-side h2.long-title{min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:normal}
html[lang="en"] .track-title{line-height:1.35}
html[lang="en"] .player-side h2.long-title{line-height:1.25}
html[lang="en"] .track-button>span:last-child{grid-column:3;grid-row:1;justify-self:end}
@media(max-width:959px){
  html[lang="en"] .track-button{grid-template-columns:minmax(0,1fr) 26px;gap:8px 14px}
  html[lang="en"] .track-button>span:last-child{grid-column:2;grid-row:1 / 3;align-self:center}
  html[lang="en"] .track-meta{grid-column:1;grid-row:2}
}
@media(max-width:900px){
  html[lang="en"] .record-detail{grid-template-columns:100px minmax(0,1fr);gap:14px}
}
@media(max-width:620px){
  html[lang="en"] .record-detail{grid-template-columns:minmax(0,1fr);gap:4px}
  html[lang="en"] .record-type{font-size:10px;letter-spacing:.06em}
  html[lang="en"] .record-item-top{align-items:flex-start}
  html[lang="en"] .record-role{white-space:normal}
  html[lang="en"] .record-year{grid-template-columns:60px minmax(0,1fr)}
}

/* English collaborator credits: equal treatment of every participant.
   Scoped to the archive; no change to Chinese layout, navigation or media. */
html[lang="en"] .work-collaborators .credit-name-list{display:flex;flex-wrap:wrap;gap:8px 18px;min-width:0;max-width:100%;align-items:start}
html[lang="en"] .work-collaborators .credit-name-pair{display:block;min-width:0;max-width:100%}
html[lang="en"] .work-collaborators .credit-name-roman{display:block;line-height:1.45;overflow-wrap:anywhere}
html[lang="en"] .work-collaborators .credit-name-han{display:block;margin-top:2px;color:var(--muted);font-size:.78em;font-weight:400;line-height:1.45;overflow-wrap:anywhere}
html[lang="en"] .work-collaborators .credit-name-note{margin:-8px 0 18px;color:var(--muted);font-size:11px;line-height:1.6}
html[lang="en"] .work-collaborators .collab-credit:has(.credit-name-list--multiple){align-items:start}
@media(max-width:600px){html[lang="en"] .work-collaborators .credit-name-list{gap:10px 12px}html[lang="en"] .work-collaborators .credit-name-note{font-size:10px}}
