/* videoProgressBar.css */
/* TikTok-style progress bar styling */

.video-progress-container {
    position: absolute;
    bottom: -140px; /* Position below description - adjust as needed */
    left: 0;
    width: 85%; /* Match description width */
    padding: 6px 0;
    z-index: 5;
}

.video-progress-bar {
    position: relative;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    border-radius: 1px;
    transition: height 0.1s ease;
}

.video-progress-bar.hover,
.video-progress-bar:hover {
    height: 3px;
}

.video-progress-buffered {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    width: 0%;
    border-radius: inherit;
    pointer-events: none;
}

.video-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #ffffff;
    width: 0%;
    border-radius: inherit;
    pointer-events: none;
}

.video-progress-knob {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    left: 0%;
    opacity: 0;
    transition: opacity 0.1s ease;
    pointer-events: none;
}

.video-progress-bar.hover .video-progress-knob,
.video-progress-bar.dragging .video-progress-knob {
    opacity: 1;
}

.video-progress-tooltip {
    position: absolute;
    bottom: 15px;
    transform: translateX(-50%);
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    left: 0%;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease;
    z-index: 10;
}

.video-progress-bar.dragging .video-progress-tooltip {
    opacity: 1;
}

/* Adjustments for mobile */
@media only screen and (max-width: 480px) {
    .video-progress-container {
        width: 90%;
        bottom: -130px;
    }
}

/* Adjustments for tablets */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .video-progress-container {
        width: 85%;
        bottom: -135px;
    }
}

/* Make sure the progress bar doesn't interfere with description */
.videoFooter {
    position: relative; /* Ensure footer is positioned for absolute children */
}

/* Optional: Add some spacing to prevent overlap */
.videoFooter__text {
    padding-bottom: 20px; /* Add padding to create space for progress bar */
}




/* Lower progress bar when ANY popup is active */
body:has(.popup-overlay.active) .custom-progress-bar {
    z-index: 1 !important;
}

/* Or just lower it always */
.custom-progress-bar {
    z-index: 100 !important;
}

/* But keep modal high */
.popup-overlay {
    z-index: 9999 !important;
}

.popup-content {
    z-index: 10000 !important;
}

.commentSection {
    z-index: 10001 !important;
    background: white !important;
}