.player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #2d2d2d;
    border-top: 1px solid #000;
    z-index: 1000;
}

.player-container {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.player-left {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 200px;
}

.player-cover {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    margin-right: 10px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.player-cover:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.player-cover:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    pointer-events: none;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.player-cover:hover img {
    transform: scale(1.1);
}

.player-cover .cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
    pointer-events: none;
}

.player-cover:hover .cover-placeholder {
    background: linear-gradient(135deg, #7a8ef0 0%, #8a5fb2 100%);
    transform: scale(1.1);
}

.player-cover .cover-placeholder .icon-music {
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    transition: all 0.3s ease;
}

.player-cover:hover .cover-placeholder .icon-music {
    color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.player-info {
    flex: 1;
    min-width: 0;
}

.song-name {
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 20px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.control-btn {
    width: 32px;
    height: 32px;
    background-color: transparent;
    color: #fff;
    font-size: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.8;
}

.control-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.control-btn.play {
    width: 40px;
    height: 40px;
    background-color: #c62f2f;
    font-size: 20px;
}

.control-btn.play:hover {
    background-color: #d43f3f;
}

.control-btn.play.paused .icon-play::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 14px;
    border: none;
    background: 
        linear-gradient(to right, 
            #fff 0%, #fff 35%, 
            transparent 35%, transparent 65%, 
            #fff 65%, #fff 100%);
    margin-left: 0;
}

.control-btn.play.paused .icon-play::after {
    display: none;
}

.player-progress {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.time-current,
.time-total {
    color: #999;
    font-size: 12px;
    min-width: 40px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background-color: #4a4a4a;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-filled {
    height: 100%;
    background-color: #c62f2f;
    border-radius: 2px;
    transition: width 0.3s;
}

.player-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
    min-width: 200px;
}

.player-btn {
    width: 28px;
    height: 28px;
    background-color: transparent;
    color: #999;
    font-size: 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.player-btn:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 音量按钮 - 使用背景图片，与歌曲详情页面一致 */
.player-btn.volume-btn {
    background-image: url("../images/player.png");
    background-repeat: no-repeat;
    background-position: 0 -144px;
    width: 26px;
    height: 21px;
    opacity: 0.8;
    text-indent: -9999px;
    overflow: hidden;
    font-size: 0;
    padding: 0;
    border: none;
    background-color: transparent;
    min-width: 26px;
    min-height: 21px;
}

.player-btn.volume-btn:hover {
    opacity: 1;
}

.player-btn.volume-btn.muted {
    background-position: 0 -182px;
}

.player-btn.volume-btn .icon-volume {
    display: none;
}

.volume-bar {
    width: 80px;
    height: 4px;
    background-color: #4a4a4a;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.volume-filled {
    height: 100%;
    background-color: #c62f2f;
    border-radius: 2px;
}

/* 图标样式 - 使用CSS绘制，避免Unicode字符兼容性问题 */
.icon-prev::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 10px 6px 0;
    border-color: transparent #fff transparent transparent;
    margin-right: 2px;
}

.icon-prev::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 10px 6px 0;
    border-color: transparent #fff transparent transparent;
    margin-left: -4px;
}

.icon-play::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent #fff;
    margin-left: 2px;
}

.control-btn.play.paused .icon-play::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 14px;
    border: none;
    background: 
        linear-gradient(to right, 
            #fff 0%, #fff 35%, 
            transparent 35%, transparent 65%, 
            #fff 65%, #fff 100%);
    margin-left: 0;
}

.control-btn.play.paused .icon-play::after {
    display: none;
}

.icon-next::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent #fff;
    margin-left: 2px;
}

.icon-next::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent #fff;
    margin-left: 2px;
}

/* 播放模式图标 */
.icon-mode-list::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 12px;
    background: #fff;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
}

.icon-mode-random::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 12px;
    background: #fff;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10.59 9.17L5.41 4 4 5.41l5.17 5.17 1.42-1.41zM14.5 4l2.04 2.04L4 18.59 5.41 20 17.96 7.46 20 9.5V4h-5.5zm.33 9.41l-1.41 1.41 3.13 3.13L14.5 20H20v-5.5l-2.04 2.04-3.13-3.13z'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
}

.icon-mode-single::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 12px;
    background: #fff;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4z'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
}

.mode-btn.active {
    color: #c62f2f;
}

.icon-lyrics::before {
    content: '词';
    font-size: 14px;
    color: inherit;
}

.icon-favorite::before {
    content: '♡';
    font-size: 16px;
    color: inherit;
}

.favorite-btn-player.favorited .icon-favorite::before {
    content: '♥';
    color: #c62f2f;
}

.icon-share {
    position: relative;
    width: 16px;
    height: 16px;
}

.icon-share::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 2px;
    position: absolute;
    top: 0;
    left: 0;
}

.icon-share::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 4px 4px 0;
    border-color: transparent currentColor transparent transparent;
    position: absolute;
    top: -2px;
    right: -2px;
}

/* 音量图标 - 使用背景图片，与歌曲详情页面一致 */
.player-btn.volume-btn {
    background-image: url("../images/player.png");
    background-repeat: no-repeat;
    background-position: 0 -144px;
    width: 26px;
    height: 21px;
    min-width: 26px;
    min-height: 21px;
    opacity: 0.8;
    text-indent: -9999px;
    overflow: hidden;
    font-size: 0;
    padding: 0;
    border: none;
    background-color: transparent;
    border-radius: 0;
}

.player-btn.volume-btn:hover {
    opacity: 1;
    background-color: transparent;
}

.player-btn.volume-btn.muted {
    background-position: 0 -182px;
}

.player-btn.volume-btn .icon-volume {
    display: none;
}

.icon-music::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    color: #999;
}

/* 确保图标span不换行 */
.control-btn span,
.player-btn span {
    display: inline-block;
    line-height: 1;
}

