/* video-facade.css — фасад ролика (лендинги курсов и методички).
 * Разметка — renderVideoFacade() в site-src/partials.mjs, поведение —
 * site/js/video-facade.js. Обложка ролика целиком (16:9), Play по центру,
 * длительность — плашка в углу; после нажатия на месте фасада — iframe 16:9.
 */
.vfc-wrap { max-width: 980px; margin: 0 auto; }
.vfc,
.vfc-on {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: var(--shared-navy, #0C2A44);
  box-shadow: 0 30px 70px rgba(12, 42, 68, .28);
}
.vfc { color: inherit; text-decoration: none; cursor: pointer; }
.vfc-poster { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.vfc-play {
  position: absolute; left: 50%; top: 50%;
  width: 92px; height: 92px; margin: -46px 0 0 -46px;
  border-radius: 50%;
  background: var(--color-accent, #D65A3A);
  color: var(--color-text-on-dark, #FFFFFF);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 40px rgba(214, 90, 58, .45), 0 0 0 12px rgba(255, 255, 255, .22);
  transition: transform .2s ease, background-color .2s ease;
}
.vfc-play svg { width: 36px; height: 36px; margin-left: 5px; }
.vfc:hover .vfc-play,
.vfc:focus-visible .vfc-play { background: var(--color-accent-hover, #B94A2F); transform: scale(1.06); }
.vfc:focus-visible { outline: 3px solid var(--color-accent, #D65A3A); outline-offset: 4px; }
.vfc-dur {
  position: absolute; right: 20px; bottom: 18px;
  font-size: 13px; font-weight: 800; line-height: 1; white-space: nowrap;
  color: var(--color-text-on-dark, #FFFFFF);
  background: rgba(12, 42, 68, .82);
  border-radius: 100px; padding: 8px 12px;
}
.vfc-on iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 640px) {
  .vfc, .vfc-on { border-radius: 18px; }
  .vfc-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; box-shadow: 0 10px 26px rgba(214, 90, 58, .45), 0 0 0 8px rgba(255, 255, 255, .22); }
  .vfc-play svg { width: 26px; height: 26px; margin-left: 4px; }
  .vfc-dur { right: 12px; bottom: 10px; font-size: 12px; padding: 6px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .vfc-play { transition: none; }
  .vfc:hover .vfc-play,
  .vfc:focus-visible .vfc-play { transform: none; }
}
