:root {
  --bg: #0f1014;
  --panel: rgba(255,255,255,.065);
  --line: rgba(255,255,255,.13);
  --text: #f6f2ea;
  --muted: #a8a39b;
  --accent: #ffb6c8;
  --accent-2: #f4d8a8;
  --shadow: 0 30px 80px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(255,182,200,.09), transparent 34rem),
    radial-gradient(circle at 90% 25%, rgba(244,216,168,.07), transparent 28rem),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .01em;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .07;
  z-index: 50;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.orb {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .16;
  pointer-events: none;
  z-index: -1;
}
.orb-a { background: #ff8fb1; top: 8%; left: -12rem; }
.orb-b { background: #e9c986; right: -12rem; bottom: 10%; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem clamp(1.25rem, 4vw, 4rem);
  background: linear-gradient(to bottom, rgba(15,16,20,.9), rgba(15,16,20,.48), transparent);
  backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
}
.brand-text { font-size: .74rem; letter-spacing: .18em; color: var(--muted); }

.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.sound-dot {
  width: .55rem; height: .55rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.sound-toggle.active .sound-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 .25rem rgba(255,182,200,.1); }

main { width: min(1180px, calc(100% - 2.2rem)); margin: 0 auto; }

.hero {
  min-height: calc(100vh - 5rem);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  padding: 5rem 0 7rem;
}
.eyebrow, .section-kicker {
  margin: 0 0 1rem;
  color: var(--accent-2);
  font-size: .72rem;
  letter-spacing: .22em;
  font-weight: 700;
}
.hero h1 {
  margin: 0;
  font-size: clamp(4.1rem, 10vw, 8.7rem);
  line-height: .86;
  letter-spacing: -.07em;
}
.hero h1 span { display: block; }
.hero h1 .accent {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}
.hero-lead {
  max-width: 38rem;
  margin: 2rem 0 0;
  color: #c9c4bc;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.9;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.1rem; }

.primary-btn, .ghost-btn {
  min-height: 3rem;
  padding: .85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--text);
  color: #15161a;
  border-color: var(--text);
  font-weight: 700;
}
.ghost-btn { background: transparent; color: var(--text); }
.primary-btn:hover, .ghost-btn:hover { transform: translateY(-2px); }
.ghost-btn:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.25); }

.hero-album {
  display: grid;
  place-items: center;
  perspective: 900px;
}
.album-stack {
  position: relative;
  width: min(25rem, 78vw);
  aspect-ratio: 1;
  isolation: isolate;
}
.album-sheet,
.album-cover {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.25);
}
.album-sheet {
  background: rgba(255,255,255,.78);
  box-shadow: 0 18px 38px rgba(0,0,0,.12);
}
.album-sheet-back { transform: translate(-1.05rem, .8rem) rotate(-4deg); opacity: .46; }
.album-sheet-mid { transform: translate(.8rem, .35rem) rotate(2.6deg); opacity: .74; }
.album-cover {
  overflow: hidden;
  background: #f7fbff;
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
  transform-origin: center;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease;
}
.album-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-art) center / cover no-repeat;
  filter: saturate(1.05) contrast(1.03);
}
.album-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), transparent 28%),
    linear-gradient(0deg, rgba(7,54,116,.34), transparent 46%);
  box-shadow: inset 0 0 0 10px rgba(255,255,255,.88);
}
.album-print {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  align-items: start;
  padding: clamp(1.25rem, 4vw, 2rem);
  color: #fff;
  text-shadow: 0 2px 18px rgba(8,48,101,.32);
}
.album-kicker {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .22em;
}
.album-number {
  align-self: center;
  font-size: clamp(7rem, 22vw, 12rem);
  line-height: .78;
  font-weight: 800;
  letter-spacing: -.1em;
}
.album-title {
  font-size: clamp(1rem, 3vw, 1.45rem);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.album-meta {
  margin-top: .5rem;
  font-size: .67rem;
  letter-spacing: .16em;
}
.album-edge {
  position: absolute;
  z-index: 3;
  right: .65rem;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  color: rgba(255,255,255,.9);
  font-size: .54rem;
  letter-spacing: .18em;
  text-shadow: 0 1px 8px rgba(8,48,101,.3);
}
.album-caption {
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: .84rem;
}
body.sound-on .album-cover {
  animation: album-float 5.6s ease-in-out infinite;
}
@keyframes album-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(.35deg); }
}

.intro { padding: 7rem 0; border-top: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; }
.intro h2, .section-head h2, .letter h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.intro p:last-child { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.9; max-width: 34rem; }

.playlist-section { padding: 5rem 0 7rem; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}
.section-note { max-width: 25rem; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }

.track-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: .8rem;
}
.track-card {
  position: relative;
  min-height: 11rem;
  padding: 1.15rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.track-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); }
.track-card.active { border-color: rgba(255,182,200,.7); box-shadow: 0 0 0 1px rgba(255,182,200,.2) inset; }
.track-no { color: var(--accent-2); font-size: .72rem; letter-spacing: .16em; }
.track-title { display: block; margin-top: 2.3rem; font-size: 1.08rem; font-weight: 700; }
.track-subtitle { display: block; margin-top: .45rem; color: var(--muted); font-size: .82rem; }
.track-arrow {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 2rem; height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
}

.letter { padding: 5rem 0 7rem; }
.letter-card {
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 2rem;
  background:
    linear-gradient(125deg, rgba(255,182,200,.12), transparent 45%),
    rgba(255,255,255,.035);
  box-shadow: var(--shadow);
}
.letter-card > p:not(.section-kicker) { color: var(--muted); line-height: 1.8; font-size: 1.05rem; max-width: 42rem; }
.signature { margin-top: 3rem; color: var(--accent-2); font-family: Georgia, serif; font-style: italic; font-size: 1.2rem; }

.timeline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 5rem 0 8rem;
}
.timeline-line {
  position: absolute;
  top: 50%;
  left: 12%;
  right: 12%;
  height: 1px;
  background: var(--line);
  z-index: -1;
}
.year {
  min-width: 8.2rem;
  padding: 1.25rem 1.4rem;
  border-radius: 1.3rem;
  border: 1px solid var(--line);
  background: rgba(15,16,20,.86);
  color: var(--text);
  text-align: center;
}
button.year { cursor: pointer; }
.year span { display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: -.06em; }
.year small { color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.year-past { opacity: .46; transition: opacity .25s ease, transform .25s ease; }
.year-past:hover { opacity: 1; transform: translateY(-3px) rotate(-1deg); }
.timeline-arrow { color: var(--muted); }

footer {
  padding: 2rem 1.2rem 8rem;
  color: #77736d;
  text-align: center;
  font-size: .78rem;
  letter-spacing: .12em;
}

.player-shell {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  width: min(760px, calc(100% - 1.25rem));
  padding: .8rem 1rem .65rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 1.25rem;
  background: rgba(24,25,30,.88);
  backdrop-filter: blur(24px);
  box-shadow: 0 20px 60px rgba(0,0,0,.42);
  transform: translate(-50%, 130%);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
}
.player-shell.visible { transform: translate(-50%,0); opacity: 1; }
.player-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .85rem; }
.player-cover {
  position: relative;
  width: 3rem;
  height: 3rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: var(--surface);
}
.player-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.player-index {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text);
  font-weight: 800;
  font-size: .82rem;
}
.player-cover.has-art .player-index {
  inset: auto auto .2rem .2rem;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 .28rem;
  border-radius: .25rem;
  background: rgba(8, 24, 60, .72);
  color: #fff;
  font-size: .62rem;
  backdrop-filter: blur(5px);
}
.player-meta { min-width: 0; }
.player-meta strong, .player-meta span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-meta strong { font-size: .93rem; }
.player-meta span { margin-top: .18rem; color: var(--muted); font-size: .76rem; }
.player-button {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  border: 0;
  background: var(--text);
  color: #14151a;
  cursor: pointer;
}
.progress-wrap { display: grid; grid-template-columns: 2.8rem 1fr 2.8rem; align-items: center; gap: .55rem; margin-top: .65rem; color: var(--muted); font-size: .67rem; }
#progress { width: 100%; accent-color: var(--accent); }


