:root {
    --bg-primary: #0B0E14;
    --bg-secondary: #1E293B;
    --bg-tertiary: #0F172A;
    --bg-elevated: #1E293B;
    
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    --accent-sky: #38BDF8;
    --accent-orange: #F97316;
    --accent-teal: #4FD1C5;
    --accent-success: #10B981;
    
    --border-color: #334155;
    --border-subtle: #1E293B;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.3);
    
    --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(56, 189, 248, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(79, 209, 197, 0.03) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes backgroundShift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-5%, -5%); }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    animation: slideDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent-sky);
}

.logo svg {
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--accent-sky), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-smooth);
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

.btn-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.2);
    transition: width 0.4s ease, height 0.4s ease;
    transform: translate(-50%, -50%);
}

.btn-icon:hover::before {
    width: 100px;
    height: 100px;
}

.btn-icon:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-sky);
    color: var(--accent-sky);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-icon:active {
    transform: translateY(0) scale(0.95);
}

/* Section */
.section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-sky), transparent);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.section:hover::before {
    opacity: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Input Group */
.input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.input-url {
    flex: 1;
    padding: 0.875rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all var(--transition-smooth);
    position: relative;
}

.input-url:focus {
    outline: none;
    border-color: var(--accent-sky);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1), var(--shadow-glow);
    transform: translateY(-1px);
}

.input-url::placeholder {
    color: var(--text-muted);
}

/* Buttons */
.btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.6s ease, height 0.6s ease;
    transform: translate(-50%, -50%);
}

.btn:active::before {
    width: 300px;
    height: 300px;
    transition: width 0s, height 0s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-sky), #0EA5E9);
    color: var(--bg-primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-success), #059669);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-tertiary);
    border-color: var(--accent-sky);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover:not(:disabled) {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-loading, .btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: flex;
}

/* Spinner */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Format Info */
.format-info {
    animation: slideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.video-preview {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-smooth);
}

.video-preview:hover {
    border-color: var(--border-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.video-preview img {
    width: 160px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    transition: transform var(--transition-smooth);
}

.video-preview:hover img {
    transform: scale(1.05);
}

.video-meta {
    flex: 1;
}

.video-meta h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.meta-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    display: inline-flex;
    padding: 0.25rem 0.625rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    animation: tagPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tagPop {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Format Selector */
.format-selector {
    margin-bottom: 1.5rem;
}

.format-selector label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.select-format {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all var(--transition);
}

.select-format:focus {
    outline: none;
    border-color: var(--accent-sky);
}

/* Progress */
.progress-card {
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.status-badge {
    padding: 0.375rem 0.75rem;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-sky);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(56, 189, 248, 0);
    }
}

.progress-percent {
    font-size: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--accent-sky);
}

.progress-bar {
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-sky), var(--accent-teal));
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Video Player */
.video-player-container {
    position: relative;
    margin-bottom: 2rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.video-player {
    width: 100%;
    height: auto;
    max-height: 400px;
    display: block;
    background: #000;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 14, 20, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
}

.video-overlay.hidden {
    display: none;
}

.spinner-large {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-sky);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.video-overlay {
    animation: fadeIn 0.3s ease;
}

.video-overlay.hidden {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Timeline */
.timeline-container {
    margin-bottom: 2rem;
}

.timeline-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.time-input-group {
    flex: 1;
}

.time-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.time-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
    transition: all var(--transition);
}

.time-input:focus {
    outline: none;
    border-color: var(--accent-sky);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1), var(--shadow-glow);
    transform: scale(1.02);
}

.timeline-duration {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    margin-top: 1.5rem;
}

.timeline {
    margin-bottom: 1.5rem;
}

.timeline-track {
    position: relative;
    height: 48px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 19px,
        rgba(148, 163, 184, 0.1) 19px,
        rgba(148, 163, 184, 0.1) 20px
    );
    pointer-events: none;
}

.timeline-track:hover {
    border-color: var(--accent-sky);
    box-shadow: 0 0 0 1px var(--accent-sky);
}

.timeline-selection {
    position: absolute;
    height: 100%;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(79, 209, 197, 0.2));
    border-left: 2px solid var(--accent-sky);
    border-right: 2px solid var(--accent-sky);
    pointer-events: none;
    transition: all var(--transition);
}

.timeline-selection::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(56, 189, 248, 0.1),
        transparent
    );
    animation: selectionPulse 3s ease-in-out infinite;
}

@keyframes selectionPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.timeline-handle {
    position: absolute;
    top: 0;
    width: 12px;
    height: 100%;
    background: var(--accent-sky);
    cursor: ew-resize;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-md);
}

.timeline-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

.timeline-handle:hover {
    background: #0EA5E9;
    width: 16px;
    box-shadow: var(--shadow-glow);
}

.timeline-handle:active {
    background: #38BDF8;
    width: 18px;
}

.timeline-handle-start {
    left: 0;
    border-top-left-radius: var(--radius-sm);
    border-bottom-left-radius: var(--radius-sm);
}

.timeline-handle-end {
    right: 0;
    border-top-right-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
}

.quick-presets {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-preset {
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-preset:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-sky);
    color: var(--accent-sky);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 8px rgba(56, 189, 248, 0.2);
}

.btn-preset:active {
    transform: translateY(0) scale(0.98);
}

/* Editor Actions */
.editor-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Result Card */
.result-card {
    text-align: center;
    padding: 2rem;
}

.result-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-success);
}

.result-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.result-card .text-muted {
    margin-bottom: 1.5rem;
}

