/* Click-to-load YouTube facade.
   A real YouTube iframe pulls ~1MB of third-party JavaScript on page load and
   contacts Google before the visitor has touched anything — bad for Core Web
   Vitals and wrong for a site running Consent Mode v2. So the page ships a
   local thumbnail and only builds the iframe once the visitor clicks play.
   Thumbnails live in /video-thumbs and are all 1280x720. */

.video-block {
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 14px;
  padding: 14px;
  margin: 0 0 14px;
}

.video-block h2 {
  margin: 0 0 4px;
}

.video-block .video-sub {
  margin: 0 0 10px;
  color: #555;
  font-size: 13px;
}

.video-block .video-note {
  margin: 8px 0 0;
  color: #666;
  font-size: 12px;
}

.video-block .video-note a {
  color: #b30000;
  font-weight: 700;
}

.yt-facade {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #faf5ef;
  cursor: pointer;
  line-height: 0;
}

/* height:auto is required alongside width:100% — the HTML width/height
   attributes are per-dimension presentational hints, so overriding only width
   leaves the image at its raw 720px pixel height. */
.yt-facade img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.yt-facade .yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  border-radius: 12px;
  background: #cc0000;
  opacity: .92;
  transition: opacity .15s ease, transform .15s ease;
  pointer-events: none;
}

.yt-facade .yt-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
}

.yt-facade:hover .yt-play,
.yt-facade:focus-visible .yt-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.06);
}

.yt-facade:focus-visible {
  outline: 3px solid #cc0000;
  outline-offset: 2px;
}

.video-block iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 10px;
}

@media (max-width: 760px) {
  .yt-facade .yt-play {
    width: 56px;
    height: 40px;
  }
}
