/* ============================================================
   Раздел UFC и ММА — offside.kz

   Стилистика взята из матч-центра КПЛ: те же белые карточки
   .section, та же сетка «контент + сайдбар 320px», те же цвета.
   Префикс mma-, чтобы не пересекаться с kpl- и с классами сайта.
   ============================================================ */

.mma {
    --mma-red: #e31e24;
    --mma-ink: #212529;
    --mma-gray: #777;
    --mma-line: #ececee;
    --mma-soft: #f7f7f8;
    --mma-green: #1a9c46;
    --mma-yellow: #f4b400;
    --mma-kz: #fdfaf0;
    color: var(--mma-ink);
    font-size: 15px;
    line-height: 1.5;
}

.mma a { color: inherit; text-decoration: none; }
.mma img { max-width: 100%; }

/* ── Шапка раздела ── */
.mma-crumbs {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 12px; color: var(--mma-gray); margin-bottom: 10px;
}
.mma-crumbs a:hover { color: var(--mma-red); }
.mma-head__title { font-size: 28px; line-height: 1.2; font-weight: 700; margin: 0 0 6px; }
@media (min-width: 768px) { .mma-head__title { font-size: 38px; } }
.mma-head__desc { color: var(--mma-gray); font-size: 15px; margin: 0; }
.mma-note { float: right; font-size: 13px; font-weight: 500; color: var(--mma-gray); }
.mma-note a { color: var(--mma-red); }

/* ── Сетка ── */
.mma-layout { display: grid; gap: 20px; }
.mma-layout > * { min-width: 0; }
@media (min-width: 1024px) { .mma-layout { grid-template-columns: 1fr 320px; align-items: start; } }

