/* Additional styles for media player functionality */

/* Upload button styling */
.search-bar .btn-primary {
    background: var(--primary-gradient);
}

/* File upload progress */
.upload-progress {
    height: 4px;
    background-color: var(--light-bg);
    margin: 10px 0;
    border-radius: 2px;
    overflow: hidden;
}

.upload-progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    width: 0%;
    transition: width 0.3s ease;
}

/* Media library enhancements */
.library-section {
    position: relative;
}

.library-status {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Song preview styling */
.preview-active {
    background-color: rgba(37, 117, 252, 0.2) !important;
}

/* Media player notifications */
.media-notification {
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Audio visualization (placeholder for future implementation) */
.audio-visualization {
    height: 60px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    margin-top: 15px;
    overflow: hidden;
    position: relative;
}

.visualization-bars {
    display: flex;
    height: 100%;
    align-items: flex-end;
    padding: 0 5px;
}

.visualization-bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary-color), var(--secondary-color));
    margin: 0 1px;
    height: 10%;
    transition: height 0.1s ease;
}

/* Enhanced video display for karaoke videos */
.video-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

video {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--border-radius);
}

/* Drag and drop zone for file uploads */
.drag-drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.drag-drop-zone.active {
    border-color: var(--secondary-color);
    background-color: rgba(37, 117, 252, 0.1);
}

.drag-drop-zone p {
    color: var(--text-muted);
    margin: 0;
}

/* Enhanced player controls */
.player-controls {
    display: flex;
    gap: 10px;
}

.player-controls .btn {
    position: relative;
    overflow: hidden;
}

.player-controls .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.player-controls .btn:active::after {
    transform: translate(-50%, -50%) scale(20);
    opacity: 1;
    transition: transform 0.2s, opacity 0.1s;
}

/* Volume control enhancements */
.volume-control input[type="range"] {
    -webkit-appearance: none;
    height: 5px;
    background: var(--light-bg);
    border-radius: 2px;
    overflow: hidden;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--secondary-color);
    cursor: pointer;
    box-shadow: -100vw 0 0 100vw rgba(37, 117, 252, 0.5);
}

/* Song info display enhancements */
.song-info {
    position: relative;
}

.song-info::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-gradient);
}

/* Key and tempo control enhancements */
.key-control, .tempo-control {
    background-color: rgba(42, 42, 90, 0.5);
    padding: 5px 10px;
    border-radius: var(--border-radius);
}

/* Integration with cueing system */
.cue-system {
    transition: height 0.3s ease, background-color 0.3s ease;
}

.cue-system.active {
    background-color: rgba(42, 42, 90, 0.8);
}

/* Transition animation */
.transition-active .timeline-marker {
    transition: left 0.3s linear;
}

/* Media library empty state */
.empty-library {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
}

.empty-library h3 {
    margin-bottom: 15px;
}

.empty-library p {
    margin-bottom: 20px;
}

/* Responsive adjustments for media player */
@media (max-width: 768px) {
    .audio-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .key-control, .tempo-control, .vocal-control {
        width: 100%;
    }
}
