/**
 * music-player.css
 * 复古极简音乐播放器样式
 */

.retro-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 280px;
    height: 48px;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

/* 播放状态展示区 (类似LCD小屏幕) */
.player-lcd {
    flex: 1;
    height: 28px;
    background: rgba(0, 0, 0, 0.3);
    margin-right: 12px;
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
    border: 0.5px solid rgba(255, 255, 255, 0.05);
}

.player-info {
    white-space: nowrap;
    padding: 0 8px;
    font-size: 11px;
    color: #ddd;
    letter-spacing: 0.05em;
    font-weight: 300;
}

/* 跑马灯动画 */
.marquee {
    display: inline-block;
    animation: marquee 10s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 控制按钮组 */
.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.control-btn:hover {
    color: #fff;
}

.control-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* 播放按钮特殊颜色 */
.play-btn {
    color: var(--red, #ff3b30);
}

/* 进度条 (细线) */
.player-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1.5px;
    background: var(--red, #ff3b30);
    width: 0%;
    transition: width 0.1s linear;
}

/* 状态指示灯 */
.status-led {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #333;
    margin-right: 8px;
    transition: background 0.3s ease;
}

.status-led.active {
    background: var(--red, #ff3b30);
    box-shadow: 0 0 5px var(--red, #ff3b30);
}

/* 移动端适配 */
@media (max-width: 480px) {
    .retro-player {
        bottom: 20px;
        right: 20px;
        width: calc(100% - 40px);
        max-width: 320px;
    }
}