/* 桃猫猫音乐播放器 - 现代唱片机UI样式 */
.music-player-container {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: all 0.3s ease;
    /* 默认隐藏状态 */
    transform: translateX(-100%);
}

/* 位置样式 */
.music-player-container.position-bottom_left {
    bottom: 20px;
    left: 20px;
}

.music-player-container.position-bottom_right {
    bottom: 20px;
    right: 20px;
    /* 右侧位置默认向右隐藏 */
    transform: translateX(100%);
}

.music-player-container.position-top_left {
    top: 20px;
    left: 20px;
}

.music-player-container.position-top_right {
    top: 20px;
    right: 20px;
    /* 右侧位置默认向右隐藏 */
    transform: translateX(100%);
}

/* 显示状态 - 当用户点击切换按钮后显示 */
.music-player-container.show {
    transform: translateX(0) !important;
}

/* 保持原有的隐藏状态类，用于切换 */
.music-player-container.minimized {
    transform: translateX(-100%);
}

.music-player-container.minimized.position-bottom_right,
.music-player-container.minimized.position-top_right {
    transform: translateX(100%);
}

/* 切换按钮 */
.music-player-toggle {
    position: absolute;
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: 
        radial-gradient(circle at center, #1a1a1a 15%, #0d0d0d 20%, #1a1a1a 25%),
        conic-gradient(from 0deg, #2a2a2a, #1a1a1a, #2a2a2a, #1a1a1a, #2a2a2a);
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 999999;
    overflow: hidden;
    border: 2px solid #4a4a4a;
}

.music-player-container.position-bottom_right .music-player-toggle,
.music-player-container.position-top_right .music-player-toggle {
    right: auto;
    left: -40px;
}

.music-player-toggle:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.music-player-toggle .dashicons,
.music-player-toggle i {
    color: white !important;
    font-size: 20px;
    line-height: 1;
    opacity: 1 !important;
}

/* 现代唱片机播放器主体 */
.modern-vinyl-player {
    width: 500px;
    height: 100px;
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    border-radius: 20px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    color: white;
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* ===========================================
 * 🎮 播放器按钮UI自定义区域 
 * 您可以在这里修改按钮样式和图标
 * ===========================================*/

/* 基础控制按钮UI */
.music-player-custom-btn {
    /* 您可以在这里修改按钮背景 */
    background: rgba(255, 255, 255, 0.15) !important;
    
    /* 您可以在这里修改按钮边框 */
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    
    /* 您可以在这里修改按钮大小 */
    min-width: 36px;
    min-height: 36px;
    padding: 8px;
    
    /* 您可以在这里修改按钮形状 */
    border-radius: 50%;
    
    /* 您可以在这里修改阴影效果 */
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 播放/暂停按钮UI */
.music-player-custom-play-btn {
    /* 您可以在这里修改播放按钮背景 */
    background: rgba(255, 107, 107, 0.85) !important;
    
    /* 您可以在这里修改播放按钮大小 */
    width: 44px !important;
    height: 44px !important;
    
    /* 您可以在这里修改播放按钮阴影 */
    box-shadow: 
        0 4px 16px rgba(255, 107, 107, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 0 1px rgba(255, 107, 107, 0.2);
}

/* 按钮Hover效果UI */
.music-player-custom-btn:hover {
    /* 您可以在这里修改按钮Hover背景 */
    background: rgba(255, 255, 255, 0.25) !important;
    
    /* 您可以在这里修改按钮Hover缩放 */
    transform: scale(1.05);
    
    /* 您可以在这里修改按钮Hover阴影 */
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 2px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 按钮图标UI */
.music-player-custom-icon {
    /* 您可以在这里修改图标颜色 */
    color: #ffffff !important;
    fill: #ffffff !important;
    
    /* 您可以在这里修改图标大小 */
    font-size: 16px;
    
    /* 您可以在这里修改图标阴影 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

/* 播放按钮图标UI */
.music-player-custom-play-icon {
    /* 您可以在这里修改播放按钮图标大小 */
    font-size: 18px !important;
    
    /* 您可以在这里修改播放按钮图标阴影 */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* ===========================================
 * 以上为自定义区域，您可以自由修改
 * 以下为系统样式，请勿随意修改
 * ===========================================*/

/* 移除播放器头部相关样式 */
.player-header {
    display: none !important;
}

.song-title {
    display: none !important;
}

.player-controls-right {
    display: none !important;
}

.minimize-btn {
    display: none !important;
}

/* 显示歌曲信息和进度条 */
.song-info {
    display: block !important;
}

.progress-container {
    display: flex !important;
}

.song-name {
    display: block !important;
}

.artist-name {
    display: block !important;
}

.current-time,
.total-time {
    display: block !important;
}

.progress-bar {
    display: block !important;
}

/* 自定义皮肤背景 */
.modern-vinyl-player.has-custom-skin {
    background: transparent;
}

.modern-vinyl-player.has-custom-skin::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    opacity: var(--skin-opacity, 0.8);
    z-index: -2;
}

.modern-vinyl-player.has-custom-skin::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(1px);
    border-radius: 20px;
    z-index: -1;
}

.modern-vinyl-player:hover {
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 播放器头部 */
.player-header {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.song-title {
    font-size: 16px;
    font-weight: 700;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.player-controls-right {
    display: flex;
    gap: 8px;
}



/* 播放器主体 */
.player-body {
    padding: 15px;
    background: transparent;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* 唱片机区域 */
.vinyl-turntable {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.turntable-base {
    position: relative;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, #3a3a3a, #2c2c2c, #1a1a1a);
    border-radius: 50%;
    box-shadow: 
        0 0 15px rgba(0, 0, 0, 0.5),
        inset 0 2px 6px rgba(255, 255, 255, 0.1),
        inset 0 -2px 6px rgba(0, 0, 0, 0.3);
    border: 2px solid #4a4a4a;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 唱片 */
.vinyl-record {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: 
        radial-gradient(circle at center, #1a1a1a 15%, #0d0d0d 20%, #1a1a1a 25%),
        conic-gradient(from 0deg, #2a2a2a, #1a1a1a, #2a2a2a, #1a1a1a, #2a2a2a);
    border-radius: 50%;
    transition: transform 0.1s ease-out;
    cursor: pointer;
    box-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.4),
        inset 0 1px 3px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 唱片旋转动画 */
.vinyl-record.spinning {
    animation: vinylSpin 3s linear infinite;
}

/* 切换按钮旋转动画 */
.music-player-toggle.spinning {
    animation: toggleSpin 3s linear infinite;
}

@keyframes toggleSpin {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

@keyframes vinylSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 切换按钮旋转动画 */
@keyframes toggleSpin {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

/* 唱片中心标签 */
.vinyl-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 82px;
    height: 82px;
    background: #ff6b6b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 3px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 艺术家头像 */
.artist-avatar {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="35" r="15" fill="%23fff" opacity="0.8"/><path d="M50 55c-15 0-25 10-25 20v15h50V75c0-10-10-20-25-20z" fill="%23fff" opacity="0.8"/></svg>') center/cover;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 自定义头像 */
.artist-avatar.has-custom-avatar {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 唱片中心孔 */
.vinyl-center-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: #000;
    border-radius: 50%;
    box-shadow: 
        inset 0 1px 1px rgba(0, 0, 0, 0.8),
        0 0 2px rgba(0, 0, 0, 0.5);
}

/* 唱片纹理 */
.vinyl-grooves {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: 
        radial-gradient(circle, transparent 35%, rgba(255, 255, 255, 0.03) 36%, transparent 37%),
        radial-gradient(circle, transparent 55%, rgba(255, 255, 255, 0.02) 56%, transparent 57%),
        radial-gradient(circle, transparent 75%, rgba(255, 255, 255, 0.02) 76%, transparent 77%);
}

/* 右侧控制面板 */
.control-panel {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 8px 15px 8px 15px;
    height: 84px;
}

/* 控制按钮容器 */
.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

/* 歌曲信息 - 精简版 */
.song-info {
    margin-bottom: 4px;
}

.song-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.artist-name {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
    line-height: 1.2;
}





/* 进度条 - 精简版 */
.progress-container {
    margin-bottom: 4px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.progress-bar {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 3px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 6px rgba(255, 107, 107, 0.4);
}

.progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #ff6b6b;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    left: 0%;
    box-shadow: 
        0 1px 4px rgba(255, 107, 107, 0.4),
        0 0 0 2px rgba(255, 107, 107, 0.2);
    border: 1px solid #fff;
}

.progress-bar:hover .progress-handle {
    opacity: 1;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    font-family: 'Courier New', monospace;
    line-height: 1;
}



.control-btn {
    /* 使用自定义按钮UI样式 */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    visibility: visible !important;
    backdrop-filter: blur(8px);
}

/* 继承自定义按钮UI */
.control-btn:not(.play-pause) {
    background: var(--custom-btn-bg, rgba(255, 255, 255, 0.15)) !important;
    border: var(--custom-btn-border, 1px solid rgba(255, 255, 255, 0.25)) !important;
    min-width: var(--custom-btn-width, 36px);
    min-height: var(--custom-btn-height, 36px);
    padding: var(--custom-btn-padding, 8px);
    border-radius: var(--custom-btn-radius, 50%);
    box-shadow: var(--custom-btn-shadow, 
        0 2px 8px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2));
}

.control-btn:not(.play-pause):hover {
    background: var(--custom-btn-hover-bg, rgba(255, 255, 255, 0.25)) !important;
    transform: var(--custom-btn-hover-scale, scale(1.05));
    box-shadow: var(--custom-btn-hover-shadow,
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 2px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3));
    border-color: var(--custom-btn-hover-border, rgba(255, 255, 255, 0.4));
}

.control-btn .dashicons,
.control-btn i {
    line-height: 1;
    color: var(--custom-icon-color, #ffffff) !important;
    opacity: 1 !important;
    font-size: var(--custom-icon-size, 16px);
    text-shadow: var(--custom-icon-shadow, 0 1px 2px rgba(0, 0, 0, 0.3));
    filter: var(--custom-icon-filter, drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2)));
}

.control-btn:hover .dashicons,
.control-btn:hover i {
    opacity: 1 !important;
    color: var(--custom-icon-color, #ffffff) !important;
    text-shadow: var(--custom-icon-hover-shadow, 0 1px 3px rgba(0, 0, 0, 0.4));
}

/* 确保所有图标都是白色 */
.control-btn .dashicons-controls-back,
.control-btn .dashicons-controls-forward,
.control-btn .dashicons-controls-play,
.control-btn .dashicons-controls-pause,
.control-btn .dashicons-volume {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* 针对可能的SVG图标 */
.control-btn svg,
.control-btn svg path {
    fill: #ffffff !important;
    color: #ffffff !important;
}

.play-pause {
    /* 使用自定义播放按钮UI样式 */
    background: var(--custom-play-bg, rgba(255, 107, 107, 0.85)) !important;
    width: var(--custom-play-width, 44px) !important;
    height: var(--custom-play-height, 44px) !important;
    box-shadow: var(--custom-play-shadow,
        0 4px 16px rgba(255, 107, 107, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 0 1px rgba(255, 107, 107, 0.2));
    border: var(--custom-play-border, 1px solid rgba(255, 255, 255, 0.3)) !important;
    backdrop-filter: blur(10px);
}

.play-pause .dashicons,
.play-pause i {
    color: var(--custom-play-icon-color, #ffffff) !important;
    font-size: var(--custom-play-icon-size, 18px) !important;
    opacity: 1 !important;
    text-shadow: var(--custom-play-icon-shadow, 0 1px 3px rgba(0, 0, 0, 0.4));
    filter: var(--custom-play-icon-filter, drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)));
}

.play-pause:hover {
    background: var(--custom-play-hover-bg, rgba(255, 107, 107, 0.95)) !important;
    transform: var(--custom-play-hover-scale, scale(1.05));
    box-shadow: var(--custom-play-hover-shadow,
        0 6px 20px rgba(255, 107, 107, 0.4),
        0 3px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 2px rgba(255, 107, 107, 0.3));
}

/* 音量控制 */
.volume-control {
    position: relative;
    display: flex;
    align-items: center;
}

/* 确保音量按钮图标也是白色 */
.volume-control .control-btn .dashicons,
.volume-control .control-btn i {
    color: #ffffff !important;
    fill: #ffffff !important;
}

.volume-slider {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    padding: 8px 6px;
    border-radius: 8px;
    margin-bottom: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    pointer-events: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

/* 点击音量按钮显示悬浮音量条 */
.volume-control.show-slider .volume-slider {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(-5px);
}

/* 悬浮三角箭头 */
.volume-slider::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.85);
}

#volume-slider {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    transform: rotate(-90deg);
    transform-origin: center;
}

#volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff6b6b;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

#volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff6b6b;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

#volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ff6b6b;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* 进度条 */
.progress-container {
    margin-bottom: 20px;
}

.progress-bar {
    position: relative;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1e88e5, #1976d2);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
}

.progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: #1e88e5;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    left: 0%;
}

.progress-bar:hover .progress-handle {
    opacity: 1;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

/* 控制按钮 */
.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.control-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    visibility: visible !important;
}

.control-btn:hover {
    background: #f5f5f5;
    transform: scale(1.1);
}

.control-btn .dashicons,
.control-btn i {
    font-size: 20px;
    line-height: 1;
    color: #333 !important;
    opacity: 1 !important;
}

.play-pause {
    background: linear-gradient(135deg, #1e88e5, #1976d2) !important;
    width: 48px;
    height: 48px;
}

.play-pause .dashicons,
.play-pause i {
    color: white !important;
    font-size: 24px;
}

.play-pause:hover {
    background: linear-gradient(135deg, #1976d2, #1565c0) !important;
    transform: scale(1.1);
}

/* 音量控制 */
.volume-control {
    position: relative;
    display: flex;
    align-items: center;
}

.volume-slider {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.volume-control:hover .volume-slider {
    opacity: 1;
    pointer-events: all;
}

#volume-slider {
    width: 80px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    writing-mode: bt-lr; /* IE */
    -webkit-appearance: slider-vertical; /* WebKit */
    transform: rotate(-90deg);
    transform-origin: center;
}

#volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1e88e5;
    cursor: pointer;
}

#volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1e88e5;
    cursor: pointer;
    border: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modern-vinyl-player {
        width: 350px;
    }
    
    .vinyl-turntable {
        height: 180px;
    }
    
    .turntable-base {
        width: 160px;
        height: 160px;
    }
    
    .vinyl-record {
        top: 12px;
        left: 12px;
        width: 136px;
        height: 136px;
    }
    
    .vinyl-label {
        width: 65px;
        height: 65px;
    }
    
    .artist-avatar {
        width: 50px;
        height: 50px;
    }
    
    .tonearm {
        width: 65px;
        height: 80px;
    }
    
    .song-name {
        font-size: 16px;
    }
    
    .control-btn {
        padding: 10px;
    }
    
    .play-pause {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .music-player-container.position-bottom_left,
    .music-player-container.position-bottom_right {
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
    
    .modern-vinyl-player {
        width: 100%;
        max-width: 320px;
    }
    
    .vinyl-turntable {
        height: 160px;
    }
    
    .turntable-base {
        width: 140px;
        height: 140px;
    }
    
    .vinyl-record {
        top: 10px;
        left: 10px;
        width: 120px;
        height: 120px;
    }
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: #ff6b6b;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 播放状态指示器 */
.playing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 8px;
}

.playing-indicator span {
    width: 3px;
    height: 12px;
    background: #ff6b6b;
    border-radius: 1px;
    animation: audioWave 1.2s ease-in-out infinite;
}

.playing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.playing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes audioWave {
    0%, 100% {
        transform: scaleY(0.3);
    }
    50% {
        transform: scaleY(1);
    }
}

/* 皮肤模式下的文字对比度增强 */
.modern-vinyl-player.has-custom-skin .song-name,
.modern-vinyl-player.has-custom-skin .artist-name,
.modern-vinyl-player.has-custom-skin .time-display {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: #fff;
}

.modern-vinyl-player.has-custom-skin .control-btn .dashicons,
.modern-vinyl-player.has-custom-skin .control-btn i {
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
}

/* 皮肤模式下的进度条增强 */
.modern-vinyl-player.has-custom-skin .progress-bar {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.modern-vinyl-player.has-custom-skin .progress-fill {
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.6);
}

/* 皮肤预览模式 */
.skin-preview-mode {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999;
    padding: 20px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skin-preview-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    transition: all 0.2s ease;
}

.skin-preview-close:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

/* 动态皮肤支持（GIF动图） */
.modern-vinyl-player.has-animated-skin::before {
    animation: none; /* 禁用CSS动画，让GIF自己播放 */
}

/* 绿幕处理状态指示器 */
.chroma-key-processing {
    position: relative;
}

.chroma-key-processing::after {
    content: '处理中...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

/* 皮肤加载失败提示 */
.skin-load-error {
    background: rgba(255, 100, 100, 0.1) !important;
    border-color: rgba(255, 100, 100, 0.3) !important;
}

.skin-load-error::before {
    background-image: none !important;
}

/* 【强制修复】所有按钮图标必须为白色 - 最高优先级覆盖 */
body .music-player-container .control-btn *,
body .modern-vinyl-player .control-btn *,
body .music-player-container .control-btn,
body .modern-vinyl-player .control-btn,
body .music-player-container .dashicons,
body .modern-vinyl-player .dashicons,
body .music-player-container [class*="dashicons"],
body .modern-vinyl-player [class*="dashicons"],
body .music-player-container .control-btn i,
body .modern-vinyl-player .control-btn i,
body .music-player-container .control-btn span,
body .modern-vinyl-player .control-btn span,
body .music-player-container .control-btn svg,
body .modern-vinyl-player .control-btn svg,
body .music-player-container .control-btn svg *,
body .modern-vinyl-player .control-btn svg *,
body .music-player-container .control-btn::before,
body .modern-vinyl-player .control-btn::before,
body .music-player-container .control-btn::after,
body .modern-vinyl-player .control-btn::after {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
    background-color: transparent !important;
}

/* 【强制修复】悬停状态也必须保持白色 */
body .music-player-container .control-btn:hover *,
body .modern-vinyl-player .control-btn:hover *,
body .music-player-container .control-btn:hover,
body .modern-vinyl-player .control-btn:hover,
body .music-player-container .control-btn:hover .dashicons,
body .modern-vinyl-player .control-btn:hover .dashicons,
body .music-player-container .control-btn:hover i,
body .modern-vinyl-player .control-btn:hover i {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

/* 【强制修复】特殊状态下的图标颜色 */
body .music-player-container .control-btn:active *,
body .modern-vinyl-player .control-btn:active *,
body .music-player-container .control-btn:focus *,
body .modern-vinyl-player .control-btn:focus * {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

/* 夜模式支持 */
@media (prefers-color-scheme: light) {
    .modern-vinyl-player {
        background: linear-gradient(145deg, #f5f5f5, #e0e0e0);
        color: #333;
    }
    
    .song-name {
        color: #333;
    }
    
    .artist-name {
        color: #666;
    }
}

/* 强制所有按钮图标为白色 - 覆盖WordPress默认样式 */
.music-player-container .control-btn *,
.music-player-container .control-btn .dashicons,
.music-player-container .control-btn i,
.modern-vinyl-player .control-btn *,
.modern-vinyl-player .control-btn .dashicons,
.modern-vinyl-player .control-btn i {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

/* 专门针对WordPress dashicons图标 */
.music-player-container .dashicons,
.modern-vinyl-player .dashicons {
    color: #ffffff !important;
}

/* 确保悬停状态也保持白色 */
.music-player-container .control-btn:hover *,
.music-player-container .control-btn:hover .dashicons,
.modern-vinyl-player .control-btn:hover *,
.modern-vinyl-player .control-btn:hover .dashicons {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* 防止继承其他颜色 */
.music-player-container,
.modern-vinyl-player {
    color: inherit;
}

.music-player-container .control-btn,
.modern-vinyl-player .control-btn {
    color: #ffffff !important;
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .modern-vinyl-player.has-custom-skin .song-name,
    .modern-vinyl-player.has-custom-skin .artist-name,
    .modern-vinyl-player.has-custom-skin .time-display {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
        font-weight: bold;
    }
    
    .control-btn {
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
}

/* CSS版本标识：2024-09-08-问题修复版 */
/* 如果您看到这行注释，说明更新已生效 */

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-radius: 50%;
    border-top-color: #1e88e5;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 播放状态指示器 */
.playing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 8px;
}

.playing-indicator span {
    width: 3px;
    height: 12px;
    background: #1e88e5;
    border-radius: 1px;
    animation: audioWave 1.2s ease-in-out infinite;
}

.playing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.playing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes audioWave {
    0%, 100% {
        transform: scaleY(0.3);
    }
    50% {
        transform: scaleY(1);
    }
}

/* 皮肤模式下的文字对比度增强 */
.music-player.has-custom-skin .song-name,
.music-player.has-custom-skin .artist-name,
.music-player.has-custom-skin .time-display {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    color: #fff;
}

.music-player.has-custom-skin .control-btn .dashicons {
    color: #fff;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.7));
}

/* 皮肤模式下的进度条增强 */
.music-player.has-custom-skin .progress-bar {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.music-player.has-custom-skin .progress-fill {
    background: linear-gradient(90deg, var(--theme-color, #1e88e5), rgba(255, 255, 255, 0.9));
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 皮肤预览模式 */
.skin-preview-mode {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.skin-preview-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

/* 动态皮肤支持（GIF动图） */
.music-player.has-animated-skin::before {
    animation: none; /* 禁用CSS动画，让GIF自己播放 */
}

/* 绿幕处理状态指示器 */
.chroma-key-processing {
    position: relative;
}

.chroma-key-processing::after {
    content: '处理中...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    z-index: 1000;
}

/* 皮肤加载失败提示 */
.skin-load-error {
    background: rgba(255, 100, 100, 0.1) !important;
    border-color: rgba(255, 100, 100, 0.3) !important;
}

.skin-load-error::before {
    background-image: none !important;
}

/* 皮肤模式下的按钮增强 */
.music-player.has-custom-skin .control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.music-player.has-custom-skin .play-pause {
    background: linear-gradient(135deg, var(--theme-color, #1e88e5), rgba(255, 255, 255, 0.2));
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 皮肤适应性布局 */
@media (max-width: 768px) {
    .music-player.has-custom-skin {
        width: 100%;
        max-width: 320px;
    }
    
    .music-player.has-custom-skin .song-name,
    .music-player.has-custom-skin .artist-name {
        font-size: 14px;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .music-player.has-custom-skin .song-name,
    .music-player.has-custom-skin .artist-name,
    .music-player.has-custom-skin .time-display {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
        font-weight: bold;
    }
}

/* 暗色主题支持 */
@media (prefers-color-scheme: dark) {
    .music-player {
        background: rgba(30, 30, 30, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .song-name {
        color: #fff;
    }
    
    .artist-name {
        color: #ccc;
    }
    
    .time-display {
        color: #ccc;
    }
    
    .control-btn .dashicons {
        color: #fff;
    }
    
    .control-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* 切换按钮中心标签 */
.toggle-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: #ff6b6b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 3px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

/* 切换按钮艺术家头像 */
.toggle-artist-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="35" r="15" fill="%23fff" opacity="0.8"/><path d="M50 55c-15 0-25 10-25 20v15h50V75c0-10-10-20-25-20z" fill="%23fff" opacity="0.8"/></svg>') center/cover;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

/* 自定义切换按钮头像 */
.toggle-artist-avatar.has-custom-avatar {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 切换按钮播放状态图标 */
.toggle-play-state-icon {
    color: white;
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
    transition: opacity 0.3s ease;
    z-index: 4;
    position: relative;
}

/* 切换按钮中心孔 */
.toggle-center-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 3px;
    background: #000;
    border-radius: 50%;
    box-shadow: 
        inset 0 1px 1px rgba(0, 0, 0, 0.8),
        0 0 2px rgba(0, 0, 0, 0.5);
    z-index: 4;
}

/* 切换按钮纹理 */
.toggle-grooves {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: 
        radial-gradient(circle, transparent 35%, rgba(255, 255, 255, 0.03) 36%, transparent 37%),
        radial-gradient(circle, transparent 55%, rgba(255, 255, 255, 0.02) 56%, transparent 57%),
        radial-gradient(circle, transparent 75%, rgba(255, 255, 255, 0.02) 76%, transparent 77%);
    z-index: 1;
}

/* 隐藏原来的箭头图标 */
.music-player-toggle .dashicons {
    display: none !important;
}
