/**
 * FootballCast — страница матча (восстановлено после повреждения файла на диске).
 * Зависит от переменных из fc-theme.css (--fc-red, --fc-page-bg, …).
 */

/* ---------- Оболочка страницы ---------- */
.fc-match-page .fc-main {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.fc-match-page {
  background: transparent;
}

/* Один ритм «под шапкой»: полоса рекламы + верх main + верх страницы матча — тот же зазор до чата под баннером */
body:has(.fc-match-page) {
  --fc-match-ad-bar-pad-y: 0.125rem;
  --fc-match-main-pad-top: 0.125rem;
  --fc-match-page-pad-y: 0.25rem;
  --fc-match-gap-after-header: calc(
    var(--fc-match-ad-bar-pad-y) + var(--fc-match-main-pad-top) + var(--fc-match-page-pad-y)
  );
}

body:has(.fc-match-page) .fc-ad-post-nav {
  padding-top: var(--fc-match-ad-bar-pad-y) !important;
  padding-bottom: var(--fc-match-ad-bar-pad-y) !important;
}

body:has(.fc-match-page) main#fc-main-content.fc-main,
body:has(.fc-match-page) main.fc-main#fc-main-content {
  padding-top: var(--fc-match-main-pad-top) !important;
}

body:has(.fc-match-page) .fc-match-page {
  padding-top: var(--fc-match-page-pad-y);
  padding-bottom: var(--fc-match-page-pad-y);
}

/* Зазор реклама → чат — только когда баннер уже показан (иначе пустой зазор при загрузке) */
body:has(.fc-match-page) .fc-match-chat-col .fc-fixture-chat-ad-above:has(.fc-ad-slot--media-ready) {
  margin-bottom: var(--fc-match-gap-after-header) !important;
}

body:has(.fc-match-page) .fc-match-chat-col .fc-fixture-chat-ad-above:not(:has(.fc-ad-slot--media-ready)) {
  margin-bottom: 0 !important;
}

body:has(.fc-match-page) .fc-match-chat-col .fc-fixture-chat-card {
  margin-top: 0 !important;
}

/* Меньше зазор между последним блоком матча и футером */
body:has(.fc-match-page) main#fc-main-content.fc-main {
  padding-bottom: 0.9rem;
}

body:has(.fc-match-page) .fc-footer.mt-4 {
  margin-top: 0.9rem !important;
}

/*
 * Мобилка: страница матча на всю ширину (как Flashscore).
 * Контент матча лежит внутри layout main > .container — снимаем max-width и боковой padding родителя.
 */
@media (max-width: 575.98px) {
  main#fc-main-content.fc-main > .container:has(> .fc-match-page),
  main.fc-main > .container:has(> .fc-match-page) {
    max-width: none;
    width: 100%;
    padding-left: max(0.35rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.35rem, env(safe-area-inset-right, 0px));
  }

  .fc-match-page.container-fluid {
    padding-left: 0;
    padding-right: 0;
  }

  .fc-match-page #matchTabsContent.tab-content {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ---------- Крошки на странице матча ---------- */
.fc-match-page .fc-match-breadcrumb {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.fc-match-page .fc-match-breadcrumb .fc-match-breadcrumb__track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.14rem 0.2rem;
  row-gap: 0.24rem;
  padding: 0.22rem 0.3rem;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 249, 0.98) 100%);
  border: 1px solid rgba(22, 77, 50, 0.12);
  box-shadow:
    0 2px 12px rgba(10, 34, 22, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.85) inset;
  overflow: visible;
}

.fc-match-page .fc-match-breadcrumb .fc-match-breadcrumb__item {
  flex-shrink: 0;
  max-width: min(100%, 15rem);
  min-width: 0;
}

.fc-match-page .fc-match-breadcrumb .fc-match-breadcrumb__item.fc-match-breadcrumb__current {
  max-width: min(100%, 22rem);
  min-width: 0;
}

.fc-match-page .fc-match-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "";
  display: inline-block;
  width: 0.22rem;
  height: 0.22rem;
  margin: 0 0.1rem 0 0.24rem;
  border-right: 2px solid rgba(22, 77, 50, 0.28);
  border-bottom: 2px solid rgba(22, 77, 50, 0.28);
  transform: rotate(-45deg);
  vertical-align: 0.15em;
  opacity: 1;
  padding: 0;
  float: none;
}

.fc-match-page .fc-match-breadcrumb .fc-match-breadcrumb__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.2rem 0.42rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
  color: #164d32;
  text-decoration: none;
  background: rgba(22, 77, 50, 0.06);
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fc-match-page .fc-match-breadcrumb .fc-match-breadcrumb__link:hover {
  background: rgba(22, 77, 50, 0.11);
  border-color: rgba(22, 77, 50, 0.12);
  color: #0a2216;
}

.fc-match-page .fc-match-breadcrumb .fc-match-breadcrumb__home-ico {
  font-size: 0.68rem;
  opacity: 0.85;
}

.fc-match-page .fc-match-breadcrumb .breadcrumb-item.active .fc-match-breadcrumb__current-inner {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.73rem;
  line-height: 1.25;
  color: #fff;
  background: linear-gradient(135deg, #164d32 0%, #0d3020 100%);
  box-shadow: 0 1px 4px rgba(10, 34, 22, 0.2);
}

@media (min-width: 992px) {
  .fc-match-page .fc-match-breadcrumb .breadcrumb-item.active .fc-match-breadcrumb__current-inner {
    max-width: min(36rem, 88vw);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.fc-match-page .fc-match-breadcrumb .breadcrumb-item.active {
  color: inherit;
}

/* Мобилка / планшет: путь одной строкой со слэшами, матч — отдельно под линией (без «таблеток» и скролла) */
@media (max-width: 991.98px) {
  .fc-match-page .fc-match-breadcrumb .breadcrumb-item {
    padding-left: 0;
    padding-right: 0;
  }

  .fc-match-page .fc-match-breadcrumb .fc-match-breadcrumb__track {
    display: block !important;
    padding: 0.34rem 0.45rem 0.38rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    gap: 0;
    row-gap: 0;
  }

  .fc-match-page .fc-match-breadcrumb .fc-match-breadcrumb__item:not(.active) {
    display: inline;
    max-width: none;
    margin: 0;
    padding: 0;
    vertical-align: baseline;
  }

  .fc-match-page .fc-match-breadcrumb .breadcrumb-item.active {
    display: block;
    width: 100%;
    margin: 0.34rem 0 0;
    padding: 0.34rem 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.09);
  }

  .fc-match-page .fc-match-breadcrumb .fc-match-breadcrumb__item.fc-match-breadcrumb__current {
    flex: none;
    max-width: 100%;
  }

  /* слэш между пунктами пути; перед активным пунктом не показываем */
  .fc-match-page .fc-match-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    display: inline;
    float: none;
    margin: 0 0.3rem;
    padding: 0;
    width: auto;
    height: auto;
    border: none;
    transform: none;
    font-size: 0.82em;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.28);
    vertical-align: 0.02em;
  }

  .fc-match-page .fc-match-breadcrumb .breadcrumb-item.active::before {
    display: none !important;
    content: none !important;
  }

  .fc-match-page .fc-match-breadcrumb .fc-match-breadcrumb__link {
    display: inline;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    font-size: 0.74rem;
    font-weight: 600;
    color: #164d32;
    background: none;
    text-decoration: none;
    vertical-align: baseline;
  }

  .fc-match-page .fc-match-breadcrumb .fc-match-breadcrumb__link:hover {
    background: none;
    border: none;
    color: #0a2216;
    text-decoration: underline;
    text-underline-offset: 0.15em;
  }

  .fc-match-page .fc-match-breadcrumb .fc-match-breadcrumb__home-ico {
    font-size: 0.64rem;
    margin-right: 0.12rem;
    opacity: 0.75;
  }

  .fc-match-page .fc-match-breadcrumb .fc-match-breadcrumb__league-link.text-truncate {
    display: inline;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .fc-match-page .fc-match-breadcrumb .breadcrumb-item.active .fc-match-breadcrumb__current-inner {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    text-align: left;
    white-space: normal;
    line-height: 1.35;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #141414;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
}

/* ---------- Шапка матча (градиентный блок как на главной) ---------- */
.compact-header {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  padding: 1rem 1rem 1.35rem;
  margin-bottom: 1rem;
  color: #fff;
  background:
    radial-gradient(ellipse 120% 80% at 0% 0%, rgba(56, 180, 120, 0.42) 0%, transparent 55%),
    radial-gradient(ellipse 90% 70% at 100% 100%, rgba(12, 55, 38, 0.75) 0%, transparent 52%),
    linear-gradient(158deg, #0a2216 0%, #164d32 38%, #0c1512 100%);
  border: 1px solid rgba(34, 120, 78, 0.35);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.fc-match-hero-top {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
}

.fc-match-hero-league-wrap {
  display: flex;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 12rem);
  margin-top: -0.24rem;
  margin-left: -0.18rem;
}

.fc-match-hero-league {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.fc-match-hero-league--pill {
  max-width: min(100%, 28rem);
  padding: 0.42rem 1rem 0.42rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.14);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.fc-match-hero-league--pill.fc-match-hero-league--link:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

.fc-match-hero-league--pill.fc-match-hero-league--muted {
  opacity: 0.88;
  cursor: default;
}

.fc-match-hero-league--link {
  color: rgba(255, 255, 255, 0.95);
}

.fc-match-hero-league-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.95);
}

.fc-match-hero-league__name {
  min-width: 0;
}

.fc-match-hero-top-right {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.45rem 0.6rem;
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(100%, 26rem);
  margin-left: auto;
}

.fc-match-hero-meta-outer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.5rem;
  flex: 0 0 auto;
  min-width: 0;
  max-width: min(22rem, 100%);
  margin-left: 0;
}

.fc-match-hero-favorite-slot {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
}

.fc-match-hero-favorite-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.12s ease,
    color 0.15s ease;
}

.fc-match-hero-favorite-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  transform: translateY(-1px);
}

.fc-match-hero-favorite-btn:focus-visible {
  outline: 2px solid rgba(255, 214, 120, 0.95);
  outline-offset: 2px;
}

.fc-match-hero-favorite-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.fc-match-hero-favorite-btn .tab-icon {
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.95;
}

.fc-match-hero-favorite-btn.fc-fixture-favorite-btn--active {
  background: rgba(255, 193, 7, 0.22);
  border-color: rgba(255, 214, 120, 0.72);
  color: #fff8e9;
}

.fc-match-hero-favorite-btn.fc-fixture-favorite-btn--active .tab-icon {
  color: #ffe08a;
}

.fc-match-hero-favorite-btn--guest {
  opacity: 0.92;
}

@media (min-width: 768px) {
  .fc-match-hero-top {
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0.7rem 0.9rem;
  }

  .fc-match-hero-league-wrap {
    flex: 1 1 auto;
    max-width: min(42%, 23rem);
    margin-top: 0;
    margin-left: 0;
  }

  .fc-match-hero-league.fc-match-hero-league--pill {
    min-height: 36px;
    padding: 0.36rem 0.85rem 0.36rem 0.5rem;
    border-radius: 12px;
  }

  .fc-match-hero-league-logo {
    width: 24px;
    height: 24px;
  }

  .fc-match-hero-league__name {
    font-size: 0.78rem;
  }

  .fc-match-hero-top-right {
    flex-wrap: nowrap;
    align-items: flex-start;
    align-self: flex-start;
    gap: 0.45rem;
    max-width: min(58%, 34rem);
  }

  .fc-match-hero-meta-outer,
  .fc-match-hero-favorite-slot {
    align-self: flex-start;
    margin-top: 0;
  }

  .compact-header.fc-compact-header--with-chat .fc-match-hero-favorite-slot {
    position: absolute;
    right: 0.85rem;
    bottom: 0.85rem;
    z-index: 5;
  }

  /* Лайв: таймлайн на всю ширину карточки; избранное — компактная кнопка в полосе под дорожкой (не съедает правый край) */
  .compact-header.fc-compact-header--with-chat:has(.fc-match-hero-timeline-wrap) {
    padding-bottom: 2.85rem;
  }

  .compact-header.fc-compact-header--with-chat:has(.fc-match-hero-timeline-wrap) .fc-match-hero-timeline-wrap {
    position: relative;
    z-index: 3;
  }

  .compact-header.fc-compact-header--with-chat:has(.fc-match-hero-timeline-wrap) .fc-match-hero-favorite-slot {
    bottom: 0.5rem;
    z-index: 2;
  }

  .compact-header.fc-compact-header--with-chat:has(.fc-match-hero-timeline-wrap) .fc-match-hero-favorite-btn {
    min-height: 30px;
    padding: 0.2rem 0.46rem;
    font-size: 0.72rem;
    border-radius: 10px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.14);
  }

  .compact-header.fc-compact-header--with-chat:has(.fc-match-hero-timeline-wrap) .fc-match-hero-favorite-btn .tab-icon {
    font-size: 0.76rem;
  }

  .fc-match-hero-favorite-btn {
    display: inline-flex;
    min-height: 36px;
    padding: 0.34rem 0.64rem;
    border-radius: 12px;
    white-space: nowrap;
    transform: none;
  }

  /* Плашка лиги + блок даты/тура — компактнее, чтобы не доминировали в шапке */
  .compact-header.fc-compact-header--with-chat .fc-match-hero-league.fc-match-hero-league--pill {
    min-height: 32px;
    padding: 0.28rem 0.62rem 0.28rem 0.42rem;
    border-radius: 10px;
  }

  .compact-header.fc-compact-header--with-chat .fc-match-hero-league-logo {
    width: 22px;
    height: 22px;
  }

  .compact-header.fc-compact-header--with-chat .fc-match-hero-league__name {
    font-size: 0.72rem;
  }

  .compact-header.fc-compact-header--with-chat .fc-match-hero-meta-stack {
    gap: 0.32rem;
    max-width: min(18rem, 100%);
  }

  .compact-header.fc-compact-header--with-chat .fc-match-hero-meta-card {
    padding: 0.32rem 0.58rem;
    border-radius: 10px;
    gap: 0.12rem;
  }

  .compact-header.fc-compact-header--with-chat .fc-match-hero-datetime {
    font-size: 0.76rem;
  }

  .compact-header.fc-compact-header--with-chat .fc-match-hero-stage {
    font-size: 0.64rem;
    letter-spacing: 0.03em;
  }

  .compact-header.fc-compact-header--with-chat .fc-match-hero-meta-ico {
    font-size: 0.68rem;
  }

  .compact-header.fc-compact-header--with-chat .fc-match-hero-venue-row {
    font-size: 0.68rem;
  }
}

