/* Вёрстка страницы боя.
   Вынесена из <style> внутри razor-компонентов: эту же разметку рисует сервер
   (PrerenderController) — до и вместо запуска WASM, — поэтому стили должны быть
   обычным файлом, который приходит с <head>, а не появляться вместе с Blazor.
   Классы и значения не менялись; правки держать в одном месте — здесь. */


/* ══════════ Страница боя: токены, шапка, сетка, блок сравнения, секции ══════════ */
/* ─── Design tokens ─── */
:root {
    /* Палитра «MONO». Эти токены --fd-* определены тут глобально и используются
       ВСЕМИ компонентами боя (карточки, сравнение, MIRA-блок, голосование, комменты).
       Акцент в шаблоне Fight Details — белый (--ink); --fd-gold держит белый #F4F5F7.
       Золото осталось только в семантике: Elo-слой и upset-«пограничный» (бэйр-литералы).
       Откат: black #212529 | deep #1a1d20 | surface #2a2e32 | surface2 #31363b |
       border #3a3f44 | gold #C8A04A | text #F2EFE8 | text2 #9A9AAA | text3 #5a5f65 */
    --fd-black:   #050506;
    --fd-deep:    #0C0D10;
    --fd-surface: #15171B;
    --fd-surface2:#1E2126;
    --fd-border:  #26282E;
    --fd-border2: #34373E;
    --fd-gold:    #F4F5F7;
    --fd-indigo:  #7C72E8;
    --fd-green:   #4AC87C;
    --fd-red:     #C84A4A;
    --fd-w1:      #4AADC8;
    --fd-w2:      #C84A4A;
    --fd-text:    #F4F5F7;
    --fd-text2:   #9CA1AD;
    --fd-text3:   #565B66;
    --fd-font-display: 'Bebas Neue', sans-serif;
    --fd-font-ui:      'Syne', sans-serif;
    --fd-font-body:    'DM Sans', sans-serif;
}

/* ─── Loading ─── */
.fd-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    color: var(--fd-text3);
    font-family: var(--fd-font-ui);
    font-size: 14px;
    letter-spacing: 0.1em;
    background: var(--fd-black);
}

/* ─── Hero ─── */
.fd-hw {
    background: var(--fd-deep);
    border-bottom: 1px solid var(--fd-border);
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.fd-hi {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 32px 36px;
}

.fd-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

/* Кнопка «?» — перезапуск обучающего тура. Прижата вправо, чтобы не толкать крошки. */
.fd-tour-btn {
    margin-left: auto;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--fd-border2);
    color: var(--fd-text2);
    font-family: var(--ba-fu, 'Syne', sans-serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all .2s;
}
.fd-tour-btn:hover {
    border-color: var(--fd-indigo);
    color: var(--fd-indigo);
}

.fd-meta-line {
    width: 24px;
    height: 1px;
    background: var(--fd-gold);
}

.fd-meta-lbl {
    font-family: var(--fd-font-ui);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fd-gold);
}

.fd-hg {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: flex-end;
    gap: 32px;
}

.fd-hn        { display: flex; flex-direction: column; }
.fd-hn-r      { text-align: right;  align-items: flex-end; }
.fd-hn-l      { text-align: left;   align-items: flex-start; }

.fd-hn-txt {
    font-family: var(--fd-font-display);
    font-size: clamp(32px, 4.5vw, 60px);
    line-height: 0.9;
    letter-spacing: 0.01em;
}

.fd-hn-win  { color: var(--fd-text); }
.fd-hn-lose { color: var(--fd-text2); }

