/* Первый экран страницы «Пророк»: «пространственный» слайдер роликов.
   Ролики стоят на внутренней стороне огромного цилиндра: центральный –
   чёткий, к краям изображение загибается и плавно уходит в чёрный,
   по бокам проглядывают соседние ролики. Рисует WebGL
   (assets/js/prorok-slider-1.js); без WebGL – обычное видео по центру.
   Шрифты – те же, что на всём сайте: Open Sans и Noto Sans. */
.pks {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: 'Noto Sans', Arial, sans-serif;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  overscroll-behavior-x: none;
}
.pks__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}
.pks.is-dragging .pks__canvas { cursor: grabbing; }

/* видео – источник кадров для WebGL, сами на экране не видны */
.pks__media { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.pks__v { width: 1px; height: 1px; }

/* без WebGL: активный ролик по центру, как обычное видео */
.pks--nogl .pks__canvas { display: none; }
.pks--nogl .pks__media { inset: 0; width: auto; height: auto; opacity: 1; overflow: visible; }
.pks--nogl .pks__v { display: none; }
.pks--nogl .pks__v.is-active {
  display: block;
  cursor: pointer;
  pointer-events: auto;
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(62vw, 1100px);
  height: auto;
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  object-fit: cover;
  border-radius: 14px;
  background: #000;
}

/* ---- подписи и управление ---- */
.pks__ui {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 44px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  pointer-events: none;
}
.pks__text { min-width: 0; text-shadow: 0 2px 18px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.5); }
.pks__kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  font-variant-numeric: tabular-nums;
}
.pks__title {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 6.2vw, 96px);
  line-height: .95;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.pks__sub {
  margin: 12px 0 0;
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,.72);
}
/* смена подписей при листании */
.pks__text > * { transition: opacity .35s ease, transform .45s cubic-bezier(.22,.61,.36,1); }
.pks.is-switching .pks__text > * { opacity: 0; transform: translateY(10px); }

.pks__nav {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  flex-shrink: 0;
}
.pks__next {
  margin: 0 8px 0 0;
  text-align: right;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  max-width: 190px;
}
.pks__next b { display: block; font-weight: 600; color: #fff; }
.pks__btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.pks__btn:hover { background: #fff; color: #000; border-color: #fff; }
.pks__btn:active { transform: scale(.94); }
.pks__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pks__btn svg { width: 18px; height: 18px; display: block; }
/* правообладатели ролика – мелко, как подпись под афишей */
.pks__credit {
  margin: 6px 0 0;
  max-width: 60ch;
  font-size: 10.5px;
  line-height: 1.45;
  color: rgba(255,255,255,.42);
}
.pks__credit a { color: rgba(255,255,255,.6); text-decoration: underline; text-underline-offset: 2px; pointer-events: auto; }
.pks__credit a:hover { color: #fff; }
.pks__sound-hint {
  margin: 10px 0 0;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

.pks__hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  margin: 0;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  pointer-events: none;
}

/* заголовок страницы для поиска и экранных читалок – на экране не виден */
.pks__h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media screen and (max-width: 767px) {
  .pks__ui {
    left: 16px;
    right: 16px;
    bottom: 40px;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .pks__sub { font-size: 13px; }
  .pks__nav { justify-content: space-between; }
  .pks__next { margin-right: auto; text-align: left; max-width: none; }
  .pks__btn { width: 42px; height: 42px; }
  .pks--nogl .pks__v.is-active { width: calc(100vw - 32px); top: 36%; }
}

@media (prefers-reduced-motion: reduce) {
  .pks__text > * { transition: none; }
}

/* Страница с одним роликом: листать нечего – стрелки и надпись «Далее»
   убираем, боковые отражения ролика остаются (эффект зала кинотеатра). */
.pks--single .pks__nav { display: none; }
