.animated-video-open {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  margin-block-start: .75rem;
  border: 1px solid currentColor;
  border-radius: .75rem;
  padding: .45rem .8rem;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.animated-video-dialog {
  width: min(760px, calc(100% - 16px));
  max-height: calc(100% - 16px);
  box-sizing: border-box;
  padding: clamp(8px, 3vw, 18px);
  border: 1px solid #767676;
  border-radius: 1rem;
  background: Canvas;
  color: CanvasText;
  color-scheme: light;
}
[data-theme="dark"] .animated-video-dialog { color-scheme: dark; }
.animated-video-dialog::backdrop { background: rgb(0 0 0 / .7); }
.animated-video-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-block-end: .5rem;
}
.animated-video-dialog h2 { margin: 0; font-size: 1.1rem; }
.animated-video-close { min-height: 44px; }
.animated-video-screen {
  display: block;
  width: 100%;
  min-height: 200px;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: .5rem;
  background: #101010;
}
.animated-video-preview { display: grid; position: relative; padding: 0; cursor: pointer; }
.animated-video-preview img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.animated-video-preview span {
  position: relative;
  place-self: center;
  border-radius: .5rem;
  padding: .6rem .85rem;
  background: #171717;
  color: #fff;
  font-size: 1rem;
}
.animated-video-notice { margin-block: .65rem 0; font-size: .875rem; }
