MevaSearch
UI Docs

Two ways to theme MevaSearch

Recolor MevaSearch in minutes with the theme builder, or redesign the whole interface with your own CSS. Pick the path that fits your idea.

Choose your theme type

1. Simple theme

Changes colors: background, cards, text, accent and more. Build it visually in the MevaSearch theme builder, no code needed, and share it on MevaSearch Marketplace.

Open the theme builder

2. Full Custom CSS theme

Changes the entire interface: layout, typography, components and animations. Turn on Simple-CSS mode for a blank canvas and write your own CSS using the reference below. Share it on your own website or store; MevaSearch Marketplace does not accept Custom CSS themes.

Start with Simple-CSS mode

Your theme, your rules

Themes you create are yours. MevaSearch takes no fees and no share, and you never need our permission.

The only condition: don’t pretend to be us. Do not present your theme as official or as made by MevaSearch. If your theme’s name or description includes “MevaSearch” and it has not been officially endorsed by us, state clearly that it is not affiliated with, endorsed by or supported by MevaSearch Team or WebOrbiton.

You can copy this disclaimer into your theme’s description:

This is an independent, community-made theme for MevaSearch. It is not affiliated with, endorsed by or supported by MevaSearch Team or WebOrbiton. MevaSearch is a product of WebOrbiton.

Simple-CSS mode

Simple-CSS mode turns off all MevaSearch styles on the results page, the homepage and the AI chat, and leaves clean, semantic HTML. Your custom CSS is the only design on the page, so you build from a blank canvas instead of overriding hundreds of default rules.

  1. Open Settings → Custom CSS.
  2. Turn on Simple-CSS mode and save.
  3. Paste your CSS into the Custom CSS field and open any search.

What stays on: a tiny functional base that keeps menus, popups and the floating search bar working (hidden by default, positioned when open), icons sized to 1.1em and images limited to their container. It also keeps the behavior that depends on CSS: the spin animation used by loading icons, the collapsed AI summary, hidden extra sitelinks, the play / pause icon swap and the font-loading placeholders. No colors, fonts, spacing or borders.

When Simple-CSS mode is on, the root element gets the class html.simple-css, so you can scope rules to it.

Escape hatch: add ?simple=0 to the page address to see the normal MevaSearch look for one page. Settings pages always keep their styles, so you can switch the mode off at any time.

Custom CSS

LimitValue
Size100 KB
Line length20,000 characters (minified CSS is fine)
StorageYour browser only (localStorage). Nothing is sent to our servers.

For your safety, MevaSearch removes @import, expression(), behavior, -moz-binding and url() values pointing to javascript:, vbscript: or data:text/html. Comments are stripped before the CSS is applied.

State classes

Scripts show and hide parts of the page by toggling these classes. Style them as you like, but keep the hidden state hidden, or closed menus will stay on screen.

SelectorMeaning
[hidden]Element is not shown. Never override with display.
#suggestionsList.visibleSearch suggestions are open.
#stickySearch.is-activeFloating search bar is shown after scrolling.
.domain-tooltip.is-openDomain info panel is open.
.addon-factcheck-menu.is-openAdd-on menu (Fact check, Security, Archive) is open.
.nav-btn.active, .time-btn.activeSelected tab and time filter.
.char-left.is-on, .is-warn, .is-overCharacter counter shown, near the limit, over the limit.
.notif-overlay.notif-overlay-show, .notif-dot.notif-dot-showNotifications panel open, unread dot shown.
.ai-followups.is-visibleFollow-up questions under an AI answer are ready.
.ai-summary-content.is-collapsed, .ai-show-more-btn.is-expandedAI summary shortened, or opened with “Show more”.
.sitelinks-row.sitelinks-collapsedExtra sitelinks (.sitelink-extra) are hidden until “More links” is clicked.
#suggestionsList li.active, .sg-type.is-currentSuggestion picked with the arrow keys, current tab in the suggestions.
.music-play.is-playingSong or episode preview is playing (shows .i-pause instead of .i-play).
.img-preview.is-openImage preview panel has finished opening.
.ai-ondemand-btn.is-loadingOn-demand AI summary is being written.

Page-level hooks

Set on <html> or <body> by MevaSearch. Use them to support light and dark mode and the user’s other settings.

SelectorElement
html.simple-cssSimple-CSS mode is on
html.darkDark mode. Toggled by the theme button, so always style both :root and html.dark.
html.meva-guestVisitor is not logged in (results show a sign-in prompt instead of results)
html[data-density]compact, comfortable or spacious (Settings → results density)
html[data-url-sep]Chosen separator style for the address path
html.hide-aiUser hid AI buttons
body.img-preview-openFull-size image preview is open (lock page scroll here if you like)

Class reference: shared header

Used on the homepage and the AI chat.

SelectorElement
.header, .header-left, .header-rightHeader bar and its two sides
#menuBtnMenu button
.logo-smallSmall “MevaSearch” logo link
#dropdown, .dropdown, .dropdown.openMain menu. Hidden until .open.
.dropdown-item, .item-label, .item-arrowMenu entry, its text and arrow
.dropdown-sepSeparator line in the menu
.notif-wrapper, #notifBtn, .notif-dotNotifications button and unread dot
#themeToggleLight / dark switch
.icon-btnAny round icon button in headers

Class reference: results page

These names are part of the public theme API. We keep them stable between releases; if one ever has to change, it will be listed here first.

Header and filters

SelectorElement
.search-headerResults header: logo, search form, actions
.search-logo, #logoIconLogo link and its icon
#headerForm, .search-form-wrapSearch form
.search-innerSearch box wrapper (also used on the homepage)
.search-lead, #dynamicSearchIconIcon at the start of the box (changes with the tab)
#searchInput, .search-header-inputSearch input
.mis-header-btn, .search-submitPhoto search and search buttons
.header-actionsAccount and theme buttons on the right
.search-nav, #mainNavTabs row
.nav-btn[data-type]Tabs: web, images, videos, news, links, music, podcasts
.time-filter-bar, .time-btnTime filters
.time-btn-adv, .adv-popAdvanced search button and its popup

Web results

SelectorElement
.contentEverything under the filters
#ms-tools, #ms-tools-premiumAnswer tools above results (calculator, converter, weather…)
#ai-response-box, .ai-response-box-innerAI summary above results and its box
.ai-response-box-header-left, .ai-summary-content, .ai-keySummary label, text and highlighted key phrases (<mark class="ai-key">)
.ai-show-more-btn, .ai-ondemand-btn“Show more / less” and “Summarize with AI” buttons
.results-meta, .state-msgResult count line, “No results” message
#resultsMainResults column
.result-cardOne result. Has data-host and data-source attributes.
.result-breadcrumbFavicon, address and result buttons
.result-faviconSite icon
.url-segOne segment of the address path
.result-title aTitle link
.result-desc, .result-ageDescription and its date
.result-body--has-thumb, .result-thumbResult with a thumbnail, and the thumbnail
.domain-info-btn, .copy-link-btn, .ghost-search-btnDomain info, copy link and CloakView buttons
.skeletonLoading placeholders

Sitelinks and add-ons

SelectorElement
.sitelinks-rowSitelinks container
.sitelink-item, .sitelink-item-title, .sitelink-item-descSitelink with title and description
.sitelink-favicon, .sitelink-arrowSitelink icon and arrow
.sitelinks-compact, .sitelink-pillRow of short sitelinks without a description
.sitelinks-more, .sitelinks-more-label“More links (n)” button
.addon-header-badges, .addon-footer-badgesAdd-on badges above or below a result
.addon-actions-above, .addon-actions-belowAdd-on buttons above or below a result
.domain-tooltip, .domain-tooltip-innerDomain info panel. Positioned on screen by script; do not put transform, filter or backdrop-filter on .result-card or its hover state, or the panel moves with the card.
.dtt-badge.badge-ok, .badge-warn, .badge-newDomain age badge: established, mid-age, new
.dtt-table, .dtt-wb-link, .dtt-wb-ageRegistrar, dates, first seen in the web archive
.dtt-actions, .dtt-more-link, .dtt-act, .dtt-act.is-on, .dtt-act-hideMore from this domain, Pin (on when pinned) and Hide
.dtt-loading, .dtt-errorLoading and “no data” messages

