/* 播放器大小 */


.iconfont-music {

    font-size: 12px;
}

.music__list_content {
letter-spacing: normal;
    list-style: none;
    padding: 0;
    margin: 0;
}

.music-player__main,
.music-player__list {
text-align:left;
    background-color: black;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgb(0 0 0 / 50%);
}

/* 播放器位置 */
.music-player {
    transition: all .1s;
    position: fixed;
    top: 50%;
    left: 0;
    border-radius: 0px 5px 5px 0px;
    background-color: #1d1d1d;
    transform: translateY(-50%);
    transition: all linear .1s;
    z-index: 999;
}

/* 歌曲列表 */

.music-player__list {

    overflow-y: scroll;
    max-height: 220px;
    display: none;
    width: 240px;
    border-top: 1px solid #333;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.music__list__item {
    padding-left: 25px;
    color: #ccc;
    position: relative;
    margin-bottom: 10px;
    font-size: 12px;
    cursor: pointer;
}

.music__list__item:last-of-type {
    margin: 0;
}

.music__list__item.play {
    color: #fff;
}

.music__list__item.play:before {
    font-family: 'iconfont-music';
    content: "\e87a";
    position: absolute;
    left: 0px;
}


/* 播放器主体 */
.music-player__main {
    width: 240px;
    padding: 10px;
    position: relative;
    overflow: hidden;
}


/* 唱片指针播放状态 加play类名 */
.music-player__pointer.play {
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
}

/* 唱片歌曲图片 */
.music-player__image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    overflow: hidden;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}


/* 播放器控件 */

.music-player__controls {}

/* 歌曲信息 */
.music__info {
    height: 35px;
    display: flex;
    color: #ccc;
    align-items: center;
}

.music__info .music__info--title {
    color: #fff;
    flex: 1;
    font-size: 12px;
    max-height: 36px;
    overflow: hidden;
    display: -webkit-box;
    white-space: pre-wrap;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

}



.music__info .music__info--singer {
    color: #ccc;
    font-size: 10px;
}

.music-singer {
    display: flex;
    margin-top: 5px;
    justify-content: space-between;
    color: #fff;
    font-size: 10px;
}

/* 控件 */

.player-control {
    width: 100%;
}

.player-control__content {
    margin-top: 5px;
    margin-bottom: 5px;
    overflow: hidden;
}

/* 播放暂停按钮 */
.player-control__btns {
    overflow: hidden;
}

.player-control__btn {
    margin: 0 5px;
    font-weight: bolder;
    color: #fff;
    cursor: pointer;
}

.player-control__volume {
    overflow: hidden;
}

.control__volume--progress {
    float: left;
    width: 50px;
    position: relative;
}

.player__song--timeProgess {
    font-size: 12px;
    color: #fff;
    margin-top: 5px;
    padding: 0px 3px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.music-player .nowTime {
    float: left;
}

.music-player .totalTime {
    float: right;
}

.music-player .progress {
    background: rgba(0, 0, 0, 0.3);
    height: 5px;
    -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) inset;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) inset;
    overflow: hidden;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    margin-bottom: 0;
}

.music-player .progress .back {
    width: 0px;
    height: 100%;
    border-radius: 2px;
    background: rgb(12, 182, 212);
}

.music-player .progress .pointer {
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    -webkit-transition: opacity 0.3s;
    -o-transition: opacity 0.3s;
    transition: opacity 0.3s;
    position: absolute;
    top: -1px;
    left: 0;
}

.music-player .progress:hover .pointer {
    opacity: 1;
}


/* 播放 画片 动画 */

@-webkit-keyframes disc {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes disc {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.music-player__image.play {
    -webkit-animation: disc 5s linear 0s infinite;
    animation: disc 5s linear 0s infinite;
}


/*  播放进度  */

.player__song--progress {
    width: 100%;
    margin-top: 5px;
}

.player-box .flex {
    display: flex;
    flex-wrap: wrap;
justify-content: space-between;
}

.player-box .w50 {
    display: flex;
    width: 50%;
    justify-content: space-between;
    align-items: center;
    width: 80px;
}

.player-box .list {
    padding: 5px;
    cursor: pointer;
}

.player-box {
    transition: all .1s;
    position: relative;
}

.control-show-btn {
    position: absolute;
    bottom: 0;
    top: 0;
    right: -15px;
    height: 60%;
    width: 15px;
    margin: auto;
    background: #1d1d1d;
    border-radius: 0px 10px 10px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.control-show-btn .you-btn {
    width: 6px;
    height: 12px;
    background: url('./you.png')no-repeat;
}


.control-show-btn.zuo .you-btn {
    transform: rotateY(180deg);
}

.player-box .flex.single {
    justify-content: flex-end;
}

.music-player.single {
    transform: translateX(-80px);
}

.music-player__list::-webkit-scrollbar {
    /*滚动条整体样式*/
    width: 5px;
    /*高宽分别对应横竖滚动条的尺寸*/
    height: 1px;
}

.music-player__list::-webkit-scrollbar-thumb {
    /*滚动条里面小方块*/
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    background: #ffffff;
}

.music-player__list::-webkit-scrollbar-track {
    /*滚动条里面轨道*/
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 0;
    background: #1d1d1d;
}