/* Shared styles for the Infinite Fusion browse sections (dex, self/triple fusions,
   artists, authors, tags, collections). */
.br-wrap { max-width: 1000px; margin: 0 auto; }
.br-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.br-tabs a {
  padding: 6px 14px; border-radius: 999px; text-decoration: none; color: inherit; font-weight: 600;
  font-size: .9rem; border: 1px solid var(--muted-border-color, #ccc);
}
.br-tabs a.active { background: #4361ee; color: #fff; border-color: #4361ee; }
.br-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.br-toolbar input { flex: 1; min-width: 200px; }
@media (max-width: 600px) { .br-toolbar input { flex-basis: 100%; } }
#brCount { opacity: .7; font-size: .9rem; white-space: nowrap; }

.br-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.br-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 6px 10px;
  border: 1px solid var(--muted-border-color, #ddd); border-radius: 12px; text-decoration: none; color: inherit;
  transition: border-color .12s ease, transform .12s ease;
}
.br-card:hover { border-color: #4361ee; transform: translateY(-2px); }
.br-card img { width: 84px; height: 84px; object-fit: contain; image-rendering: pixelated; }
.br-name { font-weight: 700; font-size: .85rem; margin-top: 4px; }
.br-types { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.br-type { color: #fff; font-size: .58rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; }

.br-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.br-listitem {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px;
  border: 1px solid var(--muted-border-color, #ddd); border-radius: 10px; text-decoration: none; color: inherit;
}
.br-listitem:hover { border-color: #4361ee; }
.br-listname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-listcount { opacity: .6; font-size: .85rem; white-space: nowrap; }

.br-entries { display: flex; flex-direction: column; gap: 10px; }
.br-entry { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--muted-border-color, #ddd); border-radius: 10px; text-decoration: none; color: inherit; }
.br-entry:hover { border-color: #4361ee; }
.br-entry img { width: 64px; height: 64px; object-fit: contain; image-rendering: pixelated; flex: 0 0 auto; }
.br-entrynum { font-weight: 700; opacity: .6; font-size: .8rem; }
.br-entry p { margin: 2px 0 0; font-size: .9rem; opacity: .9; }
