/* ============================================
   Costela e Cia — vídeo dos formatos (botão no card + janela)
   ============================================ */
.format-card { position: relative; }

.card-play {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 7px;
  border: 1px solid rgba(248, 239, 226, 0.34);
  border-radius: 999px;
  background: rgba(21, 13, 8, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), transform 0.4s var(--ease);
}

.card-play-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 56%, var(--ember) 100%);
  color: #1c0e04;
  box-shadow: 0 0 0 0 rgba(255, 106, 26, 0.55);
  animation: cardPlayPulse 2.6s ease-out infinite;
}

.card-play-icon svg { width: 13px; height: 13px; margin-left: 2px; }

@keyframes cardPlayPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 106, 26, 0.55); }
  70%, 100% { box-shadow: 0 0 0 11px rgba(255, 106, 26, 0); }
}

.card-play:hover,
.card-play:focus-visible {
  border-color: var(--accent);
  background: rgba(21, 13, 8, 0.82);
}

.card-play:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* acompanha o card quando ele sobe no hover */
.format-card:has(> a:hover) .card-play { transform: translateY(-5px); }

/* ---- janela de vídeo ---- */
.vmodal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(14px, 3vh, 32px) 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
}

.vmodal[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  animation: vmodalIn 0.35s var(--ease-out);
}

.vmodal::backdrop {
  background: rgba(10, 6, 3, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@keyframes vmodalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
}

.vmodal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, calc((100svh - 150px) * 9 / 16));
  min-width: 260px;
}

.vmodal-title {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 19px;
  color: var(--ink);
}

.vmodal-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--ink);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.vmodal-close:hover { border-color: var(--accent); color: var(--accent-2); }
.vmodal-close svg { width: 16px; height: 16px; }

.vmodal-video {
  display: block;
  width: auto;
  max-width: 100%;
  height: min(100svh - 150px, 820px);
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  background: #0d0805;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  object-fit: contain;
}

.vmodal-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.vmodal-cta svg { width: 20px; height: 10px; transition: transform 0.3s var(--ease); }
.vmodal-cta:hover svg { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .card-play-icon { animation: none; }
  .vmodal[open] { animation: none; }
}
