/* Space between videos */
#ggf-pg13-feed-stage > * {
  margin-bottom: 18px;
}

/* ------------------------------------------------------------------
   Feed Stage (PG13 + X members): consistent column + spacing
------------------------------------------------------------------ */
#ggf-pg13-feed-stage,
.ggf-pg13-feed-stage{
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 14px 80px;
}

/* Card */
#ggf-pg13-feed-stage .ggf-card,
.ggf-pg13-feed-stage .ggf-card{
  margin: 18px auto;
}

/* Media wrapper */
#ggf-pg13-feed-stage .ggf-media,
.ggf-pg13-feed-stage .ggf-media{
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}

/* Video: no crop (letterbox default) */
#ggf-pg13-feed-stage video,
.ggf-pg13-feed-stage video{
  width: 100%;
  display: block;
  background: #000;
  border-radius: 18px;

  /* standard */
  object-fit: contain;
  object-position: 50% 50%;
}


/* Video: stable “phone” frame, consistent crop */


/* --------------------------------
   Like Button (PG13 + X members)
----------------------------------- */

#ggf-pg13-feed-stage .ggf-like,
#ggf-pg13-feed-stage .ggf-like-btn,
.ggf-pg13-feed-stage .ggf-like,
.ggf-pg13-feed-stage .ggf-like-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.35);
  color: #fff;
  border-radius: 999px;
  padding: 10px 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  font: inherit;
  transition: transform 120ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#ggf-pg13-feed-stage .ggf-like:hover,
#ggf-pg13-feed-stage .ggf-like-btn:hover,
.ggf-pg13-feed-stage .ggf-like:hover,
.ggf-pg13-feed-stage .ggf-like-btn:hover {
  transform: translateY(-1px);
  background: rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.28);
}

#ggf-pg13-feed-stage .ggf-like:active,
#ggf-pg13-feed-stage .ggf-like-btn:active,
.ggf-pg13-feed-stage .ggf-like:active,
.ggf-pg13-feed-stage .ggf-like-btn:active {
  transform: translateY(0px) scale(0.98);
}

/* nudge/throb state */
@keyframes ggf-throb {
  0%   { transform: translateY(0) scale(1); }
  45%  { transform: translateY(-1px) scale(1.06); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes ggf-pulseColor {
  0%   { background: rgba(0,0,0,0.35); border-color: rgba(255,255,255,0.35); box-shadow: none; }
  50%  { background: rgba(255, 0, 120, 0.30); border-color: rgba(255, 0, 120, 0.95); box-shadow: 0 0 0 3px rgba(255, 0, 120, 0.20); }
  100% { background: rgba(0,0,0,0.35); border-color: rgba(255,255,255,0.35); box-shadow: none; }
}

#ggf-pg13-feed-stage .ggf-like.is-nudging,
#ggf-pg13-feed-stage .ggf-like-btn.is-nudging,
.ggf-pg13-feed-stage .ggf-like.is-nudging,
.ggf-pg13-feed-stage .ggf-like-btn.is-nudging {
  animation:
    ggf-throb 900ms ease-in-out infinite,
    ggf-pulseColor 1200ms ease-in-out infinite;
  border-color: rgba(255,255,255,0.40);
}

@media (prefers-reduced-motion: reduce) {
  #ggf-pg13-feed-stage .ggf-like.is-nudging,
  #ggf-pg13-feed-stage .ggf-like-btn.is-nudging,
  .ggf-pg13-feed-stage .ggf-like.is-nudging,
  .ggf-pg13-feed-stage .ggf-like-btn.is-nudging {
    animation: none;
  }
}

#ggf-pg13-feed-stage .ggf-like.is-liked,
.ggf-pg13-feed-stage .ggf-like.is-liked {
  border-color: rgba(255, 0, 120, 1);
  background: rgba(255, 0, 120, 0.26);
  box-shadow:
    0 0 0 3px rgba(255, 0, 120, 0.22),
    0 0 22px rgba(255, 0, 120, 0.26);
}


/* ==============================
   GGF Gate Modal (PG13)
   Scoped + safe
============================== */

.ggf-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(6px);
}

.ggf-gate-overlay.is-open { display: flex; }

.ggf-gate-panel {
  width: min(560px, 94vw);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(16,16,18,0.92);
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
  color: #fff;
}

.ggf-gate-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ggf-gate-title {
  font-weight: 900;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.ggf-gate-sub {
  margin-top: 6px;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  line-height: 1.35;
}

.ggf-gate-x {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.92);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 120ms ease, background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}
.ggf-gate-x:hover { background: rgba(0,0,0,0.28); border-color: rgba(255,255,255,0.28); transform: translateY(-1px); }
.ggf-gate-x:active { transform: translateY(0) scale(0.98); }

.ggf-gate-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
}

