#video-player-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}

.video-player {
    width: 100%;
    display: block;
    max-height: 500px;
}

.video-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.3rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.seek-bar-container {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
}

.seek-bar {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    cursor: pointer;
    transition: height 0.2s;
}

.seek-bar:hover {
    height: 8px;
}

.seek-bar-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    pointer-events: none;
}

.seek-bar-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.seek-bar-handle:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

.seek-bar-handle:active {
    cursor: grabbing;
}

.time-display {
    font-size: 0.9rem;
    font-family: monospace;
    flex-shrink: 0;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-slider {
    width: 80px;
}

.loop-indicator {
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
    background: rgba(74, 144, 226, 0.8);
    border-radius: 4px;
    margin-left: auto;
}

.loop-indicator.active {
    background: rgba(40, 167, 69, 0.8);
}

/* Segment Selection Styles */
.segment-selection-container {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    color: white;
}

.segment-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.segment-controls h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #4a90e2;
}

.segment-time-inputs {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.time-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
}

.time-input-group label {
    font-size: 0.9rem;
    min-width: 40px;
}

.time-input {
    width: 80px;
    padding: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 4px;
    font-family: monospace;
}

.time-input:focus {
    outline: none;
    border-color: #4a90e2;
    background: rgba(255, 255, 255, 0.2);
}

.time-adjust-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.time-adjust-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #4a90e2;
}

.segment-timeline {
    margin-top: 1rem;
}

.timeline-track {
    position: relative;
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
}

.timeline-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--primary-color);
    border-radius: 10px;
    pointer-events: none;
    opacity: 0.7;
}

.timeline-current {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 24px;
    background: white;
    pointer-events: none;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.segment-region {
    position: absolute;
    top: 0;
    height: 100%;
    background: rgba(74, 144, 226, 0.3);
    border: 1px solid #4a90e2;
    border-radius: 10px;
    pointer-events: none;
}

.segment-start-handle,
.segment-end-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: white;
    border: 2px solid #4a90e2;
    border-radius: 50%;
    cursor: ew-resize;
    pointer-events: all;
    transition: transform 0.2s;
    z-index: 10;
    /* Touch-friendly sizing for mobile */
    min-width: 24px;
    min-height: 24px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.segment-start-handle:hover,
.segment-end-handle:hover {
    transform: translate(-50%, -50%) scale(1.3);
}

.segment-start-handle:active,
.segment-end-handle:active {
    cursor: grabbing;
}

.clip-segment-btn {
    background: #4a90e2;
    border: none;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.clip-segment-btn:hover {
    background: #357abd;
    transform: translateY(-1px);
}

.clip-segment-btn:active {
    transform: translateY(0);
}

