/* ========== 视频裁剪与片段提取工具新增样式（vtc-前缀） ========== */

.vtc-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
    background: #f8f9fa;
}
.vtc-upload-area:hover {
    border-color: #2196F3;
    background: rgba(33, 150, 243, 0.05);
}
.vtc-upload-area.vtc-dragover {
    border-color: #2196F3;
    background: rgba(33, 150, 243, 0.1);
}
.vtc-upload-area.vtc-file-loaded {
    display: none;
}
.vtc-upload-icon {
    font-size: 48px;
    color: #2196F3;
    margin-bottom: 10px;
}
.vtc-upload-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}
.vtc-upload-hint {
    font-size: 13px;
    color: #666;
}
.vtc-upload-area input[type="file"] {
    display: none;
}

.vtc-file-card {
    display: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    align-items: center;
    gap: 20px;
}
.vtc-file-card.vtc-visible {
    display: flex;
}
.vtc-file-card-icon {
    font-size: 48px;
    flex-shrink: 0;
}
.vtc-file-card-details {
    flex: 1;
    min-width: 0;
}
.vtc-file-card-name {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}
.vtc-file-card-meta {
    font-size: 13px;
    opacity: 0.9;
}
.vtc-file-card-replace {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.vtc-file-card-replace:hover {
    background: rgba(255, 255, 255, 0.3);
}

.vtc-file-info-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}
.vtc-file-info-card h4 {
    font-size: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vtc-file-info-card h4 i {
    color: #2196F3;
}
.vtc-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.vtc-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.vtc-info-label {
    font-size: 12px;
    color: #666;
}
.vtc-info-value {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.vtc-player-section {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}
.vtc-video-wrapper {
    position: relative;
    background: #000;
}
.vtc-video-wrapper video {
    width: 100%;
    display: block;
    max-height: 420px;
    object-fit: contain;
    background: #000;
}
.vtc-video-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #222;
}
.vtc-video-controls button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vtc-video-controls button:hover {
    background: rgba(255,255,255,0.15);
}
.vtc-time-display {
    color: #ccc;
    font-size: 13px;
    font-family: monospace;
    white-space: nowrap;
    min-width: 100px;
    text-align: center;
}
.vtc-progress-track {
    flex: 1;
    height: 6px;
    background: #555;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}
.vtc-progress-fill {
    height: 100%;
    background: #2196F3;
    border-radius: 3px;
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    pointer-events: none;
}
.vtc-range-highlight {
    position: absolute;
    top: 0;
    height: 100%;
    background: rgba(33, 150, 243, 0.4);
    pointer-events: none;
    border-radius: 3px;
}

.vtc-timeline-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}
.vtc-timeline-section h4 {
    font-size: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vtc-timeline-section h4 i {
    color: #2196F3;
}

.vtc-timeline-bar {
    position: relative;
    height: 40px;
    background: #e9ecef;
    border-radius: 6px;
    margin-bottom: 15px;
    cursor: pointer;
    overflow: visible;
}
.vtc-timeline-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #2196F3, #42a5f5);
    border-radius: 6px;
    pointer-events: none;
}
.vtc-timeline-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 28px;
    background: #fff;
    border: 2px solid #2196F3;
    border-radius: 4px;
    cursor: ew-resize;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.vtc-timeline-handle.vtc-handle-start {
    left: 0;
}
.vtc-timeline-handle.vtc-handle-end {
    left: 100%;
}
.vtc-timeline-handle:hover {
    background: #2196F3;
}
.vtc-timeline-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

.vtc-time-inputs {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.vtc-time-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.vtc-time-input-group label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}
.vtc-time-input {
    width: 90px;
    padding: 8px 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    font-family: monospace;
    text-align: center;
}
.vtc-time-input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.15);
}
.vtc-time-separator {
    font-size: 14px;
    color: #666;
}
.vtc-selected-duration {
    font-size: 14px;
    color: #2196F3;
    font-weight: 600;
}

.vtc-preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.vtc-preset-btn {
    padding: 6px 14px;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    background: #fff;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.vtc-preset-btn:hover {
    background: #2196F3;
    color: #fff;
    border-color: #2196F3;
}

.vtc-controls-panel {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}
.vtc-controls-panel h4 {
    font-size: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vtc-controls-panel h4 i {
    color: #faad14;
}

.vtc-progress-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    border: 1px solid #dee2e6;
}
.vtc-progress-section.vtc-visible {
    display: block;
}
.vtc-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.vtc-progress-title {
    font-size: 14px;
    font-weight: 500;
}
.vtc-progress-percent {
    font-size: 14px;
    color: #2196F3;
    font-weight: 500;
}
.vtc-progress-bar {
    width: 100%;
    height: 10px;
    background: #dee2e6;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}
.vtc-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2196F3, #2ecc71);
    border-radius: 5px;
    transition: width 0.3s;
    width: 0%;
}
.vtc-progress-info {
    font-size: 13px;
    color: #666;
}

.vtc-download-section {
    border: 2px solid #2196F3;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
    display: none;
    background: #f8f9fa;
}
.vtc-download-section.vtc-visible {
    display: block;
}
.vtc-download-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2196F3;
}
.vtc-download-section h4 i {
    vertical-align: middle;
}
.vtc-result-info {
    font-size: 14px;
    margin-bottom: 15px;
    color: #333;
}
.vtc-btn-download {
    padding: 12px 35px;
    background: #2196F3;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.vtc-btn-download:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.vtc-hidden {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    .vtc-time-inputs {
        flex-direction: column;
        align-items: flex-start;
    }
    .vtc-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .vtc-preset-buttons {
        gap: 6px;
    }
    .vtc-preset-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
}
@media (max-width: 480px) {
    .vtc-info-grid {
        grid-template-columns: 1fr;
    }
    .vtc-file-card {
        flex-direction: column;
        text-align: center;
    }
    .vtc-file-card-replace {
        position: static;
        transform: none;
        margin-top: 10px;
        justify-content: center;
    }
}
