body.home.hp-video-modal-open {
  overflow: hidden;
}

body.home.hp-video-modal-open .chaty-widget,
body.home.hp-video-modal-open .chaty-widget-i,
body.home.hp-video-modal-open .cht-widget,
body.home.hp-video-modal-open #backtop {
  visibility: hidden !important;
  pointer-events: none !important;
}

body.home .hp-video-modal[hidden] {
  display: none !important;
}

body.home .hp-video-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  overflow-y: auto;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: rgba(18, 31, 43, 0.8);
  backdrop-filter: blur(8px);
}

body.home .hp-video-modal__dialog {
  position: relative;
  width: min(940px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(8, 18, 27, 0.36);
  color: #29455c;
  font-family: "HitInfoInter", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.home .hp-video-modal--portrait .hp-video-modal__dialog {
  width: min(460px, calc(100vw - 36px));
}

body.home .hp-video-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(18, 31, 43, 0.78);
  color: #fff;
  font: 700 26px/1 "HitInfoInter", Inter, sans-serif;
  cursor: pointer;
}

body.home .hp-video-modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111820;
}

body.home .hp-video-modal--portrait .hp-video-modal__frame {
  width: min(100%, 390px);
  max-height: calc(100vh - 190px);
  margin: 0 auto;
  aspect-ratio: 9 / 16;
}

body.home .hp-video-modal--portrait .hp-video-modal__footer {
  align-items: stretch;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
}

body.home .hp-video-modal--portrait .hp-video-modal__full {
  width: 100%;
}

body.home .hp-video-modal__frame iframe,
body.home .hp-video-modal__frame video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #111820;
  object-fit: contain;
}

body.home .hp-video-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
}

body.home .hp-video-modal__title {
  color: #29455c;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

body.home .hp-video-modal__full {
  display: inline-flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid rgba(41, 69, 92, 0.24);
  border-radius: 999px;
  background: #fff;
  color: #29455c !important;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none !important;
}

body.home .hp-video-modal__close:focus,
body.home .hp-video-modal__full:focus,
body.home .hp-video-modal__close:focus-visible,
body.home .hp-video-modal__full:focus-visible {
  outline: 3px solid rgba(193, 156, 89, 0.78);
  outline-offset: 3px;
}

@supports (height: 100dvh) {
  body.home .hp-video-modal__dialog {
    max-height: calc(100dvh - 36px);
  }

  body.home .hp-video-modal--portrait .hp-video-modal__frame {
    max-height: calc(100dvh - 190px);
  }
}

@media (max-width: 680px) {
  body.home .hp-video-modal {
    padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  }

  body.home .hp-video-modal__dialog,
  body.home .hp-video-modal--portrait .hp-video-modal__dialog {
    width: min(100%, calc(100vw - 20px));
    max-height: calc(100vh - 20px);
    border-radius: 14px;
  }

  body.home .hp-video-modal__footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  body.home .hp-video-modal__full {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home .hp-video-modal,
  body.home .hp-video-modal * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
