/* ============================================================
   POP MMA — template1
   Палитра: чёрный фон + красный акцент + золото для трофейных метрик
   Шрифты: Oswald (заголовки) + Inter (текст)
   ============================================================ */

:root {
    /* Базовая палитра */
    --bg: #0a0a0a;
    --bg-elev: #141414;
    --bg-elev-2: #1a1a1a;
    --bg-row-hover: #1f1f1f;
    --border: #232323;
    --border-strong: #2f2f2f;

    --text: #ffffff;
    --text-muted: #a0a0a0;
    --text-dim: #6b6b6b;

    --accent: #e63027;
    --accent-2: #ff3b30;
    --accent-soft: rgba(230, 48, 39, 0.12);

    --win: #2dbe66;
    --lose: #e63027;
    --draw: #f0ad4e;
    --sub: #2c7be5;
    --gold: #c9a35d;

    /* Типографика */
    --ff-display: "Oswald", "Bebas Neue", "Impact", system-ui, sans-serif;
    --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Сетка */
    --container: 1480px;
    --radius: 16px;
    --radius-sm: 10px;
}

/* ========= RESET ========= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--ff-body);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; color: inherit; background: none; border: 0; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--ff-display); font-weight: 600; letter-spacing: 0.02em; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

/* ========= HEADER ========= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.88);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
    min-height: 80px;
}

/* Логотип */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark { width: 38px; height: 38px; flex-shrink: 0; }
.logo__text {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.logo__text--accent { color: var(--accent); }

/* Навигация */
.nav {
    display: flex;
    justify-content: center;
    gap: 36px;
}
.nav__link {
    font-family: var(--ff-display);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 8px 0;
    position: relative;
    transition: color 0.2s;
}
.nav__link:hover { color: var(--text); }
.nav__link--active { color: var(--accent); }
.nav__link--active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--accent);
}

/* Правый блок шапки */
.header__right { display: flex; align-items: center; gap: 12px; }

.search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0 18px;
    height: 42px;
    width: 240px;
    transition: border-color 0.2s, background 0.2s;
}
.search:focus-within {
    border-color: var(--accent);
    background: var(--bg-elev-2);
}
.search__icon { width: 18px; height: 18px; color: var(--text-dim); flex-shrink: 0; }
.search__input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--text);
    font: inherit;
    font-size: 14px;
}
.search__input::placeholder { color: var(--text-dim); }

.icon-btn {
    width: 42px; height: 42px;
    border-radius: 999px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { width: 20px; height: 20px; }

.burger { display: none; width: 42px; height: 42px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); }

/* ========= HERO ========= */
.hero {
    padding: 64px 0 56px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -120px;
    left: 35%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(230, 48, 39, 0.18), transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.05fr) 300px;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.hero__text { padding-right: 8px; }
