/* ========================================
   GenshinNews — main.css
   Стиль вдохновлён wotpack.ru
   ======================================== */

:root {
  --accent:       #e8b45a;   /* золотой Genshin */
  --accent-dark:  #c99840;
  --bg:           #0f1117;   /* очень тёмный фон */
  --bg-card:      #181c27;
  --bg-card-hover:#1e2333;
  --border:       #2a2f3d;
  --text:         #e2e6f0;
  --text-muted:   #7a8299;
  --text-dim:     #4a5068;
  --radius:       10px;
  --radius-sm:    6px;
  --shadow:       0 4px 24px rgba(0,0,0,.45);
  --transition:   .2s ease;
  --container:    1200px;
  --header-h:     64px;
}

/* ── Reset ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ── Container ───────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ──────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(15,17,23,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.3px;
}
.logo-icon { font-size: 22px; }
.logo-accent { color: var(--accent); }

/* Nav */
.main-nav {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow: hidden;
}
.nav-link {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--bg-card);
}
.nav-link.active { color: var(--accent); }

/* Search wrap (позиционирование dropdown) */
.search-wrap {
  position: relative;
}

/* Search */
.search-form {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.search-form:focus-within { border-color: var(--accent); }
.search-input {
  background: none;
  border: none;
  outline: none;
  padding: 7px 14px;
  font-size: 14px;
  color: var(--text);
  width: 180px;
}
.search-input::placeholder { color: var(--text-dim); }
.search-btn {
  background: none;
  border: none;
  padding: 8px 12px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.search-btn:hover { color: var(--accent); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Mobile menu ─────────────────────────── */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 99;
  padding: 8px 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 20px;
  font-size: 15px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--accent); }

/* ── Main ────────────────────────────────── */
.site-main { flex: 1; padding: 32px 0 48px; }

/* ── Hero article ────────────────────────── */
.hero-article {
  margin-bottom: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}
.hero-article:hover { border-color: var(--accent); }
.hero-link { display: flex; flex-direction: column; }
.hero-image-wrap { position: relative; }
.hero-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.hero-placeholder {
  width: 100%; height: 420px;
  background: linear-gradient(135deg, #1a1f2e 0%, #252c40 100%);
}
.hero-category-badge {
  position: absolute;
  top: 16px; left: 16px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .3px;
}
.hero-body { padding: 24px 28px 28px; }
.hero-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text);
  transition: color var(--transition);
}
.hero-article:hover .hero-title { color: var(--accent); }
.hero-excerpt {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 16px;
  line-height: 1.6;
}
.hero-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ── Articles grid ───────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

/* ── Article card ────────────────────────── */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card-link { display: flex; flex-direction: column; height: 100%; }
.card-image-wrap { position: relative; }
.card-image {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  object-position: center;
  background: #0f1117;
}
.card-placeholder {
  width: 100%; height: 190px;
  background: linear-gradient(135deg, #1a1f2e 0%, #252c40 100%);
}
.card-category-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text);
  transition: color var(--transition);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card:hover .card-title { color: var(--accent); }
.card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: auto;
}

/* ── Meta shared ─────────────────────────── */
.meta-date, .meta-views { display: flex; align-items: center; gap: 4px; }

/* ── Telegram inline emoji ───────────────── */
img.tg-emoji {
  display: inline;
  width: 20px;
  height: 20px;
  vertical-align: -4px;
  margin: 0 1px;
  object-fit: contain;
}

/* ── Article image gallery (мульти-фото) ─── */
.article-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 24px;
}
.article-gallery-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: opacity var(--transition);
}
.article-gallery-item:hover img { opacity: .85; }

/* ── Telegram embed container ────────────── */
.telegram-embed-container {
  margin: 0 auto;
  max-width: 600px;
  min-height: 200px;
}

