/* ============================================================
   REEL MODAL · embed Instagram dentro do site (não sai pro IG)
   ============================================================ */
#reel-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  animation: rmFadeIn .25s ease-out;
}
#reel-modal-backdrop.is-open { display: flex; }

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

#reel-modal-card {
  position: relative;
  background: #0d0d18;
  border: 1px solid rgba(225, 48, 108, 0.25);
  border-radius: 16px;
  padding: 0;
  width: min(420px, 92vw);
  max-height: 92vh;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(225, 48, 108, 0.10),
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 120px rgba(225, 48, 108, 0.15);
  animation: rmSlideUp .35s cubic-bezier(.16,1,.3,1);
}

@keyframes rmSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

#reel-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(13, 13, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #f1f5f9;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .18s;
}
#reel-modal-close:hover {
  background: var(--ig-pink, #E1306C);
  border-color: var(--ig-pink, #E1306C);
  transform: scale(1.05);
}

#reel-modal-body {
  padding: 20px 16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 540px;
}

#reel-modal-body blockquote.instagram-media {
  margin: 0 !important;
  max-width: 100% !important;
  min-width: auto !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.reel-modal-iframe {
  width: 100%;
  max-width: 400px;
  height: 700px;
  max-height: 75vh;
  border: none;
  border-radius: 8px;
  background: #0d0d18;
  display: block;
}

#reel-modal-loading {
  color: #94a3b8;
  font-size: 13px;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
#reel-modal-loading::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(225, 48, 108, 0.18);
  border-top-color: var(--ig-pink, #E1306C);
  animation: rmSpin .8s linear infinite;
}
@keyframes rmSpin {
  to { transform: rotate(360deg); }
}

#reel-modal-meta {
  padding: 0 18px 16px;
  font-size: 11px;
  color: #64748b;
  text-align: center;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
}
#reel-modal-meta a {
  color: var(--ig-pink, #E1306C);
  text-decoration: none;
  border-bottom: 1px dashed rgba(225, 48, 108, 0.40);
}
#reel-modal-meta a:hover { border-bottom-style: solid; }

/* Body sem scroll quando modal aberto */
body.reel-modal-open { overflow: hidden; }

/* Mobile */
@media (max-width: 480px) {
  #reel-modal-card { width: 96vw; max-height: 96vh; }
  #reel-modal-body { padding: 14px 10px 10px; min-height: 480px; }
}
