/* 小工具播放器容器 */
.wcmm-widget-player {
    background: var(--main-bg, #fff);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* 封面区域 */
.wcmm-widget-cover {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

#wcmm-widget-cover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wcmm-widget-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wcmm-widget-play-button i {
    font-size: 20px;
    color: var(--control-color, #1db954);
    margin-left: 3px;
}

.wcmm-widget-cover:hover .wcmm-widget-play-button {
    opacity: 1;
}

.wcmm-widget-cover:hover #wcmm-widget-cover-img {
    transform: scale(1.05);
}

/* 信息区域 */
.wcmm-widget-info {
    margin-bottom: 15px;
}

.wcmm-widget-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--music-title-color, #333);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wcmm-widget-artist {
    font-size: 14px;
    color: var(--minor-color, #666);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.wcmm-widget-prev,
.wcmm-widget-next {
    background: none;
    border: none;
    color: var(--minor-color, #666);
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}

.wcmm-widget-prev:hover,
.wcmm-widget-next:hover {
    color: var(--control-color, #1db954);
    transform: scale(1.1);
}

.wcmm-widget-progress {
    flex: 1;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.wcmm-widget-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--control-color, #1db954);
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* 深色模式适配 */
.dark-theme .wcmm-widget-player {
    background: var(--dark-bg, #1c1c1c);
}

.dark-theme .wcmm-widget-cover {
    background: #2f2f2f;
}

.dark-theme .wcmm-widget-play-button {
    background: rgba(0, 0, 0, 0.8);
}

.dark-theme .wcmm-widget-play-button i {
    color: #fff;
}

.dark-theme .wcmm-widget-title {
    color: var(--dark-color, #fff);
}

.dark-theme .wcmm-widget-artist {
    color: var(--dark-minor-color, #999);
}

.dark-theme .wcmm-widget-prev,
.dark-theme .wcmm-widget-next {
    color: var(--dark-minor-color, #999);
}

.dark-theme .wcmm-widget-progress {
    background: rgba(255, 255, 255, 0.1);
}

/* 播放状态样式 */
.wcmm-widget-player.playing .wcmm-widget-play-button i {
    content: '\f04c';
}

/* 响应式适配 */
@media (max-width: 768px) {
    .wcmm-widget-player {
        padding: 10px;
    }
    
    .wcmm-widget-play-button {
        opacity: 1;
        width: 40px;
        height: 40px;
    }
    
    .wcmm-widget-play-button i {
        font-size: 16px;
    }
} 