:root {
  --bg: #08080a;
  --surface: #121216;
  --ink: #f4f4f6;
  --muted: #8b8b96;
  --faint: rgba(255, 255, 255, .34);
  --line: rgba(255, 255, 255, .12);
  --accent: #ffffff;
  --radius: 14px;
}

* { box-sizing: border-box; }

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

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font: 400 16px/1.55 -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { background-color: transparent; }

/* The cover, blown up and blurred, is the page. Scaled past the edges so the
   blur never reveals a soft border. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--cover);
  background-size: cover;
  background-position: center;
  filter: blur(58px) saturate(1.9) brightness(.92);
  transform: scale(1.15);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(8, 8, 10, .12) 0%,
    rgba(8, 8, 10, .30) 55%,
    rgba(8, 8, 10, .58) 100%);
  z-index: -1;
}

a { color: inherit; text-decoration: none; }

.release {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 20px 56px;
}

.art-wrap {
  position: relative;
  isolation: isolate;
  margin-bottom: 28px;
}

.art-wrap::before {
  content: "";
  position: absolute;
  inset: 7%;
  background-image: var(--cover);
  background-size: cover;
  background-position: center;
  filter: blur(42px) saturate(1.9);
  opacity: .95;
  z-index: 0;
}

.art {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow:
    0 30px 80px -28px rgba(0, 0, 0, .85),
    0 0 0 1px rgba(255, 255, 255, .1),
    inset 0 1px 0 rgba(255, 255, 255, .14);
}

.meta { text-align: center; margin-bottom: 32px; }

.artist {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .76);
}

.title {
  margin: 0;
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.15;
  text-wrap: balance;
  color: var(--ink);
}

.dsps { display: flex; flex-direction: column; gap: 10px; }

.dsp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 18px;
  background: rgba(14, 14, 18, .42);
  backdrop-filter: blur(18px) saturate(1.7);
  -webkit-backdrop-filter: blur(18px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 11px;
  box-shadow:
    0 10px 34px -14px rgba(0, 0, 0, .75),
    inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: box-shadow .18s ease, transform .18s ease, filter .18s ease;
}

.dsp-logo { display: flex; flex: 0 0 auto; width: 30px; height: 30px; }
.dsp-logo svg { width: 100%; height: 100%; display: block; }
.dsp-name { flex: 1; font-size: 17px; font-weight: 550; letter-spacing: -.01em; }

/* Brand rows keep their own colour and set their own type colour, because
   white type fails contrast on Spotify green. Logos ride a white chip so they
   never vanish into a row of their own colour. */
.dsp[data-platform] {
  border-color: rgba(255, 255, 255, .2);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    0 12px 34px -14px rgba(0, 0, 0, .7),
    inset 0 1px 0 rgba(255, 255, 255, .28);
}

.dsp[data-platform] .dsp-logo {
  background: #fff;
  border-radius: 8px;
  padding: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .22);
}

