/* Video Player Styles */
.custom-video-player {
    position: relative;
    width: 100%;
    height: auto;
    display: inline-block;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.custom-video-player .video-element {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Przycisk Play */
.custom-video-player .video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: var(--primary-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease, opacity 0.5s ease;
    z-index: 10;
    color: var(--primary-l-4);
    border: none;
    outline: none;
    opacity: 1;
    pointer-events: auto;
}

.custom-video-player .video-play-button.hidden {
    opacity: 0;
    pointer-events: none;
}

.custom-video-player .video-play-button:hover {
    background-color: var(--primary-10);
    transform: translate(-50%, -50%) scale(1.1);
}

.custom-video-player .video-play-button svg {
    width: 24px;
    height: 24px;
    margin-left: 4px; 
}

/* Przełącznik dźwięku */
.custom-video-player .video-sound-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-20);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--primary-l-4);
    border: none;
    outline: none;
}

.custom-video-player .video-sound-toggle:hover {
    background-color: var(--primary-40);
    transform: scale(1.1);
}

.custom-video-player .video-sound-toggle svg {
    width: 20px;
    height: 20px;
}

/* Progress Bar */
.custom-video-player .video-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background-color: var(--primary-10);
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(100%);
}

.custom-video-player .video-progress-container.visible {
    opacity: 0.8;
    visibility: visible;
    transform: translateY(0);
}

.custom-video-player:hover .video-progress-container.visible {
    opacity: 1;
}

.custom-video-player .video-progress-bar {
    width: 100%;
    height: 100%;
    background-color: var(--primary-30);
    position: relative;
    overflow: hidden;
}

.custom-video-player .video-progress-played {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    border-radius: 0;
    box-shadow: 0 0 3px var(--primary-50);
    will-change: width;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-video-player .video-play-button {
        width: 60px;
        height: 60px;
    }
    
    .custom-video-player .video-play-button svg {
        width: 20px;
        height: 20px;
    }
    
    .custom-video-player .video-sound-toggle {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
    }
    
    .custom-video-player .video-sound-toggle svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .custom-video-player .video-play-button {
        width: 50px;
        height: 50px;
    }
    
    .custom-video-player .video-play-button svg {
        width: 18px;
        height: 18px;
    }
    
    .custom-video-player .video-sound-toggle {
        width: 30px;
        height: 30px;
    }
    
    .custom-video-player .video-sound-toggle svg {
        width: 16px;
        height: 16px;
    }
} 