/* Вертикальные ролики с событий: общий блок для главной и страниц событий.
   Цвета берутся из переменных страницы (--a1, --fg, --dim, --line). */
.clip { position: relative; margin: 0; }
.clip .frame { position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #000; }
.clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.clip .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.18); z-index: 2; }
.clip .bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--clip-c, var(--a1, #fff)); }
.clip .snd { position: absolute; z-index: 3; left: 14px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: rgba(0,0,0,.62); color: #fff; font: 600 14px/1 "Onest", system-ui, sans-serif; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s; }
.clip .snd:hover, .clip .snd:focus-visible { background: rgba(0,0,0,.85); outline: none; }
.clip .snd::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z'/%3E%3Cpath d='M17 9l4 6M21 9l-4 6' stroke='%23000' stroke-width='2' fill='none'/%3E%3C/svg%3E"); }
.clip.loud .snd::before { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z'/%3E%3Cpath d='M16 8.5a5 5 0 0 1 0 7M18.5 6a8.5 8.5 0 0 1 0 12' stroke='%23000' stroke-width='2' fill='none'/%3E%3C/svg%3E"); }
.clip.loud .snd { background: var(--clip-c, var(--a1, #fff)); color: #111; }

/* Главная: три ролика в ряд */
.clips-sec { padding-top: clamp(40px, 6vw, 80px); }
.clips-sec h2 { margin: 0 0 clamp(20px, 3vw, 36px); }
.clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); }
.clips .clip figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; }
.clips .clip figcaption b { font-family: "Unbounded", sans-serif; font-weight: 800; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.02em; color: var(--fg, #fff); }
.clips .clip figcaption a { color: var(--clip-c); font-weight: 600; text-decoration: none; white-space: nowrap; }
.clips .clip figcaption a:hover { text-decoration: underline; }
.clips .clip figcaption span { color: var(--dim, #999); font-size: 14px; }
@media (max-width: 760px) {
  .clips { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .clips::-webkit-scrollbar { display: none; }
  .clips .clip { scroll-snap-align: center; }
}

/* Страница события: ролик слева, текст справа */
.film { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.film .txt h2 { margin-top: 0; }
.film .txt p { color: var(--dim); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; max-width: 34ch; }
.film .txt .len { display: inline-block; margin-top: 8px; font-family: "Caveat", cursive; font-weight: 700; font-size: 28px; color: var(--a1); rotate: -3deg; }
@media (max-width: 760px) {
  .film { grid-template-columns: 1fr; }
  .film .clip { max-width: 360px; width: 100%; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .clip .snd { transition: none; } }