@media (max-width: 767.98px) {
  /* Лига + избранное: небольшой отступ от краёв табло; лига — лого + название в одной линии */
  .compact-header.fc-compact-header--with-chat {
    --fc-hero-tile-inset: 5px;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .compact-header.fc-compact-header--with-chat .fc-match-hero-top {
    position: static;
    padding-top: calc(var(--fc-hero-tile-inset) + 30px);
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    margin-bottom: 0.65rem !important;
    gap: 0;
  }

  .fc-match-hero-league-wrap {
    position: absolute;
    top: var(--fc-hero-tile-inset);
    left: var(--fc-hero-tile-inset);
    z-index: 4;
    max-width: calc(100% - var(--fc-hero-tile-inset) * 2 - 36px);
    margin-top: 0;
    margin-left: 0;
    flex: 0 0 auto;
  }

  .fc-match-hero-top-right {
    position: absolute;
    top: var(--fc-hero-tile-inset);
    right: var(--fc-hero-tile-inset);
    z-index: 4;
    max-width: none;
    margin-left: 0;
    flex: 0 0 auto;
    gap: 0;
  }

  .fc-match-hero-league.fc-match-hero-league--pill {
    width: auto;
    height: 30px;
    min-width: 0;
    min-height: 30px;
    max-width: 100%;
    padding: 0 0.38rem 0 0.28rem;
    margin: 0;
    border-radius: 8px;
    justify-content: flex-start;
    align-items: center;
    gap: 0.3rem;
    box-shadow: none;
  }

  .fc-match-hero-league.fc-match-hero-league--pill.fc-match-hero-league--link:hover {
    transform: none;
  }

  .fc-match-hero-league-logo {
    width: 16px;
    height: 16px;
  }

  .fc-match-hero-league__name {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    max-width: 9rem;
  }

  .fc-match-hero-favorite-btn {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    padding: 0;
    border-radius: 8px;
    gap: 0;
    box-shadow: none;
  }

  .fc-match-hero-favorite-btn:hover {
    transform: none;
  }

  .fc-match-hero-favorite-btn .tab-icon {
    font-size: 0.7rem;
  }

  .fc-match-hero-league--pill.fc-match-hero-league--muted {
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    padding: 0 0.55rem;
  }

  /* Табло (логотипы, счёт, имена) — чуть компактнее на телефонах */
  .compact-header.fc-compact-header--with-chat .fc-fixture-hero-teams {
    gap: 0.3rem 0.42rem;
  }

  .compact-header.fc-compact-header--with-chat .fc-fixture-team-block {
    gap: 0.22rem;
  }

  .compact-header.fc-compact-header--with-chat .team-logo-compact {
    width: 44px;
    height: 44px;
    border-radius: 9px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }

  .compact-header.fc-compact-header--with-chat .fc-fixture-hero-score-col {
    min-width: 4.65rem;
    padding-top: 0.2rem;
  }

  .compact-header.fc-compact-header--with-chat .score-compact {
    font-size: 1.34rem;
  }

  .compact-header.fc-compact-header--with-chat .fc-fixture-team-name {
    font-size: 0.72rem;
    line-height: 1.18;
  }

  .compact-header.fc-compact-header--with-chat .fc-fixture-team-meta {
    font-size: 0.62rem;
  }

  .compact-header.fc-compact-header--with-chat .compact-status {
    font-size: 0.62rem;
    padding: 0.22rem 0.38rem;
  }

  .compact-header.fc-compact-header--with-chat .fc-score-breakdown {
    font-size: 0.66rem;
    margin-top: 0.28rem;
  }
}

.fc-fixture-faq-collapsible {
  overflow: hidden;
  margin-top: 1rem;
}

.fc-fixture-faq-collapsible > summary {
  list-style: none;
  cursor: pointer;
}

.fc-fixture-faq-collapsible > summary::-webkit-details-marker {
  display: none;
}

/* Финальный ритм секций страницы матча */
.fc-match-page {
  --fc-match-section-gap: 0.7rem;
  /* Зазор под крошками (было 1rem — уменьшено ~вдвое) */
  --fc-match-breadcrumb-to-content: 0.5rem;
}

.fc-match-page nav.fc-match-breadcrumb {
  margin-bottom: var(--fc-match-breadcrumb-to-content) !important;
}

.fc-match-page > .alert[role="note"],
.fc-match-page > .fc-match-pre-hero-meta {
  margin-bottom: var(--fc-match-section-gap) !important;
}

.fc-match-page .fc-match-main-col > .mb-3 {
  margin-bottom: var(--fc-match-section-gap) !important;
}

@media (min-width: 992px) {
  .fc-match-page {
    --fc-match-section-gap: 0.75rem;
    --fc-match-breadcrumb-to-content: 0.55rem;
  }
}

.fc-match-hero-meta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  max-width: min(22rem, calc(100vw - 12rem));
  min-width: 0;
}

.fc-match-hero-meta-card {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  text-align: right;
  padding: 0.45rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.fc-match-hero-datetime {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.fc-match-hero-stage {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
}

.fc-match-hero-venue-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  width: 100%;
  min-width: 0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.82);
  text-align: right;
}

.fc-match-hero-venue-ico {
  flex-shrink: 0;
  opacity: 0.75;
  font-size: 0.72rem;
}

.fc-match-hero-venue {
  min-width: 0;
}

.fc-match-pre-hero-meta__card {
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 249, 0.99) 100%);
  border: 1px solid rgba(22, 77, 50, 0.12);
  box-shadow: 0 2px 14px rgba(10, 34, 22, 0.07);
}

.fc-match-pre-hero-meta__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0a2216;
}

.fc-match-pre-hero-meta__time {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.fc-match-pre-hero-meta__stage {
  margin-left: auto;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #164d32;
  background: rgba(22, 77, 50, 0.1);
}

.fc-match-pre-hero-meta__venue {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px dashed rgba(22, 77, 50, 0.15);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  color: #2d4a3e;
}

.fc-match-pre-hero-meta__venue-ico {
  flex-shrink: 0;
  margin-top: 0.12rem;
  color: #164d32;
  opacity: 0.75;
}

.fc-match-pre-hero-meta__venue-txt {
  min-width: 0;
}

/* ---------- Герой: три колонки (хозяева — счёт — гости) ---------- */
.fc-fixture-hero-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.75rem 1rem;
  align-items: center;
  width: 100%;
}

.fc-fixture-team-side {
  min-width: 0;
}

.fc-fixture-team-side--home .fc-fixture-team-block {
  align-items: flex-end;
  text-align: right;
}

.fc-fixture-team-side--away .fc-fixture-team-block {
  align-items: flex-start;
  text-align: left;
}

.fc-fixture-team-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fc-fixture-team-name {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  word-break: break-word;
}

.fc-fixture-team-meta {
  font-size: 0.75rem;
  opacity: 0.85;
}

.fc-fixture-hero-score-col {
  text-align: center;
  min-width: 6.5rem;
}

.score-compact {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.team-logo-compact {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

@media (min-width: 576px) {
  .team-logo-compact {
    width: 64px;
    height: 64px;
  }
}

.compact-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.fc-match-hero-muted {
  color: rgba(255, 255, 255, 0.72) !important;
}

/* Таймлайн 0'–90' в шапке лайва: фоновая дорожка, заливка до текущей минуты, точка-маркер */
.fc-match-hero-timeline-wrap .fc-match-timeline-edge {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.fc-match-timeline {
  height: 14px;
  margin: 0 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.fc-match-timeline__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.fc-match-timeline__fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  width: var(--fc-tl-pct, 0%);
  max-width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.72));
  pointer-events: none;
  transition: width 0.35s ease-out;
}

.fc-match-timeline__dot {
  position: absolute;
  top: 50%;
  left: clamp(5px, var(--fc-tl-pct, 0%), calc(100% - 5px));
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--fc-surface, #fff);
  box-shadow:
    0 0 0 2px rgba(22, 77, 50, 0.95),
    0 2px 10px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  transition: left 0.35s ease-out;
}

.fc-match-timeline--live .fc-match-timeline__dot {
  animation: fc-match-timeline-pulse 1.6s ease-in-out infinite;
}

@keyframes fc-match-timeline-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 2px rgba(22, 77, 50, 0.95),
      0 2px 10px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 2px rgba(22, 77, 50, 0.95),
      0 0 0 6px rgba(255, 255, 255, 0.18),
      0 2px 10px rgba(0, 0, 0, 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fc-match-timeline__fill,
  .fc-match-timeline__dot {
    transition: none;
  }

  .fc-match-timeline--live .fc-match-timeline__dot {
    animation: none;
  }
}

.fc-score-breakdown {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
  display: grid;
  gap: 0.15rem;
  margin-top: 0.35rem;
}

.fc-score-breakdown__row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

@media (max-width: 575.98px) {
  .compact-header {
    padding: 0.85rem 0.4rem 1.1rem;
  }

  /* Не даём общему padding xs «отодвинуть» угловые тайлы лига/избранное */
  .compact-header.fc-compact-header--with-chat {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 1.1rem;
  }

  .fc-fixture-hero-teams {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.35rem 0.5rem;
    align-items: start;
  }

  .fc-fixture-hero-score-col {
    order: 0;
    padding-top: 0.35rem;
    min-width: 5.25rem;
  }

  .score-compact {
    font-size: 1.55rem;
  }

  .fc-fixture-team-side--home .fc-fixture-team-block,
  .fc-fixture-team-side--away .fc-fixture-team-block {
    gap: 0.28rem;
  }

  .fc-fixture-team-side--home .fc-fixture-team-block {
    align-items: flex-end;
    text-align: right;
  }

  .fc-fixture-team-side--away .fc-fixture-team-block {
    align-items: flex-start;
    text-align: left;
  }

  .fc-fixture-team-name {
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
  }

  .fc-fixture-team-meta {
    font-size: 0.65rem;
    max-width: 100%;
  }

  .team-logo-compact {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }

  .compact-header.fc-compact-header--with-chat .team-logo-compact {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.19);
  }

  .compact-header.fc-compact-header--with-chat .score-compact {
    font-size: 1.28rem;
  }

  .compact-header.fc-compact-header--with-chat .fc-fixture-team-name {
    font-size: 0.7rem;
  }

  .compact-header.fc-compact-header--with-chat .fc-fixture-hero-score-col {
    min-width: 4.4rem;
    padding-top: 0.18rem;
  }

  .compact-header.fc-compact-header--with-chat .fc-fixture-hero-teams {
    gap: 0.28rem 0.42rem;
  }

  .compact-status {
    font-size: 0.68rem;
    padding: 0.28rem 0.45rem;
  }

  .compact-header.fc-compact-header--with-chat .compact-status {
    font-size: 0.6rem;
    padding: 0.2rem 0.36rem;
  }
}

/* ---------- Hero + чат на десктопе ---------- */
.fc-fixture-chat-card .card-header {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.fc-fixture-chat-messages {
  max-height: 520px;
  overflow: auto;
  padding-right: 0.2rem;
}

.fc-chat-thread {
  padding: 0.1rem 0;
}

.fc-chat-empty {
  padding: 0.35rem 0.1rem;
}

.fc-chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.fc-chat-msg__avatar {
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--fc-surface, #fff);
  width: 32px;
  height: 32px;
}

.fc-chat-msg__avatar-link {
  display: inline-flex;
  border-radius: 999px;
}

.fc-chat-msg__avatar-link:hover .fc-chat-msg__avatar,
.fc-chat-msg__avatar-link:focus-visible .fc-chat-msg__avatar {
  border-color: rgba(220, 38, 38, 0.42);
}

.fc-chat-msg__bubble {
  width: min(100%, 96%);
  border-radius: 14px;
  padding: 0.5rem 0.62rem 0.56rem;
  background: linear-gradient(180deg, #f9fafb 0%, #f3f6f8 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
}

.fc-chat-msg__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.1rem;
}

.fc-chat-msg__name {
  color: #20262e;
}

a.fc-chat-msg__name:hover,
a.fc-chat-msg__name:focus-visible {
  color: #b91c1c;
  text-decoration: underline !important;
}

.fc-chat-msg__time {
  font-size: 0.68rem;
  white-space: nowrap;
}

.fc-chat-msg__content {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.fc-chat-msg__text {
  flex: 1 1 auto;
  min-width: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #20262e;
  line-height: 1.35;
  font-size: 0.84rem;
}

.fc-chat-msg--mine {
  justify-content: flex-end;
}

.fc-chat-msg--mine .fc-chat-msg__avatar {
  order: 2;
}

.fc-chat-msg--mine .fc-chat-msg__bubble {
  order: 1;
  background: linear-gradient(180deg, rgba(22, 77, 50, 0.16) 0%, rgba(22, 77, 50, 0.11) 100%);
  border-color: rgba(22, 77, 50, 0.3);
  box-shadow: 0 4px 14px rgba(22, 77, 50, 0.12);
}

.fc-chat-msg--mine .fc-chat-msg__name {
  color: #164d32;
}

.fc-chat-msg--newflash .fc-chat-msg__bubble {
  animation: fcChatNewMsgFlash 1.45s ease-out;
}

.fc-fixture-predictions-anchor {
  display: block;
  height: 0;
  overflow: hidden;
  scroll-margin-top: 88px;
}

.fc-chat-msg--event {
  align-self: stretch;
  max-width: 100%;
}

.fc-chat-msg__event-badge {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.12) 0%, rgba(99, 102, 241, 0.1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.22);
}

.fc-chat-msg__bubble--event {
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 2.5rem);
  width: auto;
  background: linear-gradient(180deg, rgba(238, 242, 255, 0.95) 0%, rgba(224, 231, 255, 0.55) 100%);
  border-color: rgba(79, 70, 229, 0.18);
  box-shadow: 0 4px 14px rgba(67, 56, 202, 0.08);
}

.fc-chat-msg__meta--event {
  margin-bottom: 0.2rem;
}

.fc-chat-msg__event-label {
  letter-spacing: 0.04em;
  font-size: 0.62rem;
  color: #4338ca;
}

.fc-chat-msg__content--event {
  display: block;
}

.fc-chat-msg__text--event {
  color: #1e1b4b;
}

.fc-chat-msg__event-actions {
  padding-top: 0.15rem;
  border-top: 1px dashed rgba(67, 56, 202, 0.2);
}

a.fc-chat-goto-predictions {
  color: #4338ca;
  text-decoration: none;
}

a.fc-chat-goto-predictions:hover,
a.fc-chat-goto-predictions:focus-visible {
  color: #b91c1c;
  text-decoration: underline;
}

.fc-chat-msg__event-badge--result {
  background: linear-gradient(145deg, rgba(22, 163, 74, 0.14) 0%, rgba(5, 150, 105, 0.1) 100%);
  border-color: rgba(22, 163, 74, 0.28);
}

.fc-chat-msg__bubble--event-result {
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.95) 0%, rgba(220, 252, 231, 0.55) 100%);
  border-color: rgba(22, 163, 74, 0.2);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.08);
}

.fc-chat-msg__event-badge--cmd {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.16) 0%, rgba(251, 191, 36, 0.1) 100%);
  border-color: rgba(217, 119, 6, 0.28);
}

.fc-chat-msg__bubble--event-cmd {
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.98) 0%, rgba(254, 243, 199, 0.55) 100%);
  border-color: rgba(217, 119, 6, 0.22);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.08);
}

.fc-chat-msg__actions--event {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.fc-chat-composer .form-control,
.fc-chat-composer .btn {
  height: 32px;
}

.fc-chat-composer .form-control {
  font-size: 0.82rem;
}

.fc-chat-unread-btn {
  position: sticky;
  bottom: 0.35rem;
  z-index: 3;
  box-shadow: 0 6px 14px rgba(185, 28, 28, 0.24);
}

.fc-chat-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.16);
}

