/* STORY FLYERS — global full-screen flyer viewer styles */
.sf-lb-trigger { cursor: zoom-in; }

.sf-lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 10, 10, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease;
}
.sf-lb-overlay.sf-lb-open {
  opacity: 1;
  visibility: visible;
}
body.sf-lb-locked {
  overflow: hidden;
}

.sf-lb-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 16px;
  transition: transform 0.15s ease, opacity 0.15s ease;
  touch-action: none;
}

.sf-lb-media {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  transition: transform 0.25s ease;
  transform-origin: center center;
}
.sf-lb-media--zoomable { cursor: zoom-in; }

.sf-lb-close,
.sf-lb-nav {
  position: absolute;
  z-index: 2;
  background: rgba(20, 20, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.sf-lb-close {
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
}

.sf-lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
}
.sf-lb-prev { left: 12px; }
.sf-lb-next { right: 12px; }

@media (max-width: 640px) {
  .sf-lb-nav { width: 40px; height: 40px; }
  .sf-lb-close { width: 40px; height: 40px; }
  .sf-lb-stage { padding: 48px 8px; }
}

.sf-lb-hint {
  position: absolute;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.sf-lb-hint--fade { opacity: 0; }

/* small expand affordance injected onto cinema-ai video cards */
.sf-lb-expand {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.sf-lb-expand:hover { background: rgba(10, 10, 10, 0.8); }

@media (hover: none) {
  .sf-lb-expand { opacity: 0.9; }
}
