.soroy-wcpv-video-item {
    position: relative;
    cursor: pointer;
}

.soroy-wcpv-media-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    z-index: 3;
    transition: background 0.2s;
}

.soroy-wcpv-media-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-45%, -50%);
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #fff;
    transition: border-color 0.2s;
}

.soroy-wcpv-video-item.soroy-wcpv-paused .soroy-wcpv-media-icon::after {
    border: none;
    width: 14px;
    height: 18px;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    box-shadow: 5px 0 0 0 #fff, -5px 0 0 0 #fff;
}

.soroy-wcpv-video-item:hover .soroy-wcpv-media-icon {
    background: rgba(0, 0, 0, 0.8);
}

.elementor-widget-theme-post-featured-image.soroy-wcpv-has-video {
    position: relative;
    width: 100%;
}

.elementor-widget-theme-post-featured-image.soroy-wcpv-has-video .elementor-widget-container,
.elementor-widget-theme-post-featured-image.soroy-wcpv-has-video .elementor-image {
    width: 100%;
}

.soroy-wcpv-featured-video-wrap {
    position: relative;
    width: 100%;
    line-height: 0;
}

.soroy-wcpv-featured-player {
    width: 100%;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #000;
}

/* Self-hosted video play overlay */
.soroy-wcpv-featured-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: pointer;
}

.soroy-wcpv-featured-play-overlay:hover {
    background: rgba(0, 0, 0, 0.15);
}

.soroy-wcpv-featured-play-overlay::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
}

.soroy-wcpv-featured-play-overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    z-index: 3;
    border-style: solid;
    border-width: 16px 0 16px 28px;
    border-color: transparent transparent transparent #fff;
}

.soroy-wcpv-featured-video-wrap.soroy-wcpv-playing video {
    cursor: default;
}

/* Paused overlay for self-hosted video */
.soroy-wcpv-paused-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

.soroy-wcpv-paused-overlay::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
}

.soroy-wcpv-paused-overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50.5%;
    transform: translate(-50%, -50%);
    z-index: 11;
    border-style: solid;
    border-width: 16px 0 16px 28px;
    border-color: transparent transparent transparent #fff;
}

/* YouTube featured area: lite-youtube */
.soroy-wcpv-youtube-wrap {
    position: relative;
    width: 100%;
}

.soroy-wcpv-youtube-wrap lite-youtube {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
}

.soroy-wcpv-youtube-wrap lite-youtube::after {
    padding-bottom: 100%;
}

.soroy-wcpv-youtube-wrap lite-youtube::before {
    display: none;
}

.soroy-wcpv-youtube-wrap lite-youtube > .lyt-playbtn,
.soroy-wcpv-youtube-wrap lite-youtube > .lty-playbtn {
    display: none;
}

.soroy-wcpv-yt-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    cursor: pointer;
}

.soroy-wcpv-yt-play-overlay::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    transition: background 0.2s;
}

.soroy-wcpv-youtube-wrap:hover .soroy-wcpv-yt-play-overlay::after {
    background: rgba(204, 0, 0, 0.85);
}

.soroy-wcpv-yt-play-overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    z-index: 6;
    border-style: solid;
    border-width: 16px 0 16px 28px;
    border-color: transparent transparent transparent #fff;
}

/* Modal */
.soroy-wcpv-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.soroy-wcpv-modal {
    position: relative;
    width: 90%;
    max-width: 960px;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}

.soroy-wcpv-modal::after {
    content: '';
    display: block;
    padding-bottom: 56.25%;
}

.soroy-wcpv-modal-video,
.soroy-wcpv-modal lite-youtube {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.soroy-wcpv-modal-video {
    display: block;
    object-fit: contain;
    background: #000;
}

.soroy-wcpv-modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    z-index: 99999999;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    user-select: none;
}

.soroy-wcpv-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}