/* Preloader overlay */
.avd-preloader {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}
/* Video sized by scale (0.3..1) relative to viewport */
.avd-preloader video {
  width: calc(100vw * var(--avd-scale, 1));
  height: calc(100vh * var(--avd-scale, 1));
  object-fit: cover;
  object-position: center center;
  image-rendering: auto;
  will-change: width, height;
}

html.avd-no-scroll, body.avd-no-scroll { overflow: hidden !important; }

#avd_bg_audio { display: none !important; }

/* Mute floating button */
.avd-mute-btn {
  position: fixed;
  z-index: 999999;
  bottom: 16px;
  right: 16px;
  border: 0;
  border-radius: 9999px;
  padding: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
  width: 48px;
  height: 48px;
  background: #111827;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  cursor: pointer;
}
.avd-mute-btn.bl { right: auto; left: 16px; }

/* Optional toast */
.avd-sound-toast{
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: rgba(17,24,39,.95);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 999999;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
