.youtube-video-poster,
.youtube-video-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 16px;
  background: #171411;
}

.youtube-video-poster {
  position: relative;
  overflow: hidden;
}

.youtube-video-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.youtube-video-play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: clamp(50px, 12vw, 68px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #171411e8;
  color: #fff;
  box-shadow: 0 0 0 2px #ffffffb3;
}

.youtube-video-poster:hover .youtube-video-play { background: #000; }
.youtube-video-poster:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.youtube-video-frame { min-height: 200px; }

.youtube-video-fallback {
  margin: 8px 0 0;
  text-align: right;
  font-size: 13px;
}

.youtube-video-fallback a { color: inherit; text-decoration: underline; }

.youtube-video-play { opacity: 0; }
@media (hover: hover) {
  .youtube-video-poster:hover .youtube-video-play { opacity: 1; }
}
.youtube-video-poster:focus-visible .youtube-video-play,
.youtube-video-poster:active .youtube-video-play { opacity: 1; }

.youtube-channel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(6px, 2vw, 14px);
  max-width: 410px;
  margin: 16px auto 0;
  text-align: left;
}
.youtube-channel img.youtube-channel-avatar {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.youtube-channel-name strong, .youtube-channel-name small {
  display: block;
  font-family: system-ui, sans-serif;
  line-height: 1.4;
}
.youtube-channel-name strong { font-size: 15px; color: #272321; }
.youtube-channel-name small { font-size: 12px; color: #655d58; }
.youtube-channel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 clamp(10px, 2vw, 18px);
  border-radius: 999px;
  background: #282423;
  color: white;
  font: 650 13px/1.4 system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.youtube-channel a:hover { background: #49413d; }
.youtube-channel a:focus-visible { outline: 2px solid #8a451e; outline-offset: 3px; }
