/* 音乐播放器容器样式 */
.music-player-container {
    position: relative;
    z-index: 1000;
    /* 增加容器范围以确保放大后内容完整显示 */
    width: 240px; /* 足够容纳放大4倍后的60x60元素 */
    height: 240px;
    pointer-events: none; /* 确保容器不影响其他元素的交互 */
}

/* 专辑封面样式 - 圆形播放器 */
.album-cover {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    bottom: 0;
    left: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-color: #333;
    transform-origin: left bottom; /* 设置变换轴心为左下角 */
    pointer-events: auto; /* 确保播放器本身可以交互 */
    z-index: 1001; /* 确保播放器在最上层 */
}

/* 鼠标悬浮时放大400%，以左下角为轴心 */
.album-cover:hover {
    transform: scale(4);
    z-index: 1001;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 播放状态指示器 - 半透明圆形面板 */
.play-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 鼠标悬浮时显示半透明面板 */
.album-cover:hover .play-indicator {
    opacity: 1;
}

/* 播放状态文字样式 */
.play-text {
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* 定义旋转动画 */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 播放中状态样式 */
.album-cover.playing img {
    animation: rotate 20s linear infinite;
}

/* 响应式微调 */
@media (max-width: 768px) {
    .music-player-container {
        bottom: 10px;
        left: 10px;
    }
    
    .album-cover {
        width: 50px;
        height: 50px;
    }
}