:root {
  --bg: #12100e;
  --surface: #1c1916;
  --surface-hover: #262119;
  --text: #f2ede4;
  --text-muted: #948c7e;
  --accent: #e8a33d;
  --accent-dim: #a3763a;
  --border: #2c2822;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --player-height: 92px;
}

* { box-sizing: border-box; }

html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  padding-bottom: calc(var(--player-height) + env(safe-area-inset-bottom, 0px));
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0 6vw 64px;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  /* Vesper to Eden brand backdrop: dusk fading into golden Eden light.
     Overridden inline by script.js with the active track's cover once playback starts. */
  background-image:
    radial-gradient(circle at 18% 12%, rgba(232,163,61,0.30), transparent 55%),
    linear-gradient(158deg, #201530 0%, #33204a 20%, #4d2c4c 40%, #7a3f45 60%, #b0653a 78%, #e8a33d 100%);
  background-size: cover;
  background-position: center;
  filter: saturate(1.1) brightness(0.6);
  transform: scale(1.15);
  transition: background-image 1.2s ease, filter 1.2s ease;
}

.hero__backdrop[style*="url("] {
  filter: blur(28px) saturate(1.15) brightness(0.55);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,16,14,0.35) 0%, rgba(18,16,14,0.55) 55%, rgba(18,16,14,0.96) 100%);
}

.hero__content {
  position: relative;
  max-width: 640px;
}

.hero__eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 18px;
  font-weight: 500;
}

.hero__title {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 22px;
  color: var(--text);
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 0 32px;
}

.hero__play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: #1a1408;
  border: none;
  padding: 14px 26px;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.hero__play:hover { background: #f0b458; }
.hero__play:active { transform: scale(0.98); }
.hero__play:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.hero__play-icon { font-size: 0.75rem; }

/* ---------- Artist sections ---------- */

.artist-section {
  padding: 72px 6vw;
  border-top: 1px solid var(--border);
}

.artist-section__header {
  margin-bottom: 36px;
}

.artist-section__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin: 0 0 8px;
}

.artist-section__tagline {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
  max-width: 520px;
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}

.release-card {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  text-align: left;
  color: inherit;
  font-family: inherit;
}

.release-card__cover-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface);
}

.release-card__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.release-card:hover .release-card__cover { transform: scale(1.04); }

.release-card__play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18,16,14,0.35);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.release-card:hover .release-card__play-overlay,
.release-card:focus-visible .release-card__play-overlay { opacity: 1; }

.release-card__play-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1408;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.release-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.release-card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 14px 0 2px;
}

.release-card__type {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.release-card__buy {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.release-card__buy:hover {
  border-bottom-color: var(--accent);
}

/* ---------- Tracklist (expanded) ---------- */

.tracklist {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.tracklist__header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tracklist__header-meta {
  flex: 1;
  min-width: 0;
}

.tracklist__buy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.tracklist__buy:hover {
  background: var(--accent);
  color: #1a1408;
}

.tracklist__cover {
  width: 84px;
  height: 84px;
  object-fit: cover;
  flex-shrink: 0;
}

.tracklist__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  margin: 0 0 4px;
}

.tracklist__type {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.track-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 10px;
  border-radius: 3px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  color: inherit;
  font-family: var(--sans);
}

.track-row:hover { background: var(--surface-hover); }
.track-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.track-row__index {
  width: 22px;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: right;
  flex-shrink: 0;
}

.track-row__icon {
  width: 22px;
  text-align: center;
  color: var(--accent);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.track-row__title {
  font-size: 0.98rem;
}

.track-row.is-active .track-row__title { color: var(--accent); }

.track-row--free {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.track-row__play {
  display: flex;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  color: inherit;
  font-family: var(--sans);
  cursor: pointer;
  padding: 0;
  flex: 1;
  min-width: 0;
  text-align: left;
}

.track-row__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.track-row__by {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.track-row__play:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.track-row__download {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.track-row__download:hover { background: var(--accent); color: #1a1408; }
.track-row__download:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Roster note ---------- */

.roster-note {
  margin: 0;
  padding: 0 6vw 8px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .roster-note { padding: 0 5vw 8px; }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px 6vw 56px;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

.site-footer p { margin: 0; }

/* ---------- Sticky player ---------- */

.player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--player-height);
  padding: 0 20px calc(env(safe-area-inset-bottom, 0px));
  background: rgba(28,25,22,0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto minmax(200px, 1.4fr) auto;
  align-items: center;
  gap: 24px;
  z-index: 50;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.player.is-visible { transform: translateY(0); }

.player__track {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.player__cover {
  width: 48px;
  height: 48px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface);
}

.player__meta { min-width: 0; }

.player__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player__artist {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player__controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.player__btn {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player__btn:hover { background: var(--surface-hover); }
.player__btn:focus-visible { outline: 2px solid var(--accent); }

.player__btn--toggle {
  background: var(--accent);
  color: #1a1408;
  width: 42px;
  height: 42px;
}

.player__btn--toggle:hover { background: #f0b458; }

.player__progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.player__time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  width: 38px;
  flex-shrink: 0;
}

.player__time:last-child { text-align: right; }

.player__progress,
.player__vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  cursor: pointer;
}

.player__progress::-webkit-slider-thumb,
.player__vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

.player__progress::-moz-range-thumb,
.player__vol-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}

.player__volume {
  display: none;
  align-items: center;
  gap: 8px;
  width: 110px;
}

.player__vol-icon { font-size: 0.9rem; }

@media (min-width: 720px) {
  .player__volume { display: flex; }
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  .hero { min-height: 64vh; padding: 0 5vw 44px; }
  .artist-section { padding: 52px 5vw; }

  .player {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    height: auto;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    row-gap: 8px;
  }
  .player__progress-wrap { grid-column: 1 / -1; order: 3; }
  .player__volume { display: none; }
  :root { --player-height: 84px; }
}
