/* UltimeBots Découverte : liste et fiches des serveurs (pages rendues par le service Ultimebots-Decouverte,
   gabarit = en-tête / pied du site). Couleur réservée aux états : vérifié (vert), 18+ (rouge), avertissement (jaune). */
.ubd-page { --dc-card: linear-gradient(180deg, #17171b, #0e0e11 70%); --dc-ok: 74 222 128; --dc-bad: 248 113 113; --dc-warn: 250 204 21; }

/* ── Recherche et filtres : un panneau de verre, pastilles et tri segmenté ── */
.ubd-finder {
  position: relative; width: var(--shell); margin: 0 auto; display: grid; gap: 0.9rem;
  padding: 1rem; border-radius: 26px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.055), rgb(255 255 255 / 0.02));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08), inset 0 1px 0 rgb(255 255 255 / 0.1), 0 30px 60px -40px rgb(0 0 0 / 0.9);
}
.ubd-finder fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.ubd-finder > * { min-width: 0; }
.ubd-finder-top { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Recherche : grand champ ; au focus, un anneau chromé tourne autour (même effet que le bouton Perso). */
.ubd-search {
  position: relative; isolation: isolate; flex: 1 1 320px; display: flex; align-items: center; gap: 0.6rem;
  height: 52px; padding: 0 0.6rem 0 1.1rem; border-radius: 999px; color: var(--mist);
  background: rgb(8 8 10 / 0.7); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.ubd-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--text); font: inherit; font-size: 1rem; outline: none; }
.ubd-search input::placeholder { color: var(--mist-2); }
.ubd-search input::-webkit-search-cancel-button { filter: invert(1) opacity(0.5); }
.ubd-search::before {
  content: ""; position: absolute; z-index: -1; inset: -3px; padding: 2px; border-radius: 999px; pointer-events: none;
  background: conic-gradient(from var(--lm-a), rgb(255 255 255 / 0.9), rgb(255 255 255 / 0.05) 25%, rgb(170 200 255 / 0.6) 50%, rgb(255 255 255 / 0.05) 75%, rgb(255 255 255 / 0.9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity 0.3s ease; animation: lm-spin 4s linear infinite paused;
}
.ubd-search:focus-within { background: rgb(8 8 10 / 0.9); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16); }
.ubd-search:focus-within::before { opacity: 1; animation-play-state: running; }
.ubd-kbd {
  display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 0.4rem; border-radius: 8px;
  color: var(--mist); font: 600 0.8rem var(--font); background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12), inset 0 -2px 0 rgb(255 255 255 / 0.06);
  transition: opacity 0.2s ease;
}
.ubd-search:focus-within .ubd-kbd { opacity: 0; }

