/* /Components/DonateButton.razor.rz.scp.css */
.donate-section[b-j6rbsjgr1n] {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.donate-container[b-j6rbsjgr1n] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.donate-header[b-j6rbsjgr1n] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.donate-icon[b-j6rbsjgr1n] {
    font-size: 1rem;
}

.donate-title[b-j6rbsjgr1n] {
    color: white;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.donate-description[b-j6rbsjgr1n] {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 16px 0;
    font-size: 0.875rem;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.donate-btn[b-j6rbsjgr1n] {
    background: #0070ba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 112, 186, 0.2);
}

.donate-btn:hover[b-j6rbsjgr1n] {
    background: #005ea6;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 112, 186, 0.3);
}

.donate-btn:active[b-j6rbsjgr1n] {
    transform: translateY(0);
}

.paypal-icon[b-j6rbsjgr1n] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.donate-note[b-j6rbsjgr1n] {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 640px) {
    .donate-container[b-j6rbsjgr1n] {
        padding: 16px;
        margin: 0 10px;
    }
    
    .donate-title[b-j6rbsjgr1n] {
        font-size: 1.1rem;
    }
    
    .donate-description[b-j6rbsjgr1n] {
        font-size: 0.8rem;
    }
    
    .donate-btn[b-j6rbsjgr1n] {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .donate-header[b-j6rbsjgr1n] {
        flex-direction: column;
        gap: 8px;
    }
    
    .paypal-icon svg[b-j6rbsjgr1n] {
        width: 14px;
        height: 14px;
    }
}
/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-dez2z6l5br] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-dez2z6l5br] {
    flex: 1;
}

.sidebar[b-dez2z6l5br] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-dez2z6l5br] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-dez2z6l5br]  a, .top-row[b-dez2z6l5br]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-dez2z6l5br]  a:hover, .top-row[b-dez2z6l5br]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-dez2z6l5br]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-dez2z6l5br] {
        justify-content: space-between;
    }

    .top-row[b-dez2z6l5br]  a, .top-row[b-dez2z6l5br]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-dez2z6l5br] {
        flex-direction: row;
    }

    .sidebar[b-dez2z6l5br] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-dez2z6l5br] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-dez2z6l5br]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-dez2z6l5br], article[b-dez2z6l5br] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

.main-container[b-dez2z6l5br] {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e88e5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
/* /Pages/Home.razor.rz.scp.css */
/* Page Background and Container */
.page-background[b-qr8jheb5vv] {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e88e5 100%);
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    padding: 20px 10px 40px 10px; /* Add bottom padding for scroll space */
    display: block; /* Changed from flex to block for better scroll behavior */
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
}

/* Music notes positioning */
.music-notes[b-qr8jheb5vv] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.hero-section[b-qr8jheb5vv] {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
    margin: 20px auto; /* Center horizontally */
    position: relative;
    z-index: 10;
    /* Ensure content can expand vertically */
    min-height: auto;
    max-height: none;
}

.logo-container[b-qr8jheb5vv] {
    margin-bottom: 40px;
}

