/* ── VIDEO BLOCKS ────────────────────────────────────────────────────────── */

.video-block {
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #0F172A;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.video-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #E2E8F0;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
}
.video-label .video-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #F87171;
}

/* 16:9 responsive container */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #000;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Loading skeleton shown before iframe loads */
.video-container .video-skeleton {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #1E293B 0%, #111827 100%);
  z-index: 1;
  transition: opacity 0.3s ease;
}
.video-container .video-skeleton.hidden {
  opacity: 0;
  pointer-events: none;
}
.video-skeleton-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-skeleton-icon svg {
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.4);
}
.video-skeleton-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}
/* Pulse animation for skeleton */
.video-skeleton-icon {
  animation: video-pulse 2s ease-in-out infinite;
}
@keyframes video-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.video-caption {
  padding: 12px 20px;
  font-size: 13px;
  color: #94A3B8;
  background: #1E293B;
  line-height: 1.5;
}
.video-caption strong {
  color: #CBD5E1;
}

/* Placeholder state — shown when no real video is set */
.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #1E293B 0%, #111827 100%);
}
.video-placeholder-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.1);
}
.video-placeholder-icon svg {
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, 0.3);
}
.video-placeholder-text {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
}
.video-placeholder-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.15);
}

/* Watch status badge */
.video-watched {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.15);
  color: #4ADE80;
  margin-left: auto;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .video-label {
    padding: 12px 16px;
    font-size: 13px;
  }
  .video-caption {
    padding: 10px 16px;
    font-size: 12px;
  }
}
