/* NextPing YouTube + TikTok for wpForo · 0.1.5-dev6
 * Scope exclusivo: reproductores creados por este plugin dentro de mensajes wpForo.
 * No modifica CSS Master, UI Pack, Forum Mobile Style ni News Bridge.
 */
#wpforo-wrap .wpforo-post-content .npye-embed {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    /* wpForo puede utilizar un panel de autor flotante. clear:both desplazaba
       el reproductor hasta debajo del panel incluso cuando el mensaje
       sólo tenía una URL. No alterar la disposición del propio foro. */
    clear: none !important;
    margin: 12px auto 18px !important;
    padding: 0;
    text-align: center;
}
#wpforo-wrap .wpforo-post-content .npye-embed__frame {
    position: relative;
    flex: 0 1 auto;
    box-sizing: border-box;
    width: 100%;
    max-width: 680px;
    margin-left: auto !important;
    margin-right: auto !important;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: #0c1220;
}
#wpforo-wrap .wpforo-post-content .npye-embed--short .npye-embed__frame {
    max-width: 315px;
    aspect-ratio: 9 / 16;
}
#wpforo-wrap .wpforo-post-content .npye-embed__frame iframe {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}
#wpforo-wrap .wpforo-post-content .npye-embed__fallback {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto;
    margin: 8px auto 0 !important;
    padding: 3px 5px;
    border-radius: 5px;
    color: #086bff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
}
#wpforo-wrap .wpforo-post-content .npye-embed__fallback:hover {
    text-decoration: underline;
}
#wpforo-wrap .wpforo-post-content .npye-embed__fallback:focus-visible {
    outline: 2px solid #086bff;
    outline-offset: 3px;
}
#wpforo-wrap .wpforo-post-content .npye-embed__youtube-icon {
    display: block;
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
}

/* TikTok: mismo contenedor responsivo vertical, sin afectar al de YouTube. */
#wpforo-wrap .wpforo-post-content .npye-embed--tiktok .npye-embed__frame {
    max-width: 325px;
    aspect-ratio: 9 / 16;
}
#wpforo-wrap .wpforo-post-content .npye-embed__tiktok-icon {
    display: block;
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
}
