/* Fans254 V1204 combined static CSS; original order preserved. */

/* --- /assets/css/fans254-v1115-ad-media-edges.css --- */
/* Fans254 V1115: two isolated feed-ad geometry fixes.
   Leave Reels, normal feeds, ad palette, playback and object-fit untouched. */

/* Uploaded single-video ads: fix the V1114 portrait stage that ended short of
   the caption and CTA on the right. Keep the existing capped height and contain
   mode for over-cap sources; the stage occupies the normal inset feed width. */
.social-shell .social-post.f832-new-sponsored:not(.social-reel-post) > .social-post-media.f842-ad-video-stage.f837-limited-media[data-f1114-over-cap="1"] {
  width:calc(100% - var(--f1105-ad-inset,54px))!important;
  max-width:calc(100% - var(--f1105-ad-inset,54px))!important;
  margin-left:var(--f1105-ad-inset,54px)!important;
}

/* Uploaded creative / marketplace multi-photo ads: the rail is still allowed
   to scroll across the complete card without an immovable left blocker. The
   leading spacer from V1114 scrolls away; the first photo starts at the text
   inset, and a real slice of the NEXT photo remains visible at the right. */
.social-shell .social-post.f830-sponsored:not(.social-reel-post) > .social-post-media.f830-ad-media.f830-ad-carousel {
  --f1115-next-preview:clamp(72px,24vw,116px);
  min-width:0!important;
}
.social-shell .social-post.f830-sponsored:not(.social-reel-post) > .social-post-media.f830-ad-media.f830-ad-carousel:not(.social-post-video-player) > :is(img,video) {
  flex:0 0 min(calc(100% - var(--f1105-ad-inset,54px) - var(--f1115-next-preview)),450px)!important;
  width:min(calc(100% - var(--f1105-ad-inset,54px) - var(--f1115-next-preview)),450px)!important;
  min-width:0!important;
  max-width:none!important;
}

/* Boosted ordinary posts render with the original feed gallery rather than
   f830-ad-carousel; provide the same visible next-photo affordance there.
   Do not change its stage alignment, height cap, or photo object-fit. */
.social-shell .social-post[data-paid-ad="true"]:not(.social-reel-post) > .f254-feed-gallery > .f254-feed-gallery-track {
  gap:6px!important;
  scroll-padding-inline:0!important;
}
.social-shell .social-post[data-paid-ad="true"]:not(.social-reel-post) > .f254-feed-gallery .f254-feed-slide,
.social-shell .social-post[data-paid-ad="true"]:not(.social-reel-post) > .f254-feed-gallery[data-f1103-shared-height="1"] .f254-feed-slide,
.social-shell .social-post[data-paid-ad="true"]:not(.social-reel-post) > .f254-feed-gallery[data-f1069-measured] .f254-feed-slide {
  flex:0 0 calc(100% - clamp(76px,27%,140px))!important;
  width:calc(100% - clamp(76px,27%,140px))!important;
  min-width:0!important;
  scroll-snap-align:start!important;
}


/* --- /assets/css/fans254-v1116-ad-video-cover.css --- */
/* V1116 — uploaded VIDEO advertisements in Home/Feed only.
 * Fix the portrait creative being narrowed inside its feed card. The stage
 * must share the caption / CTA edges; a video taller than the admin cap is
 * CROPPED with object-fit: cover (not shrunk with contain). Reels ads,
 * normal post videos, image galleries and all media URLs are untouched.
 */
.social-shell .social-post.f832-new-sponsored:not(.social-reel-post) > .social-post-media.f842-ad-video-stage.f837-limited-media {
  box-sizing:border-box!important;
  width:calc(100% - var(--f1105-ad-inset,54px))!important;
  max-width:calc(100% - var(--f1105-ad-inset,54px))!important;
  min-width:0!important;
  margin-left:var(--f1105-ad-inset,54px)!important;
  margin-right:0!important;
  overflow:hidden!important;
  border-radius:var(--f1105-ad-corner,10px)!important;
  max-height:min(450px,var(--f254-feed-video-max,660px))!important;
}
.social-shell .social-post.f832-new-sponsored:not(.social-reel-post) > .social-post-media.f842-ad-video-stage.f837-limited-media > video[data-f1114-ad-video] {
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  object-fit:cover!important;
  object-position:center!important;
}
/* Metadata lets the existing JS decide whether the video exceeds the cap.
 * Keep the cap for tall creatives and fill that area with COVER instead of
 * letterboxing or reducing the stage width to the intrinsic portrait ratio. */
