/* =====================================================================
   EMPIRE RUSSIA — вспомогательные анимации
   Подключается после style.css; отключается при prefers-reduced-motion.
   ===================================================================== */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { transform: translateX(-120%); } to { transform: translateX(220%); } }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* ВАЖНО: на <body> допустима только opacity. Любой transform/filter на body делает его
   containing block для position:fixed и ломает модальные окна, меню и нижнюю навигацию. */
body { animation: pageIn .45s ease both; }

/* бегущий блик на полосках прогресса панели управления */
.progress__fill { position: relative; overflow: hidden; }
.progress__fill::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .4), transparent); animation: shimmer 2.6s linear infinite; }

/* состояние загрузки (кнопки, плеер) */
.is-loading { position: relative; pointer-events: none; }
.is-loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; margin: -11px; border: 3px solid rgba(255, 255, 255, .3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
