/* CineDoble V50.8: tráiler integrado en publicaciones. */
.cdb-v508-trailer {
    clear: both;
    margin: 18px 0 20px;
    padding: 12px;
    color: #f7f7f8;
    background: #111219;
    border: 1px solid #2c3039;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
    box-sizing: border-box;
}

.cdb-v508-trailer__frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.cdb-v508-trailer__frame iframe,
.cdb-v508-trailer__frame video,
.cdb-v508-trailer__frame .wp-video,
.cdb-v508-trailer__frame .wp-video-shortcode {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    border: 0;
}

.cdb-v508-trailer__caption {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 11px 4px 2px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.4;
}

.cdb-v508-trailer__caption span {
    flex: 0 0 auto;
    padding: 3px 7px;
    color: #111219;
    background: #fff;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .45px;
}

.cdb-v508-trailer__caption strong {
    overflow: hidden;
    color: #ffc400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cdb-v508-trailer__fallback {
    display: flex;
    min-height: 120px;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #fff;
    background: #07080c;
    border: 1px dashed #4a4f5a;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
}

.cdb-v508-trailer__fallback:hover {
    color: #ffc400;
}

@media (max-width: 680px) {
    .cdb-v508-trailer {
        margin: 14px 0 18px;
        padding: 8px;
        border-radius: 8px;
    }

    .cdb-v508-trailer__frame {
        border-radius: 6px;
    }

    .cdb-v508-trailer__caption {
        padding: 9px 2px 2px;
        font-size: 11px;
    }
}
