/* Music Visualizer v3 (23 Oct 2026): a listening room. The video leads, lit by an ambient glow taken from
 * its own colours; one track strip underneath; the four looks; one quiet row of settings. Scoped to body.vz. */
/* Space wallpaper comes from the site's shared /assets/experience.css. */
body.vz { margin: 0; background: transparent !important; color: #ececf1; font-family: Inter, system-ui, sans-serif; }
body.vz ::selection { background: rgba(255,255,255,.85); color: #050507; }
.vz-room { --ink: #ececf1; --mute: #8b8c98; --line: rgba(255,255,255,.08); --ease: cubic-bezier(.16,1,.3,1);
  position: relative; isolation: isolate; overflow: hidden; min-height: calc(100dvh - 64px); padding: 28px 24px 48px; caret-color: #fff;
  scrollbar-color: #2a2a31 transparent; }
.vz-room *, .vz-room *::before, .vz-room *::after { box-sizing: border-box; }
.vz-room [hidden] { display: none !important; }
.vz-room button { font: inherit; color: inherit; }
.vz-room svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vz-room :focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }

/* Ambient light: a tiny copy of the video, blown up and blurred behind the room */
.vz-ambient { position: absolute; z-index: -1; left: 50%; top: -6%; width: min(1500px, 140vw); height: 78%; transform: translateX(-50%);
  filter: blur(70px) saturate(1.7); opacity: .6; transition: opacity 1.2s var(--ease); pointer-events: none; }

/* Stage */
.vz-stage-wrap { display: grid; place-items: center; }
.vz-stage { position: relative; width: 960px; height: 540px; overflow: hidden; border-radius: 14px; background: #000;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.06); transition: width .5s var(--ease), height .5s var(--ease); }
.vz-stage canvas { display: block; width: 100%; height: 100%; }
.vz-stage:fullscreen { width: 100vw !important; height: 100vh !important; border-radius: 0; background: #000; }
.vz-stage:fullscreen canvas { object-fit: contain; }
.vz-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px; padding: 0 16px 8%;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.6)); text-align: center; }
.vz-empty p { margin: 0; color: rgba(255,255,255,.72); font-size: 13.5px; }
.vz-dropping { position: absolute; inset: 0; display: none; place-items: center; background: rgba(5,5,7,.72); backdrop-filter: blur(8px); }
.vz-dropping b { font: 700 clamp(28px, 4vw, 44px)/1 Outfit, sans-serif; letter-spacing: -.02em; }
.vz-room.dragging .vz-dropping { display: grid; }
.vz-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.12); }
.vz-progress i { display: block; height: 100%; width: 0; background: #fff; transition: width .8s var(--ease); }
.vz-progress.waiting i { width: 22%; animation: vz-slide 1.6s var(--ease) infinite; }
@keyframes vz-slide { from { transform: translateX(-100%); } to { transform: translateX(460%); } }

/* Buttons */
.vz-pill { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: #fff;
  color: #08080b !important; font-weight: 700 !important; font-size: 14.5px !important; cursor: pointer; white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgba(255,255,255,.35); transition: transform .2s var(--ease), box-shadow .2s, opacity .2s; }
.vz-pill:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 16px 40px -12px rgba(255,255,255,.5); }
.vz-pill:active:not(:disabled) { transform: translateY(0) scale(.98); }
.vz-pill:disabled { opacity: .3; cursor: not-allowed; box-shadow: none; }
.vz-pill svg { width: 17px; height: 17px; }
.vz-icon { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--mute); cursor: pointer; transition: color .2s, background .2s; }
.vz-icon:hover { color: #fff; background: rgba(255,255,255,.06); }

/* Deck: cover + names, transport, export */
.vz-deck { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 1.1fr) auto; align-items: center; gap: 28px; width: min(100%, 1100px); margin: 26px auto 0; }
.vz-track { display: flex; align-items: center; gap: 16px; min-width: 0; }
.vz-cover { position: relative; flex: none; display: grid; place-items: center; width: 64px; height: 64px; padding: 0; overflow: hidden; border: 1px dashed rgba(255,255,255,.22);
  border-radius: 10px; background: rgba(255,255,255,.03); color: var(--mute); cursor: pointer; transition: border-color .2s, color .2s, transform .2s var(--ease); }
