:root {
  color-scheme: dark;
  --ink: #fffaf1;
  --muted: rgba(255, 250, 241, 0.7);
  --quiet: rgba(255, 250, 241, 0.48);
  --line: rgba(255, 250, 241, 0.16);
  --glass: rgba(23, 28, 38, 0.5);
  --shadow: 0 42px 120px rgba(5, 8, 14, 0.5);
  --sunset: #e7b16e;
  --sunset-soft: #f4d2a6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans", "Noto Sans JP", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(245, 193, 123, 0.18), transparent 42%),
    linear-gradient(180deg, #111b2a 0%, #263343 38%, #b98156 68%, #342b43 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 62%, rgba(255, 221, 171, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(8, 12, 20, 0.18), rgba(8, 12, 20, 0.64)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.025));
}

body.is-playing {
  background:
    radial-gradient(ellipse at 50% 42%, rgba(250, 205, 139, 0.25), transparent 45%),
    linear-gradient(180deg, #131f31 0%, #2a3a4d 38%, #c58d5e 68%, #3a304c 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.ambient span {
  position: fixed;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 246, 224, 0.36);
  box-shadow: 0 0 18px rgba(255, 218, 168, 0.28);
  animation: drift 18s linear infinite;
  z-index: -1;
}

.ambient span:nth-child(1) { left: 12%; top: 24%; animation-delay: -2s; }
.ambient span:nth-child(2) { left: 32%; top: 72%; animation-delay: -8s; }
.ambient span:nth-child(3) { left: 58%; top: 18%; animation-delay: -5s; }
.ambient span:nth-child(4) { left: 78%; top: 62%; animation-delay: -10s; }
.ambient span:nth-child(5) { left: 90%; top: 36%; animation-delay: -3s; }

@keyframes drift {
  from { transform: translate3d(0, 30px, 0); opacity: 0; }
  25% { opacity: 0.6; }
  to { transform: translate3d(-38px, -92px, 0); opacity: 0; }
}

.page {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(78px, 12vw, 150px) 0 56px;
}

.hero {
  min-height: clamp(480px, 72vh, 760px);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: clamp(30px, 8vw, 72px) 0 clamp(36px, 6vw, 72px);
}

.album-page {
  width: min(1100px, calc(100% - 40px));
}

.album-hero {
  min-height: clamp(680px, 88vh, 920px);
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 520px);
  align-items: center;
  justify-items: stretch;
  gap: clamp(34px, 7vw, 92px);
  text-align: left;
}

.album-copy {
  display: grid;
  justify-items: start;
}

.album-cover-wrap {
  margin: 0;
  position: relative;
}

.album-cover-wrap::before {
  content: "";
  position: absolute;
  inset: 8%;
  z-index: -1;
  border-radius: 34px;
  background: rgba(231, 177, 110, 0.24);
  filter: blur(54px);
}

.album-cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(255, 250, 241, 0.18);
  border-radius: 28px;
  box-shadow: 0 42px 120px rgba(5, 8, 14, 0.58);
}

.eyebrow,
.label,
.section-title {
  color: var(--quiet);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-family: "Hiragino Mincho ProN", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(56px, 11vw, 122px);
  line-height: 0.96;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.title-cn {
  margin-bottom: 20px;
  color: rgba(255, 249, 238, 0.84);
  font-size: clamp(25px, 4.5vw, 42px);
  letter-spacing: 0.16em;
}

.subtitle {
  color: var(--muted);
  font-size: 15px;
}

.horizon {
  width: min(168px, 40vw);
  height: 1px;
  margin-top: clamp(42px, 8vw, 74px);
  background: linear-gradient(90deg, transparent, rgba(255, 250, 241, 0.78), transparent);
  box-shadow: 0 0 40px rgba(244, 210, 166, 0.45);
}

.glass {
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.048)),
    var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(30px) saturate(1.08);
}

.player-card {
  padding: clamp(28px, 5vw, 52px);
}

.track-meta {
  display: grid;
  gap: 8px;
  margin-bottom: 34px;
}

