/* Artdigg — Search: landing (hero + Discover) and results (field docked in a slim bar). */

.screen--search .screen-inner { max-width: none; padding: 0; display: block; }
.screen--search .screen-body { background: var(--color-bg); }
.sx { min-height: 100%; padding-bottom: calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1024px) { .sx { padding-bottom: 32px; } }

/* ---------- Bar (results) ---------- */

.sx__bar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: none;
  align-items: center;
  gap: 8px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px 16px;
  background: color-mix(in srgb, var(--color-surface) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: var(--hairline) solid var(--color-line);
}
.sx[data-state="results"] .sx__bar { display: flex; animation: sx-fade .3s ease both; }
.sx__slot--bar { flex: 1; min-width: 0; display: flex; justify-content: center; }
.sx__slot--bar .sx__field { width: 100%; max-width: 640px; }
.sx__cancel { flex: none; height: 40px; padding: 0 4px; font-size: 15px; color: var(--color-ink); }
@media (min-width: 1024px) {
  .sx__bar { padding: 12px 24px; }
  .sx__cancel { display: none; }
}

/* ---------- Field ---------- */

.sx__field { position: relative; }
.sx__slot--hero { width: 100%; max-width: 640px; }
.sx__slot--hero .sx__field {
  height: 56px;
  padding: 0 8px 0 20px;
  gap: 12px;
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: 0 0 0 var(--hairline) var(--color-line-strong), 0 10px 32px rgba(17, 17, 28, 0.07);
}
.sx__slot--hero .sx__field .search-field__icon { width: 20px; height: 20px; }
.sx__slot--hero .sx__field input { font-size: 17px; }
.sx__slot--hero .sx__field:focus-within { box-shadow: 0 0 0 1px var(--color-line-strong), 0 12px 40px rgba(17, 17, 28, 0.10); }
.sx__slot--bar .sx__field { height: 44px; }

/* ---------- Hero ---------- */

.sx__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: calc(clamp(36px, 9vh, 120px) + env(safe-area-inset-top, 0px)) 16px clamp(28px, 6vh, 64px);
  text-align: center;
}
.sx__title {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}
.sx__sub { margin: 0 0 14px; font-size: 16px; line-height: 22px; color: var(--color-ink-muted); }
.sx__chips { align-self: stretch; min-width: 0; margin: 8px -16px 0; padding: 2px 16px 4px; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }   /* one row, never wraps (UX rule 23 Oct) */
.sx__chips::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .sx__chips { justify-content: safe center; } }

.sx[data-state="results"] .sx__hero,
.sx[data-state="results"] .sx__discover, .sx[data-state="results"] .sx__explore { display: none; }
.sx[data-state="landing"] .sx__hero > :not(.sx__slot),
.sx[data-state="landing"] .sx__discover { animation: sx-up .45s cubic-bezier(.2, .8, .2, 1) both; }
.sx[data-state="landing"] .sx__discover { animation-delay: .06s; }

/* ---------- Discover (edge to edge) ---------- */

.sx__discover { padding-bottom: 8px; }
.sx__dtitle { margin: 0 0 12px; padding: 0 16px; font-size: 20px; font-weight: 700; }
.sx__cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 2px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.sx__cards::-webkit-scrollbar { display: none; }
.dc {
  position: relative;
  height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: 24px;
  overflow: hidden;
  scroll-snap-align: start;
  text-align: left;
  color: var(--color-ink);
  background: var(--color-surface);
}
.dc__media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  padding: 24px;
  color: var(--color-ink-muted);
  background:
    radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--color-accent) 9%, transparent), transparent 60%),
    linear-gradient(180deg, var(--color-field), var(--color-surface) 75%);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.dc--match .dc__media { background: radial-gradient(120% 70% at 0% 0%, color-mix(in srgb, var(--color-accent) 8%, transparent), transparent 60%), linear-gradient(180deg, var(--color-field), var(--color-surface) 75%); }
