/* Content Blur – Public Styles */

.cbp-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

/* The blurred content layer */
.cbp-blurred {
    filter: blur(var(--cbp-blur, 8px));
    user-select: none;
    pointer-events: none;
    -webkit-filter: blur(var(--cbp-blur, 8px));
    transition: filter .4s ease;
}

/* Overlay that sits on top */
.cbp-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.55) 30%,
        rgba(0,0,0,0.88) 100%
    );
    z-index: 10;
}

.cbp-overlay-inner {
    text-align: center;
    padding: 32px 24px;
    max-width: 380px;
}

.cbp-lock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    margin-bottom: 16px;
    color: #fff;
    backdrop-filter: blur(4px);
}

.cbp-mensaje {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 20px;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.cbp-boton {
    display: inline-block;
    background: var(--cbp-button-color, #ff6a00);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    transition: opacity .2s, transform .15s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    text-transform: uppercase;
}

.cbp-boton:hover {
    opacity: .88;
    transform: translateY(-1px);
    color: #fff !important;
}

.cbp-login-hint {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    margin: 14px 0 0;
}

.cbp-login-hint a {
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
}

/* When applied to full post content */
.cbp-full-content .cbp-blurred {
    max-height: 520px;
    overflow: hidden;
}

/* Dynamic CSS vars – injected by PHP via wp_add_inline_style */

/* ─── lp-pro-rankings player integration ─── */

/* El wrapper ocupa el espacio del .sp-content original */
.cbp-player-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Limitar la altura visible del contenido borroso
   para que el overlay no quede flotando en el vacío */
.cbp-player-wrap .cbp-blurred {
    max-height: 600px;
    overflow: hidden;
    /* Preservar el grid interno del sp-content */
    pointer-events: none;
    user-select: none;
}

/* El gradiente del overlay usa el color oscuro del tema */
.cbp-player-wrap .cbp-overlay {
    background: linear-gradient(
        to bottom,
        rgba(17,17,17,0)   0%,
        rgba(17,17,17,0.6) 25%,
        rgba(17,17,17,0.92) 100%
    );
}

/* Animación de entrada del overlay-inner */
.cbp-overlay-inner {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .5s ease, transform .5s ease;
}

.cbp-overlay-inner.cbp-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .cbp-player-wrap {
        padding: 0 20px;
    }
}
