/* Curated Video List optional lazy Bunny modal preview.
   Scoped to this module and adapted from the verified Media Hub 0.1.2 modal pattern. */
.flk-curated-modal {
  align-items: center;
  background: rgba(2, 6, 23, 0.78);
  box-sizing: border-box;
  display: none;
  height: 100vh;
  height: 100dvh;
  inset: 0;
  justify-content: center;
  left: 0;
  overflow-y: auto;
  padding: 24px;
  position: fixed !important;
  right: 0;
  top: 0;
  width: 100vw;
  z-index: 2147483000;
}

.flk-curated-modal.is-open {
  display: flex !important;
}

.flk-curated-modal__backdrop {
  inset: 0;
  position: absolute;
}

.flk-curated-modal__dialog {
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(7, 14, 33, 0.98), rgba(5, 8, 18, 0.98));
  border: 1px solid rgba(35, 189, 245, 0.34);
  border-radius: 22px;
  box-shadow: 0 34px 92px rgba(0, 0, 0, 0.58), 0 0 44px rgba(135, 0, 165, 0.2);
  color: #fff;
  max-width: min(980px, 96vw);
  padding: 18px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.flk-curated-modal__close {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 28px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  z-index: 2;
}

.flk-curated-modal__close:hover,
.flk-curated-modal__close:focus-visible {
  background: linear-gradient(135deg, #23bdf5 0%, #8700A5 100%);
  outline: none;
}

.flk-curated-modal__title {
  color: #fff;
  font-size: clamp(1.05rem, 2.3vw, 1.5rem);
  font-weight: 850;
  margin: 0 48px 14px 0;
}

.flk-curated-modal__frame {
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.flk-curated-modal__frame::before {
  content: '';
  display: block;
  padding-top: 56.25%;
}

.flk-curated-modal__frame iframe {
  border: 0;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

html.flk-curated-modal-open,
body.flk-curated-modal-open {
  overflow: hidden !important;
  overscroll-behavior: contain !important;
}

body.flk-curated-modal-open {
  touch-action: none;
}

.flk-curated-modal[aria-hidden="true"] {
  display: none !important;
}

.flk-curated-modal.is-open {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  transform: none !important;
  z-index: 2147483000 !important;
}

@media (max-width: 680px) {
  .flk-curated-modal.is-open {
    align-items: center !important;
    justify-content: center !important;
    padding: 10px !important;
  }

  .flk-curated-modal__dialog {
    border-radius: 18px;
    max-height: calc(100dvh - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    overflow: auto !important;
    padding: 14px;
    width: calc(100vw - 20px) !important;
    margin: auto !important;
  }

  .flk-curated-modal__title {
    font-size: 1rem;
  }

  .flk-curated-modal__close {
    position: fixed !important;
    top: 12px !important;
    right: 12px !important;
    width: 46px !important;
    height: 46px !important;
    font-size: 32px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #23bdf5 0%, #8700A5 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.78) !important;
    box-shadow: 0 10px 32px rgba(0,0,0,0.62), 0 0 22px rgba(35,189,245,0.38) !important;
    z-index: 2147483001 !important;
  }
}
