#timelineContainerWrapper {
    width: 100%;
    overflow-x: hidden;
    touch-action: pan-y; /* Разрешаем вертикальный скролл страницы, но блокируем горизонтальные свайпы браузера */
}

#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;
    touch-action: none; /* Блокируем стандартные жесты на самом таймлайне */
}

#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;
    touch-action: none;
}

#timelineTrack:active {
    cursor: grabbing;
}

.timeline-handle {
    position: absolute;
    width: 2px; /* Чуть заметнее визуально */
    top: 0;
    bottom: 0;
    background: var(--accent);
    border: 1px solid #fff;
    cursor: ew-resize;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    z-index: 25;
    display: none;
    pointer-events: auto;
    touch-action: none;
}

/* Расширяем область нажатия пальцем (до 36px по ширине) без изменения визуального вида */
.timeline-handle::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -18px;
    right: -18px;
    background: transparent;
}

.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;
    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;
}

/* Для ползунка миникарты (если класс/ID заданы в другом файле) */
#timeline-minimap-slider,
#timelineZoomMain {
    touch-action: none;
}
