/* taxonomy.css — списки фандомов и меток (token-only) */

main.taxonomy { max-width: 1100px; margin: 0 auto; }

.tx-head{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin:12px 0; }
.tx-title{ margin:0; }

/* Поиск */
.tx-search{ flex:1 1 320px; display:flex; gap:8px; }
.tx-search input{
  flex:1 1 auto;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:10px;
  background: var(--surface);
  color: var(--text);
}
.tx-search input::placeholder{ color: var(--muted); }

/* Сетка */
.tx-list{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap:10px;
  margin-top:12px;
}

/* Плитка элемента */
.tx-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:10px;
  background: var(--surface-2);
}
.tx-item a{
  text-decoration:none;
  font-weight:800;
  color: inherit;            /* берём из темы */
}
.tx-item a:hover{
  text-decoration:underline;
  text-underline-offset:3px;
}

/* Счётчик */
.tx-count{
  font-size:.75rem;
  font-weight:800;
  padding:4px 8px;
  border-radius:999px;
  background: var(--surface);
  border:1px solid var(--border);
  color: var(--muted);
  flex:0 0 auto;
}

/* Пусто */
.empty{
  border:1px dashed var(--border);
  padding:16px;
  text-align:center;
  border-radius:12px;
  color: var(--muted);
  background: var(--surface-2);
}