/* 文件名: dock.css */

/* --- 底部悬浮 Dock 栏设计 --- */
.dock-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(32, 32, 32, 0.85);
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: 50px;
    display: flex;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* 避免选中文字 */
    user-select: none;
}

/* 单个图标容器 */
.dock-item {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.7);
}

/* 图标 SVG 样式 */
.dock-item svg {
    width: 20px;
    height: 20px;
}

/* 鼠标悬停效果 */
.dock-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-2px);
}

/* 激活状态 */
.dock-item.active {
    color: #f7f7f7;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* 音乐播放时的旋转动画 */
.dock-item.playing svg {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Tooltip 提示气泡设计 --- */
.tooltip {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -4px;
    border-width: 4px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

.dock-item:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
    bottom: 55px;
}

/* --- 新增：音乐控制组样式 --- */

/* 把切歌按钮和播放按钮包在一起 */
.music-group {
    display: flex;
    align-items: center;
    gap: 5px; /* 按钮之间的紧凑间距 */
    background-color: rgba(255, 255, 255, 0.1); /* 稍微深一点的背景区分 */
    padding: 0 5px;
    border-radius: 30px;
}

/* 迷你按钮 (上一首/下一首) */
.dock-mini-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transition: all 0.2s;
}

.dock-mini-btn:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
}

.dock-mini-btn svg {
    width: 14px;
    height: 14px;
}