.dc__media svg { width: 34px; height: 34px; }
.dc__body { position: relative; display: flex; flex-direction: column; gap: 6px; max-width: 34ch; }
.dc__body b { font-size: 24px; font-weight: 900; letter-spacing: -0.01em; line-height: 1.15; }
.dc__body span { font-size: 15px; line-height: 22px; color: var(--color-ink-2); }
.dc__go { position: relative; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--color-ink); }
.dc__go svg { width: 14px; height: 14px; transition: transform .2s ease; }

@media (min-width: 768px) {
  .sx__cards { grid-auto-columns: 46%; }
}
@media (min-width: 1024px) {
  .sx__dtitle { padding: 0 24px; }
  .sx__cards { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; }
  .dc { height: clamp(380px, calc(100vh - 470px), 620px); padding: 28px; }
}
@media (hover: hover) {
  .dc:hover .dc__media { transform: scale(1.03); }
  .dc:hover .dc__go svg { transform: translateX(3px); }
}
.dc:active { opacity: .85; }

/* ---------- Results ---------- */

.sx__results { max-width: 760px; margin: 0 auto; padding: 0 16px 24px; }
.sx[data-state="landing"] .sx__results { display: none; }

.sr-tabs {
  position: sticky;
  top: calc(64px + env(safe-area-inset-top, 0px));
  z-index: 4;
  display: flex;
  gap: 8px;
  margin: 0 -16px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--color-bg);
}
.sr-tabs::-webkit-scrollbar { display: none; }
.sr-tabs .chip { display: inline-flex; align-items: center; }
.sr-tabs .chip:disabled { opacity: .4; cursor: default; }
.chip__n { margin-left: 6px; font-size: 12px; font-weight: 400; opacity: .7; }
@media (min-width: 1024px) { .sr-tabs { top: 68px; } }

.sr-sec { margin-top: 20px; }
.sr-sec__head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 4px 10px; }
.sr-sec__head h2 { margin: 0; font-size: 17px; font-weight: 700; }
.sr-more { font-size: 14px; color: var(--color-ink-muted); }

mark { background: var(--color-accent-soft); color: inherit; border-radius: 4px; padding: 0 1px; }

/* Top result */
.sr-top {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background: var(--color-surface);
  text-align: left;
  color: var(--color-ink);
  box-shadow: 0 0 0 var(--hairline) var(--color-line);
}
.sr-top__av { width: 72px; height: 72px; font-size: 24px; }
.sr-top__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sr-top__txt b { font-size: 22px; line-height: 1.2; font-weight: 900; }
.sr-top__txt small { font-size: 14px; color: var(--color-ink-muted); }
.sr-follow {
  flex: none;
  height: 36px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  background: var(--color-ink);
  color: var(--color-surface);
  font-size: 14px;
  font-weight: 700;
}
.sr-follow.is-on { background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-line-strong); }

/* Artist cards */
.sr-cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 138px;
  gap: 10px;
  margin: 0 -16px;
  padding: 0 16px 4px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.sr-cards::-webkit-scrollbar { display: none; }