/* Tri : contrôle segmenté avec une pastille qui glisse (position calculée par serveurs.js). */
.ubd-finder .ubd-seg {
  position: relative; display: inline-flex; flex: 0 1 auto; padding: 4px; border-radius: 999px;
  background: rgb(8 8 10 / 0.7); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
}
.ubd-seg-pill {
  position: absolute; top: 0; left: 0; border-radius: 999px; pointer-events: none;
  background: linear-gradient(180deg, #f4f4f5, #d4d4d8); box-shadow: 0 6px 18px -8px rgb(255 255 255 / 0.5);
  transform: translate(var(--seg-x, 0), var(--seg-y, 4px)); width: var(--seg-w, 0); height: var(--seg-h, calc(100% - 8px)); opacity: 0;
  transition: transform 0.45s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)), width 0.45s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)), opacity 0.2s ease;
}
.ubd-seg[data-ready] .ubd-seg-pill { opacity: 1; }
.ubd-chip { position: relative; display: inline-flex; cursor: pointer; }
.ubd-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ubd-chip span {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 0.95rem; border-radius: 999px;
  color: var(--mist); font-size: 0.88rem; font-weight: 600; white-space: nowrap;
  transition: color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s var(--ease);
}
.ubd-seg-opt span { position: relative; z-index: 1; min-height: 40px; padding: 0 1.05rem; }
.ubd-seg-opt input:checked + span { color: #0b0b0d; }
/* Sans JS (pas de pastille), le choix actif reste lisible. */
.ubd-seg:not([data-ready]) .ubd-seg-opt input:checked + span { background: #e4e4e7; }
.ubd-chip input:focus-visible + span { box-shadow: 0 0 0 2px rgb(255 255 255 / 0.6); }

.ubd-finder-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.ubd-chips { display: flex; align-items: center; gap: 0.35rem; min-width: 0; }
.ubd-chips-title { float: left; margin-right: 0.35rem; color: var(--mist-2); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.ubd-chips .ubd-chip span { min-height: 34px; padding: 0 0.85rem; background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.ubd-chips .ubd-chip:hover span { color: var(--text); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18); transform: translateY(-1px); }
.ubd-chips .ubd-chip input:checked + span { color: #0b0b0d; background: #f4f4f5; box-shadow: none; }
/* Tags : une ligne qui défile, bords en fondu. */
.ubd-chips--scroll { flex: 1 1 260px; }
.ubd-chips-track {
  display: flex; gap: 0.35rem; overflow-x: auto; scrollbar-width: none; padding: 2px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}
/* Fondu à gauche seulement une fois la ligne défilée (serveurs.js), sinon « Tous » serait coupé. */
.ubd-chips-track.is-scrolled {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 28px), transparent);
}
.ubd-chips-track.is-end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px); mask-image: linear-gradient(90deg, transparent, #000 18px); }
.ubd-chips-track.is-fit { -webkit-mask-image: none; mask-image: none; }
.ubd-chips-track::-webkit-scrollbar { display: none; }

/* Interrupteur 18+ */
.ubd-switch { position: relative; display: inline-flex; align-items: center; gap: 0.55rem; color: var(--mist); font-size: 0.88rem; font-weight: 600; cursor: pointer; }
.ubd-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ubd-switch-track {
  position: relative; width: 42px; height: 24px; border-radius: 999px; background: rgb(255 255 255 / 0.1);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); transition: background-color 0.25s ease;
}
.ubd-switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #d4d4d8; box-shadow: 0 2px 6px rgb(0 0 0 / 0.4); transition: transform 0.35s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)), background-color 0.25s ease;
}
.ubd-switch input:checked + .ubd-switch-track { background: rgb(var(--dc-bad) / 0.55); }
.ubd-switch input:checked + .ubd-switch-track::after { transform: translateX(18px); background: #fff; }
.ubd-switch input:focus-visible + .ubd-switch-track { box-shadow: 0 0 0 2px rgb(255 255 255 / 0.6); }

.ubd-finder-end { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.ubd-reset { color: var(--mist); font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.ubd-reset:hover { color: var(--text); }
.ubd-reset[hidden] { display: none; }
/* Avec JS, chaque choix s'applique tout seul : plus besoin du bouton. */
.ubd-finder[data-auto] .ubd-apply { display: none; }
/* Résultats : remplacés sans recharger la page (serveurs.js), léger fondu pendant le chargement. */
.ubd-results { margin-top: 1.5rem; transition: opacity 0.2s ease; }
.ubd-results.is-loading { opacity: 0.45; pointer-events: none; }

/* Arrivée des cartes au fil du scroll (serveurs.js), en cascade. */
.ubd-rv { opacity: 0; transform: translateY(22px) scale(0.985); }
.ubd-rv.is-in { opacity: 1; transform: none; transition: opacity 0.6s ease var(--rv-d, 0ms), transform 0.7s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) var(--rv-d, 0ms); }

/* ── Carte du monde (en-tête de la liste) : derniers serveurs bumpés ── */
/* Posée directement dans l'en-tête, sans cadre ni fond. */
.ubd-map { margin: 0; }
.ubd-map-svg { display: block; width: 100%; height: auto; overflow: visible; }
.ubd-map-dots { fill: none; stroke: rgb(255 255 255 / 0.42); stroke-width: 6.4; stroke-linecap: round; }
/* Territoires des serveurs les plus bumpés de la semaine : mêmes points, teinte du serveur. */
.ubd-terr { fill: none; stroke: var(--terr); stroke-width: 6.4; stroke-linecap: round; opacity: 0.88; }
.ubd-terr-label { pointer-events: none; }
.ubd-terr-label text {
  fill: #f4f4f5; font-family: var(--font-display, inherit); font-weight: 700; letter-spacing: -0.02em; text-anchor: middle;
  paint-order: stroke; stroke: rgb(10 10 12 / 0.85); stroke-width: 0.22em; stroke-linejoin: round;
}
.ubd-terr-label .ubd-terr-n { fill: var(--terr); font-weight: 600; font-size: 0.72em; letter-spacing: 0; }
.ubd-pin { cursor: pointer; outline: none; }
/* Une icône par point, toutes à la même taille et en couleurs (27/11) ; au survol elle grossit. */
.ubd-pin image { transform-box: fill-box; transform-origin: center; transition: transform 0.2s var(--ease); }
.ubd-pin:hover image, .ubd-pin:focus-visible image { transform: scale(2.6); }

/* ── Cartes ── */
.ubd-grid {
  width: var(--shell); margin: 0 auto; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.1rem;
}
/* Carte au format « profil » : bannière + icône à cheval + bouton Rejoindre. */
.ubd-card {
  /* overflow visible : l'info-bulle « vérifié » peut sortir de la carte ; la bannière garde ses coins (ubd-cover). */
  position: relative; display: flex; flex-direction: column; overflow: visible;
  border-radius: 28px; background: #050506;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08), 0 24px 50px -30px rgb(0 0 0 / 0.85);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .ubd-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16), 0 28px 60px -30px rgb(0 0 0 / 0.9); }
}
.ubd-card:focus-within { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.3), 0 0 0 3px rgb(255 255 255 / 0.08); }

/* Bannière : celle du serveur Discord s'il en a une, sinon le feuillage par défaut. */
/* isolation : le dégradé de la bannière (z-index) reste sous l'icône qui chevauche, sans trait sombre au milieu. */
.ubd-cover { position: relative; isolation: isolate; height: 150px; overflow: hidden; border-radius: 28px 28px 0 0; background: #08080a; }
.ubd-cover::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: rgb(255 255 255 / 0.06); }
.ubd-cover--banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
/* Sans bannière Discord : feuillage sombre par défaut, un peu assombri en bas pour détacher l'icône. */
.ubd-cover--default::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgb(5 5 6 / 0) 45%, rgb(5 5 6 / 0.55) 100%);
}
@media (hover: hover) and (pointer: fine) {
  .ubd-card:hover .ubd-cover--banner img { transform: scale(1.04); }
}