.vz-cover:hover { border-color: rgba(255,255,255,.5); color: #fff; transform: scale(1.03); }
.vz-cover.has-art { border: 0; box-shadow: 0 10px 24px -8px rgba(0,0,0,.8); }
.vz-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vz-names { display: flex; flex-direction: column; min-width: 0; }
.vz-names input { width: 100%; padding: 2px 0; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--ink); outline: none; text-overflow: ellipsis; transition: border-color .2s; }
.vz-names input:hover, .vz-names input:focus { border-bottom-color: rgba(255,255,255,.22); }
.vz-names input::placeholder { color: #55565f; }
#title { font: 700 24px/1.2 Outfit, Inter, sans-serif; letter-spacing: -.015em; }
#artist { margin-top: 2px; color: var(--mute); font: 500 14px/1.4 Inter, sans-serif; }
.vz-transport { display: flex; align-items: center; gap: 12px; }
.vz-play { display: grid; place-items: center; flex: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #08080b; cursor: pointer; transition: transform .2s var(--ease), opacity .2s; }
.vz-play:hover:not(:disabled) { transform: scale(1.06); }
.vz-play:disabled { opacity: .25; cursor: default; }
.vz-play svg { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.vz-play .i-pause, .vz-room.playing .vz-play .i-play { display: none; }
.vz-room.playing .vz-play .i-pause { display: inline; }
.vz-time { min-width: 36px; color: var(--mute); font: 500 12.5px/1 Inter, sans-serif; font-variant-numeric: tabular-nums; }
#seek { flex: 1; min-width: 0; }
.vz-room input[type="range"] { -webkit-appearance: none; appearance: none; height: 3px; border-radius: 3px; cursor: pointer;
  background: linear-gradient(#fff, #fff) 0 / var(--p, 0%) 100% no-repeat, rgba(255,255,255,.14); }
.vz-room input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.6); }
.vz-room input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: #fff; }
.vz-room input[type="range"]:disabled { opacity: .35; cursor: default; }
.vz-out { display: flex; align-items: center; gap: 6px; justify-self: end; }
.vz-status { grid-column: 1 / -1; margin: -8px 0 0; color: var(--mute); font-size: 13px; text-align: right; }
.vz-status a { color: #fff; font-weight: 600; text-underline-offset: 3px; }

/* Looks: four live previews, no boxes */
.vz-looks { width: min(100%, 1100px); margin: 44px auto 0; padding-top: 36px; border-top: 1px solid var(--line); }
.vz-look-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.vz-look { display: block; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.vz-look canvas { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 10px; background: #000; opacity: .72;
  transition: opacity .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.vz-look:hover canvas { opacity: 1; transform: translateY(-3px); }
.vz-look[aria-checked="true"] canvas { opacity: 1; box-shadow: 0 0 0 2px #fff, 0 22px 50px -18px rgba(0,0,0,.9); }
.vz-look b { display: block; margin-top: 12px; color: var(--ink); font: 600 16px/1.2 Outfit, sans-serif; letter-spacing: -.01em; }
.vz-look small { display: block; margin-top: 3px; color: var(--mute); font-size: 12.5px; }

/* Tune row */
.vz-tune { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 40px; width: min(100%, 1100px); margin: 40px auto 0; padding-top: 30px; border-top: 1px solid var(--line); }
.vz-field { display: flex; align-items: center; gap: 14px; }
.vz-label { color: var(--mute); font-size: 13px; }
.vz-swatches { display: flex; gap: 8px; }
.vz-swatch { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: var(--g); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); transition: transform .2s var(--ease), box-shadow .2s; }
.vz-swatch:hover { transform: scale(1.12); }
.vz-swatch[aria-checked="true"] { box-shadow: 0 0 0 2px #050507, 0 0 0 4px #fff; }
.vz-swatch:disabled { display: none; }
.vz-formats { display: flex; gap: 2px; }
.vz-formats button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--mute); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: color .2s, background .2s; }
.vz-formats button:hover { color: #fff; }
.vz-formats button[aria-checked="true"] { color: #fff; background: rgba(255,255,255,.08); }
.vz-formats i { display: inline-block; width: calc(var(--w) / max(var(--w), var(--h)) * 13px); height: calc(var(--h) / max(var(--w), var(--h)) * 13px); border: 1.5px solid currentColor; border-radius: 2px; }
.vz-inline { display: flex; gap: 14px; }
.vz-link { padding: 0; border: 0; background: none; color: #fff; font-size: 13.5px; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 4px; cursor: pointer; }
.vz-link:hover { text-decoration-color: #fff; }
.vz-quiet { color: var(--mute); }
.vz-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.vz-switch input { position: absolute; opacity: 0; pointer-events: none; }
.vz-switch span { position: relative; width: 34px; height: 20px; border-radius: 20px; background: rgba(255,255,255,.16); transition: background .2s; }
.vz-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.vz-switch input:checked + span { background: #fff; }
.vz-switch input:checked + span::after { background: #08080b; transform: translateX(14px); }
.vz-switch input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }
.vz-switch em { color: var(--ink); font-size: 13.5px; font-style: normal; }
.vz-credits { width: min(100%, 1100px); margin: 44px auto 0; color: #4b4c55; font-size: 11.5px; text-align: center; }
.vz-credits a { color: #6b6c76; }
.vz-toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: min(92vw, 460px); padding: 12px 18px; border-radius: 12px; background: #16161b; color: #fff;
  font: 600 13.5px/1.4 Inter, sans-serif; box-shadow: 0 18px 50px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: opacity .25s, transform .25s; }
.vz-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .vz-deck { grid-template-columns: 1fr auto; gap: 18px 16px; }
  .vz-transport { grid-column: 1 / -1; grid-row: 2; }
  .vz-look-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .vz-room { padding: 16px 16px 40px; }
  .vz-deck { margin-top: 18px; }
  #title { font-size: 20px; }
  .vz-out .vz-icon { display: none; }
  .vz-pill { height: 42px; padding: 0 18px; }
  .vz-looks { margin-top: 30px; padding-top: 26px; }
  .vz-look-row { gap: 16px 12px; }
  .vz-tune { justify-content: flex-start; flex-direction: column; align-items: flex-start; gap: 20px; }
  .vz-field { width: 100%; justify-content: space-between; }
  .vz-status { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .vz-room *, .vz-toast { transition: none !important; animation: none !important; } }
