/* The film of «سینورا چیست؟» / «Sinora nedir?» (#sinora-meaning) — the founder, 2026-10-12: «اینو بردار و اصولی
 * بذارش در سکشن سینورا چیست؟ ولی دقیقا با همون اصول هیرو ولی با این نکته که اول عکس بمونه وقتی دانلود شده ویدیو
 * نمایش پیدا کنه نسبت به نت کاربر ۴۸۰ ۷۲۰ ۱۰۸۰».
 *
 * The section's photograph stays first; once the whole film is here it takes the photograph's place with the
 * hero's hand-off (sinora-hero-new.css: the photograph eases out with a settling push and a soft blur, the film
 * eases in). The film is drawn exactly where the photograph is — the same box and the same edge fades — so
 * nothing around it moves. Behaviour: sinora-meaning-film.js; markup and tiers:
 * tools/meaning-film/build-meaning-film.mjs. Theme root and fa/, equal. */

#sinora-meaning [data-snx-film] video {
  display: block; object-fit: cover; object-position: 50% 30%; opacity: 0; scale: 1.03; pointer-events: none;
  -webkit-mask-image: var(--mh), var(--mv); -webkit-mask-composite: source-in;
  mask-image: var(--mh), var(--mv); mask-composite: intersect;
  transition: opacity 1.6s cubic-bezier(.45, 0, .2, 1), scale 2.4s cubic-bezier(.2, 0, 0, 1);
}
#sinora-meaning [data-snx-film].is-film video { opacity: 1; scale: 1; }
#sinora-meaning [data-snx-film] img { transition: opacity .6s ease, scale .6s ease, filter .6s ease; }
#sinora-meaning [data-snx-film].is-film img {
  opacity: 0; scale: 1.04; filter: blur(6px) brightness(.8);
  transition: opacity 1.4s cubic-bezier(.45, 0, .55, 1) .7s, scale 2.1s cubic-bezier(.2, 0, 0, 1), filter 1.4s ease .7s;
}

/* ≥1200: the photograph's own box (sinora-sections-v2.css, «01 · sinora-meaning») */
.snx-meaning__photo video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  --mv: linear-gradient(180deg, transparent 0%, #000 12%, #000 58%, rgba(0, 0, 0, .4) 80%, transparent 100%);
}
.snx--fa .snx-meaning__photo video { --mh: linear-gradient(90deg, transparent 0%, #000 14%, #000 56%, transparent 94%); }
.snx--tr .snx-meaning__photo video { --mh: linear-gradient(270deg, transparent 0%, #000 14%, #000 56%, transparent 94%); }

/* the pause: a quiet glass button at the photograph's outer foot, there only while the film plays (V2 §6) */
#sinora-meaning.snx .snx-film-pause {
  position: absolute; z-index: 3; bottom: 24%; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); color: var(--ink); cursor: pointer; pointer-events: auto;
  background: rgba(12, 12, 11, .42); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16); opacity: 0; transition: opacity .4s ease, transform .1s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.snx--fa .snx-film-pause { left: 40px; }
.snx--tr .snx-film-pause { right: 40px; }
#sinora-meaning [data-snx-film].is-film .snx-film-pause { opacity: .85; }
#sinora-meaning.snx .snx-film-pause:hover { opacity: 1; }
#sinora-meaning.snx .snx-film-pause:active { transform: scale(.97); }
#sinora-meaning.snx .snx-film-pause:focus-visible { opacity: 1; outline: 2px solid var(--edge); outline-offset: 3px; }
#sinora-meaning .snx-film-pause svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#sinora-meaning .snx-film-pause .snx-film-i-play, #sinora-meaning .snx-film-pause[aria-pressed="true"] .snx-film-i-pause { display: none; }
#sinora-meaning .snx-film-pause[aria-pressed="true"] .snx-film-i-play { display: block; }

@media (max-width: 1199.98px) {
  .snx-meaning__band video {
    position: absolute; top: -24px; bottom: -40px; width: calc(100% + 56px); height: calc(100% + 64px);
    --mv: linear-gradient(180deg, transparent 0%, #000 12%, #000 60%, rgba(0, 0, 0, .4) 82%, transparent 100%);
  }
  .snx--fa .snx-meaning__band video { left: -48px; --mh: linear-gradient(90deg, transparent 0%, #000 12%, #000 62%, transparent 100%); }
  .snx--tr .snx-meaning__band video { right: -48px; --mh: linear-gradient(270deg, transparent 0%, #000 12%, #000 62%, transparent 100%); }
  .snx--fa .snx-film-pause { left: 16px; }
  .snx--tr .snx-film-pause { right: 16px; }
  #sinora-meaning.snx .snx-film-pause { bottom: 30%; }
}
@media (max-width: 1023.98px) {
  .snx-meaning__band video, .snx--fa .snx-meaning__band video, .snx--tr .snx-meaning__band video {
    inset: 0; left: 0; right: 0; width: 100%; height: 100%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 58%, rgba(0, 0, 0, .4) 80%, transparent 100%); -webkit-mask-composite: source-over;
    mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 58%, rgba(0, 0, 0, .4) 80%, transparent 100%); mask-composite: add;
  }
  #sinora-meaning.snx .snx-film-pause { bottom: 36%; }
}

/* No drift against the scroll for the film (the photograph keeps its own, sinora-scroll.css): it moves already,
   and Chromium drops the edge fades of a video whose transform a scroll timeline drives (seen 2026-10-12). */

@media (prefers-reduced-motion: reduce) {
  #sinora-meaning [data-snx-film] :is(img, video) { transition: opacity .2s ease; scale: none; filter: none; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .snx.snx :is(.snx-meaning__photo, .snx-meaning__band) video { -webkit-mask-image: none; mask-image: none; }
  #sinora-meaning.snx .snx-film-pause { -webkit-backdrop-filter: none; backdrop-filter: none; background: #1a1811; }
}