.mini-player-open {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .85rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.mini-expand-icon { color: var(--muted); font-size: 1.05rem; line-height: 1; }
body.player-expanded { overflow: hidden; }
body.player-expanded .player-shell {
  pointer-events: none;
  transform: translate(-50%, 130%);
  opacity: 0;
}
.now-playing {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s step-end;
}
body.player-expanded .now-playing {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .28s ease;
}
.now-playing-backdrop, .now-playing-shade { position: absolute; inset: 0; }
.now-playing-backdrop {
  overflow: hidden;
  background: radial-gradient(circle at 25% 18%, rgba(91,151,220,.55), transparent 45%), linear-gradient(145deg, #173c6c, #14223d 55%, #0a1322);
}
.now-playing-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(54px) saturate(1.18);
  transform: scale(1.18);
  opacity: .72;
}
.now-playing-shade {
  background: linear-gradient(180deg, rgba(6,13,26,.25), rgba(6,13,26,.48) 45%, rgba(5,10,20,.76)), rgba(8,18,34,.2);
}
.now-playing-surface {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  padding: max(1rem, env(safe-area-inset-top)) max(1.2rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1.2rem, env(safe-area-inset-left));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.now-playing-header {
  width: min(1120px, 100%);
  margin: 0 auto;
  min-height: 52px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
}
.now-playing-minimize {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.now-playing-minimize svg, .now-playing-transport svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.now-playing-heading { justify-self: center; font-size: .78rem; font-weight: 700; letter-spacing: .12em; }
.now-playing-index { justify-self: end; font-size: .78rem; color: rgba(255,255,255,.72); font-variant-numeric: tabular-nums; }
.now-playing-layout {
  width: min(1080px, 100%);
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
}
.now-playing-primary { min-width: 0; }
.now-playing-stage { display: contents; }
.now-playing-artwork {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1;
  margin-inline: auto;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 1.35rem;
  background: rgba(255,255,255,.12);
  box-shadow: 0 28px 70px rgba(0,0,0,.32);
}
.now-playing-artwork img { width: 100%; height: 100%; object-fit: cover; }
.now-playing-artwork > span { font-size: clamp(4rem, 16vw, 8rem); font-weight: 800; color: rgba(255,255,255,.82); }
.now-playing-artwork.has-art > span { display: none; }
.now-playing-meta { margin-top: 1.35rem; min-width: 0; }
.now-playing-meta h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.18; letter-spacing: -.025em; overflow-wrap: anywhere; }
.now-playing-meta p { margin: .35rem 0 0; color: rgba(255,255,255,.68); font-size: .95rem; }
.now-playing-progress { margin-top: 1.15rem; }
#expandedProgress {
  width: 100%;
  min-height: 44px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
#expandedProgress::-webkit-slider-runnable-track { height: 5px; border-radius: 999px; background: rgba(255,255,255,.3); }
#expandedProgress::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -6.5px; border: 0; border-radius: 50%; background: #fff; -webkit-appearance: none; }
#expandedProgress::-moz-range-track { height: 5px; border-radius: 999px; background: rgba(255,255,255,.3); }
#expandedProgress::-moz-range-progress { height: 5px; border-radius: 999px; background: #fff; }
#expandedProgress::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; }
#expandedProgress:disabled { opacity: .4; cursor: default; }
.now-playing-times { margin-top: -.15rem; display: flex; justify-content: space-between; color: rgba(255,255,255,.62); font-size: .7rem; font-variant-numeric: tabular-nums; }
.now-playing-controls { margin-top: .7rem; display: flex; align-items: center; justify-content: center; gap: clamp(.8rem, 3.5vw, 2.5rem); }
.now-playing-transport, .now-playing-play, .now-playing-mode { display: grid; place-items: center; border: 0; color: #fff; cursor: pointer; }
.now-playing-transport { width: 52px; height: 52px; background: transparent; }
.now-playing-play { width: 66px; height: 66px; border-radius: 50%; background: rgba(255,255,255,.94); color: #101722; font-size: 1.35rem; box-shadow: 0 10px 28px rgba(0,0,0,.2); }
.now-playing-mode {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  color: rgba(255,255,255,.64);
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.now-playing-mode svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.now-playing-mode.active {
  color: #fff;
  background: rgba(255,255,255,.14);
}
.mobile-player-modes,
.now-playing-message-mobile,
.now-playing-lyrics-mobile {
  display: none;
}
.now-playing-side {
  min-width: 0;
  height: min(70dvh, 650px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-self: center;
}
.now-playing-side-tabs {
  display: flex;
  gap: 1.35rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
.now-playing-side-tab {
  position: relative;
  padding: .25rem 0 .55rem;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.48);
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
}
.now-playing-side-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transform: scaleX(0);
  transition: transform .18s ease;
}
.now-playing-side-tab.active {
  color: #fff;
}
.now-playing-side-tab.active::after {
  transform: scaleX(1);
}
.now-playing-side-pane {
  min-height: 0;
}
.now-playing-message-label { margin: 0 0 1.2rem; color: rgba(255,255,255,.6); font-size: .72rem; font-weight: 700; letter-spacing: .18em; }
.now-playing-message-scroll { min-height: 0; height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: .7rem; }
#expandedNote { margin: 0; white-space: pre-line; font-size: clamp(1.55rem, 3.4vw, 2.65rem); font-weight: 700; line-height: 1.62; letter-spacing: -.02em; text-wrap: pretty; }
.lyrics-scroll {
  position: relative;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  scroll-behavior: smooth;
  padding-block: 34%;
}
.lyrics-scroll::-webkit-scrollbar { display: none; }
.lyric-line {
  margin: 0 0 1.15rem;
  color: rgba(255,255,255,.4);
  font-size: clamp(1.15rem, 2.5vw, 1.75rem);
  font-weight: 650;
  line-height: 1.45;
  transition: color .22s ease, opacity .22s ease, transform .22s ease;
  opacity: .7;
}
.lyric-line.active {
  color: #fff;
  opacity: 1;
  transform: scale(1.018);
  transform-origin: left center;
}
.lyrics-status {
  margin: 0;
  color: rgba(255,255,255,.55);
  font-size: .95rem;
  line-height: 1.7;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 7.6rem;
  z-index: 60;
  max-width: calc(100% - 2rem);
  padding: .75rem 1rem;
  border-radius: 999px;
  background: #f4f0e8;
  color: #1a1b20;
  font-size: .82rem;
  transform: translate(-50%, 1rem);
  opacity: 0;
  pointer-events: none;
  transition: .22s ease;
}
.toast.show { transform: translate(-50%,0); opacity: 1; }

.memory-modal { position: fixed; inset: 0; z-index: 70; display: none; place-items: center; padding: 1.2rem; }
.memory-modal.open { display: grid; }
.memory-backdrop { position: absolute; inset: 0; background: rgba(4,5,8,.7); backdrop-filter: blur(10px); }
.memory-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 2.2rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 1.6rem;
  background: #18191e;
  box-shadow: var(--shadow);
}
.memory-card h2 { margin: 0; font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -.05em; }
.memory-card p:not(.section-kicker) { color: var(--muted); line-height: 1.8; }
.memory-link { margin-top: 1rem; }
.memory-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 4rem; }
  .hero-disc { margin-top: 1rem; }
  .disc { width: min(22rem, 82vw); }
  .intro-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .track-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  main { width: min(100% - 1.2rem, 1180px); }
  .topbar { padding: .9rem .8rem; }
  .brand-text { display: none; }
  .hero { padding: 3.5rem .2rem 5rem; }
  .hero h1 { font-size: clamp(3.7rem, 20vw, 6rem); }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .primary-btn, .ghost-btn { width: 100%; }
  .track-grid { grid-template-columns: 1fr; }
  .track-card { min-height: 9rem; }
  .section-head { align-items: start; flex-direction: column; }
  .timeline { gap: .7rem; }
  .year { min-width: 6.4rem; padding: 1rem; }
  .year span { font-size: 2rem; }
  .player-shell { border-radius: 1rem; }
}
/* Theme-only overrides; original desktop structure and typography are retained. */
:root {
  color-scheme: light;
  --bg: #f4fbff;
  --panel: #ffffff;
  --line: #acd0ef;
  --text: #123a78;
  --muted: #436792;
  --accent: #087bdd;
  --accent-2: #2369ae;
  --surface: #e4f3ff;
  --button: #075fc7;
  --button-text: #ffffff;
  --disc-dark: #073b8b;
  --disc-groove: #1459a9;
  --topbar: rgba(248, 253, 255, .94);
  --player: rgba(255, 255, 255, .98);
  --hero-art: url('./sky-day.svg');
  --hero-wash: rgba(244, 251, 255, .15);
  --shadow: 0 24px 70px rgba(12, 65, 147, .16);
}
:root[data-theme="dusk"] {
  color-scheme: dark;
  --bg: #27244f;
  --panel: #302c5c;
  --line: #71608f;
  --text: #fff4ee;
  --muted: #d6bedc;
  --accent: #ffb397;
  --accent-2: #ffc6a7;
  --surface: #433465;
  --button: #ffb397;
  --button-text: #292550;
  --disc-dark: #222357;
  --disc-groove: #454078;
  --topbar: rgba(39, 36, 79, .94);
  --player: rgba(48, 44, 92, .98);
  --hero-art: url('./sky-dusk.svg');
  --hero-wash: rgba(39, 36, 79, .12);
  --shadow: 0 24px 70px rgba(13, 14, 49, .25);
}
html { scroll-padding: 90px 0 180px; }
body { background: var(--bg); }
[data-copy] { white-space: pre-line; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
button, a, select { touch-action: manipulation; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
body:has(dialog[open]) { overflow: hidden; }
.noise { opacity: .025; mix-blend-mode: multiply; }
.orb { display: none; }
.topbar { background: var(--topbar); padding-top: max(1.1rem, env(safe-area-inset-top)); }
.brand-mark { background: var(--button); color: var(--button-text); }
.header-controls { display: flex; align-items: center; gap: .7rem; }
.mobile-settings-toggle { display: none; }
.mobile-settings-icon { line-height: 1; font-size: 1.28rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.theme-select { font: inherit; font-size: .78rem; min-height: 44px; min-width: 78px; padding: .4rem .5rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--panel); color: var(--text); cursor: pointer; }
.sound-toggle { min-height: 44px; padding-inline: .3rem; letter-spacing: .04em; text-transform: none; }
.sound-toggle.active .sound-dot { box-shadow: 0 0 0 .25rem var(--surface); }
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: calc((100% - 100vw) / 2);
  width: 100vw;
  z-index: -2;
  pointer-events: none;
  background: var(--hero-art) right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 72%, transparent 100%);
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, var(--hero-wash), transparent 60%); }
.hero-lead, .album-caption { color: var(--muted); }
.primary-btn { background: var(--button); border-color: var(--button); color: var(--button-text); }
.primary-btn, .ghost-btn { min-height: 48px; border-radius: .4rem; }
.ghost-btn { background: var(--panel); }
.ghost-btn:hover { background: var(--surface); border-color: var(--accent); }
.album-sheet { background: color-mix(in srgb, var(--panel) 86%, transparent); border-color: var(--line); }
.album-cover { border-color: var(--line); }
:root[data-theme="dusk"] .album-cover::after {
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), transparent 25%),
    linear-gradient(0deg, rgba(39,28,83,.44), transparent 50%);
}
:root[data-theme="dusk"] .album-sheet { background: rgba(255,244,238,.78); }
.track-card { border-radius: .45rem; background: linear-gradient(145deg, var(--panel), var(--surface)); }
.track-card:hover { border-color: var(--accent); background: var(--surface); }
.track-card.active { border-color: var(--accent); background: var(--surface); box-shadow: inset 3px 0 var(--accent); }
.track-cover {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3.6rem;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: .35rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
}
.track-cover.ready {
  opacity: 1;
  transform: translateY(0);
  border-color: var(--line);
}
.track-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.track-card:has(.track-cover.ready) .track-title,
.track-card:has(.track-cover.ready) .track-subtitle {
  padding-right: 4.4rem;
}
.track-arrow { border-color: var(--line); }
.track-title, .track-subtitle { overflow-wrap: anywhere; }
.letter-card { border-color: var(--line); border-radius: .6rem; background: linear-gradient(125deg, var(--surface), var(--panel) 70%); box-shadow: var(--shadow); }
.year { border-radius: .45rem; background: var(--bg); min-height: 80px; }
.year-past { opacity: .8; }
footer { color: var(--muted); padding-bottom: max(10rem, calc(9rem + env(safe-area-inset-bottom))); }
.player-shell { border-color: var(--line); border-radius: .65rem; background: var(--player); box-shadow: var(--shadow); bottom: max(.7rem, env(safe-area-inset-bottom)); }
.player-cover { background: var(--surface); border-color: var(--line); }
.mini-player-open { grid-template-columns: auto minmax(0, 1fr) auto; gap: .7rem; }
.player-meta strong, .player-meta span { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.player-meta span { -webkit-line-clamp: 1; }
.playback-controls { display: flex; align-items: center; gap: 4px; }
.player-button { background: var(--button); color: var(--button-text); min-width: 48px; min-height: 48px; }
.transport-button { display: grid; place-items: center; min-width: 44px; min-height: 48px; background: none; border: 0; color: var(--text); cursor: pointer; padding: 10px; }
.transport-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
#progress {
  width: 100%;
  min-height: 44px;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}
