:root {
    --bg-color: #0f1115;
    --card-bg: rgba(255, 255, 255, 0.05);
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --border: rgba(255, 255, 255, 0.1);
    --glass: blur(12px);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    color-scheme: dark;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    margin: 0;
    min-height: 100vh;
}

* {
    box-sizing: border-box;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.hidden {
    display: none !important;
}

/* Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s;
    backdrop-filter: var(--glass);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    background: #2a2d35;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.badge.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.badge.processing {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.badge.failed {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    title: "Failed";
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    z-index: 1000;
}

.modal {
    background: #1a1d24;
    padding: 2rem;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-input,
.form-select {
    width: 100%;
    background: #1a1d24;
    border: 1px solid var(--border);
    padding: 0.75rem;
    border-radius: 8px;
    color: white;
    font-family: inherit;
}

.form-input:focus, .form-select:focus {
    outline: 2px solid var(--primary);
    border-color: transparent;
}

.form-select option {
    background: #1a1d24;
    color: #ffffff;
}

/* Progress Bar */
.progress-container {
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    display: flex;
    justify-content: space-between;
}

/* Player */
.player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: black;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.player-wrapper iframe,
.player-wrapper video {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

h1 {
    margin: 0;
    background: linear-gradient(to right, #fff, #9ca3af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}