@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg: #07070f;
  --surface: rgba(255,255,255,0.035);
  --surface-hover: rgba(255,255,255,0.065);
  --border: rgba(255,255,255,0.08);
  --gold: #c9a96e;
  --gold-bright: #e8c98a;
  --gold-dim: rgba(201,169,110,0.25);
  --white: #eeeef6;
  --white-dim: rgba(238,238,246,0.65);
  --muted: #6060a0;
  --radius: 14px;
  --shadow: 0 24px 80px rgba(0,0,0,0.75);
  --shadow-gold: 0 8px 40px rgba(201,169,110,0.2);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(40,20,80,0.45) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 85% 0%, rgba(80,20,50,0.25) 0%, transparent 60%);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  animation: fadeIn 0.5s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* ── Nav bar ───────────────────────────────────── */
.nav-bar {
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.back-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.3px;
}
.back-link:hover { color: var(--white); }
.back-link .arrow { transition: transform 0.2s; display: inline-block; }
.back-link:hover .arrow { transform: translateX(-4px); }

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.5px;
}

/* ── Site header ───────────────────────────────── */
.site-header {
  padding: 72px 48px 56px;
  position: relative;
}
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 48px; right: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.site-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
}
.site-title em { font-style: italic; color: var(--gold-bright); }

.site-subtitle {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.3px;
}

.header-chips {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  letter-spacing: 0.8px;
}

/* ── Collection grid ───────────────────────────── */
.collection {
  padding: 72px 48px;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 48px;
  max-width: 1060px;
}

/* ── Album card ────────────────────────────────── */
.album-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  cursor: pointer;
}
.album-card:hover { transform: translateY(-8px); }

.card-visual {
  position: relative;
  width: 280px;
  height: 280px;
}

/* Vinyl disc peeking behind cover */
.vinyl-disc-card {
  position: absolute;
  right: -14px;
  top: 8px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #07070f 0%, #07070f 3.5%, transparent 3.5%),
    radial-gradient(circle at 50% 50%, transparent 14%, rgba(255,255,255,0.04) 14%, rgba(255,255,255,0.04) 14.5%, transparent 14.5%),
    repeating-radial-gradient(circle at 50% 50%,
      #0d0d1c 0px, #181826 1.2px, #0d0d1c 2.4px, #181826 3.6px, #0d0d1c 5px
    );
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 16px 60px rgba(0,0,0,0.7);
  transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 0;
}
.vinyl-disc-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 45%, rgba(0,0,0,0.15) 100%);
}
.album-card:hover .vinyl-disc-card {
  transform: translateX(36px) rotate(12deg);
}

.cover-frame {
  position: relative;
  z-index: 1;
  width: 270px;
  height: 270px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #141428;
  transition: box-shadow 0.35s ease;
}
.album-card:hover .cover-frame {
  box-shadow: var(--shadow), var(--shadow-gold);
}

.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.card-body {
  padding: 18px 4px 0;
}
.card-artist {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 7px;
}
.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 9px;
}
.card-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 6px;
}
.card-meta span::before { content: '·'; margin-right: 6px; }
.card-meta span:first-child::before { content: none; }

/* ── Album page hero ───────────────────────────── */
.album-hero {
  padding: 64px 48px 48px;
  display: flex;
  gap: 72px;
  align-items: flex-start;
  max-width: 1060px;
}

.album-visual {
  position: relative;
  width: 300px;
  flex-shrink: 0;
  height: 340px;
  cursor: pointer;
}

.vinyl-disc-page {
  position: absolute;
  top: 20px;
  left: 30px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #07070f 0%, #07070f 3.5%, transparent 3.5%),
    radial-gradient(circle at 50% 50%, transparent 0%, transparent 13.5%, rgba(255,255,255,0.04) 13.5%, rgba(255,255,255,0.04) 14.2%, transparent 14.2%),
    repeating-radial-gradient(circle at 50% 50%,
      #0c0c1b 0px, #17172a 1.3px, #0c0c1b 2.6px, #17172a 4px, #0c0c1b 5.4px
    );
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 20px 80px rgba(0,0,0,0.85);
  animation: spin 9s linear infinite;
  animation-play-state: paused;
  z-index: 0;
  transition: filter 0.3s;
}
.vinyl-disc-page::before {
  content: '';
  position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(130deg, rgba(255,255,255,0.07) 0%, transparent 40%, rgba(0,0,0,0.12) 100%);
}
.album-visual:hover .vinyl-disc-page { animation-play-state: running; }

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

.album-cover-large {
  position: relative;
  z-index: 1;
  width: 260px;
  height: 260px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.album-visual:hover .album-cover-large { transform: translateX(-18px) translateY(-10px); }


.hover-hint {
  position: absolute;
  bottom: 0; left: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.3s;
}
.album-visual:hover .hover-hint { opacity: 1; }

/* ── Album info ────────────────────────────────── */
.album-info { flex: 1; padding-top: 4px; }

.album-info .eyebrow { margin-bottom: 14px; }

.album-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 12px;
}

.album-artist-name {
  font-size: 17px;
  color: var(--white-dim);
  font-weight: 400;
  margin-bottom: 36px;
  letter-spacing: 0.3px;
}

.album-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}
.stat { display: flex; flex-direction: column; gap: 5px; }
.stat-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}
.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--white);
}