.result-card .btn {
    margin: 0.5rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .video-preview {
        flex-direction: column;
    }
    
    .video-preview img {
        width: 100%;
        height: auto;
    }
    
    .timeline-controls {
        flex-direction: column;
    }
    
    .timeline-duration {
        margin-top: 0;
    }
    
    .editor-actions {
        flex-direction: column;
    }
    
    .editor-actions .btn {
        width: 100%;
    }
}

/* History */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.history-item {
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-smooth);
    animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation-fill-mode: both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.history-item:nth-child(1) { animation-delay: 0s; }
.history-item:nth-child(2) { animation-delay: 0.05s; }
.history-item:nth-child(3) { animation-delay: 0.1s; }
.history-item:nth-child(4) { animation-delay: 0.15s; }
.history-item:nth-child(5) { animation-delay: 0.2s; }

.history-item:hover {
    border-color: var(--border-color);
    background: var(--bg-elevated);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.history-item-info {
    flex: 1;
    min-width: 0;
}

.history-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.history-item-actions {
    display: flex;
    gap: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state p {
    font-size: 1rem;
}

/* Enhanced Trimming Workflow Styles */

.quality-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 14, 20, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.quality-dialog {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.quality-dialog h3 {
    color: #38bdf8;
    font-size: 20px;
    margin: 0 0 8px 0;
}

.quality-dialog p {
    color: #94a3b8;
    font-size: 14px;
    margin: 0 0 16px 0;
}

.quality-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.quality-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(56, 189, 248, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quality-option:hover {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(15, 23, 42, 0.8);
    transform: translateY(-2px);
}

.quality-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #38bdf8;
}

.quality-option input[type="radio"]:checked + span {
    color: #38bdf8;
    font-weight: 600;
}

.quality-option span {
    color: #f8fafc;
    font-size: 15px;
}

.quality-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn-cancel, .btn-confirm {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-cancel {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
}

.btn-cancel:hover {
    background: rgba(148, 163, 184, 0.2);
}

.btn-confirm {
    background: linear-gradient(135deg, #38bdf8 0%, #22d3ee 100%);
    color: #0B0E14;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.4);
}

/* Trim Interface */
.trim-interface {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
}

.trim-interface h2 {
    color: #f8fafc;
    font-size: 24px;
    margin: 0 0 8px 0;
}

.video-info {
    color: #94a3b8;
    font-size: 14px;
    margin: 0 0 24px 0;
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 24px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.video-player-wrapper video {
    width: 100%;
    display: block;
}

.trim-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.time-display {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.time-display input {
    width: 100px;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
    color: #f8fafc;
    font-size: 14px;
}

.segment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(56, 189, 248, 0.1);
    border-radius: 8px;
    margin-bottom: 8px;
}

.segment-item span {
    color: #f8fafc;
    font-size: 14px;
}

.segment-item button {
    padding: 6px 12px;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.segment-item button:hover {
    background: rgba(239, 68, 68, 0.3);
}

.final-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    padding: 14px 28px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(148, 163, 184, 0.2);
}

#segments-list h3 {
    color: #38bdf8;
    font-size: 16px;
    margin: 0 0 12px 0;
}

/* Trim Interface */
.trim-interface {
    margin-top: 32px;
}

.trim-header h2 {
    color: #F8FAFC;
    font-size: 24px;
    margin-bottom: 8px;
}

.video-info {
    color: #94A3B8;
    font-size: 14px;
    margin-bottom: 24px;
}

.trim-controls-section {
    margin-top: 32px;
    padding: 24px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
}

.trim-controls-section h3 {
    color: #F8FAFC;
    font-size: 18px;
    margin-bottom: 16px;
}

.trim-help {
    color: #94A3B8;
    font-size: 14px;
    margin-bottom: 12px;
}

.trim-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding: 0;
    list-style: none;
}

.trim-shortcuts li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94A3B8;
    font-size: 13px;
}

.trim-shortcuts kbd {
    padding: 4px 8px;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 4px;
    color: #38BDF8;
    font-size: 12px;
    font-family: monospace;
    font-weight: 600;
}

.trim-segments-list {
    margin-bottom: 24px;
    min-height: 60px;
}

.empty-state {
    padding: 32px;
    text-align: center;
    color: #64748B;
    font-size: 14px;
    background: rgba(15, 23, 42, 0.3);
    border: 1px dashed rgba(148, 163, 184, 0.2);
    border-radius: 8px;
}

.segment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    margin-bottom: 8px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.segment-item:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: #38BDF8;
    transform: translateX(4px);
}

.segment-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.segment-info strong {
    color: #F8FAFC;
    font-size: 14px;
}

.segment-info span {
    color: #94A3B8;
    font-size: 13px;
}

.segment-duration {
    color: #38BDF8 !important;
    font-weight: 600;
}

.segment-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-replay,
.btn-download-single {
    padding: 8px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 6px;
    color: #38BDF8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-replay:hover,
.btn-download-single:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38BDF8;
    transform: scale(1.1);
}

.btn-delete {
    padding: 8px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    color: #EF4444;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #EF4444;
    transform: scale(1.1);
}

.trim-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.trim-actions-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 16px 0;
}

.trim-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-sm);
    color: var(--accent-sky);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.trim-btn:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: var(--accent-sky);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

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

.trim-btn svg {
    width: 20px;
    height: 20px;
}

.btn-secondary {
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #94A3B8;
}

.btn-secondary:hover {
    background: rgba(148, 163, 184, 0.2);
    border-color: #94A3B8;
}
