 /* Modern color scheme and base styles */
 :root {
    --primary: #6a11cb;
    --primary-gradient: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    --secondary: #f3f5f9;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --card-bg: #ffffff;
    --border-color: #eef1f6;
    --hover-color: #f8f9fa;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: var(--text-primary);
    line-height: 1.6;
    padding: 0 !important ;
}
.pb-3{
         padding-left: 0 !important; 
     padding-right: 0 !important;
}

/* Search header with glassmorphism effect */
.search-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.search-bar {
    display: flex;
    align-items: center;
}

.back-button a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--secondary);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

    .back-button a:hover {
        background: var(--primary);
        color: white;
        transform: translateX(-2px);
    }

.search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--secondary);
    border-radius: 20px;
    padding: 8px 16px;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

    .search-input-wrap:focus-within {
        box-shadow: 0 4px 12px rgba(106, 17, 203, 0.15);
        background: white;
        transform: translateY(-1px);
    }

    .search-input-wrap i {
        color: var(--text-secondary);
        font-size: 18px;
    }

#searchBox {
    flex: 1;
    border: 0;
    background: transparent;
    outline: none;
    padding: 8px 12px;
    font-size: 16px;
    color: var(--text-primary);
}

.end-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--secondary);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

    .icon-btn:hover {
        background: var(--primary);
        color: white;
        transform: scale(1.1);
    }

/* Content area */
.search-content {
    padding: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
    margin: 20px 0 12px;
    padding-left: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .section-title i {
        color: var(--primary);
    }

/* Recent items */
.recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: var(--card-bg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: var(--transition);
}

    .recent-item:hover {
        background: var(--hover-color);
        transform: translateX(4px);
    }

    .recent-item i {
        color: var(--text-secondary);
    }

/* Popular tags */
.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    padding: 8px 16px;
    background: var(--card-bg);
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

    .tag:hover {
        background: var(--primary-gradient);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(106, 17, 203, 0.2);
    }

/* Suggestions */
.suggestions {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 8px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-top: 16px;
}

.sugg-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
}

    .sugg-row:last-child {
        border-bottom: none;
    }

    .sugg-row:hover {
        background: var(--hover-color);
    }

.sugg-thumb {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--secondary);
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    overflow: hidden;
}

.sugg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sugg-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
    color: var(--text-primary);
}

.sugg-chev {
    color: var(--text-secondary);
    font-size: 18px;
    opacity: 0.7;
    transition: var(--transition);
}

.sugg-row:hover .sugg-chev {
    transform: translateX(3px);
    opacity: 1;
}

.sugg-title {
    font-size: 15px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
}

.sugg-chev {
    color: var(--text-secondary);
    flex: 0 0 auto;
    transition: var(--transition);
}

.sugg-row:hover .sugg-chev {
    color: var(--primary);
    transform: translate(2px, -2px);
}

/* Empty state */
.empty-hint {
    padding: 20px;
    color: var(--text-secondary);
    text-align: center;
    font-size: 14px;
}

/* Listening overlay */
#listeningOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    #listeningOverlay .box {
        background: var(--card-bg);
        border-radius: 20px;
        padding: 24px 28px;
        text-align: center;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
        animation: scaleIn 0.3s ease;
    }

        #listeningOverlay .box .pulse {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: var(--primary-gradient);
            margin: 0 auto 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 32px;
            position: relative;
        }

            #listeningOverlay .box .pulse:after {
                content: '';
                position: absolute;
                width: 100%;
                height: 100%;
                border-radius: 50%;
                background: var(--primary);
                animation: pulse 1.5s infinite;
                z-index: -1;
            }

        #listeningOverlay .box .txt {
            font-weight: 600;
            color: var(--text-primary);
            font-size: 18px;
        }

@keyframes pulse {
    0%

{
    transform: scale(1);
    opacity: 0.7;
}

70% {
    transform: scale(1.8);
    opacity: 0;
}

100% {
    transform: scale(1.8);
    opacity: 0;
}

}

@keyframes scaleIn {
    from

{
    opacity: 0;
    transform: scale(0.9);
}

to {
    opacity: 1;
    transform: scale(1);
}

}

/* Animation for search results */
@keyframes fadeIn {
    from

{
    opacity: 0;
    transform: translateY(10px);
}

to {
    opacity: 1;
    transform: translateY(0);
}

}

.suggestions {
    animation: fadeIn 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .search-header {
        padding: 10px 12px;
    }

    .back-button a {
        width: 36px;
        height: 36px;
    }

    .search-input-wrap {
        padding: 6px 12px;
    }

    #searchBox {
        font-size: 15px;
        padding: 6px 10px;
    }

    .icon-btn {
        width: 32px;
        height: 32px;
    }

    .search-content {
        padding: 12px;
    }

    .section-title {
        font-size: 15px;
    }

    .recent-item {
        padding: 12px;
    }

    .tag {
        padding: 6px 14px;
        font-size: 13px;
    }
}