/** tendencias · vídeos (opció A: 3 horitzontals + 4 verticals) **/
.tendencias .ct40v-eyebrow {
    display: block;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #9C2F6B;
    font-weight: 700;
    margin-bottom: 10px;
}

.tendencias h3 {
    color: #55244A;
}

.ct40v {
    clear: both;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 40px 0 80px;
    text-align: left;
}

.ct40v-grid {
    display: grid;
    gap: 24px;
}

.ct40v-grid--h {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ct40v-grid--v {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ct40v-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.ct40v-media {
    position: relative;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    background: #1E1119;
}

.ct40v-media--h {
    aspect-ratio: 16 / 9;
}

.ct40v-media--v {
    aspect-ratio: 9 / 16;
}

.ct40v-media .ct40v-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ct40v-poster {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #55244A;
    background-size: cover;
    background-position: center;
    transition: opacity .3s;
}

.ct40v-poster svg {
    transition: transform .2s;
}

.ct40v-poster:hover svg,
.ct40v-poster:focus-visible svg {
    transform: scale(1.08);
}

.ct40v-media.videoWrapperActive .ct40v-poster {
    opacity: 0;
    visibility: hidden;
}

.tendencias h4.ct40v-title {
    margin: 0;
    padding: 0;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    color: #55244A;
}

.ct40v-title a {
    color: #55244A;
}

.ct40v-title a:hover {
    color: #B0397A;
    text-decoration: underline;
}

.ct40v .etiquetas {
    gap: 8px;
}

.ct40v .etiqueta_uno {
    margin-right: 0;
}

.ct40v-divider {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tendencias .ct40v-divider h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #55244A;
    white-space: nowrap;
}

.ct40v-divider span {
    flex: 1;
    height: 1px;
    background: #DDD5D9;
}

@media (max-width: 1023px) {
    .ct40v-grid--v {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .tendencias h3 {
        font-size: 28px;
        line-height: 1.2;
    }

    .ct40v {
        padding-bottom: 48px;
    }

    .ct40v-grid--h {
        grid-template-columns: 1fr;
    }

    /* verticals en carrusel lliscant */
    .ct40v-grid--v {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin-right: -15px;
        padding-right: 15px;
        padding-bottom: 8px;
    }

    .ct40v-grid--v .ct40v-card {
        flex: 0 0 200px;
        scroll-snap-align: start;
    }
}
