#timelineContainerWrapper{
    width: 100%;
    overflow-x: hidden;
}
#timelineContainer {
    width: 100%;
    height: 80px;
    background: #111;
    border-radius: 6px;
    position: relative;
    border: 1px solid var(--border);
    box-sizing: border-box;
    display: none;
    overflow-y: hidden;
    overflow-x: hidden;
}
#timelinePlayhead{
    position:absolute;
    top:0;
    bottom:0;
    width:2px;
    background:#ef4444;
    z-index:5;
    pointer-events:none;
}




#timelineTrack{
    display: none;
    background: #ff00dd95;
    z-index: 20;
    position: absolute;
    top: 0;
    bottom: 0;
    cursor: grab;
    border-left: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
}
#timelineTrack:active { cursor: grabbing; }
.timeline-handle {
    position: absolute;
    width: 8px;
    top: -2px;
    bottom: -2px;
    background: #fff;
    border: 2px solid var(--accent);
    border-radius: 3px;
    cursor: ew-resize;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    z-index: 10;
    display: none;
}
.handle-left { left: -5px; }
.handle-right { right: -5px; }
.video-native-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}



/* Контейнер для картинок внутри трека */
#timeline-strip {
    display: flex;
    height: 100%;
    width: 0; /* Будет задано из JS */
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1; /* Картинки лежат на фоне */
    pointer-events: none; /* Мышь полностью игнорирует этот контейнер и его детей */
}

/* Отдельные кадры */
.filmstrip-frame {
    height: 100%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0; /* Запрещаем сжатие картинок */
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    pointer-events: none; /* Пропускаем клики сквозь кадры */
}

/* Убедитесь, что ваши ползунки и интерактивные элементы доступны для кликов */
.timeline-handle, #timelinePlayhead {
    z-index: 10; /* Элементы управления лежат СВЕРХУ картинок */
    pointer-events: auto; /* Они обязаны реагировать на мышь */
}