#progress::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
}
#progress::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border: 2px solid var(--panel);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 1px 5px rgba(0,0,0,.18);
  -webkit-appearance: none;
}
#progress::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
}
#progress::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}
#progress::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 2px solid var(--panel);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 1px 5px rgba(0,0,0,.18);
}
#progress:disabled { cursor: default; opacity: .4; }
.progress-wrap { margin-top: 0; font-variant-numeric: tabular-nums; }
.toast { background: var(--button); color: var(--button-text); border-radius: .4rem; bottom: calc(10rem + env(safe-area-inset-bottom)); line-height: 1.6; }
.memory-modal { position: fixed; inset: 0; margin: auto; padding: 0; border: 0; background: transparent; display: none; width: min(520px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; color: var(--text); }
.memory-modal[open] { display: block; }
.memory-modal::backdrop { background: rgba(8, 24, 60, .65); backdrop-filter: blur(8px); }
.memory-card { width: 100%; background: var(--panel); border-color: var(--line); border-radius: .6rem; box-shadow: none; }
.memory-close { min-width: 44px; min-height: 44px; font-size: 24px; top: .5rem; right: .5rem; }
@media (hover: none) {
  .track-card:hover { transform: none; }
  .primary-btn:hover, .ghost-btn:hover { transform: none; }
  .track-card:active, .player-button:active, .transport-button:active, .now-playing-mode:active, .mobile-mode-button:active { opacity: .75; }
}
@media (max-width: 850px) {
  .hero::before { background-position: 75% center; }
}
@media (max-width: 560px) {
  main { width: calc(100% - 2rem); }
  .topbar {
    padding-inline: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: .65rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .mobile-settings-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: .45rem;
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
  }
  .header-controls {
    position: absolute;
    top: calc(100% + .35rem);
    right: max(1rem, env(safe-area-inset-right));
    z-index: 35;
    width: min(16rem, calc(100vw - 2rem));
    padding: .7rem;
    flex-direction: column;
    align-items: stretch;
    gap: .55rem;
    border: 1px solid var(--line);
    border-radius: .55rem;
    background: var(--panel);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-.35rem) scale(.985);
    transform-origin: top right;
    transition: opacity .18s ease, transform .18s ease, visibility .18s step-end;
  }
  .header-controls.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition: opacity .18s ease, transform .18s ease;
  }
  .theme-select { width: 100%; min-height: 48px; }
  .sound-toggle {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    padding: .7rem .75rem;
    border: 1px solid var(--line);
    border-radius: .4rem;
    background: var(--surface);
  }
  .hero { padding-top: 2.8rem; gap: 2.4rem; }
  .hero h1 { line-height: 1.03; }
  .hero-lead { font-size: 1rem; line-height: 1.85; }
  .hero::before { background-size: auto 100%; background-position: 64% center; }
  .hero-copy { min-width: 0; }
  .hero-album { margin-top: .2rem; }
  .album-stack { width: min(20rem, 80vw); }
  .intro { padding-block: 4rem; }
  .playlist-section, .letter { padding-block: 3rem; }
  .track-card { min-height: 8rem; }
  .track-title { margin-top: 1.7rem; padding-right: 1.8rem; }
  .track-subtitle { padding-right: 1.8rem; line-height: 1.6; }
  .section-head { gap: 1rem; }
  .letter-card { padding: 1.6rem; }
  .player-shell {
    width: calc(100% - .75rem);
    bottom: max(.5rem, env(safe-area-inset-bottom));
    padding: .7rem .7rem .4rem;
    border-radius: .55rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .player-main { grid-template-columns: minmax(0, 1fr) auto; gap: .35rem; }
  .mini-player-open { grid-template-columns: 2.75rem minmax(0, 1fr) 1rem; gap: .45rem; }
  .player-cover { width: 2.75rem; height: 2.75rem; }
  .player-index { font-size: .76rem; }
  .player-meta strong {
    font-size: .88rem;
    -webkit-line-clamp: 1;
  }
  .player-meta span { font-size: .7rem; -webkit-line-clamp: 1; }
  .playback-controls { gap: 0; }
  .player-button { min-width: 48px; min-height: 48px; }
  .transport-button { min-width: 44px; min-height: 48px; padding: 8px; }
  .progress-wrap { grid-template-columns: 2.35rem minmax(0, 1fr) 2.35rem; gap: .35rem; }
  #progress { min-height: 48px; }
  .toast { max-width: calc(100% - 2rem); font-size: .78rem; }
  .memory-card { padding: 3.4rem 1.5rem 1.7rem; }
}
@media (max-width: 760px) {
  .now-playing-surface {
    overflow: hidden;
    display: block;
    padding-top: max(.55rem, env(safe-area-inset-top));
    padding-bottom: max(1.1rem, env(safe-area-inset-bottom));
  }
  .now-playing-header {
    position: relative;
    z-index: 4;
    min-height: 48px;
  }
  .now-playing-layout {
    display: block;
    width: min(100%, 30rem);
    height: calc(100dvh - 64px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: .35rem .15rem .45rem;
  }
  .now-playing-primary {
    --mobile-artwork-size: min(76vw, 22rem);
    --mobile-stage-height: calc(var(--mobile-artwork-size) + 5.6rem);
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: var(--mobile-stage-height) auto auto auto;
    align-content: center;
  }
  .now-playing-stage {
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }
  .now-playing-artwork {
    flex: 0 0 auto;
    width: var(--mobile-artwork-size);
    border-radius: 1.05rem;
    transition: width .34s cubic-bezier(.22,.78,.2,1), margin .34s cubic-bezier(.22,.78,.2,1), border-radius .34s ease;
  }
  .now-playing-meta {
    flex: 0 0 auto;
    width: var(--mobile-artwork-size);
    margin: 1.35rem auto 0;
    transition: width .34s cubic-bezier(.22,.78,.2,1), margin .34s cubic-bezier(.22,.78,.2,1);
  }
  .now-playing:not(.message-mode):not(.lyrics-mode) .now-playing-stage {
    transform: translateY(-1rem);
  }
  .desktop-mode-button,
  .now-playing-side {
    display: none;
  }
  .mobile-player-modes {
    width: min(90vw, 25rem);
    margin: .55rem auto .05rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
  }
  .mobile-player-modes > * { justify-self: center; }
  .mobile-mode-button {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(255,255,255,.62);
    cursor: pointer;
    transition: color .18s ease, background .18s ease, transform .18s ease;
  }
  .mobile-mode-button svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .mobile-message-button {
    width: auto;
    min-width: 5.7rem;
    padding: 0 .7rem;
    border-radius: 999px;
    font: inherit;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
  }
  .mobile-mode-button.active {
    color: #fff;
    background: rgba(255,255,255,.14);
  }
  .now-playing-progress,
  .now-playing-controls {
    width: min(86vw, 24rem);
    margin-inline: auto;
  }
  .now-playing-progress { margin-top: .05rem; }
  .now-playing-controls {
    margin-top: .12rem;
    gap: clamp(1.5rem, 9vw, 3.2rem);
  }
  .now-playing-message-mobile,
  .now-playing-lyrics-mobile {
    display: none;
    min-height: 0;
    width: 100%;
    margin: 0;
  }
  .now-playing-message-mobile-scroll,
  .now-playing-lyrics-mobile .lyrics-scroll {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }
  .now-playing-message-mobile-scroll::-webkit-scrollbar,
  .now-playing-lyrics-mobile .lyrics-scroll::-webkit-scrollbar { display: none; }
  #expandedNoteMobile {
    margin: 0;
    white-space: pre-line;
    font-size: clamp(1.5rem, 6.4vw, 2.05rem);
    font-weight: 700;
    line-height: 1.56;
    letter-spacing: -.02em;
    text-wrap: pretty;
  }
  .now-playing-lyrics-mobile .lyrics-scroll {
    height: 100%;
    padding-block: 32%;
  }
  .now-playing-lyrics-mobile .lyric-line {
    margin-bottom: 1rem;
    font-size: clamp(1.15rem, 5.2vw, 1.65rem);
  }

  /* 三种视图共享同一个上部舞台；模式切换时模式键、进度条和播放键不移动。 */
  .now-playing.message-mode .now-playing-stage,
  .now-playing.lyrics-mode .now-playing-stage {
    display: grid;
    grid-template-columns: 4.6rem minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
      "art meta"
      "detail detail";
    align-items: center;
    column-gap: .9rem;
  }
  .now-playing.message-mode .now-playing-artwork,
  .now-playing.lyrics-mode .now-playing-artwork {
    grid-area: art;
    width: 4.6rem;
    margin: .4rem 0 .5rem;
    border-radius: .55rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.24);
  }
  .now-playing.message-mode .now-playing-meta,
  .now-playing.lyrics-mode .now-playing-meta {
    grid-area: meta;
    width: auto;
    margin: .4rem 0 .5rem;
    align-self: center;
  }
  .now-playing.message-mode .now-playing-stage,
  .now-playing.lyrics-mode .now-playing-stage {
    overflow: visible;
  }
  .now-playing.message-mode .now-playing-artwork,
  .now-playing.message-mode .now-playing-meta,
  .now-playing.lyrics-mode .now-playing-artwork,
  .now-playing.lyrics-mode .now-playing-meta {
    position: relative;
    top: calc(-1 * clamp(2.75rem, 7dvh, 4.5rem));
  }
  .now-playing.message-mode .now-playing-meta h2,
  .now-playing.lyrics-mode .now-playing-meta h2 {
    font-size: 1rem;
    line-height: 1.22;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .now-playing.message-mode .now-playing-meta p,
  .now-playing.lyrics-mode .now-playing-meta p {
    margin-top: .25rem;
    font-size: .8rem;
  }
  .now-playing.message-mode .now-playing-message-mobile {
    grid-area: detail;
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    opacity: 1;
    animation: player-detail-in .28s ease both;
  }
  .now-playing.message-mode .now-playing-message-label { margin-bottom: .8rem; }
  .now-playing.message-mode .now-playing-message-mobile-scroll {
    max-height: 100%;
  }
  .now-playing.lyrics-mode .now-playing-lyrics-mobile {
    grid-area: detail;
    display: block;
    height: 100%;
    opacity: 1;
    animation: player-detail-in .28s ease both;
  }
  .now-playing.artwork-expanding .now-playing-artwork {
    transition: none !important;
    will-change: transform, border-radius;
  }

  @keyframes player-detail-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 760px) and (max-height: 720px) {
  .now-playing-primary {
    --mobile-artwork-size: min(68vw, 18.5rem);
    --mobile-stage-height: calc(var(--mobile-artwork-size) + 5rem);
  }
  .now-playing-meta { margin-top: 1.05rem; }
  .now-playing:not(.message-mode):not(.lyrics-mode) .now-playing-stage { transform: translateY(-.55rem); }
  .mobile-player-modes { margin-top: .35rem; }
}

