:root {
    --primary: #0969da;
    --bg: #f6f8fa;
    --card-bg: #ffffff;
    --text: #1f2328;
    --border: #d0d7de;
    --success: #2da44e;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    display: flex;
    justify-content: center;
    padding: 20px;
}

.container {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
}

h1 { color: var(--primary); margin-bottom: 8px; }
.subtitle { color: #636c76; margin-bottom: 30px; font-size: 14px; }

/* Upload Area */
.upload-box {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.upload-box:hover { border-color: var(--primary); }
#file-name-display { font-size: 12px; margin-top: 10px; color: #636c76; }

/* Status & Progress */
#status { font-size: 14px; margin: 20px 0; font-weight: 500; }

progress {
    width: 100%;
    height: 10px;
    appearance: none;
    display: none;
    margin-bottom: 20px;
}
progress::-webkit-progress-bar { background-color: #ebf0f4; border-radius: 5px; }
progress::-webkit-progress-value { 
    background-color: var(--primary); 
    border-radius: 5px; 
    transition: width 0.3s ease; 
}

/* Buttons */
.button-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

button {
    cursor: pointer;
    border: 1px solid var(--border);
    background: #f6f8fa;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
}

button:hover:not(:disabled) { background: #eff2f5; border-color: #8c959f; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
    background-color: var(--primary);
    color: white;
    width: 100%;
    padding: 14px;
    margin-bottom: 10px;
    border: none;
}
.btn-primary:hover:not(:disabled) { background-color: #0c59b3; }

/* Results */
.stats {
    display: flex;
    justify-content: space-around;
    background: #f6f8fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}
.stat-item span { display: block; font-size: 12px; color: #636c76; }
.stat-item b { font-size: 16px; }

#video-preview {
    width: 100%;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid var(--border);
}

.badge-success {
    background: #dafbe1;
    color: #1a7f37;
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 15px;
}
