/* Video Preview Styles */
.video-preview {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-preview.loading {
    background: var(--bg-secondary-hover);
}

.video-preview.error {
    background: var(--danger-50);
    border: 1px solid var(--danger-200);
}

.preview-content {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: flex-start;
}

.video-thumbnail {
    width: 240px;
    height: 135px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.video-info h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.video-duration {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 4px 8px;
    background: var(--bg-accent);
    border-radius: 4px;
    display: inline-block;
    margin-right: 10px;
}

.quality-select {
    width: 100%;
    max-width: 300px;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-top: 10px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--primary-200);
    border-top: 4px solid var(--primary-600);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.error-message {
    color: var(--danger-600);
    text-align: center;
    padding: 20px;
    font-size: 0.95rem;
}

.empty-state {
    color: var(--text-secondary);
    text-align: center;
    padding: 40px 20px;
    font-size: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .preview-content {
        flex-direction: column;
        align-items: center;
    }

    .video-thumbnail {
        width: 100%;
        max-width: 320px;
        height: auto;
        aspect-ratio: 16/9;
    }

    .video-info {
        width: 100%;
        text-align: center;
    }

    .quality-select {
        max-width: 100%;
    }
}