/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

/* Processing Modal */
.processing-modal {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(235, 99, 149, 0.3);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1001;
}

.modal-overlay.show .processing-modal {
    transform: scale(1);
}

.processing-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #eb6395;
}

.processing-text {
    color: #cccccc;
    margin-bottom: 30px;
    line-height: 1.6;
}

.processing-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(235, 99, 149, 0.2);
    border-top: 4px solid #eb6395;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results Modal */
.results-modal {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(235, 99, 149, 0.3);
    border-radius: 20px;
    padding: 0;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1001;
}

.modal-overlay.show .results-modal {
    transform: scale(1);
}

.results-header {
    padding: 30px;
    border-bottom: 1px solid rgba(235, 99, 149, 0.2);
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.video-thumbnail {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(235, 99, 149, 0.3);
}

.video-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #eb6395;
}

.video-info p {
    color: #cccccc;
    font-size: 14px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #cccccc;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1002;
}

.close-btn:hover {
    color: #eb6395;
}

.results-content {
    padding: 30px;
}

.download-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.download-table th,
.download-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(235, 99, 149, 0.2);
}

.download-table th {
    background: rgba(235, 99, 149, 0.1);
    color: #eb6395;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.download-table td {
    color: #cccccc;
    font-size: 14px;
}

.download-table tr:hover {
    background: rgba(235, 99, 149, 0.05);
}

.download-link {
    background: linear-gradient(45deg, #eb6395, #ff8fab);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.download-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(235, 99, 149, 0.4);
}

.quality-badge {
    background: rgba(235, 99, 149, 0.2);
    color: #eb6395;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.size-badge {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
} 