/* Queue Section */
.queue-section {
    background: white;
    flex: 1;
    padding: 20px;
    margin-top: 100px;
}

.queue-header {
    margin-bottom: 20px;
}

.queue-count {
    font-size: 12px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 400;
    margin-left: 10px;
}

.queue-section .driver-info {
    color: #6c757d;
    font-size: 14px;
    margin: 10px 0 0 0;
    font-weight: 400;
}

.empty-queue {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-queue i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-queue p {
    font-size: 18px;
    margin-bottom: 8px;
}

.empty-queue .subtitle {
    font-size: 14px;
    opacity: 0.8;
}

/* Queue List */
.queue-list {
    border-radius: 12px;
    overflow: hidden;
}

.queue-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s ease;
    position: relative;
    cursor: default;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent; /* Prevent iOS tap highlight flash */
    pointer-events: none; /* Disable pointer events on the item itself */
}

.queue-item:last-child {
    border-bottom: none;
}

/* Re-enable pointer events for interactive elements */
.queue-item .move-song-btn,
.queue-item .remove-from-queue,
.queue-item .album-art,
.queue-item .song-info {
    pointer-events: auto;
}

/* Drag and drop styles removed - using arrow buttons instead */

.move-song-btn {
    background: none;
    color: #667eea;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.15s ease;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    padding: 8px;
    flex-shrink: 0;
    width: auto;
    height: auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.move-song-btn:hover:not(:disabled) {
    color: #5568d3;
    transform: scale(1.15);
}

.move-song-btn:active:not(:disabled) {
    transform: scale(1.0);
    color: #4455c2;
}

.move-song-btn:disabled {
    color: #d3d3d3;
    cursor: not-allowed;
    opacity: 0.4;
}

.move-song-btn i {
    display: block;
    pointer-events: none;
}

.queue-item .album-art {
    width: 45px;
    height: 45px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

.queue-item .song-info {
    margin-left: 12px;
    flex: 1;
}

.queue-item .song-title {
    font-size: 15px;
}

.queue-item .song-artist {
    font-size: 13px;
}

.remove-from-queue {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.remove-from-queue:hover {
    background: #c0392b;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.remove-from-queue:active {
    transform: scale(1.0);
}

