:root {
  color-scheme: dark;
  --cream: #eee2ca;
  --muted: #c3b49b;
  --gold: #d1ae74;
  --ink: #130e0a;
  --serif: 'Iowan Old Style', 'Songti SC', 'Noto Serif CJK SC', 'SimSun', serif;
  --sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 40px; }
body { margin: 0; background: var(--ink); color: var(--cream); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.room-background { position: fixed; inset: 0; z-index: -2; background: #21160d url('./classical-room.webp') center center / cover no-repeat; }
.room-background::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #100a0440, #100a041c 36%, #100a0466 65%, #100a0477), linear-gradient(0deg, #130e0a 0%, transparent 32%, #130e0a28 75%, #130e0a80); }
.room-header { display: flex; align-items: center; gap: 40px; padding: 30px 4.5vw; position: relative; z-index: 5; }
.home-link { font-size: 13px; letter-spacing: 2px; color: var(--muted); white-space: nowrap; }
.home-link span { margin-left: 10px; }
.wordmark { display: flex; align-items: center; gap: 18px; font-family: var(--serif); font-size: 22px; letter-spacing: 5px; }
.wordmark span { font: 10px/1.6 var(--sans); letter-spacing: 2.5px; color: var(--muted); }
#room-nav { margin-left: auto; display: flex; gap: 30px; font-size: 13px; letter-spacing: 2px; }
#room-nav a { position: relative; padding: 10px 0; color: var(--muted); }
#room-nav a[aria-current=page] { color: var(--cream); }
#room-nav a[aria-current=page]::after { content: ''; position: absolute; bottom: 0; left: 0; right: 2px; height: 1px; background: var(--gold); }
.room-menu { display: none; }
.eyebrow { font-size: 10px; letter-spacing: 3px; font-weight: 400; line-height: 1.8; color: var(--gold); }
.listening-scene { height: max(900px, calc(100svh - 110px)); position: relative; padding: 55px 7vw 95px; overflow: hidden; }
.room-intro { margin-left: 35%; }
.room-intro h1 { font: 400 clamp(35px, 3.5vw, 55px)/1.4 var(--serif); letter-spacing: .2em; margin: 18px 0 36px; }
.room-intro h1 span { display: block; font-size: 17px; margin-top: 12px; letter-spacing: .16em; color: var(--muted); }
.listening-desk { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(340px, .9fr); gap: clamp(30px, 4vw, 70px); width: min(100%, 1500px); margin: 24px auto 0; align-items: start; }
.record-stage { position: relative; width: min(100%, 440px); justify-self: center; padding: 45px 0 60px; isolation: isolate; }
.vinyl { position: relative; width: min(100%, 350px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: repeating-radial-gradient(circle, #161410 0 1px, #2c2821 1.6px, #0f0e0c 2.7px, #171511 3.6px); box-shadow: 12px 26px 32px #0008, inset 0 0 0 2px #393126; }
.vinyl::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 20deg, transparent, #f9e9ce13 45deg, transparent 80deg, transparent 150deg, #f9e9ce12 225deg, transparent 260deg); pointer-events: none; }
.record-label { position: relative; display: grid; place-items: center; width: 32%; aspect-ratio: 1; background: #a4814f; border-radius: 50%; box-shadow: 0 0 0 8px #0b0a0877; overflow: hidden; }
.record-brand { text-align: center; color: #251a0e; font: 11px/1.7 Georgia, serif; letter-spacing: 2px; }
.record-label i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #1b1510; box-shadow: 0 0 0 2px #d2b88999; }
.record-cover { width: 100%; height: 100%; object-fit: cover; }
.sleeve { position: absolute; top: 30px; left: -14%; width: 78%; aspect-ratio: 1; transform: rotate(-8deg); background: #383025; border: 1px solid #9d805b55; box-shadow: 0 20px 35px #0007; z-index: -1; overflow: hidden; }
.sleeve-art { width: 100%; height: 100%; background: linear-gradient(140deg, #706346, #2c291c 60%, #1c1a13); background-size: cover; background-position: center; }
.sleeve-name { position: absolute; bottom: 20px; left: 20px; font: 10px/1.8 Georgia, serif; letter-spacing: 2px; text-shadow: 0 1px 4px #000; }
.record-caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font: 9px/1.8 var(--sans); letter-spacing: 3px; color: var(--muted); }
.record-story { position: relative; min-width: 0; height: 550px; display: flex; flex-direction: column; }
.record-story h2 { font: 400 clamp(23px, 2.2vw, 32px)/1.6 var(--serif); margin: 9px 0; letter-spacing: .05em; overflow-wrap: anywhere; max-height: 100px; overflow-y: auto; flex: none; }
.track-credits { font-size: 12px; line-height: 2; color: var(--muted); white-space: pre-line; min-height: 48px; max-height: 48px; overflow-y: auto; margin: 0; flex: none; }
.side-controls { display: flex; gap: 22px; margin: 14px 0 17px; flex: none; }
.side-controls button { background: none; border: 0; border-bottom: 1px solid transparent; color: var(--muted); padding: 7px 0; font-size: 11px; letter-spacing: 1px; }
.side-controls button[aria-pressed=true] { border-color: var(--gold); color: var(--cream); }
#track-information { font-size: 12px; color: var(--muted); line-height: 2; }
#track-information, #track-note { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: var(--gold) transparent; padding-right: 13px; }
#track-information dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 18px; }
#track-information dt { color: var(--gold); }
#track-information dd { margin: 0; overflow-wrap: anywhere; }
#track-note { font: 16px/1.95 var(--note-font); white-space: pre-wrap; overflow-wrap: anywhere; letter-spacing: .015em; }
.excerpt-section { height: 210px; background: var(--ink); border-top: 1px solid #ffffff1b; padding: 30px 7vw; display: grid; grid-template-columns: minmax(160px, 28%) 1fr; gap: 5vw; align-items: start; }
.excerpt-heading h2 { font: 400 26px/1.5 var(--serif); letter-spacing: .12em; margin: 8px 0 0; }
#track-excerpt { font: 17px/1.85 var(--note-font); white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; padding: 0 14px 0 26px; border-left: 1px solid var(--gold); color: var(--cream); max-height: 146px; overflow-y: auto; scrollbar-color: var(--gold) transparent; }
@media (min-width: 1100px) and (min-height: 920px) {
  .listening-room { display: grid; grid-template-columns: minmax(0, 1fr); }
  .listening-scene { grid-column: 1; grid-row: 1; }
  .excerpt-section { grid-column: 1; grid-row: 1; z-index: 1; justify-self: start; align-self: end; width: min(38vw, 520px); height: 128px; margin: 0 0 92px 7vw; padding: 0; display: block; background: none; border: 0; }
  .excerpt-heading h2 { font-size: 21px; margin-top: 2px; }
  #track-excerpt { margin-top: 9px; padding-left: 16px; font-size: 14px; line-height: 1.7; max-height: 68px; }
}
.text-link { display: inline-flex; align-items: center; align-self: flex-start; gap: 34px; border-bottom: 1px solid #b8986466; padding: 12px 0; margin-top: 12px; font-size: 12px; letter-spacing: 2px; flex: none; }
.text-link span { font-size: 18px; transition: transform .25s; }
.text-link:hover span { transform: translate(3px, -3px); }
.embedded-player { flex: none; width: min(100%, 480px); margin-top: 12px; }
.embedded-player iframe { display: block; width: 100%; height: 86px; border: 0; border-radius: 3px; background: #f6f5f2; }
.player-fallback { display: inline-block; margin-top: 4px; padding: 5px 0; color: var(--muted); font-size: 10px; letter-spacing: .05em; border-bottom: 1px solid #b8986466; }
.player-fallback:hover { color: var(--cream); }
.quiet-note { display: block; margin-top: 23px; color: var(--muted); font-size: 10px; letter-spacing: 1px; }
.shelf-anchor { position: absolute; left: 7vw; bottom: 40px; color: var(--muted); font-size: 11px; letter-spacing: 2px; display: flex; gap: 24px; align-items: center; }
.shelf-anchor span { font-size: 20px; }
.collection { padding: 75px 7vw 100px; background: linear-gradient(#00000022, #00000010 90px), var(--ink); border-top: 1px solid #ffffff1b; min-height: 300px; }
.collection-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; }
.collection-heading h2 { font: 400 30px/1.5 var(--serif); letter-spacing: 5px; margin: 12px 0 0; }
#track-count { font-size: 11px; color: var(--muted); letter-spacing: 1px; }
#collection-state { color: var(--muted); font-size: 13px; line-height: 2; }
#collection-state button { margin-left: 16px; background: transparent; color: var(--gold); border: 1px solid #c8a56f66; padding: 8px 15px; }
.records { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 35px; }
.record-card { display: flex; flex-direction: column; text-align: left; color: var(--cream); border: 0; background: none; padding: 0 0 18px; min-width: 0; border-bottom: 1px solid transparent; }
.record-card[aria-pressed=true] { border-color: var(--gold); }
.album-art { width: 100%; aspect-ratio: 1; background: linear-gradient(135deg, #6f624b, #29251c); position: relative; box-shadow: 0 12px 24px #0004; transition: transform .3s; overflow: hidden; }
.album-art::after { content: ''; position: absolute; inset: 0; box-shadow: inset 3px 0 5px #0007, inset 0 0 0 1px #d7c39a22; pointer-events: none; }
.album-art img { width: 100%; height: 100%; object-fit: cover; }
.album-art span { position: absolute; bottom: 18px; left: 18px; letter-spacing: 3px; font: 11px/1.8 Georgia, serif; text-shadow: 0 1px 4px #000; }
.record-card:hover .album-art { transform: translateY(-6px) rotate(-1deg); }
.record-card strong { font: 400 16px/1.6 var(--serif); margin-top: 20px; overflow-wrap: anywhere; }
.record-card small { display: block; color: var(--muted); line-height: 1.8; margin-top: 6px; font-size: 11px; }
#tag-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
#tag-filters button { border: 1px solid #b89b7033; background: none; color: var(--muted); padding: 8px 14px; font-size: 12px; }
#tag-filters button[aria-pressed=true] { color: var(--cream); border-color: var(--gold); }
.room-footer { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 30px 7vw; background: var(--ink); color: var(--muted); font-size: 10px; letter-spacing: 1px; border-top: 1px solid #ffffff1b; }
.entrance { padding: 70px 7vw 90px; }
.entrance-copy { margin-left: 45%; min-height: 410px; }
.entrance-copy h1 { font: 400 clamp(44px, 5vw, 70px)/1.45 var(--serif); letter-spacing: .15em; margin: 24px 0; }
.entrance-copy > p:not(.eyebrow) { font: 15px/2.1 var(--serif); color: var(--muted); }
.room-doors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 60px; }
.door { padding: 30px 24px; min-height: 250px; display: flex; flex-direction: column; position: relative; border: 1px solid #f1d8a82b; transition: transform .3s, border-color .3s; overflow: hidden; background: #21170fdd; }
.door:hover { transform: translateY(-6px); border-color: var(--gold); }
.door > span { font-size: 9px; letter-spacing: 2px; opacity: .8; }
.door h2 { font: 400 26px/1.6 var(--serif); margin: 55px 0 5px; }
.door p { font-size: 11px; letter-spacing: 1px; margin: 0; color: #e5d9c2; }
.door b { position: absolute; right: 20px; bottom: 24px; font-weight: 400; }
.door-classical { background: linear-gradient(#21160c77, #21160ce6), url('./classical-room.webp') 36% center / cover; }
.door-chinese { background: linear-gradient(125deg, #805d40, #382925 60%, #241b19); }
.door-western { background: repeating-linear-gradient(90deg, transparent 0 30px, #7295aa0c 31px 33px), linear-gradient(135deg, #294554, #111b24); }
.door-japanese { background: radial-gradient(ellipse at 100% 0, #a589a64d, transparent 65%), linear-gradient(140deg, #3b304e, #191c30); }
body[data-room=classical] { --note-font: Georgia, 'Noto Sans SC', 'Microsoft YaHei', sans-serif; }
body[data-room=chinese] { --ink: #211816; --gold: #e0b696; --note-font: 'Microsoft YaHei', 'PingFang SC', sans-serif; }
body[data-room=western] { --ink: #101a21; --gold: #a5c4d4; --note-font: 'Palatino Linotype', Georgia, 'Noto Sans SC', 'Microsoft YaHei', sans-serif; }
body[data-room=japanese] { --ink: #1b192b; --gold: #cab4da; --note-font: 'Yu Gothic', Meiryo, 'Noto Sans SC', 'Microsoft YaHei', sans-serif; }
body[data-room=chinese] .room-background { background: radial-gradient(ellipse at 5% 20%, #ad704843, transparent 60%), linear-gradient(110deg, #5d3a2c, #211816 65%); }
body[data-room=western] .room-background { background: repeating-linear-gradient(90deg, transparent 0 140px, #84a1b210 141px 144px), radial-gradient(ellipse at 0 70%, #426a8055, transparent 60%), #101a21; }
body[data-room=japanese] .room-background { background: radial-gradient(ellipse at 10% 20%, #9c77ac55, transparent 50%), linear-gradient(135deg, #30314a, #1b192b); }
@media (max-width: 1100px) { .wordmark span { display: none; } .room-intro { margin-left: 24%; } .room-doors { grid-template-columns: repeat(2, 1fr); } .entrance-copy { margin-left: 36%; } }
@media (max-width: 760px) {
  .room-header { padding: 22px 6vw; gap: 24px; flex-wrap: wrap; }
  .home-link span { display: none; }
  .wordmark { font-size: 20px; letter-spacing: 4px; }
  .room-menu { display: block; margin-left: auto; color: var(--cream); border: 0; background: none; padding: 12px 0; font-size: 12px; }
  #room-nav { display: none; width: 100%; margin: 0; justify-content: space-between; padding: 10px 0; gap: 12px; }
  #room-nav.is-open { display: flex; }
  .room-background { background-position: 38% center; }
  .room-background::after { background: linear-gradient(0deg, #130e0af5, #130e0a88 65%, #130e0a55); }
  .listening-scene { height: max(1150px, calc(100svh - 75px)); padding: 40px 8vw 85px; }
  .room-intro { margin-left: 0; text-align: center; }
  .room-intro h1 { font-size: 38px; margin-bottom: 15px; }
  .room-intro h1 span { font-size: 14px; }
  .listening-desk { width: 100%; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
  .record-stage { width: min(72%, 290px); margin: 0 auto; padding-bottom: 44px; }
  .record-story { text-align: center; height: 500px; }
  .record-story h2 { font-size: 25px; max-height: 82px; }
  .track-credits { min-height: 42px; max-height: 42px; }
  .side-controls { justify-content: center; }
  #track-information, #track-note { text-align: left; }
  .record-story .text-link { align-self: center; }
  .embedded-player { margin: 10px auto 0; }
  .excerpt-section { height: 240px; padding: 27px 8vw; grid-template-columns: 1fr; gap: 10px; }
  .excerpt-heading h2 { font-size: 22px; margin: 2px 0 0; }
  #track-excerpt { font-size: 15px; max-height: 130px; padding-left: 18px; }
  .shelf-anchor { left: 0; right: 0; justify-content: center; bottom: 25px; }
  .collection { padding: 45px 7vw 65px; }
  .collection-heading { align-items: center; }
  .collection-heading h2 { font-size: 26px; }
  .records { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .record-card strong { font-size: 15px; margin-top: 14px; }
  .entrance { padding: 45px 7vw 65px; }
  .entrance-copy { margin-left: 0; min-height: 340px; text-align: center; }
  .entrance-copy h1 { font-size: 45px; }
  .room-doors { gap: 14px; margin-top: 30px; }
  .door { padding: 23px 18px; min-height: 220px; }
  .door h2 { font-size: 23px; margin-top: 50px; }
  .door p { font-size: 10px; }
  .door > span { font-size: 8px; }
  .room-footer { font-size: 9px; padding: 25px 7vw; }
}
@media (max-width: 360px) { .door h2 { font-size: 20px; } .door p { letter-spacing: 0; } .room-header { gap: 14px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
