/* ==========================================================================
   EPP Video Widget
   ========================================================================== */

.eppro-video-wrapper {
    width: 100%;
    position: relative;
}

/* ── Ratio box ── */
.eppro-video-ratio {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.eppro-video-el,
.eppro-video-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ── iframe / video element ── */
.eppro-video-el {
    border: 0;
    display: block;
    object-fit: cover;
}

/* ── Poster overlay ── */
.eppro-video-overlay {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: opacity .25s ease;
}

.eppro-video-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,.2);
    transition: background-color .25s ease;
}

.eppro-video-overlay:hover::before {
    background-color: rgba(0,0,0,.1);
}

.eppro-video-overlay.eppro-hidden {
    opacity: 0;
    pointer-events: none;
}

/* ── Play button ── */
.eppro-play-btn {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    transition: transform .2s ease, background-color .2s ease;
    color: #fff;
}

.eppro-video-overlay:hover .eppro-play-btn {
    transform: scale(1.1);
}

/* Circle */
.eppro-play-btn--circle {
    border-radius: 50%;
    background-color: rgba(0,0,0,.6);
}

.eppro-play-btn--circle i   { font-size: 28px; margin-left: 4px; }
.eppro-play-btn--circle svg { width: 28px; height: 28px; }

/* YouTube style */
.eppro-play-btn--youtube {
    background: none;
    border-radius: 0;
}

.eppro-play-btn--youtube svg {
    width: 68px;
    height: 48px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}

/* Minimal */
.eppro-play-btn--minimal {
    background: none;
    border: 3px solid #fff;
    border-radius: 50%;
}

.eppro-play-btn--minimal i   { font-size: 22px; margin-left: 4px; }
.eppro-play-btn--minimal svg { width: 22px; height: 22px; }

/* ── Lightbox overlay ── */
.eppro-video-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.88);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: eppro-lb-in .2s ease;
}

@keyframes eppro-lb-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.eppro-video-lightbox-inner {
    position: relative;
    width: min(90vw, 960px);
}

.eppro-video-lightbox-ratio {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.eppro-video-lightbox-ratio iframe,
.eppro-video-lightbox-ratio video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.eppro-video-lightbox-close {
    position: absolute;
    top: -36px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    opacity: 0.8;
    line-height: 1;
    padding: 0;
    transition: opacity .15s ease;
}

.eppro-video-lightbox-close:hover { opacity: 1; }
