body {
  margin: 0;
}

* {
  box-sizing: border-box;
}


.floating_player__outer {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 90px;
  z-index: 100000000;
  transition: width 300ms;
  overflow: hidden;


  margin: 10px;
}

.floating_player__outer.active {
  width: 100%;
  margin: 0;
}
.floating_player__outer .floating_player {
  border-radius: 10px;
}
.floating_player__outer.active .floating_player {
  border-radius: 0;
}



.floating_player__close {
  display: none;
}
.floating_player__open {
  display: flex;
}

.floating_player__outer.active .floating_player__close {
  display: flex;
}
.floating_player__outer.active .floating_player__open {
  display: none;
}
.floating_player__close, .floating_player__open {
  position: absolute;
  width: 20px;
  height: 20px;
  padding: -5px;
  background: rgba(70,70,70, 0.5);
  z-index: 10002;
  right: 5px;
  top:5px;
  border-radius: 50%;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.floating_player__close svg, .floating_player__open svg {
  stroke: white;
  height: 80%;
  width: 80%;
  transform: rotate(45deg)
}

.floating_player {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  height: 90px;
}
.floating_player a {
  text-decoration: none;
}

.floating_player__image {
  height: 70px;
  width: 70px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}


.floating_player__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 100ms;
}

.floating_player__image svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50%;
  height: 50%;
  opacity: 0.6;
  transform: translate(-50%,-50%);
  transition: opacity 100ms;
}

.floating_player:hover .floating_player__image svg {
  opacity: 0;
}
.floating_player:hover .floating_player__image img {
  transform: scale(1.1);

}


.floating_player__body {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  opacity: 0;
  transition: opacity 300ms 300ms;
}

.floating_player__outer.active .floating_player__body {
  opacity: 1;
  display: flex;
}

.floating_player__editorial {
  color: white;
  font-family: sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  width: calc(100vw - 100px);
}

.floating_player__editorial__title {
  font-weight: 600;
  font-size: 12px;
}

.floating_player__editorial__subtitle {
  text-transform: uppercase;
  font-size: 12px;
}

.floating_player__cta__button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  background: white;
  color: black;
}

.floating_player__cta__button:hover {
  background: #eee;
  color: black;
}

.floating_player__cta__button svg {
  height: 20px;
  width: 20px;
}


.floating_player__cta__button span {
  white-space: nowrap;
}

.floating_player__editorial__inner {
  white-space: nowrap;
  display: inline-block;
  animation: marquee 10s linear infinite;
}

.floating_player__editorial__inner p {
  display: inline-block;
  margin: 0;
}

.floating_player__editorial__inner p:nth-child(0n+2) {
  margin-left: 50px;
}

@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(calc(-89% - 50px), 0, 0);
  }
}

.floating_player__radio {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  gap: 10px;
}



@media (min-width: 500px) {

  .floating_player__outer.active {
    width: 400px;
    margin: 20px;
  }

  .floating_player__outer {
    height: unset;
    margin: 20px;
    transition: width 300ms;
    width: 100px;
  }

  .floating_player__outer.active .floating_player {
    border-radius: 10px;
  }

  .floating_player {
    height: 100%;
    justify-content: flex-start;
  }

  .floating_player__image {
    width: 80px;
    height: 80px;
  }

  .floating_player__body {
    width: 100%;
  }

  .floating_player__editorial {
    overflow: visible;
    width: 100%;
  }
  .floating_player__editorial__inner {
    animation: none;
    display: flex;
    flex-direction: column;
  }

  .floating_player__editorial__inner:first-child {
    display: none;
  }

  .floating_player__editorial__inner p:nth-child(0n+2) {
    margin: 0;
  }


  .floating_player__editorial__title {
    font-weight: 600;
    font-size: 15px;
    line-height: 1rem;
    white-space: normal;
  }

  .floating_player__editorial__subtitle {
    text-transform: uppercase;
    font-size: 12px;
  }
}

@media (min-width: 1540px) {

  .floating_player__outer {
    width: 190px;
  }

  .floating_player__outer.active {
    width: 500px;
  }

  .floating_player {
    width: 100%;
  }

  .floating_player__body {
    align-items: flex-start;
  }

  .floating_player__image {
    width: 170px;
    height: 170px;
  }
  .floating_player__editorial__title {
    font-size: 24px;
    line-height: 1.5rem;
  }

  .floating_player__editorial__subtitle {
    margin-top: 8px !important;
    font-size: 16px;
  }

  .floating_player__radio {
    flex-direction: row-reverse;
  }
}

.visualizer {
  height: 30px;
  left: 50%;
  display: flex;
  align-items: center;
}

.bar {
  position: relative;
  background: #fff;
  width: 3px;
  margin: 0px 1px;
  animation: sound 0ms -800ms linear infinite alternate;
  border-radius: 20px;
}


@keyframes sound {
  0% {
    height: 3px;
  }

  100% {
    height: 18px;
  }
}

.bar:nth-child(1) {
  animation-duration: 474ms;
}

.bar:nth-child(2) {
  animation-duration: 433ms;
}

.bar:nth-child(3) {
  animation-duration: 407ms;
}

.bar:nth-child(4) {
  animation-duration: 458ms;
}

.bar:nth-child(5) {
  animation-duration: 400ms;
}