/* ═══════════ Premium Glassmorphism Overrides ═══════════ */
.nav-main {
    /* position:fixed, not sticky — body/html use overflow-x:clip, which breaks
       sticky on several mobile browsers (navbar scrolls away with the page).
       JS below pads body by the nav height so content never hides under it. */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    border-bottom: 1px solid rgba(108, 92, 231, 0.18) !important;
    background: rgba(8, 8, 12, 0.94) !important; /* Slightly darker Obsidian */
}
[data-theme="light"] .nav-main {
    background: rgba(255, 255, 255, 0.94) !important;
    border-bottom: 1px solid rgba(108, 92, 231, 0.15) !important;
}
[data-theme="light"] .nav-main.nav-scrolled {
    background: rgba(250, 250, 255, 0.98) !important;
}

/* Logo Premium Animations */
@keyframes textShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
[data-theme="light"] .nav-logo-text {
    background: linear-gradient(90deg, #1a1a2e, #6c5ce7, #a29bfe, #1a1a2e) !important;
    background-size: 300% auto !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: textShine 6s ease infinite !important;
}
.nav-logo-text {
    background: linear-gradient(90deg, #ffffff, #a29bfe, #6c5ce7, #ffffff) !important;
    background-size: 300% auto !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: textShine 6s ease infinite !important;
}
.nav-logo:hover .nav-logo-icon {
    transform: rotate(360deg) scale(1.15) !important;
    box-shadow: 0 0 25px rgba(108, 92, 231, 0.8) !important;
}

/* Opaque Solid Dropdowns for Perfect Readability */
.nav-dropdown,
.nav-lang-dropdown,
.nav-more-dropdown,
.live-search-dropdown {
    background: #0c0c14 !important; /* Rich solid obsidian deep dark slate */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(108, 92, 231, 0.3) !important; /* Sleek violet brand border */
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(108, 92, 231, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.nav-dropdown.mobile-portal,
.nav-more-dropdown.mobile-portal {
    background: #0c0c14 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-top: 1px solid rgba(108, 92, 231, 0.4) !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
}

[data-theme="light"] .nav-dropdown,
[data-theme="light"] .nav-lang-dropdown,
[data-theme="light"] .nav-more-dropdown,
[data-theme="light"] .live-search-dropdown {
    background: #ffffff !important;
    border: 1px solid rgba(108, 92, 231, 0.25) !important;
    box-shadow: 0 20px 48px rgba(108, 92, 231, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

[data-theme="light"] .nav-dropdown.mobile-portal {
    background: #ffffff !important;
    border-top: 1px solid rgba(108, 92, 231, 0.2) !important;
}

/* Beautiful Interactive Dropdown Items */
.nav-dropdown-item,
.nav-lang-item,
.nav-more-item {
    position: relative;
    overflow: hidden;
    border-left: 3px solid transparent;
    padding-left: 18px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.nav-dropdown-item:hover,
.nav-lang-item:hover,
.nav-more-item:hover {
    background: linear-gradient(90deg, rgba(108, 92, 231, 0.12), rgba(162, 155, 254, 0.02)) !important;
    border-left-color: var(--accent, #6c5ce7) !important;
    color: #fff !important;
    transform: translateX(6px) !important;
    text-shadow: 0 0 10px rgba(162, 155, 254, 0.3);
}
[data-theme="light"] .nav-dropdown-item:hover,
[data-theme="light"] .nav-lang-item:hover,
[data-theme="light"] .nav-more-item:hover {
    background: linear-gradient(90deg, rgba(108, 92, 231, 0.08), rgba(162, 155, 254, 0.02)) !important;
    border-left-color: var(--accent, #6c5ce7) !important;
    color: #6c5ce7 !important;
    transform: translateX(6px) !important;
}

/* Account Dropdown Icons Color Coding & Glow */
.nav-dropdown-item i.bi-person { color: #40c4ff !important; filter: drop-shadow(0 0 3px rgba(64, 196, 255, 0.4)); }
.nav-dropdown-item i.bi-gem { color: #d18dff !important; filter: drop-shadow(0 0 3px rgba(209, 141, 255, 0.4)); }
.nav-dropdown-item i.bi-star { color: #ffb703 !important; filter: drop-shadow(0 0 3px rgba(255, 183, 3, 0.4)); }
.nav-dropdown-item i.bi-shield-lock-fill { color: #ff9f43 !important; filter: drop-shadow(0 0 3px rgba(255, 159, 67, 0.4)); }
.nav-dropdown-item i.bi-megaphone-fill { color: #ff5252 !important; filter: drop-shadow(0 0 3px rgba(255, 82, 82, 0.4)); }
.nav-dropdown-item i.bi-heart-fill { color: #ff4d6d !important; filter: drop-shadow(0 0 3px rgba(255, 77, 109, 0.4)); }
.nav-dropdown-item i.bi-inbox-fill { color: #06d6a0 !important; filter: drop-shadow(0 0 3px rgba(6, 214, 160, 0.4)); }
.nav-dropdown-item i.bi-disc-fill { color: #ff7043 !important; filter: drop-shadow(0 0 3px rgba(255, 112, 67, 0.4)); }
.nav-dropdown-item i.bi-clock-history { color: #54a0ff !important; filter: drop-shadow(0 0 3px rgba(84, 160, 255, 0.4)); }
.nav-dropdown-item i.bi-stars { color: #4df3ff !important; filter: drop-shadow(0 0 3px rgba(77, 243, 255, 0.4)); }
.nav-dropdown-item i.bi-github { color: #a29bfe !important; filter: drop-shadow(0 0 3px rgba(162, 155, 254, 0.4)); }
.nav-dropdown-item i.bi-stack { color: #ff9f43 !important; filter: drop-shadow(0 0 3px rgba(255, 159, 67, 0.4)); }
.nav-dropdown-item i.bi-soundwave { color: #fd79a8 !important; filter: drop-shadow(0 0 3px rgba(253, 121, 168, 0.4)); }
.nav-dropdown-item i.bi-vinyl-fill { color: #ffeaa7 !important; filter: drop-shadow(0 0 3px rgba(255, 234, 167, 0.4)); }

/* More Dropdown Icons Color Coding & Glow */
.nav-more-item i.bi-lightning-fill { color: #ffd32a !important; filter: drop-shadow(0 0 3px rgba(255, 211, 42, 0.4)); }
.nav-more-item i.bi-people-fill { color: #ff7f50 !important; filter: drop-shadow(0 0 3px rgba(255, 127, 80, 0.4)); }
.nav-more-item i.bi-graph-up { color: #2ed573 !important; filter: drop-shadow(0 0 3px rgba(46, 213, 115, 0.4)); }
.nav-more-item i.bi-fire { color: #ff4757 !important; filter: drop-shadow(0 0 3px rgba(255, 71, 87, 0.4)); }
.nav-more-item i.bi-collection-play-fill { color: #1e90ff !important; filter: drop-shadow(0 0 3px rgba(30, 144, 255, 0.4)); }
.nav-more-item i.bi-bar-chart-fill { color: #ffa502 !important; filter: drop-shadow(0 0 3px rgba(255, 165, 2, 0.4)); }
.nav-more-item i.bi-chat-dots-fill { color: #70a1ff !important; filter: drop-shadow(0 0 3px rgba(112, 161, 255, 0.4)); }
.nav-more-item i.bi-music-note-list { color: #1dd1a1 !important; filter: drop-shadow(0 0 3px rgba(29, 209, 161, 0.4)); }
.nav-more-item i.bi-cloud-arrow-up { color: #ff6b81 !important; filter: drop-shadow(0 0 3px rgba(255, 107, 129, 0.4)); }
.nav-more-item i.bi-speedometer2 { color: #a4b0be !important; filter: drop-shadow(0 0 3px rgba(164, 176, 190, 0.4)); }

.nav-dropdown-item:hover i,
.nav-more-item:hover i {
    filter: drop-shadow(0 0 8px currentColor) !important;
    transform: scale(1.2) !important;
    transition: all 0.2s ease !important;
}

/* Highly Interactive Search Form Design */
.nav-search-form {
    background: rgba(18, 18, 29, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.3s ease !important;
}
.nav-search-form:hover {
    border-color: rgba(108, 92, 231, 0.45) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 15px rgba(108, 92, 231, 0.15) !important;
}
[data-theme="light"] .nav-search-form {
    background: rgba(240, 240, 250, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06) !important;
}
[data-theme="light"] .nav-search-form:focus-within {
    background: #ffffff !important;
    border-color: var(--accent) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06), 0 0 25px rgba(108, 92, 231, 0.2) !important;
}
.nav-search-form:focus-within {
    border-color: var(--accent) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 25px rgba(108, 92, 231, 0.35) !important;
    background: #11111a !important;
}
.nav-search-kbd {
    background: rgba(108, 92, 231, 0.15) !important;
    color: #a29bfe !important;
    border: 1px solid rgba(108, 92, 231, 0.3) !important;
}

/* Stunning Bottom Navigation Pills (Capsules with glow) */
.nav-pill {
    position: relative !important;
    border: 1px solid transparent !important;
    border-radius: 20px !important;
    padding: 8px 16px !important;
    margin: 0 4px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.nav-pill:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}
.nav-pill-active {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2) 0%, rgba(162, 155, 254, 0.05) 100%) !important;
    border: 1px solid rgba(108, 92, 231, 0.4) !important;
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.25) !important;
    color: #fff !important;
}
[data-theme="light"] .nav-pill-active {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.12) 0%, rgba(162, 155, 254, 0.02) 100%) !important;
    border: 1px solid rgba(108, 92, 231, 0.25) !important;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.1) !important;
    color: var(--accent) !important;
}
/* Disable default bottom indicator line for capsule aesthetic */
.nav-pill::after {
    display: none !important;
}

/* ═══════════ Bell Notification Wiggle Animation ═══════════ */
@keyframes bellShake {
    0%, 100% { transform: rotate(0); }
    5% { transform: rotate(14deg); }
    10% { transform: rotate(-12deg); }
    15% { transform: rotate(10deg); }
    20% { transform: rotate(-8deg); }
    25% { transform: rotate(6deg); }
    30% { transform: rotate(-4deg); }
    35% { transform: rotate(2deg); }
    40% { transform: rotate(-1deg); }
    45% { transform: rotate(0); }
}
.nav-notif-bell.has-notifs i {
    display: inline-block;
    animation: bellShake 3s ease-in-out infinite;
    transform-origin: top center;
    color: #ff7675 !important;
    text-shadow: 0 0 8px rgba(255, 118, 117, 0.5);
}

/* ═══════════ Glowing Notification Badge Pulse ═══════════ */
@keyframes badgePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 118, 117, 0.8);
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 118, 117, 0);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 118, 117, 0);
        transform: scale(1);
    }
}
.nav-notif-badge {
    animation: badgePulse 2s infinite ease-in-out;
    background: #ff7675 !important;
    box-shadow: 0 2px 6px rgba(255, 118, 117, 0.4);
}

/* ═══════════ Notifications Dropdown ═══════════ */
.nav-notif-wrap {
    position: relative !important;
    display: inline-block !important;
}

.nav-notif-bell {
    background: transparent !important;
    border: none !important;
    padding: 8px !important;
    color: var(--text-secondary, #a4b0be) !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
}

.nav-notif-bell:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.nav-notif-badge {
    position: absolute !important;
    top: 4px !important;
    right: 4px !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    padding: 2px 5px !important;
    border-radius: 10px !important;
    line-height: 1 !important;
    color: #fff !important;
    min-width: 14px !important;
    text-align: center !important;
}

.nav-notif-dropdown {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    width: 380px !important;
    max-width: 90vw !important;
    background: #0c0c14 !important;
    border: 1px solid rgba(108, 92, 231, 0.35) !important;
    border-radius: 14px !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(108, 92, 231, 0.15) !important;
    margin-top: 10px !important;
    z-index: 1050 !important;
    display: none !important;
    overflow: hidden !important;
    flex-direction: column !important;
    transform: translateY(10px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.nav-notif-dropdown.show {
    display: flex !important;
    transform: translateY(0) !important;
}

.nav-notif-dropdown-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 18px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.nav-notif-dropdown-title {
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.nav-notif-dropdown-title i {
    color: var(--accent, #6c5ce7) !important;
}

.nav-notif-mark-all {
    background: transparent !important;
    border: none !important;
    color: var(--accent-light, #a29bfe) !important;
    font-size: 0.8rem !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.nav-notif-mark-all:hover {
    background: rgba(108, 92, 231, 0.15) !important;
    color: #fff !important;
}

.nav-notif-list {
    max-height: 320px !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Custom Scrollbar for Notifications List */
.nav-notif-list::-webkit-scrollbar {
    width: 6px !important;
}
.nav-notif-list::-webkit-scrollbar-track {
    background: transparent !important;
}
.nav-notif-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 3px !important;
}
.nav-notif-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.nav-notif-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 14px 18px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.nav-notif-item:hover {
    background: rgba(255, 255, 255, 0.02) !important;
}

.nav-notif-item.unread {
    background: rgba(108, 92, 231, 0.03) !important;
}
.nav-notif-item.unread:hover {
    background: rgba(108, 92, 231, 0.06) !important;
}

.nav-notif-item-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    font-size: 0.9rem !important;
    color: var(--text-secondary, #a4b0be) !important;
    transition: all 0.2s ease !important;
}

.nav-notif-item.unread .nav-notif-item-icon {
    background: rgba(108, 92, 231, 0.15) !important;
    color: var(--accent-light, #a29bfe) !important;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.2) !important;
}

/* Colors for specific types */
.nav-notif-item-icon.new_track { color: #ff7675 !important; background: rgba(255, 118, 117, 0.1) !important; }
.nav-notif-item-icon.membership { color: #fdcb6e !important; background: rgba(253, 203, 110, 0.1) !important; }
.nav-notif-item-icon.promo { color: #00cec9 !important; background: rgba(0, 206, 201, 0.1) !important; }
.nav-notif-item-icon.system { color: #a29bfe !important; background: rgba(162, 155, 254, 0.1) !important; }
.nav-notif-item-icon.follow { color: #e84393 !important; background: rgba(232, 67, 147, 0.1) !important; }
.nav-notif-item-icon.recommendation { color: #ffeaa7 !important; background: rgba(255, 234, 167, 0.1) !important; }

.nav-notif-item-body {
    flex-grow: 1 !important;
    min-width: 0 !important;
}

.nav-notif-item-title {
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    color: #fff !important;
    margin-bottom: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.nav-notif-item-message {
    font-size: 0.78rem !important;
    color: var(--text-secondary, #a4b0be) !important;
    line-height: 1.4 !important;
    margin-bottom: 4px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.nav-notif-item-time {
    font-size: 0.7rem !important;
    color: rgba(255, 255, 255, 0.3) !important;
}

.nav-notif-item-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #ff7675 !important;
    box-shadow: 0 0 8px #ff7675 !important;
    position: absolute !important;
    right: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.nav-notif-dropdown-footer {
    padding: 10px 18px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    text-align: center !important;
}

.nav-notif-view-all {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    color: var(--accent-light, #a29bfe) !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.nav-notif-view-all:hover {
    color: #fff !important;
    transform: translateX(3px) !important;
}

/* Empty State styling */
.nav-notif-empty {
    padding: 40px 20px !important;
    text-align: center !important;
    color: var(--text-secondary, #a4b0be) !important;
}

.nav-notif-empty i {
    font-size: 2.2rem !important;
    color: rgba(255, 255, 255, 0.15) !important;
    margin-bottom: 12px !important;
    display: block !important;
}

.nav-notif-empty-title {
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    margin-bottom: 4px !important;
}

.nav-notif-empty-text {
    font-size: 0.78rem !important;
    opacity: 0.7 !important;
}

/* Loading & Spinner */
.nav-notif-loading {
    padding: 40px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.nav-notif-spinner {
    width: 24px !important;
    height: 24px !important;
    border: 2px solid rgba(108, 92, 231, 0.1) !important;
    border-top: 2px solid var(--accent, #6c5ce7) !important;
    border-radius: 50% !important;
    animation: navNotifSpin 0.8s linear infinite !important;
}

@keyframes navNotifSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ═══════════ VIP Premium Avatar Styling & Border ═══════════ */
@keyframes vipAvatarPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.6), 0 2px 8px rgba(108, 92, 231, 0.3);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(108, 92, 231, 0), 0 2px 8px rgba(108, 92, 231, 0.3);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0), 0 2px 8px rgba(108, 92, 231, 0.3);
    }
}
.nav-avatar.vip-premium {
    position: relative;
    border: 2px solid rgba(162, 155, 254, 0.95);
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%) !important;
    animation: vipAvatarPulse 2.5s infinite ease-in-out;
}
.nav-avatar.vip-premium::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid rgba(162, 155, 254, 0.4);
    animation: rotateRing 8s linear infinite;
    pointer-events: none;
}
@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Glowing VIP status indicator dot */
.vip-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    background: #a29bfe; /* Violet light */
    border: 2px solid #0a0a0f;
    border-radius: 50%;
    box-shadow: 0 0 8px #6c5ce7;
    animation: vipDotPulse 1.5s infinite ease-in-out;
    z-index: 10;
}
@keyframes vipDotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* ═══════════ Live Search Dropdown ═══════════ */
.live-search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    min-width: 340px;
    max-height: 420px;
    overflow-y: auto;
    background: #0c0c14;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    z-index: 9999;
    padding: 6px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(108,92,231,0.3) transparent;
}
.live-search-dropdown.active { display: block; }
.live-search-dropdown::-webkit-scrollbar { width: 6px; }
.live-search-dropdown::-webkit-scrollbar-thumb { background: rgba(108,92,231,0.3); border-radius: 3px; }
.ls-section { padding: 4px 0; }
.ls-section + .ls-section { border-top: 1px solid rgba(255,255,255,0.06); }
.ls-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.35); padding: 6px 14px 4px; }
.ls-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: #fff;
}
.ls-item:hover, .ls-item.ls-active { background: rgba(108,92,231,0.15); }
.ls-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}
.ls-item-icon.artist { background: rgba(108,92,231,0.2); color: #a29bfe; }
.ls-item-icon.track { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.5); }
.ls-item-text { flex: 1; min-width: 0; }
.ls-item-title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-item-sub { font-size: 11px; color: rgba(255,255,255,0.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-item-meta { font-size: 10px; color: rgba(255,255,255,0.3); flex-shrink: 0; text-align: right; }
.ls-footer { padding: 8px 14px; text-align: center; border-top: 1px solid rgba(255,255,255,0.06); }
.ls-footer a { color: #a29bfe; font-size: 12px; text-decoration: none; font-weight: 500; }
.ls-footer a:hover { text-decoration: underline; }
.ls-empty { padding: 20px 14px; text-align: center; color: rgba(255,255,255,0.3); font-size: 13px; }
.ls-loading { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.ls-loading .ls-spin { display: inline-block; animation: lsDropSpin 0.7s linear infinite; }
@keyframes lsDropSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
/* Search icon spinner animation */
.nav-search-icon.ls-spin { animation: lsSpin 0.7s linear infinite; color: #a29bfe; }
@keyframes lsSpin { from { transform: translateY(-50%) rotate(0deg); } to { transform: translateY(-50%) rotate(360deg); } }
@media (max-width: 768px) {
    .live-search-dropdown { min-width: 0; left: 0; right: 0; max-height: 60vh; width: calc(100vw - 24px); max-width: 100vw; }
}
/* ═══════════ Language Toggle ═══════════ */
.nav-lang-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.nav-lang-btn {
    background: rgba(108,92,231,0.12);
    border: 1px solid rgba(108,92,231,0.25);
    border-radius: 8px;
    padding: 5px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    line-height: 1;
    color: #a29bfe;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s;
}
.nav-lang-btn:hover {
    background: rgba(108,92,231,0.15);
    border-color: rgba(108,92,231,0.3);
}
.nav-lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 170px;
    background: #0c0c14;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    z-index: 9999;
    padding: 4px 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s;
}
.nav-lang-wrap.open .nav-lang-dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.nav-lang-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 13px;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}
.nav-lang-item:hover {
    background: rgba(108,92,231,0.15);
    color: #fff;
}
.nav-lang-item.active {
    color: #a29bfe;
    font-weight: 600;
}
.nav-lang-item.active::after {
    content: '\f26e';
    font-family: 'bootstrap-icons';
    margin-left: auto;
    font-size: 12px;
}
.nav-lang-code {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;
    color: #a29bfe;
}
.nav-lang-item .nav-lang-code {
    background: rgba(108,92,231,0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
}
[data-theme="light"] .nav-lang-btn {
    background: rgba(108,92,231,0.08);
    border-color: rgba(108,92,231,0.2);
    color: #6c5ce7;
}
[data-theme="light"] .nav-lang-btn:hover {
    background: rgba(108,92,231,0.15);
}
[data-theme="light"] .nav-lang-code {
    color: #6c5ce7;
}
[data-theme="light"] .nav-lang-dropdown {
    background: #fff;
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
[data-theme="light"] .nav-lang-item {
    color: rgba(0,0,0,0.6);
}
[data-theme="light"] .nav-lang-item:hover {
    background: rgba(108,92,231,0.08);
    color: #333;
}
[data-theme="light"] .nav-lang-item.active {
    color: #6c5ce7;
}

/* ═══════════ Light Theme — Live Search ═══════════ */
[data-theme="light"] .live-search-dropdown {
    background: linear-gradient(160deg, #ffffff 0%, #f8f6ff 100%);
    border-color: rgba(108,92,231,0.1);
    box-shadow: 0 12px 40px rgba(108,92,231,0.1), 0 4px 12px rgba(0,0,0,0.05);
}
[data-theme="light"] .ls-section + .ls-section { border-top-color: rgba(0,0,0,0.06); }
[data-theme="light"] .ls-label { color: rgba(0,0,0,0.35); }
[data-theme="light"] .ls-item { color: #1a1a2e; }
[data-theme="light"] .ls-item:hover,
[data-theme="light"] .ls-item.ls-active { background: rgba(108,92,231,0.08); }
[data-theme="light"] .ls-item-icon.track { background: rgba(0,0,0,0.05); color: rgba(0,0,0,0.4); }
[data-theme="light"] .ls-item-sub { color: rgba(0,0,0,0.45); }
[data-theme="light"] .ls-item-meta { color: rgba(0,0,0,0.35); }
[data-theme="light"] .ls-footer { border-top-color: rgba(0,0,0,0.06); }
[data-theme="light"] .ls-empty { color: rgba(0,0,0,0.35); }
[data-theme="light"] .ls-loading { color: rgba(0,0,0,0.45); }

/* ── Mobile navbar: stop the search form cramping into one row ── */
@media (max-width: 768px) {
    /* Keep the form single-row (wrapping it collides with the pills row below).
       Free up space by hiding the less-essential controls on small screens —
       genre filtering stays available via the Genres page + desktop navbar. */
    .nav-search-form select.nav-filter-select,
    .nav-search-form .nav-reset-btn,
    .nav-search-kbd { display: none !important; }
    .nav-search-form .nav-search-box { flex: 1 1 auto; min-width: 0; }
    .nav-search-form .nav-filter-toggle,
    .nav-search-form .nav-search-btn { flex: 0 0 auto; min-width: 44px; min-height: 44px; }
    /* secondary nav row: fade hint when scrollable instead of hard text clipping */
    .nav-bottom { position: relative; }
    .nav-bottom::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 36px; z-index: 2; background: linear-gradient(90deg, transparent, rgba(10,10,15,0.97)); pointer-events: none; }
}
