/* academy-video-thumbs-r1 (1031mf)
   Layout for click-to-load facades that player.js did not convert, plus a
   styled fallback when a YouTube id is missing or the thumbnail fails.
   Existing .tr-res-play / .apr1-vid-play rules in player.css stay in charge
   when those classes already apply. */
#vt-r1-css { display: none; }

/* Text-only Safety player buttons (.ap-video-play) become 16:9 cards. */
.tr-res-vid .ap-video-play[data-vt-r1="1"],
.vt-r1-play {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  position: relative;
  padding: 0;
  margin: 0;
  border: 0;
  overflow: hidden;
  cursor: pointer;
  background: #0a0d16;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.tr-res-vid [data-vt-r1="1"] > img,
.vt-r1-play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}

.vt-r1-ph {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.25)),
    repeating-linear-gradient(-45deg, #121722 0 8px, #0a0d16 8px 16px);
}

.vt-r1-pbtn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(200, 16, 16, 0.92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-size: 0;
  line-height: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.vt-r1-pbtn::before {
  content: "";
  width: 0;
  height: 0;
  border-block: 9px solid transparent;
  border-inline-start: 16px solid currentColor;
  margin-inline-start: 3px;
}

.tr-res-vid .ap-video-play[data-vt-r1="1"]:hover .vt-r1-pbtn,
.tr-res-vid .ap-video-play[data-vt-r1="1"]:focus-visible .vt-r1-pbtn,
.vt-r1-play:hover .vt-r1-pbtn,
.vt-r1-play:focus-visible .vt-r1-pbtn {
  background: #c00;
}
