/* ══════════════════════════════════════════════════════════
   NOVA Support Pool — Video Preview Modal
   ══════════════════════════════════════════════════════════ */

.video-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.video-preview-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.vpm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

.vpm-content {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 24px;
  max-width: 360px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.90) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-preview-modal.active .vpm-content {
  transform: scale(1) translateY(0);
}

.vpm-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0;
}

/* ── Thumbnail ──────────────────────────────────────────── */
.vpm-thumb-link {
  display: block;
  text-decoration: none;
  flex-shrink: 0;
}

.vpm-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 55vh;
  background: var(--bg-overlay);
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vpm-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  touch-action: none;
  -webkit-user-drag: none;
  user-select: none;
}

.vpm-thumb-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-tertiary);
  padding: 24px;
  text-align: center;
  font-size: 12px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
    rgba(124, 58, 237, 0.12),
    rgba(6, 182, 212, 0.12));
}

.vpm-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.vpm-play {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  opacity: 0.9;
}

/* ── Info panel ─────────────────────────────────────────── */
.vpm-info {
  padding: 52px 16px 20px; /* 52px top leaves room for close btn when no thumb */
}

/* When a thumbnail is present above .vpm-info, reduce top padding */
.vpm-thumb-link + .vpm-info,
.vpm-thumb-link ~ .vpm-info {
  padding-top: 16px;
}

.vpm-owner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.vpm-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.vpm-owner-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vpm-title {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Stats grid ─────────────────────────────────────────── */
.vpm-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.vpm-stat {
  background: var(--bg-overlay);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vpm-stat-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.vpm-stat-lbl {
  font-size: 9px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Hint text ──────────────────────────────────────────── */
.vpm-hint {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 12px;
  text-align: center;
}

/* ── CTA button ─────────────────────────────────────────── */
.vpm-open-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  border-radius: 14px;
  background: var(--gradient-primary, linear-gradient(135deg, #7c3aed, #06b6d4));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
  border: none;
  margin-top: 4px;
}

.vpm-open-link:hover,
.vpm-open-link:active {
  opacity: 0.92;
}
