/* ─── Metzina OTT Card ─────────────────────────────────────────────────────
   Targeta estil OTT (Prime): pòster + overlay de títol + hover preview +
   botons rodons superposats (play inline + enllaç a la fitxa). */

.mzv-ott-card {
    position: relative;
    display: block;
    width: 100%;
}

.mzv-ott-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    will-change: transform;
}

/* Ampliació estil Prime en hover */
.mzv-ott--scale:hover .mzv-ott-media {
    transform: scale(1.06);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
    z-index: 5;
}

.mzv-ott-poster {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.mzv-ott-poster--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: rgba(255, 255, 255, 0.5);
    background: #111;
}

/* Contenidor de l'iframe (preview en hover o reproducció inline) */
.mzv-ott-preview {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.mzv-ott-preview iframe,
.mzv-ott-preview video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: cover;
}

.mzv-ott-card.is-previewing .mzv-ott-preview {
    opacity: 1;
}

.mzv-ott-card.is-previewing .mzv-ott-poster {
    opacity: 0;
}

/* Enllaç que cobreix tota la card (clic al pòster → fitxa) */
.mzv-ott-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    text-decoration: none;
}

/* Overlay de títol amb degradat */
.mzv-ott-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 28px 14px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.mzv-ott-title {
    margin: 0;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

