:root {
  --paper: #F5F3EE;
  --ink: #141414;
  --gray: #5E5A55;
  --muted: #9E998F;
  --body: #2A2622;
  --line: #DDD9D0;
  --red: #E1261C;
  --yellow: #F5CF1B;
  --display: "Dela Gothic One", system-ui, sans-serif;
  --gothic: "Zen Kaku Gothic New", system-ui, sans-serif;
  --mincho: "Zen Old Mincho", Georgia, serif;
  --num: "Archivo", system-ui, sans-serif;
  --script: "Galada", cursive;
  --bn-display: "Baloo Da 2", system-ui, sans-serif;
  --bn-label: "Mina", system-ui, sans-serif;
  --bn-body: "Tiro Bangla", Georgia, serif;
  --pad: clamp(18px, 3.9vw, 56px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h, 76px); }
body { background: var(--paper); color: var(--ink); font-family: var(--gothic); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol { list-style: none; }
:focus-visible { outline: 2.5px solid var(--red); outline-offset: 3px; }

.label { font-family: var(--gothic); font-weight: 700; font-size: 12px; line-height: 16px; letter-spacing: .12em; }
.label.small { font-size: 11px; line-height: 14px; }
.label.tiny { font-size: 10px; line-height: 12px; }
.muted { color: var(--gray); }
.bn-label { font-family: var(--bn-label); font-weight: 700; font-size: 14px; line-height: 18px; color: var(--red); letter-spacing: 0; }
.bn-display { font-family: var(--bn-display); font-weight: 800; font-size: 36px; line-height: 44px; color: var(--red); }
.bn-script { font-family: var(--script); }
.serif { font-family: var(--mincho); font-weight: 500; font-size: 16px; line-height: 28px; color: var(--body); }
.display { font-family: var(--display); font-weight: 400; }
.rec { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
body.is-playing .rec { animation: blink 1.1s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .25; } }

.rule { display: flex; align-items: center; gap: 18px; }
.rule i { flex-grow: 1; height: 1.5px; background: var(--ink); }
.rule .label { font-size: 13px; }

/* the YouTube player: present but invisible, just below the screen (same as the music room) */
.yt-underlay { position: fixed; left: 50%; bottom: 0; z-index: -1; width: 240px; height: 240px; opacity: .001; pointer-events: none; transform: translate(-50%, 100%); }
.yt-underlay iframe { width: 240px; height: 240px; border: 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px var(--pad); background: var(--paper); border-bottom: 1.5px solid var(--ink);
}
.logo { display: flex; align-items: baseline; gap: 10px; }
.logo-en { font-family: var(--display); font-size: 25px; line-height: 30px; }
.logo-bn { font-family: var(--script); font-size: 22px; line-height: 26px; color: var(--red); transition: transform .4s var(--ease); }
.logo:hover .logo-bn { transform: rotate(-6deg) translateY(-2px); }
.links { display: flex; gap: 44px; }
.links a { font-family: var(--gothic); font-weight: 700; font-size: 13px; line-height: 16px; letter-spacing: .12em; padding-bottom: 3px; border-bottom: 2px solid transparent; transition: border-color .3s; }
.links a:hover, .links a.is-active { border-color: var(--red); }
.meta { font-family: var(--num); font-style: italic; font-weight: 800; font-size: 16px; line-height: 20px; }

/* ---------- Player ---------- */
.player { display: flex; gap: 64px; padding: 30px var(--pad) 36px; }
.deck-col { display: flex; flex-direction: column; gap: 20px; flex: 0 1 844px; min-width: 0; }
.now-label { display: flex; align-items: center; gap: 12px; }
.now-row { display: flex; align-items: flex-end; gap: 48px; }
.now-title { flex: 1 1 0; min-width: 0; }
.syll { padding: 40px 0 22px 14px; font-weight: 500; font-size: 13px; line-height: 16px; letter-spacing: .24em; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* fixed-height box: a shorter or longer song title never changes the layout (so the deck never shifts) */
.bn-title { display: flex; align-items: flex-end; height: 150px; font-family: var(--script); font-size: 168px; line-height: 150px; letter-spacing: -.03em; white-space: nowrap; transform-origin: left bottom; }
.now-meta { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; padding-bottom: 40px; }
.track-no { color: var(--red); }
.band { font-weight: 900; font-size: 30px; line-height: 34px; }
.mean { font-family: var(--mincho); font-weight: 500; font-size: 18px; line-height: 22px; color: var(--gray); }
.lyrics-btn {
  display: flex; align-items: center; gap: 10px; align-self: flex-start; margin-top: 10px; padding: 9px 14px;
  border: 1.5px solid var(--ink); transition: background .2s, color .2s;
}
.lyrics-btn svg { fill: currentColor; }
.lyrics-btn:hover { background: var(--ink); color: var(--paper); }
.lyrics-btn:hover .bn-label { color: var(--yellow); }

.deck { position: relative; width: 100%; aspect-ratio: 844 / 420; filter: drop-shadow(18px 26px 24px #14141440); }
.deck-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.svg-label { font-family: var(--gothic); font-weight: 700; }
.svg-heavy { font-family: var(--gothic); font-weight: 900; }
.svg-count { font-family: var(--num); font-style: italic; font-weight: 800; }
#cassette { transition: transform .35s var(--ease), opacity .35s; }
#cassette.out { transform: translateY(-26px); opacity: 0; }
.kb { fill: #BDBAB3; transition: fill .08s; }
.kt { fill: #F3F1EC; transition: transform .08s, fill .08s; }
.ki { fill: var(--ink); transition: transform .08s, fill .08s; }
.key.is-down .kb { fill: #8C120C; }
.key.is-down .kt { fill: var(--ink); transform: translateY(10px); }
.key.is-down .ki { fill: var(--yellow); transform: translateY(10px); }
#autoKnob { transition: transform .25s var(--ease); }
.auto-off #autoKnob { transform: translateX(-26px); }
.auto-off #autoTrack { fill: #6E0E09; }
#led { transition: opacity .2s; }
.hit {
  position: absolute; left: calc(var(--x) / 844 * 100%); top: calc(var(--y) / 420 * 100%);
  width: calc(var(--w) / 844 * 100%); height: calc(var(--h) / 420 * 100%);
  border-radius: 8px; touch-action: none;
}
.hit.vol { cursor: ns-resize; }

.dial { width: calc(790 / 844 * 100%); padding-top: 4px; cursor: pointer; touch-action: none; user-select: none; }
.dial svg { display: block; width: 100%; height: auto; overflow: visible; }
.dial-t { font-family: var(--gothic); font-weight: 700; font-size: 12px; fill: var(--ink); }
.dial-total { font-family: var(--num); font-style: italic; font-weight: 800; font-size: 12px; fill: var(--gray); }
.dial:hover #dialNeedle path:first-child, .dial.is-drag #dialNeedle path:first-child { stroke-width: 3.5; }

.skip { display: flex; justify-content: space-between; width: calc(790 / 844 * 100%); margin-top: -6px; }
.skip button { display: flex; align-items: center; gap: 8px; padding: 6px 0; transition: color .2s, gap .3s var(--ease); }
.skip svg { fill: currentColor; }
.skip button:hover { color: var(--red); gap: 12px; }

/* ---------- Tape shelf ---------- */
.shelf-col { display: flex; flex-direction: column; gap: 24px; flex: 0 0 420px; padding-top: 4px; }
.shelf-intro { display: flex; flex-direction: column; gap: 8px; }
.shelf { display: flex; flex-direction: column; gap: 10px; }
.tape {
  --bg: #fff; --fg: var(--ink); --stripe: #FFFFFF38; --sub: var(--fg);
  display: flex; align-items: center; width: 100%; height: 72px; padding-right: 18px; text-align: left;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd, transparent);
  transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s;
}
.tape:hover { transform: translateX(-8px); }
.tape-stripe { align-self: stretch; width: 8px; flex-shrink: 0; background: var(--stripe); }
.tape-no { flex-shrink: 0; width: 54px; text-align: center; font-weight: 900; font-size: 15px; line-height: 18px; letter-spacing: .02em; }
.tape-name { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; }
.tape-name b { font-weight: 900; font-size: 21px; line-height: 24px; }
.tape-sub { display: flex; align-items: baseline; gap: 6px; font-weight: 500; font-size: 13px; line-height: 18px; color: var(--sub); opacity: var(--sub-o, 1); }
.tape-sub .bn { font-family: var(--bn-label); font-weight: 700; font-size: 14px; line-height: 20px; }
.tape-side { flex-shrink: 0; width: 56px; text-align: right; font-family: var(--num); font-style: italic; font-weight: 800; font-size: 17px; line-height: 22px; }
.tape-in { display: none; align-items: center; gap: 7px; flex-shrink: 0; color: var(--red); font-weight: 700; font-size: 11px; line-height: 14px; letter-spacing: .12em; }
.tape-in svg { fill: var(--red); }
.tape.is-in { background: transparent; color: var(--muted); --sub: var(--muted); --sub-o: 1; border: 1.5px dashed var(--ink); transform: none; }
.tape.is-in .tape-stripe { background: var(--red); }
.tape.is-in .tape-side { display: none; }
.tape.is-in .tape-in { display: flex; }
.tape.is-blocked .tape-side::after { content: " ↗"; }
.tape.is-blocked { opacity: .62; }

.legend { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1.5px solid var(--ink); font-size: 13px; line-height: 16px; }
.legend p { display: flex; }
.legend b { width: 72px; flex-shrink: 0; font-weight: 700; }
.legend span { font-weight: 500; color: var(--body); }
.foot { font-weight: 500; font-size: 12px; line-height: 16px; color: var(--gray); }
.foot .bn-label { font-size: 12px; color: var(--gray); }
.status { margin-top: -12px; font-weight: 700; font-size: 12px; line-height: 16px; color: var(--ink); min-height: 16px; }
.status a { color: var(--red); border-bottom: 1.5px solid; }

/* ---------- Liner notes ---------- */
.liner { display: flex; flex-direction: column; gap: 48px; padding: 96px var(--pad) 110px; border-top: 1.5px solid var(--ink); }
.liner-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.liner-title { font-size: clamp(56px, 8.2vw, 118px); line-height: 1.02; letter-spacing: -.02em; }
.liner-intro { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; width: 420px; padding-bottom: 8px; }
.jcard { display: flex; min-height: 460px; background: #fff; border: 1.5px solid var(--ink); transition: transform .5s var(--ease), box-shadow .5s; }
.jcard:hover { transform: rotate(-.4deg) translateY(-4px); box-shadow: 10px 14px 0 #1414141A; }
.jfront { display: flex; flex-direction: column; justify-content: space-between; flex-shrink: 0; width: 400px; padding: 34px 34px 30px; }
.jfront-bn { font-family: var(--script); font-size: 84px; line-height: 104px; }
.jfront-en { margin: 6px 0 6px; font-weight: 900; font-size: 15px; line-height: 18px; letter-spacing: .3em; }
.jstripes { display: flex; flex-direction: column; gap: 5px; }
.jstripes .label { padding-bottom: 8px; }
.jstripes i { height: 14px; background: var(--c); border: 1px solid transparent; transform-origin: left; transition: transform .5s var(--ease); }
.jcard:hover .jstripes i { transform: scaleX(1.04); }
.jspine { flex-shrink: 0; width: 64px; display: flex; justify-content: center; padding-top: 34px; border-inline: 1.5px dashed var(--ink); }
.jspine span { writing-mode: vertical-rl; font-weight: 900; font-size: 14px; letter-spacing: 3px; }
.jinside { display: flex; flex-direction: column; justify-content: space-between; flex-grow: 1; min-width: 0; padding: 30px 40px; gap: 20px; }
.jrow { display: grid; grid-template-columns: 64px minmax(0, 280px) minmax(0, 1fr) auto; align-items: center; gap: 0 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.jhead { padding: 0 0 10px; border-bottom: 1.5px solid var(--ink); color: var(--gray); }
.jhead span:last-child { text-align: right; }
#jrows li:last-child .jrow { border-bottom: 0; }
.jcode { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 14px; line-height: 18px; letter-spacing: .02em; }
.jcode i { width: 12px; height: 12px; background: var(--c); border: 1px solid var(--bd, transparent); }
.jtitle { text-align: left; }
.jtitle b { display: block; font-weight: 900; font-size: 19px; line-height: 23px; transition: color .2s; }
.jtitle:hover b { color: var(--red); }
.jtitle span { font-family: var(--bn-label); font-weight: 700; font-size: 14px; line-height: 20px; color: var(--gray); }
.jmean { font-family: var(--mincho); font-weight: 500; font-size: 16px; line-height: 24px; }
.jread { color: var(--red); text-align: right; white-space: nowrap; }
.jread:hover { text-decoration: underline; text-underline-offset: 3px; }
.jsign { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.jsign .bn-script { font-size: 30px; line-height: 40px; color: var(--red); }
.jsign .serif { font-size: 15px; line-height: 18px; }

/* ---------- About ---------- */
.about { display: flex; flex-direction: column; gap: 56px; padding: 88px var(--pad) 36px; background: var(--yellow); overflow: clip; }
.about .rule .bn-label { font-size: 15px; color: var(--ink); }
.about-cols { display: flex; gap: 56px; }
.about-cols > div { flex: 1 1 0; display: flex; flex-direction: column; gap: 10px; }
.about-cols h3 { font-weight: 900; font-size: 20px; line-height: 24px; }
.about-cols .serif { color: var(--ink); }
.about-foot { display: flex; flex-direction: column; gap: 22px; }
.wordmark { display: flex; justify-content: center; font-size: clamp(64px, 12.2vw, 176px); line-height: 1; letter-spacing: .02em; cursor: default; }
.wordmark span { display: inline-block; transition: transform .3s var(--ease); }
.wordmark span:hover { transform: translateY(-10px) rotate(-4deg); }
body.is-playing .wordmark span { animation: hop .52s ease-in-out infinite alternate; }
.wordmark span:nth-child(2n) { animation-delay: -.26s !important; }
@keyframes hop { to { transform: translateY(-7px); } }
.foot-row { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1.5px solid var(--ink); font-weight: 500; font-size: 13px; line-height: 16px; }
.foot-row .label { font-size: 13px; }

/* ---------- Lyrics sheet ---------- */
.scrim { position: fixed; inset: var(--nav-h, 76px) 0 0 0; z-index: 25; background: #14141414; }
.lyrics {
  position: fixed; top: var(--nav-h, 76px); right: 0; bottom: 0; z-index: 30;
  display: flex; flex-direction: column; width: min(560px, 100vw); overflow: hidden;
  background: #fff; border-left: 1.5px solid var(--ink); box-shadow: -28px 0 48px #1414142E;
  transform: translateX(105%); visibility: hidden;
  transition: transform .55s var(--ease), visibility 0s .55s;
}
.lyrics.is-open { transform: none; visibility: visible; transition: transform .55s var(--ease); }
.lyrics-band { flex-shrink: 0; height: 8px; background: var(--band, var(--red)); }
.lyrics-head { display: flex; flex-direction: column; gap: 18px; flex-shrink: 0; padding: 26px 44px 22px; border-bottom: 1.5px solid var(--ink); }
.lyrics-top { display: flex; align-items: center; justify-content: space-between; }
.lyrics-top p { display: flex; align-items: center; gap: 10px; }
.close { display: flex; align-items: center; gap: 8px; }
.close:hover svg { transform: rotate(90deg); }
.close svg { transition: transform .3s var(--ease); }
.lyrics-title { display: flex; align-items: flex-end; gap: 22px; padding-top: 16px; }
.lyrics-bn { font-family: var(--script); font-size: 76px; line-height: 84px; white-space: nowrap; }
.lyrics-title div { display: flex; flex-direction: column; gap: 2px; padding-bottom: 14px; min-width: 0; }
.lyrics-en { font-weight: 900; font-size: 22px; line-height: 28px; }
.lyrics-sub { font-weight: 500; font-size: 14px; line-height: 18px; color: var(--gray); }
.lyrics-body { display: flex; flex-direction: column; gap: 22px; padding: 22px 44px 160px; overflow-y: auto; }
.follow { display: flex; align-items: center; gap: 10px; }
.follow .rec { width: 8px; height: 8px; }
.follow .label { font-size: 11px; line-height: 14px; }
.follow b { font-family: var(--num); font-style: italic; font-weight: 800; font-size: 13px; line-height: 16px; color: var(--red); }
#lyLines { display: flex; flex-direction: column; gap: 22px; }
.ly-sec { display: flex; flex-direction: column; gap: 10px; }
.ly-sec > .label { padding-left: 24px; font-size: 10px; line-height: 12px; color: var(--muted); }
.ly-sec.chorus > .label { color: var(--red); }
.ly-line { display: flex; gap: 10px; }
.ly-line::before { content: ""; flex-shrink: 0; width: 14px; }
.ly-line.is-now::before { width: 10px; height: 12px; margin: 9px 4px 0 0; background: var(--red); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.ly-text { display: flex; flex-direction: column; }
.ly-bn { font-family: var(--bn-body); font-size: 19px; line-height: 28px; color: var(--ink); transition: color .3s, font-size .3s; }
.ly-ro { font-family: var(--mincho); font-weight: 500; font-size: 13px; line-height: 18px; color: var(--gray); }
.ly-empty { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.ly-empty .bn-display { font-size: 30px; line-height: 38px; }
.ly-line.is-past .ly-bn { color: var(--muted); }
.ly-line.is-past .ly-ro { color: #BDBAB3; }
.ly-line.is-now .ly-bn { color: var(--red); font-size: 24px; line-height: 32px; }
.ly-line.is-now .ly-ro { color: var(--red); font-size: 14px; line-height: 20px; }
.lyrics-foot {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; height: 150px; padding: 0 44px 22px; padding-top: 108px;
  background: linear-gradient(180deg, #FFFFFF00 0%, #FFFFFF 62%);
  font-weight: 500; font-size: 12px; line-height: 16px; color: var(--gray);
}
.lyrics-foot::before { content: ""; position: absolute; left: 44px; right: 44px; bottom: 50px; border-top: 1.5px solid var(--ink); }
.lyrics-foot .next { color: var(--ink); font-size: 11px; line-height: 14px; }
.lyrics-foot .next:hover { color: var(--red); }

/* ---------- Motion ---------- */
:root { --spring: cubic-bezier(.3, 1.4, .5, 1); }

/* load: the deck bounces in, the title writes itself, the tapes slide onto the shelf */
.js .deck { animation: deck-in .8s var(--ease) .1s both; }
.js .now-label, .js .syll, .js .now-meta > * { animation: rise .7s var(--ease) both; }
.js .now-meta > :nth-child(2) { animation-delay: .08s; }
.js .now-meta > :nth-child(3) { animation-delay: .16s; }
.js .now-meta > :nth-child(4) { animation-delay: .24s; }
.js .shelf li { animation: slide-in .65s var(--spring) both; animation-delay: calc(.35s + var(--i) * 80ms); }
.js .shelf-intro, .js .legend, .js .foot, .js .dial { animation: rise .7s var(--ease) .55s both; }
.bn-title.write { animation: write 1.1s var(--ease) both; }
body.is-playing .bn-title.write { animation: write 1.1s var(--ease) both, sway 3.4s ease-in-out 1.1s infinite; }
@keyframes deck-in { from { opacity: 0; } } /* a heavy machine: it never moves, it only fades in */
@keyframes rise { from { opacity: 0; translate: 0 14px; } }
@keyframes slide-in { from { opacity: 0; translate: 70px 0; rotate: 2deg; } }
@keyframes write { from { clip-path: inset(-40% 100% -40% -6%); } to { clip-path: inset(-40% -12% -40% -6%); } }
@keyframes sway { 50% { rotate: -1.4deg; } }

/* the deck: PLAY glows until the first press */
#playRing { transform-box: fill-box; transform-origin: center; animation: ring 1.7s ease-out infinite; pointer-events: none; }
body.has-played #playRing { display: none; }
@keyframes ring { from { opacity: .95; scale: .96; } to { opacity: 0; scale: 1.24; } }
.roll { transform-box: fill-box; transform-origin: center; animation: roll .28s var(--ease); }
@keyframes roll { from { translate: 0 -14px; opacity: 0; } }
body.is-playing .tape.is-in .tape-in svg { animation: blink .9s steps(2, jump-none) infinite; }
.fly {
  position: fixed; z-index: 40; display: flex; align-items: center; padding: 0 18px 0 22px;
  background: var(--bg); color: var(--fg); border-left: 8px solid #FFFFFF40;
  font-weight: 900; font-size: 21px; white-space: nowrap; overflow: hidden;
  box-shadow: 0 18px 30px #14141440; pointer-events: none;
}

.dial { position: relative; }
.dial-tip {
  position: absolute; bottom: 100%; left: 0; translate: -50% -2px; padding: 3px 7px; border-radius: 3px;
  background: var(--ink); color: var(--paper); font-family: var(--num); font-style: italic; font-weight: 800; font-size: 12px; line-height: 16px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.dial:hover .dial-tip, .dial.is-drag .dial-tip { opacity: 1; }

/* scroll reveals */
.js [data-reveal] { opacity: 0; translate: 0 24px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; translate: none; }
.js .rule[data-reveal] { opacity: 1; translate: none; }
.js .rule[data-reveal] i { scale: 0 1; transform-origin: left; transition: scale 1.2s var(--ease) .1s; }
.js .rule[data-reveal] > span { opacity: 0; transition: opacity .6s .3s; }
.rule.is-in i { scale: 1 1; }
.rule.is-in > span { opacity: 1; }
.js .liner-title[data-reveal] { opacity: 1; translate: none; overflow: hidden; padding-bottom: .04em; }
.js .liner-title span { display: inline-block; translate: 0 108%; transition: translate 1.1s var(--ease); }
.liner-title.is-in span { translate: none; }
/* the J-card opens from its spine, like a real case */
.js .jcard[data-reveal] { opacity: 1; translate: none; perspective: 1600px; }
.js .jcard .jfront { transform-origin: right center; transform: rotateY(-88deg); transition: transform 1.2s var(--spring) .1s; }
.js .jcard .jinside { transform-origin: left center; transform: rotateY(88deg); transition: transform 1.2s var(--spring) .25s; }
.jcard.is-in .jfront, .jcard.is-in .jinside { transform: none; }
.js .jcard #jrows li { opacity: 0; translate: 0 10px; transition: opacity .5s, translate .6s var(--ease); transition-delay: calc(.75s + var(--i) * 70ms); }
.jcard.is-in #jrows li { opacity: 1; translate: none; }
.js .jcard .jstripes i { scale: 0 1; transition: scale .7s var(--ease), transform .5s var(--ease); }
.js .jcard .jstripes i:nth-of-type(2) { transition-delay: .9s, 0s; }
.js .jcard .jstripes i:nth-of-type(3) { transition-delay: .98s, 0s; }
.js .jcard .jstripes i:nth-of-type(4) { transition-delay: 1.06s, 0s; }
.js .jcard .jstripes i:nth-of-type(5) { transition-delay: 1.14s, 0s; }
.js .jcard .jstripes i:nth-of-type(1) { transition-delay: .82s, 0s; }
.jcard.is-in .jstripes i { scale: 1 1; }
/* PREYOSHI drops in letter by letter */
.js .wordmark[data-reveal] { opacity: 1; translate: none; }
.js .wordmark span { opacity: 0; translate: 0 -120%; transition: translate .9s var(--spring), opacity .4s; }
.wordmark.is-in span { opacity: 1; translate: none; }
.wordmark span:nth-child(2) { transition-delay: .06s; } .wordmark span:nth-child(3) { transition-delay: .12s; }
.wordmark span:nth-child(4) { transition-delay: .18s; } .wordmark span:nth-child(5) { transition-delay: .24s; }
.wordmark span:nth-child(6) { transition-delay: .3s; } .wordmark span:nth-child(7) { transition-delay: .36s; }
.wordmark span:nth-child(8) { transition-delay: .42s; }
.ly-line.is-now .ly-text { animation: pop .45s var(--ease); }
@keyframes pop { from { translate: -10px 0; opacity: .4; } }

/* ---------- Desktop: each part fits one screen (main.js sets zoom + min-height on [data-fit]) ---------- */
@media (min-width: 1101px) {
  [data-fit] { display: flex; justify-content: center; }
  .liner, .about { flex-direction: column; }
  .player { align-items: center; }
  .liner { padding-block: 56px; }
  .about { padding-top: 56px; }
}

/* ---------- Smaller screens ---------- */
@media (max-width: 1100px) {
  .player { flex-direction: column; gap: 48px; }
  .deck-col { flex-basis: auto; }
  .shelf-col { flex-basis: auto; }
  .liner-head { flex-direction: column; align-items: flex-start; }
  .liner-intro { width: auto; max-width: 480px; }
  .jcard { flex-direction: column; }
  .jfront { width: auto; gap: 24px; }
  .jspine { display: none; }
}
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; row-gap: 10px; padding-block: 14px; }
  .links { gap: 18px; order: 3; width: 100%; }
  .meta { font-size: 13px; }
  .player { gap: 36px; padding-top: 24px; }
  .deck-col { gap: 14px; }
  .now-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .now-title { width: 100%; }
  .syll { padding: 20px 0 10px 4px; }
  .bn-title { height: 96px; font-size: clamp(76px, 25vw, 96px); line-height: 92px; }
  .now-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; padding-bottom: 0; }
  .track-no, .band, .mean { grid-column: 1; }
  .lyrics-btn { grid-column: 2; grid-row: 1 / 4; align-self: end; margin-top: 0; }
  .band { font-size: 24px; line-height: 28px; }
  .deck { filter: drop-shadow(8px 12px 12px #14141430); }
  .dial, .skip { width: 100%; }
  .shelf-col { gap: 18px; }
  .legend { display: none; }
  .liner { gap: 32px; padding-block: 64px; }
  .jfront-bn { font-size: 64px; line-height: 78px; }
  .jinside { padding: 22px 18px; }
  .jrow { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .jmean { display: none; }
  .jhead span:nth-child(3) { display: none; }
  .about-cols { flex-direction: column; gap: 28px; }
  .about { gap: 40px; padding-top: 64px; }
  .wordmark { font-size: 12vw; }
  .lyrics-head, .lyrics-body { padding-inline: 22px; }
  .lyrics-foot { padding-inline: 22px; }
  .lyrics-foot::before { left: 22px; right: 22px; }
  .lyrics-bn { font-size: 56px; line-height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
