.cxz-music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.cxz-avatar-viz {
    position: absolute;
    bottom: -6px;
    right: -10px;
    width: 80px;
    height: 40px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.cxz-avatar-viz.active {
    opacity: 1;
    transform: translateY(0);
}

.cxz-mp-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    backdrop-filter: blur(10px);
    transition: transform 0.2s, background 0.2s;
}

.cxz-mp-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.85);
}

.cxz-music-player.playing .cxz-mp-btn {
    animation: cxzBtnPulse 2s ease-in-out infinite;
}

@keyframes cxzBtnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(241, 200, 0, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(241, 200, 0, 0); }
}

.cxz-mp-volume {
    position: absolute;
    bottom: 48px;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 12px 8px 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.cxz-mp-volume.visible {
    opacity: 1;
    pointer-events: auto;
}

.cxz-mp-vol-slider {
    writing-mode: vertical-lr;
    direction: rtl;
    width: 4px;
    height: 80px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

.cxz-mp-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #f1c800;
    cursor: pointer;
}

.cxz-music-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9997;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cxz-music-glow.active {
    opacity: 1;
}

@media (max-width: 640px) {
    .cxz-music-player {
        bottom: 12px;
        right: 12px;
    }
    .cxz-mp-btn {
        width: 42px;
        height: 42px;
    }
    .cxz-avatar-viz {
        width: 64px;
        height: 32px;
        right: -6px;
        bottom: -4px;
    }
}