@media (min-width: 360px) and (max-width: 460px) {
  .hero { padding-top: 2.15rem; gap: 2rem; }
  .hero h1 { font-size: clamp(3.4rem, 17vw, 4.65rem); }
  .hero-lead { margin-top: 1.5rem; }
  .album-stack { width: min(18.4rem, 75vw); }
  .track-card { min-height: 7.6rem; padding: 1rem; }
  .timeline { padding-bottom: 7rem; }
  footer { padding-bottom: max(10.5rem, calc(9.5rem + env(safe-area-inset-bottom))); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* 2026-10-03 · quieter entry, stronger narrative, distinct day/dusk pacing */
:root {
  --track-hover-lift: -2px;
  --track-hover-duration: .16s;
  --album-float-duration: 5.2s;
  --album-float-lift: -10px;
  --album-float-tilt: .45deg;
  --scene-drift-duration: 15s;
  --scene-drift-x: 7px;
  --hero-filter: brightness(1.035) saturate(1.04);
  --story-rule: color-mix(in srgb, var(--accent) 68%, var(--line));
  --shadow: 0 18px 50px rgba(12, 65, 147, .12);
}
:root[data-theme="dusk"] {
  --track-hover-lift: -1px;
  --track-hover-duration: .28s;
  --album-float-duration: 8.4s;
  --album-float-lift: -6px;
  --album-float-tilt: .1deg;
  --scene-drift-duration: 24s;
  --scene-drift-x: 3px;
  --hero-filter: brightness(.9) saturate(.94);
  --story-rule: color-mix(in srgb, var(--accent) 54%, var(--line));
  --shadow: 0 26px 68px rgba(13, 14, 49, .3);
}
.hero::before {
  filter: var(--hero-filter);
  transform-origin: center;
  will-change: transform, filter;
  transition: filter .7s ease;
}
body.sound-on .hero::before { animation: hero-scene-drift var(--scene-drift-duration) ease-in-out infinite alternate; }
@keyframes hero-scene-drift {
  from { transform: scale(1.012) translate3d(0, 0, 0); }
  to { transform: scale(1.024) translate3d(var(--scene-drift-x), 0, 0); }
}
body.sound-on .album-cover { animation: album-float-theme var(--album-float-duration) ease-in-out infinite; }
@keyframes album-float-theme {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(var(--album-float-lift)) rotate(var(--album-float-tilt)); }
}
.hero-scroll-cue {
  width: fit-content;
  margin-top: 2.35rem;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .1em;
  transition: color .18s ease, transform .18s ease;
}
.hero-scroll-cue::after {
  content: "↓";
  color: var(--accent);
  font-size: 1rem;
  transition: transform .18s ease;
}
.hero-scroll-cue:hover { color: var(--text); transform: translateY(1px); }
.hero-scroll-cue:hover::after { transform: translateY(3px); }
.track-card {
  transition:
    transform var(--track-hover-duration) ease,
    border-color var(--track-hover-duration) ease,
    background var(--track-hover-duration) ease,
    box-shadow var(--track-hover-duration) ease;
}
.track-card:hover { transform: translateY(var(--track-hover-lift)); }

.story {
  position: relative;
  padding: 6.5rem 0 7.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.story-rule {
  width: clamp(3.5rem, 7vw, 5.5rem);
  height: 2px;
  margin-bottom: 2.2rem;
  background: var(--story-rule);
}
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}
.story h2 {
  margin: 0;
  max-width: 9.5em;
  font-size: clamp(2.55rem, 5.5vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -.052em;
  text-wrap: balance;
}
.story-copy { max-width: 37rem; padding-top: .35rem; }
.story-copy > p:not(.story-signature) {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  line-height: 2;
  text-wrap: pretty;
}
.story-signature {
  margin: 2.3rem 0 0;
  color: var(--accent-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-style: italic;
  letter-spacing: .04em;
}

.timeline {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 6.5rem 0 8.5rem;
  display: grid;
  grid-template-columns: auto minmax(5rem, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}
.timeline-point {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}
button.timeline-point { cursor: pointer; appearance: none; }
.timeline-point-now { text-align: right; }
.timeline-age {
  display: block;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.055em;
}
.timeline-point small {
  display: block;
  margin-top: .55rem;
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .12em;
}
.timeline-point-past { opacity: .58; transition: opacity .22s ease, transform .22s ease; }
.timeline-point-past:hover { opacity: 1; transform: translateX(-2px); }
.timeline-connector { min-width: 0; display: flex; align-items: center; gap: .75rem; color: var(--muted); }
.timeline-line {
  position: static;
  inset: auto;
  z-index: auto;
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), var(--accent), var(--line));
}
.timeline-arrow { flex: 0 0 auto; color: var(--accent); font-size: 1rem; }

:root:not([data-theme="dusk"]) .now-playing-backdrop img {
  opacity: .78;
  filter: blur(52px) saturate(1.18) brightness(1.04);
}
:root[data-theme="dusk"] .now-playing-backdrop img {
  opacity: .56;
  filter: blur(60px) saturate(.94) brightness(.72);
}
:root[data-theme="dusk"] .now-playing-shade {
  background:
    linear-gradient(180deg, rgba(12, 10, 34, .42), rgba(10, 9, 32, .66) 46%, rgba(7, 7, 25, .88)),
    rgba(15, 12, 42, .28);
}
@media (max-width: 850px) {
  .story-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .story h2 { max-width: 12em; }
  .story-copy { max-width: 42rem; }
}
@media (max-width: 560px) {
  .hero-scroll-cue { margin-top: 1.8rem; }
  .story { padding: 4.5rem 0 5rem; }
  .story-rule { margin-bottom: 1.6rem; }
  .story h2 { font-size: clamp(2.35rem, 12vw, 3.35rem); }
  .story-copy > p:not(.story-signature) { line-height: 1.86; }
  .timeline {
    grid-template-columns: auto minmax(2.75rem, 1fr) auto;
    gap: .7rem;
    padding: 4.8rem 0 7rem;
  }
  .timeline-age { font-size: clamp(1.65rem, 8.5vw, 2.2rem); }
  .timeline-point small { max-width: 7.5rem; font-size: .62rem; line-height: 1.5; letter-spacing: .07em; }
  .timeline-point-now small { margin-left: auto; }
}
@media (hover: none) {
  .timeline-point-past:hover { transform: none; }
  .hero-scroll-cue:hover { transform: none; }
}


/* 2026-10-03 · playlist polish and quieter closing chronology */
.section-head { align-items: start; }

.track-arrow {
  width: 2.05rem;
  height: 2.05rem;
  color: var(--accent);
  font-size: .72rem;
  line-height: 1;
  padding-left: .08rem;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.track-card:hover .track-arrow {
  transform: scale(1.06);
  background: var(--button);
  color: var(--button-text);
}

.closing-note {
  padding: 6.5rem 0 6rem;
  border-top: 1px solid var(--line);
}
.closing-note-inner {
  width: min(780px, 100%);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.25rem) 0 0;
}
.closing-note h2 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.closing-note-inner > p {
  max-width: 42rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.15rem);
  line-height: 2;
  text-wrap: pretty;
}
.closing-signature {
  display: inline-block;
  margin-top: 2.25rem;
  color: var(--accent-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  font-style: italic;
}

.timeline {
  width: min(590px, 100%);
  padding: 3.25rem 0 7.5rem;
  gap: clamp(.65rem, 2vw, 1.2rem);
}
.timeline-age {
  font-size: clamp(.82rem, 2vw, 1rem);
  font-weight: 650;
  letter-spacing: .045em;
  font-variant-numeric: tabular-nums;
}
.timeline-point-past { opacity: .48; }
.timeline-point-past:hover { opacity: .84; transform: none; }
.timeline-line {
  background: var(--line);
  opacity: .72;
}
.timeline-arrow {
  color: var(--muted);
  font-size: .76rem;
  opacity: .7;
}

@media (max-width: 560px) {
  .closing-note { padding: 4.75rem 0 4rem; }
  .closing-note-inner { padding-top: 1.4rem; }
  .closing-note h2 { font-size: clamp(2.35rem, 11vw, 3.25rem); }
  .track-card { min-height: 8.8rem; }
  .track-arrow { bottom: .85rem; }
  .timeline {
    grid-template-columns: auto minmax(2rem, 1fr) auto;
    padding: 2.5rem 0 6.5rem;
  }
  .timeline-age { font-size: .72rem; letter-spacing: .025em; }
}
@media (min-width: 360px) and (max-width: 460px) {
  .track-card { min-height: 8.9rem; }
}


/* Unified display settings control on desktop and mobile. */
.mobile-settings-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}
.header-controls {
  position: absolute;
  top: calc(100% + .35rem);
  right: clamp(1rem, 4vw, 4rem);
  z-index: 35;
  width: min(16rem, calc(100vw - 2rem));
  padding: .7rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .55rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: var(--panel);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-.35rem) scale(.985);
  transform-origin: top right;
  transition: opacity .18s ease, transform .18s ease, visibility .18s step-end;
}
.header-controls.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity .18s ease, transform .18s ease;
}
.theme-select {
  width: 100%;
  min-height: 48px;
}
.sound-toggle {
  width: 100%;
  min-height: 48px;
  justify-content: flex-start;
  padding: .7rem .75rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: var(--surface);
}
@media (max-width: 560px) {
  .header-controls { right: max(1rem, env(safe-area-inset-right)); }
}


