/* Fighter fight-history table: larger typography, event-style title badge, responsive mobile cards. */
.fight-history-table{font-size:14px}
.fight-history-table th{font-size:11px;padding:13px 14px}
.fight-history-table td{padding:16px 14px;line-height:1.4}
.history-result{font-size:12px;padding:6px 9px}
.history-link{font-size:14px;font-weight:700;line-height:1.3;text-decoration:none}
.history-link:hover{text-decoration:underline}
.history-event-cell .history-link{display:block}
.history-event-title-badge{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:7px}
.history-title-badge{display:inline-flex;align-items:center;width:max-content;max-width:100%;margin-top:7px;padding:4px 8px;border-radius:999px;background:#fff5dd;color:#9a6a18;font-size:11px;line-height:1.2;font-weight:400;font-style:normal;white-space:nowrap}
.history-event-title-badge .history-title-badge{margin-top:0}
.history-main-event-badge{display:inline-flex;align-items:center;width:max-content;max-width:100%;padding:4px 8px;border-radius:999px;background:#fff;color:#111;border:1px solid #111;font-size:11px;line-height:1.2;font-weight:400;font-style:normal;white-space:nowrap}
.history-details summary{font-size:13px}
.history-detail-panel{font-size:13px}

/* Stronger outcome chips across event cards and fighter fight history. */
.result-mark.win,.result-pill.win{background:#129a55!important;color:#fff!important;border:1px solid #0d8448;box-shadow:0 3px 9px rgba(18,154,85,.22)}
.result-mark.loss,.result-pill.loss{background:#d83b3b!important;color:#fff!important;border:1px solid #bd2e2e;box-shadow:0 3px 9px rgba(216,59,59,.20)}
.result-mark.cancelled,.result-pill.cancelled{background:#717b84!important;color:#fff!important;border:1px solid #606971;box-shadow:0 3px 9px rgba(70,80,88,.16)}
.history-result.win{background:#129a55!important;color:#fff!important;border:1px solid #0d8448;box-shadow:0 3px 9px rgba(18,154,85,.18)}
.history-result.loss{background:#d83b3b!important;color:#fff!important;border:1px solid #bd2e2e;box-shadow:0 3px 9px rgba(216,59,59,.17)}
.history-result.cancelled{background:#717b84!important;color:#fff!important;border:1px solid #606971;box-shadow:0 3px 9px rgba(70,80,88,.14)}

/* Existing fights.billing text is the only "Главный бой" marker. Style it as a pill;
   do not duplicate it through fight_badges. */
.bout-center .billing{display:inline-flex!important;align-items:center;justify-self:center;width:max-content;max-width:100%;padding:5px 9px;border-radius:999px;background:#17191c;color:#fff!important;border:1px solid #17191c;font-size:10px!important;line-height:1;font-weight:900;letter-spacing:.08em!important;box-shadow:0 2px 6px rgba(18,20,22,.12)}

/* Event bonus rows visually belong to the same fight card instead of sitting below it. */
.event-bout-item{display:block!important;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 5px 18px rgba(18,24,28,.035)}
.event-bout-item>.bout{border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
.event-bout-item>.event-bout-badges{margin:0!important;padding:11px 18px 13px 70px!important;border-top:1px solid #edf0f1;background:#fbfcfc}
.event-fight-badge--bonus{background:#dfeeff!important;color:#225f9f!important;border-color:#b8d5f2!important;font-weight:900!important}
.event-fight-badge--title,.event-fight-badge--fight{display:none!important}

/* Event hero keeps only date, venue and promotion. Detailed numbers belong in the Statistics tab. */
.event-summary-grid{display:none!important}
.hero-facts>div:nth-child(n+2){display:none!important}

/* Fighter cards now show only official evening bonuses. The old client-side
   main-event badge and any retired title badges are hidden defensively. */
.history-fight-badge--title_won,
.history-fight-badge--title_defended,
.history-fight-badge--title_lost,
.history-fight-badge--interim_title_won,
.history-fight-badge--new_weight_class_debut,
.history-fight-badge--main_event{display:none!important}
.history-detail-badges-section:not(:has(.history-fight-badge--fight_of_the_night,.history-fight-badge--performance_of_the_night,.history-fight-badge--knockout_of_the_night,.history-fight-badge--submission_of_the_night)){display:none!important}

@media(max-width:980px){
  .bout-center .billing{justify-self:start}
  .event-bout-item>.event-bout-badges{padding-left:48px!important}
}

@media(max-width:760px){
  .fight-history-card{overflow:visible;background:transparent;border:0;box-shadow:none}
  .fight-history-card-head{border:1px solid var(--line);border-radius:16px;background:#fff;margin-bottom:12px;padding:14px 15px}
  .fight-history-scroll{overflow:visible;width:100%}
  .fight-history-table{display:block;width:100%;min-width:0;border-collapse:separate;font-size:14px}
  .fight-history-table thead{display:none}
  .fight-history-table tbody{display:grid;gap:12px;width:100%}

  .fight-history-table tr{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
    border:1px solid var(--line);
    border-radius:18px;
    background:#fff;
    overflow:hidden;
    box-shadow:0 5px 16px rgba(18,24,28,.04);
  }
  .fight-history-table tbody tr:hover{background:#fff}

  .fight-history-table td{
    display:block;
    width:auto!important;
    min-width:0;
    padding:13px 14px;
    border:0!important;
    font-size:14px;
    line-height:1.38;
    overflow-wrap:anywhere;
  }
  .fight-history-table td::before{
    display:block;
    margin-bottom:5px;
    color:#8a9197;
    font-size:9px;
    line-height:1;
    font-weight:850;
    letter-spacing:.07em;
    text-transform:uppercase;
  }

  /* Header: result and date */
  .fight-history-table td:nth-child(1),
  .fight-history-table td:nth-child(4){background:#f7f8f9;padding-top:12px;padding-bottom:12px}
  .fight-history-table td:nth-child(1){grid-column:1;grid-row:1}
  .fight-history-table td:nth-child(1)::before{content:"Результат"}
  .fight-history-table td:nth-child(4){grid-column:2;grid-row:1;text-align:right}
  .fight-history-table td:nth-child(4)::before{content:"Дата"}

  /* Main identity block */
  .fight-history-table td:nth-child(2){grid-column:1/-1;grid-row:2;border-top:1px solid var(--line)!important;padding-top:15px;padding-bottom:15px}
  .fight-history-table td:nth-child(2)::before{content:"Соперник"}
  .fight-history-table td:nth-child(2) .history-link{font-size:18px;font-weight:750;line-height:1.2;color:#171a1c}

  /* Event block */
  .fight-history-table td:nth-child(3){grid-column:1/-1;grid-row:3;border-top:1px solid var(--line)!important;background:#fbfcfc;padding-top:13px;padding-bottom:14px}
  .fight-history-table td:nth-child(3)::before{content:"Турнир / событие"}
  .fight-history-table td:nth-child(3) .history-link{font-size:14px;font-weight:650;line-height:1.3;color:#22272a}

  /* Finish method */
  .fight-history-table td:nth-child(5){grid-column:1/-1;grid-row:4;border-top:1px solid var(--line)!important;padding-top:13px;padding-bottom:14px}
  .fight-history-table td:nth-child(5)::before{content:"Способ завершения"}

  /* Round / time compact stats */
  .fight-history-table td:nth-child(6),
  .fight-history-table td:nth-child(7){grid-row:5;background:#f7f8f9;border-top:1px solid var(--line)!important;padding-top:11px;padding-bottom:12px}
  .fight-history-table td:nth-child(6){grid-column:1;border-right:1px solid var(--line)!important}
  .fight-history-table td:nth-child(6)::before{content:"Раунд"}
  .fight-history-table td:nth-child(7){grid-column:2}
  .fight-history-table td:nth-child(7)::before{content:"Время"}

  /* Details at the bottom */
  .fight-history-table td:nth-child(8){grid-column:1/-1;grid-row:6;border-top:1px solid var(--line)!important;padding-top:11px;padding-bottom:12px}
  .fight-history-table td:nth-child(8)::before{content:"Подробнее"}
  .fight-history-table td:nth-child(8):empty{display:none}

  .history-link{white-space:normal}
  .history-title-badge{font-size:11px;font-weight:400;margin-top:7px;padding:5px 9px}
  .history-result{font-size:12px;padding:6px 9px}
  .history-details{min-width:0}
  .history-details summary{white-space:normal;font-size:13px;font-weight:800}
  .history-detail-panel{font-size:13px}
  .history-detail-panel ul{padding-left:16px}
}

@media(max-width:650px){
  .event-bout-item>.event-bout-badges{padding:10px 12px 12px!important}
}

@media(max-width:420px){
  .fight-history-table tbody{gap:10px}
  .fight-history-table tr{border-radius:16px}
  .fight-history-table td{padding-left:12px;padding-right:12px;font-size:13px}
  .fight-history-table td:nth-child(2) .history-link{font-size:17px}
  .fight-history-table td:nth-child(3) .history-link{font-size:13px}
  .history-title-badge,.history-main-event-badge{font-size:10px}
}

/* Open-fight column: desktop widths and mobile card order after inserting "Бой" before "Результат". */
.fight-history-table{min-width:1100px}
.fight-history-table td:nth-child(1){width:72px}
.fight-history-table td:nth-child(2){width:125px}
.fight-history-table td:nth-child(3){width:150px}
.fight-history-table td:nth-child(4){width:210px}
.fight-history-table td:nth-child(5){width:92px}
.fight-history-table td:nth-child(6){width:185px}
.fight-history-table td:nth-child(7),.fight-history-table td:nth-child(8){width:70px}
.fight-history-table td:nth-child(9){width:180px}

@media(max-width:760px){
  .fight-history-table{min-width:0}

  .fight-history-table td:nth-child(1){grid-column:1/-1;grid-row:2;background:#fff;padding-top:10px;padding-bottom:10px;border-top:1px solid var(--line)!important}
  .fight-history-table td:nth-child(1)::before{content:"Бой"}
  .fight-history-table td:nth-child(1):empty{display:none}

  .fight-history-table td:nth-child(2){grid-column:1;grid-row:1;background:#f7f8f9;padding-top:12px;padding-bottom:12px;border-top:0!important}
  .fight-history-table td:nth-child(2)::before{content:"Результат"}
  .fight-history-table td:nth-child(2) .history-link{font-size:14px;font-weight:700}

  .fight-history-table td:nth-child(5){grid-column:2;grid-row:1;text-align:right;background:#f7f8f9;padding-top:12px;padding-bottom:12px;border-top:0!important}
  .fight-history-table td:nth-child(5)::before{content:"Дата"}

  .fight-history-table td:nth-child(3){grid-column:1/-1;grid-row:3;background:#fff;border-top:1px solid var(--line)!important;padding-top:15px;padding-bottom:15px}
  .fight-history-table td:nth-child(3)::before{content:"Соперник"}
  .fight-history-table td:nth-child(3) .history-link{font-size:18px;font-weight:750;line-height:1.2;color:#171a1c}

  .fight-history-table td:nth-child(4){grid-column:1/-1;grid-row:4;text-align:left;background:#fbfcfc;border-top:1px solid var(--line)!important;padding-top:13px;padding-bottom:14px}
  .fight-history-table td:nth-child(4)::before{content:"Турнир / событие"}
  .fight-history-table td:nth-child(4) .history-link{font-size:14px;font-weight:650;line-height:1.3;color:#22272a}

  .fight-history-table td:nth-child(6){grid-column:1/-1;grid-row:5;background:#fff;border-top:1px solid var(--line)!important;border-right:0!important;padding-top:13px;padding-bottom:14px}
  .fight-history-table td:nth-child(6)::before{content:"Способ завершения"}

  .fight-history-table td:nth-child(7),
  .fight-history-table td:nth-child(8){grid-row:6;background:#f7f8f9;border-top:1px solid var(--line)!important;padding-top:11px;padding-bottom:12px}
  .fight-history-table td:nth-child(7){grid-column:1;border-right:1px solid var(--line)!important}
  .fight-history-table td:nth-child(7)::before{content:"Раунд"}
  .fight-history-table td:nth-child(8){grid-column:2}
  .fight-history-table td:nth-child(8)::before{content:"Время"}

  .fight-history-table td:nth-child(9){grid-column:1/-1;grid-row:7;background:#fff;border-top:1px solid var(--line)!important;padding-top:11px;padding-bottom:12px}
  .fight-history-table td:nth-child(9)::before{content:"Подробнее"}
  .fight-history-table td:nth-child(9):empty{display:none}

  .history-fight-badges-row td:first-child{grid-column:1/-1;grid-row:auto;background:#fff;border-top:0!important}
  .history-fight-badges-row td:first-child::before{content:"";display:none}
}

@media(max-width:420px){
  .fight-history-table td:nth-child(3) .history-link{font-size:17px}
  .fight-history-table td:nth-child(4) .history-link{font-size:13px}
}

/* Server-rendered MMA fighter history. The table arrives in its final layout:
   event + date are already merged and expandable detail rows already exist. */
.fighter-history-section > .section-head{display:none!important}
.fighter-history-section .fight-history-card + .fight-history-card{margin-top:18px}
.fighter-history-section .history-event-date{color:#7d858a;font-weight:500;white-space:nowrap}
.fighter-history-section .fight-history-table th:last-child,
.fighter-history-section .fight-history-table td.history-details-cell{width:44px!important;min-width:44px!important;max-width:44px!important;padding-left:5px!important;padding-right:5px!important;text-align:center}
.fighter-history-section .history-details-head{font-size:0!important}
.fighter-history-section .history-details-toggle{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:1px solid #d9dfdc;border-radius:8px;background:#fff;color:#111;font:900 20px/1 Arial,sans-serif;cursor:pointer}
.fighter-history-section .history-details-toggle:hover{background:#f4f7f6}
.fighter-history-section .history-details-toggle:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.fighter-history-section .history-detail-row[hidden]{display:none!important}
.fighter-history-section .history-detail-row td{padding:0 12px 13px!important;border-top:0!important;white-space:normal!important}
.fighter-history-section .history-detail-row .history-detail-panel{display:block!important;position:static!important;inset:auto!important;width:auto!important;max-width:none!important;margin:0!important;padding:14px 16px!important;border:1px solid #e5e9e7!important;border-radius:10px!important;background:#f7f9f8!important;box-shadow:none!important;color:inherit!important;font-size:13px!important;line-height:1.5!important}
.fighter-history-section .history-detail-row .history-detail-panel ul{margin:0!important;padding-left:18px!important}
.fighter-history-section .history-detail-badges-section{margin-top:13px;padding-top:12px;border-top:1px solid #e2e7e4}
.fighter-history-section .history-detail-badges-section .history-fight-badges{display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:0!important;margin:0!important}
.fighter-history-section .history-detail-badges-section .history-fight-badge{white-space:normal!important}
.fighter-history-section .history-visible-bonus-badges{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:7px;padding:0}
.fighter-history-section .history-visible-bonus-badges .history-fight-badge{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:max-content;max-width:100%;margin:0;padding:6px 10px!important;border:1px solid #c7d9f3!important;border-radius:999px;background:#eaf2ff!important;color:#315f99!important;font-size:10px!important;line-height:1!important;font-weight:850;white-space:nowrap!important}
.fighter-history-section .history-method-cell--has-bonus{white-space:normal!important;overflow:visible!important}
.fighter-form-dots i.win,.fighter-form-dots i.loss{font-size:0!important}
.fighter-form-dots i.win::after{content:"В";font-size:9px;font-weight:950}
.fighter-form-dots i.loss::after{content:"П";font-size:9px;font-weight:950}

@media(min-width:761px){
  .fighter-history-section .fight-history-scroll{overflow:visible!important;width:100%!important;max-width:100%!important}
  .fighter-history-section .fight-history-table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important}
  .fighter-history-section .fight-history-table th,
  .fighter-history-section .fight-history-table td{box-sizing:border-box;padding-left:8px!important;padding-right:8px!important;white-space:normal!important;overflow-wrap:anywhere}
  .fighter-history-section .fight-history-table th:nth-child(1),.fighter-history-section .fight-history-table td:nth-child(1){width:5%!important}
  .fighter-history-section .fight-history-table th:nth-child(2),.fighter-history-section .fight-history-table td:nth-child(2){width:9%!important}
  .fighter-history-section .fight-history-table th:nth-child(3),.fighter-history-section .fight-history-table td:nth-child(3){width:15%!important}
  .fighter-history-section .fight-history-table th:nth-child(4),.fighter-history-section .fight-history-table td:nth-child(4){width:34%!important}
  .fighter-history-section .fight-history-table th:nth-child(5),.fighter-history-section .fight-history-table td:nth-child(5){width:20%!important}
  .fighter-history-section .fight-history-table th:nth-child(6),.fighter-history-section .fight-history-table td:nth-child(6){width:5%!important;text-align:center}
  .fighter-history-section .fight-history-table th:nth-child(7),.fighter-history-section .fight-history-table td:nth-child(7){width:6%!important;text-align:center}
  .fighter-history-section .fight-history-table th:nth-child(8),.fighter-history-section .fight-history-table td:nth-child(8){width:6%!important;text-align:center}
}

@media(max-width:760px){
  .fighter-history-section .fight-history-scroll{overflow:visible!important;width:100%!important}
  .fighter-history-section .fight-history-table{min-width:0!important;width:100%!important;table-layout:auto!important}
  .fighter-history-section .fight-history-table td.history-details-cell{width:auto!important;min-width:0!important;max-width:none!important;text-align:left}
  .fighter-history-section .history-fight-main-row.history-details-open{border-radius:13px 13px 0 0!important}
  .fighter-history-section .history-detail-row:not([hidden]){display:grid!important;grid-template-columns:1fr!important;width:100%!important;margin-top:-7px!important;border:1px solid var(--line,#e1e5e8)!important;border-top:0!important;border-radius:0 0 13px 13px!important;background:#fbfcfc!important;overflow:hidden!important;box-shadow:0 2px 8px rgba(18,24,28,.035)!important}
  .fighter-history-section .history-detail-row>td{display:block!important;grid-column:1/-1!important;grid-row:auto!important;width:100%!important;padding:0!important;background:#fbfcfc!important;border:0!important}
  .fighter-history-section .history-detail-row>td::before{display:none!important;content:none!important}
  .fighter-history-section .history-detail-row .history-detail-panel{border:0!important;border-top:1px solid #e5e9e7!important;border-radius:0!important;padding:14px!important}
}
@media(max-width:420px){
  .fighter-history-section .history-fight-main-row.history-details-open{border-radius:12px 12px 0 0!important}
  .fighter-history-section .history-detail-row:not([hidden]){margin-top:-6px!important;border-radius:0 0 12px 12px!important}
}