/* ── Play badge (видео-превью) ───────────── */
.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: rgba(0,0,0,.65);
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  pointer-events: none;
  transition: background var(--transition), transform var(--transition);
  padding-left: 3px; /* оптическая центровка треугольника */
}
.hero-play {
  width: 56px;
  height: 56px;
  font-size: 20px;
}
.article-card:hover .play-badge,
.hero-article:hover .play-badge {
  background: rgba(232,180,90,.8);
  border-color: #fff;
  transform: translate(-50%, -50%) scale(1.1);
}

/* ── Article video wrap ──────────────────── */
.article-video-wrap {
  position: relative;
  display: block;
}
.article-video-wrap img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}
.article-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: rgba(0,0,0,.6);
  border: 3px solid rgba(255,255,255,.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  padding-left: 4px;
  transition: background var(--transition), transform var(--transition);
}
.article-video-wrap:hover .article-play-btn {
  background: rgba(232,180,90,.85);
  transform: translate(-50%, -50%) scale(1.08);
}

/* ── Pagination ──────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: border-color var(--transition), color var(--transition);
  cursor: pointer;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-info { font-size: 13px; color: var(--text-muted); }

/* ── Page header ─────────────────────────── */
.page-header {
  text-align: center;
  padding: 0 0 32px;
}
.page-header-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}
.page-header-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.page-header-sub { font-size: 14px; color: var(--text-muted); }

/* ── Article full ────────────────────────── */
.article-layout { max-width: 820px; margin: 0 auto; }

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--text-dim); }
.breadcrumb-current { color: var(--text-dim); }

.article-full { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; margin-bottom: 32px; }

