:root {
    --yellow-pale: #FFF8DC;
    --pink-pale: #FFB6C1;
    --yellow-accent: #F0E68C;
    --pink-accent: #FF69B4;
    --color-yellow: #f5df2b;
    --color-pink: #ff66c4;
    --color-blue: #48abe0;
    --color-green: #48e049;
    --color-dark: #333;
    --color-light: #f8f9fa;
    --color-white: #ffffff;
    --color-ColorDblue: #0d1421;
    --gradient-primary: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-pink) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-pink) 0%, var(--color-yellow) 100%);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.section-audios {
    max-height: 1200px;
    height: 500px;
    margin: auto;
}

/*Audios */
.music-player {
    background-image: url("/assets/images/lessympatifsjukebox00.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    width: 600px;
    height: 500px;
}

.player-header {
    padding: 5px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    color: var(--color-white)
}

.current-artist {
    font-size: 12px;
    color: var(--color-pink);
}

.control-bar {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    gap: 10px;
    border-bottom: 1px solid #404040;
}

.volume-btn {
    background: #44444441;
    border: 2px solid whitesmoke;
    color: #ff4444;
    font-size: 24px;
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.3s ease;
    border-radius: 50%;
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.volume-btn:hover {
    background: #55555549;
    border-color: #ffffff;
}

.volume-btn.muted {
    background: #333333;
    border-color: #555555;
}

.volume-icon {
    width: 12px;
    height: 8px;
    background: #ff4444;
    position: relative;
    clip-path: polygon(0% 30%, 40% 30%, 70% 0%, 70% 100%, 40% 70%, 0% 70%);
}

.volume-icon-muted {
    width: 12px;
    height: 8px;
    background: #888888;
    position: relative;
    clip-path: polygon(0% 30%, 40% 30%, 70% 0%, 70% 100%, 40% 70%, 0% 70%);
}

.volume-btn:hover .volume-icon {
    background: #ff6666;
}

.volume-btn.muted .volume-icon {
    background: #888888;
}

.volume-icon-muted::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 8px;
    width: 12px;
    height: 2px;
    background: #ff4444;
    transform: rotate(45deg);
    border-radius: 1px;
}

.play-btn {
    background: #44444441;
    border: 2px solid whitesmoke;
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.3s ease;
    border-radius: 50%;
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.play-btn:hover {
    background: #55555549;
    border-color: #ffffff;
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 12px solid whitesmoke;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    margin-left: 3px;
}

.play-btn:hover .play-icon {
    border-left-color: #ff6666;
}

/* Icône pause CSS */
.pause-icon {
    display: flex;
    gap: 3px;
}

.pause-icon::before,
.pause-icon::after {
    content: '';
    width: 4px;
    height: 16px;
    background: #ff4444;
    border-radius: 1px;
}

.play-btn:hover .pause-icon::before,
.play-btn:hover .pause-icon::after {
    background: #ff6666;
}

.time-current {
    font-size: 12px;
    color: whitesmoke;
    min-width: 35px;
    text-align: center;
}

.progress-container {
    flex: 0.7;
    height: 8px;
    background: whitesmoke;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    margin: 0 5px;
}

.progress-bar {
    height: 100%;
    background: #4CAF50;
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s ease;
}

.time-total {
    font-size: 12px;
    color: var(--color-yellow);
    min-width: 35px;
    text-align: center;
    font-weight: bolder;
    background-color: var(--color-pink);
    border-radius: 5px;
}


.playlist {
    max-height: 300px;
    overflow-y: auto;
}

.playlist {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}

.playlist::-webkit-scrollbar {
    width: 16px;
    background: rgba(13, 20, 33, 0.9);
    border-radius: 8px;
}

.playlist::-webkit-scrollbar-track {
    background: rgba(13, 20, 33, 0.9);
    border-radius: 8px;
    border: 2px solid var(--color-blue);
    box-shadow: inset 0 0 10px rgba(72, 171, 224, 0.3);
}

.playlist::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, 
        var(--color-blue) 0%, 
        var(--color-green) 50%, 
        var(--color-blue) 100%);
    border-radius: 8px;
    border: 2px solid var(--color-yellow);
    box-shadow: 
        0 0 10px rgba(72, 171, 224, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: scroll-glow 2s ease-in-out infinite alternate;
}

.playlist::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, 
        var(--color-green) 0%, 
        var(--color-blue) 50%, 
        var(--color-pink) 100%);
    box-shadow: 
        0 0 15px rgba(72, 224, 73, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Empêche le scroll horizontal et ses éléments */
.playlist::-webkit-scrollbar-corner {
    display: none;
}

.playlist::-webkit-scrollbar-horizontal {
    display: none;
}

@keyframes scroll-glow {
    0% { 
        box-shadow: 
            0 0 10px rgba(72, 171, 224, 0.8),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    100% { 
        box-shadow: 
            0 0 20px rgba(72, 171, 224, 1),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
}

.song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    border-bottom: 1px solid #404040;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.song-item:hover {
    background: #ff666639;
}

.song-item.active {
    background: linear-gradient(135deg, 
        rgba(72, 171, 224, 0.4) 0%, 
        rgba(72, 171, 224, 0.6) 50%, 
        rgba(72, 171, 224, 0.4) 100%);
    color: #ffffff;
    font-weight: bolder;
    box-shadow: 
        0 0 20px rgba(72, 171, 224, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: visible;
}

.song-item.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--color-blue), 
        var(--color-green), 
        var(--color-blue), 
        var(--color-yellow),
        var(--color-blue));
    background-size: 400% 400%;
    border-radius: 8px;
    z-index: -1;
    animation: blue-border 3s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes blue-border {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.song-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 2px;
    color: var(--color-yellow);
    border-radius: 5px;
    background-color: var(--color-ColorDblue)
}



.song-artist {
    font-size: 11px;
    color: whitesmoke;
}

.song-item.active .song-artist {
    color: whitesmoke;
}

.song-duration {
    font-size: 12px;
    color: var(--color-yellow);
    min-width: 35px;
    text-align: center;
    font-weight: bolder;
    background-color: var(--color-pink);
    border-radius: 5px;
}

.song-item.active .song-duration {
    color: #ffffff;
}

audio {
    display: none;
}