:root {
  color-scheme: dark;
  --ink: #fff8ee;
  --muted: rgba(255, 248, 238, 0.72);
  --panel: rgba(24, 13, 29, 0.72);
  --panel-strong: rgba(17, 8, 22, 0.9);
  --hot: #ff4f75;
  --gold: #ffd36a;
  --mint: #81f2d8;
  --line: rgba(255, 255, 255, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #100711;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

.backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 79, 117, 0.32), transparent 34%),
    radial-gradient(circle at 88% 20%, rgba(129, 242, 216, 0.22), transparent 30%),
    linear-gradient(135deg, #17071a 0%, #230d1d 44%, #0d111c 100%);
  z-index: -3;
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 6, 14, 0.82), rgba(12, 6, 14, 0.26) 48%, rgba(12, 6, 14, 0.82));
  z-index: 2;
}

.collage {
  position: absolute;
  inset: -12vh -8vw;
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: clamp(14px, 2vw, 28px);
  transform: rotate(-8deg) scale(1.08);
  opacity: 0.58;
  z-index: 1;
}

.collage-b {
  inset: auto -10vw -18vh -5vw;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  transform: rotate(9deg) scale(1.06);
  opacity: 0.38;
}

.collage span {
  min-height: clamp(190px, 26vw, 360px);
  border: 8px solid rgba(255, 248, 238, 0.86);
  border-bottom-width: 30px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  animation: floaty 9s ease-in-out infinite;
}

.collage span:nth-child(1) { background: linear-gradient(135deg, #f45672, #ffcf6b); animation-delay: -1s; }
.collage span:nth-child(2) { background: linear-gradient(135deg, #6fe6ce, #5236a8); transform: translateY(8vh); animation-delay: -4s; }
.collage span:nth-child(3) { background: linear-gradient(135deg, #f9f0d1, #ff7864 62%, #1a1021); animation-delay: -2s; }
.collage span:nth-child(4) { background: linear-gradient(135deg, #0f2234, #4bd9c1 56%, #ffd36a); transform: translateY(5vh); animation-delay: -6s; }
.collage span:nth-child(5) { background: linear-gradient(135deg, #2d102e, #ff4f75 52%, #fff0b8); animation-delay: -3s; }

.grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 5px 5px;
  mix-blend-mode: overlay;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 66px) 0 44px;
}

.hero {
  min-height: min(710px, calc(100vh - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.kicker {
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--mint);
  background: rgba(255, 255, 255, 0.07);
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.3rem, 12vw, 9.8rem);
  line-height: 0.82;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 16px 60px rgba(0, 0, 0, 0.5);
}

h1 span {
  display: block;
  color: var(--gold);
  font-style: italic;
  text-shadow: 0 0 28px rgba(255, 211, 106, 0.28);
}

.tagline {
  max-width: 600px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1.6;
}

.deck {
  width: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)), var(--panel);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
}

.record-wrap {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.record {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, #111 0 3px, #19151c 4px 7px),
    radial-gradient(circle at 50% 50%, transparent 0 17%, #08070a 17.3% 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.05), 0 24px 70px rgba(0, 0, 0, 0.55);
  animation: spin 4.7s linear infinite;
  animation-play-state: paused;
}

.record.is-playing {
  animation-play-state: running;
}

.record-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 25deg, transparent, rgba(255, 255, 255, 0.12), transparent 20%, transparent 52%, rgba(255, 255, 255, 0.08), transparent 66%);
}

.record-label {
  position: absolute;
  inset: 34%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, #fff5c7 0 10%, #ff4f75 11% 53%, #ffd36a 54% 100%);
  color: #180914;
  text-align: center;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.16);
}

.record-label strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 4vw, 3.1rem);
  line-height: 1;
}

.record-label small {
  font-size: 0.67rem;
  font-weight: 900;
}

.tonearm {
  position: absolute;
  top: 9%;
  right: 8%;
  width: 34%;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f2ead8, #a0999b);
  transform-origin: 88% 50%;
  transform: rotate(-28deg);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  transition: transform 420ms cubic-bezier(.2,.8,.2,1);
}

.tonearm::before {
  content: "";
  position: absolute;
  right: -22px;
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #d8d0c6;
}

.tonearm::after {
  content: "";
  position: absolute;
  left: -8px;
  bottom: -18px;
  width: 30px;
  height: 24px;
  border-radius: 4px;
  background: #19161d;
}

.tonearm.is-playing {
  transform: rotate(-8deg);
}

.now-playing {
  margin-top: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 14px;
  align-items: start;
}

.now-playing span {
  grid-row: span 2;
  color: var(--gold);
  font-weight: 900;
  font-size: 1rem;
}

.now-playing h2,
.now-playing p {
  margin: 0;
}

.now-playing h2 {
  min-height: 2lh;
  font-size: clamp(1.28rem, 2.8vw, 2rem);
  line-height: 1.05;
}

.now-playing p {
  color: var(--muted);
}

.player {
  margin-top: -42px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.transport {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.icon-btn,
.play-btn,
.track {
  border: 0;
  color: var(--ink);
  cursor: pointer;
}

.icon-btn {
  width: 48px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 2rem;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease;
}

.play-btn {
  min-width: 148px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hot), var(--gold));
  color: #170712;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(255, 79, 117, 0.25);
  transition: transform 180ms ease, filter 180ms ease;
}

.icon-btn:hover,
.play-btn:hover,
.track:hover {
  transform: translateY(-2px);
}

.timeline {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  margin: 24px 0 22px;
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.timeline span:last-child {
  text-align: right;
}

#duration,
.track-time {
  cursor: pointer;
  user-select: none;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}

.playlist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.track {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  text-align: left;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.track.is-active {
  border-color: rgba(255, 211, 106, 0.72);
  background: rgba(255, 211, 106, 0.13);
}

.track-number {
  width: 34px;
  color: var(--gold);
  font-weight: 900;
}

.track-title {
  min-width: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.track-time {
  color: var(--muted);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.track-time.is-revealed {
  color: var(--gold);
}

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

@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -16px; }
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 22px, 620px);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .deck {
    max-width: 430px;
    margin: 0 auto;
  }

  .player {
    margin-top: 18px;
  }

  .playlist {
    grid-template-columns: 1fr;
  }

  .collage {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .collage span {
    min-height: 170px;
    border-width: 6px;
    border-bottom-width: 24px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(3.9rem, 21vw, 5.3rem);
  }

  .tagline {
    margin-top: 20px;
  }

  .deck,
  .player {
    padding: 16px;
  }

  .transport {
    gap: 10px;
  }

  .play-btn {
    min-width: 132px;
  }

  .timeline {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
  }
}

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