.ggf-gate-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.ggf-gate-mode {
  font-weight: 900;
  font-size: 14px;
  color: rgba(255,255,255,0.95);
}

.ggf-gate-linkbtn {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.80);
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
}
.ggf-gate-linkbtn:hover { color: rgba(255,255,255,0.95); }

.ggf-gate-label {
  display: block;
  color: rgba(255,255,255,0.86);
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 6px;
}

.ggf-gate-input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.24);
  color: #fff;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease;
}
.ggf-gate-input:focus {
  border-color: rgba(255, 72, 147, 0.85);
  background: rgba(0,0,0,0.30);
}

.ggf-gate-rowgap { height: 10px; }

.ggf-gate-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  color: rgba(255,255,255,0.90);
  font-size: 13px;
  font-weight: 800;
}

.ggf-gate-err {
  display: none;
  margin-top: 10px;
  color: rgba(255, 120, 170, 0.95);
  font-weight: 900;
  font-size: 13px;
}

.ggf-gate-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 12px;
}

.ggf-btn {
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 120ms ease, background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.ggf-btn-secondary {
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.22);
  color: #fff;
}
.ggf-btn-secondary:hover { background: rgba(0,0,0,0.30); border-color: rgba(255,255,255,0.32); transform: translateY(-1px); }

.ggf-btn-primary {
  border: 1px solid rgba(255, 72, 147, 0.95);
  background: rgba(255, 72, 147, 0.34); /* more vibrant */
  color: #fff;
}
.ggf-btn-primary:hover { background: rgba(255, 72, 147, 0.42); transform: translateY(-1px); }
.ggf-btn:active { transform: translateY(0) scale(0.98); }

.ggf-gate-note {
  margin-top: 10px;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  line-height: 1.35;
}

/* Portrait gate sizing */
.ggf-gate-panel {
  max-width: 520px;   /* smaller */
  width: calc(100% - 32px);
}

.ggf-gate-box {
  padding: 14px;
}

.ggf-gate-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ggf-gate-foot .ggf-btn {
  width: 100%;
}

/* Keep the top row stacked */
.ggf-gate-toprow {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

/* Pink Gate — GottaGF (v12) */
#ggf-like-gate-modal.ggf-gate-overlay--pink {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;              /* JS toggles to flex */
  align-items: center;
  justify-content: center;
  padding: 18px;

  /* No black: pink “glass” overlay */
  background:
    radial-gradient(1000px 700px at 20% 10%, rgba(255, 115, 190, 0.55), rgba(255, 115, 190, 0) 55%),
    radial-gradient(900px 700px at 80% 30%, rgba(230, 0, 111, 0.35), rgba(230, 0, 111, 0) 60%),
    rgba(255, 160, 215, 0.22);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#ggf-like-gate-modal .ggf-gate-modal--pink {
  width: min(560px, 94vw);
  border-radius: 22px;
  padding: 16px;
  color: #fff;

  /* Accessible pink: deep enough for white text */
  background: linear-gradient(135deg, #e6006f 0%, #ff3d97 55%, #ff5fb2 100%);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 18px 60px rgba(230, 0, 111, 0.35);
  position: relative;
}

#ggf-like-gate-modal .ggf-gate-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

#ggf-like-gate-modal .ggf-gate-head { padding: 6px 10px 12px; }
#ggf-like-gate-modal .ggf-gate-title { font-weight: 900; font-size: 18px; letter-spacing: 0.2px; }
#ggf-like-gate-modal .ggf-gate-sub { margin-top: 6px; font-weight: 700; font-size: 14px; opacity: 0.92; line-height: 1.35; }

#ggf-like-gate-modal .ggf-gate-card {
  margin-top: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.22);
}

