.lv-dock {
  position: fixed; right: clamp(16px, 2.2vw, 32px); bottom: clamp(16px, 2.4vw, 32px); z-index: 120;
  width: clamp(250px, 24vw, 380px);
  background: var(--ink); border-radius: 16px; padding: 0 6px 6px;
  box-shadow: 0 0 0 3px var(--lime), 0 24px 60px -18px rgba(110, 17, 223, .55), 0 10px 24px -12px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(24px) rotate(1.5deg) scale(.96);
  transition: opacity .5s ease, transform .6s cubic-bezier(.2, .9, .2, 1.2);
}
.lv-dock.is-in { opacity: 1; transform: none; }

.lv-bar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 4px 0 8px; color: var(--white); }
.lv-dots { display: flex; gap: 5px; flex: none; }
.lv-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--purple); }
.lv-dots i:nth-child(2) { background: var(--lime); }
.lv-dots i:nth-child(3) { background: var(--white); }
.lv-url {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .66rem; color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .08);
  border-radius: 999px; padding: 4px 10px; text-align: center;
}
.lv-x {
  flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
  color: rgba(255, 255, 255, .75); background: transparent; border: 0; cursor: pointer; transition: background .2s, color .2s;
}
.lv-x svg { width: 14px; height: 14px; }
.lv-x:hover, .lv-x:focus-visible { background: rgba(255, 255, 255, .14); color: var(--white); }

.lv-screen {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0;
  border-radius: 10px; overflow: hidden; background: #000; cursor: pointer;
}
.lv-screen video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, filter .3s; }
.lv-play {
  position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px;
  display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--ink);
  box-shadow: 0 0 0 6px rgba(198, 255, 0, .25); transition: transform .3s cubic-bezier(.2, .9, .2, 1.4);
}
.lv-play svg { width: 24px; height: 24px; margin-left: 3px; }
.lv-hint {
  position: absolute; left: 50%; bottom: 10px; transform: translate(-50%, 6px); white-space: nowrap;
  font-size: .62rem; color: var(--white); background: rgba(14, 14, 14, .75); padding: 4px 10px; border-radius: 999px;
  opacity: 0; transition: opacity .25s, transform .25s;
}
.lv-screen:hover video, .lv-screen:focus-visible video { transform: scale(1.04); filter: brightness(.8); }
.lv-screen:hover .lv-play, .lv-screen:focus-visible .lv-play { transform: scale(1.12); }
.lv-screen:hover .lv-hint, .lv-screen:focus-visible .lv-hint { opacity: 1; transform: translate(-50%, 0); }
.lv-screen:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

.lv-modal {
  width: min(1120px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px);
  padding: 0; border: 0; background: transparent; overflow: visible; color: var(--white);
}
.lv-modal::backdrop { background: rgba(14, 14, 14, .82); backdrop-filter: blur(8px); }
.has-cursor .lv-modal, .has-cursor .lv-modal video { cursor: auto; }
.has-cursor .lv-modal :is(a, button) { cursor: pointer; }
.lv-modal[open] { animation: lv-pop .45s cubic-bezier(.2, .9, .2, 1.15); }
.lv-frame {
  background: var(--ink); border-radius: 20px; padding: 0 8px 8px;
  box-shadow: 0 0 0 3px var(--lime), 0 40px 120px -30px rgba(110, 17, 223, .7);
}
.lv-frame .lv-bar { height: 44px; }
.lv-frame .lv-url { font-size: .74rem; max-width: 420px; margin: 0 auto; }
.lv-stage { border-radius: 12px; overflow: hidden; background: #000; }
.lv-stage video {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  max-height: calc(100dvh - 32px - 52px); object-fit: contain; background: #000;
}
.lv-modal.is-done .lv-stage video { max-height: calc(100dvh - 32px - 52px - 170px); }

.lv-cta { text-align: center; padding-top: 22px; animation: lv-rise .5s cubic-bezier(.2, .9, .2, 1.1); }
.lv-cta[hidden] { display: none; }
.lv-cta__q { font-family: var(--f-display, inherit); font-weight: 800; font-size: clamp(1.2rem, 2.4vw, 1.7rem); margin: 0 0 14px; }
.lv-cta__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.lv-cta__row .btn { box-shadow: 0 0 0 2px rgba(255, 255, 255, .18); }
.lv-cta__note { margin: 12px 0 0; color: rgba(255, 255, 255, .6); }

@keyframes lv-pop { from { opacity: 0; transform: scale(.94) translateY(16px); } }
@keyframes lv-rise { from { opacity: 0; transform: translateY(14px); } }

@media (max-width: 600px) {
  .lv-dock { left: 0; right: 0; margin-inline: auto; bottom: calc(14px + env(safe-area-inset-bottom)); width: min(240px, calc(100vw - 32px)); border-radius: 12px; padding: 0 4px 4px; }
  .lv-x { width: 36px; height: 36px; margin-right: -6px; }
  .lv-dock.is-in.is-away { opacity: 0; transform: translateY(calc(100% + 40px)); pointer-events: none; }
  .lv-bar { height: 36px; gap: 6px; }
  .lv-dots i { width: 7px; height: 7px; }
  .lv-url { font-size: .56rem; padding: 2px 6px; }
  .lv-play { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .lv-play svg { width: 18px; height: 18px; }
  .lv-frame { padding: 0 4px 4px; border-radius: 14px; }
  .lv-cta__row .btn { width: 100%; justify-content: space-between; }
}