.sr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 10px 16px;
  border-radius: 16px;
  background: var(--color-surface);
  color: var(--color-ink);
  scroll-snap-align: start;
  box-shadow: 0 0 0 var(--hairline) var(--color-line);
  min-width: 0;
}
.sr-card__av { width: 76px; height: 76px; font-size: 24px; margin-bottom: 6px; }
.sr-card b { max-width: 100%; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-card small { max-width: 100%; font-size: 12px; color: var(--color-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1024px) {
  .sr-cards { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; overflow: visible; }
}

/* Lists */
.sr-list { border-radius: 16px; overflow: hidden; background: var(--color-surface); box-shadow: 0 0 0 var(--hairline) var(--color-line); }
.sr-tabs + .sr-list { margin-top: 8px; }
.sr-row {
  position: relative;
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-align: left;
  color: var(--color-ink);
}
.sr-row + .sr-row::before { content: ""; position: absolute; top: 0; left: 72px; right: 0; border-top: var(--hairline) solid var(--color-line); }
.sr-av { width: 44px; height: 44px; font-size: 15px; }
.sr-av--sq { border-radius: 12px; }
.sr-row__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sr-row__txt b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-row__txt small { font-size: 13px; color: var(--color-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-row__chev { width: 16px; height: 16px; color: var(--color-ink-muted); }
.sr-row__meta { flex: none; font-size: 12px; color: var(--color-ink-muted); }
.sr-snip { font-size: 14px; line-height: 20px; color: var(--color-ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-row--post { align-items: flex-start; }
.sr-thumb { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 10px; background: var(--color-field); color: var(--color-ink-muted); }
.sr-thumb svg { width: 18px; height: 18px; }
.sr-date {
  flex: none;
  width: 44px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--color-line-strong);
  line-height: 1;
}
.sr-date b { font-size: 18px; color: var(--color-accent-text); }
.sr-date small { margin-top: 4px; font-size: 10px; letter-spacing: .06em; color: var(--color-ink-muted); }
.sr-date.is-past b { color: var(--color-ink-muted); }
.sr-tags { margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; }
.sr-empty { padding-top: 64px; }

@media (hover: hover) {
  .sr-row:hover, .sr-card:hover, .sr-top:hover { background: color-mix(in srgb, var(--color-surface) 92%, var(--color-ink) 4%); }
  .sr-more:hover { color: var(--color-ink); }
}

/* Motion */
.sr-in { animation: sx-up .38s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes sx-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sx-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .sr-in, .sx__bar, .sx__hero > *, .sx__discover { animation: none !important; }
}
@media (min-width: 1024px) { .dc__body span { min-height: 66px; } }

/* ---------- Explore: Instagram-style blocks under Discover ---------- */
.sx__explore { padding: 2px 0 calc(24px + var(--tabbar-h, 0px)); }
.sx[data-state="landing"] .sx__explore { animation: sx-up .45s cubic-bezier(.2, .8, .2, 1) .12s both; }
.ex { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; grid-auto-flow: row dense; gap: 2px; }
.ex__tile { position: relative; display: block; aspect-ratio: 1; padding: 0; overflow: hidden; background: var(--color-field); -webkit-tap-highlight-color: transparent; }
.ex__tile.is-tall { aspect-ratio: auto; grid-row: span 2; }
.ex__tile.is-right { grid-column: 3; }
.ex__tile.is-left { grid-column: 1; }
.ex__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.ex__badge { position: absolute; top: 8px; right: 8px; color: #FFFFFF; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }
.ex__badge svg { display: block; width: 18px; height: 18px; }
.ex__hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; color: #FFFFFF; font-size: 16px; background: rgba(0, 0, 0, .32); opacity: 0; transition: opacity .15s ease; }
.ex__hover svg { width: 20px; height: 20px; }
.ex__tile:active img { transform: scale(.98); }

@media (max-width: 1023px) {
  /* phones: smaller Discover cards so the blocks below show on the first screen */
  .dc { height: 220px; padding: 20px; gap: 10px; }
  .dc__media { padding: 20px; }
  .dc__media svg { width: 28px; height: 28px; }
  .dc__body b { font-size: 20px; }
  .dc__body span { font-size: 14px; line-height: 20px; }
}
@media (min-width: 1024px) {
  /* desktop: Discover as four compact blocks, the explore grid under them, one column wide */
  .sx__discover, .sx__explore { max-width: 1040px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
  .sx__dtitle { padding: 0; }
  .sx__cards { gap: 12px; }
  .dc { height: 196px; padding: 20px; gap: 8px; border-radius: 16px; box-shadow: 0 0 0 var(--hairline) var(--color-line); }
  .dc__media { padding: 20px; }
  .dc__media svg { width: 26px; height: 26px; }
  .dc__body { gap: 4px; }
  .dc__body b { font-size: 18px; font-weight: 800; }
  .dc__body span { font-size: 13px; line-height: 18px; max-height: 36px; overflow: hidden; }
  .dc__go { font-size: 13px; }
  .sx__explore { padding-top: 20px; padding-bottom: 48px; }
  .ex { gap: 4px; }
  .ex__tile { border-radius: 4px; }
}
@media (hover: hover) and (pointer: fine) {
  .ex__tile:hover .ex__hover { opacity: 1; }
}

/* "Show more" under a long result list (pages of 60) */
.sr-more--page { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; margin-top: 12px; border-radius: 24px;
  background: var(--color-field); color: var(--color-ink); font: inherit; font-size: 14px; font-weight: 600; }
.sr-more--page small { color: var(--color-ink-muted); font-weight: 500; }
@media (hover: hover) { .sr-more--page:hover { background: var(--color-hover); } }

/* ---------- Discovery v2 (routes, filters from facets, boxless lists) ---------- */
/* the results bar: no box — the field floats, a thin glowing line under it */
.sx__bar { background: var(--color-bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 0; }
.sx__bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-accent) 70%, transparent) 30%, color-mix(in srgb, var(--color-accent) 70%, transparent) 70%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--color-accent) 45%, transparent); opacity: .55; }
.sx__slot--bar .sx__field { border-radius: 22px; box-shadow: 0 0 0 1px var(--color-line-strong), 0 0 18px color-mix(in srgb, var(--color-accent) 14%, transparent); }
a.sx__cancel { display: inline-flex; align-items: center; text-decoration: none; }
@media (min-width: 1024px) { a.sx__cancel { display: none; } }

.sr-tabs { top: calc(64px + env(safe-area-inset-top, 0px)); }
.sr-tabs a.chip, .sr-filters a.chip { text-decoration: none; color: var(--color-ink); }
.chip.is-on { background: var(--color-ink); color: var(--color-surface) !important; }
.chip.is-on .chip__n { opacity: .75; }
.chip__x { width: 12px; height: 12px; margin-left: 6px; opacity: .8; }
.sr-filters a.chip > svg:first-child { width: 14px; height: 14px; margin-right: 6px; }
.sr-filters { display: flex; gap: 8px; margin: 2px -16px 6px; padding: 4px 16px 6px; overflow-x: auto; scrollbar-width: none; }
.sr-filters::-webkit-scrollbar { display: none; }
.sr-filters a.chip { flex: none; display: inline-flex; align-items: center; }
.sr-filters--cities { align-items: center; }
.sr-filters__lab { flex: none; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-ink-muted); margin-right: 2px; }
/* one row at every width — it scrolls sideways, it never wraps into a wall */
@media (min-width: 1024px) { .sr-filters { margin: 2px 0 6px; padding: 4px 0 6px; } }
.sr-filters { align-items: center; }
.fbtn { flex: none; display: inline-flex; align-items: center; gap: 4px; padding-right: 10px; cursor: pointer; font: inherit; }
.fbtn__chev { width: 14px; height: 14px; opacity: .7; transition: transform .15s ease; }
.fbtn[aria-expanded="true"] .fbtn__chev { transform: rotate(180deg); }
.fbtn + .chip.is-on:not(.fbtn) { margin-left: 4px; }

/* lists: no box around them — rows on the page, a hairline between */
.sr-list { border-radius: 0; overflow: visible; background: transparent; box-shadow: none; }
.sr-row { padding: 10px 0; gap: 12px; }
.sr-row + .sr-row::before { left: 56px; }
.sr-row__main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; border-radius: 14px; }
.sr-row__main:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--color-accent); }
.sr-row__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; font-size: 12px; color: var(--color-ink-muted); }
.sr-row__line { color: var(--color-ink-2) !important; }
.sr-uo { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--color-field); font-size: 11px; font-weight: 600; color: var(--color-ink-muted); }
.sr-row .sr-follow { height: 34px; padding: 0 14px; font-size: 13px; border: 0; cursor: pointer; }
.sr-top { padding: 0; background: transparent; box-shadow: none; border-radius: 0; gap: 12px; }
.sr-top__main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; color: inherit; text-decoration: none; }
.sr-top .sr-follow { border: 0; cursor: pointer; }
.sr-card { text-decoration: none; background: transparent; box-shadow: none; padding: 8px 6px 10px; }
.sr-card__av { box-shadow: 0 0 0 1px var(--color-line); }
@media (hover: hover) {
  .sr-row:hover, .sr-card:hover, .sr-top:hover { background: transparent; }
  .sr-row__main:hover b, .sr-card:hover b, .sr-top__main:hover b { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
}

/* landing: discover cards are links too; rails under them */
a.dc { text-decoration: none; }
.sx__cards--2 { grid-auto-columns: 78%; }
@media (min-width: 1024px) { .sx__cards--2 { grid-template-columns: repeat(2, 1fr); } .sx__cards--3 { grid-template-columns: repeat(3, 1fr); } }
.sx__rails { max-width: var(--page-w, 1120px); margin: 0 auto; padding: 8px 16px 0; display: grid; gap: 28px; }
/* 27 Oct (owner): every section gets room, one under the other — like Spotify's home: big headings, one row per shelf, "See all" for the rest */
.sx__rails { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 20px; }
.sx__rail .sr-sec__head { align-items: center; margin: 0 0 12px; }
.sx__rail .sr-sec__head h2 { font-size: 20px; line-height: 26px; font-weight: 800; letter-spacing: -0.01em; }
@media (min-width: 1024px) {
  .sx__rails { max-width: 1040px; padding: 32px 24px 0; gap: 56px; }
  .sx__rail .sr-sec__head { margin-bottom: 16px; }
  .sx__rail .sr-sec__head h2 { font-size: 24px; line-height: 30px; }
  .sx__rail .sr-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
  .sx__rail .sr-cards > :nth-child(n+7) { display: none; }
  .sx__rail .sr-card { padding: 22px 12px 18px; }
  .sx__rail .sr-card__av { width: 104px; height: 104px; font-size: 30px; }
  .sx__rail .sr-card b { font-size: 15px; }
  .sx__rails .sx__cities { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; }
  .sx__rails .sx__genres { margin: 0 -24px; padding: 2px 24px 4px; scroll-padding-inline: 24px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 48px), transparent); }
  .sx__explore { margin-top: 56px; }
}
.sx__rail .sr-sec__head { margin: 0 0 6px; }
.sx__cities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.sx-city { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: var(--hairline) solid var(--color-line); color: var(--color-ink); text-decoration: none; min-width: 0; }
.sx-city b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-city small { font-size: 12px; color: var(--color-ink-muted); }
@media (hover: hover) { .sx-city:hover b { text-decoration: underline; text-underline-offset: 3px; } }
.sx[data-state="results"] .sx__land { display: none; }
.sx a.chip { display: inline-flex; align-items: center; text-decoration: none; color: var(--color-ink); }
.sx a.sr-more, .sx a.sr-more:visited { text-decoration: none; }
.sx a.sr-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.sr-uo { align-self: flex-start; }
@media (hover: hover) { .sx .chip.is-on:hover { background: var(--color-ink); opacity: .88; } }

