/* 音乐播放器容器 */
#draggable-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    background: #3344AA10;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    padding: 12px;
    font-family: sans-serif;
    border: 1px solid #ddd;
    user-select: none; /* 防止拖动时选中文字 */
    touch-action: none; /* 防止移动端滚动屏幕 */
}

/* 顶部区域：拖动柄和歌曲信息 */
.player-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: move; /* 鼠标变成移动图标 */
}

.drag-icon {
    font-size: 18px;
    margin-right: 8px;
}

/* 滚动文字容器 */
.song-info-mask {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

/* 滚动文字动画 */
.song-title {
    display: inline-block;
    font-size: 14px;
    color: #333;
    font-weight: bold;
    padding-left: 100%; /* 初始位置在右侧外面 */
    animation: scroll-text 8s linear infinite;
}

@keyframes scroll-text {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* 控制区域 */
.player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 播放按钮 */
#play-btn {
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* 进度条 */
#seek-bar {
    flex: 1;
    cursor: pointer;
    accent-color: #333; /* 进度条颜色 */
}

/* 时间显示 */
#time-display {
    font-size: 11px;
    color: #666;
    min-width: 65px;
    text-align: right;
}

/* 循环按钮 */
#loop-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999 !important; /* 默认灰色：未开启 */
    padding: 0 5px;
    line-height: 1;
    transition: all 0.2s;
}

#loop-btn:hover {
    color: #666;
}

/* 激活状态（开启循环时变色） */
#loop-btn.active-loop {
    color: #007bff; /* 蓝色高亮，或者你可以改成 #333 黑色 */
    text-shadow: 0 0 5px rgba(0, 123, 255, 0.7);
}

/* 稍微调整一下原有控制栏，确保放得下 */
.player-controls {
    display: flex;
    align-items: center;
    gap: 8px; /* 间距稍微调小一点，防止挤 */
}