/* insert video - Frontend Styles */
.iv-video-wrapper {
  max-width: 720px;
  margin: 1.5em 0;
  font-family: inherit;
}
.iv-video-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f0f0f;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.iv-video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}
.iv-video-card:focus {
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
}
.iv-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: scale 0.4s ease, opacity 0.2s;
}
.iv-video-card:hover .iv-video-thumb {
  scale: 1.03;
  opacity: 0.9;
}
.iv-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.05) 60%);
  transition: background 0.2s;
}
.iv-video-card:hover .iv-play-overlay {
  background: linear-gradient(0deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.1) 60%);
}
.iv-play-icon {
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
  transition: transform 0.2s ease;
}
.iv-video-card:hover .iv-play-icon {
  transform: scale(1.08);
}
.iv-video-title {
  margin-top: 0.6em;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  color: #1a1a1a;
}

/* Lightbox */
.iv-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.iv-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
}
.iv-lightbox-dialog {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  animation: ivZoomIn 0.25s ease;
}
@keyframes ivZoomIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.iv-lightbox-video-wrap {
  width: 100%;
  height: 100%;
}
.iv-lightbox-video-wrap iframe,
.iv-lightbox-video-wrap video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.iv-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.iv-lightbox-close:hover {
  background: rgba(255,255,255,0.22);
}
