/* Galeria de vídeos do YouTube na landing (17/10/2026) — cadastro-cliente.html #videos.
   Mexeu aqui? Bumpe o ?v= das duas tags <link> da seção. */
.lpvg { background: linear-gradient(180deg, var(--bg-base) 0%, #faf7fc 100%); }
.lpvg .lpvg-wrap { max-width: 1120px; margin: 0 auto; }
.lpvg-eyebrow { display: block; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .22em; color: var(--accent); margin-bottom: 10px; }

.lpvg-trilho { display: grid; gap: 18px; margin-top: 26px; }
.lpvg-trilho > * { min-width: 0; }
.lpvg-h { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lpvg-s { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 20px; }

.lpvg-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text-primary); background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--r-lg, 20px); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.lpvg-card:hover, .lpvg-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.lpvg-card:focus-visible { outline: 3px solid var(--accent-hover); outline-offset: 2px; }

.lpvg-capa { position: relative; display: block; aspect-ratio: 16 / 9; background: #12081a; overflow: hidden; }
.lpvg-short .lpvg-capa { aspect-ratio: 9 / 16; }
.lpvg-capa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.lpvg-capa::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 8, 26, 0) 55%, rgba(18, 8, 26, .55) 100%); pointer-events: none; }

/* Botão play desenhado em CSS (nada de fonte de ícone pra carregar). */
.lpvg-play { position: absolute; left: 14px; bottom: 14px; z-index: 1; width: 52px; height: 52px; border-radius: 50%; background: rgba(162, 44, 221, .94); box-shadow: 0 0 0 6px rgba(255, 255, 255, .2), 0 10px 26px rgba(51, 0, 76, .5); display: flex; align-items: center; justify-content: center; transition: transform .18s ease; }
.lpvg-play::before { content: ''; margin-left: 5px; border-left: 17px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.lpvg-card:hover .lpvg-play, .lpvg-card:focus-visible .lpvg-play { transform: scale(1.08); }
.lpvg-short .lpvg-play { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); width: 48px; height: 48px; }
.lpvg-short:hover .lpvg-play, .lpvg-short:focus-visible .lpvg-play { transform: translate(-50%, -50%) scale(1.08); }
.lpvg-dur { position: absolute; right: 10px; bottom: 10px; z-index: 1; font-size: 12px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .62); padding: 3px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }

.lpvg-txt { display: flex; flex-direction: column; gap: 4px; padding: 13px 15px 15px; }
.lpvg-txt b { font-size: 16px; line-height: 1.3; font-weight: 700; color: var(--text-primary); }
.lpvg-txt span { font-size: 13.5px; line-height: 1.45; color: var(--text-secondary); }
.lpvg-short .lpvg-txt { padding: 10px 12px 13px; }
.lpvg-short .lpvg-txt b { font-size: 14px; }

.lpvg-acoes { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 16px; margin-top: 28px; }
.lpvg-yt { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg-elevated); color: var(--text-primary); font-weight: 700; font-size: 14.5px; text-decoration: none; transition: border-color .15s ease, color .15s ease; }
.lpvg-yt svg { color: #ff0000; flex-shrink: 0; }
.lpvg-yt:hover { border-color: var(--accent); color: var(--accent); }
.lpvg-cta { display: inline-flex; align-items: center; gap: 8px; }

/* Celular/tablet: cada grupo vira carrossel com scroll-snap, o vizinho aparece pela metade. */
@media (max-width: 900px) {
    .lpvg-trilho { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: 2px; padding: 2px 2px 10px; margin-top: 20px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
    .lpvg-s { margin-top: 12px; }
    .lpvg-card { flex: 0 0 auto; scroll-snap-align: start; }
    .lpvg-h .lpvg-card { width: min(82%, 420px); }
    .lpvg-s .lpvg-card { width: min(44%, 210px); }
    .lpvg-card:hover { transform: none; }
    .lpvg-txt b { font-size: 15px; }
    .lpvg-short .lpvg-txt b { font-size: 13.5px; }
    .lpvg-txt span { font-size: 13px; }
}

/* ---- Modal do player (é só visualização: fecha no X, no Esc e no clique fora) ---- */
.lpvg-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(12, 4, 18, .9); animation: lpvgFade .18s ease; }
.lpvg-modal[hidden] { display: none !important; }
.lpvg-caixa { width: min(1000px, 100%, calc((100vh - 110px) * 16 / 9)); display: flex; flex-direction: column; gap: 10px; }
.lpvg-modal.is-short .lpvg-caixa { width: min(calc((100vh - 120px) * 9 / 16), 420px, 100%); width: min(calc((100dvh - 120px) * 9 / 16), 420px, 100%); }
.lpvg-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; }
.lpvg-topo h3 { margin: 0; font-size: 16px; font-weight: 700; color: #fff; line-height: 1.3; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lpvg-x { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; transition: background .15s ease; }
.lpvg-x:hover, .lpvg-x:focus-visible { background: rgba(255, 255, 255, .26); }
.lpvg-x svg { display: block; }
.lpvg-quadro { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lpvg-modal.is-short .lpvg-quadro { aspect-ratio: 9 / 16; }
.lpvg-quadro iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@keyframes lpvgFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lpvg-modal { animation: none; } .lpvg-card, .lpvg-play { transition: none; } }
