
.mixyue-layout-region[data-mixyue-region='global-player'] {
    display: block;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    flex: 0 0 auto;
    width: 100%;
    position: relative;
    z-index: 1000;
    overflow: visible;
}

body:not(.mobile-app) #global-player {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: #0b1220 !important;
    border-top: 1px solid var(--border-white-light) !important;
    height: 82px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    opacity: 1 !important;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease !important;
}

#global-player .player-waveform-timeline,
#global-player .player-actions {
    display: none !important;
}

body:not(.mobile-app) #global-player.hidden {
    transform: translateY(100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body:not(.mobile-app) #global-player.minimized {
    transform: translateY(calc(100% - 6px)) !important;
}

body:not(.mobile-app) #global-player.minimized .player-content,
body:not(.mobile-app) #global-player.minimized .player-waveform-timeline,
body:not(.mobile-app) #global-player.minimized .player-actions {
    opacity: 0 !important;
    pointer-events: none !important;
}

.player-toggle-btn {
    position: absolute !important;
    top: -24px !important;
    left: 28px !important;
    transform: none !important;
    width: 36px !important;
    height: 20px !important;
    background: #0b1220 !important;
    border: 1px solid var(--border-white-light, rgba(255,255,255,0.1)) !important;
    border-bottom: none !important;
    border-radius: 6px 6px 0 0 !important;
    color: var(--text-white, #fff) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    z-index: 1001 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#global-player.active .player-toggle-btn {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.player-toggle-btn:hover {
    background: var(--bg-panel, #132337) !important;
    color: var(--primary-color, #22c55e) !important;
}

.player-toggle-btn svg {
    width: 14px !important;
    height: 14px !important;
    transition: transform 0.2s ease !important;
}

.player-toggle-btn .toggle-icon-down {
    display: block !important;
}

.player-toggle-btn .toggle-icon-up {
    display: none !important;
}

#global-player.minimized .player-toggle-btn .toggle-icon-down {
    display: none !important;
}

#global-player.minimized .player-toggle-btn .toggle-icon-up {
    display: block !important;
}

#global-player.minimized .player-toggle-btn {
    top: -22px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    animation: pulseGlow 2s ease-in-out infinite !important;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(34, 197, 94, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(34, 197, 94, 0.6);
    }
}

#global-player .player-content {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 0 16px !important;
    height: 82px !important;
    gap: 16px !important;
    max-width: 1905px !important;
    margin: 0 auto !important;
    opacity: 0 !important;
    transform: translateY(18px) !important;
    transition: opacity 0.35s ease, transform 0.35s ease !important;
}

#global-player.active .player-content {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#global-player .track-info {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 340px !important;
    min-width: 340px !important;
    max-width: 340px !important;
    height: 50px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    text-align: left !important;
}

#global-player .track-cover {
    width: 44px !important;
    height: 44px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: var(--bg-placeholder) !important;
    flex-shrink: 0 !important;
}

#global-player .track-cover img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

#global-player .track-details {
    min-width: 0 !important;
    width: 180px !important;
    max-width: 180px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 4px !important;
    text-align: left !important;
}

#global-player .track-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--text-white) !important;
    line-height: 16px !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    position: relative !important;
    max-width: 100% !important;
    display: block !important;
    text-align: left !important;
}

#global-player .track-title .title-inner {
    display: inline-block !important;
    white-space: nowrap !important;
}

#global-player .track-title.scrolling .title-inner {
    animation: titleScroll 12s linear infinite !important;
}

@keyframes titleScroll {
    0% { transform: translateX(0); }
    20% { transform: translateX(0); }
    80% { transform: translateX(var(--scroll-distance, -120px)); }
    100% { transform: translateX(var(--scroll-distance, -120px)); }
}

#global-player .track-artist {
    font-size: 14px !important;
    color: var(--text-muted-light) !important;
    line-height: 14px !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: left !important;
}

#global-player .player-link {
    color: inherit !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
}

#global-player .player-link:hover {
    color: var(--primary-color, #22c55e) !important;
    text-decoration: underline !important;
}