#ggf-like-gate-modal .ggf-gate-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

#ggf-like-gate-modal .ggf-gate-mode {
  font-weight: 900;
  font-size: 14px;
}

#ggf-like-gate-modal .ggf-gate-link {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.95);
  font-weight: 900;
  text-decoration: underline;
  cursor: pointer;
}

#ggf-like-gate-modal .ggf-gate-label {
  display: block;
  margin-top: 10px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 900;
  opacity: 0.95;
}

#ggf-like-gate-modal .ggf-gate-input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 14px;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,0.28);

  /* White-ish field, NOT black */
  background: rgba(255,255,255,0.92);
  color: #5a0030; /* deep plum (not black) */
  font-weight: 800;
  outline: none;
}

#ggf-like-gate-modal .ggf-gate-input::placeholder {
  color: rgba(90,0,48,0.55);
}

#ggf-like-gate-modal .ggf-gate-input:focus {
  border-color: rgba(255,255,255,0.85);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.22);
}

#ggf-like-gate-modal .ggf-gate-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
  font-weight: 900;
  font-size: 13px;
}

#ggf-like-gate-modal .ggf-gate-error {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.26);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
}

#ggf-like-gate-modal .ggf-gate-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 12px;
}

#ggf-like-gate-modal .ggf-gate-btn {
  border-radius: 999px;
  padding: 11px 14px;
  font-weight: 900;
  cursor: pointer;
}

#ggf-like-gate-modal .ggf-gate-btn--ghost {
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.10);
  color: #fff;
}

#ggf-like-gate-modal .ggf-gate-btn--primary {
  border: 1px solid rgba(255,255,255,0.85);
  background: #fff;
  color: #e6006f; /* same deep pink */
}

#ggf-like-gate-modal .ggf-gate-foot {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
  opacity: 0.92;
}

/* Make the modal a bit skinnier overall */
#ggf-like-gate-modal .ggf-gate-modal--pink {
  width: min(520px, 94vw);
  padding: 16px;
}

/* Constrain the form card width so inputs don't feel huge */
#ggf-like-gate-modal .ggf-gate-card {
  max-width: 420px;
  margin: 10px auto 0;
  padding: 12px;
}

/* Ensure inputs follow the card width nicely */
#ggf-like-gate-modal .ggf-gate-input {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: block;
}

#ggf-like-gate-modal .ggf-gate-form{
  max-width: 420px;
  margin: 0 auto;
}

/* Force-hide/show even if JS left inline display:flex behind */
.ggf-gate-overlay.is-hidden { display: none !important; }
.ggf-gate-overlay.is-open   { display: flex !important; }


