/* FUTURIST GAMES — LIGHTBOX VIDÉO V5 */

.fg-video-card {
  position: relative;
  display: block;
  width: min(100%, 650px);
  aspect-ratio: 16 / 6.8;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 24px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  background:
    linear-gradient(#090a14, #090a14) padding-box,
    linear-gradient(115deg, #e735ff, #18d5ff) border-box;
  box-shadow: 0 24px 55px rgba(0, 0, 0, .38);
}

.fg-video-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.fg-video-card__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 4, 15, .04), rgba(5, 4, 15, .74)),
    linear-gradient(90deg, rgba(130, 44, 220, .12), rgba(24, 213, 255, .08));
}

.fg-video-card__play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 2px solid rgba(255, 255, 255, .95);
  border-radius: 50%;
  background: rgba(3, 4, 12, .72);
  transform: translate(-50%, -50%);
  transition: transform .18s ease, background-color .18s ease;
}

.fg-video-card__play svg {
  width: 31px;
  height: 31px;
  fill: #fff;
  transform: translateX(2px);
}

.fg-video-card:hover .fg-video-card__play {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(132, 44, 220, .88);
}

.fg-video-card__label {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 20px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

html.fg-v5-open,
html.fg-v5-open body {
  overflow: hidden !important;
}

.fg-v5-lightbox[hidden] {
  display: none !important;
}

.fg-v5-lightbox {
  position: fixed !important;
  z-index: 2147483647 !important;
  inset: 0 !important;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100dvh;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}

.fg-v5-lightbox--open {
  opacity: 1;
  visibility: visible;
}

.fg-v5-lightbox__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
  background: rgba(0, 0, 0, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.fg-v5-lightbox__dialog {
  position: relative;
  z-index: 2;
  width: min(1100px, calc(100vw - 40px));
  border: 1px solid rgba(173, 62, 255, .72);
  border-radius: 26px;
  background: #03040a;
  box-shadow:
    0 35px 120px rgba(0, 0, 0, .86),
    0 0 45px rgba(129, 49, 255, .2);
  transform: translateY(12px) scale(.985);
  transition: transform .18s ease;
}

.fg-v5-lightbox--open .fg-v5-lightbox__dialog {
  transform: translateY(0) scale(1);
}

.fg-v5-lightbox__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 25px;
  background: #000;
}

.fg-v5-lightbox__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.fg-v5-lightbox__close {
  position: absolute;
  z-index: 5;
  top: -18px;
  right: -18px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #d32cff, #1eb8ff);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  font-size: 31px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 700px) {
  .fg-video-card {
    aspect-ratio: 16 / 9;
    border-radius: 20px;
  }

  .fg-v5-lightbox {
    padding: 12px;
  }

  .fg-v5-lightbox__dialog {
    width: calc(100vw - 24px);
    border-radius: 18px;
  }

  .fg-v5-lightbox__frame {
    border-radius: 17px;
  }

  .fg-v5-lightbox__close {
    top: -14px;
    right: -4px;
    width: 44px;
    height: 44px;
    font-size: 28px;
  }

  .fg-v5-lightbox__backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fg-video-card__play,
  .fg-v5-lightbox,
  .fg-v5-lightbox__dialog {
    transition: none;
  }
}
