/* ============================================================
   Video Thumbnails + Lightbox
   /templates/budgetmanager/css/video.css
   ============================================================ */

/* ── Thumbnail ─────────────────────────────────────────────── */
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  background: #000;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.video-thumb:hover img {
  opacity: 0.7;
}

/* ── Play-Button ───────────────────────────────────────────── */
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 0;
}

.play-btn svg {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.6));
  transition: transform 0.2s ease;
}

.video-thumb:hover .play-btn svg {
  transform: scale(1.12);
}

/* ── Lightbox Overlay ──────────────────────────────────────── */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.video-modal.is-open {
  display: flex;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}

/* ── Video-Container (zentriert, 16:9) ─────────────────────── */
.video-modal-inner {
  position: relative;
  width: 90vw;
  max-width: 1100px;
  z-index: 1;
}

#modalVideo {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: 8px;
  background: #000;
}

/* ── Schließen-Button ──────────────────────────────────────── */
.video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.video-modal-close:hover {
  opacity: 1;
}
