.fullscreen_video,
.fullscreen_video *,
.fullscreen_video *::before,
.fullscreen_video *::after {
  box-sizing: border-box;
}

.fullscreen_video {
  --fv-accent: #b80e1d;
  --fv-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  width: auto;
  height: 100vh;
  height: 100dvh;
  margin: 0 calc(50% - 50vw);
  overflow: hidden;
  isolation: isolate;
  background: #080a0d;
  color: #fff;
  text-align: center;
}

/* Anchor the player to the slide rather than its padded content column. */
.fv-video-slide { position: relative; min-height: 100dvh; overflow: hidden; }
.fv-video-host { position: static !important; }
.fv-video-slide .fullscreen_video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  z-index: 1;
}

.fv-scene,
.fv-shade,
.fullscreen_video .fv-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fullscreen_video .fv-video {
  display: block;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transition: opacity 1.1s ease;
}

.fv-shade {
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0.18), rgba(0,0,0,0.28) 35%, rgba(0,0,0,0.58) 68%, #000);
  transition: opacity 0.65s ease;
}

.fv-content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 90%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.fullscreen_video .fv-headline {
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(18px, 2.8vw, 64px);
  font-weight: 400;
  font-style: normal;
  line-height: 1.25;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  --fv-delay: 0.3s;
}

.fv-underline {
  display: block;
  width: clamp(90px, 14.2vw, 320px);
  height: 2px;
  margin-top: 1.1vw;
  background: linear-gradient(to right, transparent, var(--fv-accent) 35%, var(--fv-accent) 65%, transparent);
  --fv-delay: 0.45s;
}

.fv-play-wrap {
  margin-top: clamp(24px, 2.8vw, 64px);
  --fv-delay: 0.6s;
}

.fullscreen_video .fv-play,
.fullscreen_video .fv-pause {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1.5px solid rgba(255,255,255,0.85);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.fullscreen_video .fv-play {
  width: clamp(27.2px, 3.56vw, 80px);
  height: clamp(27.2px, 3.56vw, 80px);
}

.fv-play svg { width: 35%; height: 35%; }
.fv-play .fv-replay-icon { display: none; }
.fullscreen_video.is-ended .fv-play-icon { display: none; }
.fullscreen_video.is-ended .fv-replay-icon { display: block; }
.fullscreen_video .fv-play:disabled { opacity: 0.5; cursor: default; }
.fullscreen_video .fv-play:not(:disabled):hover,
.fullscreen_video .fv-pause:hover { background: rgba(255,255,255,0.08); border-color: #fff; }
.fullscreen_video .fv-pause:hover { scale: 1.04; }
.fullscreen_video .fv-play:focus-visible,
.fullscreen_video .fv-pause:focus-visible { outline: 2px solid #fff !important; outline-offset: 6px; }

.fullscreen_video .fv-pause {
  position: absolute;
  z-index: 3;
  left: max(24px, env(safe-area-inset-left));
  bottom: max(24px, env(safe-area-inset-bottom));
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0.3);
  transition: background 0.35s ease, border-color 0.35s ease, scale 0.45s var(--fv-ease);
}

.fv-pause svg { width: 26px; height: 26px; }
.fullscreen_video .fv-pause[hidden] { display: none; }
.fullscreen_video .fv-status { margin: 1rem 0 0; padding: 0; color: #fff; }
.fv-status:empty { display: none; }

.fullscreen_video.is-playing .fv-content,
.fullscreen_video.is-playing .fv-shade { opacity: 0; pointer-events: none; }
.fullscreen_video.is-playing .fv-play { pointer-events: none; }
.fullscreen_video.is-playing .fv-video { cursor: pointer; }

/* Keep the last frame in place while fading it to the dark end screen. */
.fullscreen_video.is-ended .fv-video { opacity: 0; pointer-events: none; }
.fullscreen_video.is-ended .fv-shade { opacity: 0; }
.fullscreen_video.is-ended .fv-underline { display: none; }
.fullscreen_video.is-ended .fv-content {
  transition-duration: 0.9s;
  transition-delay: 0.25s;
}

@media (hover: hover) and (pointer: fine) {
  .fullscreen_video .fv-pause { opacity: 0; transition: opacity 0.35s ease, background 0.35s ease, scale 0.45s var(--fv-ease); }
  .fullscreen_video:hover .fv-pause,
  .fullscreen_video:focus-within .fv-pause { opacity: 1; }
}

@keyframes fv-enter {
  from { opacity: 0; translate: 0 var(--fv-rise, 16px); }
  to { opacity: 1; translate: 0 0; }
}

.fullscreen_video.is-enhanced { transition: opacity 0.45s ease; }
.fullscreen_video.is-enhanced .fv-reveal { opacity: 0; }
.fullscreen_video.is-enhanced.is-visible .fv-reveal {
  animation: fv-enter 1.8s cubic-bezier(0.42, 0, 0.22, 1) var(--fv-delay, 0.2s) both;
}
.fv-scene { --fv-rise: 0px; }
.fullscreen_video.is-enhanced.fv-leaving { opacity: 0; }
.fullscreen_video.fv-leaving .fv-reveal { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .fullscreen_video.is-enhanced,
  .fullscreen_video .fv-content,
  .fullscreen_video .fv-video,
  .fullscreen_video .fv-shade,
  .fullscreen_video .fv-play,
  .fullscreen_video .fv-pause { transition: none; }
  .fullscreen_video.is-enhanced .fv-reveal,
  .fullscreen_video.is-enhanced.is-visible .fv-reveal { animation: none; opacity: 1; translate: none; }
}
