/* ==========================================================================
   VÍDEOS DA COMUNIDADE — sanfona de 6 capas (mecânica do "Choose your class" da 4game)
   Fechado: mostra só a COLUNA DA ESQUERDA da capa (20% da largura).
   Aberto: a capa inteira (16:9). Clicar num fechado abre; clicar no aberto leva ao YouTube.
   Carregar depois do features.css.
   ========================================================================== */
.vc-section .videos-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px !important; }
.vc-section .videos-title::before { content: none !important; }
.vc-channel { display: inline-flex; align-items: center; gap: 8px; color: var(--l-gold, #e2b65c) !important; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; font-weight: 700; text-decoration: none; }
.vc-channel::after { content: '\25C6'; font-size: 9px; color: #2fe0c0; }

.vc {
  /* altura do quadro; a largura aberta é a capa inteira (16:9) e a fechada é 20% dela.
     Total = 2 capas de largura + 5 vãos, então a altura se ajusta para caber na tela. */
  --gap: 12px;
  --h: min(380px, calc((min(100vw, 1440px) - 48px - 5 * var(--gap)) / 3.5556));
  --open: calc(var(--h) * 16 / 9);
  --closed: calc(var(--open) * .2);
  display: flex; gap: var(--gap); justify-content: center; height: var(--h);
}

.vc-item {
  --cut: 14px;
  position: relative; display: block; flex: 0 0 var(--closed); height: 100%; overflow: hidden;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  background: #04100e; cursor: pointer;
  transition: flex-basis .55s cubic-bezier(.2, .7, .2, 1);
}
.vc-item.is-open { flex-basis: var(--open); cursor: pointer; }

/* a capa sempre na largura inteira, presa à esquerda: fechada, só a coluna aparece */
.vc-item img {
  position: absolute; left: 0; top: 0; height: 100%; width: var(--open); max-width: none;
  object-fit: cover; object-position: left center;
  filter: brightness(.72) saturate(.9);
  transition: filter .35s ease, transform .55s cubic-bezier(.2, .7, .2, 1);
}
.vc-item:hover img, .vc-item:focus-visible img { filter: brightness(.95) saturate(1); }
.vc-item.is-open img { filter: none; }
.vc-item.is-open:hover img { transform: scale(1.015); }

/* moldura do launcher: anel chanfrado dourado (aberto: verde-água com brilho) */
.vc-frame {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(226, 182, 92, .8), rgba(226, 182, 92, .35) 55%, rgba(226, 182, 92, .75));
  clip-path: polygon(evenodd,
    var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut), var(--cut) 0,
    calc(var(--cut) + .42px) 1px, 1px calc(var(--cut) + .42px), 1px calc(100% - 1px), calc(100% - var(--cut) - .42px) calc(100% - 1px),
    calc(100% - 1px) calc(100% - var(--cut) - .42px), calc(100% - 1px) 1px, calc(var(--cut) + .42px) 1px);
  transition: background .35s ease;
}
.vc-item:hover .vc-frame { background: linear-gradient(180deg, #e2b65c, rgba(226, 182, 92, .55) 55%, #e2b65c); }
.vc-item.is-open .vc-frame { background: linear-gradient(180deg, #2fe0c0, rgba(47, 224, 192, .45) 55%, #2fe0c0); }
.vc-item.is-open { filter: drop-shadow(0 0 18px rgba(47, 224, 192, .28)); }
.vc-item:focus-visible { outline: none; }
.vc-item:focus-visible .vc-frame { background: #2fe0c0; }

/* celular: as 6 capas inteiras, uma embaixo da outra (sem sanfona) */
@media (max-width: 760px) {
  .vc { flex-direction: column; height: auto; }
  .vc-item, .vc-item.is-open { flex: none; width: 100%; aspect-ratio: 16 / 9; height: auto; }
  .vc-item img { width: 100%; filter: none; }
  .vc-section .videos-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .vc-item, .vc-item img { transition: none; } }

/* título no mesmo tamanho dos demais; faixa mais justa em cima e embaixo */
.vc-section .videos-title { font-size: clamp(30px, 4.4vw, 52px) !important; line-height: 1.05 !important; }
.videos-section.vc-section { padding: 56px 0 64px !important; }
@media (max-width: 760px) { .videos-section.vc-section { padding: 40px 16px 48px !important; } }
