/* Matchday Hotels V9.2.6 — Away-Day Background Atmosphere
   Visual-only. Booking, football, budget and hotel behaviour are untouched.
*/

.mhd-v9-fixture-hero.mhd-v926-atmosphere-host,
.mhd-v9-supporter-flow.mhd-v926-atmosphere-host {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.mhd-v9-fixture-hero.mhd-v926-atmosphere-host {
  --mhd-v926-image-opacity: .22;
  --mhd-v926-image-brightness: .72;
  --mhd-v926-image-saturation: .82;
}

.mhd-v9-supporter-flow.mhd-v926-atmosphere-host {
  --mhd-v926-image-opacity: .085;
  --mhd-v926-image-brightness: .70;
  --mhd-v926-image-saturation: .72;
}

.mhd-v926-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  background: #071019;
}

.mhd-v926-atmosphere-frame {
  position: absolute;
  inset: -2%;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transform: scale(1.025);
  filter:
    saturate(var(--mhd-v926-image-saturation, .8))
    brightness(var(--mhd-v926-image-brightness, .72))
    contrast(1.05);
  transition: opacity 2.2s ease;
  will-change: opacity;
}

.mhd-v926-atmosphere-frame.is-active {
  opacity: var(--mhd-v926-image-opacity, .14);
}

.mhd-v926-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(
      90deg,
      rgba(4, 11, 18, .88) 0%,
      rgba(4, 11, 18, .72) 42%,
      rgba(4, 11, 18, .80) 100%
    ),
    linear-gradient(
      180deg,
      rgba(4, 11, 18, .28) 0%,
      rgba(4, 11, 18, .52) 100%
    );
}

.mhd-v9-supporter-flow .mhd-v926-atmosphere::after {
  background:
    linear-gradient(
      180deg,
      rgba(7, 16, 25, .82) 0%,
      rgba(7, 16, 25, .90) 100%
    );
}

.mhd-v9-fixture-hero.mhd-v926-atmosphere-host
  > :not(.mhd-v926-atmosphere),
.mhd-v9-supporter-flow.mhd-v926-atmosphere-host
  > :not(.mhd-v926-atmosphere) {
  position: relative;
  z-index: 1;
}

html[data-mhd-v926-atmosphere="ready"]
  .mhd-v9-fixture-hero {
  background-color: #071019;
}

@media (max-width: 860px) {
  .mhd-v9-fixture-hero.mhd-v926-atmosphere-host {
    --mhd-v926-image-opacity: .16;
  }

  .mhd-v9-supporter-flow.mhd-v926-atmosphere-host {
    --mhd-v926-image-opacity: .06;
  }

  .mhd-v926-atmosphere-frame {
    inset: 0;
    transform: none;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mhd-v926-atmosphere-frame {
    transition: none !important;
    transform: none !important;
  }
}