.track-meta h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 650;
}

.track-meta p {
  margin-bottom: 0;
  color: var(--muted);
}

.track-list {
  display: grid;
  gap: 16px;
}

.album-track-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.track-panel {
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(255, 250, 241, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.track-panel.is-active {
  border-color: rgba(244, 210, 166, 0.36);
  background: rgba(255, 255, 255, 0.085);
  transform: translateY(-1px);
}

.track-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}

.track-heading strong {
  color: var(--ink);
  font-weight: 700;
}

.controls {
  display: grid;
  gap: 24px;
}

.play-button,
.button-like {
  width: 100%;
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(255, 249, 238, 0.2);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.94);
  color: #1d2531;
  box-shadow: 0 18px 45px rgba(7, 11, 19, 0.22), inset 0 1px rgba(255, 255, 255, 0.72);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.play-button:hover {
  transform: translateY(-2px);
  background: #fff9ee;
  box-shadow: 0 22px 56px rgba(7, 11, 19, 0.3), inset 0 1px rgba(255, 255, 255, 0.75);
}

.play-button:focus-visible,
.download-row a:focus-visible,
.progress:focus-visible {
  outline: 2px solid rgba(255, 250, 241, 0.82);
  outline-offset: 4px;
}

.play-symbol {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
}

.track-panel.is-active .play-symbol {
  width: 12px;
  height: 14px;
  border-top: 0;
  border-bottom: 0;
  border-left: 4px solid currentColor;
  border-right: 4px solid currentColor;
}

.time-row {
  display: grid;
  grid-template-columns: 58px 1fr 58px;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.progress {
  width: 100%;
  accent-color: var(--sunset);
  cursor: pointer;
}

.progress::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sunset-soft) var(--progress, 0%), rgba(255, 249, 238, 0.16) var(--progress, 0%));
}

.progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: #fffaf1;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.28);
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.download-row a {
  padding: 10px 14px;
  border: 1px solid rgba(255, 249, 238, 0.16);
  border-radius: 999px;
  color: rgba(255, 249, 238, 0.74);
  font-size: 13px;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.download-row a:hover {
  color: var(--ink);
  border-color: rgba(255, 249, 238, 0.34);
  background: rgba(255, 255, 255, 0.04);
}

.letter {
  margin-top: 34px;
  padding: clamp(34px, 6vw, 66px);
}

.section-title {
  margin-bottom: 34px;
}

.letter-body {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 249, 238, 0.86);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 2.08;
}

.letter-body p {
  margin-bottom: 1.1em;
}

.signature {
  margin-top: 28px;
  text-align: right;
}

.note {
  padding: 44px 0 18px;
  color: rgba(255, 249, 238, 0.54);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.note p {
  margin-bottom: 4px;
}

.footer {
  padding: 0 18px 42px;
  color: rgba(255, 249, 238, 0.72);
  text-align: center;
  letter-spacing: 0.1em;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: reveal 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal:nth-of-type(2) { animation-delay: 120ms; }
.reveal:nth-of-type(3) { animation-delay: 220ms; }
.reveal:nth-of-type(4) { animation-delay: 320ms; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 24px, 900px);
    padding-top: 36px;
  }

  .hero {
    min-height: 520px;
  }

  .album-page {
    width: min(100% - 24px, 900px);
  }

  .album-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 38px;
    text-align: center;
  }

  .album-copy {
    justify-items: center;
  }

  .album-cover {
    border-radius: 22px;
  }

  .album-track-list {
    grid-template-columns: 1fr;
  }

  .glass {
    border-radius: 24px;
  }

  .player-card,
  .letter {
    padding-inline: 22px;
  }

  .time-row {
    grid-template-columns: 42px 1fr 42px;
    gap: 10px;
    font-size: 12px;
  }

  .letter-body {
    line-height: 1.92;
  }

  .download-row a {
    flex: 1 1 150px;
    text-align: center;
  }

  .track-heading {
    display: grid;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
