/* EriFaye TV V8.26 - previews vidéo + modals player/détails */
.ef-home-slide-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
    background: #070910;
}
.ef-home-slide.is-active .ef-home-slide-video.is-playing {
    opacity: 1;
}
.ef-video-thumb {
    position: relative;
    overflow: hidden;
}
.ef-card-preview-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .22s ease;
    z-index: 1;
    background: #070910;
}
.ef-video-card.is-previewing .ef-card-preview-video {
    opacity: 1;
}
.ef-video-card .ef-card-category,
.ef-video-card .ef-premium-badge,
.ef-video-card .ef-play-btn,
.ef-video-card .ef-card-play-btn {
    z-index: 3;
}
.ef-card-play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(229, 9, 20, .92);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 35px rgba(0,0,0,.34);
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.ef-card-play-btn:hover,
.ef-card-play-btn:focus-visible {
    transform: translate(-50%, -50%) scale(1.05);
    background: #ff1722;
    outline: none;
    box-shadow: 0 18px 42px rgba(229,9,20,.34);
}
.ef-card-play-btn svg {
    width: 22px;
    height: 22px;
    margin-left: 2px;
}
.ef-card-actions button {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
    font: inherit;
    cursor: pointer;
}
.ef-card-actions button:hover,
.ef-card-actions button:focus-visible {
    color: #fff;
    outline: none;
}
.ef-video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}
.ef-video-modal.is-open {
    display: flex;
}
.ef-video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(8px);
}
.ef-video-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(1040px, 100%);
    max-height: calc(100vh - 44px);
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
    background: #090c14;
    box-shadow: 0 30px 110px rgba(0,0,0,.58);
}
.ef-video-modal-header {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.035);
}
.ef-video-modal-title {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 650;
}
.ef-video-modal-close {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.ef-video-modal-close:hover,
.ef-video-modal-close:focus-visible {
    background: rgba(229,9,20,.92);
    outline: none;
}
.ef-player-modal-body {
    background: #000;
}
.ef-player-modal-body video {
    display: block;
    width: 100%;
    max-height: calc(100vh - 150px);
    aspect-ratio: 16 / 9;
    background: #000;
}
.ef-detail-modal-dialog {
    width: min(960px, 100%);
}
.ef-detail-modal-body {
    position: relative;
    padding: 26px;
    background: linear-gradient(135deg, rgba(17,20,31,.98), rgba(7,9,16,.98));
    overflow: auto;
    max-height: calc(100vh - 112px);
}
.ef-modal-detail-grid {
    display: grid;
    grid-template-columns: minmax(190px, 320px) 1fr;
    gap: 24px;
    align-items: center;
}
.ef-modal-detail-poster {
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 18px 48px rgba(0,0,0,.38);
}
.ef-modal-detail-content h2 {
    margin: 10px 0 10px;
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.8rem);
    line-height: 1.04;
    font-weight: 650;
}
.ef-modal-detail-content p {
    color: rgba(255,255,255,.78);
    line-height: 1.68;
    margin: 0 0 18px;
}
.ef-modal-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.ef-modal-detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.13);
    color: rgba(255,255,255,.86);
    font-size: .86rem;
}
.ef-modal-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
body.ef-modal-open {
    overflow: hidden;
}
@media (max-width: 760px) {
    .ef-video-modal {
        padding: 10px;
    }
    .ef-video-modal-dialog {
        border-radius: 20px;
        max-height: calc(100vh - 20px);
    }
    .ef-video-modal-header {
        padding: 12px 14px;
    }
    .ef-player-modal-body video {
        max-height: calc(100vh - 120px);
    }
    .ef-detail-modal-body {
        padding: 16px;
        max-height: calc(100vh - 92px);
    }
    .ef-modal-detail-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .ef-modal-detail-poster {
        aspect-ratio: 16 / 9;
    }
    .ef-modal-detail-actions .ef-btn {
        width: 100%;
    }
}
