@font-face {
    font-family: 'RobotoSlab-Regular';
    src: url(RobotoSlab-Regular.ttf);
}

@font-face {
    font-family: 'RobotoSlab-Bold';
    src: url(RobotoSlab-Bold.ttf);
}

@font-face {
    font-family: 'Roboto Flex';
    src: url(RobotoFlex-VariableFont.ttf)
}

html, body {
    height: 100%;
    font-family: 'Roboto Flex';
    overflow: hidden;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

div {
    box-sizing: border-box;
}

.player-wrapper {
    height: 100%;
    padding: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.player {
    height: 100%;
    background-color: #000;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0px 4px 4px rgba(0,0,0,.25);
    display: flex;
    overflow: hidden;
    flex: 0 1 100%;
    max-width: 584px;
    max-height: 150px;
}

.player--podcast {
    max-height: 240px;
}

.top-content {
    display: flex;
    height: 60%;
}

.top-content--podcast {
    height: 100%;
}

.player-image-container {
    position: relative;
    display: flex;
    flex: 0 1 25%;
    background-color: #191919;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.player-image-container--image {
    background-size: cover;
    background-repeat: no-repeat;
}

.player-image-container--image::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(0deg, #000 0%, #0000 30%);
}

.player-image-container--podcast {
    flex: 0 1 41%;
}

.player-image {
    padding: 45px;
    width: 100%;
    height: 100%;
    display: flex;
}

.player-content {
    display: flex;
    flex: 0 1 75%;
    flex-direction: column;
}

.player-content--podcast {
    flex: 0 1 59%;
}

.titles-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    height: 100%;
    padding-left: 16px;
    font-size: 10vh;
}

.titles-wrapper--podcast {
    padding-right: 16px;
}

.podcast-data {
    font-size: 0.75rem;
    font-weight: 600;
    color: #999;
    line-height: 1.125rem;
    padding-top: 16px;
}

.podcast-data__title {
     color: #fff;
     text-decoration: underline;
}
.sound-title {
    max-height: 75%;
    font-size: 10vh;
    display: -webkit-box;
    overflow: hidden;
    font-family: 'Roboto Flex';
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.25rem;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.audio-type__name {
    font-size: 7vh;
    font-family: 'Roboto Flex';
    font-size: 0.75rem;
    font-weight: 600;
    color: #999;
    padding-bottom: 5px;
}

.enlapsed-time, .total-time {
    width: 15%;
    font-size: 0.75rem;
    font-weight: 600;
}

.enlapsed-time {
    text-align: right;
    padding-right: 8px;
}

.total-time {
    padding-left: 8px;
}

.controls-wrapper {
    width: 30%;
    height: 100%;
    padding: 20px;
}

.play-btn {
    width:100%;
    height:100%;
    background-image: url('play_btn.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: 50% 50%;
}

.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40%;
    padding: 8px;
}

.bottom-content--podcast {
    height: 60px;
}

.slider-container {
    flex: 0 1 100%;
}

.time-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.play-btn-container {
    /* flex: 0 0 30%; */
    display: flex;
    /* width: 100%; */
    max-width: 100%;
    height: 100%;
    aspect-ratio: 1;
    /* max-height: 100%; */
    /* overflow: hidden; */
    justify-content: center;
    margin-left: 15px;
    margin-right: 10px;
}

.seekbar {
    width: 100%;
    height: 8px;
    background-color: #FFF;
}

.controls__play-btn {
    border-radius: 50%;
    background-color: #fff;
    /* aspect-ratio: 1; */
    height: 100%;
    cursor: pointer;
}

.controls__play-btn__svg {
    width: 100%;
    height: 100%;
    color: #000;
}

/*
SLIDER
*/

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 15px;
    border-radius: 5px;  
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 35px;
    height: 35px;
    border-radius: 50%; 
    background: #0090D6;
    border-color: transparent;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #0090D6;
    border-color: transparent;
    cursor: pointer;
}

.progress-bar {
    cursor: pointer;
    min-height: 20px;
    display: flex;
    align-items: center;
    position: relative;
    flex: 1;
    --track-height: 5px;
    --scrubber-size: 13px;
}

.progress-bar:hover {
    .progress-bar__scrubber-button {
        transform: none;
    }
}

.progress-bar__track-container {
    height: 5px;
    width: 100%;
    background: transparent;
    position: relative;
    border-radius: 50px;

}

.progress-bar__background {
    background-color: #404040;
    position: absolute;
    top: 0;
    transition: inherit;
    left: 0;
    bottom: 0;
    border-radius: inherit;
    width: 100%;
}

.progress-bar__determinate {
    left: 0;
    height: inherit;
    position: absolute;
    transition: inherit;
    border-radius: inherit;
    background-color: #fff;
}

.progress-bar__scrubber-container {
    position: absolute;
    top: calc((var(--track-height) / 2) - (var(--scrubber-size) / 2));
    left: calc(var(--scrubber-size) / 2 * -1);
    z-index: 1;
    cursor: pointer;
}

.progress-bar__scrubber-button {
    height: var(--scrubber-size);
    width: var(--scrubber-size);
    border-radius: calc(var(--scrubber-size) / 2);
    transition: transform 0.1s cubic-bezier(0.4, 0, 1, 1) 0s;
    transform: scale(0);
    background-color: #fff;
}


/* Bars */

#bars {
    position: relative;
    height: 100%;
    width: 100%;
}

.bar {
    background: #00ACFF;
    bottom: 1px;
    height: 3px;
    position: absolute;
    width: 7%;      
    border-radius: 2px;
}

.bar-animation {
    animation: sound 0ms -800ms linear infinite alternate;
}

@keyframes sound {
    0% {
       opacity: .35;
        height: 3px; 
    }
    100% {
        opacity: 1;       
        height: 63%;        
    }
}

.bar:nth-child(1)  { left: 0%; animation-duration: 474ms; }
.bar:nth-child(2)  { left: 13%; animation-duration: 433ms; }
.bar:nth-child(3)  { left: 26%; animation-duration: 407ms; }
.bar:nth-child(4)  { left: 39%; animation-duration: 458ms; }
.bar:nth-child(5)  { left: 52%; animation-duration: 400ms; }
.bar:nth-child(6)  { left: 65%; animation-duration: 427ms; }
.bar:nth-child(7)  { left: 78%; animation-duration: 441ms; }
.bar:nth-child(8)  { left: 91%; animation-duration: 419ms; }

/* END Bars */



@media screen and (max-width: 590px) {
    .player--podcast {
        max-height: 500px;
    }

    .player-content {
        flex: 0 1 100%;
    }

    .player-image {
        padding: 23px;
    }

    .player-image-container {
        flex: 0 1 auto;
        width: 100%;
        max-width: 84px;
    }

    .player-image-container--podcast {
        height: 328px;
        max-width: 100%;
    }

    .top-content {
        height: 84px;
        min-height: 84px;
    }

    .top-content--podcast {
        flex-direction: column;
        height: 100%;
        max-height: 100%;
    }

    .titles-wrapper--podcast {
        height: auto;
        padding-top: 10px;
    }

    .podcast-data {
        padding-top: 10px;
    }

    .bottom-content {
        height: 100%;
        overflow: hidden;
    }

    .bottom-content--podcast {
        height: 60px;
    }

    .sound-title {
        font-size: 0.875rem;
        line-height: 1.125rem;
    }

    .audio-type__name {
        font-size: 0.625rem;
    }

    .enlapsed-time, .total-time {
        font-size: 0.625rem;
    }
}