/**
 * Live Search Autocomplete Styles
 * Modern, clean autocomplete dropdown for track suggestions
 * Positioned vertically next to the sidebar
 */

/* Main Container - Positioned next to sidebar */
.live-search-autocomplete {
    display: none;
    position: fixed;
    top: 70px;
    left: 280px;
    z-index: 9999;
    background: var(--card-bg, #ffffff);
    border-radius: 0 12px 12px 0;
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: visible;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    border-left: none;
    width: 380px;
    max-height: calc(100vh - 160px);
    flex-direction: column;
    box-sizing: border-box;
}

/* Dark mode support */
[data-theme="dark"] .live-search-autocomplete,
.dark-mode .live-search-autocomplete,
body.night .live-search-autocomplete {
    background: var(--dark-card-bg, #1e1e2d);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.live-search-autocomplete.active {
    display: flex !important;
}

/* Header */
.live-search-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--primary-color, #6366f1) 0%, var(--secondary-color, #8b5cf6) 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.live-search-header svg {
    opacity: 0.9;
}

.live-search-title {
    flex: 1;
}

.live-search-count {
    font-size: 12px;
    opacity: 0.8;
    font-weight: 500;
}

/* Results Container */
.live-search-results {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 100px;
    max-height: calc(100vh - 280px);
    overflow-y: auto !important;
    overflow-x: hidden;
    padding: 8px 0;
    width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    position: relative;
    /* Scrollbar styling for webkit browsers (Chrome, Edge, Safari) */
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

/* Custom scrollbar for webkit browsers */
.live-search-results::-webkit-scrollbar {
    width: 8px;
}

.live-search-results::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

.live-search-results::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.live-search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* Dark mode scrollbar */
[data-theme="dark"] .live-search-results::-webkit-scrollbar-thumb,
.dark-mode .live-search-results::-webkit-scrollbar-thumb,
body.night .live-search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .live-search-results::-webkit-scrollbar-thumb:hover,
.dark-mode .live-search-results::-webkit-scrollbar-thumb:hover,
body.night .live-search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Firefox scrollbar */
[data-theme="dark"] .live-search-results,
.dark-mode .live-search-results,
body.night .live-search-results {
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Scroll hint indicator */
.live-search-scroll-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(to top, var(--card-bg, #ffffff), transparent);
    color: var(--text-secondary, #6b7280);
    font-size: 12px;
    font-weight: 500;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    pointer-events: none;
    animation: bounce-hint 2s infinite;
}

[data-theme="dark"] .live-search-scroll-hint,
.dark-mode .live-search-scroll-hint,
body.night .live-search-scroll-hint {
    background: linear-gradient(to top, var(--dark-card-bg, #1e1e2d), transparent);
    color: rgba(255, 255, 255, 0.6);
}

.live-search-autocomplete.has-scroll .live-search-scroll-hint {
    display: flex;
}

.live-search-scroll-hint svg {
    animation: bounce-arrow 1.5s ease-in-out infinite;
}

@keyframes bounce-hint {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

@keyframes bounce-arrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(4px);
    }
}

/* Scroll indicator - gradient shadow at bottom to show more content */
.live-search-autocomplete::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, transparent, var(--card-bg, #ffffff));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .live-search-autocomplete::after,
.dark-mode .live-search-autocomplete::after,
body.night .live-search-autocomplete::after {
    background: linear-gradient(to bottom, transparent, var(--dark-card-bg, #1e1e2d));
}

/* Show scroll indicator when there's scrollable content */
.live-search-autocomplete.has-scroll::after {
    opacity: 1;
}

/* Individual Result Item */
.live-search-item {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.05));
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    overflow: hidden;
}

.live-search-item:last-child {
    border-bottom: none;
}

.live-search-item:hover,
.live-search-item.focused {
    background: var(--hover-bg, rgba(99, 102, 241, 0.08));
}

[data-theme="dark"] .live-search-item:hover,
[data-theme="dark"] .live-search-item.focused,
.dark-mode .live-search-item:hover,
.dark-mode .live-search-item.focused,
body.night .live-search-item:hover,
body.night .live-search-item.focused {
    background: rgba(255, 255, 255, 0.05);
}

/* Thumbnail */
.live-search-thumbnail {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--placeholder-bg, #f0f0f0);
}

.live-search-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.live-search-item:hover .live-search-thumbnail img {
    transform: scale(1.05);
}

.live-search-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.live-search-play-overlay svg {
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.live-search-item:hover .live-search-play-overlay,
.live-search-item.focused .live-search-play-overlay {
    opacity: 1;
}

/* Track Info */
.live-search-info {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.live-search-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    flex-wrap: nowrap;
}

.live-search-track-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary, #1a1a2e);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
    min-width: 0;
}

[data-theme="dark"] .live-search-track-title,
.dark-mode .live-search-track-title,
body.night .live-search-track-title {
    color: #ffffff;
}

/* Trend Badges */
.trend-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.trend-badge.hot {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: #ffffff;
    animation: pulse-hot 2s infinite;
}

.trend-badge.up {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: #ffffff;
}

.trend-badge.down {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

@keyframes pulse-hot {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(255, 107, 107, 0);
    }
}

/* Artist Name */
.live-search-artist {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

[data-theme="dark"] .live-search-artist,
.dark-mode .live-search-artist,
body.night .live-search-artist {
    color: rgba(255, 255, 255, 0.6);
}

.verified-badge {
    flex-shrink: 0;
}

/* Stats Row */
.live-search-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    width: 100%;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-tertiary, #9ca3af);
}

.stat-item svg {
    opacity: 0.7;
}

.stat-item.views svg {
    color: var(--primary-color, #6366f1);
}

.stat-item.likes svg {
    color: #ef4444;
}

.stat-item.downloads svg {
    color: #10b981;
}

/* Meta (Duration) */
.live-search-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
    min-width: 50px;
}

.live-search-duration {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary, #6b7280);
    background: var(--badge-bg, rgba(0, 0, 0, 0.05));
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

[data-theme="dark"] .live-search-duration,
.dark-mode .live-search-duration,
body.night .live-search-duration {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Loading State */
.live-search-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-secondary, #6b7280);
    gap: 12px;
}

.live-search-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color, rgba(0, 0, 0, 0.1));
    border-top-color: var(--primary-color, #6366f1);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty State */
.live-search-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-secondary, #6b7280);
    gap: 12px;
    text-align: center;
}

.live-search-empty svg {
    opacity: 0.4;
}

/* Simplebar customization inside autocomplete */
.live-search-results .simplebar-scrollbar::before {
    background: var(--primary-color, #6366f1);
    opacity: 0.5;
}

.live-search-results .simplebar-scrollbar.simplebar-visible::before {
    opacity: 0.7;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .live-search-autocomplete {
        left: 16px;
        right: 16px;
        width: auto;
        max-height: calc(100vh - 120px);
    }

    .live-search-autocomplete.active {
        display: flex !important;
    }
}

/* Tablet adjustments */
@media (min-width: 992px) and (max-width: 1200px) {
    .live-search-autocomplete {
        width: 340px;
    }
}

/* Visual connector to sidebar */
.live-search-autocomplete::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color, #6366f1) 0%, var(--secondary-color, #8b5cf6) 50%, transparent 100%);
    opacity: 0.8;
}

/* Animation for appearing */
.live-search-autocomplete.active {
    animation: slideInFromSidebar 0.25s ease-out;
}

@keyframes slideInFromSidebar {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Smooth transition for container positioning */
.sfy_search,
.head_search_cont {
    position: relative;
}

/* Ensure search form has relative positioning for dropdown */
.search_cont {
    position: relative;
}

/* Sidebar specific adjustments - fixed position next to sidebar */
.ma_sidebar .sfy_search {
    position: static;
    z-index: 100;
}

/* Header search specific adjustments - dropdown below */
.head_search_cont .live-search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    min-width: 400px;
    max-width: 500px;
    border-radius: 12px;
    border-left: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

.head_search_cont .live-search-autocomplete::before {
    display: none;
}

/* Playtag-style search menu */
.tag_search_menu.hd-search-menu {
    display: block;
    position: fixed;
    top: 0;
    bottom: 0;
    left: var(--dd-sidebar-w, 280px);
    width: min(480px, calc(100vw - var(--dd-sidebar-w, 280px)));
    max-width: 100vw;
    margin: 0;
    padding: 0;
    background: #15171b;
    color: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: 18px 0 45px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-28px);
    transition: opacity 0.2s ease, transform 0.24s ease, visibility 0.2s ease;
    z-index: 10000;
    overflow: hidden;
}

body.search_menu_open .tag_search_menu.hd-search-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.hd-search-menu-inner {
    height: 100%;
    padding: 34px 24px 24px;
    overflow-y: auto;
}

.hd-search-menu-inner h3 {
    margin: 0 0 22px;
    color: inherit;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
}

.hd-search-menu-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.hd-search-menu-close:hover {
    background: rgba(255, 255, 255, 0.14);
}

.hd-search-menu-field {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 58px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 0 8px 0 16px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.hd-search-menu-field:focus-within {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 61, 113, 0.72);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(255, 61, 113, 0.14);
}

.hd-search-menu-field svg {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.68);
}

.hd-search-menu-field input {
    width: 100%;
    height: 56px;
    border: 0;
    box-shadow: none;
    background: transparent;
    color: #fff;
    padding: 0 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    outline: 0;
}

.hd-search-menu-field input::placeholder {
    color: rgba(255, 255, 255, 0.52);
    font-weight: 500;
}

.hd-search-menu-submit {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: #ff3d71;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(255, 61, 113, 0.34);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.hd-search-menu-submit:hover,
.hd-search-menu-submit:focus {
    background: #ff5a86;
    box-shadow: 0 12px 26px rgba(255, 61, 113, 0.44);
}

.hd-search-menu-submit:active {
    transform: scale(0.96);
}

.hd-search-menu-submit svg {
    color: #fff;
}

.hd-search-menu-results {
    margin-top: 18px;
}

.tag_search_menu #live-search-autocomplete {
    position: static;
    width: 100%;
    max-height: none;
    margin-top: 0;
    border: 0;
    border-radius: 0;
    border-left: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.tag_search_menu #live-search-autocomplete::after {
    display: none;
}

.tag_search_menu #live-search-autocomplete::before {
    display: none;
}

.tag_search_menu .live-search-header {
    display: none !important;
}

.tag_search_menu .live-search-results {
    max-height: calc(100vh - 230px);
    gap: 8px;
    padding: 0 2px 16px 0;
}

.tag_search_menu .live-search-item {
    min-height: 76px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: none;
}

.tag_search_menu .live-search-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tag_search_menu .live-search-item:hover,
.tag_search_menu .live-search-item.focused {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 61, 113, 0.35);
}

.tag_search_menu .live-search-thumbnail {
    width: 54px;
    height: 54px;
}

.tag_search_menu .live-search-track-title {
    color: #fff;
}

.tag_search_menu .live-search-artist {
    color: rgba(255, 255, 255, 0.64);
}

.tag_search_menu .live-search-duration {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.72);
}

.tag_search_menu .live-search-loading,
.tag_search_menu .live-search-empty {
    padding: 28px 10px;
    color: rgba(255, 255, 255, 0.62);
}

.sidebar .sfy_search .hd-search-menu-toggle,
.header-search .hd-search-menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.08);
    text-align: left;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.68);
    font: inherit;
    outline: 0;
}

