:root {
  --primary-color: #ec1f55;
  --text-color: #333;
  --background-color: #000000;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: inherit;
}

body {
  background-color: var(--background-color);
}

html {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

.player {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

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

.player.playing .icon-pause {
  display: inline-block;
}

.player.playing .icon-play {
  display: none;
}

.dashboard {
  padding: 16px 16px 14px;
  background-color: var(--background-color);
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 480px;
  border: 1px solid var(--primary-color);
  z-index: 9;
}

/* HEADER */
header {
  text-align: center;
  margin-bottom: 10px;
}

header h4 {
  color: var(--primary-color);
  font-size: 12px;
}

header h2 {
  color: #ffffff;
  font-size: 20px;
  text-shadow: 0 0 20px;
  animation: lighting 5s infinite linear;
}

@keyframes lighting {
  0%, 100%{
    opacity: .2;
  }
  50%{
    opacity: 1;
  }
  
}

/* CD */
.cd {
  display: flex;
  margin: auto;
  width: 200px;
}

.cd-thumb {
  width: 100%;
  padding-top: 100%;
  border-radius: 50%;
  background-color: #333;
  background-size: cover;
  margin: auto;
}

/* CONTROL */
.control {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 18px 0 18px 0;
}

.control .btn {
  color: #666;
  padding: 18px;
  font-size: 18px;
}

.control .btn.active {
  color: var(--primary-color);
}

.control .btn-toggle-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 24px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
}

.progress {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  background: #ffffff;
  outline: none;
  opacity: 0.7;
  -webkit-transition: 0.2s;
  transition: opacity 0.2s;
  border-radius: 3px;
}

.progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 6px;
  border-radius: 3px;
  background-color: var(--primary-color);
  border-color: transparent;
  cursor: pointer;
}

/* PLAYLIST */
.playlist {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-top: 290px;
  margin-bottom: 114px;
  padding: 12px;
  border-left: 1px solid var(--primary-color);
  border-right: 1px solid var(--primary-color);
}

.song {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  background-color: var(--background-color);
  padding: 8px 16px;
  border-radius: 5px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.song.active {
  background-color: var(--primary-color);
  position: sticky;
  top: 102px;
}

.song:active {
  opacity: 0.8;
}

.song.active .option,
.song.active .author,
.song.active .title {
  color: #fff;
}

.song.active .option{
  display: none;
}

.song.active .option2{
  display: flex;
}

.option2{
  display: none;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  z-index: 0;
}

.ball{
  width: 6px;
  height: 6px;
  margin: 0 3px;
  border-radius: 50%;
  background-color: white;
  -webkit-animation: bounce .5s alternate infinite;
  animation: bounce .5s alternate infinite;
}

.ball:nth-child(2){
  -webkit-animation-delay: .16s;
  animation-delay: .16s;
}

.ball:nth-child(3){
  -webkit-animation-delay: .32s;
  animation-delay: .32s;
}


.song .thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-size: cover;
  margin: 0 8px;
}

.song .body {
  flex: 1;
  padding: 0 16px;
}

.song .title {
  font-size: 18px;
  color: var(--text-color);
}

.song .author {
  font-size: 12px;
  color: #999;
}

.song .option {
  padding: 16px 8px;
  color: #999;
  font-size: 18px;
}


.bottom-control{
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  border-left: 1px solid var(--primary-color);
  border-right: 1px solid var(--primary-color);
  background-color: var(--background-color);
}

@-webkit-keyframes bounce {
  from {
    -webkit-transform: translateY(6px) scaleX(1.25);
    transform: translateY(6px) scaleX(1.25);
  }
  to {
    -webkit-transform: translateY(-6px) scale(1);
    transform: translateY(-6px) scale(1);
  }
}

@-webkit-keyframes RotateAndBreath {
  0% {
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
    -webkit-transform: rotate(0) scale(1);
            transform: rotate(0) scale(1);
  }
  50% {
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
    -webkit-transform: rotate(180deg) scale(1.4);
            transform: rotate(180deg) scale(1.4);
  }
  100% {
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
    -webkit-transform: rotate(360deg) scale(1);
            transform: rotate(360deg) scale(1);
  }
}
