/* Shared showreel entry and in-page player for the five static Chinafixer pages. */
body #hero .main-video button#play-video.play-video {
  position: absolute;
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: calc(100% - 24px);
  padding: 10px 14px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  opacity: 1;
  cursor: pointer;
  transition: opacity 0.18s ease;
}

/* Captured pages also define a hover background; keep the entry as plain text. */
body #hero .main-video:hover button#play-video.play-video {
  border-radius: 0;
  background-color: transparent;
}

body #hero .main-video button#play-video.play-video:hover {
  background: transparent;
  border: 0;
  opacity: 0.78;
}

body #hero .main-video button#play-video.play-video:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: none;
}

body #hero .main-video button#play-video.play-video .video-cta-icon {
  display: none;
}

@media (max-width: 850px) {
  .second-half.big-footer-right {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 850px) and (forced-colors: active) {
  body #hero .main-video button#play-video.play-video:focus-visible {
    outline-color: CanvasText;
  }
}

/* Account for browser bars and safe areas without entering native full screen. */
#fullscreen-video-container.fullscreen-video {
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: max(52px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom));
  overflow: hidden;
}

#fullscreen-video-container #fullscreen-video {
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  margin: 0;
  object-fit: contain;
}

#fullscreen-video-container #close-fullscreen-video {
  top: max(8px, env(safe-area-inset-top));
  right: max(8px, env(safe-area-inset-right));
}
