/* Fans254 V1357: mobile Reels' original cover/contain policy stays intact.
   A saved/imported ratio may be wrong. Never force the *video* to cover based
   only on the server's f1322-very-tall hint before native video metadata: that
   painted a full-screen poster, then abruptly SHRANK landscape frames when
   f1051 corrected it to contain. The native metadata fit is authoritative.
   Reel tiles and the existing stage colors are unchanged. */
@media (max-width:760px) {
  .social-shell .social-reel-watch .social-reel-post .social-reel-media > video[data-reel-video].f1051-geometry-cover,
  .social-shell .social-reel-watch .social-reel-post .social-reel-media > video[data-reel-video].is-cover {
    object-fit:cover!important;
    object-position:center!important;
    background:transparent!important;
  }
  /* Browser paints the video poster inside the same replaced element; both
     the initial still and the moving frames use the same cover fit. */
  .social-shell .social-reel-watch .social-reel-post .social-reel-media.f1322-very-tall {
    background:#050608!important;
    background-image:none!important;
  }
  .social-shell .social-reel-watch .social-reel-post .social-reel-media.f1322-very-tall::before {
    display:none!important;
  }
  .social-shell .social-reels-grid .social-reel-thumbnail.f1322-very-tall > :is(img,video) {
    object-fit:cover!important;
    object-position:center!important;
  }
  /* Contain mode: one darkened representative color taken from the actual
     poster/video. No plain black side rails and no linear-gradient styling. */
  .social-shell .social-reel-watch .social-reel-post .social-reel-media.f1322-contain-tone:not(.f1322-very-tall),
  html[data-theme=light] .social-shell .social-reel-watch .social-reel-post .social-reel-media.f1322-contain-tone:not(.f1322-very-tall),
  html[data-theme=dark] .social-shell .social-reel-watch .social-reel-post .social-reel-media.f1322-contain-tone:not(.f1322-very-tall) {
    background-color:#121824!important;
    background-color:color-mix(in srgb,var(--f1107-reel-color,var(--f1051-edge,#35415a)) 45%,#050608 55%)!important;
    background-image:none!important;
  }
  .social-shell .social-reel-watch .social-reel-post .social-reel-media.f1322-contain-tone:not(.f1322-very-tall)::before {
    opacity:.16!important;
    -webkit-mask-image:none!important;
    mask-image:none!important;
    background-image:var(--f1111-reel-poster,var(--f1051-poster-image,none))!important;
    background-position:center!important;
    background-size:cover!important;
    filter:blur(45px) brightness(.35) saturate(1.1)!important;
  }
  .social-shell .social-reels-grid .social-reel-thumbnail.f1322-contain-tone:not(.f1322-very-tall) {
    background-color:#101722!important;
    background-color:color-mix(in srgb,var(--f1322-palette,#34445c) 43%,#050608 57%)!important;
    background-image:none!important;
  }
}
