:root {
  --fondo: #0c0c0e;
  --vetro: #141417;
  --linea: rgba(255, 255, 255, 0.09);
  --bianco: #f4f3f0;
  --detta: #b9b8b4;
  --futura: #4f4f55;
  --grigio: #8a8a90;
  --tinta: #ff8a3d;
  --tinta-tenue: rgba(255, 138, 61, 0.16);
  --blob-a: #ff8a3d;
  --blob-b: #5b4bff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; overflow: hidden; }

body {
  background: var(--fondo);
  color: var(--bianco);
  font-family: "Mona Sans Variable", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.player {
  --larga: min(100%, 640px, 112vh);
  --parola: clamp(17px, min(6.1vw, 6.6vh), 40px);
  width: var(--larga);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 3.4vh, 26px);
}

/* ---------- the video frame ---------- */
.frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: clamp(12px, 2.4vw, 18px);
  overflow: hidden;
  background: #101014;
  box-shadow: 0 0 0 1px var(--linea), 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  isolation: isolate;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(clamp(18px, 4vw, 36px));
  opacity: 0.85;
  will-change: transform;
}
.blob--a {
  width: 46%;
  aspect-ratio: 1;
  left: 18%;
  top: 14%;
  background: radial-gradient(circle at 40% 40%, var(--blob-a), rgba(255, 138, 61, 0) 68%);
}
.blob--b {
  width: 54%;
  aspect-ratio: 1;
  left: 42%;
  top: 6%;
  background: radial-gradient(circle at 55% 45%, var(--blob-b), rgba(91, 75, 255, 0) 66%);
  opacity: 0.6;
}
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(12, 12, 14, 0) 52%, rgba(12, 12, 14, 0.72));
  pointer-events: none;
}

.show {
  position: absolute;
  z-index: 2;
  left: clamp(10px, 2.6vw, 18px);
  top: clamp(9px, 2.4vw, 16px);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(10px, min(2.6vw, 3vh), 13px);
  font-weight: 600;
  font-variation-settings: "wdth" 110;
  letter-spacing: 0.01em;
  color: rgba(244, 243, 240, 0.86);
}
.mic { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.cc {
  position: absolute;
  z-index: 2;
  right: clamp(10px, 2.6vw, 18px);
  top: clamp(9px, 2.4vw, 16px);
  font-size: clamp(8px, min(2vw, 2.4vh), 10px);
  font-weight: 700;
  font-variation-settings: "wdth" 120;
  letter-spacing: 0.04em;
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid rgba(244, 243, 240, 0.5);
  color: rgba(244, 243, 240, 0.86);
}

.bar {
  position: absolute;
  z-index: 3;
  left: clamp(8px, 2.2vw, 14px);
  right: clamp(10px, 2.6vw, 18px);
  bottom: clamp(9px, 2.2vw, 15px);
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 14px);
}
.play {
  position: relative;
  flex: none;
  width: clamp(26px, min(7vw, 8vh), 38px);
  height: clamp(26px, min(7vw, 8vh), 38px);
  border: 0;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}
.play__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: rgba(244, 243, 240, 0.94);
}
.ico { position: absolute; width: 52%; height: 52%; fill: #121214; }
.ico--play { opacity: 0; transform: scale(0.6); }

.wave {
  flex: 1;
  height: clamp(14px, 3.6vh, 24px);
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}
.wave i {
  flex: 1;
  max-width: 3px;
  height: 100%;
  border-radius: 2px;
  background: rgba(244, 243, 240, 0.7);
  transform: scaleY(0.2);
  transform-origin: 50% 50%;
}

.time {
  flex: none;
  font-size: clamp(10px, min(2.5vw, 2.9vh), 13px);
  font-weight: 560;
  font-variation-settings: "wdth" 104;
  color: rgba(244, 243, 240, 0.92);
  letter-spacing: 0.01em;
}
.time__all { color: rgba(244, 243, 240, 0.5); font-weight: 450; }

.track {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(244, 243, 240, 0.14);
}
.track__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background: var(--tinta);
  transform-origin: 0 50%;
  transform: scaleX(0.25);
}
.track__head {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--bianco);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.28);
  opacity: 0;
}

/* ---------- the captions ---------- */
.captions {
  padding: 0 clamp(2px, 1vw, 6px);
}
.who {
  display: flex;
  align-items: baseline;
  gap: 10px;
  height: 1.4em;
  font-size: clamp(10px, min(2.6vw, 3vh), 13px);
  font-weight: 600;
  font-variation-settings: "wdth" 116;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grigio);
  margin-bottom: clamp(4px, 1.2vh, 10px);
  overflow: hidden;
}
.who__name { display: inline-block; }
.who__state { display: inline-block; color: var(--tinta); opacity: 0; transform: translateY(6px); }

.window {
  position: relative;
  height: calc(var(--parola) * 1.22 * 2);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, rgba(0, 0, 0, 0.2));
  mask-image: linear-gradient(to bottom, #000 82%, rgba(0, 0, 0, 0.2));
}
.lines { will-change: transform; }
.line {
  height: calc(var(--parola) * 1.22);
  line-height: calc(var(--parola) * 1.22);
  font-size: var(--parola);
  white-space: nowrap;
  letter-spacing: -0.012em;
}
.w {
  --g: 430;
  --d: 96;
  display: inline-block;
  font-variation-settings: "wght" var(--g), "wdth" var(--d);
  color: var(--futura);
  margin-right: 0.24em;
  will-change: transform;
}
.w:last-child { margin-right: 0; }

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

@media (hover: hover) {
  .play:hover .play__bg { background: #ffffff; }
}
