.custom-video-player {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.custom-video-player video {
    width: 100%;
    height: auto;
    display: block;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px 15px 15px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-video-player:hover .video-controls,
.video-controls.always-visible {
    opacity: 1;
}

.controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.controls-row div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.play-pause-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.play-pause-btn:hover {
    background-color: rgba(255,255,255,0.2);
}

.time-display {
    font-size: 14px;
    white-space: nowrap;
}

.quality-selector {
    background: rgba(0,0,0,0.7);
    border: 1px solid rgb(255, 255, 255);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.quality-selector:focus {
    outline: none;
    border-color: #0042BE;
}

.timeline-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.timeline {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.timeline-progress {
    height: 100%;
    background: #0042BE;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
}

.timeline-buffer {
    position: absolute;
    top: 0;
    height: 100%;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    width: 0%;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.volume-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
}

.volume-slider {
    width: 60px;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.volume-progress {
    height: 100%;
    background: white;
    border-radius: 3px;
    width: 100%;
}

.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
}

.fullscreen-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
}

.fullscreen-btn:hover,
.volume-btn:hover {
    background-color: rgba(255,255,255,0.2);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .controls-row {
        gap: 5px;
    }

    .time-display {
        font-size: 12px;
    }

    .timeline-container {
        margin: 0 10px;
    }

    .volume-control {
        display: none;
    }
}
