/*
 * Production bridge for the current prebuilt homepage. Remove this stylesheet
 * injection after the next complete frontend release includes the matching
 * VideoContainer.module.css rules.
 */
[class*="VideoContainer_videoContainer__"] {
  --carousel-top-inset: 44px;
  --carousel-bottom-inset: 32px;
  width: 100% !important;
  max-width: 1180px !important;
  height: clamp(270px, calc(75vh - 142.5px), 480px) !important;
  margin: 0 auto 20px !important;
  background:
    linear-gradient(rgba(204, 255, 0, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204, 255, 0, 0.055) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(42, 42, 42, 0.72), rgba(10, 10, 10, 0.96) 48%),
    #0a0a0a !important;
  background-position: 0 0, 0 0, center !important;
  background-size: 32px 32px, 32px 32px, auto !important;
  animation: homeCarouselGridDrift 14s linear infinite;
}

[class*="VideoContainer_mediaArea__"] {
  position: relative !important;
  width: min(100%, 360px) !important;
  height: calc(100% - var(--carousel-top-inset) - var(--carousel-bottom-inset)) !important;
  margin: var(--carousel-top-inset) auto var(--carousel-bottom-inset) !important;
  border-right: 0 !important;
  border-left: 0 !important;
  box-shadow: 0 0 34px rgba(0, 0, 0, 0.72) !important;
}

[class*="VideoContainer_mediaArea__"].homeCarouselMediaPulse {
  animation: homeCarouselActiveReveal 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

[class*="VideoContainer_overlay__"] {
  right: auto !important;
  bottom: calc(24px + var(--carousel-bottom-inset)) !important;
  left: 50% !important;
  width: min(100%, 520px) !important;
  transform: translateX(-50%) !important;
}

[class*="VideoContainer_dots__"] {
  z-index: 4 !important;
  top: 15px !important;
  bottom: auto !important;
}

@media (min-width: 601px) {
  [class*="VideoContainer_navButton__"] {
    visibility: hidden !important;
  }
}

.homeCarouselSideCard {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: min(21vw, 240px);
  height: min(72%, 430px);
  padding: 0;
  overflow: visible;
  border: 1px solid #333;
  background: #050505;
  color: #fff;
  cursor: pointer;
  opacity: 0.62;
  transform: translateY(-50%) scale(0.94);
  transition:
    opacity 420ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 320ms ease,
    box-shadow 420ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.homeCarouselSideCard:hover,
.homeCarouselSideCard:focus-visible {
  border-color: #ccff00;
  opacity: 0.94;
  box-shadow: 0 0 28px rgba(204, 255, 0, 0.28);
  transform: translateY(-50%) scale(1);
}

.homeCarouselSideCard--previous {
  right: calc(50% + 235px);
  animation: homeCarouselSideFromLeft 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.homeCarouselSideCard--next {
  left: calc(50% + 235px);
  animation: homeCarouselSideFromRight 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.homeCarouselSideCard video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.homeCarouselSideCard__direction {
  position: absolute;
  top: 50%;
  z-index: 2;
  font-size: 160px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
  filter: drop-shadow(0 0 12px rgba(204, 255, 0, 0.55));
  text-shadow: 0 2px 6px #000;
  animation: homeCarouselChevronGlow 1.8s ease-in-out infinite;
}

.homeCarouselSideCard--previous .homeCarouselSideCard__direction {
  left: -64px;
}

.homeCarouselSideCard--next .homeCarouselSideCard__direction {
  right: -64px;
}

.homeCarouselSideCard__label {
  position: absolute;
  right: 8px;
  bottom: 10px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.74);
  text-align: center;
}

.homeCarouselSideCard__label strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.homeCarouselSideCard__label small {
  color: #bbb;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  [class*="VideoContainer_videoContainer__"] {
    --carousel-top-inset: 32px;
    --carousel-bottom-inset: 20px;
    height: min(51vh, 450px) !important;
  }

  [class*="VideoContainer_dots__"] {
    top: 10px !important;
  }

  [class*="VideoContainer_mediaArea__"] {
    width: min(100%, 337px) !important;
    border-right: 0 !important;
    border-left: 0 !important;
  }

  [class*="VideoContainer_overlay__"] {
    width: 100% !important;
  }

  .homeCarouselSideCard {
    display: none;
  }

  [class*="VideoContainer_navButton__"] {
    font-size: 46px !important;
    font-weight: 700 !important;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .homeCarouselSideCard {
    width: 180px;
    height: 60%;
  }

  .homeCarouselSideCard--previous {
    right: calc(50% + 205px);
  }

  .homeCarouselSideCard--next {
    left: calc(50% + 205px);
  }
}

@keyframes homeCarouselGridDrift {
  to {
    background-position: 32px 32px, 32px 32px, center;
  }
}

@keyframes homeCarouselActiveReveal {
  from {
    opacity: 0;
    filter: brightness(1.35) saturate(1.35);
    transform: scale(0.965);
  }

  to {
    opacity: 1;
    filter: brightness(1) saturate(1);
    transform: scale(1);
  }
}

@keyframes homeCarouselSideFromLeft {
  from {
    opacity: 0;
    filter: blur(5px) brightness(1.4);
    transform: translate(-54px, -50%) scale(0.86);
  }

  to {
    opacity: 0.62;
    filter: blur(0) brightness(1);
    transform: translate(0, -50%) scale(0.94);
  }
}

@keyframes homeCarouselSideFromRight {
  from {
    opacity: 0;
    filter: blur(5px) brightness(1.4);
    transform: translate(54px, -50%) scale(0.86);
  }

  to {
    opacity: 0.62;
    filter: blur(0) brightness(1);
    transform: translate(0, -50%) scale(0.94);
  }
}

@keyframes homeCarouselChevronGlow {
  50% {
    color: #eaff82;
    filter: drop-shadow(0 0 22px rgba(204, 255, 0, 0.9));
  }
}

@media (prefers-reduced-motion: reduce) {
  [class*="VideoContainer_videoContainer__"],
  [class*="VideoContainer_mediaArea__"],
  .homeCarouselSideCard,
  .homeCarouselSideCard__direction {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
