.queue-panel {
    position: fixed;
    right: -760px;  /* 800px - 40px visible = -760px */
    top: 50%;
    transform: translateY(-50%);
    width: 800px;
    height: 800px;
    border-radius: 50%;
    z-index: 999;
    transition: right 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: none;
    overflow: hidden;
    cursor: pointer;
}

.queue-panel.has-queue {
    display: block !important;
}

.queue-panel.active {
    right: -480px; 
    cursor: default;
}

.queue-panel::before {
    content: '\f053';  /* FontAwesome left arrow */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #667eea;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease, left 0.3s ease;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.8), 0 0 20px rgba(102, 126, 234, 0.6);
    animation: arrowPulse 2s ease-in-out infinite;
}

.queue-panel.active::before {
    opacity: 0;
    left: 5px;
    pointer-events: none;
    visibility: hidden;
}

@keyframes arrowPulse {
    0%, 100% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
    50% {
        opacity: 0.6;
        transform: translateY(-50%) translateX(-5px);
    }
}

.queue-toggle {
    display: none;
}

.queue-header {
    position: absolute;
    top: 80px;
    left: 80px;
    right: 80px;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 10;
}

.queue-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.queue-title i {
    color: #667eea;
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.5));
}

.queue-content {
    position: absolute;
    top: 160px;
    left: 100px;
    right: 100px;
    bottom: 120px;
    overflow: hidden;
    z-index: 5;
}

.queue-circular-container {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding: 40px 20px;
    
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.4) transparent;
}

.queue-circular-container::-webkit-scrollbar {
    width: 6px;
}

.queue-circular-container::-webkit-scrollbar-track {
    background: transparent;
}

.queue-circular-container::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.4);
    border-radius: 3px;
}

.queue-circular-container::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.6);
}

.queue-circular-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px 8px 16px;
    margin: 6px 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform-origin: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
    will-change: transform, opacity;
}

.queue-circular-item:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.queue-circular-item.playing {
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.35), rgba(118, 75, 162, 0.35));
    border: 2px solid rgba(102, 126, 234, 0.7);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.5), 
                0 0 16px rgba(102, 126, 234, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(1.0);
}

.queue-item-artwork {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.queue-circular-item:hover .queue-item-artwork {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.queue-item-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.queue-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.queue-item-artist {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
}

.queue-item-remove {
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #ff3b30 0%, #dc2626 100%);
    border: 2px solid #1a1a2e;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    font-size: 10px;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.queue-item-remove i {
    font-size: 10px;
    line-height: 1;
}

.queue-circular-item:hover .queue-item-remove {
    opacity: 1;
    left: -11px;
}

.queue-item-remove:hover {
    background: linear-gradient(135deg, #ff4539 0%, #ef4444 100%);
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 3px 10px rgba(255, 59, 48, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.queue-item-playing-indicator {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 14px;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(102, 126, 234, 0.8));
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: translateY(-50%) scale(1);
    }
    50% { 
        opacity: 0.6; 
        transform: translateY(-50%) scale(0.95);
    }
}

.queue-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

.queue-empty i {
    font-size: 56px;
    margin-bottom: 20px;
    opacity: 0.25;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.queue-empty p {
    margin: 5px 0;
    font-size: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.scroll-hint {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    pointer-events: none;
    z-index: 10;
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.scroll-hint.top {
    top: 15px;
}

.scroll-hint.bottom {
    bottom: 15px;
}

@keyframes bounce {
    0%, 100% { 
        transform: translateX(-50%) translateY(0);
        opacity: 0.5;
    }
    50% { 
        transform: translateX(-50%) translateY(-8px);
        opacity: 0.8;
    }
}

.queue-footer {
    position: absolute;
    bottom: 80px;
    left: 80px;
    right: 80px;
    padding: 16px 20px;
    border-radius: 20px;
    z-index: 10;
}

.queue-stats {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.queue-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.queue-stat i {
    color: #667eea;
    font-size: 14px;
}

.queue-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 20px;
    padding: 8px;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.queue-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.queue-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}