/* ---------- "Around me" control (discovery.js A.nearCtl): place · GPS · circle 25–500 km ---------- */
.near-ctl { display: flex; flex-direction: column; gap: 2px; }
.near-ctl__row { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; font-size: 14px; }
.near-ctl__lab { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--color-ink-2); }
.near-ctl__lab svg, .near-ctl__none svg { width: 14px; height: 14px; flex: none; color: var(--color-ink-muted); }
.near-ctl__lab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.near-ctl__sw { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 14px; background: var(--color-field); color: var(--color-ink); font: inherit; font-size: 12.5px; font-weight: 600; }
.near-ctl__sw svg { width: 12px; height: 12px; }
.near-ctl__sw:disabled { opacity: .5; }
@media (hover: hover) { .near-ctl__sw:hover { background: var(--color-hover); } }
.near-ctl__km { margin-left: auto; flex: none; font-size: 15px; }
.near-ctl__ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--color-ink-muted); }
.near-ctl__none { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0; font-size: 14px; color: var(--color-ink-2); }
.near-ctl__none a, .near-ctl__none button { font: inherit; font-weight: 700; color: var(--color-ink); text-decoration: none; padding: 0; }
.near-ctl input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; }
.near-ctl input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--color-accent) var(--p), var(--color-field) var(--p)); }
.near-ctl input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--color-field); }
.near-ctl input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--color-accent); }
.near-ctl input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 4px var(--color-bg), 0 2px 8px rgba(0, 0, 0, .18); }
.near-ctl input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 4px var(--color-bg), 0 2px 8px rgba(0, 0, 0, .18); }

