/* art-video.css – bewegte Vorschaubilder (inc/art-video.php, assets/art-video.js) */

/* in Kacheln/Karten genau wie das Bild: füllt den Rahmen */
.b > video.art-vid {
  display: block; width: 100%; height: 100%; object-fit: cover;
  background: #0b1a33;
}

/* Titelbild im Artikel */
/* Titelbild im Artikel: Video nie höher als der Bildschirm, mittig – auch wenn das Titelbild quer/quadratisch
   ist und das Video hochkant (z. B. Gemini-Clip 9:16) */
.ar-titelbild video.art-vid {
  display: block; width: auto; height: auto; max-width: 100%; max-height: min(78vh, 640px);
  margin: 0 auto; border-radius: inherit; background: #0b1a33; position: relative; z-index: 1;
}

/* kleiner Hinweis „bewegt sich“ auf Karten, die erst bei Maus/Fokus abspielen */
.b:has(> video.art-vid[data-vid="hover"]) { position: relative; }
.b:has(> video.art-vid[data-vid="hover"])::after {
  content: ""; position: absolute; right: 6px; bottom: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(10, 22, 40, .65) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7v10l8-5z' fill='white'/%3E%3C/svg%3E") center / 14px no-repeat;
  pointer-events: none; transition: opacity .2s;
}
a:hover .b:has(> video.art-vid)::after, a:focus .b:has(> video.art-vid)::after { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .b:has(> video.art-vid[data-vid="hover"])::after { display: none; }
}

/* große Kacheln: Hochkant-Video ganz zeigen, dahinter das Vorschaubild unscharf und abgedunkelt */
.b:has(> video.art-vid.ganz) { position: relative; overflow: hidden; background: #0b1a33; }
.b > img.art-vid-hg {
  position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px);
  object-fit: cover; filter: blur(22px) brightness(.55) saturate(1.2); transform: scale(1.05);
}
.b > video.art-vid.ganz { position: relative; z-index: 1; object-fit: contain; background: transparent; }