.header-search .hd-search-menu-toggle {
    width: calc(100% - 28px);
    max-width: 214px;
    margin: 8px auto;
}

.sidebar .sfy_search .hd-search-menu-toggle:hover,
.header-search .hd-search-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.sidebar .sfy_search .hd-search-menu-toggle span,
.header-search .hd-search-menu-toggle span {
    flex: 1 1 auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sidebar .sfy_search .hd-search-menu-toggle svg,
.header-search .hd-search-menu-toggle svg {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    opacity: 0.72;
}

html.day-mode .sidebar .sfy_search .hd-search-menu-toggle,
html.day-mode .header-search .hd-search-menu-toggle {
    background: #ededed;
    border-color: rgba(0, 0, 0, 0.08);
    color: #333;
}

html.day-mode .tag_search_menu.hd-search-menu {
    background: #fff;
    color: #15171b;
    box-shadow: 18px 0 45px rgba(0, 0, 0, 0.12);
}

html.day-mode .hd-search-menu-close {
    background: rgba(0, 0, 0, 0.06);
    color: #15171b;
}

html.day-mode .hd-search-menu-field {
    background: #f5f6f8;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.08);
}

html.day-mode .hd-search-menu-field:focus-within {
    background: #fff;
    border-color: rgba(255, 61, 113, 0.55);
    box-shadow: 0 18px 38px rgba(16, 24, 40, 0.11), 0 0 0 4px rgba(255, 61, 113, 0.12);
}

html.day-mode .hd-search-menu-field input {
    color: #15171b;
}

html.day-mode .hd-search-menu-field input::placeholder,
html.day-mode .hd-search-menu-field svg {
    color: rgba(0, 0, 0, 0.48);
}

html.day-mode .tag_search_menu #live-search-autocomplete {
    background: transparent;
    border-color: transparent;
}

