/*
 * 44one Slim — YouTube-Facade
 * Nutzt Theme-CSS-Variablen mit Fallbacks (funktioniert auch ohne das
 * "44one"-Theme sinnvoll).
 */

.foss-yt-facade {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b0b0b;
  border-radius: var(--radius, 8px);
  overflow: hidden;
  cursor: pointer;
  margin: 1.5rem 0;
}
.foss-yt-facade--direct { cursor: default; }

.foss-yt-facade__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.foss-yt-facade__thumb--placeholder {
  background: linear-gradient(135deg, #1a1a1a, #3a3a3a);
}

.foss-yt-facade__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease;
  pointer-events: none; /* Klicks sollen an die ganze Fläche gehen, nicht am Icon hängenbleiben */
}
.foss-yt-facade__play svg { width: 68px; height: 48px; }
.foss-yt-facade:hover .foss-yt-facade__play,
.foss-yt-facade:focus-visible .foss-yt-facade__play {
  transform: scale(1.08);
}
@media (prefers-reduced-motion: reduce) {
  .foss-yt-facade__play { transition: none; }
}

.foss-yt-facade:focus-visible {
  outline: 3px solid var(--accent, #B8860B);
  outline-offset: 2px;
}

.foss-yt-facade__notice {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  margin: 0;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  font-size: .75rem;
  line-height: 1.4;
  padding: .5rem .75rem;
}
.foss-yt-facade__notice a {
  color: #fff;
  text-decoration: underline;
}
.foss-yt-facade__notice a:focus-visible {
  outline: 2px solid var(--accent, #B8860B);
  outline-offset: 1px;
}

.foss-yt-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
