/* ===== 浮窗播放器 ===== */
.floating-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    cursor: pointer;
}

/* 黑胶唱片 */
.vinyl-disc {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #2a2a2a, #0a0a0a);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 2px 5px rgba(255, 255, 255, 0.1),
        inset 0 -2px 5px rgba(0, 0, 0, 0.8);
    
    /* 黑胶纹理 */
    background-image: 
        radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.3) 21%, rgba(0, 0, 0, 0.3) 34%, transparent 35%, transparent),
        radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.3) 21%, rgba(0, 0, 0, 0.3) 34%, transparent 35%, transparent);
    background-size: 50px 50px, 80px 80px;
    background-position: 0 0, 25px 25px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

/* 播放时旋转 */
.vinyl-disc.playing {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 唱片中心 */
.vinyl-center {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #444, #111);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.6),
        inset 0 1px 3px rgba(255, 255, 255, 0.1);
}

/* 鼠标悬停效果 */
.vinyl-disc:hover {
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.6),
        inset 0 2px 5px rgba(255, 255, 255, 0.1),
        inset 0 -2px 5px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(102, 126, 234, 0.4);
    transform: scale(1.05);
}

.vinyl-disc:active {
    transform: scale(0.95);
}

/* 播放指示器 */
.floating-player::after {
    content: '';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-player.playing::after {
    animation: pulse 1.5s ease-in-out infinite;
    opacity: 1;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(102, 126, 234, 0.8);
    }
    50% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 1);
    }
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .floating-player {
        bottom: 20px;
        right: 20px;
    }

    .vinyl-disc {
        width: 100px;
        height: 100px;
    }

    .vinyl-center {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .floating-player {
        bottom: 15px;
        right: 15px;
    }

    .vinyl-disc {
        width: 80px;
        height: 80px;
    }

    .vinyl-center {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}
