/* Ergänzungen zu /site.css für den Video-Clipper */

/* Upload */
.upload-area {
    border: 2px dashed var(--border);
    text-align: center;
    padding: 44px 22px;
    transition: border-color 0.15s, background 0.15s;
}
.upload-area.dragover { border-color: var(--accent); background: rgba(255, 90, 54, 0.06); }
.upload-content h2 { margin: 10px 0 4px; }
.upload-content .btn { margin-top: 14px; }
.upload-icon {
    width: 52px; height: 52px; margin: 0 auto;
    display: grid; place-items: center; border-radius: 12px;
    background: rgba(255, 90, 54, 0.14); color: var(--accent); font-size: 1.1rem;
}

/* Vorschau */
.video-preview { width: 100%; max-height: 60vh; border-radius: 10px; background: #000; }
.video-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }
.control-btn { min-height: 38px; padding: 0 12px; font-variant-numeric: tabular-nums; }
.seek-controls { display: flex; gap: 6px; }
.time-display { font-family: var(--mono); font-size: 0.92rem; color: var(--muted); }
.speed-controls { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.speed-select { width: auto; min-height: 38px; }

.shortcuts-help { margin-top: 14px; font-size: 0.9rem; }
.shortcuts-help summary, .progress-log summary { cursor: pointer; color: var(--muted); }
.shortcuts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 16px; margin-top: 10px; color: var(--muted); }

/* Timeline */
.timeline-wrapper { padding: 8px 10px 0; }
.timeline-track { position: relative; height: 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.timeline-progress { position: absolute; top: 0; bottom: 0; background: rgba(255, 90, 54, 0.45); border-radius: 999px; }
.timeline-handle {
    position: absolute; top: 50%; width: 20px; height: 28px;
    transform: translate(-50%, -50%);
    background: var(--accent); border: 2px solid var(--bg); border-radius: 6px;
    cursor: grab; touch-action: none;
}
.timeline-handle:active { cursor: grabbing; }
.timeline-labels { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }

.timeline-controls { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 18px; }
.time-inputs { display: flex; gap: 12px; flex-wrap: wrap; }
.time-inputs label { display: flex; flex-direction: column; gap: 6px; width: 170px; }
.clip-info { margin: 0; }

/* Export */
.export-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 16px; }
.export-settings > label { display: flex; flex-direction: column; gap: 6px; }
.filename-controls { display: flex; align-items: center; gap: 8px; }
.file-extension { color: var(--muted); font-family: var(--mono); }

.progress-container { margin-top: 18px; }
.progress-info { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; margin-bottom: 8px; }
#progressPercent { font-variant-numeric: tabular-nums; font-weight: 600; }
.progress-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--accent); transition: width 0.2s; }
.progress-log { margin-top: 10px; font-size: 0.88rem; }
.progress-details {
    max-height: 180px; overflow: auto; margin: 8px 0 0; padding: 10px;
    background: #0a0c10; border: 1px solid var(--border); border-radius: 8px;
    font: 0.78rem/1.45 var(--mono); color: var(--muted); white-space: pre-wrap;
}

.download-container { margin-top: 18px; }
.final-info { margin: 10px 0 0; text-align: center; }

@media (max-width: 560px) {
    .speed-controls { margin-left: 0; }
    .time-inputs label { width: 100%; }
    .time-inputs { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .upload-area, .progress-fill { transition: none; }
}
