/* Static export YouTube background-video fix v9 - true cover stage */
html, body { overflow-x: hidden !important; }

.tm-static-video-section,
.elementor-section.tm-static-video-section,
.elementor-section.tm-yt-v9 {
  position: relative !important;
  overflow: hidden !important;
  background: #081017 !important;
  background-image: none !important;
  isolation: isolate !important;
  max-width: none !important;
}

body .elementor-section.tm-static-video-section.elementor-top-section,
body .elementor-section.tm-yt-v9.elementor-top-section {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  left: auto !important;
  right: auto !important;
}

.tm-static-video-section::before,
.tm-static-video-section::after,
.tm-static-video-section > .elementor-motion-effects-container,
.tm-static-video-section > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  display: none !important;
  content: none !important;
  background: none !important;
  background-image: none !important;
}

/* New full-bleed video stage inserted by JS */
.tm-static-video-section > .tm-video-bg-stage,
.tm-yt-v9 > .tm-video-bg-stage {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background: #081017 !important;
}

.tm-static-video-section > .tm-video-bg-stage iframe,
.tm-yt-v9 > .tm-video-bg-stage iframe,
.tm-youtube-bg-iframe {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  border: 0 !important;
  outline: 0 !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
  background: #081017 !important;
  z-index: 0 !important;
}

.tm-static-video-section > .elementor-background-video-container:not(.tm-video-bg-stage),
.tm-static-video-section .elementor-background-video-container:not(.tm-video-bg-stage),
.tm-static-video-section .elementor-background-video-embed:not(.tm-video-bg-stage),
.tm-yt-v9 > .elementor-background-video-container:not(.tm-video-bg-stage),
.tm-yt-v9 .elementor-background-video-container:not(.tm-video-bg-stage),
.tm-yt-v9 .elementor-background-video-embed:not(.tm-video-bg-stage) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.tm-static-video-section > .elementor-background-overlay,
.tm-static-video-section .elementor-background-overlay,
.tm-yt-v9 > .elementor-background-overlay,
.tm-yt-v9 .elementor-background-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

.tm-static-video-section > .elementor-container,
.tm-static-video-section > .e-con,
.tm-static-video-section .elementor-container,
.tm-static-video-section .elementor-column,
.tm-static-video-section .elementor-widget-wrap,
.tm-static-video-section .elementor-widget,
.tm-static-video-section .elementor-element-populated,
.tm-yt-v9 > .elementor-container,
.tm-yt-v9 > .e-con,
.tm-yt-v9 .elementor-container,
.tm-yt-v9 .elementor-column,
.tm-yt-v9 .elementor-widget-wrap,
.tm-yt-v9 .elementor-widget,
.tm-yt-v9 .elementor-element-populated {
  position: relative !important;
  z-index: 2 !important;
}

.tm-static-video-section > .elementor-container,
.tm-yt-v9 > .elementor-container {
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 767px) {
  .tm-static-video-section .elementor-hidden-phone,
  .tm-yt-v9 .elementor-hidden-phone { display: block !important; }
}
