* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

header h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
}

.warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    color: #856404;
}

.upload-section,
.videos-section,
.processed-section {
    margin-bottom: 40px;
}

.upload-section h2,
.videos-section h2,
.processed-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.upload-form {
    display: flex;
    gap: 15px;
    align-items: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.upload-form input[type="file"] {
    flex: 1;
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 5px;
    cursor: pointer;
}

.upload-form button {
    padding: 12px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
}

.upload-form button:hover {
    background: #5568d3;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.video-card {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.video-card.processed {
    border: 3px solid #28a745;
}

.video-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #000;
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1em;
    word-wrap: break-word;
}

.video-meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.video-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    text-align: center;
    flex: 1;
    min-width: 80px;
}

.btn-view {
    background: #17a2b8;
    color: white;
}

.btn-view:hover {
    background: #138496;
}

.btn-edit {
    background: #667eea;
    color: white;
}

.btn-edit:hover {
    background: #5568d3;
}

.btn-download {
    background: #28a745;
    color: white;
}

.btn-download:hover {
    background: #218838;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 1.2em;
    background: #f8f9fa;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .upload-form {
        flex-direction: column;
    }
    
    .video-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
