
:root{
    --color-1: #E62F2C;
    --color-2: #DC0C15;
    --color-3: #272727;
    --color-4: #4C4D4D;
    --color-5: #445760;
    --color-6: #97A0A6;
    --color-verde: #1e9a36;
    --color-7: #b1bfca;
    --white: #fff;

    --color-font-1: #272727;
    --bg-1: #f4f4f4;
    --bg-2: #F2F2F2;
}



/* ========================== Global Style Start ====================== */
.button {
    margin: 0;
    padding: 0;
    color: inherit;
    height: 30px;
    width: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: .5;
    transition: opacity 150ms ease-in-out;
    background: none;
    outline: none;
    border: none;
}
.button:hover {
    opacity: 1;
}

.button__icons {
    margin: 0;
    padding: 0;
    width: 1.3rem;
}

.whatsapp-btn {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: .9rem;
}

.volume {
    width: 1.5rem;
    height: 1.5rem;
    margin-left: .5rem;
}

.playpause__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--color-4);
    transition: background-color 150ms ease-in-out;
}

.player.bottom .playpause__btn {
    width: 2.5rem;
    height: 2.5rem;
}

.playpause__btn:hover {
    background-color: var(--color-2);
}

.play-icon,
.pause-icon {
    width: 1.8rem;
}

.disabled {
    opacity: 0.5;
}

.disabled:hover {
    background: transparent;
    opacity: 0.5;
    color: #FFFFFF;
    cursor: not-allowed;
}



/* ==== Background Player */
.background__player {
    position: absolute;
    top: 0;
    left: 0;
    width: inherit;
    height: inherit;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    object-fit: cover;
    z-index: -1;
}

.background__player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: inherit;
    height: inherit;
    background-color: rgba(31, 31, 31, .8);
    backdrop-filter: blur(20px);
    z-index: 11;
}

.background__img {
    width: 100%;
    height: 100%;
    overflow: hidden;
    object-fit: cover;
}






/* === On Air ===  */
.onair {
    justify-content: center;
    flex-direction: column;
    /* border: 1px solid #fff; */
}

.onair__span {
    font-size: .7rem;
}



/* === Wave === */
.onair__wave {
    width: 60px;
    height: 30px;
    display: flex;
    align-items: flex-end;
}



.wave1 {
    width: 3px;
    height: 30px;
    margin-right: 3px;
    background-color: var(--green-color);
    /* animation: wave .8s linear infinite; */
    animation: unset;
}

.wave1:nth-child(2){
    height: 15px; 
    margin-right: 3.5px;
    animation-delay: .2s;
}
.wave1:nth-child(3){
    height: 25px; 
    animation-delay: .4s;
}
.wave1:nth-child(4){
    height: 20px; 
    animation-delay: .8s;
}
.wave1:nth-child(5){
    height: 25px; 
    animation-delay: .16s;
}
.wave1:nth-child(6){
    height: 10px; 
    animation-delay: .24s;
}
.wave1:nth-child(7){
    height: 15px; 
    animation-delay: .36s;
}
.wave1:nth-child(8){
    height: 27px;
    animation-delay: .42s; 
}
.wave1:nth-child(9){
    height: 15px;
    animation-delay: .56s; 
}




/* Javascript Class wave */
.active1 .wave1 {
   animation: wave .8s linear infinite;
}

.active1 .wave1:nth-child(2){
    animation-delay: .2s;
}
.active1 .wave1:nth-child(3){
    animation-delay: .4s;
}
.active1 .wave1:nth-child(4){
    animation-delay: .8s;
}
.active1 .wave1:nth-child(5){
    animation-delay: .16s;
}
.active1 .wave1:nth-child(6){
    animation-delay: .24s;
}
.active1 .wave1:nth-child(7){
    animation-delay: .36s;
}
.active1 .wave1:nth-child(8){
    animation-delay: .42s; 
}
.active1 .wave1:nth-child(9){
    animation-delay: .56s; 
}
/* === Animaciones de Wave === */
@keyframes wave {
    0% {
        height: 10px;
    }
    20% {
        height: 30px;
    }
    40% {
        height: 5px;
    }
    60% {
        height: 25px;
    }
    80% {
        height: 10px;
    }
    100% {
        height: 30px;
    }
}







/* ========== Controls container ==========*/
.controls {
    color: white;
    opacity: .5;
    transition: opacity 200ms ease-in-out;
    /* border: 1px solid #fff; */
}


.music__player:hover .controls,
.music__player:focus-within .controls,
.music__player.paused .controls {
    opacity: 1;
}

.controls {
    display: flex;
    gap: .5rem;
    padding: .25rem;
    align-items: center;
}


/* Volumen */
.volume-up,
.volume-down,
.volume-muted {
    display: none;
}

.player[data-volume-level="hight"] .volume-up {
    display: block;
}
.player[data-volume-level="low"] .volume-down {
    display: block;
}
.player[data-volume-level="muted"] .volume-muted {
    display: block;
}




/* === Controls Volumen === */
.controls__volumen{
    position: relative;
}
.controls__volumen .volume__input{
    background-color: var(--green-color);
    border-radius: 5px;
    width: 140px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    transform-origin: left;
    transform: rotate(-90deg) translateX(20px) translateY(15px);
    box-shadow: 2px 2px 25px rgba(0, 0, 0, .3);
    transition: all .5s ease; 
    margin-bottom: 10px;
    opacity: 0;
    visibility: hidden;
}
.controls__volumen:hover .volume__input{
    margin-bottom: 40px;
    opacity: 1;
    visibility: visible;
}








.player.paused .pause-icon {
    display: none;
}

.player:not(.paused) .play-icon {
    display: none;
}

.player.fullscreen .subir {
    display: none;
}

.player:not(.fullscreen) .bajar {
    display: none;
}




