/* Блок «Видео» (#38) по прототипу (pages.css, .pg-film): обложка 16:9 в рамке с полосами радуги позади,
   белая круглая кнопка, подпись — название и платформа. Цвета и шрифты — из theme.json темы, с запасными значениями. */

.ev-video { margin: 0; }
.ev-video__frame { position: relative; isolation: isolate; }
/* Полосы радуги темы (ev_theme_bands) позади обложки, не выходят за колонку и не ложатся на подпись. */
.ev-video__frame > .ev-bands { inset: 45% -16px 0; z-index: -1; }

.ev-video__facade, .ev-video__player, .ev-video__off {
	display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px;
}
.ev-video__facade {
	position: relative; overflow: hidden; text-decoration: none;
	background: var(--wp--preset--color--ink, #1E1A17);
}
.ev-video__facade .ev-video__cover { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.ev-video__play {
	position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
	display: grid; place-items: center; background: var(--wp--preset--color--paper, #fff); transition: transform .2s;
}
.ev-video__play::after {
	content: ""; margin-left: 6px; border-style: solid; border-width: 14px 0 14px 23px;
	border-color: transparent transparent transparent var(--wp--preset--color--ink, #1E1A17);
}
.ev-video__facade:is(:hover, :focus-visible) .ev-video__play { transform: scale(1.06); }
.ev-video__facade:focus-visible { outline: 2px solid var(--wp--preset--color--ink, #1E1A17); outline-offset: 3px; }
.ev-video__player { border: 0; background: #000; }

.ev-video__caption { margin-top: 14px; display: grid; gap: 2px; }
.ev-video__caption b { font: 500 20px / 26px var(--wp--preset--font-family--jost, inherit); }
.ev-video__caption span { font-size: 15px; color: var(--wp--preset--color--ink-2, #5A5048); }

/* Карточка без видео: у выступления нет отметки «согласие на показ получено». */
.ev-video__off {
	display: grid; place-items: center; padding: 24px; text-align: center; font-size: 16px;
	color: var(--wp--preset--color--ink-2, #5A5048);
	background: repeating-linear-gradient(-8deg, #f5efe8 0 14px, #efe7de 14px 28px);
}
.ev-video__off p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
	.ev-video__play { transition: none; }
}
