/* Fixed Audio Player Styles */
.fixed-audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2a2a2a;
    border-top: 2px solid #bfa67a;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

.audio-player-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 15px 0;
    gap: 15px;
    min-height: 70px;
}

.player-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Section 1: Track Info */
.player-track-info {
    flex-direction: column;
    align-items: flex-start;
    width: 150px;
}

.player-track-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.player-track-genre {
    font-size: 12px;
    color: #a0a0a0;
    margin: 2px 0 0 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* Section 2: Track Details */
.player-track-details {
    gap: 8px;
    width: 110px;
}

.player-bpm,
.player-key {
    background: rgba(191, 166, 122, 0.1);
    border: 1px solid rgba(191, 166, 122, 0.4);
    color: #bfa67a;
    font-size: 10px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.3px;
}

/* Section 3: Controls */
.player-controls {
    gap: 10px;
    min-width: 140px;
    position: relative;
}

.player-btn {
    background: transparent;
    border: 1px solid #bfa67a;
    color: #bfa67a;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.player-btn:hover {
    background: #bfa67a;
    color: #2a2a2a;
}

.player-play-pause {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

/* Volume Slider */
.player-volume {
    position: relative;
}

.player-volume-slider-container {
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.player-volume-slider-container.show {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.player-volume-slider {
    position: relative;
    width: 30px;
    height: 120px;
    background: #2a2a2a;
    border: 2px solid #bfa67a;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.volume-slider-track {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: calc(100% - 20px);
    background: #555555;
    border-radius: 2px;
}

.volume-slider-fill {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background: #bfa67a;
    border-radius: 2px;
}

.volume-slider-thumb {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #bfa67a;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.volume-slider-thumb:hover {
    transform: translateX(-50%) scale(1.1);
    background: #d4c291;
}

/* Section 4: Waveform */
.player-waveform-section {
    flex: 1;
    gap: 5px;
    min-width: 0;
}

.player-time-current,
.player-time-total {
    font-size: 12px;
    color: #a0a0a0;
    font-weight: 500;
    width: 35px;
    text-align: center;
}

.player-waveform-container {
    flex: 1;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-waveform-container canvas {
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Section 5: Buy Button */
.player-buy-section {
    min-width: 80px;
}

.player-buy-btn {
    width: 105px;
    background: transparent;
    border: 2px solid #bfa67a;
    color: #bfa67a;
    padding: 8px 0;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.player-buy-btn:hover {
    background: #bfa67a;
    color: #2a2a2a;
}

.player-close-btn {
    background: transparent;
    border: none;
    color: rgba(191, 166, 122, 0.6);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.player-close-btn i {
    font-size: 14px;
}

/* Mobile Responsive for Audio Player */
@media (max-width: 991px) {
    .player-volume {
        display: none;
    }

    .audio-player-content {
        gap: 8px;
        padding: 8px 0;
    }
    
    .player-waveform-section {
        flex: 1 1 100%;
        order: 1;
    }
    
    .player-track-info {
        width: 100px;
        order: 2;
    }
    
    .player-track-name {
        font-size: 11px;
        max-width: 100px;
    }
    
    .player-track-genre {
        font-size: 10px;
        max-width: 100px;
    }
    
    .player-track-details {
        gap: 2px;
        order: 3;
    }
    
    .player-controls {
        min-width: 100px;
        gap: 6px;
        order: 4;
    }
    
    .player-buy-section {
        min-width: 60px;
        order: 5;
    }
    
    .player-close-section {
        order: 6;
    }
}

/* Mobile Responsive for Audio Player */
@media (max-width: 767px) {
    .audio-player-content {
        gap: 10px;
        padding: 10px 0;
    }
    
    .player-track-info {
        width: 120px;
    }
    
    .player-track-name {
        font-size: 12px;
        max-width: 120px;
    }
    
    .player-track-genre {
        font-size: 11px;
        max-width: 120px;
    }
    
    .player-track-details {
        gap: 4px;
    }
    
    .player-controls {
        min-width: 120px;
        gap: 8px;
    }
    
    .player-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .player-play-pause {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .player-time-current,
    .player-time-total {
        font-size: 11px;
        width: 30px;
    }
    
    .player-buy-section {
        min-width: 70px;
    }
    
    .player-buy-btn {
        width: 90px;
        padding: 6px 0;
        font-size: 11px;
    }
    
    .player-close-btn {
        width: 32.5px;
        height: 32.5px;
    }
}

@media (max-width: 480px) {
    .player-track-details {
        display: none;
    }
}
