.onvideo-wrap {
    width: 100%;
    max-width: 100%;
    font-family: sans-serif;
    margin-bottom: 16px;
}

.onvideo-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.onvideo-badge {
    background: var(--onvideo-color, #ff0000);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
    animation: onvideo-pulse 2s infinite;
}

.onvideo-titulo {
    font-weight: 600;
    font-size: 1rem;
    color: #222;
}

.onvideo-player-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.onvideo-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.onvideo-offline {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
}

.onvideo-offline img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.onvideo-offline-msg {
    text-align: center;
    color: #fff;
    padding: 20px;
}

.onvideo-offline-msg p {
    margin: 8px 0;
    opacity: 0.8;
}

/* ── Botón play centrado ── */
.onvideo-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.onvideo-play-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.onvideo-play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 28px 0 28px 52px;
    border-color: transparent transparent transparent #fff;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
    margin-left: 8px;
}

.onvideo-play-btn.hidden {
    display: none;
}

@keyframes onvideo-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
