/* Downloader Results Styles */
.download-result {
    display: none;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.download-result.active {
    display: block;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.video-thumb {
    flex: 0 0 200px;
    max-width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #f3f4f6;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-details {
    flex: 1;
    min-width: 250px;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #1f2937;
}

.video-author {
    color: #6b7280;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-options {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.download-option-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.download-option-btn:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.download-option-btn.primary {
    background: var(--primary-color, #2563eb);
    color: white;
}

.download-option-btn.primary:hover {
    background: #1d4ed8;
}

.download-meta {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Loader */
.loader-container {
    display: none;
    text-align: center;
    padding: 2rem;
    margin-top: 1rem;
}

.loader-container.active {
    display: block;
}

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

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

    100% {
        transform: rotate(360deg);
    }
}

.error-message {
    display: none;
    padding: 1rem;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 0.5rem;
    margin-top: 1rem;
    text-align: center;
}

.error-message.active {
    display: block;
}