
.custom-video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    font-family: Arial, sans-serif;
}

.custom-video-player video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* Overlay with Big Play Button */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s;
    z-index: 2;
}

.play-center-btn {
    width: 80px;
    height: 80px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, opacity 0.2s;
    opacity: 0.7;
}

.play-center-btn svg {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.custom-video-player:hover .play-center-btn {
    transform: scale(1.1);
    opacity: 1;
}

/* Playing state for center button */
.custom-video-player.playing .video-overlay {
    opacity: 0;
}

.custom-video-player.playing:hover .video-overlay {
    opacity: 1;
}

/* Controls Container (Progress Bar Only) */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0 0 0; /* Remove padding to make bar touch edges if preferred, or keep small */
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3;
}

.custom-video-player:hover .video-controls,
.custom-video-player.paused .video-controls {
    opacity: 1;
}

/* Progress Bar */
.progress-bar-container {
    height: 3px;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    position: relative;
    transition: height 0.1s;
}

.custom-video-player:hover .progress-bar-container {
    height: 5px;
}

.progress-bar {
    height: 100%;
    background: #92704d; /* Brand Accent Color */
    width: 0%;
    position: relative;
}

.progress-handle {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #92704d;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.1s;
}

.progress-bar-container:hover .progress-handle {
    opacity: 1;
}

/* Hide native controls */
video::-webkit-media-controls {
    display: none !important;
}