Blocks inside results

SelectorElement
.video-carousel, .vc-itemVideo carousel and one video
.commons-strip, .cs-itemFree-license images strip
.song-cardSong card
.discussions-block, .discussion-itemForum discussions
.related-searches-block, .related-chipRelated searches
.show-more-wrapper, .mojeek-show-more-btn“Show more results” button (shows a spinning icon while loading)

Images tab

SelectorElement
.img-grid, .img-tileImage grid and one image (opens the preview)
.img-tile-mediaImage box
.img-tile-title, .img-tile-meta, .img-tile-host, .img-tile-sizeTitle, site and size
.img-tile-rights, .img-tile-license, .img-tile-authorLicense and author of free images
.img-preview, .img-preview-backdrop, .img-preview-panelImage preview, its dim layer and side panel
.img-preview-head, .img-preview-host, .img-preview-nav, .img-preview-iconPreview header: site, previous / next / close
.img-preview-title, .img-preview-stage, .img-preview-metaTitle, large image, details
.img-preview-actions, .img-preview-btn, .img-preview-btn.is-donePage, Download and Copy buttons

Videos and news tabs

SelectorElement
.video-card, .video-thumb-wrap, .video-durationOne video, its thumbnail and length
.video-info, .video-title a, .video-meta, .video-descTitle, site and description
.news-featured-containerFeatured news above the list (empty when unused)
.news-card, .news-infoOne article
.news-source, .news-title a, .news-descSource with icon and age, title, description

Links tab

SelectorElement
.links-list, .link-rowNumbered list and one link
.link-head, .link-fav, .link-site, .link-site-name, .link-crumbSite icon, name and address
.link-title, .link-descTitle and description
.link-sitelinks, .link-sitelink, .link-sitelink-title, .link-sitelink-descSitelinks under a link
.links-more“More links” button

Music and podcasts tabs

SelectorElement
.music-section, .music-headingSection (Artists, Tracks, Albums, Episodes, Podcasts) and its title
.music-artists, .music-artist, .music-artist-img, .music-artist-nameArtists row (scrolls sideways, uses .vc-nav arrows)
.music-tracks, .music-track, .music-cover, .music-playTracks or episodes, cover and preview button
.music-track-text, .music-track-title, .music-meta, .music-durationTitle, artist or podcast, length
.music-albums, .music-album, .music-album-img, .music-album-titleAlbums grid
.podcast-shows, .podcast-show, .podcast-art, .podcast-infoPodcast list, one podcast and its cover
.podcast-title, .podcast-about, .podcast-linksName, description, Website and RSS links
.music-sourceData source line

Video carousel and free images strip

SelectorElement
.video-carousel, .video-carousel.commons-stripVideos row, and the free-license images row (same structure)
.vc-head, .vc-heading, .vc-toolsRow header, title and its buttons
.vc-more, .vc-nav, .vc-nav:disabled“All videos / More images” button and scroll arrows
.vc-trackHorizontal scroller (scroll position drives the arrows)
.vc-item, .vc-thumb, .vc-duration, .vc-playVideo tile, thumbnail, duration badge, play overlay
.vc-title, .vc-metaVideo title and source line
.cs-item, .cs-captionImage tile and its caption

Wikipedia info panel

SelectorElement
#wiki-infobox, #wiki-infobox.wi-visibleInfo panel. Shown only with .wi-visible; .wi-closing while closing.
#wiki-mobile-btn, #wiki-mobile-btn.btn-visible“Info” button on narrow screens
#wiki-overlay, #wiki-overlay.ov-visibleDim layer behind the panel on narrow screens
.wi-inner, .wi-drag-handle, .wi-header, .wi-badge, .wi-badge-dot, .wi-closePanel body, drag handle on phones, header with label and close button
.wi-scroll, #wikiContent, #wikiPlacesScrolling content: article, then place details
.wi-header-card, .wi-title-wrap, .wi-title, .wi-title-icon, .wi-websiteTitle with icon and official website
.wi-thumb, .wi-desc-card, .wi-descArticle image and summary
.wi-facts, .wi-fact-row, .wi-fact-label, .wi-fact-icon, .wi-fact-valueKey facts (founded, CEO, headquarters…)
.wi-socials, .wi-social, .wi-social-iconSocial profiles. The icon is set as --icon (and --brand color); draw it with mask: var(--icon).
.wi-ext-links, .wi-ext-link, .wi-linkOther profiles and the “Wikipedia →” link
.wi-live-grid, .wi-live-card, .wi-live-wide, .wi-live-label, .wi-live-row, .wi-live-icon, .wi-live-main, .wi-live-subWeather, local time and currency cards for places
.wi-places--place, .wi-places--country, .wi-places-head, .wi-places-title, .wi-places-grid, .wi-places-creditPlace photos section
.wi-place-tile, .role-map, .fit-contain, .wi-place-link, .wi-place-img, .wi-place-cap, .wi-place-srcOne photo or map, its caption and source link
.wi-nearby, .wi-chips, .wi-chipNearby places
#places-strip, #places-strip.ps-visiblePlaces strip (nearby, weather, time) for place searches
.ps-live, .ps-live-item, .ps-head, .ps-title, .ps-row, .ps-credit, .ps-chipsContents of the places strip

Floating search bar

SelectorElement
#stickySearch, #stickySearch.is-activeBar shown after scrolling down
.fsearch-inner-box, .fsearch-top-rowBar body and its first row
#stickyInput, .fsearch-input-field, .fsearch-submit-triggerInput and search button
.fsearch-nav-row, .fsearch-nav-btn, .fsearch-nav-btn.is-activeTabs inside the bar

Notifications

SelectorElement
.notif-overlay, .notif-overlay.notif-overlay-showFull-screen notifications window
.notif-overlay-inner, .notif-overlay-header, .notif-overlay-titleWindow, header and title
.notif-overlay-mark, .notif-overlay-close“Mark as read” and close buttons
.notif-overlay-body, .notif-overlay-body.notif-mobile-preview-activeList and preview columns. On phones one view at a time; the class switches to the preview.
.notif-overlay-list, .notif-item-title, .notif-item-preview, .notif-item-meta, .notif-unread-dotList and one notification
.notif-overlay-preview, .notif-preview-back, .notif-preview-title, .notif-preview-date, .notif-preview-desc, .notif-preview-linkOpened notification
.notif-empty, .notif-preview-emptyEmpty states

Search with a photo

SelectorElement
.mis-backdrop, .mis-modalPhoto search window (exists only while open)
.mis-head, .mis-ico, .mis-lead, .mis-pointsWindow header and intro
.mis-drop, .mis-drop.has-image, .mis-drop.mis-droppingDrop zone: empty, with a photo, while dragging
.mis-drop-text, .mis-drop-actions, .mis-btnDrop zone text and Paste / Choose file buttons
.mis-previewChosen photo
.mis-note, .mis-note-labelOptional question field
.mis-actions, .mis-error, .mis-busy, .mis-spinnerCancel / Search, error message, loading state
.mis-banner, .mis-banner-closePhoto summary above results

Class reference: homepage

Search area

