*{margin:0;padding:0;box-sizing:border-box}:root{--bg-primary: #ffffff;--bg-secondary: #f8f9fa;--bg-card: #ffffff;--text-primary: #1a1a1a;--text-secondary: #666666;--text-muted: #999999;--border: #e5e5e5;--border-light: #f0f0f0;--accent-primary: #667eea;--accent-hover: #5a6fd8;--success: #28a745;--success-hover: #218838;--danger: #dc3545;--danger-hover: #c82333;--warning: #ffc107;--info: #17a2b8;--gradient-start: #4c1d95;--gradient-end: #7c2d92;--shadow: 0 2px 8px rgba(0, 0, 0, .1);--shadow-lg: 0 8px 32px rgba(0, 0, 0, .12)}[data-theme=dark]{--bg-primary: #1a1a1a;--bg-secondary: #2a2a2a;--bg-card: #2a2a2a;--text-primary: #ffffff;--text-secondary: #cccccc;--text-muted: #888888;--border: #404040;--border-light: #333333;--accent-primary: #8b5cf6;--accent-hover: #7c3aed;--success: #10b981;--success-hover: #059669;--danger: #ef4444;--danger-hover: #dc2626;--warning: #f59e0b;--info: #06b6d4;--gradient-start: #581c87;--gradient-end: #9333ea;--shadow: 0 2px 8px rgba(0, 0, 0, .3);--shadow-lg: 0 8px 32px rgba(0, 0, 0, .4)}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;background-color:var(--bg-primary);color:var(--text-primary);line-height:1.6;transition:background-color .3s ease,color .3s ease}.app{min-height:100vh;display:flex;flex-direction:column}.header{background:linear-gradient(135deg,var(--gradient-start) 0%,var(--gradient-end) 100%);color:#fff;padding:1rem 0;box-shadow:var(--shadow)}.header-content{max-width:1200px;margin:0 auto;padding:0 2rem;display:flex;justify-content:space-between;align-items:center}.logo{display:flex;align-items:center;gap:.75rem}.logo h1{font-size:1.75rem;font-weight:700;margin:0}.logo p{font-size:.9rem;opacity:.9;margin:0}.theme-toggle{background:#fff3;border:1px solid rgba(255,255,255,.3);color:#fff;padding:.5rem;border-radius:8px;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;gap:.5rem}.theme-toggle:hover{background:#ffffff4d;transform:translateY(-1px)}.main-content{flex:1;max-width:1200px;margin:0 auto;width:100%;padding:2rem}.tabs{display:flex;background:var(--bg-secondary);border-radius:12px;padding:.25rem;margin-bottom:2rem;box-shadow:var(--shadow)}.tab{flex:1;padding:.75rem 1rem;background:none;border:none;border-radius:8px;cursor:pointer;font-size:.95rem;font-weight:500;color:var(--text-secondary);transition:all .3s ease;display:flex;align-items:center;justify-content:center;gap:.5rem}.tab.active{background:var(--bg-card);color:var(--accent-primary);box-shadow:var(--shadow);position:relative;z-index:2}.tab:hover:not(.active){color:var(--text-primary);background:var(--bg-card);position:relative;z-index:1}.card{background:var(--bg-card);border-radius:12px;box-shadow:var(--shadow);border:1px solid var(--border);overflow:hidden;transition:all .3s ease}.card:hover{box-shadow:var(--shadow-lg)}.card-header{padding:1.5rem;border-bottom:1px solid var(--border)}.card-header h3{font-size:1.25rem;font-weight:600;margin:0}.card-content{padding:1.5rem}.file-drop-zone{border:2px dashed var(--border);border-radius:12px;padding:3rem;text-align:center;transition:all .3s ease;background:var(--bg-secondary);margin-bottom:2rem}.file-drop-zone.dragover{border-color:var(--accent-primary);background:#667eea0d;transform:scale(1.02)}.file-drop-zone h3{margin-bottom:1rem;color:var(--text-primary);font-weight:600}.file-drop-zone p{color:var(--text-secondary);margin:1rem 0}.btn{padding:.75rem 1.5rem;border:none;border-radius:8px;cursor:pointer;font-size:.95rem;font-weight:500;transition:all .3s ease;display:inline-flex;align-items:center;gap:.5rem;text-decoration:none;text-align:center;justify-content:center}.btn:hover{transform:translateY(-1px)}.btn:active{transform:translateY(0)}.btn-primary{background:var(--accent-primary);color:#fff}.btn-primary:hover{background:var(--accent-hover)}.btn-success{background:var(--success);color:#fff}.btn-success:hover{background:var(--success-hover)}.btn-danger{background:var(--danger);color:#fff}.btn-danger:hover{background:var(--danger-hover)}.btn-secondary{background:var(--bg-secondary);color:var(--text-primary);border:1px solid var(--border)}.btn-secondary:hover{background:var(--border-light)}.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.btn:disabled:hover{transform:none}.form-group{margin-bottom:1.5rem}.form-label{display:block;margin-bottom:.5rem;font-weight:500;color:var(--text-primary)}.form-input,.form-select{width:100%;padding:.75rem;border:1px solid var(--border);border-radius:8px;background:var(--bg-card);color:var(--text-primary);font-size:.95rem;transition:all .3s ease}.form-input:focus,.form-select:focus{outline:none;border-color:var(--accent-primary);box-shadow:0 0 0 3px #667eea1a}.form-checkbox{display:flex;align-items:center;gap:.5rem;margin-bottom:1rem}.form-checkbox input{margin:0}.config-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem}.file-list{margin:1.5rem 0}.file-item{display:flex;justify-content:space-between;align-items:center;padding:1rem;background:var(--bg-secondary);border-radius:8px;margin-bottom:.75rem;border:1px solid var(--border);transition:all .3s ease}.file-item:hover{background:var(--bg-card);transform:translate(4px)}.file-info{display:flex;flex-direction:column;gap:.25rem}.file-name{font-weight:500;color:var(--text-primary)}.file-size{font-size:.85rem;color:var(--text-muted)}.file-status{padding:.5rem 1rem;border-radius:8px;font-size:.85rem;font-weight:500;display:flex;align-items:center;gap:.5rem;white-space:nowrap}.status-video{background:#1976d21a;color:var(--info)}.status-subtitle{background:#7b1fa21a;color:var(--accent-primary)}.status-invalid{background:#d32f2f1a;color:var(--danger)}.status-video.no-match{background:#f59e0b1a;color:var(--warning)}.file-subtitle-match{font-size:.8rem;color:var(--text-muted);font-style:italic;margin-top:.25rem;padding-left:.5rem;border-left:2px solid var(--accent-primary)}.matching-summary{background:var(--bg-card);border-radius:8px;padding:1rem;margin:1rem 0;border:1px solid var(--border)}.summary-item{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem;font-size:.9rem}.summary-item:last-child{margin-bottom:0}.summary-item.intelligent{color:var(--info)}.summary-item.warning{color:var(--warning)}.summary-item svg{flex-shrink:0}.progress-section{margin:2rem 0;padding:1.5rem;background:var(--bg-secondary);border-radius:12px;border:1px solid var(--border)}.progress-file-info{margin-bottom:1.5rem;text-align:center}.progress-file-info h4{color:var(--text-primary);font-size:1.1rem;margin-bottom:.5rem;font-weight:600}.progress-current-file{color:var(--text-secondary);font-size:.95rem;background:var(--bg-card);padding:.5rem 1rem;border-radius:8px;display:inline-block;border:1px solid var(--border);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.progress-overall{margin-bottom:1.5rem}.progress-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem;gap:1rem}.progress-label{color:var(--text-primary);font-weight:500;font-size:.95rem}.progress-filename{color:var(--text-secondary);font-weight:400;font-size:.9rem}.progress-percentage{color:var(--text-secondary);font-size:.9rem;font-weight:500;text-align:right;white-space:nowrap}.progress-eta{color:var(--accent-primary);font-size:.85rem}.progress-bar{width:100%;height:8px;background:var(--border);border-radius:4px;overflow:hidden;margin-bottom:.5rem}.progress-bar-overall{height:12px;margin-bottom:1rem}.progress-fill{height:100%;background:linear-gradient(90deg,var(--gradient-start),var(--gradient-end));transition:width .3s ease;width:0%;position:relative}.progress-fill:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent);animation:shimmer 2s infinite}@keyframes shimmer{0%{transform:translate(-100%)}to{transform:translate(100%)}}.progress-message{color:var(--text-secondary);font-size:.9rem;text-align:center;font-style:italic;min-height:1.2em}.progress-text{text-align:center;color:var(--text-secondary);margin-bottom:1rem;font-weight:500}.results-section{margin-top:2rem}.result-item{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;background:var(--bg-card);border-radius:12px;margin-bottom:1rem;box-shadow:var(--shadow);border:1px solid var(--border);transition:all .3s ease}.result-item:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}.result-info h4{margin-bottom:.5rem;color:var(--text-primary)}.result-stats{font-size:.9rem;color:var(--text-secondary)}.error-message{background:#ef44441a;color:var(--danger);padding:1rem;border-radius:8px;margin:1rem 0;border:1px solid rgba(239,68,68,.2);display:flex;align-items:center;gap:.75rem}.warning-message{background:#f59e0b1a;color:var(--warning);padding:1rem;border-radius:8px;margin:1rem 0;border:1px solid rgba(245,158,11,.2);border-left:4px solid var(--warning);display:flex;align-items:center;gap:.75rem}.hidden{display:none}@media (max-width: 768px){.header-content{padding:0 1rem;flex-direction:column;gap:1rem}.logo{flex-direction:column;text-align:center}.main-content{padding:1rem}.tabs{flex-direction:column}.tab{border-radius:8px;margin-bottom:.25rem}.config-grid{grid-template-columns:1fr}.file-item,.result-item{flex-direction:column;align-items:flex-start;gap:1rem}.file-drop-zone{padding:2rem 1rem}.progress-header{flex-direction:column;align-items:flex-start;gap:.5rem}.progress-percentage{text-align:left}.progress-current-file{max-width:100%;text-align:center}.progress-file-info h4{font-size:1rem}}*{transition:background-color .3s ease,color .3s ease,border-color .3s ease}.btn:focus,.form-input:focus,.form-select:focus,.tab:focus{outline:2px solid var(--accent-primary);outline-offset:2px}
