static/style.css
/* 🎯 Viral Clipper Styles - Dark Theme with Orange/Rust Accents */

:root {
    /* Dark Theme Colors */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-accent: #3a3a3a;
    
    /* Orange/Rust Accents */
    --accent-primary: #ff6b35;    /* Bright orange */
    --accent-secondary: #d4541a;  /* Rust orange */
    --accent-hover: #ff8c42;      /* Lighter orange */
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    
    /* Status Colors */
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Borders */
    --border-radius: 8px;
    --border-color: #404040;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

/* Header */
.header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
    border-bottom: 2px solid var(--accent-primary);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Screen Management */
.screen {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.screen.active {
    display: block;
}

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

/* Form Styles */
.form-container {
    background: var(--bg-secondary);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.form-container h2 {
    color: var(--accent-primary);
    margin-bottom: var(--spacing-lg);
    font-size: 1.8rem;
}

.input-group {
    margin-bottom: var(--spacing-md);
}

.input-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-primary);
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-accent);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.input-help {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
}

/* Time Selection */
.time-selection {
    background: var(--bg-accent);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin: var(--spacing-lg) 0;
}

.time-selection h3 {
    color: var(--accent-primary);
    margin-bottom: var(--spacing-md);
}

.time-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.auto-detection-info {
    background: var(--bg-primary);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-primary);
}

.auto-detection-info h4 {
    color: var(--accent-primary);
    margin-bottom: var(--spacing-sm);
}

.auto-detection-info ul {
    list-style: none;
    padding-left: 0;
}

.auto-detection-info li {
    margin-bottom: var(--spacing-xs);
    color: var(--text-secondary);
}

/* Buttons */
.generate-btn,
.action-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
}