SelectorElement
.mainPage content
.search-containerLogo, search box and button
.logo-wrap, .logo-lineLogo block and its row
.logo-icon, .logo-icon.showCustom logo image. Hidden until .show.
.logo, .orange-textLogo text and its highlighted letter
.taglineText under the logo
#searchForm, .search-wrapSearch form
.search-inner, .search-lead, .search-inputSearch box, its icon and input
.search-actions, .search-btn, .image-search-btn, .voice-btnPhoto, voice and search buttons
#suggestionsList, .suggestions-listSearch suggestions
.action-row, .action-btn“Search MevaSearch” button
.lang-row, .lang-label, .lang-links, .lang-linkLanguage line

Quick links

SelectorElement
.ql-bar, .ql-gridQuick links area and grid
.ql-itemOne quick link
.ql-icon-wrap, .ql-icon-img, .ql-icon-letterIcon box, site icon, letter fallback
.ql-labelLink name
.ql-item-actions, .ql-act-btn, .ql-edit-btn, .ql-del-btnEdit and delete buttons (shown on hover)
.ql-add-wrap, .ql-add-icon“Add” tile
.ql-modal-backdrop, .ql-modalQuick link editor (exists only while open)

Widgets and footer

SelectorElement
#home-widgetsWidgets area (weather, currencies, news)
.hw-headWidget heading
.hw-now, .hw-now-icon, .hw-cond, .hw-days, .hw-dayWeather: now, condition, daily forecast
.hw-fx-list, .hw-fx-row, .hw-fx-code, .hw-fx-value, .hw-fx-baseCurrency rates
.hw-cats, .hw-cat, .hw-news-list, .hw-articleNews categories and list
.hw-article-img, .hw-article-body, .hw-article-title, .hw-article-metaOne news article
.hw-noteSmall note under a widget
.footer, .footer-inner, .footer-links, .footer-linkFooter and its links
.customize-fabRound “Customize” button in the corner

Class reference: AI chat

SelectorElement
.chat-messages, .chat-messages-innerConversation
.chat-empty-stateStart screen before the first message
.chat-user-msg, .chat-user-imagesYour message and attached images
.ai-response-box-inner, .ai-answer-textAI answer
.ai-sources-block, .ai-source-card, .ai-source-titleSources under the answer
.ai-followups, .ai-followup-chipFollow-up questions
.chat-input-bar, .chat-input-wrap, .chat-textareaMessage box
.chat-attach-btn, .chat-send-btn, .chat-new-btnAttach, send and new chat buttons
.chat-memory-bar“Remembers this conversation” bar
.chat-consent-overlay, .chat-consentConsent dialog (exists only while open)

Class reference: search suggestions

Used on the homepage and the results page.

SelectorElement
#suggestionsList li, li.activeOne suggestion, the one picked with the arrow keys
.sg-icon, .sg-textIcon and text of a suggestion
.sg-fillButton that copies a suggestion into the search box
.suggestion-historySuggestion from your local search history
.suggestion-bang, .sg-bang-nameBang shortcut and its site name
.suggestion-calc, .suggestion-weather, .sg-weather-placeInstant calculator and weather answers
.sg-types, .sg-type, .sg-type.is-currentTab buttons under the suggestions

Loading placeholders (ghost)

While results load, MevaSearch shows gray placeholders shaped like the real content. Give them a soft background and a shimmer animation; the real content replaces them on its own.

SelectorElement
.skeletonEvery placeholder. Widths are set inline as percentages; set the height and display yourself.
.sk-meta, .sk-heading, .sk-title, .sk-line, .sk-urlResult count, section title, title, text line, address
.sk-fav, .sk-thumb, .sk-source, .sk-site, .sk-crumb, .sk-link-favSite icon, thumbnail and news / links details
.img-tile-skeleton, .sk-img-line, .sk-img-metaImage tile placeholder (its box also has .img-tile-media)
.sk-video-thumb, .sk-coverVideo thumbnail and music cover placeholders
.img-shimmerImage box shown before the image arrives
.guest-cta, .guest-cta-title, .guest-cta-desc, .guest-cta-btn, .guest-cta-btn.primarySign-in card shown to visitors on the results page
.guest-ghost, .guest-sec, .guest-sec-title, .guest-row-videos, .guest-row-images, .guest-tile, .guest-media, .guest-line, .guest-discussionPreview of results behind the sign-in card
.tg-layer, .tg-bar, .tg-layer.tg-outText placeholders shown when fonts load slowly. Bars get the text color inline; change their opacity or shape, not their position.

Result card structure

Simplified HTML of one web result. Elements in brackets appear only when the user enables them or when data exists.

<div class="result-card" data-host="example.com" data-source="brave">
  <div class="result-breadcrumb">
    <img class="result-favicon">
    <i class="url-seg">example.com</i> <i class="url-seg">blog</i>
    <button class="domain-info-btn"></button>
    <button class="copy-link-btn"></button>
    [<a class="ghost-search-btn"></a>]
    <div class="domain-tooltip">…</div>
  </div>
  <div class="result-body [result-body--has-thumb]">
    <div class="result-body-text">
      <div class="result-title"><a href="…">Title</a></div>
      <div class="result-desc">[<span class="result-age">2 days ago</span> ·] Description</div>
      [<div class="sitelinks-row">
        <a class="sitelink-item">
          <span class="sitelink-item-title">Pricing</span>
          <span class="sitelink-item-desc">Plans and prices</span>
        </a>
      </div>]
    </div>
    [<a class="result-thumb-link"><img class="result-thumb"></a>]
  </div>
</div>

Tips

Starter theme

A small, readable base to copy and grow. Paste it into Custom CSS with Simple-CSS mode on.

html.simple-css body {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px;
  font: 16px/1.6 Georgia, serif;
  background: #fffdf7;
  color: #222;
}

.nav-btn, .time-btn {
  border: 0;
  background: none;
  padding: 4px 8px;
  cursor: pointer;
}

.nav-btn.active, .time-btn.active {
  border-bottom: 2px solid #c2410c;
}

.result-card {
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.result-title a {
  font-size: 1.15rem;
  color: #c2410c;
}

.result-desc {
  color: #555;
}

Full example: Aurora

A complete theme for the results page (every tab: web, images, videos, news, links, music and podcasts), the homepage and the AI chat, with light and dark mode, a phone layout and themed loading placeholders. Copy it as a base for your own design: change the variables at the top to recolor everything.

/* Aurora — example theme for MevaSearch Simple-CSS mode (results, homepage, AI chat) */
:root {
  color-scheme: light;
  --a-bg: #f6f7fb;
  --a-card: rgba(255, 255, 255, .78);
  --a-card-hover: #ffffff;
  --a-solid: #ffffff;
  --a-line: rgba(15, 23, 42, .09);
  --a-text: #141824;
  --a-muted: #5d6475;
  --a-accent: #6d5dfc;
  --a-accent-2: #0ea5e9;
  --a-grad: linear-gradient(135deg, var(--a-accent), var(--a-accent-2));
  --a-glow-1: rgba(109, 93, 252, .16);
  --a-glow-2: rgba(14, 165, 233, .12);
  --a-pop: rgba(255, 255, 255, .96);
  --a-shadow: 0 10px 40px rgba(15, 23, 42, .08);
  --a-ghost: rgba(15, 23, 42, .07);
  --a-ghost-hi: rgba(15, 23, 42, .13);
  --a-radius: 16px;
}

html.dark {
  color-scheme: dark;
  --a-bg: #0b0d12;
  --a-card: rgba(255, 255, 255, .045);
  --a-card-hover: rgba(255, 255, 255, .075);
  --a-solid: #14161e;
  --a-line: rgba(255, 255, 255, .09);
  --a-text: #e8eaf0;
  --a-muted: #8b90a0;
  --a-accent: #8b7bff;
  --a-accent-2: #38bdf8;
  --a-glow-1: rgba(139, 123, 255, .22);
  --a-glow-2: rgba(56, 189, 248, .14);
  --a-pop: rgba(20, 22, 30, .96);
  --a-shadow: 0 10px 40px rgba(0, 0, 0, .4);
  --a-ghost: rgba(255, 255, 255, .06);
  --a-ghost-hi: rgba(255, 255, 255, .12);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
* { scrollbar-width: thin; scrollbar-color: var(--a-line) transparent; }
html.simple-css body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(900px 500px at 15% -10%, var(--a-glow-1), transparent 60%),
    radial-gradient(700px 420px at 95% 10%, var(--a-glow-2), transparent 60%),
    var(--a-bg);
  background-attachment: fixed;
  color: var(--a-text);
  font: 15px/1.6 Inter, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--a-accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; }
::selection { background: var(--a-glow-1); }
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  color: var(--a-text);
  background: var(--a-card);
  border: 1px solid var(--a-line);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, filter .2s;
}
button:hover { background: var(--a-card-hover); border-color: var(--a-accent); }
button:disabled { opacity: .6; cursor: default; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--a-accent); outline-offset: 2px; }
input, textarea { font: inherit; color: var(--a-text); background: transparent; border: 0; outline: none; }
input::placeholder, textarea::placeholder { color: var(--a-muted); }
.icon-btn { width: 38px; height: 38px; padding: 0; }
mark { padding: 0 3px; border-radius: 4px; background: var(--a-glow-1); color: inherit; }

