/* Change Video Speed Tool styles */

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

.video-preview-wrapper {
    background: #000;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.video-preview-wrapper video {
    max-width: 100%;
    max-height: 480px;
    background: #000;
    border-radius: 6px;
}

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

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

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

/* Slider */
.speed-slider-wrap {
    text-align: center;
    margin-bottom: 14px;
}

.speed-current {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

.speed-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    cursor: pointer;
    outline: none;
}

.speed-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 3px solid #667eea;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.speed-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #fff;
    border: 3px solid #667eea;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Preset buttons grid (3 cols matching screenshot) */
.speed-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.speed-preset-btn {
    padding: 14px 8px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    transition: all 0.15s ease;
    font-variant-numeric: tabular-nums;
}

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

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

/* Mute checkbox */
.speed-mute-group {
    display: flex;
    justify-content: center;
    border-top: 1px solid #e9ecef;
    padding-top: 18px;
    margin-bottom: 18px !important;
}

.speed-mute-label {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500 !important;
    color: #2c3e50 !important;
    margin-bottom: 0 !important;
}

.speed-mute-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #667eea;
    cursor: pointer;
}

#processButton { width: 100%; margin-top: 8px; }

#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: 600px) {
    .speed-presets { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .speed-preset-btn { padding: 12px 4px; font-size: 0.95rem; }
}