#global-player .track-title .player-link {
    color: var(--text-white) !important;
}

#global-player .track-title .player-link:hover {
    color: var(--primary-color, #22c55e) !important;
}

#global-player .track-artist .player-link {
    color: var(--text-muted-light) !important;
}

#global-player .track-artist .player-link:hover {
    color: var(--primary-color, #22c55e) !important;
}

#global-player .track-meta {
    display: flex !important;
    gap: 8px !important;
    font-size: 11px !important;
    color: var(--text-muted-light) !important;
    line-height: 12px !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    align-items: center !important;
}

#global-player .track-bpm,
#global-player .track-key {
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

#global-player .track-time {
    flex-shrink: 0 !important;
    width: 50px !important;
    color: var(--text-muted-light) !important;
    font-size: 10px !important;
    text-align: right !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    white-space: nowrap !important;
}

#global-player .track-time .time-separator {
    margin: 0 2px !important;
    color: var(--text-muted-dark) !important;
}

#global-player .player-waveform-main {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    height: 44px !important;
    background: #0f1a2d !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    position: relative !important;
}


#global-wavesurfer {
    width: 100% !important;
    height: 100% !important;
}

#global-player .gp-cursor-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 2px !important;
    height: 100% !important;
    background: #86efac !important;
    box-shadow: 0 0 8px rgba(134, 239, 172, 0.45) !important;
    transform: translate3d(0, 0, 0) !important;
    will-change: transform !important;
    pointer-events: none !important;
    z-index: 6 !important;
}

#global-wavesurfer .cursor,
#global-wavesurfer .wavesurfer-cursor {
    opacity: 0 !important;
}


#global-player .player-controls-group {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
}

#global-player .player-transport {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
}

#global-player .control-btn {
    background: transparent !important;
    border: none !important;
    color: var(--text-white) !important;
    cursor: pointer !important;
    padding: 6px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
}

#global-player .control-btn svg {
    width: 14px !important;
    height: 14px !important;
    pointer-events: none !important;
}

#global-player .control-btn:hover {
    background: var(--border-white-light) !important;
}

#global-player .play-btn {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    position: relative !important;
    transition: background 0.2s ease, box-shadow 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    background: var(--primary-color, #22c55e) !important;
    color: #0f172a !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

#global-player .play-btn .pause-icon,
#global-player .play-btn .play-icon,
#global-player .play-btn .wave-icon {
    width: 18px !important;
    height: 18px !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    transition: opacity 0.3s ease !important;
}

#global-player .play-btn .pause-icon {
    opacity: 0 !important;
}

#global-player .play-btn .play-icon,
#global-player .play-btn .wave-icon {
    opacity: 1 !important;
}

#global-player .play-btn.playing .pause-icon {
    opacity: 1 !important;
}

#global-player .play-btn.playing .play-icon,
#global-player .play-btn.playing .wave-icon {
    opacity: 0 !important;
}

#global-player .play-btn:not(.playing) .wave-arc {
    transform-origin: 12px 12px !important;
    animation: wavePulse 1.2s ease-in-out infinite !important;
}

#global-player .play-btn:not(.playing) .wave-arc-1 {
    animation-delay: 0s !important;
}

#global-player .play-btn:not(.playing) .wave-arc-2 {
    animation-delay: 0.15s !important;
}

#global-player .play-btn:not(.playing) .wave-arc-3 {
    animation-delay: 0.3s !important;
}

@keyframes wavePulse {
    0% {
        opacity: 0.2 !important;
        transform: scale(0.9) !important;
    }
    50% {
        opacity: 1 !important;
        transform: scale(1.15) !important;
    }
    100% {
        opacity: 0.2 !important;
        transform: scale(0.9) !important;
    }
}

#global-player .play-btn:hover {
    background: var(--primary-dark, #16a34a) !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3) !important;
}

#global-player .play-btn:active {
    opacity: 0.92 !important;
}

#global-player .separator {
    width: 1px !important;
    height: 24px !important;
    background: var(--border-white-medium) !important;
    margin: 0 !important;
}

