:root {
  --ink: #10100f;
  --paper: #e8e4d8;
  --acid: #dfff00;
  --muted: #8c8a82;
  --line: rgba(232, 228, 216, 0.18);
}

* { box-sizing: border-box; }

html { color-scheme: dark; scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--paper);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { color: inherit; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.035;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.shell { width: min(1400px, calc(100% - 64px)); margin: 0 auto; }

.masthead {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.masthead p { margin: 0; color: var(--muted); }
.wordmark { color: var(--paper); text-decoration: none; font-weight: 500; }
.wordmark span { color: var(--acid); }

.album {
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: minmax(420px, 0.96fr) minmax(480px, 1.04fr);
  gap: clamp(60px, 8vw, 140px);
  align-items: center;
  padding: 72px 0 88px;
}

.art-wrap { width: min(100%, 620px); }

.art {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--acid);
  color: var(--ink);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
}

.art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 55%, rgba(16, 16, 15, 0.12));
  pointer-events: none;
}

.art-copy {
  position: absolute;
  z-index: 2;
  inset: 6% auto auto 6%;
  display: grid;
  font-size: clamp(52px, 7.3vw, 112px);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.085em;
}

.art-copy span:nth-child(2) { margin-left: 0.6em; }

.orbit {
  position: absolute;
  border: 1px solid rgba(16, 16, 15, 0.55);
  border-radius: 50%;
  transition: transform 700ms cubic-bezier(.2,.8,.2,1);
}

.orbit-one { width: 72%; height: 72%; right: -25%; bottom: -18%; }
.orbit-two { width: 46%; height: 46%; right: -11%; bottom: -5%; }
body.playing .orbit-one { animation: spin 9s linear infinite; }
body.playing .orbit-two { animation: spin-reverse 6s linear infinite; }

.center-mark {
  position: absolute;
  z-index: 3;
  width: 13%;
  aspect-ratio: 1;
  right: 9%;
  bottom: 9%;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.center-mark i { width: 9%; aspect-ratio: 1; background: var(--ink); border-radius: 50%; }
.edition { position: absolute; left: 6%; bottom: 5%; font: 500 10px/1 "DM Mono", monospace; letter-spacing: .14em; }

.album-info { max-width: 680px; }
.eyebrow { display: flex; justify-content: space-between; color: var(--muted); font: 400 10px/1 "DM Mono", monospace; letter-spacing: .18em; }

h1 {
  margin: 32px 0 22px;
  font-size: clamp(66px, 8vw, 132px);
  font-weight: 600;
  line-height: 0.79;
  letter-spacing: -0.075em;
}

.artist { margin: 0; color: var(--acid); font: 400 clamp(14px, 1.3vw, 20px)/1 "DM Mono", monospace; letter-spacing: .32em; }
.rule { height: 1px; margin: 52px 0 28px; background: var(--line); }

.now-playing { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.status { color: var(--muted); font: 400 9px/1 "DM Mono", monospace; letter-spacing: .16em; }
.now-playing h2 { margin: 10px 0 0; font-size: clamp(20px, 2vw, 30px); font-weight: 500; letter-spacing: -0.03em; }
.track-count { color: var(--muted); font: 400 11px/1 "DM Mono", monospace; }

.player { margin-top: 26px; }
.transport { display: flex; align-items: center; gap: 10px; }
.icon-button, .play-button { border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.icon-button { width: 40px; height: 40px; background: transparent; }
.icon-button:hover { color: var(--acid); }
.icon-button svg { width: 18px; fill: currentColor; }
.play-button { width: 62px; height: 62px; flex: 0 0 auto; background: var(--paper); color: var(--ink); transition: transform 180ms ease, background 180ms ease; }
.play-button:hover { transform: scale(1.04); background: var(--acid); }
.play-button:active { transform: scale(.98); }
.play-button svg { width: 23px; fill: currentColor; }
.pause-icon { display: none; }
body.playing .play-icon { display: none; }
body.playing .pause-icon { display: block; }

.timeline { flex: 1; min-width: 120px; margin-left: 14px; }
input[type="range"] {
  width: 100%; height: 16px; margin: 0; appearance: none; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 1px; background: linear-gradient(to right, var(--acid) var(--progress, 0%), var(--line) var(--progress, 0%)); }
input[type="range"]::-moz-range-track { height: 1px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 1px; background: var(--acid); }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 9px; height: 9px; margin-top: -4px; border-radius: 50%; background: var(--acid); }
input[type="range"]::-moz-range-thumb { width: 9px; height: 9px; border: 0; border-radius: 50%; background: var(--acid); }
.time { display: flex; justify-content: space-between; margin-top: 5px; color: var(--muted); font: 400 9px/1 "DM Mono", monospace; }
.error { min-height: 1em; margin: 12px 0 0; color: #ff786e; font: 400 10px/1.4 "DM Mono", monospace; }

.track-section { padding: 80px 0 120px; border-top: 1px solid var(--line); }
.section-label { display: flex; justify-content: space-between; margin-bottom: 30px; color: var(--muted); font: 400 10px/1 "DM Mono", monospace; letter-spacing: .16em; }
.section-label h2 { margin: 0; color: var(--paper); font: inherit; }
.tracklist { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.track {
  width: 100%; min-height: 82px; padding: 0;
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 20px; align-items: center;
  border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer;
  transition: padding 180ms ease, color 180ms ease, background 180ms ease;
}
.track:hover { padding: 0 18px; background: rgba(232, 228, 216, .035); }
.track.active { color: var(--acid); }
.track.active .track-number::before { content: "▶"; font-size: 8px; margin-right: 8px; }
.track-number, .track-duration { color: var(--muted); font: 400 10px/1 "DM Mono", monospace; }
.track.active .track-number, .track.active .track-duration { color: var(--acid); }
.track-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(16px, 1.8vw, 24px); font-weight: 500; letter-spacing: -.025em; }

footer { min-height: 110px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font: 400 9px/1 "DM Mono", monospace; letter-spacing: .14em; }

button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }

@media (max-width: 900px) {
  .shell { width: min(100% - 36px, 680px); }
  .masthead { height: 74px; }
  .album { min-height: 0; grid-template-columns: 1fr; gap: 54px; padding: 36px 0 80px; }
  .art-wrap { width: 100%; }
  h1 { font-size: clamp(62px, 20vw, 114px); }
  .track-section { padding: 64px 0 90px; }
}

@media (max-width: 520px) {
  .shell { width: calc(100% - 28px); }
  .art-copy { font-size: 18.5vw; }
  .rule { margin-top: 38px; }
  .transport { gap: 2px; }
  .play-button { width: 56px; height: 56px; }
  .timeline { margin-left: 8px; }
  .track { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; min-height: 72px; }
  footer span:nth-child(2) { display: none; }
}

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