/* CineDoblee PRO V41 - recomendación flotante */
.cdb-floating-rec {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99990;
    width: min(330px, calc(100vw - 28px));
    max-height: calc(100vh - 44px);
    overflow: auto;
    background: #202124;
    color: #f5f5f5;
    border-top: 4px solid #d21f2b;
    border-radius: 4px;
    box-shadow: 0 18px 50px rgba(0,0,0,.48);
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 28px, 0);
    transition: opacity .28s ease, transform .28s ease, visibility .28s ease;
}

.cdb-floating-rec.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
}

.cdb-floating-rec__close {
    position: absolute;
    top: -4px;
    left: 0;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 0;
    background: #b71922;
    color: #fff;
    font: 700 29px/1 Arial, sans-serif;
    cursor: pointer;
}

.cdb-floating-rec__close:hover,
.cdb-floating-rec__close:focus-visible {
    background: #e12632;
}

.cdb-floating-rec__heading {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0 18px 0 58px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .02em;
    text-align: center;
    color: #d7d7d7;
}

.cdb-floating-rec__poster {
    position: relative;
    display: block;
    margin: 4px 18px 0;
    height: 155px;
    overflow: hidden;
    background: #111;
}

.cdb-floating-rec__poster img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 22%;
    transition: transform .25s ease, filter .25s ease;
}

.cdb-floating-rec__poster:hover img {
    transform: scale(1.035);
    filter: brightness(.72);
}

.cdb-floating-rec__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(255,255,255,.82);
    border-radius: 50%;
    background: rgba(0,0,0,.52);
    color: #fff;
    font-size: 18px;
    padding-left: 3px;
}

.cdb-floating-rec__content {
    padding: 14px 18px 18px;
}

.cdb-floating-rec__content h3 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.32;
}

.cdb-floating-rec__content h3 a {
    color: #f2f2f2;
    text-decoration: none;
}

.cdb-floating-rec__content h3 a:hover {
    color: #ffcc00;
}

.cdb-floating-rec__content p {
    margin: 0 0 13px;
    color: #c8c8c8;
    font-size: 13px;
    line-height: 1.5;
}

.cdb-floating-rec__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid #d5a900;
    border-radius: 4px;
    color: #ffcc00;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.cdb-floating-rec__button:hover {
    background: #ffcc00;
    color: #121212;
}

@media (max-width: 720px) {
    .cdb-floating-rec {
        right: 10px;
        bottom: 10px;
        width: min(315px, calc(100vw - 20px));
        max-height: min(520px, calc(100vh - 20px));
    }

    .cdb-floating-rec__poster {
        height: 138px;
    }

    .cdb-floating-rec__content h3 {
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cdb-floating-rec,
    .cdb-floating-rec__poster img {
        transition: none;
    }
}
