/* Psyche - stile del visualizzatore PDF */

.psyche-pdfv-cover {
  position: relative;
  box-sizing: border-box;
  max-width: 420px;
  width: 100%;
  margin: 40px auto;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}
@media (max-width: 480px) {
  .psyche-pdfv-cover {
    max-width: calc(100% - 32px);
    margin: 24px auto;
  }
}
.psyche-pdfv-cover-canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #111;
}
.psyche-pdfv-cover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  text-align: center;
  padding: 12px;
  transition: background 0.2s;
}
.psyche-pdfv-cover:hover .psyche-pdfv-cover-overlay {
  background: rgba(0, 0, 0, 0.5);
}
.psyche-pdfv-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.psyche-pdfv-cover-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.psyche-pdfv-spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: psyche-pdfv-spin 0.8s linear infinite;
}
@keyframes psyche-pdfv-spin {
  to {
    transform: rotate(360deg);
  }
}

.psyche-pdfv-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #0b0b0b;
  display: flex;
  flex-direction: column;
}
.psyche-pdfv-modal-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
}
.psyche-pdfv-modal-title {
  font-weight: 600;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.psyche-pdfv-modal-count {
  opacity: 0.75;
  font-size: 14px;
  white-space: nowrap;
}
.psyche-pdfv-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.psyche-pdfv-canvas-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.psyche-pdfv-canvas-wrap canvas {
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}
.psyche-pdfv-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100001;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}
.psyche-pdfv-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}
.psyche-pdfv-prev {
  left: 14px;
}
.psyche-pdfv-next {
  right: 14px;
}
@media (max-width: 600px) {
  .psyche-pdfv-arrow {
    width: 40px;
    height: 40px;
  }
}
