/* ============================================
   QUEUE MODAL - СТИЛИ ДЛЯ ОЧЕРЕДИ
   ============================================ */

.queue-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.queue-modal.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.queue-modal-content {
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    background: #1a1a1f;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.queue-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.queue-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffd700;
}

.close-queue {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-queue:hover {
    background: #ff4b4b;
    transform: rotate(90deg);
}

.queue-modal-body {
    padding: 16px;
    overflow-y: auto;
    max-height: calc(80vh - 70px);
}

.queue-stats {
    display: flex;
    justify-content: space-between;
    padding: 8px 0 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 12px;
}

.queue-total {
    color: #ffd700;
}

.queue-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.queue-item:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateX(4px);
}

.queue-item.current {
    background: rgba(255, 215, 0, 0.15);
    border-left: 3px solid #ffd700;
}

.queue-cover {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #2a2a2a;
    flex-shrink: 0;
}

.queue-info {
    flex: 1;
    min-width: 0;
}

.queue-title {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.queue-artist {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-duration {
    font-size: 11px;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.5);
}

.queue-remove {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    opacity: 0;
}

.queue-item:hover .queue-remove {
    opacity: 1;
}

.queue-remove:hover {
    background: rgba(255, 75, 75, 0.2);
    color: #ff6b6b;
}

.queue-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.queue-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.queue-empty h3 {
    font-size: 16px;
    margin: 0 0 8px;
    color: #fff;
}

.queue-empty p {
    font-size: 13px;
    margin: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .queue-modal-content {
        width: 95%;
    }
    
    .queue-cover {
        width: 32px;
        height: 32px;
    }
    
    .queue-title {
        font-size: 12px;
    }
    
    .queue-artist {
        font-size: 10px;
    }
    
    .queue-duration {
        font-size: 10px;
    }
    
    .queue-remove {
        opacity: 1;
    }
}
.queue-limit {
    padding: 14px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
