/* ============== CINEMA MODAL ============== */
.cinema-modal {
  position: fixed; inset: 0;
  z-index: 10000;
  background: rgba(15, 14, 13, 0.92);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  animation: cinemaIn 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  cursor: zoom-out;
}
@keyframes cinemaIn { from { opacity: 0; } to { opacity: 1; } }

.cinema-grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.25;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.85 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.cinema-curtain {
  position: absolute; top: 0; bottom: 0;
  width: 8vw;
  background: linear-gradient(90deg, #4a0a0a 0%, #800000 50%, #4a0a0a 100%);
  background-size: 18px 100%;
  background-image:
    linear-gradient(90deg, #4a0a0a 0%, #800000 50%, #4a0a0a 100%),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.4) 0 1px, transparent 1px 14px);
  box-shadow: inset 0 0 80px rgba(0,0,0,0.6);
  animation: curtainIn 0.7s cubic-bezier(0.65, 0, 0.35, 1) backwards;
}
.cinema-curtain.left  { left: 0;  animation-delay: 0.1s; transform-origin: left; }
.cinema-curtain.right { right: 0; animation-delay: 0.1s; transform-origin: right; }
@keyframes curtainIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.cinema-stage {
  position: relative; z-index: 2;
  width: min(82vw, 1400px);
  cursor: default;
  display: flex; flex-direction: column; gap: 18px;
  animation: stageIn 0.7s 0.3s cubic-bezier(0.65, 0, 0.35, 1) backwards;
}
@keyframes stageIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.cinema-meta-top, .cinema-meta-bot {
  display: flex; justify-content: space-between; align-items: baseline;
  color: var(--color-sand);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.cinema-screen {
  width: 100%; aspect-ratio: 16/9;
  background: #000;
  border: 1px solid rgba(242,234,219,0.15);
  box-shadow:
    0 0 0 6px rgba(242,234,219,0.04),
    0 40px 120px rgba(0,0,0,0.7);
  position: relative; overflow: hidden;
}
.cinema-screen iframe { width: 100%; height: 100%; display: block; border: 0; }
.cinema-placeholder { position: relative; width: 100%; height: 100%; }
.cinema-placeholder .video-still { width: 100%; height: 100%; aspect-ratio: auto !important; }
.cinema-marker {
  position: absolute; left: 24px; top: 24px;
  display: flex; flex-direction: column; gap: 8px;
  color: var(--color-sand); z-index: 2;
}
.cinema-marker .caption { color: var(--color-red); }
.cinema-marker code {
  font-family: 'Courier New', monospace; font-size: 11px;
  background: rgba(0,0,0,0.6);
  padding: 6px 10px;
  color: rgba(242,234,219,0.85);
  letter-spacing: 0.05em;
}

.cinema-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 70px);
  text-transform: uppercase;
  line-height: 0.9;
  color: var(--color-sand);
}

.cinema-close {
  position: absolute;
  top: 24px; right: 24px;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border: 1px solid rgba(242,234,219,0.4);
  border-radius: 999px;
  color: var(--color-sand);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.4s, border-color 0.4s;
}
.cinema-close:hover { background: var(--color-red); border-color: var(--color-red); }

/* ============== VIDEO CARD HOVER PREVIEW ============== */
.video-card { position: relative; }
.video-card-preview {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  animation: previewIn 0.4s ease;
}
.video-card-preview iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 130%; height: 130%;
  transform: translate(-50%, -50%);
  border: 0;
}
@keyframes previewIn { from { opacity: 0; } to { opacity: 1; } }

/* filter bar — botões funcionais */
.filter-bar .chip { transition: all 0.4s var(--ease-cine); }
.filter-bar .chip.active {
  background: var(--color-red);
  color: var(--color-sand);
  border-color: var(--color-red);
}

@media (max-width: 900px) {
  .cinema-curtain { width: 4vw; }
  .cinema-stage { width: 92vw; }
}