.hero__title {
    font-family: var(--ff-display);
    font-size: clamp(44px, 5vw, 76px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    margin-bottom: 28px;
    white-space: nowrap;
}
.hero__line { display: block; }
.hero__line--accent { color: var(--accent); }
.hero__lead {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    max-width: 380px;
    margin: 0 0 32px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0 28px;
    height: 50px;
    border-radius: 8px;
    transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s;
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Визуал в центре */
.hero__visual {
    position: relative;
    aspect-ratio: 16 / 9;
}
.hero__octagon { position: relative; width: 100%; height: 100%; }
.hero__octagon svg { width: 100%; height: 100%; }
.hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 8px;
}
.hero__glow {
    position: absolute;
    inset: 18%;
    background: radial-gradient(circle, rgba(230, 48, 39, 0.35), transparent 65%);
    filter: blur(40px);
    z-index: -1;
}

/* Стат-карточки справа */
.hero__stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.stat-card {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s, transform 0.15s, background 0.2s;
}
.stat-card:hover {
    border-color: var(--border-strong);
    background: var(--bg-elev-2);
    transform: translateX(-2px);
}
.stat-card__icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    color: #fff;
}
.stat-card__icon svg { width: 22px; height: 22px; }
.stat-card__icon--red { background: var(--accent); }
.stat-card__icon--gold { background: var(--gold); color: #1a1a1a; }

.stat-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-card__label {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.stat-card__value {
    font-family: var(--ff-display);
    font-size: 22px;
    font-weight: 600;
}
.stat-card__chev {
    color: var(--accent);
    font-size: 20px;
    line-height: 1;
}

/* ========= ТРИ КОЛОНКИ ========= */
.columns { padding: 16px 0 80px; position: relative; z-index: 1; }
.columns__grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr;
    gap: 20px;
    align-items: start;
}

.panel {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 22px 16px;
}
.panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.panel__title {
    font-family: var(--ff-display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.panel__more {
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    transition: color 0.2s;
}
.panel__more:hover { color: var(--accent-2); }

/* ===== Список бойцов ===== */
.fighter-list { display: flex; flex-direction: column; }
/* Аватарки топ-бойцов на главной — квадратные */
.fighter-list .fighter-row__photo {
    width: 50px; height: 50px;
    border-radius: 8px;
}
.fighter-row {
    display: grid;
    grid-template-columns: 24px 44px 1fr auto 16px;
    align-items: center;
    gap: 14px;
    padding: 14px 8px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    cursor: pointer;
}
.fighter-row:last-child { border-bottom: 0; }
.fighter-row:hover { background: var(--bg-row-hover); border-radius: 8px; }
.fighter-row__rank {
    font-family: var(--ff-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dim);
    text-align: center;
}
.fighter-row__photo {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent, #444), #1a1a1a);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-display);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    object-fit: cover;
}
img.fighter-row__photo { object-fit: cover; background: #1a1a1a; }
span.fighter-row__photo::before {
    content: attr(data-initials);
    position: relative;
    z-index: 1;
}
.fighter-row__photo--lg {
    width: 54px; height: 54px;
    font-size: 16px;
}

.fighter-row__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fighter-row__name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fighter-row__name:hover { color: var(--accent); }
.fighter-row__record {
    font-family: var(--ff-display);
    font-size: 13px;
    letter-spacing: 0.02em;
}
.rec { font-weight: 600; }
.rec--w { color: var(--win); }
.rec--l { color: var(--accent); }
.rec--d { color: var(--text-muted); }

.fighter-row__weight {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}
.fighter-row__chev {
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1;
}

/* ===== Карточки боёв ===== */
.fight {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 12px 16px;
    padding: 16px 8px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.fight:last-child { border-bottom: 0; }
.fight:hover { background: var(--bg-row-hover); border-radius: 8px; }

.fight__side { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fight__side--left { justify-content: flex-start; }
.fight__side--right { justify-content: flex-end; }

.fight__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fight__who--right { align-items: flex-end; text-align: right; }
.fight__name {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.25;
    color: var(--text);
}
.fight__name:hover { color: var(--accent); }
.fight__record { font-family: var(--ff-display); font-size: 13px; }

.fight__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 90px;
}
.fight__badge {
    font-family: var(--ff-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 5px 14px;
    border-radius: 4px;
    color: #fff;
}
.fight__badge--win { background: var(--win); }
.fight__badge--ko { background: var(--accent); }
.fight__badge--sub { background: var(--sub); }
.fight__method {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.fight__time {
    font-family: var(--ff-display);
    font-size: 13px;
    color: var(--text);
    letter-spacing: 0.04em;
}
.fight__meta {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding-top: 6px;
    border-top: 1px dashed var(--border);
}
.fight__meta .dot { margin: 0 8px; color: var(--accent); }

/* ===== Список лиг ===== */
.league-list { display: flex; flex-direction: column; }
.league-row {
    display: grid;
    grid-template-columns: 80px 1fr 16px;
    align-items: center;
    gap: 16px;
    padding: 16px 8px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    cursor: pointer;
}
.league-row:last-child { border-bottom: 0; }
.league-row:hover { background: var(--bg-row-hover); border-radius: 8px; }

.league-row__logo {
    width: 80px; height: 56px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.04em;
    color: #fff;
    line-height: 1;
    text-align: center;
    background: var(--bg-elev-2);
    object-fit: contain;
    padding: 4px;
    flex-shrink: 0;
}
img.league-row__logo { padding: 6px 10px; background: transparent; }
.league-row__logo small { font-size: 9px; letter-spacing: 0.1em; margin-top: 2px; }
.league-row__logo--hype { background: linear-gradient(135deg, #2a2a2a, #0a0a0a); border: 1px solid var(--border-strong); }
.league-row__logo--hfc { background: var(--accent); }
.league-row__logo--pride { background: linear-gradient(135deg, #f5d066, #b9892b); color: #2a1a05; }
.league-row__logo--epic { background: var(--accent); }

.league-row__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.league-row__name {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.league-row__name:hover { color: var(--accent); }
.league-row__desc {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
}
.league-row__stat {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 2px;
}
.league-row__stat b { color: var(--text); font-weight: 600; }

/* ========= FOOTER ========= */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 36px 0 32px;
    background: var(--bg);
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 32px;
    align-items: start;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 18px; }
.socials { display: flex; gap: 10px; }
.socials a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.2s, border-color 0.2s;
}
.socials a:hover { color: var(--accent); border-color: var(--accent); }
.socials svg { width: 18px; height: 18px; }

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    justify-content: center;
    padding-top: 6px;
}
.site-footer__nav a {
    font-family: var(--ff-display);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.2s;
}
.site-footer__nav a:hover { color: var(--accent); }

.site-footer__legal {
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.site-footer__legal p { margin: 0 0 10px; }
.site-footer__links a {
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    line-height: 1.8;
    transition: color 0.2s;
}
.site-footer__links a:hover { color: var(--accent); }

/* ========= АНИМАЦИЯ ПОЯВЛЕНИЯ ========= */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ========= МОБИЛЬНОЕ МЕНЮ ========= */
.nav--open {
    display: flex !important;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
}
.nav--open .nav__link {
    padding: 16px 28px;
    border-bottom: 1px solid var(--border);
}
.nav--open .nav__link--active::after { display: none; }
body.nav-is-open { overflow: hidden; }

/* ========= АДАПТИВ ========= */
@media (max-width: 1280px) {
    .hero__grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .hero__stats {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .hero__stats .stat-card { flex: 1 1 calc(50% - 5px); }
    .columns__grid { grid-template-columns: 1fr 1fr; }
    .columns__grid .panel:nth-child(3) { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
    .nav { display: none; }
    .search { width: 180px; }
    .burger { display: inline-flex; }
    .hero__grid { grid-template-columns: 1fr; }
    .hero__visual { max-width: 460px; margin: 0 auto; }
    .columns__grid { grid-template-columns: 1fr; }
    .columns__grid .panel:nth-child(3) { grid-column: auto; }
    .site-footer__grid { grid-template-columns: 1fr; text-align: center; }
    .site-footer__brand, .site-footer__legal { text-align: center; align-items: center; }
    .site-footer__brand { align-items: center; }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .hero { padding: 40px 0; }
    .hero__title { font-size: clamp(40px, 12vw, 56px); }
    .hero__stats { flex-direction: column; }
    .hero__stats .stat-card { flex-basis: 100%; }
    .search { display: none; }
    .panel { padding: 18px 16px 10px; }
    .fight__center { min-width: 70px; }
    .fight__name { font-size: 13px; }
}


/* ============================================================
   PAGE: ВНУТРЕННЯЯ СТРАНИЦА БОЙЦА
   ============================================================ */

/* ----- Хлебные крошки ----- */
.breadcrumbs {
    padding: 22px 28px 4px;
    font-family: var(--ff-display);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.breadcrumbs a { color: var(--text-muted); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs__sep { color: var(--text-dim); }
.breadcrumbs__current { color: var(--text); }

/* ----- Шапка страницы бойца ----- */
.fighter-hero {
    padding: 28px 0 36px;
    position: relative;
}
.fighter-hero__grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
}

/* Фото бойца */
.fighter-hero__photo {
    margin: 0;
    position: relative;
    background: linear-gradient(180deg, #1a1a1a 0%, #0e0e0e 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 5;
}
.fighter-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.fighter-hero__photo-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.35;
}
.fighter-hero__photo-bg svg { width: 100%; height: 100%; }
.fighter-hero__photo-shape {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.fighter-hero__photo-shape svg {
    width: 88%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 30px rgba(0,0,0,0.5));
}

/* Основная инфо-колонка */
.fighter-hero__info { padding-top: 8px; }
.fighter-hero__name {
    font-family: var(--ff-display);
    font-size: clamp(32px, 3.6vw, 46px);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 8px;
}
.fighter-hero__nick {
    color: var(--accent);
    font-family: var(--ff-display);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 22px;
}

/* Список характеристик */
.fighter-attrs {
    margin: 0;
    display: flex;
    flex-direction: column;
}
.fighter-attrs__row {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
}
.fighter-attrs__row:last-child { border-bottom: 0; }
.fighter-attrs dt {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
}
.fighter-attrs dd {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fighter-attrs dd code {
    font-family: ui-monospace, "JetBrains Mono", Menlo, monospace;
    font-size: 13px;
    color: var(--text);
    background: var(--bg-elev-2);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
}
.dim { color: var(--text-dim); font-weight: 400; }

/* Флаг (CSS-плейсхолдер, на проде — <img src="flags/ru.svg">) */
.flag {
    width: 22px;
    height: 14px;
    border-radius: 2px;
    display: inline-block;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.06);
}
.flag--ru {
    background:
        linear-gradient(
            to bottom,
            #fff 0 33.33%,
            #0033a0 33.33% 66.66%,
            #d52b1e 66.66% 100%
        );
}

/* Статус */
.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-dim);
}
.status--active { color: var(--win); }
.status--active::before { background: var(--win); box-shadow: 0 0 0 4px rgba(45,190,102,0.18); }

/* Соц-сети inline в характеристиках */
.socials--inline { display: flex; gap: 8px; padding: 0; }
.socials--inline a {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.2s, border-color 0.2s;
}
.socials--inline a:hover { color: var(--accent); border-color: var(--accent); }
.socials--inline svg { width: 15px; height: 15px; }

/* ----- Сайдбар: рекорд + биография ----- */
.fighter-hero__side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}

/* Рекорд */
.record__totals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}
.record__total {
    text-align: center;
    padding: 12px 8px;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.record__big {
    font-family: var(--ff-display);
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    display: block;
    margin-bottom: 4px;
}
.record__total--w .record__big { color: var(--win); }
.record__total--l .record__big { color: var(--accent); }
.record__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

.record__table {
    width: 100%;
    border-collapse: collapse;
}
.record__table th,
.record__table td {
    padding: 11px 4px;
    text-align: right;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}
.record__table tr:last-child th,
.record__table tr:last-child td { border-bottom: 0; }
.record__table th {
    font-weight: 400;
    color: var(--text-muted);
    text-align: left;
}
.record__table td {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 16px;
    width: 60px;
}

/* Биография */
.bio__text {
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.6;
}
.bio__text p { margin: 0 0 12px; }
.bio__text p:last-child { margin-bottom: 0; }

/* ----- Заголовок секции ----- */
.section-head {
    margin-bottom: 22px;
}
.section-head__title {
    font-family: var(--ff-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    padding-left: 16px;
}
.section-head__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background: var(--accent);
    border-radius: 2px;
}

/* ----- Таблица истории боёв ----- */
.fights-history { padding: 16px 0 40px; }
.fight-table-wrap {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
@media (max-width: 1100px) {
    .fight-table-wrap { overflow-x: auto; }
}

.fight-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
}
.fight-table thead th {
    font-family: var(--ff-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
    padding: 16px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elev-2);
}
.fight-table thead th.num { text-align: center; }

.fight-table tbody td {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
    vertical-align: middle;
}
.fight-table tbody tr:last-child td { border-bottom: 0; }
.fight-table tbody tr {
    transition: background 0.15s;
    cursor: pointer;
}
.fight-table tbody tr:hover { background: var(--bg-row-hover); }
.fight-table td.num { text-align: center; font-family: var(--ff-display); font-weight: 500; }
.fight-table td.row-chev {
    text-align: right;
    color: var(--text-dim);
    font-size: 18px;
    width: 30px;
}

/* Колонка "Результат" */
.result {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.result__icon {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.result--win .result__icon {
    background: rgba(45, 190, 102, 0.15);
    color: var(--win);
    border: 1px solid rgba(45, 190, 102, 0.3);
}
.result--loss .result__icon {
    background: rgba(230, 48, 39, 0.15);
    color: var(--accent);
    border: 1px solid rgba(230, 48, 39, 0.3);
}
.result__lines { display: flex; flex-direction: column; line-height: 1.2; }
.result__lines b {
    font-family: var(--ff-display);
    font-size: 14px;
    letter-spacing: 0.06em;
}
.result--win .result__lines b { color: var(--win); }
.result--loss .result__lines b { color: var(--accent); }
.result__lines span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Колонка "Противник" */
.opponent { display: flex; align-items: center; gap: 12px; min-width: 0; }
.opponent__name {
    display: block;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text);
    transition: color 0.2s;
}
.opponent__name:hover { color: var(--accent); }
.opponent__record {
    font-family: var(--ff-display);
    font-size: 12px;
    display: inline-block;
    margin-top: 2px;
}

/* Колонка "Событие" */
.event b {
    display: block;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text);
    margin-bottom: 2px;
}
.event span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ----- Новости ----- */
.news-section { padding: 16px 0 60px; }
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.news-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s;
}
.news-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}
.news-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
}
.news-card__placeholder {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, var(--accent, #5a2519), transparent 60%),
        linear-gradient(135deg, #2a2a2a, #0a0a0a);
}
.news-card__placeholder::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            45deg,
            transparent 0 14px,
            rgba(0,0,0,0.18) 14px 15px
        );
}
.news-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.news-card:hover .news-card__img { transform: scale(1.04); }
.news-card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card__date {
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}
.news-card__title {
    font-family: var(--ff-display);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.01em;
    margin: 0;
}
.news-card__title a { color: var(--text); transition: color 0.2s; }
.news-card__title a:hover { color: var(--accent); }
.news-card__lead {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
}
.news-card__link {
    color: var(--accent);
    font-family: var(--ff-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 4px;
    transition: color 0.2s;
}
.news-card__link:hover { color: var(--accent-2); }

/* ----- Адаптив страницы бойца ----- */
@media (max-width: 1280px) {
    .fighter-hero__grid {
        grid-template-columns: 280px minmax(0, 1fr);
    }
    .fighter-hero__side {
        grid-column: 1 / -1;
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .fighter-hero__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .fighter-hero__photo { max-width: 320px; margin: 0 auto; }
    .fighter-hero__side {
        grid-column: auto;
        grid-template-columns: 1fr;
    }
    .fighter-attrs__row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 10px 0;
    }
    .fighter-attrs dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
}

@media (max-width: 560px) {
    .news-grid { grid-template-columns: 1fr; }
    .fighter-hero__name { font-size: 32px; }
    .record__big { font-size: 38px; }
}


/* ===================== СПИСКИ / ПАГИНАЦИЯ (Plan 4a) ===================== */
.list-page { padding: 32px 0 56px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; }
.filters__select, .filters__input {
    background: var(--bg-elev); color: var(--text); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 10px 14px; font: inherit; min-width: 220px;
}
.filters__input { flex: 1; min-width: 240px; }
.fighters-grid {
    display: grid; gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.fighter-card {
    display: flex; gap: 16px; align-items: center;
    background: var(--bg-elev); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px; transition: border-color .15s;
}
.fighter-card:hover { border-color: var(--border-strong); }
.fighter-card__media { flex-shrink: 0; }
.fighter-card__img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.fighter-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fighter-card__name { font-family: var(--ff-display); font-weight: 600; font-size: 17px; }
.fighter-card__nick { color: var(--accent); font-size: 13px; margin: 0; }
.fighter-card__meta { color: var(--text-muted); font-size: 13px; margin: 0; }
.fighter-card__record { font-family: var(--ff-display); font-weight: 700; }
.empty-state { color: var(--text-muted); text-align: center; padding: 48px 0; }
.pagination { display: flex; gap: 8px; justify-content: center; margin: 36px 0 0; flex-wrap: wrap; }
.pagination__link {
    display: inline-flex; align-items: center; padding: 8px 14px;
    background: var(--bg-elev); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text); font-weight: 600;
}
.pagination__link:hover { border-color: var(--border-strong); }
.pagination__link--active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ===================== FIGHTER PAGE ADDITIONS (Plan 4a Task 5) ===================== */

/* Result badge variants: draw / nc / scheduled */
.result--draw .result__icon {
    background: rgba(240, 173, 78, 0.15);
    color: var(--draw);
    border: 1px solid rgba(240, 173, 78, 0.3);
}
.result--draw .result__lines b { color: var(--draw); }

.result--nc .result__icon {
    background: rgba(107, 107, 107, 0.15);
    color: var(--text-dim);
    border: 1px solid rgba(107, 107, 107, 0.3);
}
.result--nc .result__lines b { color: var(--text-dim); }

.result--sched .result__icon {
    background: rgba(44, 123, 229, 0.15);
    color: var(--sub);
    border: 1px solid rgba(44, 123, 229, 0.3);
}
.result--sched .result__lines b { color: var(--sub); }

/* Status variants: retired / suspended */
.status--retired { color: var(--text-muted); }
.status--retired::before { background: var(--text-muted); }

.status--susp { color: var(--draw); }
.status--susp::before { background: var(--draw); }

/* Gallery section */
.gallery-section { padding: 16px 0 40px; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.gallery-item {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-elev);
    border: 1px solid var(--border);
}
.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.gallery-item figcaption {
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== Plan 4b: fights/fight/events/event ===== */

/* ---- fights list page ---- */
.fights-list {
    display: flex;
    flex-direction: column;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.fights-list__row {
    display: grid;
    grid-template-columns: 2fr 3fr 1.5fr 1fr;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s, border-color 0.15s;
    text-decoration: none;
    color: var(--text);
}
.fights-list__row:last-child { border-bottom: 0; }
.fights-list__row:hover { background: var(--bg-row-hover); }
.fights-list__ev {
    font-size: 13px;
    color: var(--text-muted);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fights-list__vs {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.fights-list__f {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
.fights-list__mid {
    font-family: var(--ff-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    flex-shrink: 0;
    text-transform: uppercase;
}
.fights-list__res {
    font-family: var(--ff-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text);
    white-space: nowrap;
}
.fights-list__lg {
    font-size: 12px;
    color: var(--text-dim);
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 860px) {
    .fights-list__row {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 8px 12px;
        padding: 12px 14px;
    }
    .fights-list__ev { grid-column: 1 / -1; white-space: normal; }
    .fights-list__vs { grid-column: 1 / -1; }
    .fights-list__res { text-align: left; }
    .fights-list__lg { text-align: left; }
}

@media (max-width: 560px) {
    .fights-list__row { grid-template-columns: 1fr; }
    .fights-list__lg { text-align: left; }
}

/* ---- fight detail page ---- */
.fight-detail { padding: 32px 0 56px; }
.fight-detail__sub {
    font-size: 14px;
    color: var(--text-muted);
    margin: 8px 0 0;
    line-height: 1.5;
}
.fight-detail__sub a { color: var(--accent); transition: color 0.2s; }
.fight-detail__sub a:hover { color: var(--accent-2); }

.fight-detail__vs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    margin: 28px 0 32px;
    padding: 28px 24px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.fight-detail__corner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    transition: color 0.2s;
}
.fight-detail__corner:nth-child(3) { align-items: center; }
.fight-detail__corner img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-strong);
    transition: border-color 0.2s, transform 0.2s;
}
.fight-detail__corner:hover img { border-color: var(--accent); transform: scale(1.04); }
.fight-detail__corner span {
    font-family: var(--ff-display);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
}
.fight-detail__corner:hover span { color: var(--accent); }

.fight-detail__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}
.fight-detail__badge {
    display: inline-block;
    font-family: var(--ff-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    text-align: center;
    white-space: nowrap;
}
.fight-detail__method {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 0.04em;
}
.fight-detail__time {
    font-family: var(--ff-display);
    font-size: 13px;
    color: var(--text-dim);
    letter-spacing: 0.06em;
    text-align: center;
}

@media (max-width: 640px) {
    .fight-detail__vs {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        text-align: center;
        gap: 16px;
        padding: 20px 16px;
    }
    .fight-detail__corner { flex-direction: row; justify-content: center; }
    .fight-detail__corner:nth-child(3) { flex-direction: row-reverse; justify-content: center; }
    .fight-detail__center { order: -1; }
}

/* ---- events grid & card ---- */
.events-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.event-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}
.event-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
}
.event-card__body {
    display: block;
    padding: 20px 20px 18px;
    text-decoration: none;
    color: var(--text);
}
.event-card__name {
    font-family: var(--ff-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 8px;
    transition: color 0.2s;
}
.event-card:hover .event-card__name { color: var(--accent); }
.event-card__meta {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 10px;
    line-height: 1.4;
}
.event-card__stat {
    display: block;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.event-card__stat b {
    color: var(--text);
    font-weight: 700;
}

/* ---- event detail page ---- */
.event-detail { padding: 32px 0 56px; }

/* ===== Plan 4c: leagues/league/judges/judge ===== */

/* ---- judge-card (mirror of .fighter-card) ---- */
.judge-card {
    display: flex;
    gap: 16px;
    align-items: center;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    transition: border-color 0.15s;
}
.judge-card:hover { border-color: var(--border-strong); }
.judge-card__media { flex-shrink: 0; }
.judge-card__img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.judge-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.judge-card__name {
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: 17px;
    color: var(--text);
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.judge-card:hover .judge-card__name { color: var(--accent); }
.judge-card__meta {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.judge-card__stat {
    font-size: 11px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 2px;
}
.judge-card__stat b {
    color: var(--text);
    font-weight: 700;
}

/* ---- champ-list (two-column weight-class / champion rows) ---- */
.champ-list {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
}
.champ-list__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 16px;
    padding: 13px 20px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.champ-list__row:last-child { border-bottom: 0; }
.champ-list__row:hover { background: var(--bg-row-hover); }
.champ-list__wc {
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--ff-display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.champ-list__name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    transition: color 0.2s;
}
.champ-list__name:hover { color: var(--accent); }

/* ---- disc-tags (discipline chip pills inside fighter-attrs dd) ---- */
.disc-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
}
.disc-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: var(--bg-elev-2);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-family: var(--ff-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ---- responsive adjustments ---- */
@media (max-width: 860px) {
    .champ-list__row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 12px 16px;
    }
    .champ-list__wc { font-size: 11px; }
}
@media (max-width: 640px) {
    .disc-tags { gap: 4px; }
    .disc-tag { font-size: 10px; padding: 3px 8px; }
}

/* ===== Plan 4d: news/ratings/search/static/error ===== */

/* ---- error-page ---- */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 80px 16px;
    text-align: center;
}
.error-page__inner {
    max-width: 480px;
    width: 100%;
}
.error-page__code {
    font-family: var(--ff-display);
    font-size: 120px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--accent);
    margin-bottom: 16px;
}
.error-page__title {
    font-family: var(--ff-display);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text);
    margin-bottom: 12px;
    text-transform: uppercase;
}
.error-page__hint {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* ---- article (long-form news page) ---- */
.article {
    padding: 40px 0 60px;
}
.article__inner {
    max-width: 760px;
    margin: 0 auto;
}
.article__head {
    margin-bottom: 24px;
}
.article__title {
    font-family: var(--ff-display);
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 12px;
}
.article__meta {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.article__meta a {
    color: var(--accent);
    transition: color 0.2s;
}
.article__meta a:hover { color: var(--accent-2); }
.article__cover {
    margin: 0 0 28px;
    border-radius: var(--radius);
    overflow: hidden;
}
.article__cover img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.article__lead {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text);
    font-weight: 500;
    margin: 0 0 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.article__body {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 32px;
}
.article__body br + br { display: block; content: ''; margin-top: 12px; }
.article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.article__related {
    margin-bottom: 28px;
}
.article__related-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.article__related-list li {
    font-size: 14px;
    color: var(--text-muted);
}
.article__related-list a {
    color: var(--accent);
    transition: color 0.2s;
}
.article__related-list a:hover { color: var(--accent-2); }
.article__back {
    margin: 32px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* ---- ratings ---- */
.ratings__group {
    margin-bottom: 40px;
}
.ratings__wc {
    font-family: var(--ff-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-strong);
}
.ratings {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.ratings__row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.ratings__row:last-child { border-bottom: 0; }
.ratings__row:hover { background: var(--bg-row-hover); }
.ratings__row--champ {
    background: var(--accent-soft);
    border-left: 3px solid var(--gold);
}
.ratings__row--champ:hover { background: var(--accent-soft); filter: brightness(1.1); }
.ratings__pos {
    flex-shrink: 0;
    width: 28px;
    text-align: center;
    font-family: var(--ff-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dim);
}
.ratings__champ {
    color: var(--gold);
    font-size: 18px;
    line-height: 1;
}
.ratings__name {
    flex: 1;
    font-family: var(--ff-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    transition: color 0.2s;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ratings__name:hover { color: var(--accent); }
.ratings__rec {
    flex-shrink: 0;
    font-family: var(--ff-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
}

/* ---- search ---- */
.search-summary {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 28px;
}
.search-summary b { color: var(--text); }
.search-group {
    margin-bottom: 40px;
}
.search-group .section-head__title {
    margin-bottom: 16px;
}

/* ---- static-page (on top of .bio__text) ---- */
.static-page p {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.75;
}
.static-page p:last-child { margin-bottom: 0; }

/* ---- responsive: article + ratings ---- */
@media (max-width: 860px) {
    .article__title { font-size: 28px; }
    .article__lead { font-size: 16px; }
    .ratings__name { font-size: 14px; }
}
@media (max-width: 640px) {
    .error-page__code { font-size: 80px; }
    .error-page__title { font-size: 22px; }
    .article { padding: 24px 0 40px; }
    .article__title { font-size: 22px; }
    .article__body { font-size: 15px; }
    .ratings__row { gap: 8px; padding: 10px 12px; }
    .ratings__rec { font-size: 12px; }
}
@media (max-width: 560px) {
    .article__inner { padding: 0 4px; }
    .ratings__name { font-size: 13px; }
}