.logo[b-qr8jheb5vv] {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.app-title[b-qr8jheb5vv] {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e88e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.app-subtitle[b-qr8jheb5vv] {
    font-size: 1.2rem;
    color: #718096;
    margin: 0 0 30px 0;
    font-weight: 400;
    line-height: 1.4;
}

/* Session info styling - now at bottom */
.session-info[b-qr8jheb5vv] {
    background: transparent;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    margin-top: 15px;
    display: inline-block;
    color: rgba(107, 114, 128, 0.6);
    font-size: 0.7rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    word-break: break-all;
    text-align: center;
    width: 100%;
}

.session-info:hover[b-qr8jheb5vv] {
    opacity: 0.8;
}

.session-info small[b-qr8jheb5vv] {
    font-size: 0.65rem;
}

.download-form[b-qr8jheb5vv] {
    margin-bottom: 40px;
}

.input-container[b-qr8jheb5vv] {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.url-input[b-qr8jheb5vv] {
    padding: 18px 24px;
    font-size: 1.1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    color: #2d3748;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.url-input:focus[b-qr8jheb5vv] {
    outline: none;
    border-color: #1e88e5;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
    transform: translateY(-1px);
}

.url-input[b-qr8jheb5vv]::placeholder {
    color: #a0aec0;
}

.download-btn[b-qr8jheb5vv] {
    padding: 18px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e88e5 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.download-btn:hover:not(:disabled)[b-qr8jheb5vv] {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
}

.download-btn:disabled[b-qr8jheb5vv] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-icon[b-qr8jheb5vv] {
    font-size: 1.2rem;
}

/* Download All in ZIP Button Styles */
.download-all-container[b-qr8jheb5vv] {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.download-all-btn[b-qr8jheb5vv] {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    color: white;
    border: none;
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 220px;
    position: relative;
    overflow: hidden;
}

.download-all-btn:hover:not(:disabled)[b-qr8jheb5vv] {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}

.download-all-btn:disabled[b-qr8jheb5vv] {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.download-all-btn.loading[b-qr8jheb5vv]::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shimmer-b-qr8jheb5vv 1.5s infinite;
}

.download-all-icon[b-qr8jheb5vv] {
    font-size: 1.3rem;
    animation: bounce-b-qr8jheb5vv 2s infinite;
}

.zip-info[b-qr8jheb5vv] {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 400;
    margin-left: 4px;
}

@keyframes shimmer-b-qr8jheb5vv {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes bounce-b-qr8jheb5vv {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

.output-message[b-qr8jheb5vv] {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
    text-align: center;
    color: #0369a1;
    word-wrap: break-word;
}

.output-message p[b-qr8jheb5vv] {
    margin: 0;
    font-size: 0.9rem;
    white-space: pre-line;
}

.features[b-qr8jheb5vv] {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.feature[b-qr8jheb5vv] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    flex-shrink: 0;
}

.feature-icon[b-qr8jheb5vv] {
    font-size: 1.8rem;
    margin-bottom: 8px;
    opacity: 0.8;
}

.feature span:last-child[b-qr8jheb5vv] {
    font-weight: 500;
    font-size: 0.9rem;
    color: #4b5563;
    text-align: center;
}

/* Progress styles */
.progress-container[b-qr8jheb5vv] {
    margin-top: 20px;
    width: 100%;
}

.progress-container.with-video-details[b-qr8jheb5vv] {
    margin-top: 15px;
    background: #f8f9ff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e3e7ff;
}

.progress-bar[b-qr8jheb5vv] {
    width: 100%;
    height: 8px;
    background-color: #e8ecf4;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-container.with-video-details .progress-bar[b-qr8jheb5vv] {
    height: 6px;
    background-color: #e1e5ed;
}

.progress-fill[b-qr8jheb5vv] {
    height: 100%;
    background: linear-gradient(90deg, #1e88e5, #2196f3);
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(33, 150, 243, 0.4);
}

.progress-text[b-qr8jheb5vv] {
    text-align: center;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    word-wrap: break-word;
}

.progress-container.with-video-details .progress-text[b-qr8jheb5vv] {
    font-size: 13px;
    color: #4a5568;
}

.progress-highlight[b-qr8jheb5vv] {
    color: #2d3748;
    font-weight: 600;
}

.progress-percentage[b-qr8jheb5vv] {
    color: #718096;
    font-weight: 400;
    margin-left: 4px;
}

.download-links-section[b-qr8jheb5vv] {
    margin-top: 30px;
    margin-bottom: 30px; /* Add bottom margin for scroll space */
    width: 100%;
    max-width: 600px;
}

.downloads-title[b-qr8jheb5vv] {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
}

.download-links[b-qr8jheb5vv] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Add bottom padding to ensure last item is fully visible */
    padding-bottom: 20px;
}

.download-item[b-qr8jheb5vv] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s ease;
}

.download-item:hover[b-qr8jheb5vv] {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.download-info[b-qr8jheb5vv] {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.download-title[b-qr8jheb5vv] {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.download-date[b-qr8jheb5vv] {
    font-size: 12px;
    color: #666;
}

.download-link-btn[b-qr8jheb5vv] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.download-link-btn:hover[b-qr8jheb5vv] {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.download-icon[b-qr8jheb5vv] {
    font-size: 16px;
}

/* Video Info Styles */
.video-info-section[b-qr8jheb5vv] {
    margin-top: 20px;
    width: 100%;
    animation: slideIn-b-qr8jheb5vv 0.5s ease-out;
}

.video-info-title[b-qr8jheb5vv] {
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.video-info-card[b-qr8jheb5vv] {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.video-info-card.processing[b-qr8jheb5vv] {
    border-color: #1e88e5;
    box-shadow: 0 2px 12px rgba(30, 136, 229, 0.15);
}

.video-thumbnail[b-qr8jheb5vv] {
    flex-shrink: 0;
    position: relative;
}

.thumbnail-img[b-qr8jheb5vv] {
    width: 160px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
}

.processing-overlay[b-qr8jheb5vv] {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn-b-qr8jheb5vv 0.3s ease-out;
}

.processing-spinner[b-qr8jheb5vv] {
    font-size: 24px;
    animation: spin-b-qr8jheb5vv 2s linear infinite;
}

.video-details[b-qr8jheb5vv] {
    flex: 1;
    min-width: 0;
}

.video-title[b-qr8jheb5vv] {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.error-message[b-qr8jheb5vv] {
    margin-top: 15px;
    padding: 12px;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    color: #c62828;
    text-align: center;
    word-wrap: break-word;
}

.conversion-status[b-qr8jheb5vv] {
    margin-top: 8px;
    padding: 8px 12px;
    background: linear-gradient(90deg, #1e88e5, #2196f3);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    animation: pulse-b-qr8jheb5vv 2s ease-in-out infinite;
}

.status-icon[b-qr8jheb5vv] {
    font-size: 16px;
}

@keyframes spin-b-qr8jheb5vv {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeIn-b-qr8jheb5vv {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse-b-qr8jheb5vv {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(30, 136,229, 0.4);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(30, 136, 229, 0);
    }
}

@keyframes slideIn-b-qr8jheb5vv {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Progress Section Styles */
.enhanced-progress-section[b-qr8jheb5vv] {
    margin: 25px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #f3f4ff 100%);
    border: 1px solid #e1e5ff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
    animation: slideIn-b-qr8jheb5vv 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.enhanced-progress-section[b-qr8jheb5vv]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6366f1, transparent);
    animation: progressShimmer-b-qr8jheb5vv 2s infinite;
}

.progress-header[b-qr8jheb5vv] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.progress-title[b-qr8jheb5vv] {
    font-size: 1.2rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.progress-icon[b-qr8jheb5vv] {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.progress-icon.spinning[b-qr8jheb5vv] {
    animation: spin-b-qr8jheb5vv 2s linear infinite;
}

.progress-icon.pulse[b-qr8jheb5vv] {
    animation: pulse-b-qr8jheb5vv 1.5s ease-in-out infinite;
}

.progress-icon.bounce[b-qr8jheb5vv] {
    animation: iconBounce-b-qr8jheb5vv 1s ease-in-out infinite;
}

.progress-icon.glow[b-qr8jheb5vv] {
    animation: glow-b-qr8jheb5vv 2s ease-in-out infinite;
}

.progress-icon.success[b-qr8jheb5vv] {
    color: #10b981;
    animation: successPop-b-qr8jheb5vv 0.5s ease-out;
}

.progress-stats[b-qr8jheb5vv] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 0.85rem;
    color: #6b7280;
    white-space: nowrap;
}

.progress-percentage[b-qr8jheb5vv] {
    font-size: 1.1rem;
    font-weight: 700;
    color: #6366f1;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-elapsed[b-qr8jheb5vv],
.progress-eta[b-qr8jheb5vv] {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    color: #9ca3af;
}

.progress-bar-container[b-qr8jheb5vv] {
    position: relative;
    margin-bottom: 20px;
}

.progress-bar-background[b-qr8jheb5vv] {
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 100%);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.progress-bar-fill[b-qr8jheb5vv] {
    height: 100%;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 10px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.progress-bar-shimmer[b-qr8jheb5vv] {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer-b-qr8jheb5vv 2s infinite;
}

.progress-stages[b-qr8jheb5vv] {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    gap: 8px;
}

.progress-stage[b-qr8jheb5vv] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    transition: all 0.3s ease;
    min-width: 0;
}

.stage-icon[b-qr8jheb5vv] {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stage-label[b-qr8jheb5vv] {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    word-wrap: break-word;
    line-height: 1.2;
}

.progress-stage.pending .stage-icon[b-qr8jheb5vv] {
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #e5e7eb;
}

.progress-stage.pending .stage-label[b-qr8jheb5vv] {
    color: #9ca3af;
}

.progress-stage.active .stage-icon[b-qr8jheb5vv] {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-color: #6366f1;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 102,241, 0.3);
    animation: stageActivePulse-b-qr8jheb5vv 2s infinite;
}

.progress-stage.active .stage-label[b-qr8jheb5vv] {
    color: #6366f1;
    font-weight: 600;
}

.progress-stage.completed .stage-icon[b-qr8jheb5vv] {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #10b981;
    transform: scale(1.05);
}

.progress-stage.completed .stage-label[b-qr8jheb5vv] {
    color: #10b981;
    font-weight: 600;
}

.progress-details[b-qr8jheb5vv] {
    text-align: center;
}

.progress-message[b-qr8jheb5vv] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.message-text[b-qr8jheb5vv] {
    font-size: 0.95rem;
    color: #4b5563;
    font-weight: 500;
}

.progress-dots[b-qr8jheb5vv] {
    display: flex;
    gap: 2px;
}

.progress-dots .dot[b-qr8jheb5vv] {
    width: 4px;
    height: 4px;
    background: #6b7280;
    border-radius: 50%;
    animation: dotPulse-b-qr8jheb5vv 1.5s infinite;
}

.progress-dots .dot:nth-child(2)[b-qr8jheb5vv] {
    animation-delay: 0.3s;
}

.progress-dots .dot:nth-child(3)[b-qr8jheb5vv] {
    animation-delay: 0.6s;
}

.stage-details[b-qr8jheb5vv] {
    color: #6b7280;
    font-size: 0.8rem;
    font-style: italic;
    line-height: 1.4;
}

/* Enhanced download button processing state */
.download-btn.processing[b-qr8jheb5vv] {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    animation: buttonPulse-b-qr8jheb5vv 2s infinite;
}

.download-btn.processing .btn-icon[b-qr8jheb5vv] {
    animation: spin-b-qr8jheb5vv 1s linear infinite;
}

/* Enhanced success and error messages */
.output-message.success[b-qr8jheb5vv] {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 1px solid #bbf7d0;
    color: #065f46;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: successSlide-b-qr8jheb5vv 0.6s ease-out;
}

.success-icon[b-qr8jheb5vv] {
    font-size: 1.2rem;
    animation: successPop-b-qr8jheb5vv 0.5s ease-out;
}

.error-message[b-qr8jheb5vv] {
    background: linear-gradient(135deg, #fef2f2 0%, #fef7f7 100%);
    border: 1px solid #fecaca;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: errorShake-b-qr8jheb5vv 0.5s ease-out;
}

.error-icon[b-qr8jheb5vv] {
    font-size: 1.2rem;
}

/* Enhanced loading states */
.loading-spinner[b-qr8jheb5vv] {
    font-size: 1rem;
    animation: spin-b-qr8jheb5vv 1s linear infinite;
    margin-left: 8px;
}

.processing-text[b-qr8jheb5vv] {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Video info enhancements */
.processing-text[b-qr8jheb5vv] {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Animations */
@keyframes progressShimmer-b-qr8jheb5vv {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes stageActivePulse-b-qr8jheb5vv {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
    }
}

@keyframes iconBounce-b-qr8jheb5vv {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes glow-b-qr8jheb5vv {
    0%, 100% {
        text-shadow: 0 0 5px rgba(99, 102, 241, 0.5);
    }
    50% {
        text-shadow: 0 0 15px rgba(99, 102, 241, 0.8);
    }
}

@keyframes successPop-b-qr8jheb5vv {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes dotPulse-b-qr8jheb5vv {
    0%, 80%, 100% {
        opacity: 0.4;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes buttonPulse-b-qr8jheb5vv {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(107, 114, 128, 0.5);
    }
}

@keyframes successSlide-b-qr8jheb5vv {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes errorShake-b-qr8jheb5vv {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsive Design - Tablet */
@media (min-width: 640px) and (max-width: 1024px) {
    .hero-section[b-qr8jheb5vv] {
        padding: 35px 25px;
        margin: 15px;
    }
    
    .input-container[b-qr8jheb5vv] {
        flex-direction: row;
        align-items: stretch;
        gap: 12px;
    }
    
    .url-input[b-qr8jheb5vv] {
        flex: 1;
        font-size: 1rem;
        padding: 16px 20px;
        min-width: 0;
    }
    
    .download-btn[b-qr8jheb5vv] {
        min-width: 140px;
        max-width: 180px;
        flex-shrink: 0;
        font-size: 0.95rem;
        padding: 16px 20px;
    }
    
    /* Enhanced progress tablet styles */
    .enhanced-progress-section[b-qr8jheb5vv] {
        padding: 18px;
        margin: 22px 0;
    }
    
    .progress-header[b-qr8jheb5vv] {
        margin-bottom: 18px;
    }
    
    .progress-title[b-qr8jheb5vv] {
        font-size: 1.15rem;
    }
    
    .progress-stats[b-qr8jheb5vv] {
        font-size: 0.82rem;
    }
    
    .progress-stages[b-qr8jheb5vv] {
        gap: 6px;
        margin-top: 14px;
    }
    
    .stage-icon[b-qr8jheb5vv] {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
    
    .stage-label[b-qr8jheb5vv] {
        font-size: 0.7rem;
    }
    
    .features[b-qr8jheb5vv] {
        gap: 35px;
    }
}

/* Responsive Design - Large Desktop */
@media (min-width: 640px) {
    .input-container[b-qr8jheb5vv] {
        flex-direction: row;
        align-items: stretch;
        gap: 15px;
    }
    
    .url-input[b-qr8jheb5vv] {
        flex: 1;
        min-width: 0; /* Allows flex item to shrink below its content size */
    }
    
    .download-btn[b-qr8jheb5vv] {
        min-width: 160px;
        max-width: 200px;
        flex-shrink: 0;
        padding: 18px 24px;
        font-size: 1rem;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 639px) {
    .page-background[b-qr8jheb5vv] {
        padding: 10px 5px 40px 5px; /* Ensure bottom padding for scroll */
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .hero-section[b-qr8jheb5vv] {
        padding: 25px 15px;
        margin: 5px auto; /* Ensure centering */
        border-radius: 16px;
        min-width: 0;
    }
    
    .logo[b-qr8jheb5vv] {
        width: 100px;
        height: 100px;
    }
    
    .app-title[b-qr8jheb5vv] {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .app-subtitle[b-qr8jheb5vv] {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .url-input[b-qr8jheb5vv] {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 16px 20px;
    }
    
    .download-btn[b-qr8jheb5vv] {
        font-size: 1rem;
        padding: 16px 24px;
    }
    
    /* Enhanced progress mobile styles */
    .enhanced-progress-section[b-qr8jheb5vv] {
        padding: 15px;
        margin: 20px 0;
    }
    
    .progress-header[b-qr8jheb5vv] {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .progress-title[b-qr8jheb5vv] {
        font-size: 1.1rem;
    }
    
    .progress-stats[b-qr8jheb5vv] {
        align-self: stretch;
        flex-direction: row;
        justify-content: space-between;
        font-size: 0.8rem;
    }
    
    .progress-stages[b-qr8jheb5vv] {
        gap: 4px;
        margin-top: 12px;
    }
    
    .stage-icon[b-qr8jheb5vv] {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .stage-label[b-qr8jheb5vv] {
        font-size: 0.65rem;
        line-height: 1.1;
    }
    
    .progress-bar-background[b-qr8jheb5vv] {
        height: 10px;
    }
    
    .progress-bar-fill[b-qr8jheb5vv] {
        height: 10px;
    }
    
    .message-text[b-qr8jheb5vv] {
        font-size: 0.9rem;
    }
    
    .stage-details[b-qr8jheb5vv] {
        font-size: 0.75rem;
    }
    
    .features[b-qr8jheb5vv] {
        gap: 25px;
        justify-content: space-around;
    }
    
    .feature[b-qr8jheb5vv] {
        min-width: auto;
        flex: 1;
        max-width: 80px;
    }
    
    .feature-icon[b-qr8jheb5vv] {
        font-size: 1.5rem;
    }
    
    .feature span:last-child[b-qr8jheb5vv] {
        font-size: 0.8rem;
    }
    
    .session-info[b-qr8jheb5vv] {
        font-size: 0.6rem;
        padding: 3px 6px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-top: 10px;
        opacity: 0.5;
    }
    
    .session-info small[b-qr8jheb5vv] {
        font-size: 0.55rem;
    }
    
    .download-all-btn[b-qr8jheb5vv] {
        min-width: 160px;
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .zip-info[b-qr8jheb5vv] {
        font-size: 0.75rem;
    }
    
    .download-item[b-qr8jheb5vv] {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
    }
    
    .download-info[b-qr8jheb5vv] {
        text-align: left;
    }
    
    .download-link-btn[b-qr8jheb5vv] {
        align-self: stretch;
        justify-content: center;
        padding: 10px 16px;
    }
    
    .video-info-card[b-qr8jheb5vv] {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
        gap: 15px;
    }

    .thumbnail-img[b-qr8jheb5vv] {
        width: 200px;
        height: 112px;
    }
    
    .progress-text[b-qr8jheb5vv] {
        font-size: 13px;
    }
    
    .video-title[b-qr8jheb5vv] {
        font-size: 15px;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 360px) {
    .hero-section[b-qr8jheb5vv] {
        padding: 20px 12px;
        margin: 3px;
    }
    
    .app-title[b-qr8jheb5vv] {
        font-size: 1.6rem;
    }
    
    .app-subtitle[b-qr8jheb5vv] {
        font-size: 0.9rem;
    }
    
    .logo[b-qr8jheb5vv] {
        width: 80px;
        height: 80px;
    }
    
    .url-input[b-qr8jheb5vv] {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .download-btn[b-qr8jheb5vv] {
        padding: 14px 20px;
        font-size: 0.9rem;
    }
    
    /* Enhanced progress extra small mobile styles */
    .enhanced-progress-section[b-qr8jheb5vv] {
        padding: 12px;
        margin: 15px 0;
    }
    
    .progress-header[b-qr8jheb5vv] {
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .progress-title[b-qr8jheb5vv] {
        font-size: 1rem;
    }
    
    .progress-stats[b-qr8jheb5vv] {
        font-size: 0.75rem;
        gap: 6px;
    }
    
    .progress-percentage[b-qr8jheb5vv] {
        font-size: 1rem;
    }
    
    .progress-elapsed[b-qr8jheb5vv],
    .progress-eta[b-qr8jheb5vv] {
        font-size: 0.7rem;
    }
    
    .progress-stages[b-qr8jheb5vv] {
        gap: 2px;
        margin-top: 10px;
    }
    
    .stage-icon[b-qr8jheb5vv] {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .stage-label[b-qr8jheb5vv] {
        font-size: 0.6rem;
        line-height: 1;
    }
    
    .progress-bar-background[b-qr8jheb5vv] {
        height: 8px;
    }
    
    .progress-bar-fill[b-qr8jheb5vv] {
        height: 8px;
    }
    
    .message-text[b-qr8jheb5vv] {
        font-size: 0.85rem;
    }
    
    .stage-details[b-qr8jheb5vv] {
        font-size: 0.7rem;
    }
    
    .features[b-qr8jheb5vv] {
        gap: 20px;
    }
    
    .feature[b-qr8jheb5vv] {
        max-width: 70px;
    }
    
    .feature-icon[b-qr8jheb5vv] {
        font-size: 1.3rem;
    }
    
    .feature span:last-child[b-qr8jheb5vv] {
        font-size: 0.75rem;
    }
    
    .thumbnail-img[b-qr8jheb5vv] {
        width: 160px;
        height: 90px;
    }
    
    .download-all-btn[b-qr8jheb5vv] {
        min-width: 140px;
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 844px) and (orientation: landscape) {
    .page-background[b-qr8jheb5vv] {
        padding: 15px 10px;
    }
    
    .hero-section[b-qr8jheb5vv] {
        padding: 25px 20px;
        margin: 10px auto;
    }
    
    .logo-container[b-qr8jheb5vv] {
        margin-bottom: 25px;
    }
    
    .logo[b-qr8jheb5vv] {
        width: 80px;
        height: 80px;
    }
    
    .app-title[b-qr8jheb5vv] {
        font-size: 2rem;
    }
    
    .download-form[b-qr8jheb5vv] {
        margin-bottom: 25px;
    }
    
    .features[b-qr8jheb5vv] {
        margin-bottom: 15px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section[b-qr8jheb5vv] {
        backdrop-filter: blur(20px);
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    .hero-section[b-qr8jheb5vv],
    .download-btn[b-qr8jheb5vv],
    .download-item[b-qr8jheb5vv],
    .video-info-section[b-qr8jheb5vv],
    .progress-fill[b-qr8jheb5vv],
    .btn-icon[b-qr8jheb5vv],
    .download-all-btn[b-qr8jheb5vv],
    .download-link-btn[b-qr8jheb5vv] {
        animation: none !important;
        transition: none !important;
    }
    
    .processing-spinner[b-qr8jheb5vv] {
        animation: none !important;
    }
}

/* Print Styles */
@media print {
    .page-background[b-qr8jheb5vv] {
        background: white !important;
        padding: 20px;
    }
    
    .hero-section[b-qr8jheb5vv] {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ccc;
    }
    
    .music-notes[b-qr8jheb5vv] {
        display: none !important;
    }
    
    .download-btn[b-qr8jheb5vv],
    .download-link-btn[b-qr8jheb5vv],
    .download-all-btn[b-qr8jheb5vv] {
        display: none !important;
    }
}
