/* Estilos para el timeline con marcadores corregidos */
#timeline-wrapper {
    width: 100%;
    padding: 10px 0 35px 0;
    position: relative;
    margin: 5px 0;
}

#timeline-container {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    position: relative;
    cursor: pointer;
    overflow: visible;
}

#timeline-progress {
    width: 0%;
    height: 100%;
    background-color: #2196F3;
    border-radius: 5px;
    position: absolute;
    top: 0;
    left: 0;
    transition: width 0.1s;
}

/* Etiqueta de tiempo abajo del timeline */
#time-indicator {
    position: absolute;
    top: 20px;
    left: 0;
    background-color: #e74c3c;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 1000;
    pointer-events: none;
}

#position-marker {
    width: 12px;
    height: 12px;
    background-color: white;
    border: 2px solid #2196F3;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    z-index: 999;
    pointer-events: none;
}

/* Área de selección del clip */
#clip-selection {
    position: absolute;
    top: 0;
    height: 100%;
    background-color: rgba(76, 175, 80, 0.3);
    border-radius: 5px;
    z-index: 998;
    pointer-events: none;
}

/* Marcador IN (punto de entrada) - Verde */
#in-marker {
    position: absolute;
    top: -5px;
    width: 3px;
    height: 20px;
    background-color: #4CAF50;
    border-radius: 2px;
    z-index: 999;
    pointer-events: none;
    transform: translateX(-50%);
}

/* Marcador OUT (punto de salida) - Rojo */
#out-marker {
    position: absolute;
    top: -5px;
    width: 3px;
    height: 20px;
    background-color: #F44336;
    border-radius: 2px;
    z-index: 999;
    pointer-events: none;
    transform: translateX(-50%);
}

/* Etiquetas de los marcadores */
#in-label {
    position: absolute;
    top: -25px;
    left: -8px;
    background-color: #4CAF50;
    color: white;
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: bold;
    z-index: 1000;
    pointer-events: none;
}

#out-label {
    position: absolute;
    top: -25px;
    left: -10px;
    background-color: #F44336;
    color: white;
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: bold;
    z-index: 1000;
    pointer-events: none;
}

/* Estilos para hover */
#timeline-container:hover #time-indicator {
    opacity: 1;
}

#timeline-container:hover #position-marker {
    transform: translate(-50%, -50%) scale(1.2);
}
