
/* ── Prismarine Viewer Modal ─────────────────────────────────────── */
.viewer-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(11, 17, 30, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: viewerFadeIn 0.25s ease;
}

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

.viewer-modal-container {
  width: 94vw;
  height: 90vh;
  max-width: 1600px;
  max-height: 920px;
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(127, 151, 191, 0.25);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  background: #101828;
}

.viewer-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(29, 31, 35, 0.98), rgba(23, 25, 29, 0.98));
  border-bottom: 1px solid rgba(127, 151, 191, 0.15);
}

.viewer-modal-title {
  font-size: 15px;
  font-weight: 700;
  color: #e5e8ee;
  letter-spacing: -0.01em;
}

.viewer-modal-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.viewer-modal-stop-btn {
  background: linear-gradient(180deg, #785f5f 0%, #6c5656 100%);
  border: 1px solid rgba(159, 125, 125, 0.44);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #f0e0e0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.viewer-modal-stop-btn:hover {
  background: linear-gradient(180deg, #8c6e6e 0%, #7d6464 100%);
  border-color: rgba(180, 140, 140, 0.6);
}

.viewer-modal-close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #16213a;
  color: var(--text-1);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.viewer-modal-close-btn:hover {
  background: rgba(60, 62, 70, 0.92);
  color: var(--text-0);
}

.viewer-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #0f172a;
}
