:root { color-scheme: dark; --bg: #0c0d14; --ink: #f5f0e9; --muted: #898995; --accent: #bda8eb; --player-height: 150px; --system-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; background: var(--bg); }
body { font-family: var(--system-font); color: var(--ink); overflow-x: hidden; }
button, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; font: inherit; }
button:disabled { cursor: wait; opacity: .45; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.atmosphere { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.glow { position: absolute; width: 65vw; height: 65vw; max-width: 950px; max-height: 950px; border-radius: 50%; filter: blur(85px); opacity: .15; }
.glow-one { left: -22%; top: -38%; background: #665587; }
.glow-two { right: -25%; bottom: -48%; background: #284f62; }
.halo { width: min(68vw, 820px); aspect-ratio: 1; position: absolute; top: calc((100% - var(--player-height)) / 2); left: 50%; transform: translate(-50%, -50%); border: 1px solid #ffffff04; border-radius: 50%; box-shadow: 0 0 100px 40px #a28aca03, inset 0 0 100px #a28aca03; }
.stage { position: relative; min-height: calc(100svh - var(--player-height)); padding: 40px clamp(24px, 7vw, 130px) 75px; display: grid; place-items: center; }
.lyric-wrap { width: 100%; max-width: 1280px; text-align: center; }
#lyric, .intro-title { margin: 0; font-family: var(--system-font); font-size: clamp(2.3rem, 5.3vw, 5.5rem); font-weight: 500; line-height: 1.2; letter-spacing: -.035em; text-wrap: balance; color: var(--ink); }
#lyric { opacity: 0; will-change: opacity, transform; }
.emphasis { color: var(--ink); font-weight: 800; text-transform: uppercase; }
.emphasis, .life-phrase { will-change: color; }
#intro, #outro { will-change: opacity, transform; }
#intro[hidden], #outro[hidden] { display: none; }
.intro-title { max-width: 1050px; margin-inline: auto; font-weight: 600; }
.intro-artist { margin: 22px 0 0; color: #b6b0c4; font-size: clamp(1rem, 1.6vw, 1.3rem); font-weight: 400; letter-spacing: .045em; }
.intro-dedication { margin: 0; font-size: clamp(1.5rem, 3.7vw, 3.5rem); font-weight: 500; letter-spacing: -.025em; }
.credit-text { margin: 0; font-size: clamp(1.25rem, 3vw, 2.8rem); font-weight: 400; line-height: 1.3; letter-spacing: -.02em; text-wrap: balance; }
.pulse { position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%); height: 21px; display: flex; gap: 5px; align-items: center; opacity: .35; }
.pulse span { width: 2px; height: 4px; background: var(--accent); border-radius: 3px; transform-origin: center; }
body.playing .pulse span { animation: pulse 1.05s ease-in-out infinite alternate; }
.pulse span:nth-child(2) { animation-delay: -.7s; }.pulse span:nth-child(3) { animation-delay: -.3s; }.pulse span:nth-child(4) { animation-delay: -.9s; }.pulse span:nth-child(5) { animation-delay: -.5s; }
@keyframes pulse { to { height: 19px; opacity: .8; } }
.player { position: fixed; z-index: 2; bottom: 0; left: 0; width: 100%; min-height: var(--player-height); padding: 22px clamp(20px, 5vw, 80px) calc(20px + env(safe-area-inset-bottom)); background: #11121cec; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-top: 1px solid #ffffff0d; }
.progress-row { display: flex; align-items: center; gap: 20px; max-width: 1380px; margin: 0 auto 15px; }
.time { color: #a3a1af; font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .04em; min-width: 35px; }
.time:last-child { text-align: right; }
.range { --fill: 0%; appearance: none; -webkit-appearance: none; height: 24px; padding: 0; margin: 0; background: transparent; cursor: pointer; border-radius: 6px; }
.range::-webkit-slider-runnable-track { height: 3px; border-radius: 4px; background: linear-gradient(to right, var(--accent) 0 var(--fill), #373640 var(--fill) 100%); }
.range::-moz-range-track { height: 3px; border-radius: 4px; background: #373640; }
.range::-moz-range-progress { height: 3px; background: var(--accent); border-radius: 4px; }
.range::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 11px; height: 11px; margin-top: -4px; border: 0; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px #bda8eb0a; }
.range::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: var(--ink); }
.seek { flex: 1; min-width: 0; }.volume { width: 73px; --fill: 100%; }
.controls-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; max-width: 1380px; margin: auto; }
.player-state { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; letter-spacing: .07em; min-width: 0; }
#state { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.state-dot { width: 5px; height: 5px; border-radius: 50%; background: #615f6d; flex-shrink: 0; }
body.playing .state-dot { background: var(--accent); box-shadow: 0 0 10px #bda8eb55; }
.transport { display: flex; align-items: center; gap: 23px; }
.icon-button { border: 0; width: 40px; height: 40px; display: grid; place-items: center; padding: 8px; color: #9e9ba8; border-radius: 50%; background: transparent; transition: color .2s, background .2s; }
.icon-button:hover { color: var(--ink); background: #ffffff07; }
.icon-button[aria-pressed="true"] { color: var(--accent); background: #bda8eb12; }
button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.play-button { width: 54px; height: 54px; border: 1px solid #ffffff18; border-radius: 50%; background: var(--ink); color: #171520; display: grid; place-items: center; transition: transform .2s, background .2s; }
.play-button svg { width: 24px; height: 24px; }.play-button:hover { transform: scale(1.05); background: #fff; }.play-button:active { transform: scale(.96); }
.extras { justify-self: end; display: flex; gap: 13px; align-items: center; }.volume-control { display: flex; align-items: center; gap: 5px; }
@media (max-width: 640px) {
  :root { --player-height: 146px; }
  .stage { padding: 28px 26px 66px; min-height: calc(100svh - var(--player-height) - env(safe-area-inset-bottom)); }
  #lyric, .intro-title { font-size: clamp(2rem, 8.7vw, 3rem); line-height: 1.23; }
  .intro-artist { margin-top: 18px; }
  .intro-dedication { font-size: clamp(1.4rem, 6.5vw, 2.2rem); }
  .credit-text { font-size: clamp(1.2rem, 5.7vw, 1.8rem); }
  .player { padding: 17px 19px calc(18px + env(safe-area-inset-bottom)); }
  .progress-row { gap: 13px; margin-bottom: 13px; }
  .controls-row { gap: 4px; grid-template-columns: 1fr auto 1fr; }
  .player-state { font-size: 10px; letter-spacing: .02em; gap: 6px; }
  .transport { gap: 7px; }.extras { gap: 0; }.volume { display: none; }.icon-button { width: 35px; height: 40px; padding: 6px; }
  .play-button { width: 50px; height: 50px; }.pulse { bottom: 32px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  :root { --player-height: 112px; }.player { padding-top: 8px; padding-bottom: 10px; }.progress-row { margin-bottom: 2px; }.stage { padding: 18px 8vw 36px; }#lyric, .intro-title { font-size: clamp(1.6rem, 4.8vh, 3rem); }.intro-artist { margin-top: 12px; font-size: .9rem; }.intro-dedication { font-size: 1.4rem; }.credit-text { font-size: 1.2rem; }.pulse { bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { .pulse span { animation: none !important; }button { transition: none !important; } }