html.day-mode .tag_search_menu .live-search-item {
    background: rgba(16, 24, 40, 0.035);
    border-color: rgba(16, 24, 40, 0.08);
}

html.day-mode .tag_search_menu .live-search-item:last-child {
    border-bottom-color: rgba(16, 24, 40, 0.08);
}

html.day-mode .tag_search_menu .live-search-item:hover,
html.day-mode .tag_search_menu .live-search-item.focused {
    background: #fff;
    border-color: rgba(255, 61, 113, 0.32);
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
}

html.day-mode .tag_search_menu .live-search-track-title {
    color: #15171b;
}

html.day-mode .tag_search_menu .live-search-artist,
html.day-mode .tag_search_menu .live-search-loading,
html.day-mode .tag_search_menu .live-search-empty {
    color: rgba(21, 23, 27, 0.62);
}

html.day-mode .tag_search_menu .live-search-duration {
    background: rgba(16, 24, 40, 0.07);
    color: rgba(21, 23, 27, 0.68);
}

@media (max-width: 991px) {
    .tag_search_menu.hd-search-menu {
        left: 0;
        width: 100vw;
    }

    .hd-search-menu-inner {
        padding: 28px 16px 20px;
    }
}

/* DemoDrop header search refinement */
body.search_menu_open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    pointer-events: none;
}

