/*
  Keep Shorts focused on the 9:16 video. The live bundle still renders a title/count
  header above the feed, so this removes that row and lets the active short fit in view.
*/
.shorts-feed-header {
  display: none !important;
}

.shorts-page {
  align-content: stretch !important;
  height: calc(100dvh - 72px);
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.shorts-stage {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  place-items: center;
}

.shorts-feed {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
}

.shorts-card {
  min-height: 100% !important;
  padding: 12px 0;
}

.shorts-phone {
  width: min(430px, calc(100vw - 32px), calc(56.25dvh - 54px)) !important;
  max-height: calc(100dvh - 96px) !important;
}

.shorts-page.shorts-overlay {
  height: 100dvh;
}

.shorts-overlay .shorts-card {
  min-height: 100dvh !important;
  padding: 12px 0 !important;
}

.shorts-overlay .shorts-phone {
  width: min(430px, calc(100vw - 32px), calc(56.25dvh - 14px)) !important;
  max-height: calc(100dvh - 24px) !important;
}

@media (max-width: 880px) {
  .shorts-page {
    height: calc(100dvh - 68px);
  }

  .shorts-phone {
    width: min(100%, 380px, calc(56.25dvh - 52px)) !important;
    max-height: calc(100dvh - 92px) !important;
  }

  .shorts-page.shorts-overlay {
    height: 100dvh;
  }

  .shorts-overlay .shorts-phone {
    width: min(100%, 430px, calc(56.25dvh - 12px)) !important;
    max-height: calc(100dvh - 20px) !important;
  }
}

body.shorts-lightbox-active {
  overflow: hidden !important;
}

body.shorts-lightbox-active .shorts-page:not(.shorts-overlay) {
  position: fixed !important;
  inset: 0 !important;
  z-index: 70 !important;
  display: grid !important;
  align-content: stretch !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  padding: 0 !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 50% 18%, rgba(244, 191, 67, 0.18), transparent 34%),
    rgba(3, 2, 10, 0.96) !important;
}

body.shorts-lightbox-active .shorts-page:not(.shorts-overlay) .shorts-stage {
  width: 100% !important;
  max-width: none !important;
  height: 100dvh !important;
  margin: 0 !important;
  place-items: center !important;
}

body.shorts-lightbox-active .shorts-page:not(.shorts-overlay) .shorts-feed {
  width: 100% !important;
  height: 100dvh !important;
  min-height: 0 !important;
  overflow-y: auto !important;
}

body.shorts-lightbox-active .shorts-page:not(.shorts-overlay) .shorts-card {
  min-height: 100dvh !important;
  padding: 12px 0 !important;
}

body.shorts-lightbox-active .shorts-page:not(.shorts-overlay) .shorts-phone {
  width: min(430px, calc(100vw - 32px), calc(56.25dvh - 14px)) !important;
  max-height: calc(100dvh - 24px) !important;
}

.shorts-lightbox-close {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 76;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fffaf3;
  font: inherit;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  background: rgba(18, 9, 29, 0.82);
  border: 1px solid rgba(255, 232, 175, 0.38);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.shorts-lightbox-close:hover,
.shorts-lightbox-close:focus-visible {
  background: rgba(75, 23, 105, 0.92);
  outline: 3px solid rgba(244, 191, 67, 0.38);
  outline-offset: 2px;
}