/* ---------- For you (See all from the feed's units) ---------- */
.fy { max-width: 760px; margin: 0 auto; padding: 4px 16px 32px; }
.fy__near { padding: 8px 0 4px; }
.screen--foryou .sr-tabs { position: static; margin: 4px -16px 0; background: transparent; }
.screen--foryou a.chip { display: inline-flex; align-items: center; text-decoration: none; color: var(--color-ink); }
.screen--foryou .sr-empty { padding-top: 40px; }
.fy-sug { display: flex; gap: 8px; max-width: 520px; margin: 4px auto 0; }
.fy-sug input { flex: 1; min-width: 0; height: 46px; padding: 0 18px; border: 0; border-radius: 23px; background: var(--color-surface); color: var(--color-ink); font: inherit; font-size: 15px;
  box-shadow: 0 0 0 1px var(--color-line-strong), 0 0 18px color-mix(in srgb, var(--color-accent) 12%, transparent); }
.fy-sug input:focus { outline: none; box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-accent) 70%, transparent), 0 0 22px color-mix(in srgb, var(--color-accent) 25%, transparent); }
.fy-sug .dx-btn { height: 46px; border-radius: 23px; padding: 0 20px; }
@media (min-width: 1024px) { .fy { padding-top: 0; } }
.sr-uo--closed { margin-right: 4px; background: color-mix(in srgb, var(--color-danger) 14%, transparent); color: var(--color-danger); }
.sr-tabs__sep { flex: none; align-self: center; width: 1px; height: 20px; margin: 0 4px; background: var(--color-line-strong); }
.sr-tabs .fbtn, .sr-tabs .chip.is-on { flex: none; }

