/* Home hero: looping background video (SPORTONOM intro)
   v2 - brighter, clearer video: the footage is a dark night scene, so it is
   lifted with a light colour boost and only the text side is shaded. */
.hero-has-video { isolation: isolate; }
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #07111f;
}
/* Poster is visible straight away, so the hero is never an empty dark box
   while the video file is still downloading. The video fades in on top. */
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-poster) center / cover no-repeat;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  opacity: 0;
  transition: opacity 1s ease;
  transform: translateZ(0);
}
.hero-video.is-playing { opacity: 1; }
.hero-media.is-static .hero-video { display: none; }

/* Colour lift for the dark night footage (video + poster stay in sync). */
.hero-video,
.hero-media::before { filter: brightness(1.38) contrast(1.1) saturate(1.2); }

/* Readability layer: only the far-left (text) side is shaded and it fades to
   fully clear, so the right/centre of the video is shown at full strength.
   Soft top/bottom edges blend the hero into the page. */
.hero-media-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,17,31,.28) 0%, rgba(7,17,31,0) 18%, rgba(7,17,31,0) 80%, rgba(7,17,31,.6) 100%),
    linear-gradient(90deg, rgba(7,17,31,.6) 0%, rgba(7,17,31,.34) 38%, rgba(7,17,31,0) 68%);
}

/* No floating sport emoji over the hero video */
.hero .fx-balls { display: none !important; }

/* The blurry colour orbs sat on top of the video and washed it out. */
.hero-has-video .hero-orb { display: none; }
.hero-has-video:after { display: none; }

/* Keep copy and the search bar crisp over moving footage */
.hero-has-video h1 { text-shadow: 0 2px 22px rgba(3,10,20,.55); }
.hero-has-video .hero-lede,
.hero-has-video .hero-trust { text-shadow: 0 1px 14px rgba(3,10,20,.75); }
.hero-has-video .search-panel {
  background: rgba(9,24,41,.46);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  backdrop-filter: blur(12px) saturate(1.15);
}

/* Phones / portrait tablets: the portrait video fills the top part of the hero
   (text + search) and fades smoothly into the page colour below. */
@media (max-width: 991.98px) {
  .hero-media {
    bottom: auto;
    height: min(100%, 940px);
    -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  }
  .hero-media::before { background-image: var(--hero-poster-m); }
  .hero-video { object-position: center; }
  /* Text sits over the video here, so a gentle, even shade is kept - but much
     lighter than before. */
  .hero-media-shade {
    background:
      linear-gradient(180deg, rgba(7,17,31,.4) 0%, rgba(7,17,31,.3) 45%, rgba(7,17,31,.42) 100%);
  }
  .hero-has-video .search-panel { background: rgba(9,24,41,.58); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { transition: none; }
}