/* Accent buttons keep their gradient on hover */
.search-submit, .search-actions .search-btn:last-child, .action-btn, .chat-send-btn,
.fsearch-submit-trigger, .mis-actions .mis-btn:last-child, .guest-cta-btn.primary {
  border: 0;
  background: var(--a-grad);
  color: #fff;
}
.search-submit:hover, .search-actions .search-btn:last-child:hover, .action-btn:hover, .chat-send-btn:hover,
.fsearch-submit-trigger:hover, .mis-actions .mis-btn:last-child:hover, .guest-cta-btn.primary:hover {
  background: var(--a-grad);
  filter: brightness(1.08);
  text-decoration: none;
}

/* Shared header (homepage, AI chat) */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.header-left, .header-right { display: flex; align-items: center; gap: 10px; }
.logo-small { font-weight: 700; color: var(--a-text); }
.dropdown {
  min-width: 230px;
  margin-top: 8px;
  padding: 6px;
  background: var(--a-pop);
  backdrop-filter: blur(20px);
  border: 1px solid var(--a-line);
  border-radius: 14px;
  box-shadow: var(--a-shadow);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--a-text);
}
.dropdown-item:hover { background: var(--a-card-hover); text-decoration: none; }
.dropdown-item .item-label { flex: 1; }
.dropdown-item .item-arrow { opacity: .4; }
.dropdown-sep { height: 1px; margin: 6px 4px; background: var(--a-line); }
#notifBtn { position: relative; }
.notif-dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; }

/* Search box (homepage, results) */
.search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 18px;
  background: var(--a-card);
  border: 1px solid var(--a-line);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: var(--a-shadow);
  transition: border-color .2s, box-shadow .2s;
}
.search-inner:focus-within {
  border-color: var(--a-accent);
  box-shadow: 0 0 0 4px var(--a-glow-1), var(--a-shadow);
}
.search-inner input { flex: 1; min-width: 0; font-size: 1.05rem; padding: 6px 0; }
.search-lead { display: inline-flex; color: var(--a-muted); }
.search-actions { display: flex; gap: 6px; }
.search-btn, .search-submit, .mis-header-btn { width: 40px; height: 40px; padding: 0; flex-shrink: 0; }

/* Suggestions */
.suggestions-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 6px;
  background: var(--a-pop);
  backdrop-filter: blur(20px);
  border: 1px solid var(--a-line);
  border-radius: 16px;
  box-shadow: var(--a-shadow);
}
.suggestions-list li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; cursor: pointer; }
.suggestions-list li:hover, .suggestions-list li.active, .suggestions-list li[aria-selected="true"] { background: var(--a-card-hover); }
.sg-icon { display: inline-flex; flex-shrink: 0; color: var(--a-muted); }
.sg-text { flex: 1; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; }
.sg-bang-name, .sg-weather-place { padding: 0 8px; border-radius: 999px; background: var(--a-glow-1); font-size: .78rem; color: var(--a-muted); }
.suggestion-history .sg-icon, .suggestion-history .sg-text { color: var(--a-accent); }
.sg-fill { width: 30px; height: 30px; padding: 0; border: 0; background: none; color: var(--a-muted); }
.sg-types { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 6px 4px; margin-top: 4px; border-top: 1px solid var(--a-line); }
.sg-type { padding: 5px 12px; font-size: .85rem; }
.sg-type.is-current { color: var(--a-text); background: var(--a-glow-1); border-color: transparent; }