/* ---------- Tabs ≠ filters (owner 23 Oct: "dvije različite verzije filtera, uradi ih drugačije") ----------
   Tabs pick WHAT you look at: plain text with a sliding underline on a hairline (Instagram / Airbnb).
   Filters narrow it: outlined pills with a chevron; a chosen one is filled. */
.sr-tabs { gap: 22px; padding-top: 6px; padding-bottom: 0; box-shadow: inset 0 calc(-1 * var(--hairline)) 0 var(--color-line); margin-bottom: 10px; }
.sr-tabs > .chip:not(.fbtn) { position: relative; height: 42px; padding: 0 2px; border-radius: 0; background: transparent !important; color: var(--color-ink-muted) !important; font-weight: 600; box-shadow: none; }
.sr-tabs > .chip:not(.fbtn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--color-ink); opacity: 0; }
.sr-tabs > .chip.is-on:not(.fbtn), .sr-tabs > .chip[aria-current="page"], .sr-tabs > .chip[aria-pressed="true"]:not(.fbtn) { color: var(--color-ink) !important; font-weight: 700; }
.sr-tabs > .chip.is-on:not(.fbtn)::after, .sr-tabs > .chip[aria-current="page"]::after, .sr-tabs > .chip[aria-pressed="true"]:not(.fbtn)::after { opacity: 1; }
@media (hover: hover) { .sr-tabs > .chip:not(.fbtn):not(.is-on):hover { color: var(--color-ink) !important; } }
.sr-tabs > .chip:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 6px; }
.sr-tabs .ch-tabs__dot, .ch-tabs .ch-tabs__dot { top: 8px; right: -8px; }
/* filters: outlined until chosen */
.sr-filters .chip:not(.is-on), .sr-filters .fbtn:not(.is-on), .sr-tabs .fbtn:not(.is-on) { background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-line-strong); }
@media (hover: hover) { .sr-filters .chip:not(.is-on):hover, .sr-filters .fbtn:not(.is-on):hover { background: var(--color-hover, var(--color-field)); } }
.sr-filters .chip.is-on, .sr-filters .fbtn.is-on { box-shadow: none; }

/* 24 Oct: Discover rows — genres as one scrolling row of chips */
.sx__genres { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; scroll-padding-inline: 16px; }
.sx__genres::-webkit-scrollbar { display: none; }
.sx__rail .sr-cards { margin-top: 2px; }
