/* Nouveau wrapper pour l'ombre */
.audio-player-shadow-wrapper {
    width: 400px;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3),
                0 10px 20px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateX(0deg);
    transition: transform 0.3s ease;
}

.audio-player-shadow-wrapper:hover {
    transform: perspective(1000px) rotateX(2deg);
}

/* Conteneur principal du lecteur */
.audio-player-container {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, black 70%, rgba(0, 0, 0, 0.3));
    mask-image: linear-gradient(to right, black 70%, rgba(0, 0, 0, 0.3));
    background-color: #3a3a3a;
}

/* En-tête avec dégradé */
.player-header {
    background: linear-gradient(135deg, #1a1a1a, #6d6d6d);
    color: #f0f0f0;
    padding: 15px 20px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 -5px 15px rgba(255, 255, 255, 0.1),
                inset 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

/* Contrôles principaux */
.player-controls {
    background: linear-gradient(to bottom, #4a4a4a, #2a2a2a);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 1;
}

/* Boutons de contrôle */
.control-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1a1a1a, #694F99);
    border: none;
    color: #e0e0e0;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3),
                inset 0 2px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.4),
                inset 0 2px 0 rgba(255, 255, 255, 0.1);
}

.control-btn:active {
    transform: scale(0.98);
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3),
                inset 0 2px 0 rgba(255, 255, 255, 0.1);
}

/* Barre de progression */
.progress-container {
    width: 100%;
    height: 12px;
    background: linear-gradient(145deg, #1a1a1a, #4a4a4a);
    border-radius: 6px;
    overflow: hidden;
    margin: 10px 0 5px 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #000000, #ff1a1a);
    border-radius: 6px;
    transition: width 0.1s linear;
}

/* Affichage du temps */
.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #C7C3C3;
    margin-top: -12px;
    position: relative;
    z-index: 1;
    padding: 0 2px;
    width: 100%;
}

/* Contrôle du volume */
.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.volume-control input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #6d6d6d;
    border-radius: 3px;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 30px;
    height: 30px;
    background: linear-gradient(145deg, #1a1a1a, #D07B7B);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 2px solid #d0d0d0;
}

/* Playlist */
.playlist {
    background: linear-gradient(to bottom, #3a3a3a, #2a2a2a);
    border-top: 1px solid #1a1a1a;
    box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.1);
}

.playlist-item {
    padding: 18px 24px;
    border-bottom: 1px solid #1a1a1a;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    font-weight: lighter;
    color: #b0b0b0;
    font-size: 19px;
    line-height: 2;
}

.playlist-item:hover {
    background: rgba(100, 100, 100, 0.3);
}

.playlist-item.active {
    background: rgba(80, 80, 80, 0.7);
    font-weight: bold;
    color: #BB8585;
    font-size: 19px;
}