.ubd-card-body { display: flex; flex-direction: column; flex: 1; gap: 0.45rem; padding: 0 1.35rem 1.35rem; }
.ubd-card-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.75rem; margin-top: -46px; margin-bottom: 0.4rem; }
.ubd-card .ubd-ic {
  position: relative; width: 84px; height: 84px; border-radius: 22px;
  box-shadow: 0 0 0 4px #050506, 0 10px 24px -10px rgb(0 0 0 / 0.8);
}
.ubd-card .ubd-ic--letter { font-size: 2rem; }
/* Rejoindre : pilule sombre (comme « Avoir mon propre bot » du site). */
.ubd-join {
  position: relative; z-index: 1; isolation: isolate; flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 6.5rem; height: 34px; min-height: 0; margin: 0; padding: 0 1.1rem; border-radius: 999px;
  color: #f4f4f5; font-weight: 600; font-size: 0.88rem; line-height: 1; letter-spacing: 0;
  /* Mat : aplat sombre + filet fin, sans dégradé ni reflet. Calé sur le bas de l'icône, 4 px sous la bannière. */
  background: #161618; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.ubd-join:hover, .ubd-join:focus-visible { background: #1e1e21; outline: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18); }
/* Option VIP / Perso : anneau « métal liquide » permanent (mêmes couleurs que le bouton Perso du site, home.css). */
.ubd-join--glow { position: relative; isolation: isolate; }
.ubd-join--glow::before, .ubd-join--glow::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.ubd-join--glow::before {
  inset: -6px; padding: 3px; border-radius: 999px;
  background: conic-gradient(from var(--lm-a),
    rgb(255 255 255 / 0.95) 0%, rgb(170 170 180 / 0.55) 7%, rgb(40 40 46 / 0.25) 14%,
    rgb(120 200 255 / 0.9) 21%, rgb(255 255 255 / 0.9) 26%, rgb(150 255 210 / 0.75) 31%,
    rgb(40 40 46 / 0.2) 40%, rgb(190 190 200 / 0.6) 47%, rgb(255 255 255 / 0.95) 52%,
    rgb(255 120 170 / 0.85) 58%, rgb(255 190 110 / 0.9) 63%, rgb(255 255 255 / 0.85) 68%,
    rgb(40 40 46 / 0.2) 77%, rgb(180 140 255 / 0.85) 85%, rgb(130 210 255 / 0.85) 91%, rgb(255 255 255 / 0.95) 100%);
  filter: blur(0.8px) saturate(1.25);
  animation: lm-spin 5s linear infinite;
}
.ubd-join--glow::after {
  inset: -9px; padding: 5px; border-radius: 999px;
  background:
    conic-gradient(from var(--lm-b),
      transparent 0%, rgb(255 90 130 / 0.55) 10%, rgb(255 200 90 / 0.5) 17%, transparent 27%,
      transparent 45%, rgb(90 220 255 / 0.55) 55%, rgb(120 255 190 / 0.45) 62%, rgb(170 120 255 / 0.5) 69%, transparent 80%),
    linear-gradient(rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.08));
  filter: blur(3px);
  animation: lm-spin-rev 7s linear infinite;
}
/* Actions de la carte : Aperçu Discord (rond, icône seule) + Rejoindre. */
.ubd-card-actions { position: relative; z-index: 1; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0; }
.ubd-card-actions .ubd-join { margin-bottom: 0; }
.ubd-peek {
  position: relative; z-index: 1; flex: none; display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 999px; color: #e4e4e7; text-decoration: none;
  background: #161618; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  transition: color 0.15s, box-shadow 0.15s, background 0.15s;
}
.ubd-peek:hover, .ubd-peek:focus-visible { color: #fff; outline: none; background: #1e1e21; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18); }
.ubd-peek svg { width: 16px; height: 16px; }
.ubd-peek[aria-busy="true"] svg { animation: ubd-peek-pulse 0.9s ease-in-out infinite; }
@keyframes ubd-peek-pulse { 50% { opacity: 0.35; } }
.ubd-peek-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Fiche : bouton complet « Aperçu du serveur ». */
.ubd-peek-long { display: inline-flex; align-items: center; gap: 0.5rem; }
.ubd-peek-long svg { flex: none; }
.ubd-peek-long[aria-busy="true"] svg { animation: ubd-peek-pulse 0.9s ease-in-out infinite; }

.ubd-card .ubd-name { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; font-size: 1.25rem; line-height: 1.2; }
.ubd-verified { position: relative; z-index: 2; display: inline-flex; color: rgb(var(--dc-ok)); flex: none; border-radius: 50%; cursor: help; outline: none; }
.ubd-verified:focus-visible { box-shadow: 0 0 0 2px #050506, 0 0 0 4px rgb(var(--dc-ok) / 0.6); }
/* Info-bulle : carte sombre mate au-dessus du badge, petite flèche, apparition douce (survol / focus). */
.ubd-tip {
  position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 20; width: max-content; max-width: min(280px, 80vw);
  display: grid; gap: 0.25rem; padding: 0.7rem 0.85rem; border-radius: 12px; text-align: left; white-space: normal;
  background: #141417; color: var(--mist); font: 400 0.8rem/1.45 var(--font, inherit); letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1), 0 18px 40px -16px rgb(0 0 0 / 0.9);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
}
.ubd-tip::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  background: #141417; transform: rotate(45deg); box-shadow: inset -1px -1px 0 rgb(255 255 255 / 0.1);
}
.ubd-tip strong { display: flex; align-items: center; gap: 0.35rem; color: var(--text); font-size: 0.84rem; font-weight: 600; }
.ubd-tip strong::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--dc-ok)); }
.ubd-verified:hover .ubd-tip, .ubd-verified:focus-visible .ubd-tip, .ubd-verified:focus .ubd-tip {
  opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s;
}
.ubd-profile-name .ubd-tip { font-family: var(--font, inherit); }
.ubd-card .ubd-badge--adult { position: relative; z-index: 1; }
.ubd-handle { margin: -0.2rem 0 0.15rem; color: var(--mist-2); font-size: 0.8rem; }
.ubd-card .ubd-desc { color: #e4e4e7; font-size: 0.92rem; -webkit-line-clamp: 2; }
.ubd-card .ubd-stats { gap: 1.6rem; margin: 0.35rem 0 0; font-size: 0.85rem; color: var(--mist-2); }
.ubd-card .ubd-stat strong { margin-right: 0.25rem; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
/* Tags en liens texte (comme le lien d'un profil), en gris : la couleur reste réservée aux états. */
.ubd-card .ubd-taglist { gap: 0.15rem 0.75rem; margin-top: 0.2rem; }
.ubd-card .ubd-taglist a {
  min-height: 0; padding: 0; background: none; box-shadow: none; border-radius: 4px;
  color: #d4d4d8; font-size: 0.86rem; font-weight: 500;
}
.ubd-card .ubd-taglist a:hover, .ubd-card .ubd-taglist a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; box-shadow: none; }
.ubd-name { margin: 0; font: 700 1.05rem/1.25 var(--font-display); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.ubd-card-link { color: inherit; text-decoration: none; outline: none; }
/* Toute la carte est cliquable ; les tags restent des liens à part. */
.ubd-card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ubd-ic { flex: none; width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: #222226; box-shadow: inset 0 0 0 1px var(--line); }
.ubd-ic--letter, .ubd-fic--letter {
  display: grid; place-items: center; color: var(--text); font: 700 1.3rem var(--font-display);
  background: linear-gradient(135deg, #2c2c33, #17171b);
}
.ubd-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.35rem; }
.ubd-badges:empty { display: none; }
.ubd-badge {
  padding: 0.14rem 0.55rem; border-radius: 999px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text); background: rgb(255 255 255 / 0.07); box-shadow: inset 0 0 0 1px var(--line);
}
.ubd-badge--ok { color: #b7f0c7; background: rgb(var(--dc-ok) / 0.1); box-shadow: inset 0 0 0 1px rgb(var(--dc-ok) / 0.28); }
.ubd-badge--adult { color: #fecaca; background: rgb(var(--dc-bad) / 0.1); box-shadow: inset 0 0 0 1px rgb(var(--dc-bad) / 0.28); }
.ubd-desc {
  margin: 0; color: var(--mist); font-size: 0.9rem; line-height: 1.55; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ubd-stats { display: flex; flex-wrap: wrap; gap: 1rem; margin: auto 0 0; color: var(--mist); font-size: 0.82rem; }
.ubd-stats:empty { display: none; }
.ubd-stat { display: inline-flex; align-items: center; gap: 0.45rem; }
.ubd-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #71717a; }
.ubd-dot--on { background: rgb(var(--dc-ok)); box-shadow: 0 0 0 3px rgb(var(--dc-ok) / 0.16); }
.ubd-taglist { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.ubd-taglist a {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 0.35rem; min-height: 28px;
  padding: 0.2rem 0.65rem; border-radius: 999px; color: var(--mist); font-size: 0.78rem; text-decoration: none;
  background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px var(--line);
}
.ubd-taglist a:hover, .ubd-taglist a:focus-visible { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); outline: none; }
.ubd-taglist a span { color: var(--mist-2); }
.ubd-empty { width: var(--shell); margin: 2.5rem auto; color: var(--mist); text-align: center; }
.ubd-pager { width: var(--shell); margin: 2rem auto 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ubd-pager-info { color: var(--mist-2); font-size: 0.85rem; }

/* ── Page de tag : intro (texte rédigé + chiffres du tag) et tags proches, au-dessus de la grille ── */
.ubd-taghead { width: var(--shell); margin: 0 auto 1.6rem; }
.ubd-taglead { max-width: 72ch; margin: 0; color: var(--mist); font-size: 1rem; line-height: 1.7; }
.ubd-tagnear { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.95rem; margin: 0.85rem 0 0; font-size: 0.9rem; }
.ubd-tagnear span { color: var(--mist-2); }
.ubd-tagnear a { color: #d4d4d8; font-weight: 500; text-decoration: none; border-radius: 4px; }
.ubd-tagnear a:hover, .ubd-tagnear a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; outline: none; }

/* ── Carte « Ton serveur ici ? » (dernière case de la grille), tags, FAQ ── */
.ubd-ghost { background: transparent; box-shadow: none; }
.ubd-ghost::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  border: 1.5px dashed rgb(255 255 255 / 0.16);
}
.ubd-ghost .ubd-cover img { filter: grayscale(0.55) brightness(0.55); }
.ubd-ghost .ubd-cover::after { display: none; }
.ubd-ghost .ubd-ghost-ic {
  display: grid; place-items: center; color: var(--mist-2);
  background: #0b0b0d; box-shadow: 0 0 0 4px #050506, inset 0 0 0 1.5px rgb(255 255 255 / 0.14);
}
.ubd-ghost .ubd-name { color: var(--text); }
.ubd-ghost .ubd-desc { color: var(--mist); -webkit-line-clamp: unset; }
.ubd-ghost-doc { margin: auto 0 0; padding-top: 0.4rem; font-size: 0.86rem; }
.ubd-ghost-doc a { color: #d4d4d8; text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.25); text-underline-offset: 3px; }
.ubd-ghost-doc a:hover { color: #fff; text-decoration-color: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .ubd-ghost:hover { transform: none; box-shadow: none; }
  .ubd-ghost:hover::before { border-color: rgb(255 255 255 / 0.3); }
}
.ubd-page code { padding: 0.08rem 0.38rem; border-radius: 6px; color: var(--text); font-family: var(--font-mono); font-size: 0.86em; background: rgb(255 255 255 / 0.07); }
.ubd-tagcloud, .ubd-faq, .ubd-similar { width: var(--shell); margin: 3.5rem auto 0; }
.ubd-tagcloud h2, .ubd-faq h2, .ubd-similar h2, .ubd-about h2, .ubd-side-title { margin: 0 0 1rem; font: 700 1.15rem/1.3 var(--font-display); letter-spacing: -0.01em; }
.ubd-faq { max-width: 860px; margin-inline: auto; }
.ubd-faq-item { padding: 1rem 0; border-top: 1px solid var(--line); }
.ubd-faq-item:last-child { border-bottom: 1px solid var(--line); }
.ubd-faq-item summary { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; cursor: pointer; list-style: none; }
.ubd-faq-item summary::-webkit-details-marker { display: none; }
.ubd-faq-item summary::after { content: "+"; flex: none; color: var(--mist); font-weight: 400; transition: transform 0.2s var(--ease); }
.ubd-faq-item[open] summary::after { transform: rotate(45deg); }
.ubd-faq-item p { max-width: 75ch; margin: 0.75rem 0 0; color: var(--mist); line-height: 1.65; }

/* ── Fiche : une carte « profil » en grand (bannière, icône à cheval, nom, chiffres), puis
   à propos et infos dans le même bloc, séparés par un filet. Le signalement vit avec les infos. ── */
.ubd-fwrap { width: var(--shell); margin: 0 auto; }
.ubd-profile {
  position: relative; margin-top: 1rem; overflow: hidden; border-radius: 28px; background: #050506;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08), 0 30px 70px -40px rgb(0 0 0 / 0.9);
}
.ubd-profile-cover { position: relative; isolation: isolate; height: clamp(150px, 22vw, 250px); overflow: hidden; background: #08080a; }
.ubd-profile-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ubd-profile-cover::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: rgb(255 255 255 / 0.06); }
.ubd-profile-bar { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: -62px; padding: 0 2rem; }
.ubd-fic {
  position: relative; flex: none; width: 124px; height: 124px; border-radius: 30px; object-fit: cover; background: #18181b;
  box-shadow: 0 0 0 6px #050506, 0 16px 30px -14px rgb(0 0 0 / 0.9);
}
.ubd-fic--letter { font-size: 2.8rem; }
.ubd-profile-cta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.6rem; padding-bottom: 0.2rem; }
.ubd-profile-id { padding: 1.1rem 2rem 0; }
.ubd-profile-name {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.55rem; margin: 0;
  font: 700 clamp(1.8rem, 3.2vw, 2.5rem)/1.1 var(--font-display); letter-spacing: -0.02em; overflow-wrap: anywhere;
}
.ubd-profile-name .ubd-verified svg { width: 26px; height: 26px; }
.ubd-profile-name .ubd-badge { font-family: inherit; font-size: 0.8rem; letter-spacing: 0; }
.ubd-profile .ubd-handle { margin: 0.45rem 0 0; font-size: 0.88rem; }
.ubd-profile .ubd-stats { display: flex; flex-wrap: wrap; gap: 0.5rem 1.9rem; margin: 0.9rem 0 0; color: var(--mist-2); font-size: 0.92rem; }
.ubd-profile .ubd-stat strong { margin-right: 0.3rem; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.ubd-profile > .ubd-notice { margin: 1.25rem 2rem 0; }

.ubd-fbody {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; margin-top: 1.9rem;
  border-top: 1px solid rgb(255 255 255 / 0.07);
}
.ubd-about { padding: 1.75rem 2rem 2.1rem; }
.ubd-side { padding: 1.75rem 2rem 2.1rem; border-left: 1px solid rgb(255 255 255 / 0.07); }
.ubd-fiche .ubd-label { margin: 0 0 0.9rem; color: var(--mist-2); font-family: inherit; font-size: 0.76rem; font-weight: 600; line-height: 1.2; letter-spacing: 0.06em; text-transform: uppercase; }
.ubd-about-text p { max-width: 70ch; margin: 0 0 1rem; color: #e4e4e7; font-size: 1rem; line-height: 1.75; overflow-wrap: anywhere; }
.ubd-about-text p:last-child { margin-bottom: 0; }
.ubd-ftags { display: flex; flex-wrap: wrap; gap: 0.3rem 0.95rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.ubd-ftags a { color: #d4d4d8; font-size: 0.9rem; font-weight: 500; text-decoration: none; border-radius: 4px; }
.ubd-ftags a:hover, .ubd-ftags a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; outline: none; }
.ubd-facts { margin: 0; }
.ubd-facts div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid rgb(255 255 255 / 0.06); font-size: 0.9rem; }
.ubd-facts div:first-child { padding-top: 0; }
.ubd-facts dt { color: var(--mist-2); }
.ubd-facts dd { margin: 0; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.ubd-side-note { display: flex; align-items: flex-start; gap: 0.5rem; margin: 1rem 0 0; color: var(--mist); font-size: 0.82rem; line-height: 1.45; }
.ubd-side-note svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: rgb(var(--dc-ok)); }
.ubd-grid--sm { width: 100%; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ubd-notice { margin: 1rem 0 0; padding: 0.75rem 1rem; border-radius: 12px; font-size: 0.9rem; }
.ubd-notice--ok { color: #b7f0c7; background: rgb(var(--dc-ok) / 0.08); box-shadow: inset 0 0 0 1px rgb(var(--dc-ok) / 0.22); }
.ubd-notice--warn { color: #fde68a; background: rgb(var(--dc-warn) / 0.07); box-shadow: inset 0 0 0 1px rgb(var(--dc-warn) / 0.22); }

/* ── Publié par : avatar + nom affiché Discord, badge « Propriétaire » ── */
.ubd-fact-pub dd { min-width: 0; }
.ubd-pub { display: inline-flex; align-items: center; gap: 0.5rem; max-width: 100%; }
.ubd-pub-av { flex: none; width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: #1a1a1d; }
.ubd-pub-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 500; }
.ubd-pub-tag { flex: none; padding: 0.1rem 0.45rem; border-radius: 999px; font-size: 0.7rem; font-weight: 600; color: #b7f0c7; background: rgb(var(--dc-ok) / 0.1); box-shadow: inset 0 0 0 1px rgb(var(--dc-ok) / 0.25); }

/* ── Signalement : petit lien sous les infos, qui ouvre une fenêtre en 2 étapes ── */
.ubd-report { margin: 1.4rem 0 0; }
.ubd-report a {
  display: inline-flex; align-items: center; gap: 0.45rem; margin-left: -0.7rem; padding: 0.45rem 0.7rem;
  border-radius: 999px; color: var(--mist-2); font-size: 0.88rem; text-decoration: none; transition: color 0.15s, background 0.15s;
}
.ubd-report a:hover, .ubd-report a:focus-visible { color: var(--text); background: rgb(255 255 255 / 0.05); outline: none; }

html.ubd-rlock, html.ubd-rlock body { overflow: hidden; }
.ubd-rmodal { position: fixed; inset: 0; z-index: 9000; display: none; align-items: center; justify-content: center; padding: 1.25rem; }
.ubd-rmodal.is-open, .ubd-rmodal:not(.is-js):target { display: flex; }
.ubd-rmodal-scrim { position: absolute; inset: 0; background: rgb(4 4 6 / 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: ubd-rfade 0.2s ease; }
.ubd-rmodal-card {
  position: relative; width: min(600px, 100%); max-height: min(760px, calc(100dvh - 2.5rem)); overflow-y: auto; overscroll-behavior: contain;
  padding: 1.5rem; border-radius: 24px; background: #0f0f12; color: var(--text);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08), 0 40px 90px -30px rgb(0 0 0 / 0.9);
  animation: ubd-rpop 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes ubd-rfade { from { opacity: 0; } }
@keyframes ubd-rpop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.ubd-rhead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.9rem; align-items: start; }
.ubd-rhead-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fca5a5; background: rgb(var(--dc-bad) / 0.1); box-shadow: inset 0 0 0 1px rgb(var(--dc-bad) / 0.22); }
.ubd-rhead-ic svg { width: 18px; height: 18px; }
.ubd-rhead h2 { margin: 0; font: 700 1.2rem/1.25 var(--font-display); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.ubd-rhead p { margin: 0.3rem 0 0; color: var(--mist); font-size: 0.9rem; line-height: 1.5; }
.ubd-rclose { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--mist-2); transition: background 0.15s, color 0.15s; }
.ubd-rclose:hover, .ubd-rclose:focus-visible { color: var(--text); background: rgb(255 255 255 / 0.06); outline: none; }
.ubd-rmodal .ubd-notice { margin-top: 1rem; }
.ubd-rform { margin-top: 1.25rem; }
.ubd-rstep-label { display: flex; flex-direction: column; gap: 0.15rem; margin: 0 0 0.75rem; font-weight: 600; }
.ubd-rstep-label span { color: var(--mist-2); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.ubd-rreasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin: 0; padding: 0; border: 0; }
.ubd-rreason {
  position: relative; display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.8rem; border-radius: 14px; cursor: pointer;
  background: rgb(255 255 255 / 0.025); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07); transition: background 0.15s, box-shadow 0.15s;
}
.ubd-rreason:hover { background: rgb(255 255 255 / 0.045); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.13); }
.ubd-rreason input { position: absolute; opacity: 0; pointer-events: none; }
.ubd-rreason:has(input:focus-visible) { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.4), 0 0 0 3px rgb(255 255 255 / 0.08); }
.ubd-rreason:has(input:checked) { background: rgb(255 255 255 / 0.07); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.45); }
.ubd-rreason-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #d4d4d8; background: #17171b; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06); }
.ubd-rreason-ic svg { width: 18px; height: 18px; }
.ubd-rreason:has(input:checked) .ubd-rreason-ic { color: #0b0b0d; background: #f4f4f5; }
.ubd-rreason-txt { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.ubd-rreason-txt strong { font-size: 0.92rem; font-weight: 600; }
.ubd-rreason-txt small { color: var(--mist-2); font-size: 0.8rem; line-height: 1.4; }
.ubd-rmodal:not(.is-js) .ubd-rstep + .ubd-rstep { margin-top: 1.25rem; }
.ubd-rchosen { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.9rem; padding: 0.55rem 0.6rem 0.55rem 0.55rem; border-radius: 12px; background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.ubd-rchosen [data-ubd-chosen-ic] { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #0b0b0d; background: #f4f4f5; }
.ubd-rchosen [data-ubd-chosen-ic] svg { width: 15px; height: 15px; }
.ubd-rchosen strong { flex: 1; min-width: 0; font-size: 0.9rem; font-weight: 600; }
.ubd-rlink { padding: 0.3rem 0.55rem; border: 0; border-radius: 8px; background: none; color: var(--mist); font: inherit; font-size: 0.84rem; cursor: pointer; }
.ubd-rlink:hover, .ubd-rlink:focus-visible { color: var(--text); background: rgb(255 255 255 / 0.06); outline: none; }
.ubd-rfield { display: grid; gap: 0.45rem; }
.ubd-rfield-top { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.88rem; font-weight: 600; }
.ubd-rfield-top em { margin-left: 0.3rem; color: var(--mist-2); font-style: normal; font-weight: 400; }
.ubd-rfield-top em.is-req { color: #fca5a5; }
.ubd-rcount { color: var(--mist-2); font-weight: 400; font-variant-numeric: tabular-nums; }
.ubd-rfield textarea {
  min-height: 120px; padding: 0.75rem 0.9rem; border: 0; border-radius: 14px; resize: vertical; color: var(--text); font: inherit; font-size: 0.92rem; line-height: 1.5;
  background: #0a0a0c; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.09);
}
.ubd-rfield textarea:focus-visible { outline: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.3); }
.ubd-rerr { margin: 0.75rem 0 0; color: #fca5a5; font-size: 0.86rem; }
.ubd-rfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / 0.06); }
.ubd-rprivacy { color: var(--mist-2); font-size: 0.8rem; }
.ubd-rbtns { display: flex; gap: 0.5rem; margin-left: auto; }
.ubd-rbtns button[disabled] { opacity: 0.45; cursor: not-allowed; }
.ubd-rdone { display: grid; justify-items: center; gap: 0.6rem; padding: 1.75rem 0.5rem 0.5rem; text-align: center; }
.ubd-rdone[hidden], .ubd-rform[hidden], .ubd-rstep[hidden] { display: none; }
.ubd-rmodal[data-done] .ubd-rform { display: none; }
.ubd-rdone-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: rgb(var(--dc-ok)); background: rgb(var(--dc-ok) / 0.1); box-shadow: inset 0 0 0 1px rgb(var(--dc-ok) / 0.25); }
.ubd-rdone h3 { margin: 0.4rem 0 0; font: 700 1.15rem/1.3 var(--font-display); }
.ubd-rdone p { margin: 0 0 0.6rem; color: var(--mist); }
@media (max-width: 560px) {
  .ubd-rmodal { align-items: flex-end; padding: 0; }
  .ubd-rmodal-card { width: 100%; max-height: 92dvh; border-radius: 22px 22px 0 0; padding: 1.25rem; }
  .ubd-rreasons { grid-template-columns: minmax(0, 1fr); }
  .ubd-rprivacy { width: 100%; }
}
.ubd-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ubd-fiche .ubd-similar { margin-top: 4rem; }

@media (max-width: 860px) {
  .ubd-fbody { grid-template-columns: 1fr; }
  .ubd-side { border-left: 0; border-top: 1px solid rgb(255 255 255 / 0.07); }
  /* Mobile : icône, nom et chiffres, puis les boutons sur toute la largeur. */
  .ubd-profile { display: grid; grid-template-areas: "cover" "icon" "id" "cta" "notice" "body"; border-radius: 24px; }
  .ubd-profile-cover { grid-area: cover; }
  .ubd-profile-bar { display: contents; }
  .ubd-fic { grid-area: icon; width: 92px; height: 92px; border-radius: 24px; margin: -46px 0 0 1.25rem; }
  .ubd-fic--letter { font-size: 2.1rem; }
  .ubd-profile-id { grid-area: id; padding: 0.9rem 1.25rem 0; }
  .ubd-profile-cta { grid-area: cta; justify-content: stretch; padding: 1.1rem 1.25rem 0; }
  .ubd-profile-cta .btn { flex: 1 1 auto; }
  .ubd-profile > .ubd-notice { grid-area: notice; margin: 1rem 1.25rem 0; }
  .ubd-fbody { grid-area: body; margin-top: 1.5rem; }
  .ubd-about, .ubd-side { padding: 1.4rem 1.25rem 1.6rem; }
}
@media (max-width: 560px) {
  .ubd-finder { padding: 0.75rem; border-radius: 22px; }
  .ubd-search { flex-basis: 100%; height: 48px; }
  .ubd-kbd { display: none; }
  /* Mobile : les 4 tris en 2 × 2, tous visibles (plus de « Nouveaux » caché hors cadre). */
  .ubd-finder .ubd-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 100%; padding: 4px; border-radius: 22px; }
  .ubd-seg-opt { display: flex; }
  .ubd-seg-opt span { flex: 1; justify-content: center; min-height: 38px; padding: 0 0.6rem; font-size: 0.84rem; }
  .ubd-finder-row { display: grid; grid-template-columns: minmax(0, 1fr); }
  .ubd-chips { flex-wrap: wrap; }
  .ubd-chips--scroll { flex-wrap: nowrap; }
  .ubd-chips--scroll .ubd-chips-track { flex: 1; min-width: 0; }
  .ubd-finder-end { margin-left: 0; }
}
html[data-motion-policy="reduce"] .ubd-card, html[data-motion-policy="reduce"] .ubd-faq-item summary::after,
html[data-motion-policy="reduce"] .ubd-cover--banner img { transition: none; }
html[data-motion-policy="reduce"] .ubd-join--glow::before, html[data-motion-policy="reduce"] .ubd-join--glow::after { animation: none; }
html[data-motion-policy="reduce"] .ubd-pin image { transition: none; }
html[data-motion-policy="reduce"] .ubd-seg-pill, html[data-motion-policy="reduce"] .ubd-switch-track::after { transition: none; }
html[data-motion-policy="reduce"] .ubd-search::before { animation: none; }

/* Défilement fluide (27/11) : pendant que la page défile à la molette (html.is-scrolling, posé par
   smooth-wheel.js), les cartes ne réagissent plus au survol. Sinon chaque carte qui passe sous la
   souris rejoue ombre + zoom de bannière, et le préchargement de l'Aperçu se lançait en plein défilement.
   Le survol revient 150 ms après l'arrêt. */
html.is-scrolling .ubd-grid { pointer-events: none; }

/* ── Responsive (27/11) ──────────────────────────────────────────────────────────────────
   Nom de la fiche : le dernier mot reste collé au badge vérifié (jamais un badge seul sur sa ligne). */
.ubd-profile-name { display: block; }
.ubd-profile-name .ubd-glue { white-space: nowrap; }
.ubd-profile-name .ubd-glue .ubd-tip { white-space: normal; }
.ubd-profile-name .ubd-verified, .ubd-profile-name .ubd-badge { display: inline-flex; vertical-align: middle; position: relative; top: -0.06em; margin-left: 0.45rem; }

/* Filtres : sur téléphone, langue, tags et 18+ passent derrière un bouton à côté de la recherche. */
.ubd-more-btn { display: none; }
.ubd-more-n[hidden] { display: none; }
@media (max-width: 560px) {
  .ubd-finder { gap: 0.6rem; }
  .ubd-finder-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; }
  .ubd-finder-top .ubd-search { min-width: 0; flex: none; }
  .ubd-finder .ubd-seg { grid-column: 1 / -1; }
  .ubd-finder.has-more .ubd-more-btn {
    position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 999px;
    color: var(--mist); background: rgb(8 8 10 / 0.7); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  }
  .ubd-finder.has-more .ubd-more-btn:active { transform: scale(0.94); }
  .ubd-finder.is-more .ubd-more-btn { color: #0b0b0d; background: #f4f4f5; box-shadow: none; }
  .ubd-more-n {
    position: absolute; top: -3px; right: -3px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; color: #0b0b0d; background: #f4f4f5; box-shadow: 0 0 0 2px #0e0e11; font: 700 0.68rem/1 var(--font);
  }
  .ubd-finder.is-more .ubd-more-n { color: #f4f4f5; background: #0b0b0d; }
  .ubd-finder.has-more:not(.is-more) .ubd-finder-row { display: none; }
  .ubd-finder.is-more .ubd-finder-row { animation: ubd-more-in 0.32s cubic-bezier(0.22, 1, 0.36, 1); }
  .ubd-finder-row { gap: 0.6rem; padding: 0.15rem 0.1rem 0.1rem; }
  .ubd-chips, .ubd-chips--lang { flex-wrap: nowrap; }
  .ubd-chips .ubd-chips-track { flex: 1; min-width: 0; }
  .ubd-chips-title { flex: none; min-width: 4.4rem; }
}
@keyframes ubd-more-in { from { opacity: 0; transform: translate3d(0, -6px, 0); } }
