:root {
  color-scheme: dark;
  --background: #11121c;
  --panel: #1d1e2d;
  --ink: #fbf5ed;
  --muted: #bcb9cc;
  --line: #343445;
  --accent: #ffc476;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--background); }
main { width: min(100% - 64px, 1060px); margin-inline: auto; padding: 52px 0 155px; }
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.hero {
  display: flex; align-items: end; gap: clamp(22px, 5vw, 58px); padding: clamp(24px, 4vw, 44px);
  border-radius: 23px; border: 1px solid #4a415a;
  background: radial-gradient(ellipse at 10% 10%, #473157, transparent 75%), linear-gradient(140deg, #29253c, #1e2030);
}
.cover-frame { width: clamp(122px, 22vw, 226px); aspect-ratio: 1; flex: none; }
.cover, .artwork { display: block; width: 100%; height: 100%; border-radius: 10px; object-fit: cover; }
.artwork {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  color: #282239; box-shadow: 0 14px 30px #110b1c80;
  background:
    radial-gradient(circle at 50% 47%, #ffe2a3 0 21%, transparent 21.5%),
    repeating-linear-gradient(0deg, transparent 0 6px, #211a4025 6px 7px),
    linear-gradient(164deg, #737097 2%, #be7790 42%, #f3a675 68%, #3a3455 69% 77%, #252038 78%);
}
.artwork span { font-family: Georgia, serif; font-size: clamp(35px, 6vw, 78px); font-weight: 700; letter-spacing: -.09em; padding-right: .09em; }
.artwork small { font-size: 10px; font-weight: 800; letter-spacing: .22em; color: #ffebb9; }
.hero-copy { min-width: 0; }
.kicker { color: #e8c6a3; font-size: .74rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; }
h1 { font-size: clamp(2.25rem, 6vw, 5.4rem); line-height: .99; letter-spacing: -.066em; margin: .3em 0 .26em; overflow-wrap: anywhere; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: .86rem; }
.description { line-height: 1.5; max-width: 55ch; }
.action { color: var(--accent); font-weight: 650; }
nav { margin-bottom: 20px; }
.play { display: grid; place-items: center; border: none; border-radius: 50%; background: var(--accent); color: #211622; flex-shrink: 0; }
.play:hover { filter: brightness(1.14); }
.play-mark { width: 0; height: 0; border-block: 7px solid transparent; border-left: 11px solid currentColor; margin-left: 3px; }
.is-playing .play-mark { width: 10px; height: 13px; border: 0; border-inline: 3px solid currentColor; margin-left: 0; }
.hero-play { width: 52px; height: 52px; }
.list-heading, .track { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding-inline: 12px; }
.list-heading { color: var(--muted); margin-top: 30px; border-bottom: 1px solid var(--line); padding-bottom: 9px; font-size: .76rem; }
.list-heading span:first-child { justify-self: center; }
.tracks { list-style: none; margin: 0; padding: 5px 0 0; }
.track { min-height: 69px; border-radius: 10px; border-bottom: 1px solid #ffffff0a; }
.track:hover, .track.is-active { background: #ffffff0a; }
.track.is-active h2 { color: var(--accent); }
.track-icon { position: relative; width: 44px; height: 44px; justify-self: center; }
.track-art, .mini-art { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 9px; color: #f8cda7; background: linear-gradient(150deg, #583c65, #342946); font: 700 .73rem ui-monospace, monospace; }
.row-play { position: absolute; inset: 0; width: 44px; height: 44px; background: #513b59; color: #ffe2ae; border-radius: 9px; }
.track-title h2 { font-size: .97rem; overflow-wrap: anywhere; line-height: 1.25; margin-bottom: 4px; }
.track-title span, .pending { color: var(--muted); font-size: .78rem; }
.track-actions { display: flex; flex-wrap: wrap; gap: 10px; font-size: .8rem; justify-content: end; }
.empty { margin-top: 24px; color: var(--muted); }
.player-bar {
  position: fixed; inset: auto 0 0; display: grid; grid-template-columns: minmax(120px, 1fr) auto minmax(200px, 1fr);
  align-items: center; gap: 24px; padding: 14px max(24px, calc((100% - 1040px) / 2)) max(14px, env(safe-area-inset-bottom)); background: #202130;
  box-shadow: 0 -8px 36px #07071080; border-top: 1px solid #3e3e51;
}
.now-playing { display: flex; align-items: center; min-width: 0; gap: 10px; }
.mini-art { width: 42px; height: 42px; flex: none; font-size: 1rem; }
.now-copy { display: grid; min-width: 0; gap: 4px; font-size: .83rem; }
.now-copy > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-copy small, .timeline { color: var(--muted); }
.transport { display: flex; align-items: center; gap: 5px; }
.skip { display: grid; place-items: center; width: 44px; height: 44px; padding: 0 0 3px; border: 0; background: transparent; font-size: 1.65rem; }
.skip:disabled { opacity: .4; cursor: default; }
.transport-play { width: 44px; height: 44px; }
.timeline { display: grid; grid-template-columns: 2.5em minmax(50px, 1fr) 2.5em; align-items: center; gap: 7px; font-size: .72rem; font-variant-numeric: tabular-nums; }
.timeline input { width: 100%; margin: 0; accent-color: var(--accent); }
.timeline span:last-child { text-align: right; }
.player-message { grid-column: 1 / -1; font-size: .8rem; color: var(--accent); }
.player-message:empty { display: none; }
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; margin-top: 1.6rem; }
.photos img { width: 100%; height: auto; border-radius: 12px; }
@media (max-width: 650px) {
  main { width: calc(100% - 28px); padding-top: 14px; }
  .hero { flex-direction: column; align-items: stretch; padding: 20px; gap: 19px; }
  .cover-frame { align-self: center; width: min(52vw, 200px); }
  .artwork span { font-size: 60px; }
  .hero-actions { gap: 12px; }
  .list-heading, .track { gap: 9px; padding-inline: 4px; }
  .list-heading { margin-top: 21px; }
  .track-actions { max-width: 84px; }
  .player-bar { grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; row-gap: 9px; padding-inline: 14px; }
  .timeline { grid-column: 1 / -1; }
}

.lyrics { grid-column: 1 / -1; padding: 0 0 4px; min-width: 0; }
.lyrics summary {
  color: var(--accent); cursor: pointer; font-size: .78rem; font-weight: 680;
  width: fit-content; padding: 6px 10px; border-radius: 5px; margin: 0 0 5px 56px;
}
.lyrics summary:hover { background: #ffffff0a; }
.track:has(.lyrics) { row-gap: 2px; padding-top: 9px; }
.lyrics-body {
  background: radial-gradient(ellipse at top right, #553d54, transparent 80%), #282335;
  border-radius: 15px; padding: clamp(22px, 5vw, 52px);
  margin: 3px 0 10px; border: 1px solid #554a63;
  animation: lyrics-appear .25s ease-out both;
}
.verse + .verse { margin-top: clamp(26px, 5vw, 46px); }
.verse h3 { margin: 0 0 7px; color: #edb883; text-transform: uppercase; font-size: .69rem; letter-spacing: .12em; }
.verse p { white-space: pre-line; font-size: clamp(1.04rem, 2.35vw, 1.6rem); font-weight: 620; line-height: 1.56; }
@keyframes lyrics-appear {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .lyrics-body { animation: none; } }