.fd-wnr {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    background: var(--fd-gold);
    color: #000;
    padding: 4px 10px;
    border-radius: 2px;
    font-family: var(--fd-font-ui);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.fd-sc-col   { text-align: center; padding: 0 12px; }

.fd-sc-row {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: center;
    margin-bottom: 8px;
}

.fd-sc  { font-family: var(--fd-font-display); font-size: 80px; line-height: 1; }
.fd-sc1 { color: var(--fd-w1); }
.fd-sc2 { color: var(--fd-w2); }

.fd-vs {
    font-family: var(--fd-font-display);
    font-size: 24px;
    color: var(--fd-text3);
    letter-spacing: 0.1em;
}

/* VS «в эфире» на время интро-видео: белое свечение + интенсивное неоновое мерцание */
.fd-vs--live {
    color: #fff;
    animation: fdVsFlicker 1.1s linear infinite;
}

@keyframes fdVsFlicker {
    0%, 14%, 18%, 36%, 40%, 68%, 72%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px #fff, 0 0 28px rgba(255,255,255,.85), 0 0 52px rgba(255,255,255,.4);
    }
    16%, 38%, 70% {
        opacity: .45;
        text-shadow: 0 0 4px rgba(255,255,255,.35);
    }
}

.fd-sc-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-family: var(--fd-font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fd-text2);
    /* lining-цифры: иначе oldstyle-фигуры (7, 4, 9...) уходят ниже базовой линии */
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
}

.fd-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--fd-border);
    display: inline-block;
}

.fd-sc-hand { color: var(--fd-gold); }

/* ─── Main layout ─── */
.fd-main {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    background: var(--fd-black);
}

.fd-main-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 32px 32px 0;
}

.fd-grid {
    display: grid;
    grid-template-columns: 220px 1fr 220px 320px;
    gap: 2px;
    margin-bottom: 2px;
}

.fd-card-ph {
    background: var(--fd-surface);
    min-height: 200px;
}

/* ─── Compare Center ─── */
.fd-cc {
    background: var(--fd-surface);
    padding: 24px 28px;
    min-height: 480px;
    min-width: 0; /* чтобы 1fr-колонка не распиралась широким таб-баром и срабатывал overflow-x */
}

.fd-cc-lbl {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.fd-cc-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 20px;
}
.fd-cc-hand { font-family: var(--fd-font-ui); font-size: 12px; color: var(--fd-text2); }
.fd-cc-hand b { color: var(--fd-text); }
.fd-cc-toggle {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--fd-border);
    border-radius: 6px;
    overflow: hidden;
}
.fd-cc-toggle button {
    font-family: var(--fd-font-ui);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: transparent;
    border: none;
    color: var(--fd-text3);
    padding: 7px 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.fd-cc-toggle button.on { background: var(--fd-gold); color: #1a1d20; }
.fd-cc-toggle button:disabled { cursor: default; opacity: 0.6; }

/* Переключатель «Простой / Эксперт». Тот же виджет, что и «Сегодня / На момент боя»,
   но это выбор другого порядка — он меняет состав страницы, а не период данных.
   Поэтому активная сторона синяя, а не золотая: два золотых тумблера в одной строке
   читались бы как один составной. */
.fd-mode-toggle { margin-right: auto; }
.fd-mode-toggle button.on { background: var(--fd-w1, #4AADC8); color: #0C0D10; }

@media (max-width: 700px) {
    /* На узкой раскладке тумблеры уходят на свои строки — прижимать режим влево нечем. */
    .fd-mode-toggle { margin-right: 0; }
}
.fd-cc-spin {
    width: 14px; height: 14px;
    margin-left: 10px;
    border: 2px solid var(--fd-border);
    border-top-color: var(--fd-gold);
    border-radius: 50%;
    animation: fd-cc-spin 0.7s linear infinite;
}
@keyframes fd-cc-spin { to { transform: rotate(360deg); } }

.fd-cc-line {
    width: 20px;
    height: 1px;
    background: var(--fd-gold);
}

.fd-cc-lbl span {
    font-family: var(--fd-font-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fd-gold);
}

.fd-loading-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Высота — под будущие графики (замер: блок сравнения ~480px и на телефоне, и в колонке
       на десктопе). Заглушка в 200px означала прыжок всего, что ниже, когда приходили статы. */
    min-height: 380px;
    color: var(--fd-text3);
    font-family: var(--fd-font-ui);
    font-size: 13px;
}


/* ─── Section (vote + comments) ─── */
.fd-sect {
    background: var(--fd-surface);
    padding: 32px 36px;
    margin-bottom: 2px;
}

.fd-sh {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    justify-content: center;
}

.fd-sh-line {
    width: 20px;
    height: 1px;
    background: var(--fd-gold);
}

.fd-sh-lbl {
    font-family: var(--fd-font-ui);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fd-gold);
}

/* ─── Sort pills ─── */
.fd-sort-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.fd-pills {
    display: flex;
    background: var(--fd-deep);
    border: 1px solid var(--fd-border);
    border-radius: 6px;
    padding: 3px;
    gap: 2px;
}

.fd-pill {
    font-family: var(--fd-font-ui);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    background: transparent;
    color: var(--fd-text3);
    transition: all 0.2s;
}

.fd-pill--on {
    background: var(--fd-gold);
    color: #000;
}

.fd-pg-info {
    font-family: var(--fd-font-body);
    font-size: 11px;
    color: var(--fd-text3);
}

/* ─── Empty message ─── */
.fd-empty-msg {
    text-align: center;
    padding: 40px 0;
    font-family: var(--fd-font-body);
    font-size: 13px;
    color: var(--fd-text3);
    font-style: italic;
}

/* ─── Pagination ─── */
.fd-pag {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--fd-border);
}

.fd-pb {
    font-family: var(--fd-font-display);
    font-size: 14px;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: var(--fd-surface2);
    color: var(--fd-text2);
    border: 1px solid var(--fd-border);
    cursor: pointer;
    transition: all 0.2s;
}

.fd-pb:disabled { opacity: 0.5; cursor: not-allowed; }

.fd-pb--on {
    background: var(--fd-gold);
    color: #000;
    border-color: var(--fd-gold);
}

/* ─── Collapsible sections ─── */
.fd-coll { background: var(--fd-surface); margin-bottom: 2px; }

.fd-coll-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    cursor: pointer;
    user-select: none;
    transition: background .15s;
}
.fd-coll-hdr:hover { background: rgba(255,255,255,.025); }

