/* Video lightbox modal — shared by home strip and /videos page. Pairs
   with /static/js/video_modal.js. */

.kv-video-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.kv-video-modal[hidden] { display: none; }
.kv-video-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}
.kv-video-modal-content {
  position: relative;
  width: min(92vw, 1280px);
  aspect-ratio: 16 / 9;
  max-height: 90vh;
}
.kv-video-modal-player {
  width: 100%; height: 100%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
.kv-video-modal-player iframe {
  width: 100%; height: 100%; border: 0; display: block;
}
.kv-video-modal-close {
  position: absolute;
  top: -42px; right: 0;
  width: 36px; height: 36px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 32px; line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}
.kv-video-modal-close:hover,
.kv-video-modal-close:focus {
  opacity: 1;
  outline: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
}
body.kv-video-modal-open { overflow: hidden; }

/* Per-card "expand" button. Card thumb container needs `position: relative`,
   which both layouts already have. */
.video-expand-btn {
  position: absolute;
  top: 6px; left: 6px;
  width: 26px; height: 26px;
  border: 0; border-radius: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px; line-height: 1;
  cursor: pointer; padding: 0;
  z-index: 3;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.video-expand-btn:hover,
.video-expand-btn:focus {
  background: rgba(217, 119, 6, 0.92);
  outline: none;
}