/* Full-screen player: bottom-sheet transition from MiniPlayer to Now Playing. */
.now-playing {
  opacity: 1;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 100%, 0);
  border-radius: 1.65rem 1.65rem 0 0;
  overflow: hidden;
  will-change: transform, border-radius;
  transition:
    transform .48s cubic-bezier(.32,.72,0,1),
    border-radius .34s ease,
    visibility .48s step-end;
}
body.player-expanded .now-playing {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  border-radius: 0;
  transition:
    transform .5s cubic-bezier(.32,.72,0,1),
    border-radius .38s ease,
    visibility 0s step-start;
}
body.player-expanded .player-shell {
  transform: translate(-50%, 135%);
  opacity: 0;
  transition:
    transform .38s cubic-bezier(.32,.72,0,1),
    opacity .2s ease;
}
@media (prefers-reduced-motion: reduce) {
  .now-playing,
  body.player-expanded .now-playing { transition: none !important; }
}


/* 2026-10-03 · photo-led digital album + artwork-derived player palette */
:root {
  --art-dark-rgb: 18 27 53;
  --art-mid-rgb: 88 67 118;
  --art-warm-rgb: 207 105 126;
  --art-light-rgb: 236 196 188;
}

.hero {
  grid-template-columns: minmax(0, .9fr) minmax(22rem, 1.1fr);
  gap: clamp(3rem, 7vw, 7rem);
}
.hero-copy { max-width: 42rem; }
.hero h1 {
  font-size: clamp(3.75rem, 7.6vw, 7rem);
  line-height: .95;
}
.hero h1 .accent {
  color: var(--text);
  -webkit-text-stroke: 0;
  opacity: .93;
}

