@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

:root {
    --blanco:rgba(228,228,228,1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Nunito", sans-serif;
}

body {

    display: flex;
    justify-content: center;
    min-height: 100vh;
    align-items: center;
    width: 100%;

    background: url(img/BackGround.jpg) ;
    background-repeat: no-repeat;
    background-size: cover;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body::before {
    content: '';
    position: absolute;
    background-color: rgba(0,0,0,0.5);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

body > * {
    position: relative;
    z-index: 2;
}

.reproductor-musica {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--blanco);
    width: 410px;
    padding: 10px 30px;
    border-radius: 20px;
    background-color: rgba(228,228,228,0.1);
}

.selector-archivos {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    margin: 10px 0 5px 0;
}

.selector {
    flex: 1;
    text-align: center;
    /*margin: 10px 0;*/
    width: 100%;
}

.selector label {
    background: rgba(165, 165, 165, 0.3);
    padding: 5px 8px;
    color: var(--blanco);
    border-radius: 20px;
    cursor: pointer;
}

.selector input {
    display: none;
}

.selector-izda{
    text-align: left;
}

.selector-dcha{
    text-align: right;
}

.playlist-Title {
    font-size: 1.2rem;
}

.playlist {
    background: rgba(165, 165, 165, 0.3);
    width: 100%;
    height: 350px;
    max-height: 350px;
    overflow-y: auto;
    margin: 5px 0 10px 0;
    padding: 10px;
    border-radius: 10px;
}

@-moz-document url-prefix() {
    .playlist{
        scrollbar-width: thin;
        scrollbar-color: rgba(228, 228, 228, 0.3) rgba(165, 165, 165, 0.1) ;
    }
}

.playlist::-webkit-scrollbar {
    width: 6px;
}

.playlist::-webkit-scrollbar-track {
    background: rgba(165, 165, 165, 0.1);
    border-radius: 3px;
}

.playlist::-webkit-scrollbar-thumb {
    background: rgba(228, 228, 228, 0.3);
    border-radius: 3px;
}

.playlist::-webkit-scrollbar-thumb:hover {
    background: rgba(228, 228, 228, 0.5);
}

#playlist-container {
    list-style: none;
}

#playlist-container li {
    padding: 8px;
    margin: 4px 0;
    background: rgba(165, 165, 165, 0.2);
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

#playlist-container li:hover {
    background: rgba(165, 165, 165, 0.3);
}

#playlist-container li.active {
    background: rgba(165, 165, 165, 0.4);
}

#playlist-container li.info{
    cursor: unset;
    background: unset;
}

.caratulaWidget{
    background: rgba(165, 165, 165, 0.3);
    width: 100%;
    height: 350px;
    max-height: 350px;
    margin: 5px 0 10px 0;
    border-radius: 10px;
}

.caratulaWidget img{
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: contain;
}

.reproductor-musica h1 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.6;
}

.reproductor-musica p {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.6;
}

.songInfo{
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
}

/*.songInfo:hover{
    /*Noes es buena solucion*/
    /*overflow: visible;*/
/*}*/


.time{
    display: flex;
    justify-content: space-between;
}

#currentTime{
    cursor: pointer;
}

.slider{
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 7px;
    background: rgba(165, 165, 165, 0.4);
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.slider::-webkit-slider-thumb{
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: rgba(165, 165, 165, 0.9);
    width: 16px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    outline: 2px solid var(--blanco);
    box-shadow: 0 6px 10px rgba(228, 228, 228, 0.3);
}

.slider::-moz-range-thumb {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: rgba(165, 165, 165, 0.9);
    /*width: 16px;/*nohace falta en firefox*/
    aspect-ratio: 1/1;
    border-radius: 50%;
    outline: 2px solid var(--blanco);
    box-shadow: 0 6px 10px rgba(228, 228, 228, 0.3);
}

.progresoWidget{
    width: 100%;
    /*padding: 5px 5px 10px 5px;*/
    padding: 5px;
}

.controles {
    display: flex;
    justify-content: center;
}

.controles button {
    width: 50px;
    aspect-ratio: 1/1;
    margin: 10px;
    background: rgba(165, 165, 165, 0.3);
    color: var(--blanco);
    border-radius: 50%;
    border: 1px solid var(--blanco);
    outline: 0;
    font-size: 1.5rem;
    box-shadow: 0 6px 10px rgba(228, 228, 228, 0.3);
    cursor: pointer;
    transition: all 0.1s linear;
}

.controles .control:hover {
    transform: scale(1.1);
}

.controles .reproducir-pausar{
    transform: scale(1.3);
}

.controles .reproducir-pausar:hover {
    transform: scale(1.4);
}

.controles .aleatorio.active,
.controles .repetir.active {
    background: rgba(165, 165, 165, 0.6);
}

#volume{
    margin: 6px 10px;
}

.volumeWidgetSide {
    width: 25px;
    text-align: center;
}

#iconoVolumen{
    cursor: pointer;
}

#iconoVolumen:hover {
    transform: scale(1.2);
}

.volumeWidget {
    display: flex;
    justify-content: center;
    margin: 10px 0 10px 0;
}