.downloader-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.downloader-section h2 {
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.downloader-section > p {
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}

.input-section {
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

#twitchUrl {
    flex: 1;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

#twitchUrl:focus {
    outline: none;
    border-color: #9146ff; /* Twitch purple */
}

#analyzeBtn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #9146ff 0%, #772ce8 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

#analyzeBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(145, 70, 255, 0.4);
}

.url-examples {
    background: #f8f9ff;
    border-left: 4px solid #9146ff;
    padding: 20px;
    border-radius: 5px;
}

.url-examples p {
    margin: 0 0 10px 0;
    color: #333;
    font-weight: bold;
}

.url-examples ul {
    margin: 0;
    padding-left: 20px;
}

.url-examples li {
    color: #666;
    margin-bottom: 5px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #9146ff;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

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

.video-info {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
}

.video-preview {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.thumbnail {
    width: 200px;
    height: 112px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #e1e8ed;
}

.video-details {
    flex: 1;
}

.video-details h3 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    line-height: 1.3;
}

.video-details p {
    color: #666;
    margin: 5px 0;
    font-size: 0.95rem;
}

.download-options h4 {
    color: #333;
    margin-bottom: 15px;
}

.quality-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.quality-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quality-option:hover {
    border-color: #9146ff;
    background: #f8f9ff;
}

.quality-option.selected {
    border-color: #9146ff;
    background: #f0f0ff;
}

.quality-option input[type="radio"] {
    margin-right: 15px;
}

.quality-info {
    flex: 1;
}

.quality-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 3px;
}

.quality-details {
    font-size: 0.9rem;
    color: #666;
}

.download-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary, .btn-success, .btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #9146ff 0%, #772ce8 100%);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-primary:hover, .btn-success:hover, .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.download-progress {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin: 30px 0;
}

.download-progress h3 {
    color: #333;
    margin-bottom: 25px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e1e8ed;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #9146ff, #772ce8);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #666;
}

.download-stats {
    display: flex;
    justify-content: space-around;
    color: #666;
    font-size: 0.9rem;
}

.download-complete {
    background: #f0fff4;
    border: 2px solid #48bb78;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin: 30px 0;
}

.download-complete h3 {
    color: #38a169;
    margin-bottom: 25px;
}

.download-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.success-icon {
    font-size: 3rem;
}

.donation-section {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #e1e8ed;
}

.donation-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.donation-section p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.donation-form {
    display: flex;
    justify-content: center;
}

.donation-form form {
    transition: transform 0.3s ease;
}

.donation-form form:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .downloader-section {
        padding: 20px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .video-preview {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .thumbnail {
        width: 100%;
        max-width: 300px;
        height: auto;
    }
    
    .download-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-success, .btn-secondary {
        width: 100%;
        margin: 5px 0;
    }
    
    .progress-details, .download-stats {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}