.fd-coll-hdr-left { display: flex; flex-direction: column; gap: 6px; }

.fd-coll-tags { display: flex; align-items: center; gap: 10px; }

/* exact copy of mp-ai-lbl */
.fd-ai-tag {
    font-family: var(--fd-font-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--fd-gold);
}

/* exact copy of mp-beta */
.fd-beta-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--fd-font-ui);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #E07C3A;
    border: 1px solid rgba(224,124,58,0.33);
    padding: 2px 6px;
}

/* exact copy of mp-beta-dot + mp-pulse */
.fd-beta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #E07C3A;
    flex-shrink: 0;
    animation: fd-pulse 2s infinite;
}
@keyframes fd-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* exact copy of mp-title */
.fd-coll-title {
    font-family: var(--fd-font-display);
    font-size: 26px;
    color: var(--fd-text);
    letter-spacing: 0.01em;
    line-height: 1;
}

.fd-comm-tag {
    font-family: var(--fd-font-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fd-text2);
}

/* hide duplicate headers inside components when wrapped in collapsible */
.fd-coll-body .mp-hdr  { display: none; }
.fd-coll-body .fvs-hdr { display: none; }

.fd-chevron {
    display: flex;
    align-items: center;
    color: var(--fd-text3);
    transition: transform .25s ease, color .25s ease;
    flex-shrink: 0;
}
.fd-chevron--open { transform: rotate(180deg); color: var(--fd-gold); }

