/* KalinkaFox Stage 1 final supporter gate overrides.
 * This deployable CSS mirrors the final block in
 * scss/components/_supporter_cta.scss and is loaded after styles.css. */
.supporter-continuation-expired {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  width: min(620px, 100%);
  margin: 24px auto;
  padding: 18px 20px;
  border: 1px solid rgba(151, 83, 113, 0.24);
  border-radius: 18px;
  background: #fff5f8;
  box-shadow: 0 14px 36px rgba(31, 18, 26, 0.1);
  color: #2b1b24;
  text-align: center;
}

.supporter-continuation-expired p {
  margin: 0;
  line-height: 1.45;
}

.supporter-continuation-expired__reload {
  min-height: 42px;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: #25101c;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.supporter-continuation-expired__reload:focus-visible {
  outline: 3px solid rgba(255, 126, 183, 0.45);
  outline-offset: 3px;
}

.video-viewer-shell__viewport {
  position: relative;
}

.video-viewer-supporter-gate[hidden] {
  display: none !important;
}

.video-viewer-supporter-gate {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(14px, 2.5vw, 32px);
  overflow: hidden;
  background: rgba(7, 5, 9, 0.96);
  backdrop-filter: blur(14px);
  overscroll-behavior: contain;
}

.video-viewer-supporter-gate__inner {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  width: min(1040px, 100%);
  max-height: 100%;
  min-height: 0;
}

.video-viewer-supporter-gate__back {
  justify-self: start;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(28, 20, 31, 0.9);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.video-viewer-supporter-gate__back:hover {
  background: rgba(54, 35, 57, 0.98);
}

.video-viewer-supporter-gate__back:focus-visible {
  outline: 3px solid rgba(255, 206, 230, 0.92);
  outline-offset: 3px;
}

.video-viewer-supporter-gate__mount {
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border-radius: 24px;
}

.supporter-cta--viewer {
  width: 100%;
  min-height: min(520px, calc(100vh - 150px));
  margin: 0;
  border-radius: 24px;
}

.video-viewer-shell.is-supporter-gate-open .video-viewer-shell__deck,
.video-viewer-shell.is-supporter-gate-open .video-viewer-shell__frame-actions,
.video-viewer-shell.is-supporter-gate-open .video-viewer-shell__social,
.video-viewer-shell.is-supporter-gate-open .video-viewer-shell__side,
.video-viewer-shell.is-supporter-gate-open .video-viewer-onboarding {
  pointer-events: none;
}

@media (max-width: 820px) {
  .supporter-cta--catalog {
    justify-self: center;
    width: min(390px, 100%);
    margin: 24px auto 18px;
    border-radius: 20px;
  }

  .video-catalog-grid > .supporter-cta--catalog {
    width: min(390px, calc(100vw - 32px));
  }

  .supporter-cta--catalog .supporter-cta__media,
  .supporter-cta--viewer .supporter-cta__media,
  .supporter-cta--lightbox .supporter-cta__media {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 250px;
    aspect-ratio: 16 / 10;
  }

  .supporter-cta--catalog .supporter-cta__content,
  .supporter-cta--viewer .supporter-cta__content {
    gap: 14px;
    padding: 22px 20px 24px;
  }

  .supporter-cta--catalog .supporter-cta__title,
  .supporter-cta--viewer .supporter-cta__title {
    font-size: clamp(1.55rem, 6vw, 1.9rem);
    line-height: 1.08;
  }

  .supporter-cta--catalog .supporter-cta__text,
  .supporter-cta--viewer .supporter-cta__text {
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .supporter-cta--catalog .supporter-cta__platforms--primary,
  .supporter-cta--viewer .supporter-cta__platforms--primary {
    gap: 10px;
  }

  .supporter-cta--catalog .supporter-cta__platforms--primary .supporter-cta__button--platform,
  .supporter-cta--viewer .supporter-cta__platforms--primary .supporter-cta__button--platform {
    min-height: 52px;
    padding: 12px 16px;
    border-radius: 14px;
  }

  .supporter-cta--catalog .supporter-cta__continue-area,
  .supporter-cta--viewer .supporter-cta__continue-area {
    gap: 10px;
    padding-top: 14px;
  }

  .video-viewer-supporter-gate {
    padding:
      max(8px, env(safe-area-inset-top))
      8px
      max(8px, env(safe-area-inset-bottom));
  }

  .video-viewer-supporter-gate__inner {
    gap: 8px;
    width: 100%;
    height: 100%;
  }

  .video-viewer-supporter-gate__back {
    min-height: 38px;
    padding: 7px 12px;
    font-size: 0.86rem;
  }

  .video-viewer-supporter-gate__mount {
    display: grid;
    justify-items: center;
    align-items: start;
    width: 100%;
    max-height: none;
    border-radius: 18px;
  }

  .supporter-cta--viewer {
    width: min(390px, 100%);
    min-height: 0;
    margin: 0 auto;
    border-radius: 18px;
  }
}

@media (max-width: 416px) {
  .supporter-cta--catalog,
  .video-catalog-grid > .supporter-cta--catalog,
  .supporter-cta--viewer {
    width: min(300px, 100%);
  }

  .supporter-cta--catalog .supporter-cta__media,
  .supporter-cta--viewer .supporter-cta__media,
  .supporter-cta--lightbox .supporter-cta__media {
    max-height: 190px;
  }

  .supporter-cta--catalog .supporter-cta__content,
  .supporter-cta--viewer .supporter-cta__content {
    gap: 11px;
    padding: 18px 14px 20px;
  }

  .supporter-cta--catalog .supporter-cta__title,
  .supporter-cta--viewer .supporter-cta__title {
    font-size: 1.42rem;
  }

  .supporter-cta--catalog .supporter-cta__eyebrow,
  .supporter-cta--viewer .supporter-cta__eyebrow {
    padding: 6px 9px;
    font-size: 0.68rem;
  }

  .supporter-cta--catalog .supporter-cta__platforms--primary .supporter-cta__button--platform,
  .supporter-cta--viewer .supporter-cta__platforms--primary .supporter-cta__button--platform {
    min-height: 48px;
    padding: 10px 12px;
    font-size: 0.84rem;
  }

  .supporter-cta--catalog .supporter-cta__existing-account,
  .supporter-cta--viewer .supporter-cta__existing-account,
  .supporter-cta--catalog .supporter-cta__continue-prompt,
  .supporter-cta--viewer .supporter-cta__continue-prompt {
    font-size: 0.82rem;
  }
}
