/*
 * AUA core base styles — минимум, который нужен ядру (shared/core.js).
 * Концепции подключают этот файл первым и переопределяют всё остальное у себя.
 */
[hidden] { display: none !important; }

html.aua-scroll-locked,
html.aua-scroll-locked body { overflow: hidden; }

/* Плеер, который создаёт AUA.media.player(): обёртка держит пропорции видео */
.aua-player {
  position: relative;
  width: 100%;
  aspect-ratio: var(--aua-ratio, 16 / 9);
  background: #000;
  overflow: hidden;
}
.aua-player > video,
.aua-player > iframe,
.aua-player > .aua-yt-link {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
}

/* Ссылка на YouTube вместо встраивания (страница открыта как file://) */
.aua-yt-link { display: grid; place-items: center; color: #fff; text-decoration: none; }
.aua-yt-link > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.aua-yt-link > span {
  position: relative;
  padding: .8em 1.4em;
  border: 1px solid currentColor;
  border-radius: 999px;
  font: 600 14px/1 system-ui, sans-serif;
  backdrop-filter: blur(6px);
}

/* Шрифты для арабского и китайского подключает core.js по требованию.
   Концепции используют эти переменные в своих стеках шрифтов. */
:root {
  --aua-font-ar: 'Noto Kufi Arabic', 'Noto Naskh Arabic', 'Segoe UI', Tahoma, sans-serif;
  --aua-font-ar-serif: 'Noto Naskh Arabic', 'Noto Kufi Arabic', serif;
  --aua-font-zh: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --aua-font-zh-serif: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