.hero-album {
  width: min(32rem, 100%);
  justify-self: end;
  display: block;
}
.album-stack {
  width: min(31rem, 100%);
  max-width: none;
  aspect-ratio: 1;
  margin: 0 0 0 auto;
  perspective: none;
}
.album-sheet { display: none !important; }

.album-cover {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / .16);
  border-radius: 1rem;
  background: #111827;
  box-shadow:
    0 34px 76px rgb(var(--art-dark-rgb) / .34),
    0 12px 30px rgb(var(--art-warm-rgb) / .12);
  transform: none;
  isolation: isolate;
}
.album-cover::before { display: none !important; }
.album-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(4 8 18 / .02) 32%, rgb(4 7 16 / .09) 60%, rgb(3 6 14 / .58) 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .07);
}
:root[data-theme="dusk"] .album-cover::after {
  background:
    linear-gradient(180deg, rgb(4 7 18 / .02) 30%, rgb(4 6 16 / .1) 59%, rgb(3 5 13 / .62) 100%);
}
.album-cover > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.03) contrast(1.015) brightness(.99);
}
.album-print {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: clamp(1.3rem, 4vw, 2.2rem);
  color: #fff;
  pointer-events: none;
}
.album-kicker,
.album-meta,
.album-edge,
.album-caption { display: none !important; }
.album-number {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(5.2rem, 9vw, 8rem);
  font-weight: 300;
  line-height: .76;
  letter-spacing: -.075em;
  text-shadow: 0 2px 26px rgb(0 0 0 / .24);
}
.album-title {
  margin: 1rem 0 0 .24rem;
  color: rgb(255 255 255 / .9);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: none;
}
.album-info {
  width: min(31rem, 100%);
  margin: 1.05rem 0 0 auto;
  display: grid;
  gap: .24rem;
  text-align: left;
}
.album-info-title {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 400;
  line-height: 1;
}
.album-info-meta {
  margin-top: .08rem;
  color: var(--muted);
  font-size: .82rem;
  letter-spacing: .08em;
}
.album-info-count {
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .04em;
}

body.sound-on .album-cover {
  animation: album-photo-float var(--album-float-duration) ease-in-out infinite;
}
@keyframes album-photo-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, var(--album-float-lift), 0); }
}

/* The current artwork quietly lends its palette to the player, while the page theme stays intact. */
.player-shell {
  color: #fff;
  border-color: rgb(var(--art-warm-rgb) / .22);
  background:
    linear-gradient(135deg,
      rgb(var(--art-dark-rgb) / .94),
      rgb(var(--art-mid-rgb) / .86));
  box-shadow:
    0 20px 60px rgb(var(--art-dark-rgb) / .42),
    0 0 0 1px rgb(var(--art-warm-rgb) / .05);
}
.player-meta strong { color: #fff; }
.player-meta span,
.progress-wrap,
.mini-expand-icon { color: rgb(255 255 255 / .68); }
.transport-button { color: rgb(255 255 255 / .76); }
.player-button {
  border-color: rgb(255 255 255 / .74);
  background: rgb(255 255 255 / .94);
  color: rgb(var(--art-dark-rgb));
}
.player-shell input[type="range"] { accent-color: rgb(var(--art-light-rgb)); }

.now-playing-backdrop {
  background:
    radial-gradient(circle at 15% 17%, rgb(var(--art-warm-rgb) / .44), transparent 43%),
    radial-gradient(circle at 82% 76%, rgb(var(--art-mid-rgb) / .48), transparent 52%),
    linear-gradient(145deg, rgb(var(--art-dark-rgb)), rgb(var(--art-mid-rgb) / .86));
}
:root[data-theme="dusk"] .now-playing-shade,
:root:not([data-theme="dusk"]) .now-playing-shade {
  background:
    linear-gradient(180deg,
      rgb(var(--art-dark-rgb) / .16),
      rgb(var(--art-dark-rgb) / .55) 48%,
      rgb(var(--art-dark-rgb) / .9)),
    rgb(var(--art-dark-rgb) / .12);
}
.now-playing-progress input[type="range"] { accent-color: rgb(var(--art-light-rgb)); }
.now-playing-play {
  border-color: rgb(255 255 255 / .7);
  background: rgb(255 255 255 / .92);
  color: rgb(var(--art-dark-rgb));
}

@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-album {
    width: 100%;
    justify-self: center;
  }
  .album-stack,
  .album-info {
    width: min(32rem, 86vw);
    margin-inline: auto;
  }
}
@media (max-width: 560px) {
  .hero { gap: 2.55rem; }
  .hero h1 { font-size: clamp(3.2rem, 15.5vw, 4.45rem); }
  .album-stack,
  .album-info { width: min(21.5rem, 86vw); }
  .album-cover { border-radius: .9rem; }
  .album-print { padding: 1.35rem; }
  .album-number { font-size: clamp(4.5rem, 23vw, 6.15rem); }
}
@media (min-width: 360px) and (max-width: 460px) {
  .album-stack,
  .album-info { width: min(21.5rem, 86vw); }
}


/* 2026-10-03 · final album cover correction */
.album-number {
  align-self: flex-start;
  margin: 0;
  transform: none;
}
.album-title {
  align-self: flex-start;
}
.album-print {
  justify-content: flex-end;
  align-items: flex-start;
}
.mini-player-open {
  grid-template-columns: auto minmax(0, 1fr);
}
.mini-expand-icon {
  display: none !important;
}


/* 2026-10-03 · match the approved Figma album artwork */
.album-cover {
  container-type: inline-size;
  border-radius: 1rem;
}
.album-cover > img {
  object-position: center center;
  filter: none;
}
.album-cover::after {
  display: block !important;
  background:
    linear-gradient(to bottom, rgb(0 0 0 / .34) 0%, rgb(0 0 0 / 0) 26.5625%),
    linear-gradient(to top, rgb(0 0 0 / .62) 0%, rgb(0 0 0 / 0) 42.1875%),
    rgb(9 17 31 / .12) !important;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08);
}
:root[data-theme="dusk"] .album-cover::after {
  background:
    linear-gradient(to bottom, rgb(0 0 0 / .34) 0%, rgb(0 0 0 / 0) 26.5625%),
    linear-gradient(to top, rgb(0 0 0 / .62) 0%, rgb(0 0 0 / 0) 42.1875%),
    rgb(9 17 31 / .12) !important;
}
.album-print {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  color: #fff;
  font-family: Inter, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  text-shadow: none;
}
.album-cover-brand,
.album-cover-date,
.album-number,
.album-title,
.album-cover-meta {
  position: absolute;
  display: block;
  margin: 0;
  white-space: nowrap;
}
.album-cover-brand {
  left: 6.5625cqw;
  top: 5.9375cqw;
  color: rgb(255 255 255 / .94);
  font-size: 2.03125cqw;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: .34375cqw;
}
.album-cover-date {
  right: 10.15625cqw;
  top: 6.25cqw;
  color: rgb(255 255 255 / .78);
  font-size: 1.71875cqw;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: .25cqw;
  text-align: right;
}
.album-number {
  left: 5.9375cqw;
  top: 66.25cqw;
  align-self: auto;
  color: rgb(255 255 255 / .98);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 19.375cqw;
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.703125cqw;
  text-shadow: none;
}
.album-title {
  left: 7.34375cqw;
  top: 88.4375cqw;
  align-self: auto;
  color: rgb(255 255 255 / .95);
  font-size: 2.1875cqw;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .40625cqw;
  text-transform: uppercase;
}
.album-cover-meta {
  right: 11.09375cqw;
  top: 89.6875cqw;
  color: rgb(255 255 255 / .68);
  font-size: 1.5625cqw;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .234375cqw;
  text-align: right;
}
.album-info { display: none !important; }
.album-caption-line {
  width: min(31rem, 100%);
  margin: 1rem 0 0 auto;
  color: rgb(189 204 227 / .74);
  font-family: Inter, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: .6875rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .1rem;
  text-transform: uppercase;
}
@media (max-width: 850px) {
  .album-caption-line {
    width: min(32rem, 86vw);
    margin-inline: auto;
  }
}
@media (max-width: 560px) {
  .album-caption-line {
    width: min(21.5rem, 86vw);
    margin-top: .85rem;
    font-size: .625rem;
    letter-spacing: .085rem;
  }
}


