/* Плакат проекта: лист 2:3 с афишной типографикой. Общий для зала, комнаты проекта и предпросмотра в админке.
   Ширину задаёт --pw; все размеры внутри считаются от ширины листа (cqw). Цвет проекта: --c. */
.poster {
  position: relative;
  display: block;
  width: var(--pw, 300px);
  aspect-ratio: 2 / 3;
  color: #fff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
/* Плакат светится своим цветом, как лайтбокс в тёмном фойе. */
.poster::before {
  content: '';
  position: absolute;
  inset: -6%;
  z-index: -1;
  border-radius: 28%;
  background: var(--c);
  filter: blur(calc(var(--pw, 300px) * .17));
  opacity: var(--glow, .3);
  transition: opacity .5s;
}
.poster:hover::before, .poster:focus-visible::before { opacity: .5; }
.poster:focus-visible { outline: 2px solid #64adff; outline-offset: 6px; }

.poster-sheet {
  position: absolute;
  inset: 0;
  overflow: hidden;
  container-type: inline-size;
  border-radius: 2px;
  background: #1c1c1e;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1);
}
.poster-art, .poster-live {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--fx, 50%) var(--fy, 50%);
  user-select: none;
}
.poster-blank { background: linear-gradient(160deg, color-mix(in oklab, var(--c) 70%, #000), #000); }
/* Ролик прижат к верху: вшитые субтитры уходят под нижнюю плашку и не спорят с названием. */
.poster-live { opacity: 0; object-position: 50% 0; transition: opacity .6s; }
.poster.is-live .poster-live { opacity: 1; }

.poster-type {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4cqw;
  padding: 22cqw 6cqw 5cqw;
  text-align: center;
  background: linear-gradient(to top, color-mix(in oklab, var(--c) 34%, #000) 0%, rgb(0 0 0 / .78) 34%, rgb(0 0 0 / .32) 66%, transparent);
}
.poster-type.is-bare { padding-top: 12cqw; background: linear-gradient(to top, rgb(0 0 0 / .8), transparent); }
.poster-tagline {
  font: 500 4.3cqw/1.25 'Manrope', system-ui, sans-serif;
  letter-spacing: -.01em;
  max-width: 84cqw;
  text-wrap: balance;
  text-shadow: 0 1px 12px rgb(0 0 0 / .6);
}
/* Пока плакат показывает ролик, строка над названием уступает место кадру (там бывают субтитры). */
.poster-tagline { transition: opacity .4s; }
.poster.is-live .poster-tagline { opacity: 0; }
.poster-title {
  font: 800 calc(var(--tfs, 24) * 1cqw)/.84 'Sofia XC', 'Arial Narrow', sans-serif;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: break-word;
  text-shadow: 0 2px 30px rgb(0 0 0 / .45);
  margin-bottom: 1.4cqw;
}
/* Титры внизу афиши: служебные слова тонкие, значения плотнее. */
.poster-billing {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6cqw 3.2cqw;
  width: 100%;
  padding-top: 2.6cqw;
  border-top: 1px solid rgb(255 255 255 / .3);
  font: 600 3.7cqw/1.15 'Sofia XC', 'Arial Narrow', sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgb(255 255 255 / .86);
}
.poster-billing:empty { display: none; }
.poster-billing i { font-style: normal; font-weight: 300; letter-spacing: .09em; color: rgb(255 255 255 / .62); }

.poster-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(70% 45% at var(--sx, 30%) var(--sy, 0%), rgb(255 255 255 / .2), transparent 70%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .4s;
}
.poster:hover .poster-sheen { opacity: 1; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