@keyframes fcChatNewMsgFlash {
  0% {
    box-shadow: 0 0 0 1px rgba(22, 77, 50, 0.44), 0 0 0 0 rgba(22, 77, 50, 0.25);
    background: linear-gradient(180deg, rgba(219, 245, 232, 0.98) 0%, rgba(203, 236, 218, 0.95) 100%);
  }
  100% {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
    background: linear-gradient(180deg, #f9fafb 0%, #f3f6f8 100%);
  }
}

.fc-chat-react-btn {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--fc-surface, #fff);
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1;
  padding: 0.22rem 0.44rem;
  color: #4b5563;
}

.fc-chat-react-btn span {
  margin-left: 0.15rem;
}

.fc-chat-react-btn.is-active {
  border-color: rgba(22, 77, 50, 0.35);
  color: #164d32;
  background: rgba(22, 77, 50, 0.08);
}

.fc-chat-react-btn.is-active.is-dislike {
  border-color: rgba(185, 28, 28, 0.35);
  color: #b91c1c;
  background: rgba(185, 28, 28, 0.08);
}

.fc-pred-pick-btn {
  min-width: 78px;
  justify-content: space-between;
}

.fc-pred-pick-btn:disabled {
  opacity: 0.62;
}

@media (min-width: 1200px) {
  .fc-match-page-split {
    --fc-chat-col-w: clamp(340px, 31vw, 410px);
    --bs-gutter-x: 0;
    align-items: stretch !important;
  }

  .fc-match-main-col {
    flex: 0 0 calc(100% - var(--fc-chat-col-w));
    max-width: calc(100% - var(--fc-chat-col-w));
    width: calc(100% - var(--fc-chat-col-w));
    padding-right: 0;
  }

  .fc-match-chat-col {
    flex: 0 0 var(--fc-chat-col-w);
    max-width: var(--fc-chat-col-w);
    width: var(--fc-chat-col-w);
    padding-left: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  .fc-match-chat-col .fc-fixture-chat-ad-above {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .fc-match-chat-col .fc-fixture-chat-card {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    margin-bottom: 0 !important;
    border-radius: 0;
    width: 100%;
  }

  .fc-match-chat-col .fc-fixture-chat-card .card-body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0.62rem 0.68rem;
  }

  .fc-match-chat-col .fc-fixture-chat-messages {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
  }

  .fc-match-hero-layout .fc-compact-header--with-chat {
    padding: 0.62rem 0.86rem;
    border-radius: 14px;
    margin-bottom: 0;
    min-height: 236px;
  }

  .fc-match-hero-layout .fc-compact-header--with-chat .fc-match-hero-top {
    margin-bottom: 0.35rem !important;
  }

  .fc-match-hero-layout .fc-compact-header--with-chat .fc-match-hero-league {
    font-size: 0.72rem;
  }

  .fc-match-hero-layout .fc-compact-header--with-chat .fc-match-hero-league--pill {
    min-height: 30px;
    padding: 0.24rem 0.54rem 0.24rem 0.36rem;
    border-radius: 9px;
  }

  .fc-match-hero-layout .fc-compact-header--with-chat .fc-match-hero-league__name {
    font-size: 0.7rem;
  }

  .fc-match-hero-layout .fc-compact-header--with-chat .fc-match-hero-league-logo {
    width: 18px;
    height: 18px;
  }

  .fc-match-hero-layout .fc-compact-header--with-chat .fc-match-hero-meta-card {
    padding: 0.28rem 0.5rem;
    border-radius: 9px;
    gap: 0.08rem;
  }

  .fc-match-hero-layout .fc-compact-header--with-chat .fc-match-hero-datetime {
    font-size: 0.72rem;
  }

  .fc-match-hero-layout .fc-compact-header--with-chat .fc-match-hero-stage {
    font-size: 0.6rem;
    letter-spacing: 0.028em;
  }

  .fc-match-hero-layout .fc-compact-header--with-chat .fc-match-hero-meta-ico {
    font-size: 0.64rem;
  }

  .fc-match-hero-layout .fc-compact-header--with-chat .fc-match-hero-meta-stack {
    gap: 0.28rem;
    max-width: min(16rem, 100%);
  }

  .fc-match-hero-layout .fc-compact-header--with-chat .fc-match-hero-venue-row {
    font-size: 0.64rem;
  }

  .fc-match-hero-layout .fc-compact-header--with-chat .fc-fixture-team-name {
    font-size: 1.02rem;
    line-height: 1.2;
  }

  .fc-match-hero-layout .fc-compact-header--with-chat .fc-fixture-team-meta {
    font-size: 0.7rem;
  }

  .fc-match-hero-layout .fc-compact-header--with-chat .fc-fixture-hero-teams {
    padding-top: 0.05rem;
  }

  .fc-match-hero-layout .fc-compact-header--with-chat .team-logo-compact {
    width: 60px;
    height: 60px;
    border-radius: 10px;
  }

  .fc-match-hero-layout .fc-compact-header--with-chat .fc-fixture-hero-score-col {
    min-width: 6rem;
  }

  .fc-match-hero-layout .fc-compact-header--with-chat .score-compact {
    font-size: 1.9rem;
  }

  /* Кнопка избранного внизу справа — вровень с внутренними отступами табло */
  .fc-match-hero-layout .fc-compact-header--with-chat .fc-match-hero-favorite-slot {
    right: 0.86rem;
    bottom: 0.62rem;
  }

  .fc-match-hero-layout .fc-compact-header--with-chat:has(.fc-match-hero-timeline-wrap) {
    padding-bottom: 2.72rem;
  }

  .fc-match-hero-layout .fc-compact-header--with-chat:has(.fc-match-hero-timeline-wrap) .fc-match-hero-favorite-slot {
    bottom: 0.44rem;
  }

  .fc-match-hero-layout .fc-compact-header--with-chat .compact-status {
    font-size: 0.7rem;
    padding: 0.24rem 0.46rem;
  }

  .fc-match-hero-layout .fc-compact-header--with-chat .fc-score-breakdown {
    font-size: 0.68rem;
    margin-top: 0.22rem;
  }

  .fc-chat-msg__actions {
    margin-left: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.26rem;
    flex-shrink: 0;
  }
}

@media (max-width: 1199.98px) {
  .fc-chat-msg__actions {
    margin-top: 0.32rem;
    display: flex;
    gap: 0.26rem;
    flex-wrap: wrap;
  }
}

/* ---------- Вкладки матча (дополнение к fc-theme .fc-tabs-shell) ---------- */
.fc-fixture-tabs-shell.fc-tabs-shell {
  margin-top: 0.25rem;
}

.fc-match-page .fc-fixture-tabs-shell.fc-tabs-shell {
  margin-top: 0;
}

/* На странице матча активная вкладка — в зелёной гамме шапки, без «третьего» красного рядом с карточкой матча */
.fc-match-page .fc-match-tabs-shell.fc-tabs-shell .fc-subnav::-webkit-scrollbar-thumb {
  background: rgba(22, 77, 50, 0.38);
}

.fc-match-page .fc-match-tabs-shell.fc-tabs-shell .fc-subnav {
  scrollbar-color: rgba(22, 77, 50, 0.45) var(--fc-border, #e8e8e8);
}

.fc-match-page .fc-match-tabs-shell.fc-tabs-shell .fc-subnav .nav-link:hover {
  background: rgba(22, 77, 50, 0.08);
  color: #164d32;
}

.fc-match-page .fc-match-tabs-shell.fc-tabs-shell .fc-subnav .nav-link.active {
  background: linear-gradient(135deg, #164d32, #0d3020) !important;
  color: #fff !important;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 14px rgba(10, 34, 22, 0.22);
}

.fc-match-page .fc-match-tabs-shell.fc-tabs-shell .fc-subnav .nav-link:focus-visible,
.fc-match-page .fc-fixture-team-block--link:focus-visible,
.fc-match-page .fc-match-hero-league--link:focus-visible,
.fc-match-page .fc-match-hero-favorite-btn:focus-visible {
  outline: 2px solid rgba(255, 214, 120, 0.96);
  outline-offset: 2px;
}

/* Панель табов и контент — раздельно, с «воздухом» и мягкой глубиной */
.fc-match-page .fc-match-tabs-row {
  margin-bottom: 0.85rem;
}

.fc-match-page .fc-fixture-tabs-shell.fc-tabs-shell {
  margin-bottom: 0 !important;
  border-radius: 16px;
  box-shadow:
    0 2px 18px rgba(10, 34, 22, 0.07),
    0 0 0 1px rgba(255, 255, 255, 0.88) inset;
}

/**
 * Десктоп (lg+): без горизонтального скролла у вкладок — сетка 4 колонки, перенос на 2+ ряда.
 */
@media (min-width: 992px) {
  .fc-match-tabs-shell.fc-tabs-shell {
    position: sticky;
    top: calc(0.55rem + env(safe-area-inset-top, 0px));
    z-index: 18;
  }

  .fc-match-page .fc-match-tabs-shell .fc-subnav.match-tabs {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem 0.45rem;
    overflow-x: visible !important;
    overflow-y: visible;
    flex-wrap: unset !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .fc-match-page .fc-match-tabs-shell .fc-subnav.match-tabs::-webkit-scrollbar {
    display: none;
    height: 0;
    width: 0;
  }

  .fc-match-page .fc-match-tabs-shell .fc-subnav.match-tabs .nav-item {
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  .fc-match-page .fc-match-tabs-shell .fc-subnav.match-tabs .nav-link {
    width: 100%;
    min-height: 2.55rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.06rem;
    white-space: normal;
    text-align: center;
    line-height: 1.18;
    padding: 0.3rem 0.42rem !important;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .fc-match-page .fc-match-tabs-shell .fc-subnav.match-tabs .nav-link .tab-label {
    white-space: normal;
    max-width: 100%;
  }
}

/* В теме у .tab-content скруглён только низ (стык с классическими табами). Здесь табы — отдельная «капсула», контент снизу — полный скруглённый блок. */
.fc-match-page #matchTabsContent.tab-content {
  border-radius: 16px;
  border-top: 1px solid var(--fc-border, #e8e8e8);
}

/**
 * Мобилка и планшет до lg: без горизонтального скролла и «красного» скроллбара —
 * сетка 2×N, кнопки на всю ширину ячейки.
 * С lg остаётся одна строка с прокруткой как у .fc-tabs-shell по умолчанию.
 */
@media (max-width: 991.98px) {
  body.fc-chat-mobile-lock {
    overflow: hidden;
    touch-action: none;
  }

  .fc-match-tabs-shell.fc-tabs-shell {
    padding: 0.32rem 0.32rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    position: sticky;
    top: calc(0.35rem + env(safe-area-inset-top, 0px));
    z-index: 20;
    backdrop-filter: saturate(1.05) blur(2px);
  }

  .fc-match-page .fc-fixture-tabs-shell.fc-tabs-shell {
    border-radius: 12px;
  }

  .fc-match-page #matchTabsContent.tab-content {
    border-radius: 12px;
  }

  .fc-match-tabs-shell .fc-subnav.match-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.28rem 0.32rem;
    overflow-x: visible;
    overflow-y: visible;
    flex-wrap: unset;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .fc-match-tabs-shell .fc-subnav.match-tabs::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .fc-match-tabs-shell .fc-subnav.match-tabs .nav-item {
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  /* Нечётное число вкладок: последняя на всю ширину, без «висящей» половины ряда */
  .fc-match-tabs-shell .fc-subnav.match-tabs .nav-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .fc-match-tabs-shell .fc-subnav.match-tabs .fc-mobile-chat-tab-item {
    grid-column: auto !important;
  }

  /* Вкладка «Чат» на мобилке — заметная обводка (остальные без изменений) */
  .fc-match-tabs-shell .fc-subnav.match-tabs .fc-mobile-chat-tab-btn.nav-link {
    position: relative;
    border: 2px solid rgba(22, 77, 50, 0.55) !important;
    background: rgba(22, 77, 50, 0.07);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    color: #164d32;
  }

  .fc-match-tabs-shell .fc-subnav.match-tabs .fc-mobile-chat-tab-btn.nav-link .tab-icon {
    color: #164d32;
  }

  .fc-match-tabs-shell .fc-subnav.match-tabs .fc-mobile-chat-tab-btn.nav-link .fc-mobile-chat-online-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 0.2rem;
    border-radius: 999px;
    font-size: 0.5625rem;
    font-weight: 700;
    line-height: 1.05rem;
    letter-spacing: -0.02em;
    text-align: center;
    background: rgba(22, 77, 50, 0.18);
    color: #164d32;
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
  }

  .fc-match-tabs-shell .fc-subnav.match-tabs .fc-mobile-chat-tab-btn.nav-link .fc-mobile-chat-online-badge.fc-mobile-chat-online-badge--active {
    background: #16a34a;
    color: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
  }

  .fc-match-tabs-shell .fc-subnav.match-tabs .fc-mobile-chat-tab-btn.nav-link:hover {
    background: rgba(22, 77, 50, 0.12);
    border-color: rgba(22, 77, 50, 0.78) !important;
    color: #0d3020;
  }

  body.fc-chat-mobile-lock .fc-match-tabs-shell .fc-subnav.match-tabs .fc-mobile-chat-tab-btn.nav-link {
    border-color: #164d32 !important;
    background: rgba(22, 77, 50, 0.16);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.45),
      0 2px 10px rgba(22, 77, 50, 0.2);
    color: #0d3020;
  }

  .fc-match-tabs-shell .fc-subnav.match-tabs .nav-link {
    width: 100%;
    min-height: 2.55rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.05rem;
    padding: 0.22rem 0.28rem !important;
    font-size: 0.6875rem;
    line-height: 1.15;
    white-space: normal;
    text-align: center;
    border-radius: 9px;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .fc-match-tabs-shell .fc-subnav.match-tabs .nav-link .tab-icon {
    font-size: 0.875rem;
    line-height: 1;
  }

  .fc-match-tabs-shell .fc-subnav.match-tabs .nav-link .tab-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .fc-match-tabs-shell .fc-subnav.match-tabs .nav-link .tab-badge {
    margin-top: 0.05rem;
    margin-left: 0 !important;
    font-size: 0.62rem;
    padding: 0.08rem 0.28rem;
  }

  .fc-match-page #matchTabsContent.tab-content > .tab-pane {
    padding-left: 0.1rem;
    padding-right: 0.1rem;
  }

  .fc-live-only-animate-in {
    animation: fcLiveOnlyFadeIn 320ms ease-out;
  }

.fc-live-sync-mode {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 193, 7, 0.16);
  color: #7a5a00;
  font-size: 0.72rem;
  line-height: 1.2;
  vertical-align: middle;
}

.fc-exp-cta-highlight {
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2) inset;
  border-color: rgba(220, 53, 69, 0.55) !important;
}

  @keyframes fcLiveOnlyFadeIn {
    from {
      opacity: 0;
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .fc-match-chat-col {
    display: none;
  }

  .fc-match-chat-col.fc-chat-mobile-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1090;
    width: 100vw;
    max-width: 100vw;
    padding: 0;
    margin: 0;
    background: rgba(10, 15, 22, 0.25);
  }

  .fc-match-chat-col.fc-chat-mobile-open .fc-fixture-chat-card {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
    border: 0;
    margin: 0;
    box-shadow: none;
  }

  .fc-match-chat-col.fc-chat-mobile-open .fc-fixture-chat-card .card-header {
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .fc-match-chat-col.fc-chat-mobile-open .fc-fixture-chat-card .card-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: calc(100dvh - 52px);
    padding: 0.62rem 0.68rem calc(0.68rem + env(safe-area-inset-bottom, 0px));
  }

  .fc-match-chat-col.fc-chat-mobile-open .fc-fixture-chat-messages {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
  }
}

@media (max-width: 767.98px) {
  .fc-match-tabs-shell.fc-tabs-shell {
    top: calc(0.2rem + env(safe-area-inset-top, 0px));
    margin-left: -0.05rem;
    margin-right: -0.05rem;
  }

  .fc-match-tabs-shell .fc-subnav.match-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.24rem 0.24rem;
  }

  .fc-match-tabs-shell .fc-subnav.match-tabs .nav-item:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .fc-match-tabs-shell .fc-subnav.match-tabs .fc-mobile-chat-tab-item {
    grid-column: auto !important;
  }

  .fc-match-tabs-shell .fc-subnav.match-tabs .nav-link {
    min-height: 2.42rem;
    padding: 0.2rem 0.22rem !important;
    font-size: 0.64rem;
  }

  .fc-match-tabs-shell .fc-subnav.match-tabs .nav-link .tab-icon {
    font-size: 0.82rem;
  }

  .fc-match-tabs-shell .fc-subnav.match-tabs .nav-link .tab-badge {
    font-size: 0.58rem;
    padding: 0.06rem 0.24rem;
  }
}

/* Очень узкие экраны: возвращаем 2 колонки табов для читаемости. */
@media (max-width: 389.98px) {
  .fc-match-tabs-shell .fc-subnav.match-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Низкий viewport (landscape): убираем sticky, чтобы не съедать высоту контента. */
@media (max-height: 520px) and (max-width: 991.98px) {
  .fc-match-tabs-shell.fc-tabs-shell {
    position: static;
    top: auto;
    backdrop-filter: none;
  }
}

/* ---------- Прематч: колонки хозяева / гости + мобилка ---------- */
.fc-prematch-team-col {
  min-width: 0;
}

.fc-prematch-team-card {
  border: 1px solid var(--fc-border, #e8e8e8);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: var(--fc-surface, #fff);
  height: 100%;
}

.fc-prematch-team--home .fc-prematch-team-card {
  border-top: 3px solid #c41e3a;
}

.fc-prematch-team--away .fc-prematch-team-card {
  border-top: 3px solid #334155;
}

.fc-prematch-team-head {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  line-height: 1.25;
}

.fc-prematch-team-head .fc-prematch-role {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fc-muted, #6c757d);
  margin-bottom: 0.2rem;
}

.fc-prematch-subsection {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.12);
}

.fc-prematch-subsection:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.fc-prematch-subsection h6 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--fc-muted, #6c757d);
  margin-bottom: 0.5rem;
}

.fc-prematch-form-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-bottom: 0.35rem;
}

.fc-prematch-standing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  text-align: center;
}

.fc-prematch-standing-grid .h3,
.fc-prematch-standing-grid .h4 {
  font-size: 1.35rem;
  margin-bottom: 0;
}

.fc-prematch-standing-grid .small {
  font-size: 0.68rem;
}

.fc-prematch-empty-hint {
  font-size: 0.8125rem;
  color: var(--fc-muted, #6c757d);
  margin: 0;
}

@media (max-width: 575.98px) {
  .fc-prematch-merged-card .card-body {
    padding: 0.75rem 0.65rem;
  }

  .fc-prematch-team-card {
    padding: 0.62rem 0.65rem;
    margin-bottom: 0.35rem;
  }

  .fc-prematch-team--away .fc-prematch-team-card {
    margin-bottom: 0;
  }

  .fc-prematch-pred-block .card-body {
    padding: 0.65rem 0.6rem !important;
  }

  .fc-prematch-pred-block .row.g-2 > [class*='col-'] {
    margin-bottom: 0.35rem;
  }

  .fc-prematch-standing-grid .h3,
  .fc-prematch-standing-grid .h4 {
    font-size: 1.15rem;
  }
}

/* ---------- Очные встречи (скелетон / карточка) ---------- */
.fc-h2h-mount {
  min-height: 8rem;
}

.fc-h2h-card--loading .fc-h2h-skel {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.06));
  background-size: 200% 100%;
  animation: fc-h2h-shine 1.2s ease-in-out infinite;
}

