.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;
}

/* Botão central real para player nativo/FluidPlayer */
.riverlab-player-surface--native {
    isolation: isolate;
}
.riverlab-native-center-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 30;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.26);
    background: rgba(12, 16, 26, .74);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 18px 46px rgba(0,0,0,.50), inset 0 1px 0 rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.riverlab-native-center-play.is-visible:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
}
.riverlab-native-center-play:hover {
    transform: translate(-50%, -50%) scale(1.06);
    background: linear-gradient(135deg, rgba(124,58,237,.90), rgba(225,29,72,.90));
    box-shadow: 0 22px 58px rgba(225,29,72,.32), 0 14px 40px rgba(0,0,0,.52);
}
.riverlab-native-center-play span {
    display: block;
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 17px solid transparent;
    border-bottom: 17px solid transparent;
    border-left: 27px solid #fff;
}
.riverlab-native-center-play[hidden] {
    display: none !important;
}
.riverlab-player-surface--playing .riverlab-native-center-play {
    opacity: 0;
    pointer-events: none;
}
@media (max-width: 768px) {
    .riverlab-native-center-play {
        width: 66px;
        height: 66px;
    }
    .riverlab-native-center-play span {
        border-top-width: 13px;
        border-bottom-width: 13px;
        border-left-width: 21px;
        margin-left: 5px;
    }
}


.riverlab-player-format-warning {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 6;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(12, 16, 26, .88);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    box-shadow: 0 18px 42px rgba(0,0,0,.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.riverlab-player-format-warning[hidden] { display: none !important; }
.riverlab-player-format-warning strong { font-size: 13px; }
.riverlab-player-format-warning span { font-size: 12px; opacity: .82; }
.riverlab-player-format-warning a {
    margin-left: auto;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed, #e11d48);
}
@media (max-width: 768px) {
    .riverlab-player-format-warning { left: 8px; right: 8px; bottom: 8px; padding: 10px; }
    .riverlab-player-format-warning a { width: 100%; text-align: center; margin-left: 0; }
}

/* Akumanimes Gold v1.4: garante que elementos marcados como hidden desapareçam. */
.riverlab-iframe-cover[hidden],
.riverlab-iframe-frame-wrap[hidden] {
    display: none !important;
}
.riverlab-iframe-frame-wrap {
    z-index: 5;
}
.riverlab-iframe-cover {
    z-index: 6;
}
.riverlab-iframe-frame-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    background: #000;
}
