.vfy-float-host {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999999;
  width: min(420px, calc(100vw - 40px));
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  overflow: visible;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.vfy-float-host.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.vfy-float-host > .vfy-floating-player,
.vfy-float-host > .vfy-floating-player.fluid-width-video-wrapper,
.vfy-float-host > .vfy-floating-player.wp-block-embed__wrapper,
.vfy-float-host > .vfy-floating-player.embed-responsive,
.vfy-float-host > .vfy-floating-player.video-container,
.vfy-float-host > .vfy-floating-player.et_pb_video_box,
.vfy-float-host > .vfy-floating-player.et_pb_video_wrap {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: inherit;
}

.vfy-float-host iframe.vfy-floating-player,
.vfy-float-host .vfy-floating-player iframe {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border: 0 !important;
}

.vfy-placeholder {
  display: block;
  max-width: 100%;
}

.vfy-placeholder[hidden] {
  display: none !important;
}

.vfy-close {
  position: absolute;
  top: -11px;
  right: -11px;
  z-index: 5;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font: 700 23px/24px Arial, sans-serif;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  appearance: none;
}

.vfy-close:hover,
.vfy-close:focus-visible {
  background: #2a2a2a;
}

.vfy-close:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 2px;
}

/* Mobile: centered and nearly full width, kept above iPhone/Android safe areas. */
@media (max-width: 767px) {
  .vfy-float-host {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
    border-radius: 8px;
  }

  .vfy-close {
    top: -9px;
    right: -4px;
    width: 32px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vfy-float-host {
    transition: none;
  }
}
