/* Search Results */
.search-results {
    background: white;
    border-bottom: 1px solid #eee;
    max-height: 60vh;
    overflow-y: auto;
    display: none;
    padding: 0 20px;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    touch-action: pan-y; /* Allow vertical scrolling */
}

.search-results .section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    touch-action: pan-y; /* Allow vertical scrolling through items */
}

.result-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #e9ecef;
}

.result-item:active {
    transform: translateY(0);
}

.album-art {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.song-info {
    flex: 1;
    min-width: 0;
}

.song-title {
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    color: #6c757d;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.add-btn {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.remove-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.search-results::-webkit-scrollbar {
    width: 4px;
}

.search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.search-results::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

