/* Static-first media gallery for DUGA product pages. */
.movie-gallery { min-width: 0; width: 100%; }
.movie-gallery__stage { position: relative; min-width: 0; width: 100%; background: #fff; }
.movie-gallery__cover, .movie-gallery__player { display: grid; justify-items: center; width: 100%; min-width: 0; }
.movie-gallery__cover[hidden], .movie-gallery__player[hidden] { display: none; }
.movie-gallery__image { display: block; width: auto; height: auto; max-width: 100%; max-height: var(--movie-media-max-height, 640px); object-fit: contain; }
.movie-gallery__image[hidden] { display: none; }
.movie-gallery__placeholder { display: grid; place-items: center; align-content: center; gap: var(--space-3); width: 100%; min-height: 220px; padding: var(--space-6); color: #8d707c; text-align: center; }
.movie-gallery__placeholder[hidden] { display: none; }
.movie-gallery__placeholder > span:first-child { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #fff; color: #ad5279; font-size: 24px; font-weight: 800; }
.movie-gallery__placeholder small { color: #796a70; overflow-wrap: anywhere; }
.movie-gallery__placeholder-label { font-size: 13px; }
.movie-gallery__navigation { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-3); }
.movie-gallery__navigation[hidden] { display: none; }
.movie-gallery__thumbnails { display: flex; flex: 1 1 auto; gap: var(--space-2); min-width: 0; overflow-x: auto; padding: var(--space-1); scroll-snap-type: x mandatory; }
.movie-gallery__thumb { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-height: 48px; border: 1px solid #e3d8dc; border-radius: 7px; background: #fff; color: #46343c; cursor: pointer; flex-direction: column; gap: var(--space-1); min-width: 76px; max-width: 96px; padding: var(--space-1); scroll-snap-align: start; }
.movie-gallery__thumb img { display: block; width: auto; height: auto; max-width: 100%; max-height: 64px; object-fit: contain; }
.movie-gallery__thumb img[hidden] { display: none; }
.movie-gallery__thumb[aria-pressed="true"] { border-color: #b84d78; box-shadow: 0 0 0 1px #b84d78; }
.movie-gallery__thumb-label { font-size: 11px; line-height: 1.25; text-align: center; }
.movie-gallery__thumb--video { min-width: 86px; }
.movie-gallery__play { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #f8e9ef; color: #a9426e; }
.movie-gallery__placeholder-thumb { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #f8e9ef; color: #a9426e; font-weight: 800; }
.movie-gallery__status { min-height: 1.4em; margin: var(--space-2) 0 0; color: #6a5960; font-size: 12px; }
.movie-gallery__status:empty { visibility: hidden; }
.movie-gallery__noscript { margin: var(--space-3) 0 0; font-size: 13px; }
.movie-gallery__noscript a { color: #98395f; font-weight: 650; }
.movie-gallery__thumb:focus-visible { z-index: 1; outline: 3px solid #7c3151; outline-offset: 2px; }
.movie-gallery .official-player__frame { position: relative; width: min(100%, 864px); aspect-ratio: var(--duga-player-ratio); }
.movie-gallery .official-player__frame > [data-gallery-player-mount] > [data-o] { position: relative; width: 100%; height: 100%; max-width: 100% !important; }
.movie-gallery .official-player__frame--loading > [data-gallery-player-mount] > [data-o] > a { visibility: hidden; }
.movie-gallery .official-player__loading { position: absolute; z-index: 2; inset: 0; display: grid; align-content: center; justify-items: center; gap: var(--space-3); padding: var(--space-4); border: 1px solid #e7dfe2; background: #f9f7f8; color: #6e6267; font-size: 13px; text-align: center; }
.movie-gallery .official-player__frame--ready > [data-gallery-player-mount] { position: relative; z-index: 1; }
.movie-gallery .official-player__frame--ready .official-player__loading { visibility: hidden; pointer-events: none; }
.movie-gallery .official-player__spinner { width: 30px; height: 30px; border: 3px solid #e7dfe2; border-top-color: #ad5279; border-radius: 50%; animation: movie-gallery-spin 1s linear infinite; }
.movie-gallery .official-player__fallback { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: var(--space-2) var(--space-4); border-radius: 7px; background: #ad5279; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.movie-gallery .official-player__fallback[hidden] { display: none !important; }
@keyframes movie-gallery-spin { to { transform: rotate(360deg); } }
@media (max-width: 700px) {
  .movie-gallery__image { max-height: 360px; }
  .movie-gallery__placeholder { min-height: 180px; }
  .movie-gallery__navigation { gap: var(--space-1); }
}
@media (prefers-reduced-motion: reduce) { .movie-gallery .official-player__spinner { animation: none; } }
@media (min-width: 1000px) {
  .movie-gallery .official-player__frame {
    width: min(100%, 864px, calc(var(--movie-media-max-height) * var(--duga-player-ratio)));
  }
}