#global-player .player-volume {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

#global-player .volume-slider {
    width: 70px !important;
    height: 3px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 2px !important;
    outline: none !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    transition: background 0.2s ease !important;
}

#global-player .volume-slider:hover {
    background: rgba(255, 255, 255, 0.4) !important;
}

#global-player .volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    width: 8px !important;
    height: 8px !important;
    background: var(--text-white) !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, background 0.2s ease !important;
}

#global-player .volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2) !important;
    background: var(--accent-cyan) !important;
}

#global-player .volume-slider::-moz-range-thumb {
    width: 8px !important;
    height: 8px !important;
    background: var(--text-white) !important;
    border-radius: 50% !important;
    border: none !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, background 0.2s ease !important;
}

#global-player .volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2) !important;
    background: var(--accent-cyan) !important;
}

#global-player #player-add-to-cart {
    position: relative !important;
}

#global-player #player-add-to-cart.in-cart {
    color: var(--accent-cyan) !important;
}

#global-player #player-add-to-cart.in-cart svg {
    fill: var(--accent-cyan) !important;
}

#global-player #player-add-to-cart:hover {
    background: rgba(var(--accent-cyan-rgb, 0, 188, 212), 0.15) !important;
    color: var(--accent-cyan) !important;
}

#global-player #player-add-to-cart:hover svg {
    fill: var(--accent-cyan) !important;
}

.waveform-time-overlay { display: none !important; }


body:not(.mobile-app).global-player-active {
    padding-bottom: 90px !important;
}

body:not(.mobile-app).global-player-minimized {
    padding-bottom: 12px !important;
}

body:not(.mobile-app).global-player-active .site-footer {
    margin-bottom: 82px !important;
}

body:not(.mobile-app).global-player-minimized .site-footer {
    margin-bottom: 6px !important;
}

.preview-region-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 5;
}

.preview-overlay-left,
.preview-overlay-right {
    position: absolute;
    top: 0;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.preview-overlay-left {
    left: 0;
    border-right: none;
}

.preview-overlay-right {
    right: 0;
    border-left: none;
}

.preview-start-marker,
.preview-end-marker {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    pointer-events: none;
    z-index: 6;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

.preview-start-marker::before,
.preview-end-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
}

.preview-start-marker::before {
    left: 2px;
    border-width: 4px 0 4px 5px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.7);
}

.preview-end-marker::before {
    right: 2px;
    border-width: 4px 5px 4px 0;
    border-color: transparent rgba(255, 255, 255, 0.7) transparent transparent;
}

#global-player .player-queue-btn.is-hidden {
    display: none !important;
}

.player-queue-panel {
    position: fixed;
    right: 20px;
    bottom: 92px;
    z-index: 1001;
    width: min(380px, calc(100vw - 32px));
    max-height: min(52vh, 440px);
    background: var(--bg-panel, #171717);
    border: 1px solid var(--border-white-light, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    transform: translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

.player-queue-panel.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.player-queue-head {
    height: 44px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-white-light, rgba(255, 255, 255, 0.08));
    color: var(--text-white, #fff);
    font-size: 13px;
    font-weight: 600;
}

.player-queue-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary, #94a3b8);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.player-queue-list {
    max-height: calc(min(52vh, 440px) - 44px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.player-queue-item {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--border-white-light, rgba(255, 255, 255, 0.06));
    background: transparent;
    color: var(--text-white, #fff);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    min-height: 52px;
    box-sizing: border-box;
}

.player-queue-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.player-queue-item.active .title {
    color: var(--primary-color, #22c55e);
}

.player-queue-item .idx {
    width: 22px;
    color: var(--text-secondary, #94a3b8);
    font-size: 12px;
    text-align: center;
    flex-shrink: 0;
}

.player-queue-item .meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.player-queue-item .title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-queue-item .artist {
    font-size: 12px;
    color: var(--text-secondary, #94a3b8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-queue-empty {
    padding: 20px 14px;
    font-size: 13px;
    color: var(--text-secondary, #94a3b8);
    text-align: center;
}