:root {
  --fondo: #ffffff;
  --inchiostro: #121214;
  --grigio: #7a7a80;
  --linea: #e8e8ec;
  --accento: #ff5a2e;
  --cover: min(138px, 31vh);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--fondo);
  color: var(--inchiostro);
  font-family: "Mona Sans Variable", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px 16px;
  overflow: hidden;
}

/* the frame is always visible and already as big as the shuffle needs, so poster and video frame it whole */
.frame {
  width: min(300px, 92vw);
  display: grid;
  justify-items: center;
  gap: min(16px, 3vh);
}

.head { display: grid; justify-items: center; gap: 2px; text-align: center; }
.head__name { font-size: 15px; font-weight: 660; letter-spacing: -0.01em; }
.head__meta { font-size: 12px; color: var(--grigio); font-weight: 450; }

.deck {
  position: relative;
  width: 100%;
  height: calc(var(--cover) + 64px);
}

.cover {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--cover);
  height: var(--cover);
  margin: calc(var(--cover) / -2) 0 0 calc(var(--cover) / -2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(18, 18, 20, 0.08), 0 10px 24px -10px rgba(18, 18, 20, 0.35);
  will-change: transform;
}

.cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover svg * { vector-effect: non-scaling-stroke; }
.cover__t {
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-size: 10px;
  font-weight: 620;
  letter-spacing: 0.02em;
  font-variation-settings: "wdth" 88;
}

/* a soft sheen over every cover, like a printed sleeve */
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 45%);
  pointer-events: none;
}

.cover--tide { background: linear-gradient(#f7c7a3, #f29f83 58%, #5b6f8f 58%); color: #fff8f0; }
.cover--tide .sun { fill: #fff3df; }
.cover--tide .wave { fill: none; stroke: #e9f0ff; stroke-width: 1.4; opacity: 0.9; }
.cover--tide .wave--b { opacity: 0.6; }
.cover--tide .wave--c { opacity: 0.35; }

.cover--bus { background: linear-gradient(#1d2140, #2c2f5a); color: #ffd98a; }
.cover--bus .win { fill: #ffd98a; opacity: 0.85; }
.cover--bus .road { stroke: #4b5084; stroke-width: 1.2; }
.cover--bus .lane { stroke: #ffd98a; stroke-width: 1; opacity: 0.45; fill: none; }

.cover--moon { background: #dfe7df; color: #2a3a33; }
.cover--moon .moon { fill: #fffdf4; }
.cover--moon .moon-cut { fill: #dfe7df; }
.cover--moon .hill { fill: #8fa69a; }

.cover--static { background: #121214; color: #f2f2f2; }
.cover--static .grid path { stroke: #3a3a40; stroke-width: 1; fill: none; }
.cover--static .block { fill: var(--accento); }

.now {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 2px;
  min-height: 34px;
  text-align: center;
}
.now__label { font-size: 11px; color: var(--grigio); font-weight: 520; letter-spacing: 0.04em; text-transform: uppercase; }
.now__title { font-size: 14px; font-weight: 560; }

.play {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.play:focus-visible { outline: 2px solid var(--accento); outline-offset: 3px; }
.play__bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--inchiostro);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 8px 18px -8px rgba(18, 18, 20, 0.6);
  transition: background-color 0.25s ease;
}
@media (hover: hover) {
  .play:hover .play__bg { background: #2a2a2e; }
}

.ico { position: relative; width: 22px; height: 22px; flex: 0 0 auto; }
.ico__shuffle { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }

/* the equalizer: four thin bars, never dots */
.eq { position: absolute; inset: 2px 1px; display: flex; align-items: flex-end; justify-content: space-between; opacity: 0; }
.eq i { display: block; width: 3px; height: 100%; border-radius: 2px; background: var(--accento); transform-origin: 50% 100%; transform: scaleY(0.3); }

.labels { position: relative; display: block; height: 20px; overflow: hidden; }
.lab {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  line-height: 20px;
  font-variation-settings: "wdth" 100;
}
.lab b { font-weight: 680; }

.ghost {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  fill: #121214;
  stroke: #fff;
  stroke-width: 1.4;
  stroke-linejoin: round;
  pointer-events: none;
  opacity: 0;
  z-index: 50;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

@media (max-width: 400px) {
  .play { height: 44px; font-size: 14px; padding: 0 18px 0 15px; }
}