.social-shell .social-post.f832-new-sponsored:not(.social-reel-post) > .social-post-media.f842-ad-video-stage.f837-limited-media[data-f1114-over-cap="1"],
.social-shell .social-post.f832-new-sponsored:not(.social-reel-post) > .social-post-media.f842-ad-video-stage.f837-limited-media[data-f1112-over-cap="1"] {
  height:var(--f1114-video-cap,min(450px,var(--f254-feed-video-max,660px)))!important;
  max-height:min(450px,var(--f254-feed-video-max,660px))!important;
  aspect-ratio:auto!important;
}
.social-shell .social-post.f832-new-sponsored:not(.social-reel-post) > .social-post-media.f842-ad-video-stage.f837-limited-media[data-f1114-over-cap="1"] > video[data-f1114-ad-video],
.social-shell .social-post.f832-new-sponsored:not(.social-reel-post) > .social-post-media.f842-ad-video-stage.f837-limited-media[data-f1112-over-cap="1"] > video[data-f1114-ad-video] {
  width:100%!important;
  height:100%!important;
  max-height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
}


/* --- /assets/css/fans254-v1121-cta-viewport.css --- */
/* Fans254 V1121 — restore V928 delayed, viewport-triggered CTA palette.
 * One 2s IntersectionObserver gate, then a .55s paint transition.
 * Covers sponsored Feed, sponsored Reels and explicitly boosted existing posts.
 * Website hostname links and ordinary non-ad actions are untouched. */

/* Baseline colors before the two-second viewport timer. */
.social-shell .social-post.f826-sponsored:not(.social-reel-post) [data-ad-cta]:not(.is-ad-vivid):not(.f837-website-link),
.social-shell .social-post .f832-optional-post-cta[data-ad-cta]:not(.is-ad-vivid) {
  background-color:var(--social-surface,#fff)!important;
  background-image:none!important;
  color:var(--social-text,#172234)!important;
  border-color:var(--social-border,#dce3ed)!important;
}
html[data-theme=dark] .social-shell .social-post.f826-sponsored:not(.social-reel-post) [data-ad-cta]:not(.is-ad-vivid):not(.f837-website-link),
html[data-theme=dark] .social-shell .social-post:not(.social-reel-post) .f832-optional-post-cta[data-ad-cta]:not(.is-ad-vivid) {
  background-color:#303744!important;
  color:#f1f3f8!important;
  border-color:#454d5d!important;
}
.social-shell .f826-ad-reel-panel [data-ad-cta]:not(.is-ad-vivid):not(.f837-website-link),
.social-shell .social-reel-post .f832-optional-post-cta[data-ad-cta]:not(.is-ad-vivid) {
  background-color:rgba(10,13,18,.84)!important;
  background-image:none!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.5)!important;
}

/* V928 550ms color fade (paint properties only; no layout or scrolling). */
.social-shell .social-post.f826-sponsored [data-ad-cta]:not(.f837-website-link),
.social-shell .f826-ad-reel-panel [data-ad-cta]:not(.f837-website-link),
.social-shell .social-post .f832-optional-post-cta[data-ad-cta] {
  transition:background-color .55s ease,color .55s ease,border-color .55s ease!important;
}

/* Applied only when the V1121 observer confirms 55% visibility for 2s. */
.social-shell .social-post.f826-sponsored:not(.social-reel-post) [data-ad-cta].is-ad-vivid:not(.f837-website-link),
.social-shell .f826-ad-reel-panel [data-ad-cta].is-ad-vivid:not(.f837-website-link),
.social-shell .social-post .f832-optional-post-cta[data-ad-cta].is-ad-vivid {
  background-color:var(--ad-palette,var(--ad-cta-palette,#1769e8))!important;
  background-image:none!important;
  border-color:var(--ad-palette,var(--ad-cta-palette,#1769e8))!important;
  color:var(--ad-palette-text,#fff)!important;
}
@media(prefers-reduced-motion:reduce){
  .social-shell .social-post.f826-sponsored [data-ad-cta]:not(.f837-website-link),
  .social-shell .f826-ad-reel-panel [data-ad-cta]:not(.f837-website-link),
  .social-shell .social-post .f832-optional-post-cta[data-ad-cta]{transition:none!important}
}


/* --- /assets/css/fans254-v1130-reels-tabs.css --- */
/* V1130: compact, consistent Reels grid mode selection, light/dark via inherited colors. */
.f1130-reels-grid-tabs{display:flex;align-items:center;gap:22px;padding:8px 15px 16px;white-space:nowrap}
.f1130-reels-grid-tabs a{color:var(--social-muted,var(--text-muted,#727b8c));font-weight:650;font-size:14px;text-decoration:none;border-bottom:2px solid transparent;padding:8px 0;transition:color .15s ease,border-color .15s ease}
.f1130-reels-grid-tabs a[aria-current="page"]{color:var(--social-primary,#1877f2);border-bottom-color:currentColor}
.f1130-reels-grid-tabs a:focus-visible{outline:2px solid currentColor;outline-offset:3px}