.fd-coll-body { animation: fd-expand .2s ease; }
@keyframes fd-expand {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ─── */
@media (max-width: 1200px) {
    .fd-grid {
        grid-template-columns: 240px 1fr 240px;
        grid-template-rows: auto auto;
    }
    /* History-панель уходит на всю ширину ряда. Целимся в .fcb, а не :last-child:
       компонент рендерит ещё style-узел, и он был бы последним ребёнком грида. */
    .fd-grid > .fcb {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .fd-grid {
        grid-template-columns: 1fr 1fr;
    }
    .fd-cc {
        grid-column: 1 / -1;
        order: 3;
    }
}

@media (max-width: 600px) {
    /* Карточки бойцов РЯДОМ (2 колонки) — оба интро-видео играют бок о бок;
       сравнение (Compare Center) и H2H идут ниже на всю ширину. */
    .fd-grid { grid-template-columns: 1fr 1fr; }
    .fd-cc  { order: 2; }   /* сравнение сразу под карточками */
    .fcb    { order: 3; }   /* H2H последним */
    /* Отступы по бокам держит fd-main-inner (был 32px -> ~40px суммарно). Сводим к 10px. */
    .fd-main-inner { padding: 12px 10px 0; }
    /* Компактная шапка: имена показывают карточки ниже — тут только счёт и мета */
    .fd-hi   { padding: 14px 14px 10px; }
    .fd-hg   { grid-template-columns: 1fr; gap: 0; }
    .fd-hn   { display: none; }
    .fd-sc   { font-size: 44px; }
    .fd-sect { padding: 24px 14px; }
}

/* ══════════ Карточка борца на странице боя ══════════ */
.wc-card {
    background: var(--fd-surface, #2a2e32);
    padding: 24px 20px;
    border-top: 3px solid transparent;
    height: 100%;
    position: relative;   /* якорь для интро-видео на всю карточку */
    overflow: hidden;     /* клип виньетки по краям карточки */
}

.wc-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;   /* контент поверх видео/скрима */
    z-index: 2;
}


.wc-av-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    margin-bottom: 16px;
    display: block;
    cursor: pointer;
    text-decoration: none;
}

.wc-av {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid;
    overflow: hidden;
    position: relative;
    background: var(--fd-surface2, #31363b);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

/* Кликабельность: мягкий глоу цветом бойца (голубой у A, красный у B) */
.wc-av-wrap:hover .wc-av {
    transform: scale(1.03);
    box-shadow:
        0 0 0 1px var(--wc-accent),
        0 0 18px color-mix(in srgb, var(--wc-accent) 55%, transparent);
}

.wc-av-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(10%) contrast(1.05);
}

/* Интро-видео на всю карточку. Виньетка по краям (mask) растворяет края в фоне
   карточки, чтобы видео «вписалось» в компонент, а не резалось прямоугольником. */
.wc-av-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    filter: grayscale(10%) contrast(1.05);
    opacity: 0;
    transition: opacity .6s ease;
    pointer-events: none;
    z-index: 0;
    -webkit-mask-image: radial-gradient(125% 78% at 50% 34%, #000 42%, rgba(0,0,0,0.45) 68%, transparent 100%);
            mask-image: radial-gradient(125% 78% at 50% 34%, #000 42%, rgba(0,0,0,0.45) 68%, transparent 100%);
}

/* Скрим: слегка притеняет видео (читаемость имени) и уводит низ карточки в её фон,
   чтобы область статов не «просвечивала». Появляется/гаснет вместе с видео —
   прозрачность обоим задаёт baFightLoops инлайном (см. комментарий у video выше). */
.wc-card-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity .6s ease;
    background:
        linear-gradient(to bottom,
            rgba(5,5,6,0.28) 0%,
            rgba(5,5,6,0.10) 26%,
            color-mix(in srgb, var(--fd-surface, #15171B) 65%, transparent) 60%,
            var(--fd-surface, #15171B) 100%);
}

.wc-av-fb {
    font-family: var(--fd-font-display, 'Bebas Neue', sans-serif);
    font-size: 36px;
    opacity: 0.6;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.wc-flag {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: var(--fd-deep, #1a1d20);
    border-radius: 50%;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
}

.wc-flag img { width: 100%; height: 100%; object-fit: cover; }

.wc-name {
    font-family: var(--fd-font-display, 'Bebas Neue', sans-serif);
    font-size: 20px;
    color: var(--fd-text, #F2EFE8);
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-bottom: 4px;
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease, text-shadow 0.25s ease;
}

a.wc-name:hover {
    color: var(--wc-accent);
    text-shadow: 0 0 14px color-mix(in srgb, var(--wc-accent) 60%, transparent);
}

.wc-nick {
    font-family: var(--fd-font-body, 'DM Sans', sans-serif);
    font-size: 11px;
    font-style: italic;
    margin-bottom: 4px;
}

.wc-wnr {
    margin-top: 8px;
    background: var(--fd-gold, #C8A04A);
    color: #000;
    font-family: var(--fd-font-ui, 'Syne', sans-serif);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 2px;
}

.wc-stats {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--fd-border, #3a3f44);
    position: relative;   /* поверх интро-видео */
    z-index: 2;
}

.wc-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--fd-deep, #1a1d20);
}

.wc-lbl {
    font-family: var(--fd-font-ui, 'Syne', sans-serif);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fd-text3, #5a5f65);
}

.wc-val {
    font-family: var(--fd-font-ui, 'Syne', sans-serif);
    font-size: 11px;
    font-weight: 600;
    color: var(--fd-text, #F2EFE8);
}

/* Телефон: карточка в 2-колоночной раскладке боя — компактнее (аватар/паддинги/статы),
   чтобы обе карточки с интро-видео помещались рядом. */
@media (max-width: 600px) {
    .wc-card { padding: 14px 12px; }
    .wc-av-wrap { width: 84px; height: 84px; margin-bottom: 12px; }
    .wc-av-fb { font-size: 28px; }
    .wc-name { font-size: 15px; }
    .wc-nick { font-size: 10px; }
    .wc-stats { margin-top: 14px; }
    .wc-row { padding: 6px 9px; }
    .wc-lbl { font-size: 8px; letter-spacing: .1em; }
    .wc-val { font-size: 10px; }
}

/* ══════════ История противостояния (H2H) ══════════ */
.fcb {
    background: var(--fd-surface, #2a2e32);
    padding: 24px;
    height: 100%;
}

.fcb-hdr {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.fcb-hdr-line {
    width: 20px;
    height: 1px;
    background: var(--fd-gold, #C8A04A);
    flex-shrink: 0;
}

.fcb-hdr-lbl {
    font-family: var(--fd-font-ui, 'Syne', sans-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fd-gold, #C8A04A);
}

.fcb-section { margin-bottom: 24px; }

.fcb-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.fcb-sub-accent {
    width: 3px;
    height: 14px;
    background: var(--fd-gold, #C8A04A);
    border-radius: 1px;
    flex-shrink: 0;
}

.fcb-sub-lbl {
    font-family: var(--fd-font-ui, 'Syne', sans-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fd-text2, #9A9AAA);
}

/* Direct fight rows */
.fcb-drow {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    padding: 10px 12px;
    background: var(--fd-deep, #1a1d20);
    margin-bottom: 1px;
    align-items: center;
}

.fcb-drow-comp {
    font-family: var(--fd-font-body, 'DM Sans', sans-serif);
    font-size: 11px;
    color: var(--fd-text2, #9A9AAA);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fcb-drow-hand {
    font-family: var(--fd-font-ui, 'Syne', sans-serif);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fd-text3, #5a5f65);
    text-align: center;
}

.fcb-drow-winner {
    font-family: var(--fd-font-ui, 'Syne', sans-serif);
    font-size: 10px;
    font-weight: 600;
    color: var(--fd-green, #4AC87C);
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Common opponents */
.fcb-opp-list { display: flex; flex-direction: column; gap: 8px; }

/* Сворачиваемый «хвост» списка. grid-template-rows 0fr→1fr плавно тянется до высоты
   контента без её замера; внутренник обязан быть overflow:hidden + min-height:0. */
.fcb-extra {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .38s ease;
}
.fcb-extra-open { grid-template-rows: 1fr; }
.fcb-extra-inner {
    overflow: hidden;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* Отступ сверху появляется только в раскрытом виде, иначе в свёрнутом «течёт» лишний зазор */
.fcb-extra-open .fcb-extra-inner { padding-top: 8px; }

.fcb-more {
    width: 100%;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    background: var(--fd-deep, #1a1d20);
    border: 1px solid var(--fd-border, #3a3f44);
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--fd-font-ui, 'Syne', sans-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fd-text2, #9A9AAA);
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.fcb-more:hover {
    color: var(--fd-text, #F2EFE8);
    border-color: var(--fd-border2, #464c52);
    background: var(--fd-surface2, #31363b);
}
.fcb-more-chev { transition: transform .38s ease; flex-shrink: 0; }
.fcb-more-chev-open { transform: rotate(180deg); }

@media (prefers-reduced-motion: reduce) {
    .fcb-extra { transition: none; }
    .fcb-more-chev { transition: none; }
}

.fcb-opp {
    background: var(--fd-deep, #1a1d20);
    padding: 14px 16px;
}

.fcb-opp-name {
    font-family: var(--fd-font-display, 'Bebas Neue', sans-serif);
    font-size: 16px;
    color: var(--fd-text, #F2EFE8);
    letter-spacing: 0.02em;
    text-align: center;
    margin-bottom: 12px;
}

.fcb-opp-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: flex-start;
}

.fcb-side-a {
    border-left: 2px solid var(--fd-w1, #4AADC8);
    padding-left: 8px;
}

.fcb-side-b {
    border-right: 2px solid var(--fd-w2, #C84A4A);
    padding-right: 8px;
    text-align: right;
}

.fcb-score {
    font-family: var(--fd-font-ui, 'Syne', sans-serif);
    font-size: 10px;
    font-weight: 700;
    color: var(--fd-text, #F2EFE8);
    margin-bottom: 6px;
}

.fcb-match {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 3px;
    font-family: var(--fd-font-body, 'DM Sans', sans-serif);
    font-size: 10px;
}

.fcb-match-r { justify-content: flex-end; }

.fcb-win  { color: var(--fd-green, #4AC87C); }
.fcb-lose { color: var(--fd-red,   #C84A4A); }

.fcb-vs {
    font-family: var(--fd-font-ui, 'Syne', sans-serif);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--fd-text3, #5a5f65);
    align-self: center;
    padding-top: 16px;
}

.fcb-empty {
    text-align: center;
    padding: 40px 0;
    font-family: var(--fd-font-body, 'DM Sans', sans-serif);
    font-size: 13px;
    color: var(--fd-text3, #5a5f65);
    font-style: italic;
}

/* ─── Планшет: H2H растянут на всю ширину ряда (см. .fd-grid > .fcb в родителе).
   Раскладываем содержимое горизонтально, чтобы не было пустого правого поля.
   Диапазон 601–1200: выше — узкий сайдбар (стек), ниже 600 — телефон (стек). ─── */
@media (min-width: 601px) and (max-width: 1200px) {
    .fcb-body {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px 32px;
    }
    /* «Очные бои» — узкая колонка, «Общие оппоненты» — вдвое шире; если секция одна,
       flex-grow растянет её на всю ширину (пустого столбца не остаётся). */
    .fcb-body > .fcb-section:first-child:not(:only-child) { flex: 1 1 240px; margin-bottom: 0; }
    .fcb-body > .fcb-section:last-child { flex: 2 1 360px; margin-bottom: 0; }
    .fcb-body > .fcb-section:only-child  { flex: 1 1 100%; margin-bottom: 0; }

    /* Карточки общих соперников — в сетку: число колонок зависит от доступной ширины. */
    .fcb-opp-list,
    .fcb-extra-inner {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 8px;
    }
}

/* ══════════ Заглушки под то, что дорисует Blazor ══════════ */
/* Серверная страница отдаёт историю противостояния и графики пустыми блоками их высоты:
   данные для них считаются на клиенте, а прыгать макету при их появлении нельзя. */
.fcb-ph { min-height: 420px; }

/* ══════════ Хлебные крошки ══════════ */
/* Копия из Components/Breadcrumbs.razor: на серверной странице компонента нет, а его
   <style> приезжает только вместе с Blazor. Значения держать синхронно. */
.ba-crumbs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ba-crumbs-line { width: 24px; height: 1px; background: var(--ba-text, #F4F5F7); flex-shrink: 0; }
.ba-crumb {
    font-family: var(--ba-fu, 'Syne', sans-serif); font-size: 11px; font-weight: 600;
    letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
    color: var(--ba-text2, #9CA1AD); transition: color .18s ease;
}
a.ba-crumb:hover { color: var(--ba-text, #F4F5F7); }
.ba-crumb-cur { color: var(--ba-text, #F4F5F7); }
.ba-crumb-sep {
    font-family: var(--ba-fu, 'Syne', sans-serif); font-size: 12px;
    color: var(--ba-text3, #565B66); user-select: none; line-height: 1;
}
