.vloom-case-video {
  --vloom-video-navy: #19378c;
  --vloom-video-purple: #8d489b;
  --vloom-video-pink: #ff84fb;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #0e1f55;
  box-shadow: 0 18px 42px rgba(14, 31, 85, .2);
}

.vloom-case-video iframe,
.vloom-case-video__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vloom-case-video iframe {
  display: block;
  background: #0e1f55;
}

.vloom-case-video__cover {
  display: block;
  padding: 0;
  cursor: pointer;
  text-align: left;
  background-color: #0e1f55;
  background-image: var(--vloom-case-video-cover);
  background-position: var(--vloom-case-video-cover-position, center);
  background-repeat: no-repeat;
  background-size: var(--vloom-case-video-cover-size, cover);
  transition: opacity .28s ease, visibility .28s ease;
}

.vloom-case-video__cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(10, 12, 32, .04) 0%, rgba(10, 12, 32, .16) 42%, rgba(10, 12, 32, .88) 100%);
}

.vloom-case-video.is-playing .vloom-case-video__cover {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.vloom-case-video--autoplay iframe {
  pointer-events: none;
}

.vloom-case-video__play {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 18px;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
}

.vloom-case-video__play-core {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #7d57a4 0%, #dea9cc 100%);
  transition: transform .25s ease;
}

.vloom-case-video__play-core svg {
  width: 18px;
  height: 18px;
  margin-left: 3px;
  fill: #fff;
}

.vloom-case-video__sonar,
.vloom-case-video__sonar::after {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.vloom-case-video__sonar {
  z-index: 0;
  background: var(--vloom-video-navy);
  animation: vloom-case-video-sonar 2s linear infinite;
}

.vloom-case-video__sonar::after {
  inset: -12px;
  content: "";
  background: linear-gradient(180deg, #7d57a4 0%, #dea9cc 100%);
  z-index: -1;
}

.vloom-case-video__cover:hover .vloom-case-video__play-core {
  transform: scale(1.06);
}

.vloom-case-video__meta {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: block;
  color: #fff;
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.vloom-case-video__name,
.vloom-case-video__company,
.vloom-case-video__stars {
  display: block;
}

.vloom-case-video__name {
  margin-bottom: 7px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.5px;
  line-height: 1;
}

.vloom-case-video__company {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.5px;
  line-height: 1.15;
  opacity: .92;
  text-transform: uppercase;
}

.vloom-case-video__stars {
  display: flex;
  gap: 4px;
}

.vloom-case-video__stars svg {
  display: block;
  width: 13px;
  height: 13px;
  fill: #f3a903;
}

.vloom-case-video-error {
  color: #8d489b;
  font-size: 14px;
}

@keyframes vloom-case-video-sonar {
  0% { transform: scale(1); opacity: .5; }
  80%, 100% { transform: scale(1.55); opacity: 0; }
}

@media (max-width: 1024px) {
  .vloom-case-video__play,
  .vloom-case-video__play-core { width: 60px; height: 60px; }
  .vloom-case-video__sonar::after { inset: -10px; }
  .vloom-case-video__name { font-size: 19px; }
}

@media (max-width: 767px) {
  .vloom-case-video { border-radius: 14px; }
  .vloom-case-video__play { top: 12px; right: 12px; }
  .vloom-case-video__meta { right: 16px; bottom: 14px; left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .vloom-case-video__sonar { animation: none; opacity: .35; }
  .vloom-case-video__play-core,
  .vloom-case-video__cover { transition: none; }
}
