@charset "UTF-8";
/* player.css - 底部常驻播放条
 *
 * 这条是 fixed 在最底部的, 所有页面共用一份。
 * body 要留出等高内边距, 否则页面最后一行会被它盖住。
 *
 * 留白就取播放条的高度, 不留富余 —— 数值要和下面 .player-bar 的 height 一致,
 * 改播放条高度时这两个数(以及底部移动端那条)要一起改。
 * 注意: 这段留白只有在 base.css:body 用 min-height 时才真的占位。
 */

body { padding-bottom: 72px; }

.player-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 72px;
    background: #1a2a3a;
    border-top: 1px solid #2c3e50;
    color: #fff;
    z-index: 900;
    font-size: 13px;
}
.player-bar .pb-inner {
    display: table;
    width: 100%;
    height: 72px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}
.pb-cell { display: table-cell; vertical-align: middle; }

/* ---------- 左: 当前歌 ---------- */
.pb-info { width: 26%; white-space: nowrap; overflow: hidden; }
.pb-info .pb-cover {
    display: inline-block;
    width: 48px; height: 48px;
    vertical-align: middle;
    margin-right: 10px;
    font-size: 18px;
}
.pb-info .pb-text {
    display: inline-block;
    vertical-align: middle;
    max-width: 60%;
    line-height: 1.5;
    white-space: normal;
}
.pb-info .pb-name {
    display: block;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pb-info .pb-name a { color: #fff; }
.pb-info .pb-name a:hover { color: #a8d6c1; text-decoration: none; }
.pb-info .pb-artist { display: block; color: #8fa3b3; font-size: 12px; }
.pb-info .pb-artist a { color: #8fa3b3; }
.pb-info .pb-artist a:hover { color: #a8d6c1; text-decoration: none; }
.pb-info .pb-fav {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    color: #8fa3b3;
    font-size: 16px;
}
.pb-info .pb-fav:hover { color: #a8d6c1; text-decoration: none; }
/* 已收藏: 红心(和歌曲列表里的 .fav.on 一个红) */
.pb-info .pb-fav.on { color: #e74c3c; }

/* ---------- 中: 控制 + 进度 ---------- */
.pb-center { width: 48%; padding: 0 20px; }
.pb-btns { text-align: center; height: 30px; }
.pb-btns a {
    display: inline-block;
    width: 32px; height: 32px; line-height: 32px;
    color: #ccd6de;
    font-size: 15px;
    text-align: center;
    vertical-align: middle;
    margin: 0 3px;
}
.pb-btns a:hover { color: #fff; text-decoration: none; }
.pb-btns a.play-main {
    width: 36px; height: 36px; line-height: 36px;
    background: #a8d6c1;
    color: #2c4a3e;
    border-radius: 50%;
    font-size: 14px;
}
.pb-btns a.play-main:hover { background: #8fc7ad; }

/* 进度条这一行用 flex, 不要用 table。
 * 用 table 时 .track 是 display:table-cell, 单元格永远撑满整行的高度, 写 height 是没用的:
 * 行高由 .time 的文字决定(12px × 1.6 = 19.2px), 于是这条"3px 的进度条"实际刷出 19.2px
 * 的深色块, 看着又厚又压住上面的播放按钮。flex 下 height 才真的说了算。 */
.pb-progress {
    display: flex;
    align-items: center;
    width: 100%;
    /* 6px 而不是 4px: 播放按钮比 .pb-btns 那行(30px)高 36px, 会往下溢出 3px,
     * 留 6px 让进度条的点击区正好从按钮底边下面开始, 底部那几像素不会被抢走 */
    margin-top: 6px;
}
.pb-progress .time {
    flex: 0 0 46px;
    color: #8fa3b3;
    font-size: 12px;
    line-height: 1;
    text-align: center;
}
.pb-progress .track {
    flex: 1 1 auto;
    position: relative;
    height: 3px;              /* 视觉厚度就是它 */
    padding: 6px 0;           /* 上下各 6px 是点击区, 不画颜色 —— 3px 的细条太难点中 */
    box-sizing: content-box;
    background: #3a4a5e;
    background-clip: content-box;   /* 所以深色只画在中间那 3px 上 */
    cursor: pointer;
}
.pb-progress .track .filled {
    position: absolute; left: 0; top: 6px;   /* 6px = 上面说的 padding */
    height: 3px;
    width: 0;
    background: #a8d6c1;
}
.pb-progress .track .handle {
    position: absolute; top: 50%; left: 0;
    width: 10px; height: 10px;
    margin-top: -5px; margin-left: -5px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.15s;
}
.pb-progress .track:hover .handle { opacity: 1; }

/* ---------- 右: 功能 ---------- */
.pb-actions { width: 26%; text-align: right; white-space: nowrap; }
.pb-actions a {
    display: inline-block;
    width: 30px; height: 30px; line-height: 30px;
    color: #8fa3b3;
    font-size: 15px;
    text-align: center;
    vertical-align: middle;
}
.pb-actions a:hover { color: #a8d6c1; text-decoration: none; }
/* 下载/转发是 SVG 图标, 要靠 vertical-align 在 30px 的行高里居中 */
.pb-actions a svg { display: inline-block; vertical-align: middle; }
.pb-actions a#pb-rate { width: 38px; font-size: 12px; }
.pb-actions .vol {
    display: inline-block;
    width: 64px; height: 4px;
    background: #3a4a5e;
    vertical-align: middle;
    margin: 0 6px;
    position: relative;
    cursor: pointer;
}
.pb-actions .vol .v-filled {
    position: absolute; left: 0; top: 0;
    height: 100%; width: 70%;
    background: #a8d6c1;
}

/* ---------- 播放队列浮层 ---------- */
.pb-queue {
    position: fixed;
    right: 16px; bottom: 80px;
    width: 380px;
    max-height: 50vh;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.18);
    z-index: 901;
    display: none;
    overflow: hidden;
}
.pb-queue.show { display: block; }
.pb-queue .q-hd {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    color: #333;
}
.pb-queue .q-hd .q-clear {
    float: right;
    color: #999;
    font-weight: normal;
    cursor: pointer;
    font-size: 12px;
}
.pb-queue .q-hd .q-clear:hover { color: #e74c3c; }
.pb-queue .q-bd { max-height: calc(50vh - 42px); overflow-y: auto; }
.pb-queue .q-row {
    display: table;
    width: 100%;
    padding: 8px 14px;
    box-sizing: border-box;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    font-size: 13px;
}
.pb-queue .q-row:hover { background: #f3faf6; }
.pb-queue .q-row.cur { color: #338066; background: #eff8f3; }
.pb-queue .q-row > span { display: table-cell; vertical-align: middle; }
.pb-queue .q-i { width: 24px; color: #999; }
.pb-queue .q-n { font-weight: bold; }
.pb-queue .q-a { width: 100px; color: #999; font-size: 12px; }
.pb-queue .q-x { width: 20px; text-align: right; color: #ccc; }
.pb-queue .q-x:hover { color: #e74c3c; }

/* ============ 移动端: 播放条收缩 ============ */
@media screen and (max-width: 900px) {
    .pb-info { width: 40%; }
    .pb-center { width: 60%; padding: 0 8px; }
    .pb-actions { display: none; }
    .pb-queue { width: auto; left: 8px; right: 8px; }
}
@media screen and (max-width: 560px) {
    body { padding-bottom: 64px; }   /* = 下面收窄后的播放条高度 */
    .player-bar { height: 64px; }
    .player-bar .pb-inner { height: 64px; }
    .pb-info .pb-cover { width: 40px; height: 40px; }
    .pb-info .pb-fav { display: none; }
    /* 上面 .time 是 flex 项了, 定宽要用 flex-basis, 写 width 不起作用 */
    .pb-progress .time { flex: 0 0 38px; font-size: 11px; }
    .pb-btns { height: 26px; }
    .pb-btns a { width: 28px; height: 28px; line-height: 28px; font-size: 13px; }
    .pb-btns a.play-main { width: 32px; height: 32px; line-height: 32px; font-size: 12px; }
}