.dsp[data-platform="spotify"] {
  background: linear-gradient(180deg, #1ED760 0%, #17A94A 100%);
  color: #04180C;
}
.dsp[data-platform="spotify"] .dsp-cta { background: #fff; color: #0A7A33; }

.dsp[data-platform="appleMusic"] {
  background: linear-gradient(180deg, #FB5C74 0%, #F0132C 100%);
  color: #fff;
}
.dsp[data-platform="appleMusic"] .dsp-cta { background: #fff; color: #C41024; }

.dsp[data-platform="youtube"] {
  background: linear-gradient(180deg, #FF2626 0%, #D10000 100%);
  color: #fff;
}
.dsp[data-platform="youtube"] .dsp-cta { background: #fff; color: #C10000; }

.dsp:hover, .dsp:focus-visible {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    0 16px 44px -14px rgba(0, 0, 0, .75),
    inset 0 1px 0 rgba(255, 255, 255, .38);
}

.dsp-cta {
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 9px 17px;
  border-radius: 100px;
  white-space: nowrap;
}

/* Signup: same glass as the rows above it, so it reads as part of the stack
   rather than an ad bolted onto the bottom. */
.signup {
  margin-top: 26px;
  padding: 22px 20px;
  background: rgba(14, 14, 18, .42);
  backdrop-filter: blur(18px) saturate(1.7);
  -webkit-backdrop-filter: blur(18px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 14px;
  box-shadow:
    0 10px 34px -14px rgba(0, 0, 0, .75),
    inset 0 1px 0 rgba(255, 255, 255, .12);
  text-align: center;
}

.signup h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.015em;
  line-height: 1.25;
  text-wrap: balance;
  color: var(--ink);
}

.signup p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .66);
}

.signup form { display: flex; gap: 8px; }

.signup input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  padding: 13px 15px;
  color: var(--ink);
  background: rgba(0, 0, 0, .3);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
}

.signup input::placeholder { color: rgba(255, 255, 255, .38); }
.signup input:focus { outline: none; border-color: rgba(255, 255, 255, .45); }

.signup button {
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 13px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s ease;
}

.signup button:hover { opacity: .88; }
.signup button:disabled { opacity: .5; cursor: not-allowed; }

.signup-msg { margin: 12px 0 0 !important; font-size: 13.5px; min-height: 1em; }
.signup-msg.ok { color: #7ee2a8; }
.signup-msg.err { color: #ff9b9b; }

.more { margin-top: 48px; }

.more h2 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  margin: 0 0 12px;
}

.more ul { list-style: none; margin: 0; padding: 0; }
.more li + li { border-top: 1px solid var(--line); }

.more a {
  display: block;
  padding: 12px 2px;
  color: rgba(255, 255, 255, .66);
  transition: color .16s ease;
}

.more a:hover { color: var(--ink); }

.foot {
  margin-top: 56px;
  text-align: center;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
}

.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: rgba(255, 255, 255, .6); }

/* Consent: blocking on arrival, both choices equally reachable. */
.consent {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 5, 8, .34);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: consent-in .22s ease both;
}

.consent-card {
  width: 100%;
  max-width: 400px;
  padding: 28px 26px 24px;
  text-align: center;
  background: rgba(20, 20, 25, .96);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
  animation: consent-rise .28s cubic-bezier(.2, .8, .3, 1) both;
}

.consent-gif {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
  margin: -4px auto 14px;
  border-radius: 10px;
}

.consent-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.02em;
  color: var(--ink);
}

.consent-card p {
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .68);
}

.consent-card a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255, 255, 255, .45);
}

.consent-actions { display: flex; gap: 10px; }

/* Godkänn owns a full row; refusing sits below, quieter but one click away —
   never a layer deeper. */
.consent-stack { flex-direction: column; }

.consent-secondary { display: flex; gap: 8px; }

.consent-stack > button:not(.primary) {
  font-size: 13.5px;
  font-weight: 550;
  padding: 12px;
  color: rgba(255, 255, 255, .6);
  border-color: rgba(255, 255, 255, .12);
}

.consent-stack > button:not(.primary):hover { color: rgba(255, 255, 255, .95); }

.consent-secondary button {
  font-size: 13.5px;
  font-weight: 550;
  padding: 11px 12px;
  color: rgba(255, 255, 255, .6);
  border-color: rgba(255, 255, 255, .12);
}

.consent-secondary button:hover { color: rgba(255, 255, 255, .95); }

.consent-lead { margin-bottom: 16px !important; }

.consent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.consent-row b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.consent-row span {
  display: block;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .55);
  margin-top: 2px;
}

.consent-row em {
  font-style: normal;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .45);
  white-space: nowrap;
}

.consent-row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  accent-color: #fff;
  cursor: pointer;
}

.consent-row:last-of-type { border-bottom: 1px solid rgba(255, 255, 255, .1); margin-bottom: 20px; }

.consent-actions button {
  flex: 1;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: transparent;
  color: rgba(255, 255, 255, .82);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.consent-actions button:hover { background: rgba(255, 255, 255, .08); color: var(--ink); }

.consent-actions button.primary {
  background: #fff;
  color: #08080a;
  border-color: #fff;
}

.consent-actions button.primary:hover { background: #e9e9ee; color: #08080a; }

@keyframes consent-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes consent-rise {
  from { opacity: 0; transform: translateY(14px) scale(.97) }
  to   { opacity: 1; transform: none }
}

@media (max-width: 520px) {
  .release { padding: 18px 12px 32px; }
  .art-wrap { margin-bottom: 20px; }
  .meta { margin-bottom: 22px; }
  .title { font-size: clamp(28px, 8.5vw, 38px); }
  .dsp { padding: 19px 18px; border-radius: 13px; }
  .dsp-logo { width: 32px; height: 32px; }
  .dsp-name { font-size: 18px; }
  .dsp-cta { font-size: 13px; padding: 10px 18px; }
  .signup { padding: 20px 16px; }
  .signup form { flex-direction: column; }
  .signup button { padding: 14px 20px; }
  .consent-card { padding: 26px 22px 22px; }
}

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