/* ==========================================================================
   Visualizador Multimídia Lightbox (Preview Fullscreen)
   ========================================================================== */

.pv {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  animation: pvFade 0.15s ease-out;
  user-select: none;
}

@keyframes pvFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pv header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  flex: none;
  color: #F8FAFC;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pv header .nm {
  flex: 1;
  font-size: 14.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv header .hbtn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #F8FAFC;
}

.pv header .hbtn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

/* Área Central de Visualização */
.pv .corpo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: auto;
  min-height: 0;
  position: relative;
}

.pv .corpo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.pv .corpo video {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--r-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  outline: none;
}

.pv .corpo audio {
  width: min(32rem, 90%);
}

.pv .corpo iframe {
  width: 90%;
  height: 90%;
  border: none;
  background: #FFFFFF;
  border-radius: var(--r-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.pv .corpo pre {
  width: 100%;
  max-width: 64rem;
  max-height: 90%;
  overflow: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: #E2E8F0;
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--r-lg);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  user-select: text;
}

/* Botões de Navegação Anterior / Próximo */
.pv-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #F8FAFC;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  cursor: pointer;
  z-index: 10;
}

.pv-nav:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.08);
}

.pv-nav.prev {
  left: 1.5rem;
}

.pv-nav.next {
  right: 1.5rem;
}
