.media-poster {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #22252b;
  color: #fff;
}
.media-poster-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 25px;
  text-align: center;
  background: linear-gradient(135deg, #323944, #23262d);
}
.media-poster-placeholder > span:first-child {
  font-size: 32px;
}
.media-poster-placeholder small {
  font-size: 12px;
  color: #c9cdd4;
}
.media-poster > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #22252b;
}
.media-poster-credit {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: 3px;
  font-size: 10px;
  line-height: 1.5;
  color: #fff;
  background: #16191dd9;
}
.media-poster[data-state='pending'] > img,
.media-poster[data-state='failed'] > img {
  visibility: hidden;
}
.media-poster[data-state='pending'] .media-poster-credit,
.media-poster[data-state='failed'] .media-poster-credit {
  display: none;
}
.media-poster[data-state='ready'] .media-poster-placeholder {
  visibility: hidden;
}
.external-video-slot {
  position: relative;
}
.external-video-stage,
.external-video-stage > .media-poster {
  position: absolute;
  inset: 0;
}
.external-video-stage > .external-video-play {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
  border-radius: 0;
  padding: 16px;
  color: var(--brand-on-action);
  background: transparent;
  cursor: pointer;
}
.external-video-play:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.external-video-play-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 18px #0005;
}
.external-video-play-label {
  padding: 4px 12px;
  border-radius: 4px;
  background: #16191dd9;
  font-size: 14px;
}
.external-video-play:hover .external-video-play-icon {
  background: var(--accent-hover);
}
.external-video-play:focus-visible {
  outline: 3px solid var(--brand-focus);
  outline-offset: -5px;
}
.external-video figcaption .external-video-source {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.external-video-source a {
  color: inherit;
  white-space: nowrap;
  text-decoration: none;
}
.external-video-source a:hover,
.external-video-source a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}
.external-video-feedback {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  right: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--paper);
  font-size: 13px;
  pointer-events: none;
}
.external-video-feedback:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}
.external-video-feedback p {
  margin: 0;
}
.external-video-feedback button {
  pointer-events: auto;
  color: var(--accent);
  font: inherit;
  border: 0;
  background: none;
  padding: 4px 0;
  cursor: pointer;
  text-decoration: underline;
}
.external-video-slot .media-poster-placeholder {
  justify-content: flex-start;
  padding: 12px;
  font-size: 12px;
}
.external-video-slot .media-poster-placeholder > span:first-child {
  display: none;
}
.external-video-slot .media-poster-placeholder small {
  position: absolute;
  bottom: 12px;
}
[data-video-status]:empty {
  display: none;
}