.article-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.article-category-badge {
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.article-date, .article-views { font-size: 13px; color: var(--text-muted); }

.article-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 16px;
}
.article-lead {
  font-size: 16px;
  color: var(--text-muted);
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin-bottom: 24px;
  font-style: italic;
}
.article-cover {
  margin-bottom: 28px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.article-cover img { width: 100%; max-height: 480px; object-fit: cover; }

/* ── HTML5 Video Player ───────────────────── */
.article-player-wrap {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.article-video {
  display: block;
  width: 100%;
  max-height: 540px;
  background: #000;
  /* Стилизация нативных контролов через акцентный цвет */
  accent-color: var(--accent);
}
/* Chrome/Edge — цвет полосы прогресса */
.article-video::-webkit-media-controls-panel {
  background: linear-gradient(transparent, rgba(0,0,0,.75));
}
.article-video::-webkit-media-controls-timeline {
  accent-color: var(--accent);
}
/* Красивая рамка при фокусе */
.article-video:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Article content typography */
.article-content { line-height: 1.75; color: var(--text); }
.article-content p { margin-bottom: 14px; }
.article-content br { display: block; margin: 4px 0; }
.article-content strong { color: #fff; font-weight: 600; }
.article-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.article-content li {
  margin-bottom: 6px;
  color: var(--text-muted);
}
.article-content .article-tag {
  display: inline-block;
  background: rgba(232,180,90,.15);
  color: var(--accent);
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
}

/* Share */
.share-block {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.share-label { font-size: 14px; color: var(--text-muted); }
.share-btn {
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: opacity var(--transition);
}
.share-btn:hover { opacity: .85; }
.share-vk      { background: #0077ff; color: #fff; }
.share-tg      { background: #26a5e4; color: #fff; }
.share-source  { background: var(--bg); border: 1px solid var(--border); color: var(--text-muted); }

/* Related */
.related-articles { margin-bottom: 32px; }
.related-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition);
}
.related-card:hover { border-color: var(--accent); }
.related-card img { width: 100%; height: 120px; object-fit: cover; }
.related-placeholder { width: 100%; height: 120px; background: linear-gradient(135deg, #1a1f2e, #252c40); }
.related-card-title {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Search big ──────────────────────────── */
.search-form-big {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
}
.search-form-big:focus-within { border-color: var(--accent); }
.search-input-big {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 12px 18px;
  font-size: 15px;
  color: var(--text);
}
.search-input-big::placeholder { color: var(--text-dim); }
.search-btn-big {
  padding: 12px 20px;
  background: var(--accent);
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #0f1117;
  cursor: pointer;
  transition: background var(--transition);
}
.search-btn-big:hover { background: var(--accent-dark); }

/* ── Empty state ─────────────────────────── */
.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--text-muted);
}
.empty-state code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--accent);
}
.empty-state .page-btn { margin-top: 20px; }

/* ── Footer ──────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 28px;
  background: var(--bg-card);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-desc { font-size: 13px; color: var(--text-muted); max-width: 480px; }
.footer-cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.footer-cat-link {
  font-size: 12px;
  color: var(--text-muted);
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: color var(--transition), border-color var(--transition);
}
.footer-cat-link:hover { color: var(--accent); border-color: var(--accent); }
.footer-copy { font-size: 12px; color: var(--text-dim); }
.footer-copy a { color: var(--accent); }

/* ── Responsive ──────────────────────────── */
@media (max-width: 900px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-image, .hero-placeholder { height: 280px; }
  .hero-title { font-size: 20px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .main-nav, .search-form { display: none; }
  .burger { display: flex; }
  .articles-grid { grid-template-columns: 1fr; }
  .hero-image, .hero-placeholder { height: 220px; }
  .article-full { padding: 20px; }
  .article-title { font-size: 20px; }
  .related-grid { grid-template-columns: 1fr; }
  .search-input { width: 130px; }
}

/* =============================================
   ПЕРСОНАЖИ — Characters Wiki
   ============================================= */

/* Элементные цвета */
:root {
  --pyro:    #ef7033;
  --hydro:   #4fa3d8;
  --anemo:   #5db49a;
  --electro: #9a6bcc;
  --dendro:  #73a826;
  --cryo:    #7ec8d8;
  --geo:     #d9aa3c;
}

/* Заголовок страницы */
.page-header {
  padding: 40px 0 20px;
  text-align: center;
}
.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.page-subtitle {
  color: var(--text-muted);
  font-size: 15px;
}

/* Счётчик */
.chars-count {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 14px;
}
.chars-count strong { color: var(--text); }

/* Фильтры */
.chars-filter {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.filter-group {
  margin-bottom: 12px;
}
.filter-group:last-child { margin-bottom: 0; }
.filter-label {
  display: inline-block;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.filter-group--inline {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}
.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0f1117;
  font-weight: 600;
}
.filter-chip--star { letter-spacing: -2px; font-size: 12px; }
.filter-chip--tier { font-weight: 700; }

/* Тиры */
.tier-S { color: #ff6b35; }
.tier-A { color: #ffa726; }
.tier-B { color: #66bb6a; }
.tier-C { color: var(--text-muted); }
.filter-chip--tier.tier-S.active { background: #ff6b35; border-color: #ff6b35; color: #fff; }
.filter-chip--tier.tier-A.active { background: #ffa726; border-color: #ffa726; color: #fff; }
.filter-chip--tier.tier-B.active { background: #66bb6a; border-color: #66bb6a; color: #fff; }
.filter-chip--tier.tier-C.active { background: #5a6888; border-color: #5a6888; color: #fff; }

/* Точка элемента в фильтрах */
.el-dot {
  display: inline-block;
  width: 16px; height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}
.el-dot--pyro    { background-image: url("../images/elements/pyro.51e34a27e14a.png"); }
.el-dot--hydro   { background-image: url("../images/elements/hydro.36ab252629fc.png"); }
.el-dot--anemo   { background-image: url("../images/elements/anemo.f5f9f3e5b8c8.png"); }
.el-dot--electro { background-image: url("../images/elements/electro.2445b0b68bb2.png"); }
.el-dot--dendro  { background-image: url("../images/elements/dendro.19351eec7298.png"); }
.el-dot--cryo    { background-image: url("../images/elements/cryo.b0d2a1bca080.png"); }
.el-dot--geo     { background-image: url("../images/elements/geo.161c1ff2239b.png"); }

/* Иконка элемента на карточке персонажа */
.el-badge--pyro    { background-image: url("../images/elements/pyro.51e34a27e14a.png"); }
.el-badge--hydro   { background-image: url("../images/elements/hydro.36ab252629fc.png"); }
.el-badge--anemo   { background-image: url("../images/elements/anemo.f5f9f3e5b8c8.png"); }
.el-badge--electro { background-image: url("../images/elements/electro.2445b0b68bb2.png"); }
.el-badge--dendro  { background-image: url("../images/elements/dendro.19351eec7298.png"); }
.el-badge--cryo    { background-image: url("../images/elements/cryo.b0d2a1bca080.png"); }
.el-badge--geo     { background-image: url("../images/elements/geo.161c1ff2239b.png"); }

/* Совместимость — старые классы */
.element-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.element-dot--pyro    { background: var(--pyro); }
.element-dot--hydro   { background: var(--hydro); }
.element-dot--anemo   { background: var(--anemo); }
.element-dot--electro { background: var(--electro); }
.element-dot--dendro  { background: var(--dendro); }
.element-dot--cryo    { background: var(--cryo); }
.element-dot--geo     { background: var(--geo); }

/* Сетка карточек */
.chars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 48px;
}

/* Карточка персонажа — стиль иконки */
.char-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform var(--transition);
}
.char-card:hover { transform: translateY(-3px); }
.char-card:hover .char-card__portrait { border-color: var(--accent); }

.char-card__portrait {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(135deg, #1e2538 0%, #141825 100%);
  border: 2px solid var(--border);
  transition: border-color var(--transition);
}
/* Фоновый градиент редкости */
.char-card__portrait.rarity-bg-5 {
  background: linear-gradient(145deg, #3d2a0e 0%, #1e1408 100%);
}
.char-card__portrait.rarity-bg-4 {
  background: linear-gradient(145deg, #1e1535 0%, #110e20 100%);
}

.char-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.char-card__img--splash {
  object-position: top center;
  object-fit: cover;
}
.char-card__no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 700;
  color: var(--accent); opacity: .25;
}

/* Иконка элемента — левый верхний угол */
.char-card__el {
  position: absolute;
  top: 4px; left: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.8));
}

/* Редкость звёздочками внизу */
.char-card__stars {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: -2px;
  padding: 2px 0 3px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  line-height: 1;
}
.char-card__stars.rarity-5 { color: #f5c842; }
.char-card__stars.rarity-4 { color: #c688e8; }

/* Имя под карточкой */
.char-card__footer {
  padding: 5px 2px 0;
  text-align: center;
}
.char-card__name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Теги элемент/оружие */
.char-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}
.char-tag--pyro    { background: rgba(239,112,51,.18); color: var(--pyro); }
.char-tag--hydro   { background: rgba(79,163,216,.18); color: var(--hydro); }
.char-tag--anemo   { background: rgba(93,180,154,.18); color: var(--anemo); }
.char-tag--electro { background: rgba(154,107,204,.18); color: var(--electro); }
.char-tag--dendro  { background: rgba(115,168,38,.18); color: var(--dendro); }
.char-tag--cryo    { background: rgba(126,200,216,.18); color: var(--cryo); }
.char-tag--geo     { background: rgba(217,170,60,.18); color: var(--geo); }
.char-tag--weapon  { background: rgba(122,130,153,.15); color: var(--text-muted); }
.char-tag--role    { background: rgba(122,130,153,.15); color: var(--text-muted); }
.char-tag--region  { background: rgba(122,130,153,.15); color: var(--text-muted); }
.char-tag--lg { padding: 4px 12px; font-size: 13px; border-radius: 14px; }

/* Элементный фон карточки */
.element-bg-pyro    { border-top: 3px solid var(--pyro); }
.element-bg-hydro   { border-top: 3px solid var(--hydro); }
.element-bg-anemo   { border-top: 3px solid var(--anemo); }
.element-bg-electro { border-top: 3px solid var(--electro); }
.element-bg-dendro  { border-top: 3px solid var(--dendro); }
.element-bg-cryo    { border-top: 3px solid var(--cryo); }
.element-bg-geo     { border-top: 3px solid var(--geo); }

/* ─── Детальная страница персонажа ─── */

/* Хлебные крошки */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 20px 0 0;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--text-dim); }

/* Герой */
.char-hero {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin: 20px 0 28px;
}
.char-hero__portrait {
  flex-shrink: 0;
  width: 300px;
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #1a1f30 0%, #0f1117 100%);
}
.char-hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.char-hero__no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; font-weight: 700;
  color: var(--accent); opacity: .25;
}
.char-hero__info { flex: 1; }
.char-hero__badges {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}
.badge--tier.tier-S { background: rgba(255,107,53,.2); color: #ff6b35; border: 1px solid rgba(255,107,53,.4); }
.badge--tier.tier-A { background: rgba(255,167,38,.2); color: #ffa726; border: 1px solid rgba(255,167,38,.4); }
.badge--tier.tier-B { background: rgba(102,187,106,.2); color: #66bb6a; border: 1px solid rgba(102,187,106,.4); }
.badge--tier.tier-C { background: rgba(90,104,136,.2); color: #7a8299; border: 1px solid rgba(90,104,136,.4); }
.badge--rarity { background: rgba(245,200,66,.12); color: #f5c842; border: 1px solid rgba(245,200,66,.3); letter-spacing: -1px; }
.char-hero__name {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.2;
}
.char-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.char-hero__desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 600px;
}

/* TOC */
.char-toc {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 28px;
  font-size: 13px;
}
.char-toc__label {
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 4px;
}
.char-toc a {
  color: var(--accent);
  padding: 3px 10px;
  background: rgba(232,180,90,.08);
  border-radius: 10px;
  transition: background var(--transition);
}
.char-toc a:hover { background: rgba(232,180,90,.18); }

/* Секции контента */
.char-content { margin-bottom: 40px; }
.char-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}
.char-section__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  color: var(--text);
}
.char-section__title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 20px;
  background: var(--accent);
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: text-bottom;
}

/* Плюсы и минусы */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pros-cons__block {
  border-radius: var(--radius-sm);
  padding: 16px;
}
.pros-cons__block--pros {
  background: rgba(102,187,106,.06);
  border: 1px solid rgba(102,187,106,.25);
}
.pros-cons__block--cons {
  background: rgba(239,83,80,.06);
  border: 1px solid rgba(239,83,80,.25);
}
.pros-cons__heading {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}
.pros-cons__block--pros .pros-cons__heading { color: #66bb6a; }
.pros-cons__block--cons .pros-cons__heading { color: #ef5350; }
.pros-cons__list { padding-left: 18px; }
.pros-cons__list li {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.5;
}

/* Билды */
.builds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.build-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.build-card__title {
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  background: rgba(232,180,90,.08);
  border-bottom: 1px solid var(--border);
  color: var(--accent);
}
.build-card__body { padding: 14px 16px; }
.build-row { margin-bottom: 14px; }
.build-row:last-child { margin-bottom: 0; }
.build-row__label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.build-row__list { list-style: none; }
.build-row__list li {
  font-size: 13px;
  color: var(--text);
  padding: 3px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.build-row__list li:last-child { border-bottom: none; }
.build-row__list li::before {
  content: '▸ ';
  color: var(--accent);
  font-size: 10px;
}

/* Отряды */
.teams-list { display: flex; flex-direction: column; gap: 12px; }
.team-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.team-row__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 60px;
}
.team-row__members {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.team-member {
  padding: 4px 12px;
  background: rgba(232,180,90,.08);
  border: 1px solid rgba(232,180,90,.2);
  border-radius: 14px;
  font-size: 13px;
  color: var(--accent);
}

/* Таланты */
.talents-list { display: flex; flex-direction: column; gap: 12px; }
.talent-item {
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}
.talent-item__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.talent-item__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Созвездия */
.constellations-list { display: flex; flex-direction: column; gap: 10px; }
.const-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.const-item__level {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: rgba(232,180,90,.15);
  border: 1px solid rgba(232,180,90,.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  color: var(--accent);
}
.const-item__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}
.const-item__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Назад */
.char-back { padding: 8px 0 40px; }
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 14px;
  transition: color var(--transition);
}
.btn-back:hover { color: var(--accent); }

/* Пустое состояние */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* Адаптив персонажей */
@media (max-width: 900px) {
  .chars-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .char-hero { flex-direction: column; align-items: center; text-align: center; }
  .char-hero__portrait { width: 220px; height: 280px; }
  .char-hero__tags { justify-content: center; }
  .pros-cons { grid-template-columns: 1fr; }
  .builds-grid { grid-template-columns: 1fr; }
  .char-hero__name { font-size: 28px; }
}
@media (max-width: 600px) {
  .chars-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
  .char-section { padding: 16px; }
  .char-section__title { font-size: 18px; }
  .filter-row { flex-direction: column; gap: 10px; }
  .char-toc { font-size: 12px; }
  .team-row { flex-direction: column; align-items: flex-start; }
}

/* =============================================
   КОСТЮМЫ
   ============================================= */

.costumes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.costume-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.costume-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.rarity-border-5 { border-top: 3px solid #f5c842; }
.rarity-border-4 { border-top: 3px solid #c688e8; }
.rarity-border-3 { border-top: 3px solid #6bb8d6; }
.rarity-border-2 { border-top: 3px solid #66bb6a; }
.rarity-border-1 { border-top: 3px solid var(--text-dim); }

.costume-card__img-wrap {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
}
.rarity-bg-5 { background: linear-gradient(145deg, #3d2a0e 0%, #1e1408 100%); }
.rarity-bg-4 { background: linear-gradient(145deg, #1e1535 0%, #110e20 100%); }
.rarity-bg-3 { background: linear-gradient(145deg, #0e2030 0%, #081018 100%); }
.rarity-bg-2 { background: linear-gradient(145deg, #0e2516 0%, #081208 100%); }
.rarity-bg-1 { background: var(--bg); }

.costume-card__img { width:100%; height:100%; object-fit:cover; display:block; }
.costume-card__no-img {
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  font-size:48px;
}
.costume-card__stars {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: -2px;
  padding: 3px 0;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  line-height: 1;
}
.rarity-5 { color: #f5c842; }
.rarity-4 { color: #c688e8; }
.rarity-3 { color: #6bb8d6; }
.rarity-2 { color: #66bb6a; }
.rarity-1 { color: var(--text-dim); }

.costume-card__info { padding: 10px 12px 12px; }
.costume-card__char {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.costume-card__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

/* Детальная страница костюма */
.costume-detail__obtain {
  margin: 16px 0;
  padding: 12px 16px;
  background: rgba(232,180,90,.06);
  border: 1px solid rgba(232,180,90,.2);
  border-radius: var(--radius-sm);
}
.costume-detail__obtain h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.costume-detail__obtain p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================
   ОРУЖИЕ
   ============================================= */

.weapons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 48px;
}

.weapon-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  text-decoration: none;
  transition: transform var(--transition), border-color var(--transition);
}
.weapon-card:hover { transform: translateY(-3px); border-color: var(--accent); }

.weapon-card__img-wrap {
  flex-shrink: 0;
  width: 72px; height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}
.weapon-card__img {
  width:100%; height:100%;
  object-fit:contain;
  padding: 4px;
}
.weapon-card__no-img {
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  font-size:28px;
}
.weapon-card__stars {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  text-align: center;
  font-size: 8px;
  letter-spacing: -2px;
  padding: 1px 0 2px;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
  line-height: 1;
}

.weapon-card__info { flex: 1; min-width: 0; }
.weapon-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.weapon-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 5px;
}
.weapon-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
}
.weapon-tag--sword    { background: rgba(79,163,216,.15); color: var(--hydro); }
.weapon-tag--claymore { background: rgba(239,112,51,.15); color: var(--pyro); }
.weapon-tag--polearm  { background: rgba(239,83,80,.15);  color: #ef5350; }
.weapon-tag--bow      { background: rgba(115,168,38,.15); color: var(--dendro); }
.weapon-tag--catalyst { background: rgba(154,107,204,.15);color: var(--electro); }
.weapon-tag--atk      { background: rgba(245,200,66,.1); color: #f5c842; }
.weapon-card__substat { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Детальная страница оружия */
.weapon-hero__portrait {
  flex-shrink: 0;
  width: 180px; height: 180px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.weapon-hero__img { width:100%; height:100%; object-fit:contain; padding:12px; }
.weapon-hero__no-img { font-size: 64px; }

.weapon-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.weapon-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 16px;
  background: rgba(232,180,90,.07);
  border: 1px solid rgba(232,180,90,.2);
  border-radius: var(--radius-sm);
  min-width: 120px;
}
.weapon-stat__label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.weapon-stat__value { font-size: 18px; font-weight: 700; color: var(--accent); }

/* ─── YouTube embed в статьях ─────────────────────────────── */
.yt-embed {
  margin: 12px 0;
  max-width: 560px;
}
.yt-link {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
}
.yt-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.yt-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
  background: rgba(0,0,0,.25);
  transition: background var(--transition);
}
.yt-link:hover .yt-play { background: rgba(0,0,0,.4); }
.article-content a { color: var(--accent); text-decoration: none; }
.article-content a:hover { text-decoration: underline; }

/* ─── Live-search dropdown ────────────────────────────────── */
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 380px;
  max-height: 520px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 1000;
}
.sd-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 10px 14px 4px;
}
.sd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--text);
  transition: background var(--transition);
}
.sd-item:hover { background: var(--bg-card-hover); }

/* Персонажи */
.sd-char-img {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: visible;
  background: rgba(255,255,255,.05);
}
.sd-char-img img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.sd-el {
  position: absolute;
  bottom: -3px; right: -3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background-size: cover;
  border: 1px solid rgba(0,0,0,.4);
}

/* Оружие */
.sd-weapon-img {
  width: 40px; height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,.04);
}
.sd-no-img { display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: 18px; }

/* Статьи */
.sd-article-img {
  width: 56px; height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.sd-item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sd-item-name { font-size: 13px; font-weight: 500; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.sd-item-excerpt { font-size: 11px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-stars { font-size: 11px; color: var(--accent); letter-spacing: 1px; }
.sd-hl { background: rgba(232,180,90,.25); color: var(--accent);
  border-radius: 2px; padding: 0 1px; font-style: normal; }
.sd-show-all {
  display: block;
  text-align: center;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--accent);
  border-top: 1px solid var(--border);
  text-decoration: none;
  transition: background var(--transition);
}
.sd-show-all:hover { background: var(--bg-card-hover); }

/* ─── Авто-гиперссылки в статьях ─────────────────────────── */
.article-content a.autolink {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  transition: opacity .15s;
}
.article-content a.autolink:hover { opacity: .75; }
.article-content a.al-char {
  color: #c8b26a;          /* золотистый — персонажи */
}
.article-content a.al-weapon {
  color: #7eb8c8;          /* голубой — оружие */
}

/* Ссылки на оружие в билдах персонажей */
a.weapon-link {
  color: #7eb8c8;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color .15s;
}
a.weapon-link:hover { color: #a8d8e8; }

/* Дата добавления оружия */
.weapon-added-info {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
  opacity: .8;
  line-height: 1.5;
}

/* Кому лучше всего подойдёт */
.weapon-best-for {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}
.weapon-best-char {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: transform .15s;
  width: 76px;
}
.weapon-best-char:hover { transform: translateY(-3px); }
.weapon-best-char__img-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: visible;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.weapon-best-char__img-wrap img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}
.weapon-best-char__img-wrap .char-card__el {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-size: cover;
  border: 1px solid rgba(0,0,0,.4);
}
.weapon-best-char__name {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Адаптив */
@media (max-width: 768px) {
  .costumes-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .weapons-grid  { grid-template-columns: 1fr; }
  .weapon-hero__portrait { width: 140px; height: 140px; }
}
@media (max-width: 480px) {
  .costumes-grid { grid-template-columns: repeat(2, 1fr); }
}
