/* All photos remain complete; the owner's wand reveals a film only on demand. */
.qp-page .qp-mixup-highlights #mixup-format-formats { overflow: clip; }
.qp-page .qp-mixup-highlights #mixup-format-formats .qp-format-gallery__item > img { object-fit: contain; }
.qp-page .qp-mixup-highlights #mixup-format-formats .qp-ai-pair { position: relative; }
.qp-page .qp-mixup-highlights #mixup-format-formats .qp-ai-pair .qp-mixup-video-frame { width: 100%; height: 100%; }
.qp-page .qp-mixup-highlights #mixup-format-formats .qp-ai-pair video { object-fit: cover; object-position: center; background: transparent; }
.qp-page .qp-mixup-highlights #mixup-format-formats .qp-ai-pair [data-ai-photo] {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; max-width: none;
  object-fit: contain; border-radius: inherit; pointer-events: none;
}
.qp-ai-pair [data-ai-photo] { transition: opacity 360ms cubic-bezier(.22,1,.36,1); }
.qp-ai-pair .qp-mixup-video-frame { transition: opacity 360ms cubic-bezier(.22,1,.36,1), visibility 0s linear 360ms; }
.qp-ai-pair[data-ai-state="playing"] .qp-mixup-video-frame { transition-delay: 0s; }
.qp-ai-pair:not([data-ai-state="playing"]) .qp-mixup-video-frame { opacity: 0; visibility: hidden; }
.qp-ai-pair[data-ai-state="playing"] [data-ai-photo] { opacity: 0; }
.qp-ai-pair[data-ai-state="playing"] .qp-ai-pair__wand { visibility: hidden; pointer-events: none; }
.qp-ai-pair__wand {
  position: absolute; z-index: 4; right: 16px; bottom: 16px; display: grid; place-items: center;
  width: 56px; height: 56px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(40,48,68,.18); background: rgba(255,255,255,.92); color: #283044;
  cursor: pointer; touch-action: manipulation; transition: background-color 160ms ease-out, transform 160ms ease-out;
}
.qp-ai-pair__wand[hidden] { display: none; }
.qp-ai-pair__wand svg { width: 28px; height: 28px; }
.qp-ai-pair__wand:hover { background: #fff; }
.qp-ai-pair__wand:active { transform: scale(.96); }
.qp-ai-pair__wand:focus-visible { outline: 2px solid #3968c5; outline-offset: 3px; }
.qp-ai-pair[data-ai-state="loading"] .qp-ai-pair__wand svg:not(.qp-ai-pair__countdown) { transform: rotate(-25deg); opacity: .6; }
.qp-ai-pair__wand svg { transition: transform 240ms ease-out, opacity 160ms ease-out; }
.qp-ai-pair__wand .qp-ai-pair__countdown { position: absolute; inset: 0; width: 56px; height: 56px; transform: rotate(-90deg); opacity: 0; pointer-events: none; }
.qp-ai-pair__countdown circle { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.qp-ai-pair[data-ai-countdown="true"] .qp-ai-pair__countdown { opacity: 1; }
.qp-ai-pair__status { position: absolute; z-index: 3; left: 16px; bottom: 16px; max-width: calc(100% - 104px); padding: 12px; border-radius: 12px; background: #fff; color: #283044; font-size: 14px; line-height: 1.4; }
.qp-ai-pair__status:empty { display: none; }
.qp-page .qp-mixup-highlights #mixup-format-formats > .qp-video-section-light,
.qp-page .qp-mixup-highlights #mixup-format-formats > :where(.qp-ambient-gate) > .qp-video-section-light {
  transition: opacity 800ms cubic-bezier(.22,1,.36,1);
}
.qp-page .qp-read-page--mixup-seo #mixup-format-formats .qp-format-gallery__navigation {
  flex-direction: column; top: 50%; bottom: auto; left: 12px; right: auto; transform: translateY(-50%); gap: 8px;
}
@media (min-width: 941px) {
  .qp-page .qp-mixup-highlights #mixup-format-formats .qp-mixup-highlight__copy { padding-left: 92px; padding-right: 24px; }
  /* Fashion only: remove 5% of the source's upper margin. Both layers keep
     the same crop and centre within the reserved highlight media column. */
  .qp-page .qp-mixup-highlights #mixup-format-formats .qp-format-gallery__item:has(video[aria-label="Fashion — оживший образ"]) {
    justify-content: center;
  }
  .qp-page .qp-mixup-highlights #mixup-format-formats .qp-ai-pair:has(video[aria-label="Fashion — оживший образ"]) {
    height: calc(var(--mixup-fit-height, 100%) * .95);
  }
  .qp-page .qp-mixup-highlights #mixup-format-formats .qp-ai-pair:has(video[aria-label="Fashion — оживший образ"]) :is([data-ai-photo], video) {
    position: absolute; top: -5.263158%; bottom: auto; left: 0;
    width: 100%; height: 105.263158%; object-fit: cover;
    border-radius: 0; clip-path: none;
  }
}
@media (max-width: 940px) {
  .qp-page .qp-read-page--mixup-seo #mixup-format-formats .qp-format-gallery__navigation { top: auto; bottom: 24px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .qp-ai-pair [data-ai-photo], .qp-ai-pair .qp-mixup-video-frame, .qp-ai-pair__wand, .qp-ai-pair__wand svg { transition: none; }
  .qp-page .qp-mixup-highlights #mixup-format-formats > .qp-video-section-light,
.qp-page .qp-mixup-highlights #mixup-format-formats > :where(.qp-ambient-gate) > .qp-video-section-light { transition: none; }
}
@media (forced-colors: active) {
  .qp-ai-pair__wand { background: Canvas; color: CanvasText; border-color: CanvasText; }
}
