/* 
author: gitguanqi,
date: 2022-09-24,
version: 0.0.1
*/
body {
    margin: 0;
    padding: 0;
}
ul,li {
    margin: 0;
    padding: 0;
    list-style: none;
    border: none;
}

button {
    outline: none;
    border: none;
    background: none;
}

.overflow {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scroll-box::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.scroll-box::-webkit-scrollbar-thumb {
    border-radius: 20px;
    -webkit-box-shadow: inset 0 0 5px #d32d2d;
    box-shadow: inset 0 0 5px #d32d2d;
    background: #d32d2d;
}

.scroll-box::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 5px white;
    box-shadow: inset 0 0 5px white;
    border-radius: 8px;
    background: white;
}

@keyframes donut-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.xqmusic {
    max-width: 318px;
    width: 100%;
}

.xqmusic.slide {
    position: fixed;
    bottom: 25px;
    right: -252px;
    transition: all .5s;
}

.xqmusic.slide:hover {
    right: 0;
}

.xqmusic.move {
    position: absolute;
}

.xqmusic.move:hover {
    cursor: move;
}

.xqmusic-top {
    padding: 10px 0;
    width: 100%;
    border: 1px solid #ccc;
    border-bottom: none;
}

.xqmusic-top.active {
    padding: 0;
}

.xqmusic-menu-ls,
.xqmusic-lyric-ls {
    display: none;
    box-sizing: border-box;
    padding: 10px 5px;
    width: 100%;
    height: 100%;
    max-height: 200px;
    overflow-x: hidden;
    overflow-y: auto;
    transition: all .5s;
}

.xqmusic-menu-ls li {
    box-sizing: border-box;
    padding: 5px 10px;
    height: 35px;
    font-size: 14px;
    border-bottom: 1px dashed #ccc;
}

.xqmusic-menu-ls li.active {
    color: #d32d2d;
}

.xqmusic-menu-ls li.active button {
    border-color: #d32d2d;
}

.xqmusic-menu-ls li.active i {
    color: #d32d2d;
}

.xqmusic-menu-ls li span {
    display: inline-block;
    width: 85%;
    height: 25px;
    line-height: 25px;
}

.xqmusic-menu-ls li button {
    position: relative;
    top: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #333;
    cursor: pointer;
}

.xqmusic-menu-ls li button i {
    position: relative;
    left: -3px;
    font-size: 12px;
}

.xqmusic-menu-ls li button.active {
    display: inline-block;
}

.xqmusic-lyric-ls li {
    font-size: 14px;
    line-height: 2;
    color: #333;
    text-align: center;
}

.xqmusic-lyric-ls li.active {
    color: #d32d2d;
    font-weight: bold;
}

.xqmusic-bottom {
    display: flex;
    align-items: center;
    width: 100%;
    height: 65px;
    overflow: hidden;
    border: 1px solid #ccc;
}

/* 歌曲封面图 */
.xqmusic-img {
    width: 65px;
    height: 100%;
    background: #333;
    overflow: hidden;
}

#xqmusic-cover-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #ccc;
    background-size: cover;
    animation: donut-spin 10s linear infinite;
    animation-play-state: paused;
    overflow: hidden;
}

#xqmusic-cover-img.active {
    animation-play-state: running;
}

.xqmusic-main {
    flex: 1;
    height: 100%;
    box-sizing: border-box;
    padding: 2px;
}

/* 歌曲标题 */
.xqmusic-title {
    max-width: 180px;
    box-sizing: border-box;
    padding-left: 5px;
    font-size: 14px;
}

.xqmusic-title small {
    display: inline-block;
    width: auto;
    max-width: 100%;
}

/* 歌曲进度条 */
.xqmusic-progress {
    margin: 2px 0;
    display: flex;
    align-items: center;
    text-align: center;
    font-size: 12px;
}

.xqmusic-progress small {
    width: 40px;
}

.xqmusic-progress span {
    position: relative;
    flex: 1;
    height: 3px;
    border-radius: 5px;
    background: #ccc;
    overflow: hidden;
}

.xqmusic-progress span i {
    position: absolute;
    left: 0;
    top: 0;
    display: inline-block;
    height: 100%;
    background-color: #d32d2d;
    transition: all .5s;
}

/* 歌曲操作按钮 */
.xqmusic-btns {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.xqmusic-btns button {
    cursor: pointer;
}

.xqmusic-btns button i {
    font-size: 16px;
    color: #333;
}

.xqmusic-btns button#xqmusic-muted,
.xqmusic-btns button#xqmusic-volumn,
.xqmusic-btns button#xqmusic-play,
.xqmusic-btns button#xqmusic-pause {
    display: none;
}

.xqmusic-btns button#xqmusic-muted.active,
.xqmusic-btns button#xqmusic-volumn.active,
.xqmusic-btns button#xqmusic-play.active,
.xqmusic-btns button#xqmusic-pause.active {
    display: block;
}
