/* Vicente Kids — galeria de vídeos (fachada leve: YouTube, Facebook, Instagram) */
.op-vids { margin: 0 auto; }
.op-vids__titulo {
    font-family: 'Fredoka', serif; text-align: center; font-size: 2rem; margin-bottom: 22px; color: #2b2140;
}
.op-vids__grid {
    display: grid; gap: 20px;
    grid-template-columns: repeat(var(--op-vid-cols, 3), minmax(0, 1fr));
}
.op-vid {
    background: #fff; border: 1px solid #f7e9e2; border-radius: 16px; overflow: hidden;
    box-shadow: 0 2px 12px rgba(91,42,134,.06); transition: transform .2s, box-shadow .2s;
}
.op-vid:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(91,42,134,.16); }
.op-vid__play {
    position: relative; display: block; width: 100%; padding: 0; border: 0; background: #0b0b0b;
    cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden;
}
.op-vid__play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s, opacity .2s; }
.op-vid:hover .op-vid__play img { transform: scale(1.06); opacity: .85; }
.op-vid__btn {
    position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(230,46,115,.92); color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .2s, background .2s;
}
.op-vid__play:hover .op-vid__btn { transform: scale(1.12); background: #e62e73; }
.op-vid iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.op-vid__titulo {
    font-family: 'Montserrat', sans-serif; font-size: .95rem; font-weight: 500; line-height: 1.4;
    color: #2b2140; margin: 0; padding: 14px 16px 16px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.op-vids__canal { text-align: center; margin-top: 26px; }

@media (max-width: 1024px) { .op-vids__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .op-vids__grid { grid-template-columns: 1fr; gap: 16px; }
    .op-vids__titulo { font-size: 1.6rem; }
    .op-vid__btn { width: 54px; height: 54px; }
}

/* --- Vitrine da home: destaque + lista --- */
.op-vdhome { max-width: 1100px; margin: 0 auto; }
.op-vdhome__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.op-vdhome__selo { display: inline-flex; align-items: center; gap: 8px; background: var(--vk-primaria); color: #fff; border-radius: 99px; padding: 7px 16px; font: 600 .78rem 'Montserrat', sans-serif; letter-spacing: .04em; }
.op-vdhome__link { font: 600 .82rem 'Montserrat', sans-serif; color: var(--vk-primaria-escura); }
.op-vdhome__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; align-items: start; }
.op-vdhome__lista { display: grid; gap: 12px; }
.op-vd { background: #fff; border: 1px solid #f7e9e2; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 12px rgba(91,42,134,.06); transition: transform .2s, box-shadow .2s; }
.op-vd:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(91,42,134,.16); }
.op-vd .op-vid__play { aspect-ratio: 16/9; }
.op-vd .op-vid__titulo { font-family: 'Montserrat', sans-serif; font-size: .9rem; font-weight: 500; color: #2b2140; margin: 0; padding: 12px 14px 14px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.op-vd--big .op-vid__titulo { font-size: 1.05rem; padding: 16px 18px 18px; }
.op-vdhome__lista .op-vd { display: grid; grid-template-columns: 150px 1fr; align-items: center; }
.op-vdhome__lista .op-vid__play { aspect-ratio: 16/9; border-radius: 0; }
.op-vdhome__lista .op-vid__titulo { padding: 10px 14px; -webkit-line-clamp: 3; }
.op-vdhome__lista .op-vid__btn { width: 40px; height: 40px; }
.op-vd iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
@media (max-width: 900px) {
    .op-vdhome__grid { grid-template-columns: 1fr; }
    .op-vdhome__lista .op-vd { grid-template-columns: 120px 1fr; }
}

/* --- CTA final com colagem de fotos --- */
.op-cta-fotos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 4px 0 30px; }
.op-cta-fotos figure { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 1/1; box-shadow: 0 10px 26px rgba(0,0,0,.35); }
.op-cta-fotos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.op-cta-fotos figure:hover img { transform: scale(1.07); }
@media (max-width: 767px) { .op-cta-fotos { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* --- Origem do vídeo e links das redes (08/10) --- */
.op-vid__fonte {
    position: absolute; left: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,.94); color: #2b2140; border-radius: 99px; padding: 4px 10px 4px 8px;
    font: 600 .7rem 'Montserrat', sans-serif; box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.op-vid--youtube .op-vid__fonte-ic { color: #ff0033; }
.op-vid--facebook .op-vid__fonte-ic { color: #1877f2; }
.op-vid--instagram .op-vid__fonte-ic { color: #d6249f; }
.op-vdhome__lista .op-vid__fonte { left: 6px; top: 6px; padding: 3px 7px; font-size: .62rem; }
.op-vdhome__redes { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.op-vids__canal { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.op-vid-rede {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px;
    border: 2px solid #f1dcd3; background: #fff; color: #2b2140 !important; font: 600 .8rem 'Montserrat', sans-serif;
    text-decoration: none !important; transition: border-color .2s, transform .2s;
}
.op-vid-rede:hover { transform: translateY(-2px); border-color: var(--vk-primaria); }
.op-vid-rede--youtube .op-vid__fonte-ic { color: #ff0033; }
.op-vid-rede--facebook .op-vid__fonte-ic { color: #1877f2; }
.op-vid-rede--instagram .op-vid__fonte-ic { color: #d6249f; }
.op-vids__aviso { text-align: center; color: #8d7f9e; font-size: .78rem; margin-top: 10px; }
/* player do Facebook/Instagram é vertical: fundo escuro em volta */
.op-vid__frame--facebook, .op-vid__frame--instagram { background: #1b1426; }
@media (max-width: 640px) { .op-vdhome__redes { width: 100%; } }
/* título com 2 linhas: o padding no próprio elemento deixava aparecer meia terceira linha */
.op-vid__titulo, .op-vd .op-vid__titulo { padding: 0 !important; margin: 14px 16px 16px !important; }
.op-vd--big .op-vid__titulo { margin: 16px 18px 18px !important; }
.op-vdhome__lista .op-vid__titulo { margin: 10px 14px !important; }
.op-vids { max-width: 980px; }


/* ===== Bateria de testes 08/10 ===== */
/* mesmo grid de 1080px das outras seções; título da lista não vaza do cartão */
.op-vdhome { max-width: 1080px; margin: 0 auto 28px; }
.op-vdhome__lista .op-vd { grid-template-columns: 150px minmax(0, 1fr); }
.op-vdhome__lista .op-vid__titulo { min-width: 0; overflow-wrap: anywhere; }
/* miniaturas da lista: só o ícone da rede e um play menor (o selo cobria a capa) */
.op-vdhome__lista .op-vid__fonte { font-size: 0; gap: 0; padding: 4px; }
.op-vdhome__lista .op-vid__fonte .op-vid__fonte-ic { width: 14px; height: 14px; }
.op-vdhome__lista .op-vid__btn { width: 32px; height: 32px; }
.op-vdhome__lista .op-vid__btn svg { width: 14px; height: 14px; }
@media (max-width: 849px) { .op-vdhome__lista .op-vd { grid-template-columns: 120px minmax(0, 1fr); } }
/* página de vídeos no celular: Reels e Shorts tocam em pé (9:16), não espremidos em 16:9 */
@media (max-width: 640px) {
    .op-vids .op-vid[data-formato="vertical"] .op-vid__play,
    .op-vids .op-vid[data-formato="vertical"] iframe { aspect-ratio: 9 / 16; max-height: 78vh; margin: 0 auto; }
    .op-vids .op-vid[data-formato="vertical"] .op-vid__play img { object-fit: cover; height: 100%; }
}

/* ===== Vídeo em pé (Reels/Shorts) numa janela 9:16 (08/10): no cartão 16:9 o Facebook cortava a imagem ===== */
.op-vmodal {
    position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px;
    background: rgba(18, 10, 30, .86); animation: op-vmodal-in .2s ease;
}
.op-vmodal__caixa {
    position: relative; height: min(86vh, 760px); aspect-ratio: 9 / 16; max-width: calc(100vw - 32px);
    background: #000; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.op-vmodal__caixa iframe { width: 100%; height: 100%; aspect-ratio: auto; border: 0; display: block; border-radius: 16px; }
.op-vmodal__fechar {
    position: absolute; top: -14px; right: -14px; z-index: 2; width: 42px; height: 42px; min-height: 0; margin: 0; padding: 0;
    border-radius: 50%; border: 0; background: #fff; color: #2b2140; font: 400 28px/42px Arial, sans-serif; cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.op-vmodal__fechar:hover, .op-vmodal__fechar:focus-visible { background: var(--vk-btn, #d6246a); color: #fff; }
html.op-vmodal-aberta { overflow: hidden; }
@media (max-width: 640px) {
    .op-vmodal { padding: 56px 12px 12px; }
    .op-vmodal__caixa { height: auto; width: 100%; max-height: calc(100vh - 80px); }
    .op-vmodal__fechar { top: -48px; right: 0; }
}
@keyframes op-vmodal-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .op-vmodal { animation: none; } }

/* botão do canal do YouTube no fim da página de vídeos (08/10) */
.op-vids__cta { text-align: center; margin: 22px 0 0; }
.op-vids__yt {
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 99px;
    background: #cc0000; color: #fff !important; font: 700 1rem 'Montserrat', sans-serif; text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(204,0,0,.28); transition: background .2s, transform .2s, box-shadow .2s;
}
.op-vids__yt:hover, .op-vids__yt:focus-visible { background: #a30000; color: #fff !important; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(204,0,0,.34); }
.op-vids__yt:focus-visible { outline: 3px solid #ffd2d2; outline-offset: 3px; }
@media (max-width: 640px) { .op-vids__yt { width: 100%; justify-content: center; padding: 14px 18px; font-size: .95rem; } }
@media (prefers-reduced-motion: reduce) { .op-vids__yt { transition: none; } .op-vids__yt:hover { transform: none; } }
