/* Branded YouTube link-out card — replaces the embedded iframe player.
   Brand colors per DESIGN.md: red #eb4a4a, teal #15caaa. */
.yt-card {
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 480px;
  text-decoration: none;
  color: #15caaa;
  font-weight: 600;
}

.yt-card .yt-thumb {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(21, 202, 170, 0.35);
}

.yt-card .yt-thumb img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.25s ease;
}

.yt-card:hover .yt-thumb img {
  transform: scale(1.03);
}

/* Red play triangle in a rounded badge, centered over the thumbnail. */
.yt-card .yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  border-radius: 12px;
  background: #eb4a4a;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease;
}

.yt-card .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 #ffffff;
}

.yt-card:hover .yt-play {
  background: #d83b3b;
}

.yt-card .yt-label::after {
  content: " \2197"; /* ↗ opens in new tab */
  font-weight: 700;
}