/* ============================================================
   PG13 Desktop: One card per view (page scroll) + letterbox
   marker: GGF_PG13_ONECARD_DESKTOP_V2_20260108
============================================================ */
@media (min-width: 980px){

  /* Page scroll is the scroller, but be less aggressive */
  html.ggf-pg13-shell,
  body.ggf-pg13-shell{
    scroll-snap-type: y proximity;              /* was mandatory */
    scroll-padding-top: var(--ggf-fixed-top, 0px);
    overscroll-behavior-y: auto;                /* was contain */
  }

  /* Stage should NOT be its own scroller */
  html.ggf-pg13-shell :is(#ggf-pg13-feed-stage, .ggf-pg13-feed-stage){
    height: auto;
    overflow: visible;
  }

  /* Keep align, but remove "always" which can feel stuck */
  html.ggf-pg13-shell :is(#ggf-pg13-feed-stage, .ggf-pg13-feed-stage) .ggf-card,
  html.ggf-pg13-shell :is(#ggf-pg13-feed-stage, .ggf-pg13-feed-stage) > *:not(.ggf-sentinel):not(.ggf-feed-sentinel){
    scroll-snap-align: start;
    scroll-snap-stop: normal;                  /* was always */
    height: calc(100vh - var(--ggf-fixed-top, 0px)) !important;
    min-height: calc(100vh - var(--ggf-fixed-top, 0px)) !important;
  }


  /* Intro hint must not affect layout */
  html.ggf-pg13-shell .model-feed-swipe{ position: relative; }
  html.ggf-pg13-shell .model-feed-swipe .ggf-swipe-intro{
    position: fixed;
    top: calc(var(--ggf-fixed-top, 0px) + 10px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 99998;
    margin: 0 !important;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.92);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.3px;
    pointer-events: none;
  }

  /* Card height contract */
  html.ggf-pg13-shell :is(#ggf-pg13-feed-stage, .ggf-pg13-feed-stage) .ggf-card,
  html.ggf-pg13-shell :is(#ggf-pg13-feed-stage, .ggf-pg13-feed-stage) > *:not(.ggf-sentinel):not(.ggf-feed-sentinel){
    height: calc(100vh - var(--ggf-fixed-top, 0px)) !important;
    min-height: calc(100vh - var(--ggf-fixed-top, 0px)) !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    scroll-margin-top: var(--ggf-fixed-top, 0px);
    margin: 0 auto !important;
    position: relative;
  }

  /* Media fills card */
  html.ggf-pg13-shell :is(#ggf-pg13-feed-stage, .ggf-pg13-feed-stage) .ggf-media{
    height: 100% !important;
    width: min(560px, 100%) !important;
    max-width: 560px !important;
    margin: 0 auto !important;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
  }

  /* Video fills media; no crop */
  html.ggf-pg13-shell :is(#ggf-pg13-feed-stage, .ggf-pg13-feed-stage) .ggf-media video,
  html.ggf-pg13-shell :is(#ggf-pg13-feed-stage, .ggf-pg13-feed-stage) video{
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    display: block !important;
    background: #000 !important;

    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: 50% 50% !important;
  }

}



/* ============================================================
   Desktop polish: remove "black stroke", add breathing room, make hint non-sticky
   marker: GGF_PG13_DESKTOP_POLISH_V1_20260108
============================================================ */
@media (min-width: 980px){

  /* Give the whole feed lane a consistent dark canvas so letterbox feels intentional */
  html.ggf-pg13-shell .model-feed-swipe{
    background: #070707;
  }

  /* Hint should NOT be sticky; overlay only at top of the section, then fade */
  html.ggf-pg13-shell .model-feed-swipe{ position: relative; }
  html.ggf-pg13-shell .model-feed-swipe .ggf-swipe-intro{
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99998;
    pointer-events: none;
    animation: ggf_pg13_hint_fade 700ms ease 1400ms forwards;
  }
  @keyframes ggf_pg13_hint_fade{
    to { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  }

  /* Add breathing room inside each full-height card (without changing snap math) */
  html.ggf-pg13-shell :is(#ggf-pg13-feed-stage, .ggf-pg13-feed-stage) .ggf-card,
  html.ggf-pg13-shell :is(#ggf-pg13-feed-stage, .ggf-pg13-feed-stage) > *:not(.ggf-sentinel):not(.ggf-feed-sentinel){
    padding: 12px 0 !important;       /* inside the fixed card height */
    box-sizing: border-box !important;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }

  /* Media area: slightly inset by the card padding; remove wrapper "stroke" */
  html.ggf-pg13-shell :is(#ggf-pg13-feed-stage, .ggf-pg13-feed-stage) .ggf-media{
    height: calc(100% - 24px) !important; /* 12px top + 12px bottom */
    background: transparent !important;   /* wrapper no longer paints a black slab */
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }

  /* Video still letterboxes, but no extra “card” background */
  html.ggf-pg13-shell :is(#ggf-pg13-feed-stage, .ggf-pg13-feed-stage) video{
    background: #000 !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }

}
