/* ── MODAL OVERLAY ────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(44, 40, 37, 0.45);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-topbar {
  padding: 12px 16px 0;
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}
.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface2);
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--hover); color: var(--text); }

.modal-scroll {
  overflow-y: auto;
  flex: 1;
  padding: 0 24px 24px;
}

.modal-poster {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  background: var(--surface2);
  /* No fixed aspect-ratio or max-height — let the poster's natural
     dimensions show fully, same as the event page hero */
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-poster img {
  width: 100%;
  height: auto;             /* natural height — no cropping */
  object-fit: contain;      /* show full image */
  object-position: center;
  display: block;
}

.modal-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  line-height: 1.25;
  margin-bottom: 16px;
  text-decoration: none;
  color: var(--text);
}

.modal-details {
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.modal-detail-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.modal-detail-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.modal-detail-value { font-size: 0.9rem; color: var(--text); }

.modal-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 16px;
  white-space: pre-wrap;
}

.modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.modal-link {
  padding: 6px 14px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--surface2);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}
.modal-link:hover { border-color: var(--accent); color: var(--accent); }

.modal-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.modal-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid transparent;
  text-align: center;
}
.modal-btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.modal-btn-primary:hover { opacity: 0.85; }

/* Register button — orange, same token as event page Register */
.modal-btn-register {
  background: var(--btn-register-bg);
  color: #fff;
  border-color: var(--btn-register-bg);
  box-shadow: 0 4px 18px var(--btn-register-shadow);
}
.modal-btn-register:hover { background: var(--btn-register-hover); border-color: var(--btn-register-hover); opacity: 1; }
.modal-btn-register:disabled { opacity: 0.45; cursor: not-allowed; }
.modal-btn-share {
  background: var(--btn-share-bg);
  color: #fff;
  border-color: var(--btn-share-bg);
}
.modal-btn-share:hover { background: var(--btn-share-hover); border-color: var(--btn-share-hover); }
.modal-btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.modal-btn-secondary:hover { border-color: var(--text); }

/* ── SHARE TOAST ──────────────────────────────────────────────────────────── */
.share-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--text);
  color: var(--bg);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 9999;
  white-space: nowrap;
}
.share-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