/* ── Карточка боя ── */
.mma-bouts { display: grid; gap: 10px; }
.mma-bout {
    position: relative; background: var(--mma-soft); border-radius: 8px; padding: 12px;
    transition: background .15s, box-shadow .15s;
}
.mma-bout:hover { background: #f1f1f3; box-shadow: 0 1px 8px -4px silver; }
.mma-bout--kz { background: var(--mma-kz); }
.mma-bout__meta {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 12px; color: var(--mma-gray);
    padding-bottom: 8px; border-bottom: 1px solid var(--mma-line); margin-bottom: 9px;
}
.mma-bout__vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.mma-side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mma-side--r { flex-direction: row-reverse; text-align: right; }
.mma-side__name { font-size: 14px; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.mma-side__name:hover { color: var(--mma-red); }
.mma-side__rec { font-size: 12px; color: var(--mma-gray); }
.mma-side__body { min-width: 0; }
.mma-side--w .mma-side__name { font-weight: 700; }
.mma-side--w .mma-side__rec { color: var(--mma-green); }
.mma-mid { font-size: 11.5px; color: var(--mma-gray); text-align: center; white-space: nowrap; }
.mma-bout__foot {
    margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--mma-line);
    font-size: 11.5px; color: var(--mma-gray);
}

/* ── Аватар: инициалы, пока фото не скачано ── */
.mma-ava {
    flex: none; width: 38px; height: 38px; border-radius: 50%;
    background: #e8e8ea; color: #6a6d72; object-fit: cover;
    display: grid; place-items: center; font-size: 12px; font-weight: 500;
}
.mma-ava--sm { width: 28px; height: 28px; font-size: 10.5px; }
.mma-ava--lg { width: 96px; height: 96px; font-size: 26px; }
.mma-ava--kz { background: #fdf3d6; color: #8a6d17; }

/* ── Бейджи ── */
.mma-badge {
    display: inline-block; font-size: 10.5px; line-height: 1; letter-spacing: .03em;
    text-transform: uppercase; padding: 4px 7px; border-radius: 20px; font-weight: 500; white-space: nowrap;
}
.mma-badge--live { background: var(--mma-red); color: #fff; animation: mma-blink 1.2s infinite; }
@keyframes mma-blink { 50% { opacity: .45; } }
.mma-badge--done { background: #eceded; color: #5d6167; }
.mma-badge--title { background: #fdf0cd; color: #8a6d17; }
.mma-badge--card { background: transparent; color: var(--mma-gray); border: 1px solid var(--mma-line); }
.mma-badge--kz { background: #fdf3d6; color: #8a6d17; }

/* ── Таблицы ── */
.mma-tablewrap { overflow-x: auto; }
table.mma-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mma-table th {
    font-size: 12px; font-weight: 400; color: var(--mma-gray); text-align: left;
    padding: 0 8px 8px; border-bottom: 1px solid var(--mma-line); white-space: nowrap;
}
.mma-table td { padding: 9px 8px; border-bottom: 1px solid var(--mma-line); vertical-align: middle; }
.mma-table tr:last-child td { border-bottom: 0; }
.mma-table td:first-child, .mma-table th:first-child { padding-left: 0; }
.mma-table td:last-child, .mma-table th:last-child { padding-right: 0; }
.mma-table tr.is-kz td { background: var(--mma-kz); }
.mma-table .mma-num { font-variant-numeric: tabular-nums; color: var(--mma-gray); font-size: 13px; }
.mma-nm { font-weight: 500; }
a.mma-nm:hover { color: var(--mma-red); }
.mma-sub { font-size: 12px; color: var(--mma-gray); }
.mma-win { color: var(--mma-green); font-weight: 500; }
.mma-loss { color: var(--mma-red); }
.mma-cell { display: flex; align-items: center; gap: 10px; }

/* ── Календарь ── */
.mma-cal { display: grid; gap: 2px; }
.mma-cal__row { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 11px 10px; border-radius: 8px; }
.mma-cal__row:hover { background: var(--mma-soft); }
.mma-cal__row--kz { background: var(--mma-kz); }
.mma-cal__date { text-align: center; line-height: 1.1; }
.mma-cal__d { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mma-cal__m { font-size: 11px; color: var(--mma-gray); }
.mma-cal__t { font-size: 14px; font-weight: 500; }
.mma-cal__t:hover { color: var(--mma-red); }
.mma-month { font-size: 12px; color: var(--mma-gray); text-transform: uppercase; letter-spacing: .04em; margin: 16px 0 6px; padding-left: 10px; }
.mma-month:first-child { margin-top: 0; }

/* ── Вкладки ── */
.mma-pills { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 16px; }
.mma-pills::-webkit-scrollbar { display: none; }
.mma-pill { flex: none; font-size: 13px; padding: 6px 13px; border-radius: 20px; background: var(--mma-soft); color: var(--mma-ink); border: 0; }
.mma-pill:hover { background: #ededf0; }
.mma-pill.is-active { background: var(--mma-red); color: #fff; }

/* ── Сайдбар ── */
.mma-side-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--mma-line); font-size: 13px; }
.mma-side-row:last-of-type { border-bottom: 0; }
.mma-side-row__pos { width: 18px; flex: none; text-align: center; font-size: 12px; color: var(--mma-gray); font-variant-numeric: tabular-nums; }
.mma-side-row__body { flex: 1; min-width: 0; }
.mma-side-row__nm { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mma-side-row__nm:hover { color: var(--mma-red); }
.mma-side-row__rec { font-size: 12px; color: var(--mma-gray); font-variant-numeric: tabular-nums; }
.mma-side-row.is-kz { background: var(--mma-kz); margin: 0 -8px; padding: 7px 8px; border-radius: 6px; }
.mma-empty { background: var(--mma-soft); border-radius: 8px; padding: 12px; font-size: 13px; color: var(--mma-gray); }
.mma-empty a { color: var(--mma-red); }
.mma-side-sub { font-size: 12px; color: var(--mma-gray); text-transform: uppercase; letter-spacing: .03em; margin: 14px 0 6px; }
.mma-more { display: block; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--mma-line); font-size: 13px; color: var(--mma-red); }

/* ── Анкета бойца ── */
.mma-top { display: grid; gap: 20px; align-items: start; }
@media (min-width: 640px) { .mma-top { grid-template-columns: auto 1fr; } }
.mma-fname { font-size: 26px; font-weight: 700; line-height: 1.15; margin: 0; }
@media (min-width: 768px) { .mma-fname { font-size: 32px; } }
.mma-forig { font-size: 13px; color: var(--mma-gray); margin-top: 2px; }
.mma-fmeta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.mma-record { display: flex; gap: 1px; margin-top: 14px; border-radius: 6px; overflow: hidden; }
.mma-record span { padding: 7px 0; text-align: center; font-size: 12px; color: #fff; font-weight: 500; }
.mma-bio { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--mma-line); border-radius: 8px; overflow: hidden; margin-top: 16px; }
@media (min-width: 640px) { .mma-bio { grid-template-columns: repeat(4, 1fr); } }
.mma-bio__i { background: #fff; padding: 10px 12px; }
.mma-bio__k { font-size: 11.5px; color: var(--mma-gray); }
.mma-bio__v { font-size: 14px; font-weight: 500; margin-top: 2px; }
.mma-kpi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .mma-kpi { grid-template-columns: repeat(3, 1fr); } }
.mma-kpi__i { background: var(--mma-soft); border-radius: 8px; padding: 12px; }
.mma-kpi__v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.mma-kpi__k { font-size: 11.5px; color: var(--mma-gray); margin-top: 4px; }
.mma-bars { display: grid; gap: 12px; }
.mma-bar__top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.mma-bar__top b { font-weight: 500; font-variant-numeric: tabular-nums; }
.mma-track { height: 8px; border-radius: 6px; background: var(--mma-soft); overflow: hidden; }
.mma-track i { display: block; height: 100%; border-radius: 6px; background: var(--mma-red); }
.mma-track i.is-g { background: var(--mma-green); }
.mma-track i.is-y { background: var(--mma-yellow); }
