.EPvideo .videoBox {
    position: relative;
}

.riverlab-player-tab {
    position: relative;
    width: 100%;
}

.riverlab-player-surface {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    border-radius: 12px;
}

.riverlab-player-surface video,
.riverlab-player-surface iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.riverlab-player-surface--resolving::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.riverlab-iframe-cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.riverlab-iframe-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.16));
}

.riverlab-iframe-play-btn {
    position: relative;
    z-index: 3;
    width: 92px;
    height: 92px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: transparent;
    font-size: 0;
    cursor: pointer;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.riverlab-iframe-play-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-38%, -50%);
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 26px solid #fff;
}

.riverlab-iframe-play-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.52);
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.28), rgba(255,255,255,0.12));
}

.riverlab-iframe-badge,
.riverlab-source-badge,

.riverlab-iframe-frame-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.riverlab-player-surface--native .fluid_video_wrapper,
.riverlab-player-surface--native .fluid_video_wrapper video {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 768px) {
    .riverlab-player-surface {
        border-radius: 10px;
    }

    .riverlab-iframe-play-btn {
        width: 76px;
        height: 76px;
    }

    .riverlab-iframe-play-btn::before {
        border-top-width: 13px;
        border-bottom-width: 13px;
        border-left-width: 21px;
    }

    .riverlab-iframe-badge,
    .riverlab-source-badge {
        font-size: 11px;
        padding: 7px 10px;
    }
}

.riverlab-player-empty {
    padding: 32px 20px;
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    text-align: center;
    color: #fff;
}
