/* APD — vídeos en publicaciones y páginas. Horizontal: todo el ancho. Vertical: centrado y de tamaño razonable. */
.apd-video { position: relative; display: block; width: 100%; max-width: 100%; margin: 1.5em auto; background: #000; overflow: hidden; }
.apd-video--vertical { width: min(380px, 100%); }
.apd-video__miniatura { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: pointer; margin: 0; max-width: none; }
.apd-video video, .apd-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

/* Botón «Reproducir»: grande y claro, también para personas mayores */
.apd-video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px;
  border-radius: 50%; border: 3px solid #fff; background: rgba(0, 0, 0, .72); cursor: pointer; padding: 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .35); transition: transform .15s ease, background .15s ease; }
.apd-video__play span { position: absolute; left: 50%; top: 50%; transform: translate(-36%, -50%); width: 0; height: 0;
  border-style: solid; border-width: 17px 0 17px 29px; border-color: transparent transparent transparent #fff; }
.apd-video__play:hover, .apd-video__play:focus-visible { background: #000; transform: translate(-50%, -50%) scale(1.06); }
.apd-video__play:focus-visible { outline: 3px solid #1a73e8; outline-offset: 4px; }

.apd-video__duracion, .apd-video__marca { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .78); color: #fff;
  font: 600 14px/1 sans-serif; padding: 6px 8px; letter-spacing: .02em; pointer-events: none; }
.apd-video__aviso { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center;
  color: #fff; font: 600 16px/1.4 sans-serif; background: #111; }
.apd-video--preparando { min-height: 220px; }
.apd-video-aviso { padding: 10px 12px; border: 1px dashed #999; color: #555; }

@media (prefers-reduced-motion: reduce) { .apd-video__play { transition: none; } }

/* Vídeos verticales seguidos: cuadrícula de 2 (3 en pantallas anchas si hay muchos), todos 9:16 */
.apd-videos-rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 760px; margin: 1.5em auto; }
.apd-videos-rejilla .apd-video { width: 100%; margin: 0; aspect-ratio: 9 / 16 !important; }
.apd-videos-rejilla .apd-video__play { width: 64px; height: 64px; }
.apd-videos-rejilla .apd-video__play span { border-width: 13px 0 13px 22px; }
.apd-videos-rejilla .apd-video video { object-fit: contain; }
@media (min-width: 700px) { .apd-videos-rejilla--muchos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 340px) { .apd-videos-rejilla { grid-template-columns: 1fr; } }
