* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: #0d0d0d;
  color: #fff;
  min-height: 100vh;
}

a {
  color: inherit;
}

/* ── Layout ─────────────────────────────────────── */
.layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: 100vh;
  max-width: 1020px;
  margin: 0 auto;
}

/* ── Left panel ─────────────────────────────────── */
.panel-left {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  gap: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

img.cover {
  width: 100%;
  max-width: 250px;
  border-radius: 10px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.95);
  margin-bottom: 4px;
}

h1 {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 0.73rem;
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.38);
}

audio {
  width: 100%;
  max-width: 270px;
  height: 36px;
  opacity: 0.8;
}

.controls {
  display: flex;
  gap: 10px;
}

button {
  padding: 9px 20px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  transition: all 0.2s ease;
  letter-spacing: 0.03em;
}

button:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

button:active {
  transform: scale(0.96);
}

/* ── Right panel ─────────────────────────────────── */
.panel-right {
  overflow-y: auto;
  max-height: 100vh;
  padding: 0 48px 48px;
}

.landing-page {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 36%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.05), transparent 28%),
    #0d0d0d;
}

.landing-layout {
  max-width: 1100px;
}

.landing-panel-left {
  gap: 18px;
}

.landing-logo {
  width: 100%;
  max-width: 260px;
  object-fit: contain;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.55));
}

.landing-copy {
  max-width: 290px;
  font-size: 0.92rem;
  line-height: 1.7;
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
}

.landing-panel-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.landing-header {
  margin-top: 56px;
}

.landing-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
}

.landing-track {
  text-decoration: none;
}

.landing-track .track-name,
.landing-track .track-composer,
.landing-track .num {
  transition: color 0.15s ease;
}

.landing-track:hover .num {
  color: rgba(255, 255, 255, 0.58);
}

.landing-track.current {
  background: rgba(255, 255, 255, 0.06);
}

.tracklist-spacer {
  height: 52px;
}

.tracklist-header {
  position: sticky;
  top: 0;
  background: #0d0d0d;
  z-index: 1;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
  padding: 5px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 4px;
}

/* ── Tracks ─────────────────────────────────────── */
.track {
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 16px;
  padding: 11px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.track:hover {
  background: rgba(255, 255, 255, 0.055);
}

.track.current {
  background: rgba(255, 255, 255, 0.08);
}

.track-num {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 16px;
  grid-row: 1 / 3;
}

.num {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.28);
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', 'Menlo', monospace;
}

.track.current .num {
  display: none;
}

/* ── Equalizer bars ──────────────────────────────── */
.eq-bars {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.eq-bars span {
  display: block;
  width: 3px;
  background: #fff;
  border-radius: 1px;
  height: 4px;
}

.track.current .eq-bars {
  display: flex;
}

.track.current.playing .eq-bars span:nth-child(1) {
  animation: eq1 0.9s ease-in-out infinite;
}
.track.current.playing .eq-bars span:nth-child(2) {
  animation: eq2 0.7s ease-in-out infinite;
}
.track.current.playing .eq-bars span:nth-child(3) {
  animation: eq3 0.85s ease-in-out infinite;
}

@keyframes eq1 {
  0%, 100% { height: 4px; }
  50%       { height: 14px; }
}
@keyframes eq2 {
  0%, 100% { height: 12px; }
  50%      { height: 4px; }
}
@keyframes eq3 {
  0%, 100% { height: 7px; }
  33%      { height: 14px; }
  66%      { height: 3px; }
}

.track-name {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-composer {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.28);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track:hover .track-name {
  color: rgba(255, 255, 255, 0.9);
}

.track.current .track-name {
  font-weight: 600;
  color: #fff;
}

/* ── Mobile ──────────────────────────────────────── */
@media (max-width: 680px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: 100vh;
    min-height: 0;
  }

  .panel-left {
    position: static;
    height: auto;
    padding: 28px 24px 20px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  img.cover {
    max-width: 130px;
  }

  .panel-right {
    overflow-y: auto;
    max-height: none;
    padding: 0 20px 36px;
  }

  .landing-logo {
    max-width: 200px;
  }

  .landing-copy {
    max-width: none;
  }

  .landing-header {
    margin-top: 18px;
  }
}
