@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@500;600&family=Zen+Maru+Gothic:wght@400;500;700&display=swap");

:root {
  --ink: #fffaf7;
  --glass: rgba(20, 17, 28, 0.58);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #17141e; }
body {
  color: var(--ink);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
}
a { -webkit-tap-highlight-color: transparent; }

.release-page {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.background {
  position: fixed;
  z-index: -2;
  inset: 0;
  background: url("./background.jpg") center 48% / cover no-repeat;
  transform: scale(1.015);
}

.release-page::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, transparent 22%, rgba(24, 16, 33, 0.2) 68%),
    linear-gradient(180deg, rgba(13, 20, 45, 0.15), rgba(25, 13, 30, 0.45));
}

.release-card {
  width: min(100%, 440px);
  height: 100svh;
  margin: 0 auto;
  padding:
    max(20px, env(safe-area-inset-top))
    clamp(22px, 6vw, 32px)
    max(14px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 1.15svh, 12px);
}

.eyebrow {
  margin: 0 0 clamp(1px, 0.5svh, 6px);
  font-family: "DM Sans", sans-serif;
  font-size: clamp(11px, 1.7svh, 15px);
  font-weight: 500;
  letter-spacing: 0.48em;
  line-height: 1;
  text-indent: 0.48em;
  text-shadow: 0 2px 18px rgba(20, 12, 30, 0.55);
}

.artwork-wrap {
  width: min(61vw, 268px, 31svh);
  aspect-ratio: 1;
  padding: 1px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: clamp(18px, 4vw, 27px);
  background: linear-gradient(145deg, rgba(255,255,255,.3), rgba(255,255,255,.04));
  box-shadow: 0 24px 60px rgba(16, 9, 27, 0.38), 0 2px 14px rgba(255, 190, 213, 0.25);
  overflow: hidden;
}

.artwork {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.track-copy { text-align: center; text-shadow: 0 2px 18px rgba(20, 12, 30, 0.55); }
.track-copy h1 {
  margin: 0;
  font-size: clamp(24px, 4.1svh, 38px);
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: -0.025em;
}

.listen-links {
  width: min(100%, 342px);
  display: grid;
  gap: clamp(7px, 0.95svh, 10px);
}

.listen-button {
  width: 100%;
  min-height: 46px;
  height: clamp(46px, 6.3svh, 56px);
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  display: grid;
  grid-template-columns: 29px 1fr 29px;
  align-items: center;
  color: white;
  background: var(--glass);
  box-shadow: 0 10px 24px rgba(15, 8, 24, 0.22);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  font-family: "DM Sans", sans-serif;
  font-size: clamp(15px, 2.2svh, 18px);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.listen-button:hover { background: rgba(30, 23, 39, 0.72); border-color: rgba(255,255,255,.68); }
.listen-button:active { transform: scale(0.975); }
.listen-button:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.listen-button svg { width: 25px; height: 25px; }
.listen-button.apple {
  background:
    linear-gradient(90deg, rgba(89, 26, 74, 0.52), rgba(169, 65, 120, 0.5)),
    var(--glass);
}
.listen-button.spotify svg { color: #1ed760; }
.listen-button.youtube svg { color: #ff2135; }
.arrow { justify-self: end; color: rgba(255,255,255,.7); font-size: 17px; }

.video-frame {
  width: min(100%, 342px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: clamp(12px, 3vw, 18px);
  background: #000;
  box-shadow: 0 14px 36px rgba(15, 8, 24, 0.3);
}
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (min-width: 700px) {
  .release-page::after {
    content: "";
    position: fixed;
    z-index: -1;
    inset: 0;
    background: rgba(4, 6, 18, 0.18);
    pointer-events: none;
  }
  .release-card {
    border-inline: 1px solid rgba(255,255,255,.08);
    background: rgba(18,14,28,.07);
    box-shadow: 0 0 100px rgba(15,9,30,.24);
  }
}

@media (max-height: 690px) and (orientation: portrait) {
  .release-card {
    gap: 7px;
    padding-top: max(11px, env(safe-area-inset-top));
    padding-bottom: max(9px, env(safe-area-inset-bottom));
  }
  .artwork-wrap { width: min(56vw, 31svh); }
  .track-copy h1 { font-size: 22px; }
  .listen-links { gap: 6px; }
  .listen-button { height: 44px; min-height: 44px; }
}

@media (orientation: landscape) and (max-height: 520px) {
  .release-page { min-height: 100vh; overflow: auto; }
  .release-card { min-height: 520px; height: auto; }
}

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