/* Homepage */
.main { max-width: 760px; margin: 0 auto; padding: 8vh 20px 40px; }
.search-container { position: relative; }
.logo-wrap { text-align: center; margin-bottom: 28px; }
.logo-line { display: flex; align-items: center; justify-content: center; gap: 12px; }
.logo-icon { width: 48px; height: 48px; }
.logo { margin: 0; font-size: clamp(2.4rem, 7vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; }
.orange-text { background: var(--a-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { margin: 6px 0 0; color: var(--a-muted); }
.action-row { display: flex; justify-content: center; margin-top: 18px; }
.action-btn { padding: 10px 22px; font-weight: 600; }
.lang-row { display: flex; justify-content: center; gap: 6px; margin-top: 14px; color: var(--a-muted); font-size: .88rem; }
.lang-label, .lang-links { margin: 0; }

/* Quick links */
.ql-bar { margin-top: 34px; }
.ql-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.ql-item, .ql-add-wrap {
  position: relative;
  width: 92px;
  padding: 12px 6px 10px;
  text-align: center;
  border-radius: 16px;
  cursor: pointer;
  transition: background .2s;
}
.ql-item:hover, .ql-add-wrap:hover { background: var(--a-card); }
.ql-item a { color: var(--a-text); text-decoration: none; }
.ql-icon-wrap {
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--a-card);
  border: 1px solid var(--a-line);
  overflow: hidden;
}
.ql-icon-img { width: 26px; height: 26px; }
.ql-icon-letter { font-weight: 700; color: var(--a-accent); }
.ql-label { display: block; font-size: .82rem; color: var(--a-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ql-add-icon { width: 22px; height: 22px; color: var(--a-muted); }
.ql-item-actions { position: absolute; top: 2px; right: 2px; display: flex; gap: 2px; }
.ql-act-btn { width: 24px; height: 24px; padding: 0; font-size: .7rem; }
.ql-modal-backdrop { display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(4px); }
.ql-modal { width: min(420px, 100%); padding: 20px; background: var(--a-pop); border: 1px solid var(--a-line); border-radius: 18px; box-shadow: var(--a-shadow); }
.ql-modal input { width: 100%; margin: 6px 0 12px; padding: 10px 12px; border: 1px solid var(--a-line); border-radius: 10px; }

/* Homepage widgets */
#home-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 30px; }
#home-widgets > * { padding: 16px; background: var(--a-card); border: 1px solid var(--a-line); border-radius: var(--a-radius); }
.hw-head { font-weight: 600; margin-bottom: 8px; }
.hw-days, .hw-fx-list, .hw-news-list { display: grid; gap: 6px; }
.hw-article { display: flex; gap: 10px; color: var(--a-text); }
.hw-article-img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
.hw-article-meta, .hw-note { font-size: .8rem; color: var(--a-muted); }

/* Footer */
.footer { padding: 30px 20px 40px; text-align: center; color: var(--a-muted); font-size: .88rem; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0; }
.footer-link { color: var(--a-muted); }
.customize-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--a-pop);
  border: 1px solid var(--a-line);
  box-shadow: var(--a-shadow);
}

/* Results: header */
.search-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 680px) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px 20px 6px;
}
.search-logo { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; color: var(--a-text); }
.search-logo:hover { text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.search-nav, .time-filter-bar {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 760px;
  margin: 0 auto;
  padding: 6px 16px;
}
.nav-btn, .time-btn {
  flex-shrink: 0;
  border: 0;
  background: none;
  color: var(--a-muted);
  border-radius: 10px;
  padding: 6px 12px;
}
.nav-btn:hover, .time-btn:hover { background: var(--a-card); color: var(--a-text); }
.nav-btn.active, .time-btn.active { color: var(--a-text); background: var(--a-glow-1); }
.time-btn-x { margin-left: 4px; opacity: .6; }

/* Results: content */
.content { max-width: 760px; margin: 0 auto; padding: 10px 16px 100px; }
#resultsMain { padding: 0; }
.results-meta { margin: 6px 4px 12px; font-size: .85rem; color: var(--a-muted); }
.state-msg { padding: 40px 20px; text-align: center; color: var(--a-muted); }
.state-msg strong { color: var(--a-text); }

/* AI summary */
#ai-response-box .ai-response-box-inner {
  margin: 4px 0 18px;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--a-glow-1), var(--a-glow-2)), var(--a-card);
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
}
.ai-response-box-header-left { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; color: var(--a-muted); }
.ai-summary-content { position: relative; line-height: 1.7; transition: max-height .4s ease; }
.ai-summary-content.is-collapsed { -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.ai-summary-content strong { font-weight: 600; }
.ai-key { background: none; padding: 0; color: var(--a-text); font-weight: 600; box-shadow: inset 0 -.45em 0 var(--a-glow-1); }
.ai-show-more-btn { margin-top: 10px; padding: 5px 14px; font-size: .88rem; }
.ai-show-more-btn svg { transition: transform .2s; }
.ai-show-more-btn.is-expanded svg { transform: rotate(180deg); }
.ai-ondemand-btn.is-loading svg { animation: spin 1s linear infinite; }

/* Results: web cards */
.result-card {
  padding: 18px 20px;
  margin-bottom: 12px;
  background: var(--a-card);
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.result-card:hover { background: var(--a-card-hover); border-color: var(--a-accent); box-shadow: 0 0 0 3px var(--a-glow-1), var(--a-shadow); }
.result-breadcrumb { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .82rem; color: var(--a-muted); }
.result-breadcrumb button, .ghost-search-btn { display: inline-flex; padding: 2px 6px; border: 0; background: none; color: var(--a-muted); }
.result-breadcrumb button:hover, .ghost-search-btn:hover { color: var(--a-accent); background: none; }
.result-favicon, .sitelink-favicon { border-radius: 6px; background: #fff; padding: 2px; }
.url-seg { font-style: normal; }
.url-seg + .url-seg::before { content: " › "; opacity: .5; }
.result-title a { display: block; margin: 6px 0 4px; font-size: 1.15rem; font-weight: 600; color: var(--a-text); }
.result-title a:hover { color: var(--a-accent); text-decoration: none; }
.result-desc { color: var(--a-muted); }
.result-desc b, .result-desc strong { color: var(--a-text); font-weight: 600; }
.result-body--has-thumb { display: flex; gap: 14px; }
.result-body-text { flex: 1; min-width: 0; }
.result-thumb-link { flex-shrink: 0; align-self: flex-start; display: block; border-radius: 12px; overflow: hidden; }
.result-thumb-link.img-shimmer { background: none; }
.result-thumb { width: 120px; height: 80px; object-fit: cover; border-radius: 12px; background: #fff; }

/* Sitelinks */
.sitelinks-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 14px; }
.sitelinks-compact { display: flex; flex-wrap: wrap; gap: 6px; }
.sitelink-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--a-line); border-radius: 12px; color: var(--a-text); }
.sitelink-item:hover { border-color: var(--a-accent); text-decoration: none; }
.sitelink-item-title { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.sitelink-arrow { opacity: .5; }
.sitelink-item-desc { font-size: .82rem; color: var(--a-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sitelink-pill { display: inline-block; max-width: 100%; padding: 4px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid var(--a-line); border-radius: 999px; font-size: .85rem; color: var(--a-text); }
.sitelink-pill:hover { border-color: var(--a-accent); text-decoration: none; }
.sitelinks-more { justify-self: start; font-size: .85rem; color: var(--a-muted); }

/* Blocks inside results */
.video-carousel, .discussions-block, .related-searches-block { margin: 16px 0; padding: 16px; background: var(--a-card); border: 1px solid var(--a-line); border-radius: var(--a-radius); }
.discussion-item { display: block; padding: 10px 0; border-top: 1px solid var(--a-line); color: var(--a-text); }
.related-chip { margin: 4px 6px 0 0; }
.show-more-wrapper { text-align: center; margin: 20px 0; }
.mojeek-show-more-btn, .links-more { padding: 10px 22px; }

/* Popups keep working, just look nicer */
.domain-tooltip, .addon-factcheck-menu, .adv-pop {
  background: var(--a-pop);
  backdrop-filter: blur(20px);
  border: 1px solid var(--a-line);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--a-shadow);
}

/* Domain info panel (the "i" button) */
.domain-tooltip { width: min(340px, calc(100vw - 20px)); padding: 14px; font-size: .85rem; line-height: 1.45; color: var(--a-text); }
.domain-info-btn.is-active { color: var(--a-accent); }
.dtt-loading, .dtt-error { display: block; color: var(--a-muted); }
.dtt-badge { display: inline-flex; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.dtt-badge.badge-ok { background: rgba(34, 197, 94, .14); color: #16a34a; }
.dtt-badge.badge-warn { background: rgba(234, 179, 8, .16); color: #ca8a04; }
.dtt-badge.badge-new { background: rgba(239, 68, 68, .14); color: #dc2626; }
html.dark .dtt-badge.badge-ok { color: #4ade80; }
html.dark .dtt-badge.badge-warn { color: #facc15; }
html.dark .dtt-badge.badge-new { color: #f87171; }
.dtt-table { width: 100%; border-collapse: collapse; }
.dtt-table td { padding: 6px 0; vertical-align: top; border-top: 1px solid var(--a-line); }
.dtt-table tr:first-child td { border-top: 0; }
.dtt-table td:first-child { width: 44%; padding-right: 10px; color: var(--a-muted); }
.dtt-table td:last-child { font-weight: 600; overflow-wrap: anywhere; }
.dtt-table code { padding: 1px 6px; border-radius: 6px; background: var(--a-glow-1); font-size: .75rem; font-weight: 500; }
.dtt-wb-age { margin-left: 6px; font-weight: 400; color: var(--a-muted); }
.dtt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--a-line); }
.dtt-more-link { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; font-weight: 600; }
.dtt-act { padding: 4px 10px; font-size: .8rem; }
.dtt-act.is-on { color: var(--a-accent); border-color: var(--a-accent); background: var(--a-glow-1); }
.dtt-act-hide:hover { color: #ef4444; border-color: #ef4444; }

/* Images tab */
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.img-tile { display: flex; flex-direction: column; min-width: 0; padding: 6px 6px 10px; border-radius: 14px; color: var(--a-text); transition: background .2s; }
.img-tile:hover { background: var(--a-card-hover); text-decoration: none; }
.img-tile-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--a-ghost); }
.img-tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.img-tile:hover .img-tile-media img { transform: scale(1.04); }
.img-tile-title { margin-top: 8px; font-size: .85rem; font-weight: 600; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.img-tile-meta, .img-tile-rights { display: flex; gap: 6px; font-size: .75rem; color: var(--a-muted); white-space: nowrap; overflow: hidden; }
.img-tile-host { overflow: hidden; text-overflow: ellipsis; }
.img-tile-license { padding: 0 6px; border-radius: 6px; background: var(--a-glow-2); }

/* Image preview */
.img-preview-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); backdrop-filter: blur(4px); }
.img-preview-panel {
  position: fixed;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: min(520px, calc(100% - 24px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  overflow-y: auto;
  background: var(--a-pop);
  backdrop-filter: blur(20px);
  border: 1px solid var(--a-line);
  border-radius: 20px;
  box-shadow: var(--a-shadow);
}
.img-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.img-preview-host { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .85rem; color: var(--a-muted); }
.img-preview-fav { width: 18px; height: 18px; border-radius: 4px; }
.img-preview-nav { display: flex; gap: 6px; }
.img-preview-icon { width: 34px; height: 34px; padding: 0; }
.img-preview-title { margin: 0; font-size: 1.05rem; }
.img-preview-stage { display: grid; place-items: center; min-height: 200px; border-radius: 14px; background: var(--a-ghost); overflow: hidden; }
.img-preview-stage img { max-height: 60vh; object-fit: contain; }
.img-preview-meta { font-size: .82rem; color: var(--a-muted); }
.img-preview-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.img-preview-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--a-line); border-radius: 999px; background: var(--a-card); color: var(--a-text); font-size: .88rem; }
.img-preview-btn:hover { border-color: var(--a-accent); text-decoration: none; }
.img-preview-btn.is-done { color: #16a34a; border-color: #16a34a; }

/* Videos tab */
.video-card { display: flex; gap: 16px; padding: 12px; margin-bottom: 10px; border-radius: var(--a-radius); transition: background .2s; }
.video-card:hover { background: var(--a-card); }
.video-thumb-wrap { position: relative; flex: 0 0 240px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: var(--a-ghost); }
.video-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.video-duration { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .75); color: #fff; font-size: .72rem; font-weight: 600; }
.video-info { flex: 1; min-width: 0; }
.video-title a { font-size: 1.05rem; font-weight: 600; line-height: 1.35; color: var(--a-text); }
.video-title a:hover { color: var(--a-accent); text-decoration: none; }
.video-meta { margin: 4px 0; font-size: .8rem; color: var(--a-muted); }
.video-desc { font-size: .9rem; color: var(--a-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* News tab */
.news-featured-container:empty { display: none; }
.news-card { padding: 16px 18px; margin-bottom: 10px; background: var(--a-card); border: 1px solid var(--a-line); border-radius: var(--a-radius); }
.news-source { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .8rem; color: var(--a-muted); }
.news-source img { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; background: #fff; }
.news-title a { display: block; margin: 6px 0 4px; font-size: 1.08rem; font-weight: 600; line-height: 1.4; color: var(--a-text); }
.news-title a:hover { color: var(--a-accent); text-decoration: none; }
.news-desc { font-size: .92rem; color: var(--a-muted); }

/* Links tab */
.links-list { margin: 0; padding: 0; list-style: none; counter-reset: link; }
.link-row { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--a-line); counter-increment: link; }
.link-row::before { content: counter(link); position: absolute; left: 0; top: 16px; width: 24px; text-align: right; font-size: .8rem; color: var(--a-muted); }
.link-head { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--a-text); }
.link-head:hover { text-decoration: none; }
.link-fav img { width: 20px; height: 20px; border-radius: 5px; background: #fff; }
.link-site { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.link-site-name { font-size: .85rem; font-weight: 600; }
.link-crumb { font-size: .75rem; color: var(--a-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-title { display: block; margin: 6px 0 2px; font-size: 1.05rem; font-weight: 600; }
.link-desc { margin: 0; font-size: .9rem; color: var(--a-muted); }
.link-sitelinks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; margin-top: 10px; }
.link-sitelink { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border: 1px solid var(--a-line); border-radius: 12px; color: var(--a-text); }
.link-sitelink:hover { border-color: var(--a-accent); text-decoration: none; }
.link-sitelink-text { display: flex; flex-direction: column; min-width: 0; }
.link-sitelink-title { font-size: .88rem; font-weight: 600; }
.link-sitelink-desc { font-size: .78rem; color: var(--a-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.links-more { display: flex; margin: 20px auto 0; }

/* Music and podcasts tabs */
.music-section { margin-bottom: 26px; }
.music-heading { margin: 0 0 12px; font-size: 1.05rem; }
.music-section .vc-head .music-heading { margin: 0; }
.music-artists { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.music-artist { flex: 0 0 132px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; color: var(--a-text); scroll-snap-align: start; }
.music-artist:hover { text-decoration: none; }
.music-artist-img { display: block; width: 120px; height: 120px; overflow: hidden; border-radius: 50%; background: var(--a-ghost); }
.music-artist-img img, .music-album-img img, .music-cover img, .podcast-art img { width: 100%; height: 100%; object-fit: cover; }
.music-artist-name { margin-top: 6px; font-weight: 600; font-size: .9rem; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-meta { font-size: .78rem; color: var(--a-muted); }
.music-tracks { margin: 0; padding: 0; list-style: none; }
.music-track { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; }
.music-track:hover { background: var(--a-card); }
.music-cover { position: relative; flex: 0 0 52px; width: 52px; height: 52px; overflow: hidden; border-radius: 10px; background: var(--a-ghost); }
.music-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: rgba(0, 0, 0, .35); color: #fff; opacity: 0; }
.music-play:hover { background: rgba(0, 0, 0, .45); }
.music-track:hover .music-play, .music-play.is-playing, .music-play:focus-visible { opacity: 1; }
.music-track-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.music-track-title { font-weight: 600; color: var(--a-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-duration { font-size: .8rem; color: var(--a-muted); font-variant-numeric: tabular-nums; }
.music-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.music-album { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: var(--a-text); }
.music-album:hover { text-decoration: none; }
.music-album-img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--a-ghost); }
.music-album-title { margin-top: 6px; font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-source { font-size: .78rem; color: var(--a-muted); text-align: center; }
.podcast-shows { display: grid; gap: 12px; }
.podcast-show { display: flex; gap: 14px; padding: 14px; background: var(--a-card); border: 1px solid var(--a-line); border-radius: var(--a-radius); }
.podcast-art { flex: 0 0 96px; width: 96px; height: 96px; overflow: hidden; border-radius: 12px; background: var(--a-ghost); }
.podcast-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.podcast-title { font-weight: 600; font-size: 1.02rem; color: var(--a-text); }
.podcast-about { margin: 6px 0; font-size: .88rem; color: var(--a-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.podcast-links { display: flex; gap: 14px; font-size: .85rem; }

/* AI chat */
.chat-messages-inner { max-width: 760px; margin: 0 auto; padding: 24px 16px 150px; }
.chat-user-msg {
  margin: 18px 0 18px auto;
  max-width: 80%;
  width: fit-content;
  padding: 10px 16px;
  border-radius: 18px 18px 4px 18px;
  background: var(--a-grad);
  color: #fff;
}
.chat-messages .ai-response-box-inner { padding: 18px 20px; background: var(--a-card); border: 1px solid var(--a-line); border-radius: 18px 18px 18px 4px; }
.ai-sources-block { margin-top: 12px; }
.ai-source-card { display: block; padding: 10px 12px; margin-top: 8px; border: 1px solid var(--a-line); border-radius: 12px; color: var(--a-text); }
.ai-source-desc { color: var(--a-muted); font-size: .85rem; }
.ai-followup-chip { margin: 8px 6px 0 0; }
.chat-input-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(760px, calc(100% - 24px)); }
.chat-input-wrap { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; background: var(--a-pop); backdrop-filter: blur(18px); border: 1px solid var(--a-line); border-radius: 22px; box-shadow: var(--a-shadow); }
.chat-textarea { flex: 1; resize: none; max-height: 160px; }
.chat-send-btn { width: 40px; height: 40px; padding: 0; }
.chat-consent-overlay { display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .45); }
.chat-consent { width: min(440px, 100%); padding: 20px; background: var(--a-pop); border: 1px solid var(--a-line); border-radius: 18px; }

/* Notifications */
.notif-overlay { display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, .5); backdrop-filter: blur(6px); }
.notif-overlay-inner { display: flex; flex-direction: column; width: min(920px, 100%); max-height: min(640px, 90vh); overflow: hidden; background: var(--a-pop); border: 1px solid var(--a-line); border-radius: 20px; box-shadow: var(--a-shadow); }
.notif-overlay-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--a-line); }
.notif-overlay-title { font-weight: 700; font-size: 1.05rem; }
.notif-overlay-actions { display: flex; gap: 8px; }
.notif-overlay-close { width: 36px; height: 36px; padding: 0; }
.notif-overlay-body { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); min-height: 0; flex: 1; }
.notif-overlay-list { overflow-y: auto; border-right: 1px solid var(--a-line); }
.notif-overlay-list > * { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--a-line); cursor: pointer; }
.notif-overlay-list > *:hover { background: var(--a-card-hover); }
.notif-item-title { font-weight: 600; }
.notif-item-preview, .notif-item-meta, .notif-preview-date { font-size: .82rem; color: var(--a-muted); }
.notif-unread-dot { width: 8px; height: 8px; flex-shrink: 0; margin-top: 7px; border-radius: 50%; background: var(--a-accent); }
.notif-overlay-preview { overflow-y: auto; padding: 22px 26px; }
.notif-preview-title { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; font-size: 1.25rem; }
.notif-preview-title svg { flex-shrink: 0; color: var(--a-accent); }
.notif-preview-desc { margin: 14px 0; line-height: 1.7; }
.notif-preview-empty, .notif-empty { color: var(--a-muted); padding: 24px; text-align: center; }

/* Video carousel and free images strip */
.vc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.vc-heading { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1rem; }
.vc-tools { display: flex; gap: 6px; }
.vc-nav { width: 34px; height: 34px; padding: 0; }
.vc-nav:disabled { opacity: .35; }
.vc-track { padding-bottom: 8px; }
.vc-item, .cs-item { color: var(--a-text); text-decoration: none; }
.vc-item:hover, .cs-item:hover { text-decoration: none; }
.vc-thumb, .cs-item img { border-radius: 12px; background: var(--a-ghost); }
.vc-duration { padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .75); color: #fff; font-size: .72rem; font-weight: 600; }
.vc-play { color: #fff; opacity: 0; background: rgba(0, 0, 0, .25); transition: opacity .2s; }
.vc-play svg { width: 34px; height: 34px; }
.vc-item:hover .vc-play { opacity: 1; }
.vc-title { margin-top: 8px; font-size: .88rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vc-meta, .cs-caption { margin-top: 4px; font-size: .78rem; color: var(--a-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Floating search bar */
#stickySearch { bottom: 18px; width: min(560px, calc(100% - 24px)); }
.fsearch-inner-box { padding: 8px; background: var(--a-pop); backdrop-filter: blur(18px); border: 1px solid var(--a-line); border-radius: 24px; box-shadow: var(--a-shadow); }
.fsearch-top-row { display: flex; align-items: center; gap: 8px; padding: 0 4px 0 12px; }
.fsearch-input-field { flex: 1; min-width: 0; padding: 8px 0; }
.fsearch-submit-trigger { width: 38px; height: 38px; padding: 0; }
.fsearch-nav-row { display: flex; gap: 4px; margin-top: 6px; overflow-x: auto; scrollbar-width: none; }
.fsearch-nav-btn { flex-shrink: 0; border: 0; background: none; color: var(--a-muted); padding: 4px 10px; font-size: .82rem; }
.fsearch-nav-btn.is-active { color: var(--a-text); background: var(--a-glow-1); }

/* Wikipedia info panel */
#wiki-infobox { padding: 0; background: var(--a-pop); backdrop-filter: blur(20px); border: 1px solid var(--a-line); border-radius: 20px; box-shadow: var(--a-shadow); }
.wi-drag-handle { display: none; justify-content: center; padding: 8px 0 0; }
.wi-drag-handle span { width: 40px; height: 4px; border-radius: 2px; background: var(--a-line); }
.wi-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 18px; background: var(--a-pop); border-bottom: 1px solid var(--a-line); }
.wi-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--a-muted); }
.wi-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--a-grad); box-shadow: 0 0 0 3px var(--a-glow-1); }
.wi-close { width: 32px; height: 32px; padding: 0; font-size: .8rem; }
.wi-scroll { padding: 16px 18px 18px; }
.wi-header-card { display: flex; flex-direction: column; gap: 14px; }
.wi-thumb { order: -1; width: 100%; max-height: 220px; object-fit: cover; border-radius: 14px; background: var(--a-ghost); }
.wi-title-wrap { display: flex; flex-direction: column; gap: 4px; }
.wi-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.wi-title-icon { display: inline-grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--a-glow-1); color: var(--a-accent); }
.wi-title-icon svg { width: 18px; height: 18px; }
.wi-website { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font-size: .85rem; }
.wi-desc-card { margin-top: 12px; }
.wi-desc { margin: 0; font-size: .92rem; line-height: 1.65; color: var(--a-muted); }
.wi-facts { margin-top: 14px; overflow: hidden; background: var(--a-card); border: 1px solid var(--a-line); border-radius: 14px; }
.wi-fact-row { display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); gap: 10px; padding: 9px 12px; font-size: .85rem; }
.wi-fact-row + .wi-fact-row { border-top: 1px solid var(--a-line); }
.wi-fact-label { display: flex; align-items: center; gap: 8px; color: var(--a-muted); }
.wi-fact-icon { display: inline-flex; flex-shrink: 0; color: var(--a-accent); }
.wi-fact-value { font-weight: 600; overflow-wrap: anywhere; }
.wi-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.wi-social { display: grid; place-items: center; width: 36px; height: 36px; background: var(--a-card); border: 1px solid var(--a-line); border-radius: 10px; }
.wi-social:hover { border-color: var(--a-accent); }
.wi-social-icon { width: 18px; height: 18px; background: var(--a-text); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.wi-ext-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.wi-ext-link { padding: 4px 12px; border: 1px solid var(--a-line); border-radius: 999px; font-size: .82rem; color: var(--a-text); }
.wi-ext-link:hover { border-color: var(--a-accent); text-decoration: none; }
.wi-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: .88rem; font-weight: 600; }
.wi-live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 4px; }
.wi-live-card { padding: 12px; background: var(--a-card); border: 1px solid var(--a-line); border-radius: 14px; }
.wi-live-wide { grid-column: 1 / -1; }
.wi-live-label { font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--a-muted); }
.wi-live-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.wi-live-icon { display: inline-flex; color: var(--a-accent); }
.wi-live-icon svg { width: 22px; height: 22px; }
.wi-live-main { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.wi-live-currency { font-weight: 600; }
.wi-live-code, .wi-live-sub { font-size: .78rem; color: var(--a-muted); }
.wi-places-head, .ps-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 16px 0 8px; }
.wi-places-title, .ps-title { font-weight: 700; }
.wi-places-head .wi-link, .ps-head .wi-link { margin: 0; font-size: .8rem; }
.wi-places-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wi-places--country .wi-place-tile.role-map, .wi-places--place .wi-place-tile:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.wi-place-tile { position: relative; min-width: 0; }
.wi-place-link { display: block; color: var(--a-text); }
.wi-place-link:hover { text-decoration: none; }
.wi-place-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: var(--a-ghost); }
.wi-place-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.wi-place-tile:hover .wi-place-img img { transform: scale(1.04); }
.wi-place-tile.fit-contain .wi-place-img img { object-fit: contain; transform: none; }
.wi-place-cap { display: block; margin-top: 4px; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wi-place-src { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: .7rem; font-weight: 700; }
.wi-place-src:hover { text-decoration: none; background: var(--a-accent); }
.wi-places-credit, .ps-credit { margin-top: 6px; font-size: .7rem; color: var(--a-muted); }
.wi-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wi-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border: 1px solid var(--a-line); border-radius: 999px; font-size: .82rem; color: var(--a-text); }
.wi-chip svg { color: var(--a-accent); }
.wi-chip:hover { border-color: var(--a-accent); text-decoration: none; }
#places-strip.ps-visible { margin: 0 0 16px; padding: 14px; background: var(--a-card); border: 1px solid var(--a-line); border-radius: var(--a-radius); }
.ps-live { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .88rem; }
.ps-live-item { display: inline-flex; align-items: center; gap: 6px; }
.ps-live-item svg { color: var(--a-accent); }
.ps-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.ps-row .wi-place-tile { flex: 0 0 140px; }
.ps-row .wi-place-tile.role-map { flex-basis: 190px; }
.ps-chips { margin-top: 10px; }
#wiki-overlay { background: rgba(0, 0, 0, .45); backdrop-filter: blur(3px); }
#wiki-mobile-btn { padding: 8px 14px; background: var(--a-pop); box-shadow: var(--a-shadow); }

/* Search with a photo */
.mis-backdrop { background: rgba(0, 0, 0, .5); backdrop-filter: blur(6px); }
.mis-modal { width: min(440px, 100%); padding: 22px; background: var(--a-pop); border: 1px solid var(--a-line); border-radius: 20px; box-shadow: var(--a-shadow); }
.mis-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.mis-head h2, .mis-head h3 { margin: 0; font-size: 1.15rem; }
.mis-ico { color: var(--a-accent); }
.mis-lead, .mis-points { color: var(--a-muted); font-size: .9rem; }
.mis-drop { margin: 14px 0; padding: 20px; text-align: center; border: 2px dashed var(--a-line); border-radius: 16px; transition: border-color .2s, background .2s; }
.mis-drop.mis-dropping { border-color: var(--a-accent); background: var(--a-glow-1); }
.mis-drop.has-image { border-style: solid; }
.mis-drop-text { margin: 0 0 12px; color: var(--a-muted); }
.mis-drop-actions, .mis-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mis-actions { justify-content: flex-end; margin-top: 14px; }
.mis-preview { margin: 0 auto; border-radius: 12px; }
.mis-note { display: grid; gap: 6px; }
.mis-note-label { font-size: .85rem; font-weight: 600; }
.mis-note input { padding: 10px 12px; border: 1px solid var(--a-line); border-radius: 12px; background: var(--a-card); }
.mis-error { margin-top: 10px; color: #ef4444; font-size: .85rem; }
.mis-busy { text-align: center; color: var(--a-muted); }
.mis-banner { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 14px; background: var(--a-card); border: 1px solid var(--a-line); border-radius: var(--a-radius); }
.mis-banner img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }

/* Ghost: loading placeholders */
.skeleton {
  display: block;
  height: 12px;
  margin: 8px 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--a-ghost) 25%, var(--a-ghost-hi) 50%, var(--a-ghost) 75%);
  background-size: 200% 100%;
  animation: aurora-shimmer 1.4s ease-in-out infinite;
}
.sk-meta { width: 180px; height: 10px; }
.sk-heading { width: 140px; height: 16px; }
.sk-title { height: 18px; margin: 10px 0; }
.sk-url, .sk-source, .sk-site { width: 140px; height: 10px; margin: 0; }
.sk-crumb { width: 90px; height: 8px; margin: 6px 0 0; }
.sk-fav, .sk-link-fav { width: 20px; height: 20px; margin: 0; border-radius: 6px; flex-shrink: 0; }
.sk-thumb { width: 120px; height: 80px; margin: 0; border-radius: 12px; flex-shrink: 0; }
.sk-line { height: 11px; }
.sk-img-line { height: 10px; margin: 8px 0 0; }
.sk-img-meta { height: 8px; margin: 6px 0 0; }
.skeleton.img-tile-media { height: auto; margin: 0; border-radius: 10px; }
.skeleton.sk-video-thumb { height: auto; margin: 0; }
.skeleton.music-artist-img { height: 120px; margin: 0 0 6px; border-radius: 50%; }
.skeleton.sk-cover { height: 52px; margin: 0; }
.result-breadcrumb .skeleton, .news-source .skeleton { display: inline-block; vertical-align: middle; }
.img-shimmer { background: var(--a-ghost); }
.img-tile-skeleton:hover { background: none; }
@keyframes aurora-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Ghost: guest preview behind the sign-in card */
.guest-cta { position: relative; z-index: 2; max-width: 460px; margin: 10px auto 24px; padding: 24px; text-align: center; background: var(--a-pop); backdrop-filter: blur(20px); border: 1px solid var(--a-line); border-radius: 20px; box-shadow: var(--a-shadow); }
.guest-cta-title { margin: 0 0 6px; font-size: 1.15rem; font-weight: 700; }
.guest-cta-desc { margin: 0 0 16px; color: var(--a-muted); }
.guest-cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.guest-cta-btn { display: inline-flex; padding: 9px 20px; border: 1px solid var(--a-line); border-radius: 999px; background: var(--a-card); color: var(--a-text); font-weight: 600; }
.guest-cta-btn:hover { border-color: var(--a-accent); text-decoration: none; }
.guest-ghost { pointer-events: none; user-select: none; opacity: .75; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.guest-sec { margin: 16px 0; padding: 16px; background: var(--a-card); border: 1px solid var(--a-line); border-radius: var(--a-radius); }
.guest-sec-title { width: 120px; height: 14px; margin: 0 0 12px; }
.guest-row { display: grid; gap: 12px; }
.guest-row-videos { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.guest-row-images { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.guest-media { height: auto; margin: 0; aspect-ratio: 16 / 9; border-radius: 12px; }
.guest-row-images .guest-media { aspect-ratio: 1; }
.guest-line { height: 10px; }
.guest-discussion { padding: 10px 0; border-top: 1px solid var(--a-line); }

/* Ghost: text placeholders while fonts load */
html.simple-css .tg-bar { opacity: .22; border-radius: 999px; }

/* Loading spinners */
.mojeek-show-more-btn svg, .links-more svg { flex-shrink: 0; }

/* Phone */
@media (max-width: 640px) {
  .search-header { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px 4px; }
  .search-header form { grid-column: 1 / -1; order: 3; }
  .content { padding: 8px 12px 100px; }
  .result-card { padding: 14px 16px; }
  .result-body--has-thumb { flex-direction: column-reverse; }
  .result-thumb-link, .result-thumb, .sk-thumb { width: 100%; }
  .result-thumb { height: 160px; }
  .main { padding-top: 4vh; }
  .ql-item, .ql-add-wrap { width: 76px; }
  .img-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .video-card { flex-direction: column; gap: 10px; padding: 8px 0; }
  .video-thumb-wrap { flex-basis: auto; width: 100%; }
  .podcast-art { flex-basis: 72px; width: 72px; height: 72px; }
  .music-artist { flex-basis: 108px; }
  .music-artist-img, .skeleton.music-artist-img { width: 96px; height: 96px; }
  .img-preview-panel { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 88vh; border-radius: 20px 20px 0 0; }
}
@media (max-width: 680px) {
  .notif-overlay { padding: 0; }
  .notif-overlay-inner { max-height: none; height: 100%; border-radius: 0; }
  .notif-overlay-body { grid-template-columns: 1fr; }
  .notif-overlay-list { border-right: 0; }
}
@media (max-width: 1099px) {
  #wiki-infobox.wi-visible { border-radius: 20px 20px 0 0; }
  .wi-drag-handle { display: flex; }
  .wi-header { position: static; border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .result-card, .skeleton, .img-tile-media img { transition: none; animation: none; }
}

Roadmap

Simple-CSS mode covers the results page, the homepage and the AI chat. Other pages keep the MevaSearch design; new class names will be listed here before they ship.