/* 2026-10-03 · pure-photo album with partially hidden vinyl */
.hero-album {
  width: min(34rem, 100%);
  justify-self: end;
  display: block;
  perspective: none;
}

.album-stack {
  position: relative;
  width: min(31rem, 100%);
  max-width: none;
  aspect-ratio: 1;
  margin: 0 0 0 auto;
  isolation: isolate;
  overflow: visible;
}

.album-sheet,
.album-print,
.album-caption-line,
.album-info {
  display: none !important;
}

/* A nearly full-size record sits behind the artwork, showing only an arc and a slim edge. */
.album-vinyl {
  position: absolute;
  z-index: 0;
  top: -8.5%;
  right: -5%;
  width: 88%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      #d7a798 0 3.2%,
      #201c25 3.3% 5%,
      #8e5e67 5.1% 14%,
      #151419 14.1% 16.5%,
      #090a0d 16.6% 100%);
  box-shadow:
    0 20px 46px rgb(7 8 15 / .34),
    0 5px 14px rgb(0 0 0 / .26),
    inset 0 0 0 1px rgb(255 255 255 / .06);
  pointer-events: none;
}

.album-vinyl::before {
  content: "";
  position: absolute;
  inset: 1.8%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      circle at 50% 50%,
      rgb(255 255 255 / .034) 0 1px,
      rgb(0 0 0 / 0) 1px 5px,
      rgb(0 0 0 / .11) 5px 6px,
      rgb(0 0 0 / 0) 6px 9px
    ),
    conic-gradient(
      from 212deg,
      rgb(255 255 255 / .055),
      transparent 7% 22%,
      rgb(255 255 255 / .035) 30%,
      transparent 38% 72%,
      rgb(255 255 255 / .045) 81%,
      transparent 90%
    );
  mix-blend-mode: screen;
  opacity: .72;
}

.album-vinyl::after {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .035);
  box-shadow:
    inset 0 0 0 1.35rem rgb(0 0 0 / .035),
    inset 0 0 0 2.7rem rgb(255 255 255 / .012);
}

.album-vinyl-label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at center,
      #17141b 0 10%,
      #efc2b0 11% 36%,
      #a26474 37% 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08);
}

.album-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / .14);
  border-radius: 1rem;
  background: #111827;
  box-shadow:
    0 34px 72px rgb(var(--art-dark-rgb) / .31),
    0 12px 26px rgb(0 0 0 / .16);
  transform: none !important;
  container-type: normal;
}

.album-cover::before {
  display: none !important;
}

.album-cover::after,
:root[data-theme="dusk"] .album-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  display: block !important;
  z-index: 1;
  pointer-events: none;
  background: transparent !important;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .045);
}

.album-cover > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: none !important;
}

.album-info-simple {
  width: min(31rem, 100%);
  margin: 1.22rem 0 0 auto;
  text-align: left;
}

.album-info-simple-title {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.72rem, 2.65vw, 2.18rem);
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.album-info-simple-subtitle {
  margin: .48rem 0 0;
  color: color-mix(in srgb, var(--text) 68%, transparent);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: .94rem;
  font-weight: 450;
  line-height: 1.25;
  letter-spacing: .055em;
}

body.sound-on .album-cover {
  animation: album-photo-float var(--album-float-duration) ease-in-out infinite;
}

body.sound-on .album-vinyl {
  animation: album-vinyl-breathe 7.5s ease-in-out infinite;
}

@keyframes album-vinyl-breathe {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1.4deg); }
  50% { transform: translate3d(.22rem, -.12rem, 0) rotate(.8deg); }
}

@media (prefers-reduced-motion: reduce) {
  body.sound-on .album-cover,
  body.sound-on .album-vinyl {
    animation: none !important;
  }
}

@media (max-width: 850px) {
  .hero-album {
    width: 100%;
    justify-self: center;
  }

  .album-stack,
  .album-info-simple {
    width: min(32rem, 86vw);
    margin-inline: auto;
  }

  .album-vinyl {
    top: -7.5%;
    right: -4.5%;
    width: 87%;
  }
}

@media (max-width: 560px) {
  .album-stack,
  .album-info-simple {
    width: min(21.5rem, 86vw);
  }

  .album-cover {
    border-radius: .9rem;
  }

  .album-vinyl {
    top: -7%;
    right: -4%;
    width: 86%;
  }

  .album-info-simple {
    margin-top: 1rem;
  }

  .album-info-simple-title {
    font-size: clamp(1.38rem, 6.2vw, 1.62rem);
    letter-spacing: -.025em;
  }

  .album-info-simple-subtitle {
    margin-top: .38rem;
    font-size: .86rem;
  }
}


/* Prevent the browser from preserving the previous song's lyric scroll anchor. */
.lyrics-scroll,
.now-playing-lyrics-mobile .lyrics-scroll {
  overflow-anchor: none;
}


/* 2026-10-04 · typography/layout tuned for the finalized long-form birthday copy */
.hero {
  grid-template-columns: minmax(0, .94fr) minmax(22rem, 1.06fr);
  gap: clamp(3rem, 6vw, 6rem);
}
.hero-copy {
  max-width: 38rem;
}
.hero h1 {
  max-width: 7.6em;
  font-size: clamp(3.45rem, 6.25vw, 5.95rem);
  line-height: 1.01;
  letter-spacing: -.058em;
}
.hero h1 .accent {
  margin-top: .08em;
}
.hero-lead {
  max-width: 30rem;
  margin-top: 1.7rem;
  font-size: clamp(1rem, 1.45vw, 1.12rem);
  line-height: 1.82;
}
.eyebrow {
  margin-bottom: 1.15rem;
  letter-spacing: .18em;
}

/* The birthday letter is much longer now, so give the reading column more room
   and keep the short title as a stable editorial anchor on desktop. */
.story {
  padding: clamp(6rem, 9vw, 8.5rem) 0 clamp(7rem, 10vw, 9.5rem);
}
.story-grid {
  grid-template-columns: minmax(10.5rem, .5fr) minmax(0, 1.5fr);
  gap: clamp(3rem, 7vw, 6.5rem);
}
.story h2 {
  position: sticky;
  top: 7.2rem;
  max-width: 5.5em;
  font-size: clamp(3rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.05em;
}
.story-copy {
  max-width: 46rem;
  padding: .2rem 0 .4rem clamp(1.5rem, 3vw, 2.6rem);
  border-left: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
}
.story-copy > p:not(.story-signature) {
  text-wrap: pretty;
}
.story-copy > p:first-child {
  max-width: 34rem;
  margin: 0 0 2.35rem;
  color: color-mix(in srgb, var(--text) 90%, var(--muted));
  font-size: clamp(1.1rem, 1.7vw, 1.25rem);
  font-weight: 560;
  line-height: 1.9;
  letter-spacing: .006em;
}
.story-copy > p:nth-child(2) {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  line-height: 2.08;
  letter-spacing: .012em;
  white-space: pre-line;
  text-wrap: pretty;
}
.story-signature:empty {
  display: none;
}

/* The closing copy now has three paragraphs; preserve the authored breaks
   and widen the measure slightly so it reads like an epilogue, not a caption. */
.closing-note {
  padding: clamp(6rem, 8vw, 7.5rem) 0 clamp(5rem, 7vw, 6.5rem);
}
.closing-note-inner {
  width: min(880px, 100%);
  padding-top: clamp(2rem, 4vw, 3.4rem);
}
.closing-note h2 {
  max-width: 8em;
  font-size: clamp(2.9rem, 5.4vw, 4.7rem);
  line-height: 1.04;
}
.closing-note-inner > p {
  max-width: 49rem;
  margin-top: 2.25rem;
  font-size: clamp(1.02rem, 1.45vw, 1.12rem);
  line-height: 2.05;
  letter-spacing: .01em;
  white-space: pre-line;
}
.closing-signature {
  margin-top: 2.6rem;
}

/* Long-form copy should remain comfortable on tablets and phones. */
@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    max-width: 39rem;
  }
  .hero h1 {
    max-width: 8.3em;
    font-size: clamp(3.25rem, 10.5vw, 5.6rem);
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 2.35rem;
  }
  .story h2 {
    position: static;
    max-width: none;
  }
  .story-copy {
    max-width: 44rem;
    padding-left: 1.35rem;
  }
}
@media (max-width: 560px) {
  .hero {
    padding-top: 2.5rem;
    gap: 2.25rem;
  }
  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.35rem);
    line-height: 1.03;
  }
  .hero-lead {
    margin-top: 1.35rem;
    font-size: .98rem;
  }
  .story {
    padding: 4.75rem 0 5.5rem;
  }
  .story h2 {
    font-size: clamp(2.55rem, 12vw, 3.45rem);
  }
  .story-copy {
    padding-left: 0;
    border-left: 0;
  }
  .story-copy > p:first-child {
    margin-bottom: 1.8rem;
    font-size: 1.04rem;
    line-height: 1.88;
  }
  .story-copy > p:nth-child(2) {
    font-size: .98rem;
    line-height: 1.98;
  }
  .closing-note {
    padding: 4.9rem 0 4.4rem;
  }
  .closing-note-inner {
    padding-top: 1.6rem;
  }
  .closing-note h2 {
    font-size: clamp(2.45rem, 11vw, 3.3rem);
  }
  .closing-note-inner > p {
    margin-top: 1.65rem;
    font-size: .98rem;
    line-height: 1.98;
  }
}


