.vb-video-banner {
  position: fixed;
  z-index: 2147483000;
  left: 10px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 170px;
  max-width: calc(100vw - 20px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.vb-video-banner.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.vb-video-banner__link {
  display: block;
  overflow: hidden;
  width: 100%;
  color: #222;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.vb-video-banner__link:hover,
.vb-video-banner__link:focus-visible {
  color: #222;
  text-decoration: none;
  box-shadow: 0 11px 28px rgba(0, 0, 0, 0.24);
  outline: 3px solid rgba(220, 20, 60, 0.32);
  outline-offset: 2px;
  transform: translateY(-2px);
}

.vb-video-banner__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #f5f5f5;
}

.vb-video-banner__copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 9px 10px 10px;
}

.vb-video-banner__name {
  overflow: hidden;
  color: #222;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vb-video-banner__cta {
  position: relative;
  display: block;
  overflow: hidden;
  box-sizing: border-box;
  min-height: 32px;
  padding: 8px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  background: #dc143c;
  border-radius: 999px;
  animation: vb-video-banner-pulse 2.4s ease-in-out infinite;
}

.vb-video-banner__cta::after {
  position: absolute;
  top: -30%;
  left: -45%;
  width: 34%;
  height: 160%;
  content: '';
  background: rgba(255, 255, 255, 0.38);
  transform: rotate(18deg);
  animation: vb-video-banner-shine 3.2s ease-in-out infinite;
}

.vb-video-banner__close {
  position: absolute;
  z-index: 2;
  top: -13px;
  right: -13px;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #fff;
  font: 700 23px/1 Arial, sans-serif;
  cursor: pointer;
  background: #333;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.28);
  place-items: center;
}

.vb-video-banner__close:hover,
.vb-video-banner__close:focus-visible {
  background: #111;
  outline: 3px solid rgba(220, 20, 60, 0.32);
  outline-offset: 2px;
}

@keyframes vb-video-banner-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
}

@keyframes vb-video-banner-shine {
  0%,
  58% {
    left: -45%;
  }
  78%,
  100% {
    left: 125%;
  }
}

@media (max-width: 600px) {
  .vb-video-banner {
    width: 128px;
  }

  .vb-video-banner__copy {
    gap: 5px;
    padding: 7px 7px 8px;
  }

  .vb-video-banner__name {
    font-size: 9px;
  }

  .vb-video-banner__cta {
    min-height: 44px;
    padding: 13px 8px;
    font-size: 11px;
    line-height: 18px;
  }

  .vb-video-banner__close {
    top: -11px;
    right: -11px;
    width: 44px;
    height: 44px;
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vb-video-banner,
  .vb-video-banner__link,
  .vb-video-banner__cta,
  .vb-video-banner__cta::after {
    animation: none;
    transition: none;
  }
}
