.player {
    background: var(--colorBannerSecciones);
    width: 600px;
    max-height: 600px;
    margin-right: 1rem;
}

.playlist {
    background: var(--colorBannerSecciones);
    border: 0.5px solid black;
    padding: 30px;
    width: 400px;
    max-height: 600px;
    overflow-y: auto;
}

.cover {
    width: 100%;
    max-height: 400px;
}

.info {
    padding: 18px 33px;
    color: black;
    border: 0.5px solid black;
    border-top: transparent;
    background-color: var(--colorBannerSecciones);
}

.info2 {
    color: black;
    padding: 20px 5px 20px;
}

.info2 h3 {
    margin: 2px 0 0;
    font-size: 20px;
}

.info2 p {
    margin-top: 2px;
    margin-bottom: -5px;
    font-size: 17px;
    color: black;
}

.info2 span {
    font-size: 14px;
}

.info h3 {
    margin: 2px 0 0;
    font-size: 20px;
}

.info p {
    margin-top: 2px;
    margin-bottom: 10px;
    font-size: 14px;
    color: black;
}

.volume-bar-container {
    width: 100px;
    height: 3px;
    background: rgb(99, 99, 99);
    position: relative;
    cursor: pointer;
    margin-left: 10px;
    border-radius: 2px;
}

.volume-bar {
    height: 100%;
    max-width: 94%; /* o lo que sea dinámico */
    background: black;
    transition: width 0.1s ease-in-out;
    border-radius: 2px;
    position: relative; /* clave para que ::after se posicione bien */
}

.volume-bar::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%);
    width: 12px;
    height: 12px;
    background: black;
    border-radius: 50%;
}
.progress {
    width: 100%;
    height: 3px;
    background: rgb(99, 99, 99);
    position: relative;
    cursor: pointer;
    border-radius: 2px;
}

#progress-bar2 {
    width: 100%;
    height: 3px;
    background: rgb(99, 99, 99);
    position: relative;
    cursor: pointer;
    border-radius: 2px;
}

.progress-bar {
    height: 100%;
    width: 0%; /* o lo que sea dinámico */
    background-color: black !important;
    transition: width 0.1s ease-in-out;
    border-radius: 2px;
    position: relative; /* clave para que ::after se posicione bien */
}

.progress-bar::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%);
    width: 12px;
    height: 12px;
    background-color: black !important;
    border-radius: 50%;
}

.time {
    display: flex;
    justify-content: end;
    font-size: 12px;
    color: black;
    margin-top: 3px;
    margin-bottom: 5px;
}

.slash {
    margin: 0 5px;
}

.controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 8px;
}

.controls .play {
    background: black;
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    padding-right: 3px;
    margin-top: 10px;
}

.fa-pause {
    padding-right: 4px !important;
}

.fa-pause::before {
    height: 30px !important;
}

.controls .play:hover {
    background: black;
}

.playlist .cover-small {
    width: 100%;
    margin-bottom: 28px;
    height: 338.4px;
}

.actions {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
    font-size: 18px;
}

.track-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: -33px;
}

.track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
}

.track .info {
    flex-grow: 1;
}

.track .info p {
    margin: 0;
    font-size: 12px;
    color: black;
}

.track .info span {
    font-size: 14px;
    color: black;
}

.icons {
    display: flex;
    gap: 10px;
    font-size: 16px;
    line-height: 1 !important;
    margin-right: 10px;
}

.restart {
    cursor: pointer;
    filter: invert(30%) sepia(0%) saturate(772%) hue-rotate(339deg)
        brightness(100%) contrast(90%);
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease-in-out;
}

.restart:hover {
    filter: invert(0%) sepia(0%) saturate(772%) hue-rotate(339deg)
        brightness(175%) contrast(105%);
}

.spotify {
    cursor: pointer;
    margin-left: 10px;
    transition: transform 0.3s ease-in-out;
    font-size: 2.5em;
}

.spotify:hover {
    color: #1db954;
}

.speaker {
    cursor: pointer;
    margin-left: 10px;
    color: black;
    transition: transform 0.3s ease-in-out;
}

.speaker:hover {
    color: black;
}

.mini-play {
    width: 30px;
    height: 30px;
    padding-top: 10px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    color: black;
}

/* Estilos para el grupo de control de volumen secundario */
.mini-volume-control-group {
    display: flex; /* Para alinear el icono y la barra horizontalmente */
    align-items: center;
    gap: 5px;
    margin-right: 10px;
    margin-top: 8px;
}

/* Estado inicial de la barra de volumen secundaria (oculta) */
.volume-bar-secondary {
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: width 0.3s ease-in-out, opacity 0.3s ease-in-out;
    height: 3px;
    background: rgb(99, 99, 99);
    border-radius: 2px;
    margin-left: 5px;
    display: flex;
    align-items: center;
}

/* Efecto de hover: cuando se pasa el mouse sobre el grupo, muestra la barra */
.mini-volume-control-group:hover .volume-bar-secondary {
    width: 100px; /* Ancho deseado cuando está visible */
    opacity: 1; /* Completamente visible */
}

/* Asegurarse de que el contenido de la barra se muestre correctamente */
.volume-bar-secondary .volume-bar {
    height: 100%;
    width: 100%; /* O el valor inicial que quieras, esto es el llenado de la barra */
    background: black;
    border-radius: 2px;
    position: relative;
}

.volume-bar-secondary .volume-bar::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%);
    width: 12px;
    height: 12px;
    background: black;
    border-radius: 50%;
}

/* Opcional: Para el icono del parlante en la playlist */
.mini-speaker {
    cursor: pointer;
    color: black; /* O white, según prefieras por defecto */
    padding-bottom: 1px;
    gap: 5px;
    transition: transform 0.3s ease-in-out;
}

.mini-speaker:hover {
    color: black; /* Un ligero cambio al pasar el mouse sobre el parlante directamente */
}

/* Si quieres que el parlante esté blanco cuando la barra está visible */
.mini-volume-control-group:hover .mini-speaker {
    color: black;
}

.mini-spotify {
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    color: black;
}

.mini-spotify:hover {
    /* verde spotify */
    color: #1db954;
}

@media screen and (max-width: 768px) {
    .spotify {
        width: 30px;
        height: 30px;
    }

    .restart {
        width: 25px;
        height: 25px;
    }

    .controls .play {
        width: 35px;
        height: 35px;
        font-size: small;
        margin-bottom: 10px;
    }

    .player {
        width: 100%;
        max-width: 400px;
        margin-bottom: 20px;
        margin-right: 0;
    }

    .playlist {
        width: 100%;
        max-width: 400px;
    }

    .playlist .cover-small {
        height: 230px;
    }

    .volume-bar-container {
        width: 80px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1200px) {
    .player {
        width: 100%;
        max-width: 500px;
        margin-bottom: 20px;
        margin-right: 0;
    }

    .playlist .cover-small {
        height: 200px;
    }

    .playlist {
        width: 100%;
        max-width: 500px;
        height: 800px;
        padding: 40px;
    }

    .playlist .cover-small {
        height: 260px;
    }

    .controls .play {
        margin-bottom: 10px;
    }
}

.track-active {
    font-weight: bold;
    color: black;
}
