/* 全局基础重置，避免干扰网站原有样式 */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        /*body {
            仅用于演示：给页面一个深色背景，让半透明播放器更明显 
            background: linear-gradient(145deg, #1a2f3f 0%, #16222e 100%);
            min-height: 100vh;
            font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
            /* 为了看清右下角固定播放器，加一点简单文本 
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(255,255,255,0.7);
        }
        

        

        /* ---------- 背景音乐播放器样式 ---------- */
        .bg-music-player {
            position: fixed;
            bottom: 24px;
            right: 24px;
            width: 320px;
            background: rgba(20, 30, 40, 0.65);      /* 深色半透明基底 */
            backdrop-filter: blur(16px) saturate(180%); /* 毛玻璃效果 */
            -webkit-backdrop-filter: blur(16px) saturate(180%);
            border-radius: 24px;
            padding: 18px 20px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
            color: white;
            transition: opacity 0.2s, transform 0.2s;
            z-index: 9999;          /* 确保位于其他内容上方 */
            font-size: 14px;
            line-height: 1.4;
        }

        /* 播放器头部：歌曲名 + 播放按钮 */
        .player-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 14px;
        }
        .song-title {
            font-weight: 500;
            font-size: 1.1rem;
            letter-spacing: 0.3px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 200px;
            color: rgba(255,255,255,0.9);
            text-shadow: 0 2px 5px rgba(0,0,0,0.3);
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .song-title i {
            font-size: 0.9rem;
            color: #aaccff;
        }

        /* 播放/暂停按钮 */
        .play-pause-btn {
            background: rgba(255,255,255,0.15);
            border: none;
            border-radius: 50%;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: white;
            font-size: 1.3rem;
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255,255,255,0.25);
            transition: background 0.2s, transform 0.1s;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        }
        .play-pause-btn:hover {
            background: rgba(255,255,255,0.3);
            transform: scale(1.02);
        }
        .play-pause-btn:active {
            transform: scale(0.98);
        }

        /* 进度条区域 */
        .progress-area {
            display: flex;
            flex-direction: column;
            gap: 6px;
            margin-bottom: 16px;
        }
        /* 时间显示与滑块 */
        .time-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: rgba(255,255,255,0.8);
            font-size: 0.8rem;
            letter-spacing: 0.3px;
            text-shadow: 0 1px 2px black;
        }
        .time-display {
            background: rgba(0,0,0,0.3);
            padding: 4px 10px;
            border-radius: 30px;
            border: 1px solid rgba(255,255,255,0.15);
        }
        /* 自定义进度条 (range) */
        .progress-slider {
            width: 100%;
            height: 6px;
            background: rgba(0,0,0,0.3);
            border-radius: 30px;
            overflow: hidden;
            cursor: pointer;
            accent-color: #6ea8fe;  /* 主题色 */
        }
        .progress-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: white;
            box-shadow: 0 0 8px #6ea8fe;
            border: 2px solid #6ea8fe;
            cursor: pointer;
            margin-top: -4px; /* 针对chrome轨道对齐 */
        }
        .progress-slider::-moz-range-thumb {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: white;
            border: 2px solid #6ea8fe;
            cursor: pointer;
        }
        .progress-slider::-webkit-slider-runnable-track {
            width: 100%;
            height: 6px;
            background: linear-gradient(to right, #6ea8fe, #b3d0ff);
            border-radius: 30px;
        }

        /* 音量控制区域 */
        .volume-wrapper {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 8px;
            background: rgba(0,0,0,0.2);
            padding: 6px 10px;
            border-radius: 40px;
            border: 1px solid rgba(255,255,255,0.1);
        }
        .volume-btn {
            background: transparent;
            border: none;
            color: white;
            font-size: 1.3rem;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            border-radius: 50%;
            transition: 0.2s;
        }
        .volume-btn:hover {
            background: rgba(255,255,255,0.15);
        }
        .volume-slider {
            flex: 1;
            height: 5px;
            accent-color: #aaccff;
            cursor: pointer;
        }

        /* 加载失败或错误提示 (会显示在标题旁) */
        .error-badge {
            color: #ffa69e;
            font-size: 0.75rem;
            background: rgba(180, 60, 60, 0.4);
            padding: 2px 8px;
            border-radius: 30px;
            margin-left: 8px;
            white-space: nowrap;
            border: 1px solid #ff7b6b40;
        }

        /* 音频原生元素隐藏（我们完全用自定义控件） */
        #bg-music {
            display: none;
        }