/* Karaoke System Styles */
.karaoke-container {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    overflow: hidden;
}

.karaoke-lyrics-wrapper {
    position: relative;
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.karaoke-lyrics-wrapper::-webkit-scrollbar {
    width: 8px;
}

.karaoke-lyrics-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.karaoke-lyrics-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.lyrics-container {
    position: relative;
    font-family: 'Arial', sans-serif;
    text-align: center;
    color: #fff;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.lyrics-line {
    font-size: 1.2rem;
    line-height: 1.5;
    margin: 8px 0;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.8s ease;
    opacity: 0.6;
    transform: scale(0.98);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.lyrics-line.active-line {
    opacity: 1;
    transform: scale(1);
    background: linear-gradient(45deg, rgba(255, 0, 110, 0.15), rgba(131, 56, 236, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.3);
}





@keyframes bounce {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-10px); }
}

@keyframes continuousBounce {
    0%, 100% { transform: translate(-50%, -50%) translateY(0) scale(1); }
    50% { transform: translate(-50%, -50%) translateY(-8px) scale(1.1); }
}

.lyrics-message {
    font-size: 1.5rem;
    color: #ccc;
    text-align: center;
    padding: 40px 20px;
    opacity: 0.7;
}

/* Karaoke Controls */
.karaoke-controls {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.karaoke-btn {
    background: linear-gradient(45deg, #8338ec, #3a86ff);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(131, 56, 236, 0.3);
}

.karaoke-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(131, 56, 236, 0.4);
}

.karaoke-btn:active {
    transform: translateY(0);
}

.karaoke-file-input {
    display: none;
}

.karaoke-file-label {
    background: linear-gradient(45deg, #06ffa5, #00d4aa);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(6, 255, 165, 0.3);
}

.karaoke-file-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 255, 165, 0.4);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .lyrics-line {
        font-size: 1.4rem;
        margin: 10px 0;
        padding: 8px 12px;
    }
    
    .bouncing-ball {
        font-size: 1.5rem;
    }
    
    .karaoke-lyrics-wrapper {
        padding: 15px;
    }
    
    .karaoke-controls {
        padding: 10px 15px;
        gap: 10px;
    }
    
    .karaoke-btn, .karaoke-file-label {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .lyrics-line {
        font-size: 1.2rem;
    }
    
    .bouncing-ball {
        font-size: 1.2rem;
    }
}

/* Special Effects */
.lyrics-line.active-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 0, 110, 0.1), transparent);
    animation: shimmer 2s ease-in-out infinite;
    pointer-events: none;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Beat-reactive styling */
.beat-pulse .bouncing-ball {
    animation: beatPulse 0.3s ease-out;
}

@keyframes beatPulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* Glow effect for active elements */
.lyrics-word.active-word::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff006e, #8338ec, #00ffff);
    border-radius: 6px;
    z-index: -1;
    filter: blur(8px);
    opacity: 0.6;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { opacity: 0.6; }
    to { opacity: 0.8; }
}