/* 2026-10-04 · align closing signature to the right edge */
.closing-signature {
  display: block;
  width: 100%;
  text-align: right;
}


/* 2026-10-04 · treat the addressee like the closing signature */
.story-grid {
  width: min(880px, 100%);
  margin: 0 auto;
  display: block;
}
.story-address,
.story h2.story-address {
  position: static;
  width: 100%;
  max-width: none;
  margin: 0 0 2.35rem;
  color: var(--accent-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .04em;
  text-align: left;
}
.story-copy {
  max-width: 49rem;
  margin: 0;
  padding-left: 0;
  border-left: 0;
}
@media (max-width: 560px) {
  .story-address,
  .story h2.story-address {
    margin-bottom: 1.8rem;
    font-size: 1rem;
  }
}


/* 2026-10-04 · larger letter addressee/signature */
.story-address,
.story h2.story-address,
.closing-signature {
  font-size: 1.36rem;
}
@media (max-width: 560px) {
  .story-address,
  .story h2.story-address,
  .closing-signature {
    font-size: 1.33rem;
  }
}


/* 2026-10-05 · player reading comfort and vertical-only text scrolling */
.now-playing-message-scroll,
.lyrics-scroll,
.now-playing-message-mobile-scroll,
.now-playing-lyrics-mobile .lyrics-scroll {
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  max-width: 100%;
}

#expandedNote {
  font-size: clamp(1.22rem, 2.65vw, 1.9rem);
  font-weight: 650;
  line-height: 1.68;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  #expandedNoteMobile {
    font-size: clamp(1.22rem, 5.4vw, 1.78rem);
    font-weight: 650;
    line-height: 1.62;
    overflow-wrap: anywhere;
  }
}


/* 2026-10-05 · editorial note layout: justified prose, distinct lyric quotations */
#expandedNote,
#expandedNoteMobile {
  white-space: normal;
}

.note-block,
.note-quote,
.note-quote-line {
  max-width: 100%;
}

.note-block {
  display: block;
  text-align: left;
}

.note-prose-long {
  text-align: justify;
  text-justify: inter-character;
  text-align-last: left;
}

.note-prose-short {
  text-align: left;
}

.note-block-gap {
  margin-top: 1.05em;
}

.note-quote {
  display: block;
  margin-block: .72em .82em;
  padding-left: .9em;
  border-left: 2px solid rgb(var(--art-light-rgb) / .58);
  color: rgba(255,255,255,.76);
  font-size: .9em;
  font-weight: 550;
  line-height: 1.58;
  letter-spacing: .005em;
  text-align: left;
}

.note-quote.note-block-gap {
  margin-top: 1.35em;
}

.note-quote-line {
  display: block;
  text-align: left;
}

@media (max-width: 760px) {
  .note-block-gap {
    margin-top: .92em;
  }
  .note-quote {
    margin-block: .62em .72em;
    padding-left: .78em;
    font-size: .92em;
    line-height: 1.56;
  }
  .note-quote.note-block-gap {
    margin-top: 1.15em;
  }
}


/* 2026-10-05 · clearer note paragraphs, translated lyrics, and a calmer hero greeting */
.note-block + .note-block {
  margin-top: .48em;
}
.note-block-gap {
  margin-top: 1.28em;
}
.note-quote {
  margin-block: .88em .98em;
}
.note-quote.note-block-gap {
  margin-top: 1.55em;
}

.lyric-original,
.lyric-translation {
  display: block;
  max-width: 100%;
}
.lyric-translation {
  margin-top: .28em;
  color: rgba(255,255,255,.56);
  font-size: .72em;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .01em;
}
.lyric-line.active .lyric-translation {
  color: rgba(255,255,255,.78);
}

.hero h1 {
  display: flex;
  flex-direction: column;
  gap: .62rem;
  max-width: 42rem;
}
.hero h1 > span:first-child {
  color: var(--accent-2);
  font-size: clamp(1.28rem, 2vw, 1.72rem);
  font-weight: 680;
  line-height: 1.2;
  letter-spacing: .08em;
}
.hero h1 .accent {
  margin-top: 0;
  font-size: clamp(3.7rem, 7.1vw, 6.35rem);
  line-height: .98;
  letter-spacing: -.052em;
  text-wrap: balance;
}

@media (max-width: 760px) {
  .note-block + .note-block {
    margin-top: .42em;
  }
  .note-block-gap {
    margin-top: 1.08em;
  }
  .note-quote.note-block-gap {
    margin-top: 1.32em;
  }
  .lyric-translation {
    margin-top: .24em;
    font-size: .75em;
    line-height: 1.46;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    gap: .5rem;
  }
  .hero h1 > span:first-child {
    font-size: 1.14rem;
    letter-spacing: .065em;
  }
  .hero h1 .accent {
    font-size: clamp(3.25rem, 14.4vw, 4.35rem);
    line-height: 1.01;
    letter-spacing: -.045em;
  }
}


/* 2026-10-05 · keep the mobile birthday headline on one line */
.hero h1 .accent {
  white-space: nowrap;
}
@media (max-width: 560px) {
  .hero h1 .accent {
    font-size: clamp(2.72rem, 11.55vw, 3.62rem);
    letter-spacing: -.052em;
  }
}


/* 2026-10-05 · lift the mobile note panel slightly for a tighter reading layout */
@media (max-width: 760px) {
  .now-playing.message-mode .now-playing-message-mobile {
    position: relative;
    top: -1.35rem;
  }
}


/* 2026-10-05 · dynamic player contrast for pale album artwork */
:root {
  --player-shade-top: .24;
  --player-shade-mid: .52;
  --player-shade-bottom: .82;
  --player-shade-base: .14;
  --player-backdrop-opacity: .68;
  --player-ink-rgb: 18 22 31;
}
.now-playing-backdrop img {
  opacity: var(--player-backdrop-opacity);
}
:root[data-theme="dusk"] .now-playing-shade,
:root:not([data-theme="dusk"]) .now-playing-shade {
  background:
    linear-gradient(180deg,
      rgb(var(--player-ink-rgb) / var(--player-shade-top)),
      rgb(var(--player-ink-rgb) / var(--player-shade-mid)) 48%,
      rgb(var(--player-ink-rgb) / var(--player-shade-bottom))),
    rgb(var(--player-ink-rgb) / var(--player-shade-base));
}


/* 2026-10-05 · align editorial headings and copy to one centered reading measure */
.story > .section-kicker,
.story-address,
.story h2.story-address,
.story-copy,
.closing-note > .section-kicker,
.closing-note h2,
.closing-note-inner > p {
  width: min(49rem, 100%);
  margin-left: auto;
  margin-right: auto;
}

.story-address,
.story h2.story-address {
  max-width: 49rem;
}

.story-copy {
  max-width: 49rem;
}

.closing-note h2 {
  max-width: 49rem;
}

.closing-note-inner > p {
  max-width: 49rem;
}


/* 2026-10-05 · keep play/pause glyph dark on pale artwork */
.now-playing-play,
.player-button {
  color: rgb(var(--player-ink-rgb)) !important;
}
