/* Real Music Integration CSS */
.track-result {
    transition: all 0.3s ease;
}

.track-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.music-platform {
    position: relative;
}

.music-platform::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #D4AF37, #FFD700, #D4AF37);
    z-index: -1;
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.music-platform:hover::before {
    opacity: 0.3;
}

.preview-button {
    position: relative;
    overflow: hidden;
}

.preview-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.preview-button:active::after {
    width: 100px;
    height: 100px;
}

/* Video Generation Modal */
.download-modal {
    backdrop-filter: blur(10px);
}

.download-option {
    background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(139,69,19,0.1));
    border: 1px solid rgba(212,175,55,0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.download-option:hover::before {
    left: 100%;
}

.download-option:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(212,175,55,0.4);
}

/* Progress Bar Animation */
.progress-bar {
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.3);
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255,255,255,0.3) 50%, 
        transparent 70%);
    animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Platform Badges */
.platform-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 8px;
}

.platform-badge.jiosaavn {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
}

.platform-badge.youtube {
    background: linear-gradient(135deg, #FF0000, #CC0000);
    color: white;
}

.platform-badge.jamendo {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

/* Music Wave Animation */
.playing-indicator {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 10px;
}

.wave-bar {
    width: 3px;
    height: 15px;
    background: #D4AF37;
    border-radius: 2px;
    animation: musicWave 1s ease-in-out infinite;
}

.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }

@keyframes musicWave {
    0%, 100% { height: 15px; }
    50% { height: 5px; }
}

/* Loading Spinner for Music Search */
.music-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #D4AF37;
}

.music-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(212,175,55,0.3);
    border-top: 4px solid #D4AF37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

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

/* Video Export Styles */
.video-export-section {
    background: linear-gradient(135deg, rgba(212,175,55,0.05), rgba(139,69,19,0.05));
    border: 1px dashed rgba(212,175,55,0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1rem;
    text-align: center;
}

.export-format-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 1rem 0;
}

.format-option {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(139,69,19,0.1));
    border: 2px solid rgba(212,175,55,0.3);
    border-radius: 25px;
    color: #F4E4BC;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.format-option:hover {
    border-color: #D4AF37;
    background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(139,69,19,0.2));
    transform: translateY(-2px);
}

.format-option.selected {
    border-color: #FFD700;
    background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(212,175,55,0.2));
    box-shadow: 0 0 20px rgba(255,215,0,0.3);
}

.format-option.selected::before {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #32CD32;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Search Enhancement */
.search-container {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2c1810;
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 8px;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.suggestion-item {
    padding: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(212,175,55,0.1);
}

.suggestion-item:hover {
    background: rgba(212,175,55,0.1);
    color: #D4AF37;
}

.suggestion-item:last-child {
    border-bottom: none;
}