.generate-btn {
    width: 100%;
    font-size: 1.2rem;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.generate-btn:hover,
.action-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.action-btn.secondary {
    background: var(--bg-accent);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.action-btn.secondary:hover {
    background: var(--bg-primary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Progress Screen */
.progress-container {
    text-align: center;
    background: var(--bg-secondary);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.progress-container h2 {
    color: var(--accent-primary);
    margin-bottom: var(--spacing-lg);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--bg-accent);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-hover));
    border-radius: 6px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-info {
    margin-bottom: var(--spacing-lg);
}

.progress-percentage {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: var(--spacing-xs);
}

.progress-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.progress-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.step {
    padding: var(--spacing-sm);
    background: var(--bg-accent);
    border-radius: var(--border-radius);
    color: var(--text-muted);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.step.active {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: var(--bg-primary);
}

.step.completed {
    color: var(--success);
    border-color: var(--success);
}

/* Edit Screen */
.edit-container {
    background: var(--bg-secondary);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.edit-container h2 {
    color: var(--accent-primary);
    margin-bottom: var(--spacing-lg);
}

.edit-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--spacing-xl);
}

.video-section {
    background: var(--bg-primary);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
}

.clip-player {
    width: 100%;
    max-width: 100%;
    border-radius: var(--border-radius);
    background: #000;
}

.video-info {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-accent);
    border-radius: var(--border-radius);
}

.clip-timing {
    background: var(--bg-primary);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
    border-left: 4px solid var(--success);
}

.clip-timing h4 {
    color: var(--success);
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

.timing-info {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--spacing-md);
    text-align: center;
}

.timing-item {
    background: var(--bg-accent);
    padding: var(--spacing-sm);
    border-radius: 4px;
}

.timing-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.timing-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.detection-info h4 {
    color: var(--accent-primary);
    margin-bottom: var(--spacing-sm);
}

.detection-stat {
    margin-bottom: var(--spacing-xs);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.detection-stat strong {
    color: var(--text-primary);
}

/* Captions Editor */
.captions-section {
    background: var(--bg-primary);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
}

.captions-section h3 {
    color: var(--accent-primary);
    margin-bottom: var(--spacing-sm);
}

.captions-help {
    background: var(--bg-accent);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
    border-left: 4px solid var(--accent-primary);
}

.help-item {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.help-item:last-child {
    margin-bottom: 0;
}

.captions-editor {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.caption-line {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: var(--spacing-sm);
    align-items: center;
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.caption-line:hover {
    background: var(--bg-accent);
}

.speaker-selector {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    padding: 6px 8px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: border-color 0.3s ease;
}

.speaker-selector:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.speaker-selector.speaker-1 { border-color: #ff4444; color: #ff4444; }
.speaker-selector.speaker-2 { border-color: #4488ff; color: #4488ff; }
.speaker-selector.speaker-3 { border-color: #00ff88; color: #00ff88; }

.caption-text {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    padding: 10px 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.caption-text:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    background: var(--bg-secondary);
}

.caption-text:hover {
    border-color: var(--accent-secondary);
}

.caption-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

/* Upload Screen */
.upload-container {
    background: var(--bg-secondary);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    max-width: 600px;
    margin: 0 auto;
}

.upload-container h2 {
    color: var(--accent-primary);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.upload-options {
    background: var(--bg-accent);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin: var(--spacing-md) 0;
}

.upload-options h4 {
    color: var(--accent-primary);
    margin-bottom: var(--spacing-sm);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    margin-right: var(--spacing-sm);
    accent-color: var(--accent-primary);
}

.upload-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: space-between;
    margin-top: var(--spacing-lg);
}

.upload-status {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    text-align: center;
}

.upload-status.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.upload-status.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

/* OAuth Section Styles */
.oauth-section {
    background: var(--bg-accent);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
    border-left: 4px solid var(--accent-primary);
}

.oauth-section h3 {
    color: var(--accent-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.oauth-status {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    background: var(--bg-primary);
    border-radius: 4px;
}

.indicator {
    font-size: 1.2rem;
    min-width: 24px;
}

.oauth-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.oauth-btn {
    font-size: 0.9rem;
    padding: 8px 16px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
}

.radio-label input[type="radio"] {
    margin-right: var(--spacing-sm);
    accent-color: var(--accent-primary);
}

.video-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: var(--spacing-xs);
}

.video-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

#upload-form-section {
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-secondary);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.modal-content h3 {
    color: var(--error);
    margin-bottom: var(--spacing-md);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: var(--spacing-sm);
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .edit-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .time-inputs {
        grid-template-columns: 1fr;
    }
    
    .upload-actions {
        flex-direction: column;
    }
    
    .caption-actions {
        flex-direction: column;
    }
    
    .progress-steps {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* 🆕 HYBRID APPROACH STYLES */

.preview-indicator {
    margin-bottom: var(--spacing-md);
}

.preview-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--accent-primary);
    color: white;
    animation: pulse 2s infinite;
}

.preview-badge.success {
    background: var(--success);
    animation: none;
}

.preview-badge.error {
    background: var(--error);
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.caption-updated {
    background: rgba(255, 107, 53, 0.1) !important;
    border: 2px solid var(--accent-primary) !important;
    transition: all 0.3s ease;
}

.regeneration-progress {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-accent);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-primary);
}

.regen-status {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.regen-spinner {
    animation: spin 1s linear infinite;
    font-size: 1.2rem;
}

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

.regen-text {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.regen-progress-bar {
    width: 120px;
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    overflow: hidden;
}

.regen-progress-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.video-updated-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--success);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    animation: slideIn 0.3s ease-out;
    max-width: 400px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-content {
    padding: var(--spacing-md);
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: var(--spacing-sm);
    align-items: center;
}

.notification-icon {
    font-size: 1.5rem;
}

.notification-text {
    color: var(--text-primary);
}

.notification-text strong {
    color: var(--success);
}

.notification-refresh-btn {
    background: var(--success);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.notification-refresh-btn:hover {
    background: #45a049;
}

.notification-close-btn {
    background: transparent;
    color: var(--text-muted);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.notification-close-btn:hover {
    color: var(--text-primary);
    background: var(--bg-accent);
}

/* ANONYMOUS USER FEATURES */

/* Sign in button in header */
.google-signin-btn.compact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #4285f4;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.google-signin-btn.compact:hover {
    background: #357ae8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

/* Anonymous clips notice */
.anonymous-clips-notice {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.notice-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    color: white;
}

.notice-content span {
    font-weight: 500;
}

.sign-in-link {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sign-in-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Auth prompt overlay */
.auth-prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.auth-prompt-modal {
    background: var(--bg-secondary);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    border: 2px solid var(--accent-primary);
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.2);
    animation: slideUp 0.3s ease;
}

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

.auth-prompt-modal h2 {
    color: var(--accent-primary);
    margin-bottom: var(--spacing-md);
    font-size: 1.8rem;
}

.auth-prompt-modal p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.auth-benefits {
    background: var(--bg-accent);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

.auth-benefits h4 {
    color: var(--accent-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

.auth-benefits ul {
    list-style: none;
    padding: 0;
}

.auth-benefits li {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    padding-left: var(--spacing-md);
    position: relative;
}

.auth-benefits li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.auth-prompt-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.auth-prompt-actions .google-signin-btn {
    width: 100%;
    justify-content: center;
}

/* Header layout adjustments */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

#user-info {
    display: flex;
    align-items: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .notice-content {
        flex-direction: column;
        text-align: center;
    }
    
    .auth-prompt-modal {
        padding: var(--spacing-md);
    }
}

/* Recent clips notice */
.recent-clips-notice {
    background: linear-gradient(135deg, #4488ff, #2266dd);
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(68, 136, 255, 0.2);
}

.recent-clips-notice .notice-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    color: white;
}

.view-clips-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-clips-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Clips modal */
.clips-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.clips-modal {
    background: var(--bg-secondary);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.clips-modal h2 {
    color: var(--accent-primary);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.clips-modal h3 {
    color: var(--accent-secondary);
    margin-bottom: var(--spacing-md);
    margin-top: var(--spacing-lg);
    font-size: 1.2rem;
}

.clips-modal h3:first-of-type {
    margin-top: 0;
}

.clips-list {
    margin-bottom: var(--spacing-lg);
}

.clip-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--bg-accent);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-sm);
    transition: all 0.3s ease;
}

.clip-item:hover {
    background: var(--bg-primary);
    transform: translateX(4px);
}

.clip-item span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.restore-clip-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.restore-clip-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.close-modal-btn {
    width: 100%;
    background: var(--bg-accent);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal-btn:hover {
    background: var(--bg-primary);
    border-color: var(--accent-primary);
}

/* Success notification */
.success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    font-weight: 500;
    z-index: 2001;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* TIKTOK INTEGRATION STYLES */

/* Platform connections section */
.platform-connections-section {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--bg-accent);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.platform-connections-section h3 {
    color: var(--accent-primary);
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
}

.platform-connection {
    margin-bottom: var(--spacing-md);
}

.platform-connection:last-child {
    margin-bottom: 0;
}

.platform-connected,
.platform-disconnected {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.platform-connected {
    border: 2px solid var(--success);
}

.platform-disconnected {
    border: 2px solid var(--border-color);
}

.platform-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.platform-icon {
    font-size: 1.5rem;
}

.connect-btn,
.disconnect-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.connect-btn {
    background: var(--accent-primary);
    color: white;
}

.connect-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.disconnect-btn {
    background: transparent;
    color: var(--error);
    border: 1px solid var(--error);
}

.disconnect-btn:hover {
    background: var(--error);
    color: white;
}

/* Upload platform selector */
.upload-platform-selector {
    margin-bottom: var(--spacing-lg);
}

.upload-platform-selector label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.platform-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-accent);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

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

/* TikTok upload form */
.tiktok-upload-form {
    background: var(--bg-accent);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
}

.tiktok-upload-form h3 {
    color: var(--accent-primary);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.tiktok-upload-form h3::before {
    content: '🎵';
    font-size: 1.5rem;
}

.char-count {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 4px;
}

/* TikTok-specific radio groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.upload-mode {
    background: var(--bg-primary);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-top: var(--spacing-md);
}

.upload-mode h4 {
    color: var(--accent-secondary);
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

/* TikTok upload status */
#tiktok-upload-status {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s ease;
}

#tiktok-upload-status.hidden {
    display: none;
}

#tiktok-upload-status.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

#tiktok-upload-status.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

/* TikTok upload history */
#tiktok-upload-history {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--bg-accent);
    border-radius: var(--border-radius);
}

#tiktok-upload-history h4 {
    color: var(--accent-primary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

#tiktok-upload-history h4::before {
    content: '🎵';
}

/* Responsive adjustments for TikTok */
@media (max-width: 768px) {
    .platform-connected,
    .platform-disconnected {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    .connect-btn,
    .disconnect-btn {
        width: 100%;
    }
}