.album-description {
  font-size: 14px;
  line-height: 1.75;
  color: var(--white-dim);
  max-width: 420px;
  border-left: 2px solid var(--gold-dim);
  padding-left: 18px;
}

/* ── Tracklist ─────────────────────────────────── */
.tracklist-section {
  padding: 0 48px 100px;
  max-width: 1060px;
}

.tracklist-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.track {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  border-radius: 8px;
  transition: background 0.18s;
  cursor: default;
}
.track:nth-child(odd) { background: rgba(255,255,255,0.022); }
.track:hover { background: rgba(255,255,255,0.055); }

.track-num-wrap { position: relative; }
.track-num {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
  display: block;
  transition: opacity 0.15s;
  font-weight: 500;
}
.track-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.15s;
  color: var(--gold);
  font-size: 13px;
}
.track:hover .track-num { opacity: 0; }
.track:hover .track-icon { opacity: 1; }

.track-name {
  font-size: 14px;
  font-weight: 400;
  color: var(--white-dim);
  transition: color 0.18s;
  letter-spacing: 0.2px;
}
.track:hover .track-name { color: var(--white); }

/* ── Divider ───────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
  margin: 0 48px;
}

/* ── Feat / secondary track text ───────────────── */
.feat { color: var(--muted); font-size: 12px; }

/* ── Footer back link ───────────────────────────── */
.footer-back { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-back:hover { color: var(--white); }

/* ── Footer ────────────────────────────────────── */
.site-footer {
  padding: 32px 48px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.5px;
}

/* ── Responsive ────────────────────────────────── */
/* ── Track becomes clickable ───────────────────── */
.track { cursor: pointer; }

/* ── Equalizer bars ────────────────────────────── */
.eq-bars {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  gap: 2.5px;
  align-items: flex-end;
  height: 14px;
}
.eq-bar {
  width: 3px;
  border-radius: 1.5px;
  background: var(--gold);
  height: 4px;
  animation: eq 0.7s ease-in-out infinite alternate;
}
.eq-bar:nth-child(2) { animation-duration: 0.5s; animation-delay: 0.1s; }
.eq-bar:nth-child(3) { animation-duration: 0.9s; animation-delay: 0.2s; }
@keyframes eq { to { height: 14px; } }

.track.active { background: rgba(201,169,110,0.07) !important; }
.track.active .track-num { opacity: 0; }
.track.active .track-icon { opacity: 1; color: var(--gold); }
.track.active .track-name { color: var(--white) !important; }
.track.active.is-playing .track-icon { opacity: 0; }
.track.active.is-playing .eq-bars { display: flex; }

/* ── Player bar ────────────────────────────────── */
.player-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 76px;
  background: rgba(7,7,15,0.93);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid rgba(255,255,255,0.09);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 48px;
  z-index: 1000;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 220px;
  flex-shrink: 0;
  min-width: 0;
}
.player-thumb {
  width: 44px; height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.player-meta { overflow: hidden; }
.player-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-artist {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.ctrl {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  padding: 6px;
  transition: color 0.2s, transform 0.15s;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.ctrl:hover { color: var(--white); transform: scale(1.1); }
.ctrl.primary {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: #07070f;
  font-size: 16px;
  transition: background 0.2s, transform 0.15s;
}
.ctrl.primary:hover { background: var(--gold-bright); transform: scale(1.06); }

.player-scrubber {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.player-time {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}
.scrub-track {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  transition: height 0.15s;
}
.scrub-track:hover { height: 5px; }
.scrub-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  width: 0%;
  pointer-events: none;
  position: relative;
}
.scrub-thumb {
  position: absolute;
  right: -5px; top: 50%;
  transform: translateY(-50%);
  width: 11px; height: 11px;
  background: var(--gold-bright);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.15s;
}
.scrub-track:hover .scrub-thumb { opacity: 1; }

/* ── Hero controls ─────────────────────────────── */
.hero-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
}
.hero-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--white-dim);
  cursor: pointer;
  padding: 11px 16px;
  border-radius: 100px;
  font-size: 16px;
  font-family: inherit;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.hero-btn:hover {
  background: var(--surface-hover);
  color: var(--white);
  border-color: rgba(255,255,255,0.15);
  transform: scale(1.05);
}
.hero-btn.primary {
  background: var(--gold);
  color: #07070f;
  border-color: transparent;
  padding: 11px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  gap: 8px;
}
.hero-btn.primary:hover { background: var(--gold-bright); transform: scale(1.04); }

/* ── Volume control ─────────────────────────────── */
.volume-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 76px;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  transition: height 0.15s;
}
.vol-slider:hover { height: 5px; }
.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--gold-bright);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}
.volume-wrap:hover .vol-slider::-webkit-slider-thumb { opacity: 1; }
.vol-slider::-moz-range-thumb {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--gold-bright);
  cursor: pointer;
  border: none;
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 800px) {
  .site-header, .collection, .nav-bar,
  .tracklist-section, .album-hero, .site-footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  .album-hero {
    flex-direction: column;
    gap: 48px;
    padding-top: 40px;
  }
  .album-grid { gap: 40px; }
  .album-visual { margin: 0 auto; }
  .site-header::after { left: 24px; right: 24px; }
}

@media (max-width: 480px) {
  .album-stats { gap: 24px; }
  .stat-value { font-size: 22px; }
}
