body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background: #000;
}

.plyr {
    height: 100%;
    width: 100%;
}

.video-container {
    height: 100%;
    width: 100%;
}

/* Custom marker tooltip (JS-driven, bypasses input overlay) */
.marker-custom-tooltip {
    position: absolute;
    bottom: 100%;
    padding: 5px 9px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 13px;
    line-height: 1.3;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 10;
}

.marker-custom-tooltip.visible {
    opacity: 1;
}

/* Custom Plyr colors */
:root {
    --plyr-color-main: var(--primary-color);
    --plyr-range-thumb-background: var(--primary-color);
    --plyr-range-fill-background: var(--primary-color);

    /* You can customize other parts as well */
    --plyr-video-control-color: #ffffff;
    --plyr-video-control-color-hover: #ffffff;
    --plyr-video-control-background-hover: var(--primary-dark);

    /* For more subtle customization, you can adjust these as well */
    /* --plyr-audio-control-color: #ffffff;
            --plyr-audio-control-color-hover: #ffffff;
            --plyr-badge-background: #ff5555;
            --plyr-badge-text-color: #ffffff;
            --plyr-tooltip-background: rgba(0, 0, 0, 0.8);
            --plyr-tooltip-color: #ffffff;
            --plyr-tooltip-arrow-size: 4px;
            --plyr-tooltip-radius: 3px;
            --plyr-control-spacing: 10px; */

    /* Progress bar customization */
    --plyr-progress-loading-background: var(--primary-color);
    --plyr-video-progress-buffered-background: rgba(255, 255, 255, 0.2);
}

/* Additional custom styles */
.plyr--full-ui input[type=range] {
    color: var(--primary-color);
}

.plyr__control--overlaid {
    background: var(--primary-color);
}

.plyr__control--overlaid:hover {
    background: rgba(255, 85, 85, 0.9);
}

/* Customize the big play button */
.plyr__control--overlaid svg {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}

.resume-message {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 5px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.resume-message.visible {
    opacity: 1;
}