/* Styles pour le lecteur audio */

/* Styles pour le contrôle du volume des effets sonores */
.sfx-volume-container {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 5px;
    margin-top: 5px;
}

.audio-player-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(30, 30, 40, 0.8);
    padding: 10px 15px;
    border-radius: 10px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    width: 300px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.audio-player-container.minimized {
    transform: translateX(270px);
}

.audio-player-container.minimized .audio-player-toggle {
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 30, 40, 0.8);
    border-radius: 5px 0 0 5px;
    padding: 10px 5px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
}

.audio-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: white;
}

.audio-player-title {
    font-weight: bold;
    font-size: 16px;
    color: var(--primary-color);
}

.audio-player-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s;
}

.audio-player-toggle:hover {
    color: var(--primary-color);
}

.audio-player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.audio-control-button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s, transform 0.2s;
    padding: 5px;
}

.audio-control-button:hover {
    color: var(--gold-color);
    transform: scale(1.1);
}

.audio-control-button.active {
    color: var(--primary-color);
}

.audio-player-volume {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.audio-volume-slider {
    flex-grow: 1;
    -webkit-appearance: none;
    height: 5px;
    border-radius: 5px;
    background: #444;
    outline: none;
}

.audio-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: background 0.3s;
}

.audio-volume-slider::-webkit-slider-thumb:hover {
    background: var(--gold-color);
}

.audio-volume-icon {
    color: white;
    font-size: 16px;
    min-width: 20px;
}

.song-notification {
    position: fixed;
    top: 20px;
    right: -300px;
    width: 280px;
    background: rgba(30, 30, 40, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-left: 4px solid var(--primary-color);
    transition: right 0.5s ease;
    backdrop-filter: blur(5px);
    font-family: 'Montserrat', sans-serif;
}

.song-notification.show {
    right: 20px;
}

.song-notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.song-notification-title {
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--primary-color);
}

.song-notification-close {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 14px;
}

.song-notification-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-progress-container {
    width: 100%;
    height: 5px;
    background: #444;
    border-radius: 5px;
    margin-top: 10px;
    position: relative;
    cursor: pointer;
}

.audio-progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 5px;
    width: 0%;
    transition: width 0.1s linear;
}

.audio-time {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #ccc;
    margin-top: 5px;
}

.playlist-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    margin-left: 5px;
}

.playlist-button:hover {
    color: var(--gold-color);
}

.playlist-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin-top: 10px;
}

.playlist-container.show {
    max-height: 200px;
    overflow-y: auto;
}

.playlist-item {
    padding: 8px 10px;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 5px;
    margin-bottom: 2px;
    color: #ccc;
    font-size: 14px;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.playlist-item.active {
    background: rgba(255, 0, 122, 0.2);
    color: var(--primary-color);
}

/* Animation de l'équaliseur audio */
.audio-equalizer {
    display: flex;
    align-items: flex-end;
    height: 15px;
    gap: 1px;
    margin-left: 10px;
}

.equalizer-bar {
    width: 3px;
    height: 5px;
    background-color: var(--primary-color);
    border-radius: 1px;
    animation: equalize 0.8s infinite alternate;
}

.equalizer-bar:nth-child(1) { animation-delay: 0.0s; }
.equalizer-bar:nth-child(2) { animation-delay: 0.1s; }
.equalizer-bar:nth-child(3) { animation-delay: 0.2s; }
.equalizer-bar:nth-child(4) { animation-delay: 0.3s; }
.equalizer-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes equalize {
    0% { height: 3px; }
    50% { height: 8px; }
    100% { height: 15px; }
}

.equalizer-inactive .equalizer-bar {
    height: 3px;
    animation: none;
    background-color: #666;
}