.fc-h2h-skel--w70 { width: 70%; }
.fc-h2h-skel--w40 { width: 40%; }
.fc-h2h-skel--pill {
  height: 32px;
  border-radius: 10px;
  margin-bottom: 0.35rem;
}

@keyframes fc-h2h-shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.fc-h2h-loading-hint,
.fc-h2h-error-hint {
  font-size: 0.85rem;
}

.fc-h2h-error-icon {
  font-size: 2rem;
  color: var(--fc-red, #c41e3a);
}

/* ---------- События матча ---------- */
.fc-events-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.fc-event-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem 0.85rem;
  align-items: flex-start;
}

.fc-event-axis {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 3rem;
}

.fc-event-time {
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--fc-muted, #5c5c5c);
}

.fc-event-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: #fff;
}

.fc-event-dot--goal { background: var(--fc-red, #c41e3a); }
.fc-event-dot--card-yellow { background: #f0ad4e; color: #1a1a1a; }
.fc-event-dot--card-red { background: #c41e3a; }
.fc-event-dot--sub { background: #6c757d; }
.fc-event-dot--var { background: #6f42c1; }
.fc-event-dot--misc { background: #495057; }

.fc-event-card {
  border-radius: var(--fc-radius, 10px);
  border: 1px solid var(--fc-border, #e8e8e8);
  background: var(--fc-surface, #fff);
  padding: 0.65rem 0.75rem;
  width: 100%;
}

.fc-event-team {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.fc-event-team--away {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.fc-event-team-logo {
  border-radius: 6px;
  background: var(--fc-surface, #fff);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ---------- Статистика матча (v2, без радара; цвета в зелёной гамме сайта) ---------- */
.fc-stats-v2 {
  /* Хозяева — насыщенный зелёный бренда; гости — приглушённый «шифер», без красного/ярко-синего */
  --fc-stats-v2-home: #1a6b45;
  --fc-stats-v2-away: #4a6670;
  border-radius: 14px;
  border: 1px solid var(--fc-border, #e8e8e8);
  background: var(--fc-surface, #fff);
  box-shadow: var(--fc-shadow, 0 1px 3px rgba(0, 0, 0, 0.06));
  overflow: hidden;
}

/* На странице матча во вкладке «Статистика» без внешней рамки: только сетка карточек */
.fc-match-page #stats.tab-pane > .fc-stats-v2 {
  border: none;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.fc-match-page #stats.tab-pane > .fc-stats-v2 .fc-stats-v2__bento {
  padding: 0.15rem 0.05rem 0.5rem;
}

.fc-match-page #stats.tab-pane .fc-stats-v2__card {
  border-radius: 16px;
}

.fc-match-page #stats.tab-pane > .card {
  border-radius: 16px;
}

.fc-stats-v2__bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 0.55rem;
  padding: 0.45rem 0.6rem 0.7rem;
}

.fc-stats-v2__card {
  border-radius: 14px;
  border: 1px solid rgba(22, 77, 50, 0.1);
  background: var(--fc-surface, #fff);
  padding: 0.65rem 0.7rem 0.55rem;
  box-shadow: 0 2px 12px rgba(10, 34, 22, 0.04);
}

.fc-stats-v2__card--extras {
  grid-column: 1 / -1;
  background: rgba(22, 77, 50, 0.03);
}

.fc-stats-v2__card-title {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #164d32;
  margin: 0 0 0.45rem;
}

.fc-stats-v2__card--extras .fc-stats-v2__card-title {
  color: #0f3d28;
}

.fc-stats-v2__extras-note {
  line-height: 1.35;
  max-width: 48rem;
}

.fc-stats-v2__rows {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

/* Одна строка метрики: значения + общая полоса «tug-of-war» */
.fc-stat-v2 {
  --fc-stat-v2-bar-h: 12px;
}

.fc-stat-v2--poss {
  padding-top: 0.08rem;
}

.fc-stat-v2--poss .fc-stat-v2__bar {
  height: 13px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
}

.fc-stat-v2__top {
  display: grid;
  grid-template-columns: minmax(2.2rem, auto) minmax(0, 1fr) minmax(2.2rem, auto);
  gap: 0.35rem 0.5rem;
  align-items: baseline;
  margin-bottom: 0.2rem;
}

.fc-stat-v2__h,
.fc-stat-v2__a {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  line-height: 1;
  color: var(--fc-text, #1a1a1a);
}

.fc-stat-v2__h {
  text-align: right;
  color: var(--fc-stats-v2-home);
}

.fc-stat-v2__a {
  text-align: left;
  color: var(--fc-stats-v2-away);
}

.fc-stat-v2__label {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--fc-muted, #5c5c5c);
  line-height: 1.2;
  min-width: 0;
}

.fc-stat-v2__bar {
  display: flex;
  width: 100%;
  height: var(--fc-stat-v2-bar-h);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.06);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.fc-stat-v2__seg {
  display: block;
  height: 100%;
  min-width: 0;
  transition: width 0.35s ease;
}

.fc-stat-v2__seg--home {
  background: linear-gradient(90deg, rgba(22, 101, 68, 0.22), var(--fc-stats-v2-home));
  border-radius: 999px 0 0 999px;
}

.fc-stat-v2__seg--away {
  background: linear-gradient(270deg, rgba(74, 102, 112, 0.2), var(--fc-stats-v2-away));
  border-radius: 0 999px 999px 0;
}

.fc-stat-v2--plain {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.22rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.76rem;
}

.fc-stat-v2--plain:last-child {
  border-bottom: none;
}

.fc-stat-v2__plain-label {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  color: var(--fc-muted, #5c5c5c);
}

.fc-stat-v2__plain-vals {
  flex-shrink: 0;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.fc-stat-v2__plain-sep {
  margin: 0 0.22rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.22);
}

@media (max-width: 767.98px) {
  .fc-stats-v2__bento {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .fc-stat-v2__top {
    grid-template-columns: minmax(1.85rem, auto) minmax(0, 1fr) minmax(1.85rem, auto);
    gap: 0.28rem 0.35rem;
  }

  .fc-stat-v2__h,
  .fc-stat-v2__a {
    font-size: 0.74rem;
  }

  .fc-stat-v2__label {
    font-size: 0.66rem;
  }

  .fc-stat-v2 {
    --fc-stat-v2-bar-h: 11px;
  }
}

/* ---------- Другие матчи лиги ---------- */
.fc-related-matches--section {
  margin-top: 1rem;
  padding-top: 0;
  border-top: 0;
  position: relative;
}

.fc-related-matches__panel {
  border-radius: 16px;
  border: 1px solid rgba(22, 77, 50, 0.12);
  background: var(--fc-surface, #fff);
  box-shadow:
    0 4px 24px rgba(10, 34, 22, 0.07),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  overflow: hidden;
}

.fc-related-matches__bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--fc-border, #e8e8e8);
  background: linear-gradient(180deg, rgba(22, 77, 50, 0.06) 0%, rgba(248, 250, 249, 0.95) 100%);
}

.fc-related-matches__title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
  color: #0a2216;
}

.fc-related-matches__subtitle {
  font-size: 0.8rem;
  color: var(--fc-muted, #5c5c5c);
  margin-top: 0.15rem;
}

.fc-related-row {
  display: grid;
  grid-template-columns: minmax(8.5rem, auto) minmax(0, 1fr) auto;
  gap: 0.6rem 0.75rem;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.fc-related-matches__item:last-child .fc-related-row {
  border-bottom: none;
}

.fc-related-row:hover {
  background: rgba(196, 30, 58, 0.04);
}

.fc-related-row__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.78rem;
  color: var(--fc-muted, #5c5c5c);
}

.fc-related-row__match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.4rem 0.75rem;
  align-items: center;
  min-width: 0;
}

.fc-related-row__team {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  font-weight: 600;
  font-size: 0.84rem;
}

.fc-related-row__team--away {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.fc-related-row__logo {
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--fc-surface, #fff);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.fc-related-row__score {
  text-align: center;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.fc-related-row__chev {
  color: var(--fc-muted, #5c5c5c);
  opacity: 0.6;
}

.fc-related-row__badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
}

.fc-related-row__badge--live {
  background: rgba(196, 30, 58, 0.12);
  color: var(--fc-red, #c41e3a);
}

.fc-related-row__badge--ft {
  background: rgba(44, 62, 80, 0.12);
  color: var(--fc-fix-away-dark, #1e2b36);
}

.fc-related-row__badge--ns {
  background: rgba(0, 0, 0, 0.06);
  color: var(--fc-muted, #5c5c5c);
}

@media (max-width: 575.98px) {
  .fc-related-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .fc-related-row__meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  .fc-related-row__chev {
    display: none;
  }
}

/* ---------- Очные встречи: карточка (фрагмент h2h-card) ---------- */
.fc-h2h-card__head {
  background: var(--fc-surface-2, #fafafa) !important;
}

.fc-h2h-record {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.fc-h2h-record__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.5rem 0.25rem;
  border-radius: 10px;
  background: var(--fc-surface-2, #fafafa);
  border: 1px solid var(--fc-border, #e8e8e8);
  min-width: 0;
}

.fc-h2h-record__num {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.fc-h2h-record__num--home { color: var(--fc-red, #c41e3a); }
.fc-h2h-record__num--draw { color: #6c757d; }
.fc-h2h-record__num--away { color: var(--fc-fix-away, #2c3e50); }

.fc-h2h-record__lbl {
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
}

.fc-h2h-record__team {
  font-weight: 700;
  display: inline-block;
  max-width: 100%;
}

.fc-h2h-record__meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  line-height: 1.25;
}

.fc-h2h-goals__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 0.35rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.fc-h2h-goals__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: lowercase;
  color: var(--fc-muted, #5c5c5c);
}

.fc-h2h-goals__bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.06);
}

.fc-h2h-goals__seg--home {
  background: linear-gradient(90deg, transparent, var(--fc-red, #c41e3a));
}

.fc-h2h-goals__seg--away {
  background: linear-gradient(270deg, transparent, var(--fc-fix-away, #2c3e50));
}

.fc-h2h-last--box {
  border: 1px solid var(--fc-border, #e8e8e8);
  background: rgba(253, 232, 236, 0.35);
}

.fc-h2h-form__chips {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.fc-h2h-form__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.fc-h2h-form__col {
  border: 1px solid var(--fc-border, #e8e8e8);
  border-radius: 10px;
  padding: 0.45rem 0.5rem;
  background: var(--fc-surface-2, #fafafa);
}

.fc-h2h-form__col--away {
  text-align: right;
}

.fc-h2h-form__col--away .fc-h2h-form__chips {
  justify-content: flex-end;
}

.fc-h2h-form__team {
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.28rem;
}

.fc-h2h-form__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  border: 1px solid transparent;
  font-variant-numeric: tabular-nums;
}

.fc-h2h-form__chip--w {
  color: #155724;
  border-color: rgba(40, 167, 69, 0.3);
  background: rgba(40, 167, 69, 0.16);
}

.fc-h2h-form__chip--d {
  color: #5c5c5c;
  border-color: rgba(108, 117, 125, 0.35);
  background: rgba(108, 117, 125, 0.12);
}

.fc-h2h-form__chip--l {
  color: #8a1f2d;
  border-color: rgba(196, 30, 58, 0.35);
  background: rgba(196, 30, 58, 0.13);
}

.fc-h2h-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.fc-h2h-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  border: 1px solid var(--fc-border, #e8e8e8);
  background: var(--fc-surface-2, #fafafa);
}

.fc-h2h-kpi__label {
  font-size: 0.7rem;
  color: var(--fc-muted, #5c5c5c);
}

.fc-h2h-kpi__value {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.fc-h2h-limits {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
}

.fc-h2h-limit {
  appearance: none;
  border: 1px solid var(--fc-border, #e8e8e8);
  background: var(--fc-surface, #fff);
  color: var(--fc-muted, #5c5c5c);
  border-radius: 999px;
  padding: 0.12rem 0.48rem;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.35;
}

.fc-h2h-limit.is-active {
  color: #fff;
  background: #164d32;
  border-color: #164d32;
}

.fc-h2h-row {
  display: grid;
  grid-template-columns: minmax(0, 10rem) minmax(0, 1fr) auto;
  gap: 0.35rem 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
  font-size: 0.82rem;
}

.fc-h2h-row:last-child {
  border-bottom: none;
}

.fc-h2h-row--hidden {
  display: none;
}

.fc-h2h-row__mid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.35rem 0.65rem;
  align-items: center;
  font-weight: 600;
}

.fc-h2h-row__sc {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
}

.fc-h2h-row__meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.72rem;
  color: var(--fc-muted, #5c5c5c);
}

.fc-h2h-row__res {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 575.98px) {
  .fc-h2h-row {
    grid-template-columns: 1fr;
  }
  .fc-h2h-row__meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .fc-h2h-row__res {
    justify-content: flex-start;
  }
  .fc-h2h-form__split {
    grid-template-columns: 1fr;
  }
  .fc-h2h-form__col--away {
    text-align: left;
  }
  .fc-h2h-form__col--away .fc-h2h-form__chips {
    justify-content: flex-start;
  }
  .fc-h2h-kpis {
    grid-template-columns: 1fr;
  }
}

/* ---------- Вкладка «Составы»: две колонки + списки игроков ---------- */
.fc-lineup-squads-wrap {
  margin-top: 0.5rem;
  scroll-margin-top: clamp(4rem, 14vw, 5.75rem);
}

.fc-lineup-squads-wrap__title {
  margin: 0 0 0.65rem;
  padding: 0 0.15rem;
  font-size: clamp(0.72rem, 2.4vw, 0.82rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(22, 77, 50, 0.72);
  line-height: 1.35;
}

.fc-lineup-columns {
  align-items: stretch;
}

/* Две колонки (хозяева | гости): на планшете/телефоне узкий столбец — уплотняем карточку и строку игрока */
@media (max-width: 991.98px) {
  .fc-lineup-columns .fc-lineup-squad {
    padding: 0.55rem 0.4rem 0.75rem;
  }

  .fc-lineup-columns .fc-lineup-squad__head {
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.45rem;
  }

  .fc-lineup-columns .fc-lineup-squad__logo {
    width: 28px;
    height: 28px;
  }

  .fc-lineup-columns .fc-lineup-squad__name {
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .fc-lineup-columns .fc-lineup-squad__formation {
    margin-left: 0;
    font-size: 0.58rem;
  }

  .fc-lineup-columns .fc-lineup-squad__count {
    font-size: 0.56rem;
    padding: 0.18rem 0.38rem;
    max-width: 100%;
    white-space: normal;
    text-align: right;
    line-height: 1.25;
  }

  .fc-lineup-columns .fc-lineup-block__title {
    font-size: 0.6rem;
    margin: 0.55rem 0 0.3rem;
    padding-top: 0.35rem;
  }

  .fc-lineup-columns .fc-lineup-player {
    grid-template-columns: 1.85rem 32px minmax(0, 1fr) auto;
    gap: 0.35rem 0.3rem;
    padding: 0.32rem 0;
  }

  .fc-lineup-columns .fc-lineup-player__num {
    font-size: 0.72rem;
  }

  .fc-lineup-columns .fc-lineup-player__photo,
  .fc-lineup-columns .fc-lineup-player__ph {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
  }

  .fc-lineup-columns .fc-lineup-player__ph {
    font-size: 0.82rem;
  }

  .fc-lineup-columns .fc-lineup-player__name {
    font-size: 0.76rem;
    line-height: 1.2;
  }

  .fc-lineup-columns .fc-lineup-player__meta {
    display: none;
  }

  .fc-lineup-columns .fc-lineup-player__badges {
    gap: 0.12rem;
  }

  .fc-lineup-columns .fc-lineup-player__pos {
    font-size: 0.54rem;
    padding: 0.06rem 0.26rem;
    border-radius: 4px;
  }

  .fc-lineup-columns .fc-lineup-player__cap {
    width: 1.12rem;
    height: 1.12rem;
    font-size: 0.52rem;
  }

  .fc-lineup-columns .fc-lineup-player--bench {
    grid-template-columns: 1.85rem 32px minmax(0, 1fr);
  }

  .fc-lineup-columns .fc-lineup-details-summary {
    min-height: 44px;
    padding: 0.45rem 0.55rem;
    font-size: clamp(0.72rem, 2.8vw, 0.8rem);
  }
}

/* Скамейка / замены: на узком экране — раскрывающиеся карточки */
.fc-lineup-details-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(22, 77, 50, 0.14);
  background: var(--fc-surface, #fff);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.fc-lineup-details-card--subs {
  border-color: rgba(196, 30, 58, 0.22);
}

.fc-lineup-details-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.55rem 0.75rem;
  margin: 0;
  list-style: none;
  cursor: pointer;
  font-size: clamp(0.78rem, 2.6vw, 0.84rem);
  font-weight: 800;
  color: #123524;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 249, 0.96));
  border-bottom: 1px solid rgba(22, 77, 50, 0.08);
}

.fc-lineup-details-card--subs .fc-lineup-details-summary {
  color: var(--fc-red-dark, #9e1830);
  background: rgba(253, 232, 236, 0.45);
  border-bottom-color: rgba(196, 30, 58, 0.18);
}

.fc-lineup-details-summary::-webkit-details-marker {
  display: none;
}

.fc-lineup-details-summary::marker {
  content: '';
}

.fc-lineup-details-summary:focus-visible {
  outline: 2px solid rgba(26, 107, 69, 0.45);
  outline-offset: 2px;
}

.fc-lineup-details-summary__label {
  min-width: 0;
  text-align: left;
  line-height: 1.3;
}

.fc-lineup-details-summary__meta {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(22, 77, 50, 0.1);
  color: #164d32;
}

.fc-lineup-details-card--subs .fc-lineup-details-summary__meta {
  background: rgba(196, 30, 58, 0.14);
  color: var(--fc-red-dark, #9e1830);
}

.fc-lineup-details-card__body {
  padding: 0.5rem 0.65rem 0.6rem;
  background: var(--fc-surface, #fff);
}

.fc-lineup-details-card--subs .fc-lineup-details-card__body {
  background: rgba(253, 232, 236, 0.22);
}

.fc-lineup-details-card__body--bench {
  padding-top: 0.35rem;
  padding-bottom: 0.45rem;
}

.fc-lineup-details-card__body .fc-lineup-subs__list {
  margin: 0;
}

.fc-lineup-details-card__body .fc-lineup-subs__item {
  font-size: clamp(0.78rem, 2.5vw, 0.86rem);
  padding: 0.35rem 0;
}

.fc-lineup-details-card__body .fc-lineup-player__name {
  font-size: clamp(0.82rem, 2.6vw, 0.92rem);
}

.fc-lineup-details-card__body .fc-lineup-player__meta {
  font-size: clamp(0.68rem, 2.2vw, 0.74rem);
}

@media (min-width: 768px) {
  .fc-lineup-details-card__body .fc-lineup-player__name {
    font-size: inherit;
  }

  .fc-lineup-details-card__body .fc-lineup-player__meta {
    font-size: inherit;
  }
}

.fc-lineup-banner {
  border-radius: var(--fc-radius, 12px);
}

.fc-lineup-squad {
  background: var(--fc-surface, #ffffff);
  border: 1px solid var(--fc-border, #e8e8e8);
  border-radius: var(--fc-radius, 12px);
  padding: 0.75rem 0.85rem 1rem;
  box-shadow: var(--fc-shadow, 0 1px 3px rgba(0, 0, 0, 0.06));
  height: 100%;
}

.fc-lineup-squad__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--fc-border, #e8e8e8);
}

.fc-lineup-squad__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.fc-lineup-squad__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--fc-surface, #fff);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.fc-lineup-squad__name {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.25;
  color: var(--fc-text, #1a1a1a);
}

.fc-lineup-squad__formation {
  margin-left: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  vertical-align: middle;
}

.fc-lineup-squad__count {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(196, 30, 58, 0.1) !important;
  color: var(--fc-red-dark, #9e1830) !important;
}

.fc-lineup-block__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fc-muted, #5c5c5c);
  margin: 0.85rem 0 0.45rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.fc-lineup-block:first-of-type .fc-lineup-block__title {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.fc-lineup-block__n {
  font-weight: 800;
  opacity: 0.65;
}

/* Строка игрока: номер | фото | ФИО | бейджи — одна линия */
.fc-lineup-player {
  display: grid;
  grid-template-columns: 2.5rem 44px minmax(0, 1fr) auto;
  gap: 0.5rem 0.65rem;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.fc-lineup-player:last-child {
  border-bottom: none;
}

.fc-lineup-player__num {
  font-weight: 800;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
  line-height: 1.1;
}

.fc-lineup-player__num--home {
  color: var(--fc-red, #c41e3a);
}

.fc-lineup-player__num--away {
  color: var(--fc-fix-away, #2c3e50);
}

.fc-lineup-player__photo {
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.fc-lineup-player__ph {
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fc-muted, #5c5c5c);
  font-size: 1rem;
  flex-shrink: 0;
}

.fc-lineup-player__info {
  min-width: 0;
}

.fc-lineup-player__name {
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.25;
  word-break: break-word;
}

.fc-lineup-player__meta {
  font-size: 0.72rem;
  color: var(--fc-muted, #5c5c5c);
  margin-top: 0.1rem;
}

.fc-lineup-player__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
  align-items: center;
  margin-top: 0.2rem;
}

.fc-lineup-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1rem;
  height: 0.85rem;
  padding: 0 0.2rem;
  border-radius: 2px;
  font-size: 0.58rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transform: rotate(-10deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.fc-lineup-card--y {
  background: linear-gradient(180deg, #ffe566, #f5c400);
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.fc-lineup-card--r {
  background: linear-gradient(180deg, #ff5a4d, #c41e3a);
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.fc-lineup-player__badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}

.fc-lineup-player__cap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  font-size: 0.62rem;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.07);
}

.fc-lineup-player__pos {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.06);
}

.fc-lineup-player__pos--gk { color: #0d6efd; }
.fc-lineup-player__pos--df { color: #198754; }
.fc-lineup-player__pos--mf { color: #fd7e14; }
.fc-lineup-player__pos--fw { color: var(--fc-red, #c41e3a); }

.fc-lineup-player--bench {
  grid-template-columns: 2.5rem 44px minmax(0, 1fr);
}

.fc-lineup-player--bench .fc-lineup-player__badges {
  display: none;
}

@media (max-width: 575.98px) {
  .fc-lineup-squads-wrap__title {
    padding-left: 0.05rem;
    padding-right: 0.05rem;
  }

  /* Ещё плотнее на очень узком экране при двух колонках */
  .fc-lineup-columns .fc-lineup-squad {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .fc-lineup-columns .fc-lineup-player {
    grid-template-columns: 1.65rem 30px minmax(0, 1fr) auto;
    gap: 0.28rem 0.25rem;
  }

  .fc-lineup-columns .fc-lineup-player__name {
    font-size: clamp(0.72rem, 2.9vw, 0.82rem);
  }

  .fc-lineup-columns .fc-lineup-player__photo,
  .fc-lineup-columns .fc-lineup-player__ph {
    width: 30px;
    height: 30px;
    max-width: 30px;
    max-height: 30px;
  }

  .fc-lineup-columns .fc-lineup-player--bench {
    grid-template-columns: 1.65rem 30px minmax(0, 1fr);
  }
}

/* Десктоп: общая полоса замен над колонками составов — колонки одной высоты, заголовки команд ниже совпадают */
.fc-lineup-desktop-subs-strip__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fc-red-dark, #9e1830);
}

.fc-lineup-desktop-subs-strip__head-ic {
  opacity: 0.72;
}

.fc-lineup-desktop-subs-panel {
  border: 1px solid rgba(196, 30, 58, 0.22);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 253, 253, 0.96), rgba(253, 236, 239, 0.35));
  padding: 0.6rem 0.72rem 0.72rem;
}

.fc-lineup-desktop-subs-panel__team {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  min-width: 0;
}

.fc-lineup-desktop-subs-panel__logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 7px;
  background: var(--fc-surface, #fff);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.fc-lineup-desktop-subs-panel__name {
  font-weight: 800;
  font-size: 0.84rem;
  line-height: 1.22;
  color: var(--fc-text, #1a1a1a);
  min-width: 0;
}

.fc-lineup-desktop-subs-panel .fc-lineup-desktop-subs-panel__n {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.15rem 0.42rem;
  background: rgba(196, 30, 58, 0.12);
  color: var(--fc-red-dark, #9e1830);
}

.fc-lineup-desktop-subs-empty {
  padding-top: 0.25rem;
}

.fc-lineup-subs.fc-lineup-subs--strip.fc-lineup-subs--desktop-strip {
  padding: 0.45rem 0.55rem;
  border-radius: 9px;
  border: 1px dashed rgba(196, 30, 58, 0.28);
  background: rgba(255, 255, 255, 0.82);
}

.fc-lineup-subs.fc-lineup-subs--strip .fc-lineup-subs__item {
  font-size: 0.78rem;
}

@media (min-width: 992px) {
  .fc-lineup-subs.fc-lineup-subs--strip .fc-lineup-subs__item {
    font-size: 0.82rem;
  }
}

/* Замены по ходу матча */
.fc-lineup-subs {
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px dashed rgba(196, 30, 58, 0.35);
  background: rgba(253, 232, 236, 0.35);
}

.fc-lineup-subs__title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  color: var(--fc-red-dark, #9e1830);
}

.fc-lineup-subs__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.35rem;
  font-size: 0.8rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.fc-lineup-subs__item:last-child {
  border-bottom: none;
}

.fc-lineup-subs__min {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--fc-muted, #5c5c5c);
  min-width: 2.5rem;
}

/* Десктоп (lg+): плотнее панель полных составов и полоса замен */
@media (min-width: 992px) {
  .fc-lineup-squads-wrap {
    margin-top: 0.35rem;
  }

  .fc-lineup-squads-wrap__title {
    margin-bottom: 0.45rem;
    font-size: 0.78rem;
  }

  .fc-lineup-desktop-subs-strip {
    margin-bottom: 0.75rem !important;
  }

  .fc-lineup-desktop-subs-strip__head {
    margin-bottom: 0.5rem;
    font-size: 0.68rem;
  }

  .fc-lineup-desktop-subs-panel {
    padding: 0.5rem 0.6rem 0.6rem;
  }

  .fc-lineup-desktop-subs-panel__name {
    font-size: 0.8rem;
  }

  .fc-lineup-subs.fc-lineup-subs--strip.fc-lineup-subs--desktop-strip {
    padding: 0.35rem 0.45rem;
    margin-top: 0.4rem;
  }

  .fc-lineup-subs.fc-lineup-subs--strip .fc-lineup-subs__item {
    font-size: 0.76rem;
    padding: 0.12rem 0;
  }

  .fc-lineup-squad {
    padding: 0.5rem 0.6rem 0.7rem;
  }

  .fc-lineup-squad__head {
    margin-bottom: 0.5rem;
    padding-bottom: 0.45rem;
    gap: 0.45rem;
  }

  .fc-lineup-squad__logo {
    width: 32px;
    height: 32px;
  }

  .fc-lineup-squad__name {
    font-size: 0.88rem;
  }

  .fc-lineup-squad__formation {
    font-size: 0.58rem;
  }

  .fc-lineup-squad__count {
    font-size: 0.58rem;
    padding: 0.14rem 0.38rem;
  }

  .fc-lineup-block__title {
    margin: 0.5rem 0 0.28rem;
    padding-top: 0.35rem;
    font-size: 0.65rem;
  }

  .fc-lineup-player {
    grid-template-columns: 2.3rem 38px minmax(0, 1fr) auto;
    gap: 0.35rem 0.45rem;
    padding: 0.28rem 0;
  }

  .fc-lineup-player__num {
    font-size: 0.78rem;
  }

  .fc-lineup-player__photo,
  .fc-lineup-player__ph {
    width: 38px;
    height: 38px;
    max-width: 38px;
    max-height: 38px;
  }

  .fc-lineup-player__ph {
    font-size: 0.92rem;
  }

  .fc-lineup-player__name {
    font-size: 0.8rem;
    line-height: 1.22;
  }

  .fc-lineup-player__meta {
    font-size: 0.66rem;
    margin-top: 0.05rem;
  }

  .fc-lineup-player__badges {
    gap: 0.18rem;
  }

  .fc-lineup-player__pos {
    font-size: 0.58rem;
    padding: 0.08rem 0.3rem;
  }

  .fc-lineup-player__cap {
    width: 1.22rem;
    height: 1.22rem;
    font-size: 0.58rem;
  }

  .fc-lineup-player--bench {
    grid-template-columns: 2.3rem 38px minmax(0, 1fr);
  }

  .fc-lineup-subs:not(.fc-lineup-subs--strip) {
    padding: 0.45rem 0.55rem;
  }

  .fc-lineup-subs:not(.fc-lineup-subs--strip) .fc-lineup-subs__item {
    font-size: 0.76rem;
    padding: 0.14rem 0;
  }

  /* Вид «11 на поле»: список в карточке поля */
  .fc-tactical-pitch__listHead {
    margin-bottom: 0.35rem !important;
    font-size: 0.72rem !important;
  }

  .fc-tactical-pitch__listLi {
    padding: 0.24rem 0.4rem;
    font-size: 0.7rem;
    gap: 0.28rem;
  }

  .fc-tactical-pitch__listPos {
    font-size: 0.6rem;
  }

  .fc-pitch-view-toggle__btn {
    padding: 0.34rem 0.88rem;
    font-size: 0.76rem;
  }
}

/* Тактическое поле */
.fc-tactical-pitch .card-body,
.fc-tactical-pitch .fc-tactical-pitch__body {
  background: var(--fc-surface-2, #fafafa);
}

.fc-tactical-pitch__schemes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(22, 77, 50, 0.12);
}

.fc-tactical-pitch__scheme-group {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  max-width: min(48%, 100%);
  font-size: 0.74rem;
  font-weight: 700;
  color: #0f3d28;
}

.fc-tactical-pitch__scheme-group--away {
  margin-left: auto;
  flex-direction: row-reverse;
  text-align: right;
}

.fc-tactical-pitch__scheme-team {
  min-width: 0;
  font-weight: 800;
  color: #164d32;
  letter-spacing: -0.02em;
}

.fc-tactical-pitch__scheme-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  border: 1px solid rgba(22, 77, 50, 0.18);
}

.fc-tactical-pitch__scheme-badge--home {
  background: rgba(26, 107, 69, 0.14);
  color: #0f3d28;
}

.fc-tactical-pitch__scheme-badge--away {
  background: rgba(74, 102, 112, 0.16);
  color: #1a2e24;
}

/* Переключатель «Поле / 11 на поле»: сегмент в стиле бейджей схемы */
.fc-pitch-view-toggle {
  display: inline-flex;
  align-items: stretch;
  flex-wrap: nowrap;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 245, 0.92));
  border: 1px solid rgba(22, 77, 50, 0.14);
  box-shadow:
    0 1px 3px rgba(22, 77, 50, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.fc-pitch-view-toggle__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.4rem 0.92rem;
  margin: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(22, 77, 50, 0.52);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

.fc-pitch-view-toggle__btn:hover {
  color: rgba(15, 61, 40, 0.92);
  background: rgba(22, 77, 50, 0.07);
}

.fc-pitch-view-toggle__btn:active {
  transform: scale(0.98);
}

.fc-pitch-view-toggle__btn.active,
.fc-pitch-view-toggle__btn[aria-pressed='true'] {
  background: linear-gradient(180deg, #ffffff 0%, #f4faf6 100%);
  color: #0f3d28;
  box-shadow:
    0 2px 6px rgba(22, 77, 50, 0.11),
    0 0 0 1px rgba(22, 77, 50, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.fc-pitch-view-toggle__btn:focus-visible {
  outline: 2px solid rgba(26, 107, 69, 0.42);
  outline-offset: 2px;
}

.fc-pitch-view-toggle__ic {
  font-size: 0.72rem;
  opacity: 0.88;
  flex-shrink: 0;
}

.fc-pitch-view-toggle__btn.active .fc-pitch-view-toggle__ic,
.fc-pitch-view-toggle__btn[aria-pressed='true'] .fc-pitch-view-toggle__ic {
  opacity: 1;
  color: rgba(26, 107, 69, 0.95);
}

@media (max-width: 575.98px) {
  .fc-pitch-view-toggle__btn {
    padding: 0.34rem 0.72rem;
    font-size: 0.74rem;
    gap: 0.32rem;
  }

  .fc-pitch-view-toggle__ic {
    font-size: 0.68rem;
  }
}

.fc-tactical-pitch__legend-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  font-size: 0.66rem;
  line-height: 1.35;
  color: rgba(15, 61, 40, 0.82);
}

.fc-tactical-pitch__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  max-width: 100%;
}

.fc-tactical-pitch__legend-ic {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fc-tactical-pitch__legend-ic--goal {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0%, #f3f3f3 42%, #d4af37 100%);
  color: #1a2410;
  font-size: 0.52rem;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.fc-tactical-pitch__legend-ic--card-y {
  width: 0.72rem;
  height: 0.78rem;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffe566, #f5c400);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.fc-tactical-pitch__legend-ic--card-r {
  width: 0.72rem;
  height: 0.78rem;
  border-radius: 2px;
  background: linear-gradient(180deg, #ff5a4d, #c41e3a);
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.fc-tactical-pitch__legend-ic--sub {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ebb517, #c4920c);
  color: #1a1a1a;
  font-size: 0.55rem;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.fc-tactical-pitch__legend-ic--ring {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(235, 181, 23, 0.85);
  background: rgba(255, 255, 255, 0.35);
}

.fc-tactical-pitch__legend-ic--cap {
  width: 0.88rem;
  height: 0.88rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #1a5f2a, #0f3d22);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.fc-tactical-pitch__legend-txt {
  min-width: 0;
}

.fc-tactical-pitch--view-list .fc-tactical-pitch__fieldWrap {
  display: none !important;
}

.fc-tactical-pitch--view-list .fc-tactical-pitch__listView {
  display: block !important;
}

.fc-tactical-pitch__listOl {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(22, 77, 50, 0.12);
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--fc-surface, #fff);
}

.fc-tactical-pitch__listLi {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr) 2.5rem;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.5rem;
  font-size: 0.72rem;
  border-bottom: 1px solid rgba(22, 77, 50, 0.08);
}

.fc-tactical-pitch__listLi:last-child {
  border-bottom: none;
}

.fc-tactical-pitch__listNum {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: rgba(15, 61, 40, 0.75);
}

.fc-tactical-pitch__listName {
  font-weight: 700;
  color: #123524;
}

.fc-tactical-pitch__listPos {
  text-align: right;
  font-weight: 700;
  font-size: 0.65rem;
  color: rgba(15, 61, 40, 0.55);
}

.tooltip.fc-tactical-mark-tooltip .tooltip-inner {
  text-align: left;
  max-width: min(300px, 92vw);
  font-size: 0.78rem;
  line-height: 1.45;
}

/* До md: две строки схем без space-between у гостей (планшет в портрете тоже). */
@media (max-width: 991.98px) {
  .fc-tactical-pitch__schemes {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.4rem;
  }

  .fc-tactical-pitch__scheme-group,
  .fc-tactical-pitch__scheme-group--away {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    column-gap: 0.45rem;
    row-gap: 0;
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    flex-direction: row;
    text-align: left;
  }

  .fc-tactical-pitch__scheme-group--away {
    justify-content: unset;
  }

  .fc-tactical-pitch__scheme-badge {
    justify-self: start;
    width: max-content;
  }
}

.fc-tactical-pitch__field {
  position: relative;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 68 / 105;
  min-height: 200px;
  max-height: min(68vh, 500px);
  margin-inline: auto;
  border-radius: 12px;
  background:
    radial-gradient(ellipse 120% 85% at 50% 18%, rgba(255, 255, 255, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 100% 70% at 50% 100%, rgba(0, 0, 0, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, #42c77f 0%, #2ea862 18%, #248f54 45%, #1b6e44 70%, #0f4a2e 100%);
  border: 2px solid rgba(255, 255, 255, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -22px 40px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(0, 0, 0, 0.08),
    0 4px 18px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.fc-tactical-pitch__field::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 11%,
    rgba(255, 255, 255, 0.035) 11%,
    rgba(255, 255, 255, 0.035) 11.6%
  );
  pointer-events: none;
}

/* Разметка поля: cover = ровный масштаб, весь прямоугольник залит линиями (круг не «сплющивается» по одной оси) */
.fc-tactical-pitch__markings {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-color: transparent;
  background-image: url('/images/fc-pitch-markings.svg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.95;
}

.fc-tactical-mark {
  position: absolute;
  left: var(--fc-l, 50%);
  top: var(--fc-t, 50%);
  width: 0;
  height: 0;
  overflow: visible;
  text-decoration: none !important;
  color: inherit;
  z-index: 2;
}

.fc-tactical-mark__hug {
  position: absolute;
  left: 0;
  top: 0;
  /* Центр орбиты = точка на поле (подпись внутри круга) */
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.04rem, 0.65cqw, 0.1rem);
  max-width: none;
}

.fc-tactical-mark__cluster {
  position: relative;
  --fc-orbit-size: clamp(34px, 12.5cqw, 56px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: var(--fc-orbit-size);
  gap: 0;
}

/* Десктоп: поле шире по контейнеру — cqw раздувает круги сильнее мобилки; чуть ужимаем верхнюю границу. */
@media (min-width: 576px) {
  .fc-tactical-mark__cluster {
    --fc-orbit-size: clamp(32px, 11cqw, 50px);
  }
}

.fc-tactical-mark__orbitWrap {
  position: relative;
  z-index: 4;
  flex-shrink: 0;
  width: var(--fc-orbit-size);
  height: var(--fc-orbit-size);
  transform-origin: 50% 50%;
  transition: transform 0.15s ease;
  overflow: visible;
}

.fc-tactical-mark__bubble {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 96%;
  height: 96%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.98);
  border: 2px solid rgba(22, 77, 50, 0.22);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

/* Подпись по дуге снаружи круга (SVG — сосед .fc-tactical-mark__bubble внутри .fc-tactical-mark__orbitWrap) */
.fc-tactical-mark__ringSvg {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  overflow: visible;
}

/* Обводка замены / удаления / бейдж жёлтой карточки — чуть ниже дуга, чтобы не наезжала на кольцо */
.fc-tactical-mark--sub-on .fc-tactical-mark__ringSvg,
.fc-tactical-mark--sent-off .fc-tactical-mark__ringSvg,
.fc-tactical-mark--mark-card-y .fc-tactical-mark__ringSvg {
  transform: translate(-50%, calc(-50% + clamp(2.5px, 0.42cqw, 5px)));
}

.fc-tactical-mark__ringTxt {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  /* Единицы viewBox 0–100: масштабируются вместе с орбитой; дуга только снизу — сверху бейджи */
  font-size: 5.92;
  font-weight: 800;
  letter-spacing: 0.02em;
  dominant-baseline: middle;
}

.fc-tactical-mark__ringTxtPath--face {
  fill: #fff;
  stroke: none;
}

.fc-tactical-mark__bubble--no-photo {
  display: block;
}

.fc-tactical-mark__bubble--no-photo .fc-tactical-mark__num {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.fc-tactical-mark__photoDisc {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
}

.fc-tactical-mark__capOrbit {
  position: absolute;
  right: clamp(1px, 0.35cqw, 5px);
  bottom: clamp(1px, 0.35cqw, 5px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(0.52rem, 2.35cqw, 0.68rem);
  height: clamp(0.52rem, 2.35cqw, 0.68rem);
  border-radius: 50%;
  background: linear-gradient(145deg, #1a5f2a, #0f3d22);
  color: #fff;
  font-size: clamp(0.28rem, 1.2cqw, 0.38rem);
  font-weight: 900;
  line-height: 1;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.fc-tactical-mark__capOrbit--no-photo {
  right: auto;
  left: clamp(1px, 0.35cqw, 5px);
  bottom: auto;
  top: clamp(1px, 0.35cqw, 5px);
}

.fc-tactical-mark--home .fc-tactical-mark__bubble {
  border-color: rgba(26, 107, 69, 0.55);
}

.fc-tactical-mark--away .fc-tactical-mark__bubble {
  border-color: rgba(74, 102, 112, 0.65);
}

.fc-tactical-mark--sub-on .fc-tactical-mark__bubble {
  box-shadow:
    0 0 0 2px rgba(235, 181, 23, 0.95),
    0 2px 10px rgba(0, 0, 0, 0.22);
}

.fc-tactical-mark__strapline {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  gap: clamp(0.08rem, 0.55cqw, 0.16rem);
  margin: 0;
  padding: clamp(0.03rem, 0.28cqw, 0.07rem) clamp(0.1rem, 0.85cqw, 0.22rem) clamp(0.05rem, 0.42cqw, 0.1rem);
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0 0 clamp(10px, 2.8cqw, 16px) clamp(10px, 2.8cqw, 16px);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0.12) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.fc-tactical-mark__strapline--no-num {
  gap: 0;
  justify-content: center;
  padding-inline: clamp(0.14rem, 1.1cqw, 0.28rem);
}

.fc-tactical-mark__strapNum {
  flex-shrink: 0;
  font-size: clamp(0.48rem, 2.05cqw, 0.64rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.72);
}

.fc-tactical-mark__strapName {
  flex: 1;
  min-width: 0;
  font-size: clamp(0.4rem, 1.72cqw, 0.54rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.fc-tactical-mark__strapline--no-num .fc-tactical-mark__strapName {
  text-align: center;
}

.fc-tactical-mark__goal--orbit {
  position: absolute;
  top: clamp(1px, 0.35cqw, 5px);
  left: clamp(1px, 0.35cqw, 5px);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(0.66rem, 3cqw, 0.88rem);
  height: clamp(0.66rem, 3cqw, 0.88rem);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0%, #f3f3f3 42%, #d4af37 100%);
  color: #1a2410;
  font-size: clamp(0.34rem, 1.55cqw, 0.46rem);
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.fc-tactical-mark__goal__badge {
  position: absolute;
  top: clamp(-3px, -0.35cqw, -1px);
  right: clamp(-4px, -0.45cqw, -2px);
  min-width: clamp(0.52rem, 2.2cqw, 0.66rem);
  height: clamp(0.52rem, 2.2cqw, 0.66rem);
  padding: 0 0.12em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #1a5f2a;
  color: #fff;
  font-size: clamp(0.28rem, 1.25cqw, 0.38rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* Гол остаётся слева сверху; жёлтая — на левом боку круга, чтобы не наезжала на мяч */
.fc-tactical-mark__goal--orbit ~ .fc-tactical-mark__card--y.fc-tactical-mark__card--orbit {
  top: 50%;
  left: clamp(-5px, -1.15cqw, -0.18rem);
  right: auto;
  transform: translate(0, -50%) rotate(-10deg);
}

.fc-tactical-mark__goal--orbit ~ .fc-tactical-mark__card--y.fc-tactical-mark__card--orbit + .fc-tactical-mark__card--r.fc-tactical-mark__card--orbit {
  top: calc(50% + clamp(0.32rem, 1.5cqw, 0.44rem));
  left: clamp(-5px, -1.15cqw, -0.18rem);
  right: auto;
  transform: translate(0, -50%) rotate(-6deg);
}

.fc-tactical-mark__goal--orbit ~ .fc-tactical-mark__card--r.fc-tactical-mark__card--orbit {
  top: clamp(0.48rem, 2.25cqw, 0.64rem);
}

.fc-tactical-mark__sub--orbit {
  position: absolute;
  top: clamp(1px, 0.35cqw, 5px);
  right: clamp(1px, 0.35cqw, 5px);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(0.72rem, 3.25cqw, 0.94rem);
  height: clamp(0.72rem, 3.25cqw, 0.94rem);
  border-radius: 50%;
  background: linear-gradient(135deg, #ebb517, #c4920c);
  color: #1a1a1a;
  font-size: clamp(0.4rem, 1.85cqw, 0.54rem);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.42);
  pointer-events: none;
}

.fc-tactical-mark__card--orbit {
  position: absolute;
  top: clamp(1px, 0.35cqw, 5px);
  left: clamp(1px, 0.35cqw, 5px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(0.56rem, 2.65cqw, 0.72rem);
  height: clamp(0.6rem, 2.85cqw, 0.76rem);
  padding: 0 clamp(0.05rem, 0.85cqw, 0.1rem);
  border-radius: 3px;
  font-size: clamp(0.38rem, 1.72cqw, 0.5rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.38);
  transform: rotate(-11deg);
  pointer-events: none;
}

/* Вторая карточка (красная) под жёлтой, если обе есть */
.fc-tactical-mark__card--y.fc-tactical-mark__card--orbit + .fc-tactical-mark__card--r.fc-tactical-mark__card--orbit {
  top: clamp(0.62rem, 2.85cqw, 0.78rem);
  left: clamp(1px, 0.35cqw, 5px);
  transform: rotate(-5deg);
}

.fc-tactical-mark__card--y {
  background: linear-gradient(180deg, #ffe566, #f5c400);
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.fc-tactical-mark__card--r {
  background: linear-gradient(180deg, #ff5a4d, #c41e3a);
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.fc-tactical-mark--sent-off .fc-tactical-mark__bubble {
  filter: grayscale(0.9);
  opacity: 0.82;
  box-shadow:
    0 0 0 2px rgba(196, 30, 58, 0.92),
    0 2px 10px rgba(0, 0, 0, 0.22);
}

.fc-tactical-mark--sent-off .fc-tactical-mark__strapName,
.fc-tactical-mark--sent-off .fc-tactical-mark__ringTxt,
.fc-tactical-mark--sent-off .fc-tactical-mark__ringTxtPath--face {
  text-decoration: line-through;
  text-decoration-thickness: 0.12px;
  opacity: 0.82;
}

.fc-tactical-mark__img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  display: block;
}

.fc-tactical-mark__num {
  font-size: clamp(0.62rem, 3cqw, 0.82rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--fc-text, #1a1a1a);
}

.fc-tactical-mark:hover .fc-tactical-mark__orbitWrap {
  transform: scale(1.06);
}

@media (max-width: 575.98px) {
  .fc-match-page .fc-match-tabs-shell.fc-tabs-shell {
    padding-top: 0.32rem;
    padding-bottom: 0.32rem;
    padding-left: 0.22rem;
    padding-right: 0.22rem;
  }

  .fc-tactical-pitch.card {
    border-radius: 0;
    margin-bottom: 0.65rem;
  }

  .fc-tactical-pitch__field {
    aspect-ratio: 62 / 108;
    min-height: 180px;
    max-height: min(58vh, 460px);
    border-radius: 0;
  }

  /* Вертикальная разметка и ворота сверху/низу (Flashscore) */
  .fc-tactical-pitch__field::before {
    background: repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 11%,
      rgba(255, 255, 255, 0.04) 11%,
      rgba(255, 255, 255, 0.04) 11.6%
    );
  }

  .fc-tactical-pitch__markings {
    background-image: url('/images/fc-pitch-markings-vertical.svg');
    background-size: cover;
    opacity: 0.95;
  }

  .fc-tactical-mark__hug {
    max-width: none;
    transform: translate(-50%, -50%);
  }

  .fc-tactical-mark__cluster {
    --fc-orbit-size: clamp(30px, 13.5vw, 46px);
  }

  .fc-tactical-mark__strapline {
    gap: clamp(0.06rem, 0.65vw, 0.14rem);
    padding: clamp(0.02rem, 0.28vw, 0.06rem) clamp(0.08rem, 0.8vw, 0.18rem) clamp(0.04rem, 0.38vw, 0.08rem);
  }

  .fc-tactical-mark__strapNum {
    font-size: clamp(0.48rem, 2.1vw, 0.62rem);
  }

  .fc-tactical-mark__strapName {
    font-size: clamp(0.4rem, 1.75vw, 0.54rem);
  }

  .fc-tactical-mark__ringTxt {
    font-size: 5.68;
  }

  .fc-tactical-mark__ringSvg {
    transform: translate(-50%, calc(-50% + clamp(3px, 0.48vw, 6px)));
  }

  .fc-tactical-mark--sub-on .fc-tactical-mark__ringSvg,
  .fc-tactical-mark--sent-off .fc-tactical-mark__ringSvg,
  .fc-tactical-mark--mark-card-y .fc-tactical-mark__ringSvg {
    transform: translate(-50%, calc(-50% + clamp(5px, 0.68vw, 9px)));
  }

  .fc-tactical-mark {
    left: var(--fc-fl, var(--fc-l, 50%));
    top: var(--fc-ft, var(--fc-t, 50%));
  }

  .fc-tactical-mark__bubble {
    border-width: 1.5px;
  }

  .fc-tactical-mark__goal--orbit {
    width: clamp(0.64rem, 3vw, 0.86rem);
    height: clamp(0.64rem, 3vw, 0.86rem);
    font-size: clamp(0.32rem, 1.45vw, 0.44rem);
  }

  .fc-tactical-mark__goal__badge {
    min-width: clamp(0.48rem, 2.05vw, 0.6rem);
    height: clamp(0.48rem, 2.05vw, 0.6rem);
    font-size: clamp(0.26rem, 1.15vw, 0.34rem);
  }

  .fc-tactical-mark__goal--orbit ~ .fc-tactical-mark__card--y.fc-tactical-mark__card--orbit {
    top: 50%;
    left: clamp(-4px, -1.05vw, -0.14rem);
    right: auto;
    transform: translate(0, -50%) rotate(-10deg);
  }

  .fc-tactical-mark__goal--orbit ~ .fc-tactical-mark__card--y.fc-tactical-mark__card--orbit + .fc-tactical-mark__card--r.fc-tactical-mark__card--orbit {
    top: calc(50% + clamp(0.3rem, 1.45vw, 0.4rem));
    left: clamp(-4px, -1.05vw, -0.14rem);
    right: auto;
    transform: translate(0, -50%) rotate(-6deg);
  }

  .fc-tactical-mark__goal--orbit ~ .fc-tactical-mark__card--r.fc-tactical-mark__card--orbit {
    top: clamp(0.46rem, 2.15vw, 0.6rem);
  }

  .fc-tactical-mark__sub--orbit {
    width: clamp(0.7rem, 3.25vw, 0.92rem);
    height: clamp(0.7rem, 3.25vw, 0.92rem);
    font-size: clamp(0.36rem, 1.6vw, 0.48rem);
  }

  .fc-tactical-mark__card--orbit {
    min-width: clamp(0.54rem, 2.55vw, 0.72rem);
    height: clamp(0.58rem, 2.75vw, 0.76rem);
    font-size: clamp(0.38rem, 1.65vw, 0.5rem);
  }

  .fc-tactical-mark__card--y.fc-tactical-mark__card--orbit + .fc-tactical-mark__card--r.fc-tactical-mark__card--orbit {
    top: clamp(0.62rem, 2.85vw, 0.78rem);
  }

  .fc-tactical-mark__num {
    font-size: clamp(0.56rem, 2.95vw, 0.76rem);
  }

  .fc-tactical-mark:hover .fc-tactical-mark__orbitWrap {
    transform: none;
  }
}

/*
 * До этого flash (--fc-fl / --fc-ft) включался только при ≤576px; в альбоме телефон часто 667–926px —
 * брались десктопные %, и вся логика PHP по left_flash/top_flash не отображалась.
 */
@media (max-width: 1023.98px) {
  .fc-match-page .fc-tactical-mark {
    left: var(--fc-fl, var(--fc-l, 50%));
    top: var(--fc-ft, var(--fc-t, 50%));
  }
}

/*
 * У поля уже есть container-type: inline-size. На широком viewport вкладка «Составы» всё равно узкая —
 * без CQ снова берутся десктопные --fc-l/--fc-t, хотя PHP отдал flash.
 */
@container (max-width: 900px) {
  .fc-tactical-pitch__field .fc-tactical-mark {
    left: var(--fc-fl, var(--fc-l, 50%));
    top: var(--fc-ft, var(--fc-t, 50%));
  }
}

/*
 * Вкладка «Составы» часто скрыта до первого открытия — CQ/viewport не видят ширину поля.
 * Класс выставляет fixture.blade (fcSyncTacticalPitchFlashPos) по реальному getBoundingClientRect().
 */
.fc-tactical-pitch__field--flash-pos .fc-tactical-mark {
  left: var(--fc-fl, var(--fc-l, 50%)) !important;
  top: var(--fc-ft, var(--fc-t, 50%)) !important;
}

/* ---------- Вкладка «Статистика игроков» ---------- */
.fc-player-stats-columns.row > [class*="col-"] {
  min-width: 0;
}

.fc-player-stats-scroll {
  max-height: min(70vh, 560px);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.fc-player-stats-table thead th {
  white-space: nowrap;
  font-weight: 600;
  border-bottom-width: 1px;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8faf9;
  box-shadow: 0 1px 0 rgba(13, 110, 79, 0.12);
}

.fc-player-stats-table td {
  vertical-align: middle;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.fc-player-stats-name {
  white-space: normal;
  max-width: 14rem;
}

.fc-player-stats-card {
  display: inline-block;
  min-width: 1rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 3px;
  padding: 0 0.2rem;
}

.fc-player-stats-card--yellow {
  background: #ffc107;
  color: #212529;
}

.fc-player-stats-card--red {
  background: #dc3545;
  color: #fff;
}

/* Рейтинг вкладки «Статистика игроков» */
.fc-player-stats-root .fc-player-stats-lead {
  background: linear-gradient(135deg, rgba(13, 110, 79, 0.06) 0%, rgba(13, 110, 79, 0.02) 100%);
  border: 1px solid rgba(13, 110, 79, 0.12) !important;
}

.fc-player-stats-lead__badge {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #0d6e4f 0%, #0a523c 100%);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(13, 110, 79, 0.25);
}

.fc-player-stats-lead__title {
  color: #0d6e4f;
}

.fc-player-stats-empty-card .fc-player-stats-empty__ico {
  color: rgba(13, 110, 79, 0.35);
  font-size: 2.25rem;
}

.fc-player-stats-team-card {
  overflow: hidden;
  border-radius: 0.5rem;
  min-width: 0;
  max-width: 100%;
}

.fc-player-stats-team-card .card-header.fc-player-stats-team-card__hdr {
  background: linear-gradient(180deg, rgba(13, 110, 79, 0.08) 0%, rgba(13, 110, 79, 0.03) 100%);
  border-bottom: 1px solid rgba(13, 110, 79, 0.1) !important;
}

.fc-player-stats-team-card__logo-wrap {
  padding: 2px;
  background: var(--fc-surface, #fff);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.fc-player-stats-th-rank {
  width: 2.5rem;
  min-width: 2.5rem;
}

.fc-player-stats-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  height: 1.65rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.fc-player-stats-rank--1 {
  background: linear-gradient(145deg, #ffd54f 0%, #ffb300 100%);
  color: #3e2723;
  box-shadow: 0 1px 4px rgba(255, 179, 0, 0.45);
}

.fc-player-stats-rank--2 {
  background: linear-gradient(145deg, #eceff1 0%, #b0bec5 100%);
  color: #37474f;
  box-shadow: 0 1px 3px rgba(55, 71, 79, 0.2);
}

.fc-player-stats-rank--3 {
  background: linear-gradient(145deg, #ffcc80 0%, #ef6c00 100%);
  color: #3e2723;
  box-shadow: 0 1px 3px rgba(239, 108, 0, 0.35);
}

.fc-player-stats-rank--rest {
  background: rgba(13, 110, 79, 0.08);
  color: #2e7d32;
}

.fc-player-stats-tr--top-1 td {
  background: rgba(255, 213, 79, 0.08);
}

.fc-player-stats-tr--top-2 td {
  background: rgba(176, 190, 197, 0.12);
}

.fc-player-stats-tr--top-3 td {
  background: rgba(255, 204, 128, 0.1);
}

.fc-player-stats-tr:hover td {
  background-color: rgba(13, 110, 79, 0.05) !important;
}

.fc-player-stats-name__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  min-width: 0;
}

.fc-player-stats-name__link {
  color: #1a1a1a;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.fc-player-stats-name__link:hover {
  color: #0d6e4f;
  border-bottom-color: rgba(13, 110, 79, 0.35);
}

.fc-player-stats-top-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #0d6e4f 0%, #0a523c 100%);
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(13, 110, 79, 0.35);
}

.fc-player-stats-top-pill .fas {
  font-size: 0.55rem;
  opacity: 0.95;
}

.fc-player-stats-badge {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.15em 0.45em;
}

.fc-player-stats-badge--cap {
  background: #6c757d !important;
  color: #fff !important;
}

.fc-player-stats-badge--sub {
  background: #e9ecef !important;
  color: #6c757d !important;
  border: 1px solid #dee2e6 !important;
}

.fc-player-stats-rating__val {
  font-weight: 600;
  color: #495057;
}

.fc-player-stats-rating__val--accent {
  color: #0d6e4f;
  font-weight: 700;
}

@media (max-width: 991.98px) {
  /* Полная таблица как на десктопе: вертикаль только у страницы, ширина — горизонтальный свайп по таблице */
  .fc-player-stats-scroll {
    max-height: none !important;
    overflow-y: visible;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .fc-player-stats-lead__badge {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1rem;
  }
}

/* Тулбар, фильтр «только играли», узкие экраны, сейвы, скелетон, flash */
.fc-player-stats-toolbar .form-check-input:checked {
  background-color: #0d6e4f;
  border-color: #0d6e4f;
}

.fc-player-stats-root.fc-player-stats--played-only tbody tr[data-fc-played='0'] {
  display: none;
}

.fc-player-stats-footer {
  line-height: 1.45;
}

.fc-player-stats-col--saves.fc-player-stats-saves--gk {
  font-weight: 700;
  color: #0d6e4f;
}

@keyframes fcPlayerStatsFlash {
  from {
    box-shadow: 0 0 0 0 rgba(13, 110, 79, 0.35);
  }
  to {
    box-shadow: 0 0 0 14px rgba(13, 110, 79, 0);
  }
}

.fc-player-stats-root.fc-player-stats-root--flash {
  animation: fcPlayerStatsFlash 0.9s ease-out 1;
  border-radius: 0.35rem;
}

.fc-player-stats-skeleton-card__hdr {
  display: flex;
  align-items: center;
  background: rgba(13, 110, 79, 0.04);
}

.fc-player-stats-skeleton .placeholder {
  opacity: 0.55;
}

.fc-player-stats-toolbar .btn.active {
  background-color: rgba(13, 110, 79, 0.12);
  border-color: rgba(13, 110, 79, 0.35);
  color: #0d6e4f;
}

.fc-player-stats-team-card__title {
  font-size: 1rem;
}

@media (max-width: 767.98px) {
  .fc-player-stats-team-card__title {
    font-size: 0.88rem;
    line-height: 1.25;
  }

  .fc-player-stats-lead__title {
    font-size: 0.92rem;
    line-height: 1.3;
  }

  .fc-player-stats-scroll {
    --fc-ps-rank-w: 1.85rem;
    scrollbar-width: thin;
    border-radius: 0 0 0.35rem 0.35rem;
  }

  .fc-player-stats-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    font-size: 0.7rem;
    line-height: 1.22;
  }

  .fc-player-stats-table thead th {
    padding: 0.32rem 0.18rem;
    font-size: 0.62rem;
    letter-spacing: -0.03em;
  }

  .fc-player-stats-table td {
    padding: 0.28rem 0.18rem;
  }

  .fc-player-stats-th-rank,
  .fc-player-stats-rank-cell {
    width: var(--fc-ps-rank-w);
    min-width: var(--fc-ps-rank-w);
    max-width: var(--fc-ps-rank-w);
    padding-left: 0.12rem !important;
    padding-right: 0.12rem !important;
  }

  .fc-player-stats-rank {
    min-width: 1.28rem;
    height: 1.28rem;
    font-size: 0.62rem;
    padding: 0 0.15rem;
  }

  .fc-player-stats-table thead th.fc-player-stats-th-rank {
    position: sticky;
    left: 0;
    top: 0;
    z-index: 6;
    background: #f8faf9 !important;
    border-right: 1px solid rgba(13, 110, 79, 0.12);
    box-shadow: 2px 0 6px -2px rgba(0, 0, 0, 0.07);
  }

  .fc-player-stats-table thead th.fc-player-stats-th-name {
    position: sticky;
    left: var(--fc-ps-rank-w);
    top: 0;
    z-index: 5;
    background: #f8faf9 !important;
    width: 28%;
    min-width: 0;
    max-width: none;
    border-right: 1px solid rgba(13, 110, 79, 0.14);
    box-shadow: 4px 0 10px -4px rgba(0, 0, 0, 0.09);
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .fc-player-stats-table tbody td.fc-player-stats-rank-cell {
    position: sticky;
    left: 0;
    z-index: 2;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    background-color: #fff !important;
    box-shadow: 2px 0 6px -2px rgba(0, 0, 0, 0.05);
  }

  .fc-player-stats-table tbody td.fc-player-stats-name {
    position: sticky;
    left: var(--fc-ps-rank-w);
    z-index: 1;
    width: 28%;
    min-width: 0;
    max-width: none;
    border-right: 1px solid rgba(13, 110, 79, 0.1);
    box-shadow: 4px 0 10px -4px rgba(0, 0, 0, 0.07);
    background-color: #fff !important;
    padding-right: 0.3rem !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .fc-player-stats-tr--top-1 td.fc-player-stats-rank-cell,
  .fc-player-stats-tr--top-1 td.fc-player-stats-name {
    background-color: rgba(255, 213, 79, 0.14) !important;
  }

  .fc-player-stats-tr--top-2 td.fc-player-stats-rank-cell,
  .fc-player-stats-tr--top-2 td.fc-player-stats-name {
    background-color: rgba(176, 190, 197, 0.22) !important;
  }

  .fc-player-stats-tr--top-3 td.fc-player-stats-rank-cell,
  .fc-player-stats-tr--top-3 td.fc-player-stats-name {
    background-color: rgba(255, 204, 128, 0.18) !important;
  }

  .fc-player-stats-tr:hover td.fc-player-stats-rank-cell,
  .fc-player-stats-tr:hover td.fc-player-stats-name {
    background-color: rgba(13, 110, 79, 0.07) !important;
  }

  .fc-player-stats-tr--top-1:hover td.fc-player-stats-rank-cell,
  .fc-player-stats-tr--top-1:hover td.fc-player-stats-name {
    background-color: rgba(255, 213, 79, 0.22) !important;
  }

  .fc-player-stats-tr--top-2:hover td.fc-player-stats-rank-cell,
  .fc-player-stats-tr--top-2:hover td.fc-player-stats-name {
    background-color: rgba(176, 190, 197, 0.28) !important;
  }

  .fc-player-stats-tr--top-3:hover td.fc-player-stats-rank-cell,
  .fc-player-stats-tr--top-3:hover td.fc-player-stats-name {
    background-color: rgba(255, 204, 128, 0.24) !important;
  }

  .fc-player-stats-name__inner {
    gap: 0.2rem 0.35rem;
    min-width: 0;
  }

  .fc-player-stats-name__link,
  .fc-player-stats-name__plain {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  }

.fc-player-stats-badges {
  flex: 0 0 auto;
  white-space: nowrap;
}

.fc-player-stats-name__short {
  display: none;
}

  .fc-player-stats-top-pill {
    font-size: 0.52rem;
    padding: 0.05rem 0.28rem;
  }

  .fc-player-stats-badge {
    font-size: 0.55rem;
    padding: 0.1em 0.35em;
  }

  .fc-player-stats-footer__short {
    font-size: 0.72rem;
    line-height: 1.38;
  }

  .fc-player-stats-toolbar .form-check-label {
    font-size: 0.78rem;
  }

  .fc-player-stats-toolbar .form-check-input {
    width: 2.35rem;
    height: 1.15rem;
  }

  .fc-player-stats-card {
    font-size: 0.62rem;
    min-width: 0.85rem;
  }
}

@media (max-width: 767.98px) {
  .fc-player-stats-name__full {
    display: none;
  }

  .fc-player-stats-name__short {
    display: inline;
  }
}

@media (min-width: 768px) {
  img.fc-player-stats-team-logo {
    width: 36px !important;
    height: 36px !important;
  }

  /**
   * Две колонки на lg / длинные строки имён давали min-width таблицы > колонки сетки → overflow-x у .table-responsive.
   * Фиксируем раскладку по ширине контейнера (в т. ч. desktop 50% + 50%).
   */
  .fc-player-stats-scroll .fc-player-stats-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
  }

  .fc-player-stats-scroll thead th.fc-player-stats-th-name,
  .fc-player-stats-scroll tbody td.fc-player-stats-name {
    width: 20%;
    min-width: 0;
  }

  .fc-player-stats-scroll thead th.fc-player-stats-th-rank,
  .fc-player-stats-scroll tbody td.fc-player-stats-rank-cell {
    width: 2.75rem;
  }

  .fc-player-stats-table thead th.fc-player-stats-th-rank,
  .fc-player-stats-table thead th.fc-player-stats-th-name,
  .fc-player-stats-table tbody td.fc-player-stats-rank-cell,
  .fc-player-stats-table tbody td.fc-player-stats-name {
    position: static;
    left: auto !important;
    box-shadow: none !important;
    border-right: 0 !important;
    z-index: auto;
  }

  .fc-player-stats-table tbody td.fc-player-stats-rank-cell,
  .fc-player-stats-table tbody td.fc-player-stats-name {
    background-color: transparent !important;
  }

  .fc-player-stats-table thead th.fc-player-stats-th-rank,
  .fc-player-stats-table thead th.fc-player-stats-th-name {
    background: #f8faf9 !important;
  }

  .fc-player-stats-name {
    max-width: 14rem;
  }
}

/* Десктоп (две колонки матча): вертикальный скролл списка сохраняем, горизонтальный убираем — плотнее шрифт/отступы */
@media (min-width: 992px) {
  .fc-player-stats-scroll {
    max-height: min(74vh, 640px);
    overflow-y: auto;
    overflow-x: hidden;
  }

  .fc-player-stats-scroll .fc-player-stats-table {
    font-size: 0.7rem;
    line-height: 1.18;
  }

  .fc-player-stats-scroll .fc-player-stats-table thead th,
  .fc-player-stats-scroll .fc-player-stats-table td {
    padding: 0.3rem 0.1rem;
  }

  .fc-player-stats-scroll .fc-player-stats-table thead th {
    font-size: 0.6rem;
    letter-spacing: -0.03em;
  }

  .fc-player-stats-scroll thead th.fc-player-stats-th-name,
  .fc-player-stats-scroll tbody td.fc-player-stats-name {
    width: 16%;
    max-width: none;
    overflow: hidden;
  }

  .fc-player-stats-scroll thead th.fc-player-stats-th-rank,
  .fc-player-stats-scroll tbody td.fc-player-stats-rank-cell {
    width: 2.1rem;
  }

  .fc-player-stats-name {
    max-width: none;
  }

  .fc-player-stats-rank {
    min-width: 1.2rem;
    height: 1.38rem;
    font-size: 0.62rem;
    padding: 0 0.12rem;
  }

  .fc-player-stats-top-pill {
    font-size: 0.52rem;
    padding: 0.06rem 0.32rem;
  }

  .fc-player-stats-badge {
    font-size: 0.52rem;
    padding: 0.08em 0.32em;
  }

  .fc-player-stats-card {
    font-size: 0.58rem;
    min-width: 0.75rem;
    padding: 0 0.12rem;
  }
}

/* Вкладка Pulse на странице матча */
.fc-fixture-pulse-panel__head {
  border-left: 3px solid var(--fc-red, #c41e3a);
  padding-left: 0.85rem;
  margin-left: -0.25rem;
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.06) 0%, var(--fc-surface) 72%);
}
.fc-fixture-pulse-panel__card .fc-ml-picks {
  margin-top: 0;
}
.fc-fixture-pulse-v3__chip {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: var(--fc-surface-2, #f8fafc);
  border: 1px solid var(--fc-border, #e2e8f0);
  height: 100%;
}
.fc-fixture-pulse-v3__chip-k {
  font-size: 0.68rem;
  color: var(--fc-muted, #64748b);
  line-height: 1.25;
}
.fc-fixture-pulse-v3__chip-v {
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--fc-text, #0f172a);
}
.fc-fixture-pulse-v3__outcome .fc-ml-trends-result {
  margin: 0;
}
.fc-fixture-pulse-panel__context {
  background: var(--fc-surface-2, #f8fafc);
}
html[data-bs-theme="dark"] .fc-fixture-pulse-panel__head,
html[data-bs-theme="dark"] .fc-match-page .fc-fixture-pulse-panel .card-header {
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.2) 0%, #121a27 48%, #0f1724 100%) !important;
  border-left-color: rgba(196, 30, 58, 0.65) !important;
  border-bottom-color: rgba(148, 163, 184, 0.18) !important;
  color: #e2e8f0;
}

html[data-bs-theme="dark"] .fc-match-page .fc-fixture-pulse-panel__card .card-body {
  background: #121a27;
}

html[data-bs-theme="dark"] .fc-match-page .fc-fixture-pulse-panel .alert.alert-light {
  background: #151f2f;
  border-color: rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
}

html[data-bs-theme="dark"] .fc-match-page .fc-ml-pick-hero {
  background: #161f2e;
  border-color: rgba(148, 163, 184, 0.2);
}

html[data-bs-theme="dark"] .fc-match-page .fc-ml-pick-hero__meter {
  background: rgba(0, 0, 0, 0.35);
}

html[data-bs-theme="dark"] .fc-match-page .fc-ml-pick-row {
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(148, 163, 184, 0.14);
}

html[data-bs-theme="dark"] .fc-match-page .fc-fixture-pulse-panel__context {
  background: #141c28;
  border-color: rgba(148, 163, 184, 0.16);
}

html[data-bs-theme="dark"] .fc-fixture-pulse-v3__chip {
  background: #152236;
  border-color: rgba(148, 163, 184, 0.22);
}

html[data-bs-theme="dark"] .fc-match-page .fc-fixture-tabs-shell .nav-tabs,
html[data-bs-theme="dark"] .fc-match-page .fc-tabs-shell {
  background: linear-gradient(180deg, #1a1f2a 0%, #141820 100%);
  border-color: rgba(148, 163, 184, 0.16);
}

/* Вкладка «Нейро прогноз»: нейтральный заголовок + блок связки с «Трендами» */
.fc-neuro-prediction__head {
  border-left: 3px solid #dee2e6;
  padding-left: 0.75rem;
  margin-left: -0.25rem;
}

.fc-neuro-trends-block {
  background: linear-gradient(135deg, #f4f9fc 0%, #eef4f8 100%);
  border: 1px solid #d8e4ec;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

@media (min-width: 768px) {
  .fc-neuro-trends-block {
    padding: 1rem 1.25rem;
  }
}

.fc-neuro-trends-metric {
  border-color: #d8e4ec !important;
  background-color: #fbfdfe !important;
}

.fc-neuro-trends-metric .small {
  line-height: 1.35;
}

.fc-neuro-prediction__glossary {
  cursor: help;
  border-bottom: 1px dotted currentColor;
}

.fc-neuro-prediction__meta summary {
  cursor: pointer;
}

.fc-neuro-prediction__meta summary:hover {
  color: var(--bs-body-color);
}

/* Ничья: отдельный оттенок от «серой» полоски гостей */
.fc-neuro-prediction__bar-draw {
  background-color: #5b7c99 !important;
}

/* ---------------- Dark mode: match page + chat ---------------- */
html[data-bs-theme="dark"] .fc-match-page .alert.alert-light {
  background: #151f2f;
  border-color: rgba(148, 163, 184, 0.24);
  color: #dbe7f6;
}

html[data-bs-theme="dark"] .fc-match-page .card,
html[data-bs-theme="dark"] .fc-match-page .compact-header.fc-compact-header--with-chat {
  background: #121a27;
  border-color: rgba(148, 163, 184, 0.2);
}

html[data-bs-theme="dark"] .fc-match-page .card-header,
html[data-bs-theme="dark"] .fc-match-page .card-footer {
  background: #0f1724;
  border-color: rgba(148, 163, 184, 0.2);
}

html[data-bs-theme="dark"] .fc-match-page .text-muted {
  color: #96a7c2 !important;
}

html[data-bs-theme="dark"] .fc-neuro-trends-block {
  background: linear-gradient(135deg, #152236 0%, #13283a 100%);
  border-color: rgba(125, 146, 176, 0.32);
}

html[data-bs-theme="dark"] .fc-neuro-trends-metric {
  background-color: #102033 !important;
  border-color: rgba(125, 146, 176, 0.3) !important;
}

html[data-bs-theme="dark"] .fc-fixture-chat-card {
  background: #101827;
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.36);
}

html[data-bs-theme="dark"] .fc-fixture-chat-card .card-header {
  background: linear-gradient(180deg, #121d2c 0%, #0f1826 100%);
  border-bottom-color: rgba(148, 163, 184, 0.2);
}

html[data-bs-theme="dark"] .fc-fixture-chat-card .card-body {
  background: #0f1724;
}

html[data-bs-theme="dark"] .fc-chat-msg__bubble {
  background: linear-gradient(180deg, #1a2434 0%, #152131 100%);
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.28);
}

html[data-bs-theme="dark"] .fc-chat-msg__text,
html[data-bs-theme="dark"] .fc-chat-msg__name {
  color: #e5edf7;
}

html[data-bs-theme="dark"] .fc-chat-msg__avatar {
  border-color: rgba(148, 163, 184, 0.32);
  background: #0f1724;
}

html[data-bs-theme="dark"] .fc-chat-msg--mine .fc-chat-msg__bubble {
  background: linear-gradient(180deg, rgba(12, 73, 46, 0.42) 0%, rgba(16, 88, 57, 0.32) 100%);
  border-color: rgba(34, 197, 94, 0.3);
}

html[data-bs-theme="dark"] .fc-chat-msg__bubble--event {
  background: linear-gradient(180deg, #1c2242 0%, #171f3a 100%);
  border-color: rgba(129, 140, 248, 0.35);
}

html[data-bs-theme="dark"] .fc-chat-msg__bubble--event-result {
  background: linear-gradient(180deg, #132a2b 0%, #113235 100%);
  border-color: rgba(45, 212, 191, 0.28);
}

html[data-bs-theme="dark"] .fc-chat-msg__bubble--event-cmd {
  background: linear-gradient(180deg, #32240f 0%, #2b1f0d 100%);
  border-color: rgba(245, 158, 11, 0.32);
}

html[data-bs-theme="dark"] .fc-chat-msg__text--event {
  color: #e7ecff;
}

html[data-bs-theme="dark"] a.fc-chat-msg__name:hover,
html[data-bs-theme="dark"] a.fc-chat-msg__name:focus-visible {
  color: #fca5a5;
}

html[data-bs-theme="dark"] .fc-match-page .fc-match-breadcrumb .fc-match-breadcrumb__track {
  background: #121c2b;
  border-color: rgba(148, 163, 184, 0.26);
  box-shadow: 0 4px 18px rgba(2, 6, 23, 0.32);
}

html[data-bs-theme="dark"] .fc-match-page .fc-match-breadcrumb .fc-match-breadcrumb__link {
  color: #cfe0f6;
  background: rgba(79, 109, 143, 0.2);
}

html[data-bs-theme="dark"] .fc-match-page .fc-match-breadcrumb .fc-match-breadcrumb__link:hover {
  color: #ecf3ff;
  background: rgba(79, 109, 143, 0.35);
  border-color: rgba(148, 163, 184, 0.24);
}

html[data-bs-theme="dark"] .fc-match-page .fc-match-pre-hero-meta__card {
  background: #121c2b;
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: 0 4px 16px rgba(2, 6, 23, 0.28);
}

html[data-bs-theme="dark"] .fc-match-page .fc-match-pre-hero-meta__row,
html[data-bs-theme="dark"] .fc-match-page .fc-match-pre-hero-meta__venue {
  color: #d5e5f9;
}

html[data-bs-theme="dark"] .fc-match-page .card-header.bg-white {
  background: #101a28 !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
}

html[data-bs-theme="dark"] .fc-match-page .fc-neuro-prediction__head,
html[data-bs-theme="dark"] .fc-match-page .fc-neuro-prediction .card-header {
  border-left-color: rgba(148, 163, 184, 0.34);
}

html[data-bs-theme="dark"] .fc-fixture-chat-card .fc-chat-composer .form-control {
  background: #0b1320;
  border-color: rgba(148, 163, 184, 0.28);
  color: #e7eef8;
}

html[data-bs-theme="dark"] .fc-fixture-chat-card .fc-chat-composer .form-control::placeholder {
  color: #8fa4c1;
}

html[data-bs-theme="dark"] .fc-fixture-chat-ad-above .fc-ad-slot--fixture-chat-top .fc-ad-slot__link {
  background: #0f1724;
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: 0 2px 10px rgba(2, 6, 23, 0.28);
}
