@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

*,
*::before,
*::after {
  box-sizing: inherit;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    position: relative;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
    user-select: none;
}

button {
    outline: none;
    border-style: none;
    cursor: pointer;
    background: none;
}

.icon-volumen {
    color: #0057FF;
}

.icon-volumen svg,
.icon-volumen img {
    width: 20px;
    min-width: 20px;
    height: 20px;
}

.icon-play {
    position: relative;
    width: 58px;
    min-width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: #0057FF;
    color: #030B29;
    display: flex;
    align-items: center;
}

.icon-play svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 26px;
}

.range-volumen {
    -webkit-appearance: none;
    height: 8px;
    border-radius: 5px;
    background: #313131;
    outline: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.range-volumen::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0057FF;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.range-volumen::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background: #0057FF;
    cursor: pointer;
    transition: background 0.15s ease-in-out;
}

.container {
    position: relative;
}

.main {
    position: relative;
    display: flex;
    min-height: 100vh;
    padding-bottom: 100px;
    background-image: url("https://radiosanfelipe.com/img/portada.jpg");
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    overflow: auto;
}

.main::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 87, 255, .8);
}

.main .live-radio {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 3rem 24px 5rem;
    flex: 1;
}

.main .live-radio .radio-red {
    position: absolute;
    display: flex;
    align-items: center;
    bottom: 2rem;
    right: 0;
    gap: 8px;
}

.main .live-radio .radio-red .icon-share {
    width: 50px;
}

.main .live-radio .radio-red .social-media {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #0F1838;
    border-radius: 16px 0 0 16px;
    padding: 12px 24px 12px 20px;
}

.main .live-radio .radio-red .social-media .subt {
    position: absolute;
    top: -20px;
    right: 16px;
    background-color: #0038FF;
    padding: 6px 18px;
    color: white;
    font-weight: bold;
    font-size: 12px;
    border-radius: 12px;

}

.main .live-radio .radio-red .social-media .social-link {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: white;
    color: white;
    font-size: 16px;
    display: grid;
    place-items: center;
    text-decoration: none;
}

.main .live-radio .container {
    width: 100%;
    max-width: 580px;
    margin: auto;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
}

.main .live-radio .radio-avatar {
    position: relative;
    width: 300px;
    min-width: 300px;
    height: 300px;
    background-color: #0E0D0D;
    border-radius: 24px;
}

.main .live-radio .radio-avatar .avatar {
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.main .live-radio .radio-avatar .logo {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 12px;
    right: 12px;
}

.main .live-radio .radio-info .logo {
    width: 160px;
}

.footer {
    position: fixed;
    display: flex;
    align-items: center;
    padding: 0 24px;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: #030B29;
    height: 100px;
    z-index: 1;
}

.footer .container {
    display: flex;
    width: 100%;
    max-width: 620px;
    align-items: center;
    margin: auto;
    gap: 16px;
}

.footer .icon-song {
    width: 80px;
}

.footer .text-song {
    width: 258px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scrolling-text-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}
  
.scrolling-text {
    display: inline-block;
}

.text-song h1,
.text-song h2 {
    font-size: 14px;
    color: white;
    font-weight: bold;
}

.text-song h2 {
    font-weight: 500;
}

.footer .control {
    display: flex; 
    align-items: center; 
    flex: 1 1 auto; 
    justify-content: end; 
    gap: 12px;
}

#loading {
    position: fixed;
    padding: 12rem 24px 3rem;
    overflow: auto;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(17,17,17,1) 0%, rgba(0,0,0,1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#loading .container {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

#loading .logo {
    position: relative;
    display: flex;
    justify-content: center;
    margin: auto;
}
  
#loading .logo .one {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 300px;
    filter: blur(80px);
    transform: translate(-50%, -50%);
    opacity: .6;
}

#loading .logo .two {
    position: relative;
    width: 200px;
}

#loading .block-loading-barra {
    margin-top: 7rem;
}

#loading .block-loading-barra .textCopy {
    margin-top: 6rem;
    font-size: 12px;
    color: white;
    text-align: center;
}

#loading .block-loading-barra .textCopy a {
    color: white;
    font-weight: bold;
}

.barra-loading {
    width: 100%;
    height: 14px;
    background-color: #232424;
    box-shadow: 0 0 0 1px inset #292a29;
    border-radius: 100px;
}

.barra-loading div {
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,158,158,1) 17%, rgba(255,0,0,1) 30%, rgba(255,115,0,1) 44%, rgba(255,252,0,1) 65%, rgba(146,255,0,1) 85%, rgba(0,236,255,1) 100%);
    height: 100%;
    border-radius: inherit;
    box-shadow: 0 0 0 1px inset #222122b8;
    transition: all .3s ease;
}
  
.hidden {
    display: none;
}  

@media screen and (max-width: 768px) {
    .hide-for-mobile {
        display: none !important;
    }

    .icon-play {
        width: 40px;
        min-width: 40px;
        height: 40px;
    }
    
    .icon-play svg {
        width: 18px;
    }

    .icon-play span {
        width: 20px !important;
        height: 20px !important;
        border-radius: 4px !important;
    }

    .main {
        padding-bottom: 75px;
        background-image: none;
    }

    .main::before {
        background-color: #030B29;
    }

    .main .background-image {
        filter: blur(60px);
    }

    .main .live-radio {
        flex-direction: column;
        justify-content: flex-start;
        padding: 1.3rem 24px 3rem;
        z-index: 1;
    }

    .main .live-radio .container {
        align-items: center;
        flex-direction: column-reverse;
        margin: 0 auto;
    }

    .main .live-radio .radio-info {
        position: relative;
        margin-bottom: -30px;
    }

    .main .live-radio .text-song {
        width: 100%;
        max-width: 300px;
        padding: 0 16px;
        margin: 1rem auto 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .text-song h1,
    .text-song h2 {
        font-size: 18px;
    }

    .text-song h2 {
        font-size: 16px;
    }

    .main .live-radio .radio-red {
        position: relative;
        justify-content: flex-end;
        margin: 3rem -24px 0;
        gap: 1rem;
        bottom: 0;
    }

    .main .live-radio .radio-red .icon-share {
        width: 38px;
    }

    .footer {
        height: 75px;
    }

    .footer .container {
        justify-content: center;
    }

    .footer .icon-song {
        width: 60px;
    }

    .footer .control {
        gap: 16px;
        flex: initial;
    }

    #loading {
        padding: 5rem 43px 3rem;
    }

    #loading .container {
        max-width: 340px;
    }

    #loading .block-loading-barra .textCopy {
        max-width: 180px;
        margin: 6rem auto 0;
        line-height: 20px;
    }
}

@media screen and (min-width: 768px) {
    .hide-for-desktop {
      display: none !important;
    }
}
