@font-face {
  font-family: Benzin;
  src: url("./assets/benzin-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("./assets/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

* { box-sizing: border-box; }
:root {
  color-scheme: dark;
  background: #0d0d0d;
  color: #fff;
  font-family: Manrope, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body { margin: 0; isolation: isolate; }
.ambience {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
  background: #0d0d0d;
}
.still, .field { position: absolute; inset: 0; width: 100%; height: 100%; }
.field { display: block; }
main {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}
.song {
  position: relative;
  /* One unit carries the approved 1920 × 1080 geometry to smaller viewports. */
  --u: min(1px, max(.68px, .09259259vh), calc((100vw - 48px) / 450));
  --u: min(1px, max(.68px, .09259259svh), calc((100vw - 48px) / 450));
  width: calc(450 * var(--u));
  max-width: 100%;
  min-width: 0;
}
.lane-mark {
  width: calc(48 * var(--u));
  height: auto;
  display: block;
  margin: 0 auto calc(73 * var(--u));
}
.artwork, .sleeve { width: 100%; aspect-ratio: 1; }
.sleeve {
  background: #0d0d0d;
  position: relative;
  overflow: hidden;
  border-radius: calc(40 * var(--u));
}
.cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.details { margin-top: calc(32 * var(--u)); }
h1, .artist { margin: 0; overflow-wrap: anywhere; }
h1 {
  position: relative;
  top: calc(3 * var(--u));
  font: 400 max(1.25rem, calc(30 * var(--u))) / calc(40 * var(--u)) Benzin, sans-serif;
  color: #fff;
}
.artist {
  margin-top: calc(9 * var(--u));
  font: 400 max(1rem, calc(22 * var(--u))) / calc(32 * var(--u)) Manrope, sans-serif;
  color: #868686;
}
.artist:empty { display: none; }
.action { margin-top: calc(35 * var(--u)); }
.open-lane {
  display: flex;
  width: 100%;
  min-height: max(48px, calc(85 * var(--u)));
  padding: 0 1em;
  border-radius: calc(35 * var(--u));
  justify-content: center;
  align-items: center;
  color: #000;
  background-color: #fff;
  font: 700 max(1rem, calc(20 * var(--u))) / 1.2 Manrope, sans-serif;
  text-decoration: none;
  appearance: none;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.open-lane:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }

@media (max-width: 600px) {
  .song {
    --u: min(1px, calc((100vw - 48px) / 450), max(.66px, calc((100vh - 64px) / 804)));
    --u: min(1px, calc((100vw - 48px) / 450), max(.66px, calc((100svh - 64px) / 804)));
  }
}

/* The download row uses the space below the approved, centered song layout. */
.install {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  padding: max(8px, calc(12 * var(--u))) 0 max(10px, env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: .45em;
  color: #93918f;
  font: 400 max(.8125rem, calc(14 * var(--u))) / 1.45 Manrope, sans-serif;
}
.install[hidden] { display: none; }
html[data-api-region] .install {
  position: static;
  padding-bottom: 0;
}
.region-selector {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 .75em;
  padding: 5px 0 max(10px, env(safe-area-inset-bottom));
  color: #b7b5b3;
  font-size: .875rem;
}
.region-selector a { color: inherit; text-underline-offset: .23em; }
.region-selector a[aria-current="true"] { color: #fff; }
.region-selector a:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
.install a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 2px;
  color: #b7b5b3;
  font-weight: 600;
  text-underline-offset: .23em;
  text-decoration: underline;
  text-decoration-color: rgb(183 181 179 / .35);
  touch-action: manipulation;
}
.install a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .install a:hover { color: #f3f2f1; text-decoration-color: currentColor; }
}
