/* Video Cutter Tool styles */

#videoContainer {
    display: none;
    flex-direction: column;
    gap: 24px;
    margin: 24px auto;
    max-width: 960px;
}

.cutter-workspace {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    width: 100%;
    box-sizing: border-box;
}

.cutter-video-wrap {
    display: flex;
    justify-content: center;
}

.cutter-workspace video {
    max-width: 100%;
    max-height: 480px;
    background: #000;
    border-radius: 8px;
}

.cutter-timeline-wrapper {
    user-select: none;
    width: 100%;
}

.cutter-timeline {
    position: relative;
    height: 48px;
    background: #f1f3f5;
    border-radius: 6px;
    margin: 8px 0;
    cursor: pointer;
}

.timeline-track {
    position: absolute;
    inset: 0;
    border-radius: 6px;
}

.timeline-selection {
    position: absolute;
    top: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.35);
    border-top: 2px solid #667eea;
    border-bottom: 2px solid #667eea;
    pointer-events: none;
}

.timeline-selection.mode-delete {
    background: rgba(231, 76, 60, 0.30);
    border-top-color: #e74c3c;
    border-bottom-color: #e74c3c;
}

.timeline-handle {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 16px;
    margin-left: -8px;
    cursor: ew-resize;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.handle-grip {
    width: 6px;
    height: 100%;
    background: #667eea;
    border-radius: 3px;
    box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, 0.2);
}

.timeline-selection.mode-delete ~ .timeline-handle .handle-grip,
.handle-start.delete-mode .handle-grip,
.handle-end.delete-mode .handle-grip {
    background: #e74c3c;
}

.timeline-playhead {
    position: absolute;
    top: -2px;
    bottom: -2px;
    width: 2px;
    margin-left: -1px;
    background: #ff5722;
    pointer-events: none;
    z-index: 1;
}

.cutter-time-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.95rem;
    color: #555;
    padding: 0 4px;
    gap: 12px;
    flex-wrap: wrap;
}

.cutter-time-labels > span {
    white-space: nowrap;
}

.cutter-time-labels .time-separator {
    color: #888;
    font-family: inherit;
}

.cutter-time-labels strong {
    color: #667eea;
    font-weight: 600;
}

.cutter-options {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.cutter-options .option-group {
    margin-bottom: 24px;
}

.cutter-options .option-group:last-of-type {
    margin-bottom: 16px;
}

.cutter-options label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.cut-mode-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.mode-btn {
    flex: 1;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #495057;
    transition: all 0.15s;
}

.mode-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.mode-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}

.mode-hint {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 4px 0 0 0;
    font-weight: 400;
}

.time-input-row {
    display: flex;
    gap: 12px;
}

.time-input-field {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
}

.time-input-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-right: 8px;
    min-width: 40px;
}

.time-input-field input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.95rem;
    color: #2c3e50;
    outline: none;
    width: 100%;
}

.fade-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500 !important;
}

.fade-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.fade-controls {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    padding-left: 26px;
}

.fade-field {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
    gap: 8px;
}

.fade-input-label {
    font-size: 0.85rem;
    color: #6c757d;
    min-width: 60px;
}

.fade-field input[type="number"] {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.95rem;
    outline: none;
    width: 50px;
}

.fade-unit {
    font-size: 0.85rem;
    color: #6c757d;
}

#processingStatus {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

#downloadContainer {
    display: none;
    text-align: center;
    margin: 24px auto;
    max-width: 720px;
}

#downloadContainer video {
    width: 100%;
    max-height: 480px;
    background: #000;
    border-radius: 8px;
    margin: 16px 0;
}

@media (max-width: 640px) {
    .cut-mode-buttons { flex-direction: column; }
    .time-input-row { flex-direction: column; }
    .fade-controls { flex-direction: column; padding-left: 0; }
}
