:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #16a34a;
    --danger: #dc2626;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --text: #1e293b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.25rem;
    color: #0f172a;
    margin-bottom: 8px;
}

header p {
    color: #64748b;
}

.upload-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    border: 1px solid var(--border);
    text-align: center;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.file-label {
    display: inline-block;
    padding: 12px 24px;
    background: #f1f5f9;
    border: 2px dashed var(--border);
    border-radius: 8px;
    cursor: pointer;
    min-width: 300px;
    transition: all 0.2s;
}

.file-label:hover {
    border-color: var(--primary);
}

.file-label input[type="file"] {
    display: none;
}

button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: var(--primary-dark);
}

button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.btn-secondary {
    background: #64748b;
    padding: 8px 16px;
    font-size: 0.875rem;
}

.loader-box {
    margin-top: 30px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.table-container {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

th {
    background: #f8fafc;
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

tr:last-child td {
    border-bottom: none;
}

code {
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #475569;
}

.url-cell {
    word-break: break-all;
    max-width: 400px;
}

.url-cell a {
    color: var(--primary);
    text-decoration: none;
}

.url-cell a:hover {
    text-decoration: underline;
}

.status-ok {
    color: var(--success);
    font-weight: 600;
}

.status-bad {
    color: var(--danger);
    font-weight: 600;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-youtube { background: #fee2e2; color: #991b1b; }
.badge-vimeo { background: #e0f2fe; color: #075985; }
.badge-link { background: #f1f5f9; color: #334155; }
