/* Search Section */
.search-section {
    padding: 10px 10px;
    background: white;
    border-bottom: 1px solid #eee;
    width: 100%;
    left: 0;
    right: 0;
}

.search-container {
    position: relative;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 0 12px 0 16px;
    transition: all 0.3s ease;
    gap: 10px;
    min-height: 44px;
}

.search-box:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.search-icon {
    color: #6c757d;
    margin-right: 6px;
    font-size: 14px;
}

#searchInput {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 16px;
    outline: none;
    font-family: inherit;
    min-width: 0;
}

#searchInput::placeholder {
    color: #6c757d;
}

.clear-btn {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.clear-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* View Playlist mode - when queue has songs */
.clear-btn.view-playlist-mode {
    border-radius: 20px;
    width: auto;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
}

.clear-btn.view-playlist-mode .clear-icon {
    display: none;
}

.clear-btn.view-playlist-mode .view-playlist-text {
    display: inline-block !important;
}

.clear-icon {
    display: inline-block;
}

.view-playlist-text {
    display: none;
    white-space: nowrap;
}

/* Loading indicator */
.loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 13px;
    margin-top: 8px;
}

.loading i {
    color: #667eea;
    font-size: 16px;
}

.loading span {
    font-weight: 500;
}

/* Compact search when header is collapsed */
.search-section.header-follower-active {
    padding: 4px 8px;
}

.search-section.header-follower-active .search-box {
    min-height: 26px;
    padding: 0 6px;
    gap: 6px;
    width: 100%;
}

.search-section.header-follower-active .search-icon {
    font-size: 18px;
    margin-right: 4px;
}

.search-section.header-follower-active #searchInput {
    padding: 6px 6;
    font-size: 18px;
}

.search-section.header-follower-active .clear-btn {
    width: 30px;
    height: 30px;
    font-size: 14px;
}

.search-section.header-follower-active .clear-btn.view-playlist-mode {
    width: auto;
    padding: 6px 12px;
    font-size: 12px;
}

