.advanced-video-player {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
}

.advanced-video-player video,
.advanced-video-player iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.advanced-video-player video {
    border-radius: var(--video-border-radius, 0);
    -webkit-border-radius: var(--video-border-radius, 0);
    -moz-border-radius: var(--video-border-radius, 0);
}

.advanced-video-player[data-object-fit="contain"] video,
.advanced-video-player[data-object-fit="scale-down"] video {
    border-radius: var(--video-border-radius, 0) !important;
}

/* Overlay */
.advanced-video-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    transition: background-color 0.3s ease;
    pointer-events: none;
    z-index: 1;
	border-radius: var(--video-border-radius, 0);
}

/* Play Button per Lightbox */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    z-index: 2;
    transition: all 0.3s ease;
}

.video-play-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Lightbox */
.video-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content video {
    width: 100%;
    height: auto;
    max-height: 80vh;
	border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .video-play-button {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
}