.tag_search_menu.hd-search-menu {
    width: min(430px, calc(100vw - var(--dd-sidebar-w, 280px))) !important;
    background: #17191c !important;
    border-right: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: 18px 0 42px rgba(0, 0, 0, 0.38) !important;
}

.tag_search_menu .hd-search-menu-inner {
    padding: 30px 22px 22px !important;
}

.tag_search_menu .hd-search-menu-inner h3 {
    margin: 0 48px 18px 0 !important;
    color: #fff !important;
    font-size: 21px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

.tag_search_menu .hd-search-menu-close {
    top: 18px !important;
    right: 18px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.055) !important;
    color: rgba(255, 255, 255, 0.72) !important;
}

.tag_search_menu .hd-search-menu-close:hover {
    background: rgba(255, 255, 255, 0.11) !important;
    color: #fff !important;
}

.tag_search_menu .hd-header-search {
    margin: 0 !important;
}

.tag_search_menu .hd-search-menu-field {
    min-height: 46px !important;
    padding: 0 5px 0 12px !important;
    border-radius: 4px !important;
    background: #101214 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

.tag_search_menu .hd-search-menu-field:focus-within {
    background: #111418 !important;
    border-color: rgba(227, 13, 127, 0.62) !important;
    box-shadow: 0 0 0 3px rgba(227, 13, 127, 0.13) !important;
}

.tag_search_menu .hd-search-menu-field > svg {
    width: 18px !important;
    height: 18px !important;
    color: rgba(255, 255, 255, 0.52) !important;
}

.tag_search_menu .hd-search-menu-field input.form-control {
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 8px 0 10px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 44px !important;
}

.tag_search_menu .hd-search-menu-field input.form-control::placeholder {
    color: rgba(255, 255, 255, 0.46) !important;
    font-weight: 400 !important;
}

.tag_search_menu .hd-search-menu-submit {
    width: 36px !important;
    height: 36px !important;
    border-radius: 4px !important;
    background: #e30d7f !important;
    box-shadow: none !important;
    color: #fff !important;
}

.tag_search_menu .hd-search-menu-submit:hover,
.tag_search_menu .hd-search-menu-submit:focus {
    background: #ff0084 !important;
    box-shadow: none !important;
    transform: none !important;
}

.tag_search_menu .hd-search-menu-results {
    margin-top: 14px !important;
}

.tag_search_menu #live-search-autocomplete {
    width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
}

