    .mobile-nav-wrapper {
        position: fixed;
        top: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 30px);
        max-width: 600px;
        z-index: 1000;
    }
    .mobile-nav-pill {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: var(--nav-bg);
        padding: 8px 8px; /* inner spacing around buttons */
        border-radius: 60px;
        box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.1);
        transition: background-color 0.3s ease;
        z-index: 1005;
    }
    /* Genres Pill below main nav */
    .genre-nav-pill {
        background: linear-gradient(to bottom, #353535, #000000);
        border-radius: 60px;
        box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.2);
        margin-top: 10px;
        overflow: hidden;
    }
    .genre-nav-scroll {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px 7px;
        overflow-x: auto;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        cursor: grab; /* Indicate draggable */
    }
    .genre-nav-scroll.active {
        cursor: grabbing;
        cursor: -webkit-grabbing;
    }
    .genre-nav-scroll::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    .genre-nav-item {
        color: rgba(255, 255, 255, 0.75);
        text-decoration: none;
        font-weight: 500;
        font-size: 14px;
        padding: 10px 18px;
        border-radius: 30px;
        white-space: nowrap;
        transition: background-color 0.2s ease, color 0.2s ease;
    }
    .genre-nav-item.active {
        background-color: rgba(255, 255, 255, 0.2);
        color: rgb(255 255 255 / 75%);
        font-weight: 500;
    }
    .genre-nav-item:hover:not(.active) {
        background-color: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
    /* Style the buttons */
    .nav-icon-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background-color: var(--nav-btn-bg);
        color: white;
        border: none;
        cursor: pointer;
        transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s ease;
        flex-shrink: 0;
        padding: 0;
    }
    .nav-icon-btn:hover {
        background-color: var(--nav-btn-hover);
        transform: scale(1.05);
    }
    .nav-icon-btn:active {
        transform: scale(0.95);
    }
    /* Hamburger to X Animation */
    .hamburger-box {
        width: 20px;
        height: 14px;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }
    .hamburger-box span {
        display: block;
        width: 100%;
        height: 2.2px;
        background-color: white;
        border-radius: 2px;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                    opacity 0.2s ease, 
                    background-color 0.3s ease;
        transform-origin: center;
    }
    /* Active State (X) */
    .nav-icon-btn.active .line-1 {
        transform: translateY(6px) rotate(45deg);
    }
    .nav-icon-btn.active .line-2 {
        opacity: 0;
    }
    .nav-icon-btn.active .line-3 {
        transform: translateY(-6px) rotate(-45deg);
    }
    /* Logo container */
    .nav-logo-container {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-grow: 1;
        padding: 0 10px;
        gap: 10px;
    }
    .nav-logo-img {
        height: 26px;
        width: auto;
        /* Center alignment if needed */
        object-fit: contain;
    }
    .nav-version-badge {
        background-color: #DFF4E8;
        color: #00b73d;
        border: 1px solid #A2E2C0;
        padding: 2px 7px;
        border-radius: 12px;
        font-size: 10px;
        font-weight: 500;
        letter-spacing: -0.1px;
        user-select: none;
    }
    /* Dropdown Menu */
    .nav-dropdown {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        width: 220px;
        z-index: 1010;
        background-color: var(--nav-bg);
        border-radius: 30px;
        box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        /* Animation defaults */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px) scale(0.95);
        transform-origin: top right;
        transition: opacity 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), 
                    transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), 
                    visibility 0.3s ease;
        padding: 12px;
    }
    .nav-dropdown.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }
    .nav-dropdown-item {
        display: flex;
        align-items: center;
        gap: 20px; /* Increased gap for better clarity */
        padding: 12px 16px;
        color: var(--nav-text);
        text-decoration: none;
        font-weight: 450;
        font-size: 15px;
        border-radius: 40px;
        transition: background-color 0.2s ease, color 0.2s ease;
        margin-bottom: 4px;
    }
    .nav-dropdown-item:last-child {
        margin-bottom: 0;
    }
    .nav-dropdown-item:hover {
        background-color: var(--nav-item-hover);
    }
    .nav-dropdown-item.active {
        background-color: var(--nav-active-bg);
        color: var(--nav-active-text);
    }
    .nav-dropdown-item i,
    .nav-dropdown-item svg {
        width: 20px;
        height: 20px;
        stroke-width: 2.2px;
        flex-shrink: 0;
    }
    /* Search Expanded Box — sits flush inside the pill, no extra radius */
    .search-expanded-box {
        display: none;
        flex-grow: 1;
        align-items: center;
        /* No background/border-radius here — the pill itself turns blue */
        padding: 0 8px 0 12px;
        height: 44px;
        gap: 12px;
        color: white;
    }
    .search-expanded-box.active {
        display: flex;
        animation: fadeSlideIn 0.25s ease forwards;
    }
    /* Notification Box */
    .nav-notification-box {
        display: none;
        flex-grow: 1;
        align-items: center;
        justify-content: center;
        height: 44px;
        color: white;
        font-weight: 500;
        font-size: 14px;
        text-align: center;
        padding: 0 44px; /* Added padding to prevent text overlap with absolute buttons if any */
        position: relative;
    }
    .nav-notification-box.active {
        display: flex;
        animation: fadeSlideIn 0.25s ease forwards;
    }
    .nav-notify-close {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        transition: background 0.2s;
    }
    .nav-notify-close:hover {
        background: rgba(255, 255, 255, 0.35);
    }
    /* Pill turns blue + gains correct radius when search is open */
    .mobile-nav-pill.search-mode {
        background-color: var(--nav-btn-bg) !important;
        border-radius: 60px;          /* full pill — no results yet */
        transition: border-radius 0.2s ease, background-color 0.2s ease;
    }
    .mobile-nav-pill.notification-mode {
        background-color: #00b73d !important;
        border-radius: 60px;
        transition: background-color 0.2s ease;
    }
    /* When results dropdown is visible, flatten bottom of pill */
    .mobile-nav-pill.search-mode.search-active {
        border-radius: 22px 22px 0 0; /* Match search-dropdown top radius style but flatter */
    }
    /* Also flip the toggle button colours for contrast on blue/green bg */
    .mobile-nav-pill.search-mode .nav-icon-btn,
    .mobile-nav-pill.notification-mode .nav-icon-btn {
        background-color: rgba(255,255,255,0.2);
    }
    .mobile-nav-pill.search-mode .nav-icon-btn:hover,
    .mobile-nav-pill.notification-mode .nav-icon-btn:hover {
        background-color: rgba(255,255,255,0.35);
    }
    @keyframes fadeSlideIn {
        from { opacity: 0; transform: translateX(-8px); }
        to   { opacity: 1; transform: translateX(0); }
    }
    .se-input {
        flex-grow: 1;
        background: transparent;
        border: none;
        color: white;
        font-family: 'Google Sans', sans-serif;
        font-size: 15px;
        outline: none;
    }
    .se-input::placeholder {
        color: rgba(255, 255, 255, 0.8);
    }
    .se-close-btn {
        background: transparent;
        border: none;
        color: white;
        padding: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: -4px; /* nudge closer to edge to match original search btn pos */
    }
    /* Search Results Dropdown — flush under the pill */
    .search-dropdown {
        position: absolute;
        top: 100%;       /* start exactly at the pill bottom edge */
        left: 0;
        width: 100%;     /* match full pill width */
        background-color: white;
        border-radius: 0 0 22px 22px;
        box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        z-index: 1010;
        max-height: 70vh;
        overflow-y: auto;
    }
    .search-dropdown.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    /* Grid for search results */
    .search-results-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
    }
    @media (min-width: 768px) {
        .search-results-grid {
            grid-template-columns: repeat(2, 1fr);
            padding: 0 4px;
        }
    }
    .search-section-title {
        font-size: 13px;
        color: #606468;
        font-weight: 600;
        margin: 12px 16px 8px;
        text-transform: capitalize;
    }
    .search-result-item {
        display: flex;
        align-items: center;
        padding: 8px 16px;
        text-decoration: none;
        cursor: pointer;
        font-weight: 400 !important; /* Ensure the entire item defaults to normal weight */
    }
    .search-result-item:hover {
        background-color: #e6edfe53;
    }
    .sr-icon {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        background-color: #E6EDFE;
        color: #3060FF;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 12px;
        flex-shrink: 0;
    }
    .sr-icon svg {
        width: 18px;
        height: 18px;
        stroke-width: 2.2px;
    }
    .sr-details {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .sr-title {
        font-size: 14px;
        font-weight: 400 !important; /* Force normal weight on titles */
        color: #1A1A1A;
    }
    .sr-subtitle {
        font-size: 12px;
        color: #888;
    }
    .search-highlight {
        background-color: #E6EDFE;
        color: #3060FF;
        font-weight: 700 !important; /* Make only the blue text very bold */
        border-radius: 4px;
        padding: 1px 0;
    }
    .search-no-results {
        padding: 16px;
        text-align: center;
        color: #777;
        font-size: 14px;
    }
       /* --- Search Results Dropdown --- */
    .search-results-dropdown-container {
        position: relative;
        width: 100%;
    }
    .search-results-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 8px;
    }
    .search-result-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px;
        border-radius: 12px;
        background-color: #f7f7f7;
        text-decoration: none;
    }
    .search-result-item:hover {
        background-color: #eef3ff;
    }
    .sr-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background-color: #ffffff;
        color: #4a4a4a;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .sr-icon svg {
        width: 18px;
        height: 18px;
    }
    .sr-details {
        min-width: 0;
        flex-grow: 1;
    }
    .sr-title {
        font-size: 14px;
        font-weight: 600;
        color: #333;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .sr-subtitle {
        font-size: 12px;
        color: #666;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .search-highlight {
        color: #3060FF;
        font-weight: 700;
        background-color: rgba(48, 96, 255, 0.05);
        padding: 0 1px;
    }
    .search-section-title {
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        color: #999;
        margin: 12px 12px 4px;
        letter-spacing: 0.5px;
    } 
    .search-no-results {
        padding: 24px;
        text-align: center;
        color: #666;
        font-size: 14px;
    }
    /* Mobile adjustments for Search Grid */
    @media (max-width: 500px) {
        .search-results-grid {
            grid-template-columns: 1fr;
        }
    }