* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding-top: 20px;
}


.social-section {
    margin-top: 25px;
}

.social-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
    opacity: 0.95;
}

.social-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.raincat-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.raincat-logo:hover {
    transform: scale(1.1);
}

.social-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 35px;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.social-button:hover {
    transform: translateY(-3px);
}

.website-button {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.website-button:hover {
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.5);
}

.instagram-button {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.instagram-button:hover {
    box-shadow: 0 6px 25px rgba(188, 24, 136, 0.5);
}

.social-icon {
    width: 24px;
    height: 24px;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

main {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.section {
    min-height: 300px;
}

/* Upload Area */
.upload-area {
    border: 3px dashed #e74c3c;
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #c0392b;
    background: #fff5f5;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.upload-area h2 {
    color: #e74c3c;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.upload-area p {
    color: #666;
    margin: 10px 0;
}

.file-info {
    font-size: 0.9rem;
    color: #999;
    margin-top: 20px;
}

/* File Selected */
.file-selected {
    text-align: center;
}

.file-info-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #f8f9ff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.file-icon {
    font-size: 2rem;
}

.file-name {
    flex: 1;
    font-weight: 600;
    color: #e74c3c;
    word-break: break-word;
}

.btn-icon {
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: #ff3838;
    transform: scale(1.1);
}

/* Buttons */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(17, 153, 142, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Processing */
.processing-box {
    text-align: center;
    padding: 40px 20px;
}

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

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

.progress-bar {
    width: 100%;
    height: 30px;
    background: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 15px;
}

.progress-text {
    color: #666;
    margin-top: 15px;
    font-size: 1rem;
}

/* Results */
.karaoke-container {
    margin: 30px 0;
}

.karaoke-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.karaoke-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.karaoke-card h3 {
    color: #e74c3c;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.karaoke-subtitle {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.lyrics-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.lyrics-badge.online {
    background: #d4edda;
    color: #155724;
}

.lyrics-badge.whisper {
    background: #fff3cd;
    color: #856404;
}

.lyrics-badge.aligned {
    background: #cfe2ff;
    color: #084298;
}

.karaoke-audio {
    width: 100%;
    margin: 20px 0;
}

.lyrics-box {
    margin: 25px 0 0 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: left;
}

.lyrics-box h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.lyrics-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    padding: 10px;
}

.no-lyrics {
    color: #999;
    font-style: italic;
    text-align: center;
}

/* Error */
.error-box {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #ffefef 0%, #ffd6d6 100%);
    border-radius: 15px;
}

.error-box h2 {
    color: #ff4757;
    margin-bottom: 20px;
}

.error-box p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Footer */
footer {
    text-align: center;
    color: white;
    margin-top: 40px;
    padding: 20px;
    opacity: 0.9;
}

footer p {
    font-size: 0.9rem;
}

.footer-brand {
    font-size: 1rem;
    margin: 15px auto 5px;
    font-weight: 600;
}

.footer-brand a {
    color: #fff;
    text-decoration: none;
    border-bottom: 2px solid #fff;
    transition: all 0.3s ease;
}

.footer-brand a:hover {
    border-bottom-color: #ffd700;
    color: #ffd700;
}

.footer-support {
    font-size: 0.95rem;
    margin: 10px auto;
    font-weight: 500;
}

.footer-support a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #fff;
    transition: all 0.3s ease;
}

.footer-support a:hover {
    color: #ffd700;
    border-bottom-color: #ffd700;
}

.footer-seo {
    font-size: 0.8rem;
    opacity: 0.8;
    max-width: 800px;
    margin: 15px auto 10px;
    line-height: 1.6;
}

.footer-copyright {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 10px;
}

/* Scrollbar */
.lyrics-text::-webkit-scrollbar {
    width: 8px;
}

.lyrics-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.lyrics-text::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 20px;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
    
    .karaoke-card {
        padding: 20px;
    }
    
}
