@import "var.scss";
@import "global.scss";

.play-bar {
  position: fixed;
  z-index: 100;
  bottom: 0;
  width: 100%;
  transition: all 0.5s;

  .fold {
    position: absolute;
    bottom: $play-bar-height + 10px;
    left: 20px;
    cursor: pointer;
  }

  .progress {
    position: absolute;
    margin-top: -10px;
  }

  .control-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: $play-bar-height;
    width: 100%;
    background-color: $theme-play-bar-color;

    .song-ctr {
      position: relative;
      margin: auto;
      flex-wrap: nowrap;

      svg {
        width: 5rem;
        cursor: pointer;
      }
    }

    .info-box {
      .song-bar-img {
        width: calc($play-bar-height - 15px);
        height: calc($play-bar-height - 15px);
        border-radius: 4px;
        margin-right: 10px;
        cursor: pointer;
      }
      .song-info {
        font-size: 14px;
      }
      .time-info {
        font-size: 12px;
        color: $color-grey;
      }
    }

    .song-edit {
      width: 30%;
      justify-content: flex-end;
    }
  }
}

.turn {
  transform: rotate(180deg);
}

.show {
  bottom: -($play-bar-height) + 5px;
}

.icon {
  @include icon(1.1em, $color-black);
}

.active.icon {
  color: $color-red;
}

@media screen and (min-width: $sm) {
  .info-box {
    width: 30%;
    min-width: 200px;
    margin-left: 30px;
  }
  .song-ctr,
  .info-box,
  .song-edit {
    display: flex;
    align-items: center;
  }
}

@media screen and (max-width: $sm) {
  .info-box {
    display: flex;
    flex-direction: row;
    width: 70%;
    margin-left: 10px;
  }

  .yin-play-show {
    display: none;
  }
}
