:root {
  color-scheme: dark;
  --bg: #090708;
  --surface: #100c0e;
  --surface-raised: #171013;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.17);
  --text: #f7f3f4;
  --muted: #aaa0a3;
  --wine: #5a151f;
  --wine-light: #a33340;
  --spotify: #1ed760;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% -5%, rgba(105, 24, 35, 0.2), transparent 34rem),
    linear-gradient(180deg, #0b0809 0%, var(--bg) 80%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(116, 26, 39, 0.035), transparent);
}

.release {
  position: relative;
  width: 100%;
  padding: max(18px, env(safe-area-inset-top)) 18px max(42px, env(safe-area-inset-bottom));
}

.release-card {
  width: min(100%, 420px);
  margin: 0 auto;
}

.cover-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: #100d0e;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), 0 0 60px rgba(116, 26, 39, 0.08);
}

.cover-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.release-heading { padding: 21px 2px 16px; }

.eyebrow {
  margin: 0 0 7px;
  color: var(--wine-light);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.85rem, 8vw, 2.4rem);
  line-height: 1;
  letter-spacing: 0.105em;
  font-weight: 680;
}

.artist {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.player {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 10px 13px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.play {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: #f6f2f3;
  color: #110d0e;
  cursor: pointer;
}

.play svg { width: 20px; height: 20px; fill: currentColor; }
.play-icon { margin-left: 2px; }
.pause-icon { display: none; }
.player.is-playing .play-icon { display: none; }
.player.is-playing .pause-icon { display: block; }

.timeline-wrap { min-width: 0; }

.player-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #d4cdcf;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.time { color: #7f7679; font-variant-numeric: tabular-nums; }

.timeline {
  display: block;
  width: 100%;
  height: 3px;
  margin: 0;
  border-radius: 999px;
  appearance: none;
  background: linear-gradient(to right, var(--wine-light) var(--progress, 0%), rgba(255,255,255,.13) var(--progress, 0%));
  cursor: pointer;
}

.timeline::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  appearance: none;
  background: #eee8ea;
}
.timeline::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #eee8ea; }

.platforms { display: grid; gap: 10px; }

.platform {
  display: grid;
  grid-template-columns: 36px 1fr 24px;
  align-items: center;
  min-height: 66px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  color: var(--text);
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.platform:hover { transform: translateY(-1px); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.075); }
.platform:active { transform: scale(0.992); }
.platform:focus-visible, .social-links a:focus-visible, button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.platform--spotify {
  min-height: 72px;
  border-color: rgba(30, 215, 96, 0.48);
  background: var(--spotify);
  color: #06190c;
  box-shadow: 0 12px 34px rgba(30, 215, 96, 0.13);
}

.platform--spotify:hover { border-color: rgba(255,255,255,.5); background: #23e368; }

.platform-mark { display: grid; width: 28px; height: 28px; place-items: center; }
.platform-mark svg { width: 26px; height: 26px; fill: currentColor; }
.mark-youtube { color: #ff3a3a; }
.mark-apple { color: #f3eff0; }
.platform-badge { font-size: 0.76rem; font-weight: 800; letter-spacing: -0.04em; }

.platform-copy { display: grid; gap: 1px; }
.platform-copy small { font-size: 0.68rem; font-weight: 580; line-height: 1.15; opacity: 0.67; }
.platform-copy strong { font-size: 1.02rem; line-height: 1.25; }
.platform-open { justify-self: end; font-size: 1rem; opacity: 0.58; }

.socials {
  margin-top: 27px;
  padding: 22px 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.socials > p {
  margin: 0 0 13px;
  color: #756d70;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.social-links { display: flex; justify-content: center; gap: 10px; }

.social-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c9c1c3;
  font-size: 0.78rem;
  font-weight: 620;
  text-decoration: none;
}

.social-links a:hover { border-color: var(--line-strong); color: #fff; }
.social-links svg { width: 18px; height: 18px; fill: currentColor; }

footer {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px 0 0;
  color: #625b5e;
  font-size: 0.72rem;
}

.privacy-link {
  padding: 0;
  border: 0;
  background: none;
  color: #898083;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.consent {
  position: fixed;
  z-index: 10;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 12px;
  width: min(calc(100% - 24px), 620px);
  margin: 0 auto;
  padding: 12px 12px 12px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(20, 15, 17, 0.97);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
}

.consent:not([hidden]) { display: flex; align-items: center; gap: 14px; }
.consent p { flex: 1; margin: 0; color: #c7bec1; font-size: 0.75rem; line-height: 1.4; }
.consent-actions { display: flex; gap: 6px; }
.consent button, .privacy-actions button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 680;
  cursor: pointer;
}
.consent .consent-accept, .privacy-actions .consent-accept { border-color: #ece6e8; background: #ece6e8; color: #120e0f; }

.privacy {
  width: min(calc(100% - 32px), 520px);
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface-raised);
  color: var(--text);
  box-shadow: 0 30px 90px #000;
}
.privacy::backdrop { background: rgba(0, 0, 0, 0.76); backdrop-filter: blur(4px); }
.privacy-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.privacy h2 { margin: 0; font-size: 1.25rem; }
.privacy-head button { width: 38px; height: 38px; border: 0; background: none; color: #aaa0a3; font-size: 1.5rem; cursor: pointer; }
.privacy p { margin: 18px 0 0; color: #b8aeb1; font-size: 0.88rem; line-height: 1.65; }
.privacy-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }

@media (min-width: 760px) {
  .release { padding-top: 38px; padding-bottom: 70px; }
  .cover-wrap { border-radius: 16px; }
}

@media (max-width: 380px) {
  .release { padding-right: 14px; padding-left: 14px; }
  .release-heading { padding-top: 17px; padding-bottom: 13px; }
  .social-links a { padding-right: 10px; padding-left: 10px; }
  .consent { padding: 9px 9px 9px 11px; }
  .consent p { font-size: 0.68rem; }
  .consent-actions { gap: 4px; }
  .consent button { min-height: 34px; padding-right: 8px; padding-left: 8px; font-size: 0.7rem; }
}

@media (max-width: 420px) and (max-height: 700px) {
  .cover-wrap { width: min(100%, 38svh); margin-right: auto; margin-left: auto; }
  .release-heading { padding-top: 14px; padding-bottom: 11px; }
  .eyebrow { margin-bottom: 5px; }
  .artist { margin-top: 6px; }
  .player { margin-bottom: 10px; }
}

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