.tag_search_menu .live-search-results {
    max-height: calc(100vh - 170px) !important;
    padding: 0 2px 18px 0 !important;
    gap: 6px !important;
    scrollbar-color: rgba(227, 13, 127, 0.45) transparent !important;
}

.tag_search_menu .live-search-results::-webkit-scrollbar {
    width: 6px !important;
}

.tag_search_menu .live-search-results::-webkit-scrollbar-thumb {
    background: rgba(227, 13, 127, 0.45) !important;
    border-radius: 99px !important;
}

.tag_search_menu .live-search-item {
    min-height: 66px !important;
    padding: 8px 10px !important;
    border-radius: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.045) !important;
    box-shadow: none !important;
}

.tag_search_menu .live-search-item:hover,
.tag_search_menu .live-search-item.focused {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(227, 13, 127, 0.42) !important;
}

.tag_search_menu .live-search-thumbnail {
    width: 48px !important;
    height: 48px !important;
    border-radius: 3px !important;
}

.tag_search_menu .live-search-track-title {
    max-width: 100% !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

.tag_search_menu .live-search-artist {
    margin-top: 3px !important;
    color: rgba(255, 255, 255, 0.58) !important;
    font-size: 12px !important;
}

.tag_search_menu .live-search-stats,
.tag_search_menu .live-search-meta {
    margin-top: 5px !important;
}

.tag_search_menu .live-search-duration {
    border-radius: 3px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.68) !important;
    font-size: 11px !important;
}

.tag_search_menu .live-search-loading,
.tag_search_menu .live-search-empty {
    padding: 24px 10px !important;
    color: rgba(255, 255, 255, 0.58) !important;
}

html.day-mode body.search_menu_open::before {
    background: rgba(0, 0, 0, 0.34);
}

html.day-mode .tag_search_menu.hd-search-menu {
    background: #fff !important;
    border-right-color: rgba(0, 0, 0, 0.08) !important;
}

html.day-mode .tag_search_menu .hd-search-menu-inner h3 {
    color: #15171b !important;
}

html.day-mode .tag_search_menu .hd-search-menu-close {
    background: rgba(0, 0, 0, 0.045) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: rgba(0, 0, 0, 0.62) !important;
}

html.day-mode .tag_search_menu .hd-search-menu-field {
    background: #f4f5f7 !important;
    border-color: rgba(0, 0, 0, 0.09) !important;
}

html.day-mode .tag_search_menu .hd-search-menu-field:focus-within {
    background: #fff !important;
    border-color: rgba(227, 13, 127, 0.48) !important;
}

html.day-mode .tag_search_menu .hd-search-menu-field input.form-control {
    color: #15171b !important;
}

html.day-mode .tag_search_menu .hd-search-menu-field input.form-control::placeholder,
html.day-mode .tag_search_menu .hd-search-menu-field > svg {
    color: rgba(21, 23, 27, 0.48) !important;
}

html.day-mode .tag_search_menu .live-search-item {
    background: rgba(16, 24, 40, 0.035) !important;
    border-color: rgba(16, 24, 40, 0.08) !important;
}

html.day-mode .tag_search_menu .live-search-item:hover,
html.day-mode .tag_search_menu .live-search-item.focused {
    background: #fff !important;
    border-color: rgba(227, 13, 127, 0.34) !important;
}

@media (max-width: 991px) {
    .tag_search_menu.hd-search-menu {
        left: 0 !important;
        width: 100vw !important;
    }

    .tag_search_menu .hd-search-menu-inner {
        padding: 26px 16px 18px !important;
    }

    .tag_search_menu .live-search-results {
        max-height: calc(100vh - 158px) !important;
    }
}

@media (max-width: 480px) {
    .tag_search_menu .hd-search-menu-inner h3 {
        font-size: 20px !important;
        margin-bottom: 16px !important;
    }

    .tag_search_menu .hd-search-menu-field {
        min-height: 44px !important;
    }

    .tag_search_menu .live-search-item {
        min-height: 62px !important;
        padding: 7px 8px !important;
    }

    .tag_search_menu .live-search-thumbnail {
        width: 44px !important;
        height: 44px !important;
    }
}
