/* ============================================================
 * bgm.css —— 背景音乐播放器样式
 * 悬浮玻璃风 · 左下角 · 可拖动 · 移动端自适应
 * ============================================================ */

.bgm-player {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.62);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255,255,255,.85);
    box-shadow: 0 8px 24px rgba(110,155,215,.22),
                inset 0 1px 0 rgba(255,255,255,.95);
    font-size: 12.5px;
    color: #5c7699;
    max-width: 260px;
    transition: box-shadow .18s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;

    /* 拖动相关 */
    cursor: move;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.bgm-player:hover {
    box-shadow: 0 12px 32px rgba(110,155,215,.28),
                inset 0 1px 0 rgba(255,255,255,.98);
}

/* 拖动把手 */
.bgm-drag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 24px;
    flex: none;
    color: #b0c3da;
    font-size: 11px;
    letter-spacing: -3px;
    padding-left: 4px;
    line-height: 1;
    cursor: move;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    transition: color .15s;
}
.bgm-drag:hover { color: #3b82f6; }

/* 播放按钮 */
.bgm-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg,#63a4ff,#3b82f6);
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(59,130,246,.35);
    flex: none;
    padding: 0;
    line-height: 1;
    font-family: inherit;
    transition: filter .15s;
    touch-action: auto;
}
.bgm-btn:hover { filter: brightness(1.06); }

/* 文本标签 */
.bgm-label {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
    cursor: move;
}
.bgm-title {
    font-weight: 600;
    color: #1e3552;
    font-size: 13px;
    white-space: nowrap;
}
.bgm-hint {
    color: #8ba3bd;
    font-size: 11.5px;
    white-space: nowrap;
}

/* 网易云 iframe */
.bgm-iframe {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    max-width: 100%;
    min-width: 220px;
    border: none;
    cursor: auto;
    touch-action: auto;
}

/* ============================================================
   移动端适配
   ============================================================ */
@media (max-width: 720px) {
    .bgm-player {
        left: 10px;
        bottom: 10px;
        padding: 6px 10px 6px 4px;
        gap: 8px;
        max-width: calc(100% - 20px);
        font-size: 12px;
    }
    .bgm-drag {
        width: 16px;
        height: 26px;
        font-size: 13px;
        padding-left: 4px;
    }
    .bgm-btn { width: 32px; height: 32px; font-size: 12px; }
    .bgm-title { font-size: 12.5px; }
    .bgm-hint { font-size: 11px; }
    .bgm-iframe { min-width: 180px; height: 66px; }
}