/**
 * FootballCast — публичная тема: белый фон, красные акценты, компактная типографика
 */
:root {
  --fc-red: #c41e3a;
  --fc-red-dark: #9e1830;
  --fc-red-soft: #fde8ec;
  --fc-text: #1a1a1a;
  --fc-muted: #5c5c5c;
  --fc-border: #e8e8e8;
  --fc-surface: #ffffff;
  --fc-surface-2: #fafafa;
  --fc-radius: 10px;
  --fc-radius-sm: 6px;
  --fc-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --fc-shadow-hover: 0 4px 14px rgba(196, 30, 58, 0.12);
  --fc-font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --fc-fix-away: #2c3e50;
  --fc-fix-away-dark: #1e2b36;
}

.fc-body {
  font-family: var(--fc-font);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--fc-text);
  background: var(--fc-surface-2);
  -webkit-font-smoothing: antialiased;
}

/* Навбар */
.fc-navbar {
  border-bottom: 1px solid var(--fc-border);
  background: var(--fc-surface) !important;
  min-height: 52px;
}
.fc-navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fc-red) !important;
  letter-spacing: -0.02em;
}
.fc-navbar .nav-link {
  padding: 0.4rem 0.65rem !important;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fc-text) !important;
  border-radius: var(--fc-radius-sm);
}
.fc-navbar .nav-link:hover {
  background: var(--fc-red-soft);
  color: var(--fc-red) !important;
}
.fc-navbar .nav-link.active {
  color: var(--fc-red) !important;
  background: var(--fc-red-soft);
  border-bottom: none !important;
}

/* Контейнер основной */
.fc-main {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

/* Чуть уже стандартного Bootstrap — одна линия с шапкой и футером */
@media (min-width: 576px) {
  .fc-body .fc-navbar .container,
  .fc-body main.fc-main > .container,
  .fc-body .fc-footer .container {
    max-width: 528px;
  }
}
@media (min-width: 768px) {
  .fc-body .fc-navbar .container,
  .fc-body main.fc-main > .container,
  .fc-body .fc-footer .container {
    max-width: 704px;
  }
}
@media (min-width: 992px) {
  .fc-body .fc-navbar .container,
  .fc-body main.fc-main > .container,
  .fc-body .fc-footer .container {
    max-width: 920px;
  }
}
@media (min-width: 1200px) {
  .fc-body .fc-navbar .container,
  .fc-body main.fc-main > .container,
  .fc-body .fc-footer .container {
    max-width: 1080px;
  }
}
@media (min-width: 1400px) {
  .fc-body .fc-navbar .container,
  .fc-body main.fc-main > .container,
  .fc-body .fc-footer .container {
    max-width: 1220px;
  }
}

/* Карточки */
.fc-card {
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  box-shadow: var(--fc-shadow);
  overflow: hidden;
}
.fc-card-header {
  position: relative;
  padding: 0.5rem 0.85rem 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  background: linear-gradient(180deg, var(--fc-surface) 0%, var(--fc-surface-2) 100%);
  border-bottom: 1px solid var(--fc-border);
  color: var(--fc-text);
}
.fc-card-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--fc-red);
  border-radius: var(--fc-radius) 0 0 0;
}
.fc-card-body {
  padding: 0.75rem 0.85rem;
}

/* LIVE */
.fc-live-banner {
  background: linear-gradient(135deg, var(--fc-red) 0%, var(--fc-red-dark) 100%);
  color: #fff;
  border-radius: var(--fc-radius);
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.35);
}
.fc-live-banner .fc-live-dot {
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: fc-pulse 1.4s ease-in-out infinite;
}
@keyframes fc-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.92); }
}

.fc-live-card {
  border: 1px solid var(--fc-border);
  border-left: 4px solid var(--fc-red);
  border-radius: var(--fc-radius);
  background: var(--fc-surface);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.fc-live-card:hover {
  box-shadow: var(--fc-shadow-hover);
  border-left-color: var(--fc-red-dark);
}

.fc-badge-live {
  background: var(--fc-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.fc-badge-ft {
  background: #198754;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.fc-badge-ns {
  background: #6c757d;
  color: #fff;
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* Поднавигация (главная) */
.fc-subnav {
  gap: 0.35rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--fc-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem !important;
}
.fc-subnav .nav-link {
  color: var(--fc-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem !important;
  border-radius: var(--fc-radius-sm);
  border: 1px solid transparent;
}
.fc-subnav .nav-link:hover {
  color: var(--fc-red);
  background: var(--fc-red-soft);
}
.fc-subnav .nav-link.active {
  color: #fff !important;
  background: var(--fc-red) !important;
  border-color: var(--fc-red);
}

/* Рельса дат */
.fc-date-rail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
}
.fc-date-rail a {
  text-decoration: none;
}
.fc-date-rail .fc-date-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  border-radius: var(--fc-radius-sm);
  border: 1px solid var(--fc-border);
  color: var(--fc-text);
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--fc-surface-2);
}
.fc-date-rail .fc-date-nav:hover {
  border-color: var(--fc-red);
  color: var(--fc-red);
  background: var(--fc-red-soft);
}
.fc-date-rail input[type="date"] {
  font-size: 0.8125rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-sm);
  max-width: 11rem;
}
.fc-date-rail .btn-fc-primary {
  background: var(--fc-red);
  border-color: var(--fc-red);
  color: #fff;
  font-size: 0.8125rem;
  padding: 0.35rem 0.75rem;
}
.fc-date-rail .btn-fc-primary:hover {
  background: var(--fc-red-dark);
  border-color: var(--fc-red-dark);
  color: #fff;
}

/* Календарь /fixtures: рельса + дата + OK в одной линии без «сползания» кнопки */
.fc-date-rail--fixtures {
  align-items: center;
  flex-wrap: wrap;
  row-gap: 0.5rem;
  column-gap: 0.5rem;
}
.fc-fixtures-date-pick-form {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
}
.fc-fixtures-date-input-group {
  width: auto;
  min-width: 9.5rem;
  flex-shrink: 0;
}
.fc-fixtures-date-input-group .form-control[type="date"] {
  min-height: 31px;
  line-height: 1.25;
}
.fc-fixtures-date-input-group .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}
@media (max-width: 575.98px) {
  .fc-date-rail--fixtures .fc-fixtures-date-pick-form {
    width: 100%;
    justify-content: flex-end;
  }
  .fc-date-rail--fixtures .fc-fixtures-date-input-group {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
  }
}

/* ---------- /fixtures: список — компактные карточки ---------- */
.fc-fixtures-page.fc-home-match-panel {
  background: linear-gradient(180deg, #e8eaee 0%, #dfe2e7 100%);
  padding: 0.7rem 0.8rem 0.85rem;
}

.fc-fixtures-page.fc-home-match-panel .fc-scoreboard.fc-card {
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  border-radius: 0 !important;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-league {
  margin-bottom: 0.65rem;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow:
    0 1px 5px rgba(0, 0, 0, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.85) inset;
  background: var(--fc-surface);
  border-bottom: none;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-league:last-child {
  margin-bottom: 0;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-league-head {
  padding: 0.4rem 0.65rem 0.4rem 0.55rem;
  background: linear-gradient(180deg, #ffffff 0%, #f0f2f5 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 3px solid var(--fc-red);
  font-size: 0.78rem;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-league-logo {
  width: 18px;
  height: 18px;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-league-titles .fc-sb-league-country {
  font-size: 0.65rem;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-league-count {
  font-size: 0.65rem;
  padding: 0.1rem 0.38rem;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-league-body {
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: #eef0f4;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-match-wrap {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-match-wrap:hover {
  border-color: rgba(196, 30, 58, 0.3);
  box-shadow: 0 5px 16px rgba(196, 30, 58, 0.1);
  transform: translateY(-1px);
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-match-wrap:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-row {
  padding: 0.38rem 0.5rem;
  gap: 0.22rem 0.38rem;
  grid-template-columns: 2.35rem minmax(0, 1fr) 2.95rem minmax(0, 1fr) 2rem;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-row:hover {
  background: rgba(196, 30, 58, 0.07);
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-team {
  font-size: 0.76rem;
  gap: 0.32rem;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-logo {
  width: 19px;
  height: 19px;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-score {
  min-height: 2rem;
  gap: 0.08rem;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-goals {
  font-size: 0.84rem;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-goals--pending {
  font-size: 0.78rem;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-meta-primary {
  font-size: 0.65rem;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-row--live .fc-sb-meta-primary {
  font-size: 0.72rem;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-row-analytics {
  border-top: 1px solid #e2e5ea;
  background: linear-gradient(180deg, #fbfbfc 0%, #f4f5f7 100%);
  padding: 0.28rem 0.45rem 0.32rem;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-anal-head {
  font-size: 0.58rem;
  gap: 0.2rem 0.32rem;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-anal-form {
  margin-top: 0.12rem;
  gap: 0.08rem;
}

.fc-fixtures-page.fc-home-match-panel .fc-form-pip {
  width: 0.82rem;
  height: 0.82rem;
  font-size: 0.5rem;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-anal-sub {
  margin-top: 0.15rem;
  font-size: 0.54rem;
  gap: 0.25rem 0.4rem;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-anal-weather {
  font-size: 0.62rem;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-anal-weather-cond {
  font-size: 0.55rem;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-row-extras {
  border-top: 1px solid #e2e5ea;
  background: #f6f7f9;
  padding: 0.12rem 0.45rem 0.32rem;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-extras-inner--rich {
  row-gap: 0.22rem;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-extras-inner {
  font-size: 0.6rem;
  gap: 0.25rem 0.55rem;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-extra i {
  font-size: 0.58rem;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-row-chips {
  border-top: 1px solid #e2e5ea;
  background: #fff;
  padding: 0.22rem 0.45rem 0.3rem;
  gap: 0.28rem 0.4rem;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-chip {
  font-size: 0.58rem;
  padding: 0.08rem 0.35rem;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-chip i {
  font-size: 0.55rem;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-extra-link {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 30, 58, 0.35);
  background: rgba(255, 255, 255, 0.98);
  line-height: 1.15;
  font-size: 0.62rem;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-extra-link:hover {
  background: var(--fc-red);
  color: #fff !important;
  border-color: var(--fc-red);
  opacity: 1;
}

.fc-fixtures-page.fc-home-match-panel .fc-sb-empty {
  background: var(--fc-surface);
  border-radius: 11px;
  border: 1px dashed rgba(0, 0, 0, 0.12);
  margin: 0.15rem;
  padding: 1.25rem 1rem !important;
}

@media (max-width: 575.98px) {
  .fc-fixtures-page.fc-home-match-panel {
    padding: 0.55rem 0.45rem 0.65rem;
  }
  .fc-fixtures-page.fc-home-match-panel .fc-sb-league-body {
    padding: 0.35rem;
    gap: 0.38rem;
  }
  .fc-fixtures-page.fc-home-match-panel .fc-sb-row {
    padding: 0.32rem 0.35rem;
    gap: 0.18rem 0.28rem;
    grid-template-columns: 2.2rem minmax(0, 1fr) 2.65rem minmax(0, 1fr) 1.75rem;
  }
  .fc-fixtures-page.fc-home-match-panel .fc-sb-team {
    font-size: 0.68rem;
  }
  .fc-fixtures-page.fc-home-match-panel .fc-sb-logo {
    width: 16px;
    height: 16px;
  }
  .fc-fixtures-page.fc-home-match-panel .fc-sb-goals {
    font-size: 0.78rem;
  }
  .fc-fixtures-page.fc-home-match-panel .fc-sb-match-wrap:hover {
    transform: none;
  }
}

/* Строка матча (компакт) */
.fc-match-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto 1fr 2rem;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--fc-border);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background 0.15s;
}
.fc-match-row:last-child {
  border-bottom: none;
}
.fc-match-row:hover {
  background: var(--fc-red-soft);
}
@media (max-width: 576px) {
  .fc-match-row {
    grid-template-columns: 3rem 1fr 2.5rem 1fr 1.5rem;
    gap: 0.35rem;
    font-size: 0.75rem;
  }
}
.fc-match-time {
  font-variant-numeric: tabular-nums;
  color: var(--fc-muted);
  font-weight: 600;
  font-size: 0.75rem;
}
.fc-match-team {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.fc-match-team span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fc-match-score {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--fc-text);
}

.fc-team-ico {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}
.fc-league-ico {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Таблицы */
.fc-table thead th {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fc-muted);
  font-weight: 600;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--fc-border);
  background: var(--fc-surface-2);
}
.fc-table td {
  padding: 0.45rem 0.5rem;
  vertical-align: middle;
  font-size: 0.8125rem;
}

/* Кнопки */
.btn-fc-red {
  background: var(--fc-red);
  border-color: var(--fc-red);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
}
.btn-fc-red:hover {
  background: var(--fc-red-dark);
  border-color: var(--fc-red-dark);
  color: #fff;
}
.btn-outline-fc-red {
  color: var(--fc-red);
  border-color: var(--fc-red);
  font-size: 0.8125rem;
}
.btn-outline-fc-red:hover {
  background: var(--fc-red);
  color: #fff;
}

/* Футер */
.fc-footer {
  border-top: 1px solid var(--fc-border);
  background: var(--fc-surface);
  padding: 1.25rem 0;
  font-size: 0.8125rem;
  color: var(--fc-muted);
}
.fc-footer-scoreboard-sync {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}
.fc-footer-scoreboard-sync .fc-footer-sync-ico {
  font-size: 0.68rem;
  color: var(--fc-red);
  opacity: 0.7;
}

/* Утилиты */
.fc-text-muted { color: var(--fc-muted) !important; }
.fc-page-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

/* Старые классы сайта — подтянуть под тему */
.live-badge {
  background: linear-gradient(135deg, var(--fc-red), var(--fc-red-dark)) !important;
  color: #fff !important;
  font-size: 0.65rem !important;
  padding: 0.2rem 0.5rem !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: center;
  font-weight: 700;
  animation: fc-pulse 1.5s ease-in-out infinite;
}
.live-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  margin-right: 5px;
}
.card {
  border-color: var(--fc-border);
  border-radius: var(--fc-radius);
  box-shadow: var(--fc-shadow);
}
.card-header.bg-light {
  background: var(--fc-surface-2) !important;
}
.text-primary,
a.text-primary {
  color: var(--fc-red) !important;
}
.btn-primary {
  background-color: var(--fc-red);
  border-color: var(--fc-red);
}
.btn-primary:hover {
  background-color: var(--fc-red-dark);
  border-color: var(--fc-red-dark);
}
.btn-outline-primary {
  color: var(--fc-red);
  border-color: var(--fc-red);
}
.btn-outline-primary:hover {
  background: var(--fc-red);
  border-color: var(--fc-red);
}

/* Совместимость со старыми blade-классами */
.score {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fc-text);
}
.team-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  margin-right: 6px;
}
.league-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  margin-right: 5px;
}
.text-small { font-size: 0.8125rem; }
.text-xsmall { font-size: 0.6875rem; }
.cursor-pointer { cursor: pointer; }
.match-time {
  font-size: 0.6875rem;
  color: var(--fc-muted);
  background: var(--fc-surface-2);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
}
.form-badge {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  margin-right: 2px;
}
.form-W { background: #198754; color: #fff; }
.form-D { background: #ffc107; color: #000; }
.form-L { background: var(--fc-red); color: #fff; }
.stat-card {
  text-align: center;
  padding: 0.85rem;
  border-radius: var(--fc-radius);
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
}
.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fc-red);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.65rem;
  color: var(--fc-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav-tabs .nav-link {
  border-radius: var(--fc-radius-sm) var(--fc-radius-sm) 0 0;
  color: var(--fc-muted);
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
}
.nav-tabs .nav-link:hover {
  color: var(--fc-red);
  border-color: var(--fc-border);
}
.nav-tabs .nav-link.active {
  color: var(--fc-red);
  border-color: var(--fc-border) var(--fc-border) var(--fc-surface);
  border-bottom: 2px solid var(--fc-red);
}
.tab-content {
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-top: none;
  border-radius: 0 0 var(--fc-radius) var(--fc-radius);
  padding: 0.85rem;
}
.loading {
  text-align: center;
  padding: 2rem;
  color: var(--fc-muted);
}
.loading i { font-size: 1.75rem; margin-bottom: 0.5rem; }
@media (max-width: 768px) {
  .stat-number { font-size: 1.25rem; }
  .score { font-size: 1rem; }
}

/* —— Соревнования (каталог) —— */
.fc-comp-page {
  margin-bottom: 0.5rem;
}
.fc-comp-page-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fc-text);
  line-height: 1.25;
}
@media (min-width: 576px) {
  .fc-comp-page-title {
    font-size: 1.28rem;
  }
}
.fc-comp-head {
  padding: 0.75rem 0.9rem !important;
}
.fc-comp-filters-body {
  padding-top: 0.65rem !important;
}
.fc-comp-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fc-muted);
  margin-bottom: 0.25rem;
}
.fc-comp-search .input-group-text {
  border-color: var(--fc-border);
}
.fc-comp-search .form-control {
  border-color: var(--fc-border);
  font-size: 0.8125rem;
}
.fc-comp-search .form-control:focus {
  box-shadow: none;
  border-color: rgba(196, 30, 58, 0.35);
}
.fc-comp-toolbar {
  padding: 0 0.1rem;
}
.fc-comp-today-switch .form-check-input {
  width: 2rem;
  height: 1rem;
  margin-top: 0.15rem;
}
.fc-comp-today-switch .form-check-input:checked {
  background-color: var(--fc-red);
  border-color: var(--fc-red);
}
.fc-comp-grid-wrap .fc-scoreboard.fc-card {
  border-radius: var(--fc-radius);
}
.fc-comp-table thead th {
  font-size: 0.62rem;
}
.fc-comp-table-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--fc-surface-2);
  border: 1px solid var(--fc-border);
  padding: 2px;
}
.fc-comp-pagination .pagination {
  margin-bottom: 0;
}
.fc-comp-pagination .page-link {
  font-size: 0.8125rem;
  padding: 0.25rem 0.55rem;
  color: var(--fc-red);
  border-color: var(--fc-border);
}
.fc-comp-pagination .page-item.active .page-link {
  background: var(--fc-red);
  border-color: var(--fc-red);
  color: #fff;
}
.fc-comp-pagination .page-item.disabled .page-link {
  color: var(--fc-muted);
}

/* Страница турнирной таблицы (/standings, /standings/{id}) */
.fc-standings-page {
  max-width: 100%;
}
.fc-standings-page--single .fc-standings-league-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(196, 30, 58, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(196, 30, 58, 0.06);
}
.fc-standings-single-head {
  padding: 0.85rem 1rem !important;
}
.fc-standings-single-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--fc-border);
  padding: 4px;
  flex-shrink: 0;
}
.fc-standings-single-logo--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fc-muted);
  font-size: 1.35rem;
}
.fc-standings-single-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fc-text);
}
@media (min-width: 576px) {
  .fc-standings-single-title {
    font-size: 1.35rem;
  }
}
.fc-standings-table-wrap {
  border-top: 1px solid var(--fc-border);
}
.fc-standings-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, var(--fc-surface-2), #fff);
  box-shadow: 0 1px 0 var(--fc-border);
}
.fc-standings-team-ico {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--fc-surface-2);
  border: 1px solid var(--fc-border);
  padding: 2px;
}
.fc-standings-rank-badge {
  min-width: 1.65rem;
  font-weight: 800;
  font-size: 0.68rem;
}
.fc-standings-rank--1 {
  background: linear-gradient(135deg, #ffd54f, #ffb300) !important;
  color: #3e2723 !important;
  border: 1px solid rgba(184, 134, 11, 0.45);
}
.fc-standings-rank--2 {
  background: linear-gradient(135deg, #e0e0e0, #bdbdbd) !important;
  color: #263238 !important;
  border: 1px solid rgba(120, 120, 120, 0.35);
}
.fc-standings-rank--3 {
  background: linear-gradient(135deg, #deb887, #cd853f) !important;
  color: #3e2723 !important;
  border: 1px solid rgba(160, 82, 45, 0.4);
}
.fc-standings-table .fc-form-pip {
  width: 1.05rem;
  height: 1.05rem;
  font-size: 0.58rem;
  border-radius: 4px;
}

/* Каталог соревнований */
.fc-comp-catalog .fc-comp-sort-hint {
  font-size: 0.72rem;
  line-height: 1.45;
}
.fc-comp-list-card {
  overflow: hidden;
}
.fc-comp-catalog-list {
  padding: 0.35rem 0.3rem 0.5rem;
  background: linear-gradient(180deg, var(--fc-surface-2) 0%, rgba(250, 250, 250, 0.35) 100%);
}
.fc-comp-section-label {
  list-style: none;
  padding: 0.55rem 0.35rem 0.35rem;
  margin: 0;
}
.fc-comp-section-label__text {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fc-red);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(196, 30, 58, 0.08);
  border: 1px solid rgba(196, 30, 58, 0.2);
}
.fc-comp-section-label--rest .fc-comp-section-label__text {
  color: var(--fc-muted);
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--fc-border);
}
.fc-comp-catalog-item {
  list-style: none;
  padding: 0.22rem 0.2rem;
  margin: 0;
}

/* Компактная карточка лиги (каталог соревнований) */
.fc-comp-card--compact {
  position: relative;
  border-radius: 11px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  background: var(--fc-surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition:
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.fc-comp-card--compact:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(196, 30, 58, 0.12);
  border-color: rgba(196, 30, 58, 0.18);
}
.fc-comp-card--compact.fc-comp-card--featured {
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.04) 0%, var(--fc-surface) 42%);
  border-color: rgba(196, 30, 58, 0.2);
  box-shadow: 0 2px 10px rgba(196, 30, 58, 0.08);
}
.fc-comp-card--compact .fc-comp-card__body {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem 0.5rem;
}
.fc-comp-card__mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--fc-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.fc-comp-card__mark-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.fc-comp-card__mark-ph {
  color: var(--fc-muted);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--fc-surface-2);
}
.fc-comp-card__core {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.fc-comp-card__top {
  display: block;
}
.fc-comp-card__lead {
  min-width: 0;
}
.fc-comp-card__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.12rem;
}
.fc-comp-card__title {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--fc-text);
}
@media (min-width: 576px) {
  .fc-comp-card__title {
    font-size: 1rem;
  }
}
.fc-comp-card__pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}
.fc-comp-card__geo {
  font-size: 0.68rem;
  color: var(--fc-muted);
  line-height: 1.35;
}
.fc-comp-card__facts {
  font-size: 0.68rem;
  color: var(--fc-muted);
  line-height: 1.4;
  margin-top: 0.15rem !important;
  font-variant-numeric: tabular-nums;
}
.fc-comp-card__facts strong {
  color: var(--fc-text);
  font-weight: 800;
}
.fc-comp-fact__sep {
  margin: 0 0.28rem;
  opacity: 0.45;
}
.fc-comp-fact--dates {
  white-space: nowrap;
}
.fc-comp-card__tagsline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  align-items: center;
  margin-top: 0.2rem !important;
}
.fc-comp-ttl {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  background: var(--fc-surface-2);
  color: var(--fc-text);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.fc-comp-ttl--cup {
  color: #146c43;
  background: rgba(25, 135, 84, 0.08);
  border-color: rgba(25, 135, 84, 0.22);
}
.fc-comp-ttl--tier {
  color: #0a58ca;
  background: rgba(13, 110, 253, 0.07);
  border-color: rgba(13, 110, 253, 0.22);
}
.fc-comp-ttl--muted {
  color: var(--fc-muted);
  font-weight: 600;
}
.fc-comp-ttl--id {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.58rem;
  font-weight: 600;
}

/* Таблица + нижняя панель действий — единый блок */
.fc-comp-card__stack {
  margin-top: 0.3rem;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.07);
  background: rgba(255, 255, 255, 0.92);
}
.fc-comp-card__stack .fc-comp-slim-table-wrap {
  border: none;
  border-radius: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  background: transparent;
  margin: 0;
}
a.fc-comp-table-preview-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}
a.fc-comp-table-preview-link:hover {
  background: rgba(196, 30, 58, 0.05);
}
a.fc-comp-table-preview-link:focus-visible {
  outline: 2px solid var(--fc-red);
  outline-offset: -2px;
  position: relative;
  z-index: 1;
}
.fc-comp-slim-empty--in-stack {
  border: none;
  border-radius: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  margin: 0;
  background: rgba(0, 0, 0, 0.02);
}

.fc-comp-card__foot {
  display: flex;
  align-items: stretch;
  min-height: 2.35rem;
}
.fc-comp-foot-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.4rem 0.5rem;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  text-decoration: none;
  border: none;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    filter 0.15s ease;
}
.fc-comp-foot-btn i {
  font-size: 0.75rem;
  opacity: 0.95;
}
.fc-comp-foot-btn--table {
  background: linear-gradient(180deg, var(--fc-red) 0%, var(--fc-red-dark) 100%);
  color: #fff;
}
.fc-comp-foot-btn--table:hover {
  color: #fff;
  filter: brightness(1.06);
}
.fc-comp-foot-btn--cal {
  background: rgba(255, 255, 255, 0.98);
  color: var(--fc-red-dark);
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.fc-comp-foot-btn--cal:hover {
  background: rgba(196, 30, 58, 0.07);
  color: var(--fc-red-dark);
}
.fc-comp-card--featured .fc-comp-card__stack {
  box-shadow:
    inset 0 0 0 1px rgba(196, 30, 58, 0.14),
    0 1px 4px rgba(196, 30, 58, 0.06);
}

/* Узкая таблица внутри карточки (вне stack — отдельная рамка) */
.fc-comp-slim-table-wrap {
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
  margin: 0;
}
.fc-comp-slim-table {
  width: 100%;
  font-size: 0.66rem;
  border-collapse: collapse;
  margin: 0;
}
.fc-comp-slim-table thead th {
  padding: 0.28rem 0.35rem;
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fc-muted);
  background: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  white-space: nowrap;
}
.fc-comp-slim-table tbody td {
  padding: 0.22rem 0.35rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  vertical-align: middle;
}
.fc-comp-slim-table tbody tr:last-child td {
  border-bottom: none;
}
.fc-comp-slim-tr--t1 td {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.09), transparent);
}
.fc-comp-slim-tr--t2 td {
  background: linear-gradient(90deg, rgba(140, 150, 160, 0.08), transparent);
}
.fc-comp-slim-tr--t3 td {
  background: linear-gradient(90deg, rgba(184, 115, 51, 0.07), transparent);
}
.fc-comp-slim-rk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  font-size: 0.58rem;
  font-weight: 800;
  border-radius: 4px;
  background: var(--fc-surface-2);
  color: var(--fc-muted);
}
.fc-comp-slim-rk.is-g {
  background: linear-gradient(135deg, #ffd54f, #ffb300);
  color: #3e2723;
}
.fc-comp-slim-rk.is-s {
  background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
  color: #263238;
}
.fc-comp-slim-rk.is-b {
  background: linear-gradient(135deg, #deb887, #cd853f);
  color: #3e2723;
}
.fc-comp-slim-team {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  max-width: 100%;
  font-weight: 600;
  color: var(--fc-text);
}
.fc-comp-slim-team img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  border-radius: 3px;
  flex-shrink: 0;
  background: var(--fc-surface-2);
  border: 1px solid var(--fc-border);
}
.fc-comp-slim-form {
  display: inline-flex;
  gap: 0.12rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.fc-comp-slim-pip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.78rem;
  height: 0.78rem;
  font-size: 0.48rem;
  font-weight: 800;
  border-radius: 2px;
  color: #fff;
  line-height: 1;
}
.fc-comp-slim-pip.is-w {
  background: #198754;
}
.fc-comp-slim-pip.is-d {
  background: #f59f00;
  color: #222;
}
.fc-comp-slim-pip.is-l {
  background: var(--fc-red);
}
.fc-comp-slim-empty {
  font-size: 0.68rem;
  color: var(--fc-muted);
  padding: 0.4rem 0.35rem;
  border-radius: 8px;
  border: 1px dashed var(--fc-border);
  background: rgba(0, 0, 0, 0.02);
}
a.fc-comp-slim-empty.fc-comp-table-preview-link:hover {
  color: var(--fc-red-dark);
  border-color: rgba(196, 30, 58, 0.25);
}
.fc-comp-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.fc-comp-pill--hot {
  color: var(--fc-red);
  background: rgba(196, 30, 58, 0.1);
  border-color: rgba(196, 30, 58, 0.25);
}
.fc-comp-pill--live {
  color: #0f6b3f;
  background: rgba(25, 135, 84, 0.1);
  border-color: rgba(25, 135, 84, 0.28);
}
.fc-comp-live-dot {
  font-size: 0.45rem;
  vertical-align: 0.12em;
  animation: fc-pulse 1.4s ease-in-out infinite;
}

.fc-league-card-pro {
  display: flex;
  flex-direction: column;
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: 12px;
  padding: 1rem 1.1rem 1rem;
  min-height: 100%;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  box-shadow: var(--fc-shadow);
}
.fc-league-card-pro:hover {
  box-shadow: var(--fc-shadow-hover);
  transform: translateY(-2px);
  border-color: rgba(196, 30, 58, 0.18);
}
.fc-league-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.fc-league-card-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}
.fc-league-card-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--fc-surface-2);
  border: 1px solid var(--fc-border);
  padding: 4px;
}
.fc-league-card-logo-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fc-muted);
  font-size: 1.25rem;
}
.fc-league-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--fc-text);
}
.fc-league-card-meta {
  font-size: 0.75rem;
  color: var(--fc-muted);
  margin-top: 0.2rem;
}
.fc-league-card-pills {
  margin-bottom: 0.65rem;
}
.fc-league-card-middle {
  flex: 1 1 auto;
  min-height: 8.5rem;
}
.fc-league-snippet-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.45rem;
}
.fc-league-standings-empty {
  height: 100%;
  min-height: 7.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 0.75rem;
  background: linear-gradient(180deg, var(--fc-surface-2) 0%, rgba(253, 232, 236, 0.35) 100%);
  border: 1px dashed rgba(196, 30, 58, 0.22);
  border-radius: var(--fc-radius-sm);
  color: var(--fc-muted);
  font-size: 0.8125rem;
}
.fc-league-standings-empty .fw-medium {
  color: var(--fc-text);
  font-size: 0.875rem;
}
.fc-league-card-actions {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--fc-border);
}
.fc-league-logo-lg {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

/* Страница «Матчи по дате» */
.fc-fixtures-league-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.55rem 0.85rem 0.55rem 1rem;
  background: linear-gradient(180deg, var(--fc-surface) 0%, var(--fc-surface-2) 100%);
  border-bottom: 1px solid var(--fc-border);
}
.fc-fixtures-league-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--fc-red);
}
.fc-fixtures-league-ico {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--fc-border);
  padding: 3px;
  flex-shrink: 0;
}
.fc-fixtures-league-ico-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fc-muted);
  font-size: 0.9rem;
}
.fc-fixtures-league-name {
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.fc-fixtures-count-pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
}
.fc-fixture-tile {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: var(--fc-radius-sm);
  border: 1px solid var(--fc-border);
  background: var(--fc-surface);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.fc-fixture-tile:hover {
  border-color: rgba(196, 30, 58, 0.28);
  box-shadow: 0 2px 10px rgba(196, 30, 58, 0.08);
  background: #fff;
}
.fc-fixture-tile-live {
  border-color: rgba(196, 30, 58, 0.45);
  background: linear-gradient(90deg, rgba(253, 232, 236, 0.65) 0%, var(--fc-surface) 55%);
}
.fc-fixture-tile-score {
  font-weight: 800;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--fc-text);
}
.fc-badge-live {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: var(--fc-red);
  color: #fff;
  animation: fc-pulse-live 1.6s ease-in-out infinite;
}
@keyframes fc-pulse-live {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.82;
  }
}
.fc-badge-ft {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: var(--fc-surface-2);
  color: var(--fc-muted);
  border: 1px solid var(--fc-border);
}
.fc-badge-ns {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: rgba(25, 135, 84, 0.1);
  color: #146c43;
  border: 1px solid rgba(25, 135, 84, 0.2);
}
.fc-date-input-compact {
  max-width: 11rem;
  min-width: 8.5rem;
  border-radius: var(--fc-radius-sm);
  border-color: var(--fc-border);
  font-size: 0.8125rem;
}
.fc-fixtures-league-block {
  position: relative;
  overflow: hidden;
}

.fc-stats-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--fc-red-soft);
  color: var(--fc-red-dark);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  margin-right: 0.35rem;
  margin-bottom: 0.25rem;
  border: 1px solid rgba(196, 30, 58, 0.15);
}

.fc-standing-snippet {
  background: var(--fc-surface-2);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-sm);
  padding: 0.45rem 0.65rem;
  margin-bottom: 0.35rem;
  transition: background 0.15s;
  font-size: 0.8125rem;
}
.fc-standing-snippet:hover {
  background: var(--fc-red-soft);
}

.fc-rank-dot {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.75rem;
  color: #fff;
  flex-shrink: 0;
}
.fc-rank-1 { background: linear-gradient(145deg, #e6c200, #b8960a); }
.fc-rank-2 { background: linear-gradient(145deg, #b0b0b0, #8a8a8a); }
.fc-rank-3 { background: linear-gradient(145deg, #c67d4e, #9a5c32); }
.fc-rank-mid { background: #198754; }
.fc-rank-rel { background: var(--fc-red); }

/* Страница команды */
.fc-team-hero {
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  background: var(--fc-surface);
  box-shadow: var(--fc-shadow);
}
.fc-team-hero-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
}
.fc-player-ico {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
}

/* Модалка деталей матча */
.fc-modal-score {
  background: var(--fc-red-soft);
  border: 1px solid rgba(196, 30, 58, 0.12);
  border-radius: var(--fc-radius);
}

/* ========== Единый UI как на странице матча ========== */
.fc-ui .fc-main .card {
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  box-shadow: var(--fc-shadow);
  overflow: hidden;
}
.fc-ui .fc-main .card > .card-header {
  position: relative;
  background: linear-gradient(180deg, #fff, var(--fc-surface-2)) !important;
  border-bottom: 1px solid var(--fc-border);
  padding-left: 1rem;
}
.fc-ui .fc-main .card > .card-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--fc-red);
}

/* Герой страницы (как шапка матча, компактно) */
.fc-page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(128deg, var(--fc-red-dark) 0%, var(--fc-red) 48%, #e0435f 100%);
  color: #fff;
  border-radius: 16px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 36px rgba(196, 30, 58, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.fc-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 12% -30%, rgba(255, 255, 255, 0.26), transparent 52%),
    radial-gradient(ellipse 45% 40% at 100% 100%, rgba(0, 0, 0, 0.12), transparent 45%);
  pointer-events: none;
}
.fc-page-hero-inner {
  position: relative;
  z-index: 1;
}
.fc-page-hero-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}
@media (min-width: 576px) {
  .fc-page-hero-title {
    font-size: 1.35rem;
  }
}
.fc-page-hero-sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
  margin: 0.35rem 0 0;
  max-width: 40rem;
}
.fc-page-hero .btn-light {
  color: var(--fc-red-dark) !important;
  font-weight: 600;
  border: none;
}
.fc-page-hero .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  font-weight: 500;
}
.fc-page-hero .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

/* Оболочка табов как у матча */
.fc-tabs-shell {
  border-radius: 14px;
  border: 1px solid var(--fc-border);
  padding: 0.6rem 0.7rem;
  background: linear-gradient(180deg, #fff 0%, var(--fc-surface-2) 100%);
  box-shadow: var(--fc-shadow);
  margin-bottom: 1rem;
}
.fc-tabs-shell .fc-subnav {
  margin-bottom: 0 !important;
  padding-bottom: 0;
  border-bottom: none;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.4rem;
  scrollbar-width: thin;
  scrollbar-color: var(--fc-red) var(--fc-border);
}
.fc-tabs-shell .fc-subnav::-webkit-scrollbar {
  height: 5px;
}
.fc-tabs-shell .fc-subnav::-webkit-scrollbar-thumb {
  background: var(--fc-red);
  border-radius: 4px;
}
.fc-tabs-shell .fc-subnav .nav-link {
  border-radius: 10px;
  padding: 0.45rem 0.85rem !important;
  font-size: 0.8125rem;
  border: 1px solid transparent;
  white-space: nowrap;
}
.fc-tabs-shell .fc-subnav .nav-link:hover {
  background: var(--fc-red-soft);
  color: var(--fc-red);
}
.fc-tabs-shell .fc-subnav .nav-link.active {
  background: linear-gradient(135deg, var(--fc-red), var(--fc-red-dark)) !important;
  color: #fff !important;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 6px 16px rgba(196, 30, 58, 0.32);
}

/* Главная: липкие вкладки на узких экранах */
@media (max-width: 991.98px) {
  .fc-tabs-shell--sticky-mobile {
    position: sticky;
    top: 0;
    z-index: 1020;
    margin-bottom: 1rem !important;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  }
}

@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
  .fc-tabs-shell--sticky-mobile {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--fc-surface);
  }
}

/* Главная: одна колонка контента */
.fc-home-layout-inner {
  width: 100%;
}
@media (min-width: 992px) {
  .fc-home-layout-inner {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }
}
.fc-home-tabs-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}
@media (max-width: 991.98px) {
  .fc-home-date-toolbar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .fc-home-date-toolbar::-webkit-scrollbar {
    display: none;
  }
}
.fc-home-date-toolbar {
  margin-bottom: 0;
  flex-shrink: 0;
}
@media (min-width: 992px) {
  .fc-home-tabs-row {
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
  }
  .fc-home-tabs-row .fc-subnav-main {
    order: 1;
    flex: 1 1 0;
    min-width: 0;
  }
  .fc-home-tabs-row .fc-home-date-toolbar {
    order: 2;
    margin-bottom: 0;
    flex-shrink: 0;
  }
}

.fc-home-top-strip {
  border-color: var(--fc-border) !important;
}

/* Главная: рельса дат + календарь (не путать с .fc-date-rail календаря матчей) */
.fc-home-date-nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.fc-date-rail-calendar-form {
  margin: 0;
  flex-shrink: 0;
}
.fc-date-rail-calendar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.05rem;
  height: 2.05rem;
  margin: 0;
  border-radius: 10px;
  border: 1px solid var(--fc-border);
  background: rgba(0, 0, 0, 0.035);
  color: var(--fc-muted);
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
.fc-date-rail-calendar:hover {
  border-color: rgba(196, 30, 58, 0.35);
  color: var(--fc-red);
  background: var(--fc-red-soft);
}
.fc-date-rail-calendar--picked {
  border-color: rgba(196, 30, 58, 0.42);
  color: var(--fc-red-dark);
  background: var(--fc-red-soft);
  box-shadow: 0 0 0 1px rgba(196, 30, 58, 0.12);
}
.fc-date-rail-calendar-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 1rem;
}
.fc-date-rail-calendar .fa-calendar-alt {
  font-size: 0.82rem;
  pointer-events: none;
}

/* Мобилка и планшет: горизонтальная «пилюля», как раньше, чуть компактнее оригинала */
@media (max-width: 991.98px) {
  .fc-home-date-nav {
    display: flex;
    justify-content: center;
  }
  .fc-home-date-nav .fc-date-rail-track {
    display: inline-flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 1px;
    padding: 2px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--fc-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }
  .fc-home-date-nav .fc-date-rail-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.22rem 0.45rem 0.22rem 0.38rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--fc-muted);
    font-size: 0.72rem;
    font-weight: 600;
    transition: background 0.18s, color 0.18s;
    border: none;
    background: transparent;
    flex: 0 1 auto;
    min-width: 0;
  }
  .fc-home-date-nav .fc-date-rail-nav--next {
    padding: 0.22rem 0.38rem 0.22rem 0.45rem;
  }
  .fc-home-date-nav .fc-date-rail-nav:hover {
    color: var(--fc-red-dark);
    background: rgba(255, 255, 255, 0.92);
  }
  .fc-home-date-nav .fc-date-rail-nav i {
    font-size: 0.6rem;
    opacity: 0.6;
    flex-shrink: 0;
  }
  .fc-home-date-nav .fc-date-rail-nav:hover i {
    opacity: 1;
  }
  .fc-home-date-nav .fc-date-rail-nav-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.12;
    min-width: 0;
  }
  .fc-home-date-nav .fc-date-rail-nav--next .fc-date-rail-nav-stack {
    align-items: flex-end;
  }
  .fc-home-date-nav .fc-date-rail-nav-label {
    font-size: 0.54rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.78;
  }
  .fc-home-date-nav .fc-date-rail-nav-date {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 0.74rem;
    color: var(--fc-text);
  }
  .fc-home-date-nav .fc-date-rail-nav:hover .fc-date-rail-nav-date {
    color: var(--fc-red-dark);
  }
  .fc-home-date-nav .fc-date-rail-nav.fc-date-rail-current {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0.22rem 0.65rem;
    min-width: 4.35rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--fc-red), var(--fc-red-dark));
    color: #fff;
    box-shadow: 0 3px 12px rgba(196, 30, 58, 0.26);
    cursor: pointer;
  }
  .fc-home-date-nav .fc-date-rail-nav.fc-date-rail-current:hover {
    color: #fff;
    background: linear-gradient(145deg, var(--fc-red), var(--fc-red-dark));
    filter: brightness(1.04);
  }
  .fc-home-date-nav .fc-date-rail-nav.fc-date-rail-current:hover i {
    opacity: 1;
    color: #fff;
  }
  .fc-home-date-nav .fc-date-rail-nav.fc-date-rail-current .fc-date-rail-nav-label {
    color: rgba(255, 255, 255, 0.92);
    opacity: 1;
  }
  .fc-home-date-nav .fc-date-rail-nav.fc-date-rail-current .fc-date-rail-nav-date {
    color: #fff;
  }
  .fc-home-date-nav .fc-date-rail-nav.fc-date-rail-current:hover .fc-date-rail-nav-date {
    color: #fff;
  }
  .fc-home-date-nav .fc-date-rail-nav--center .fc-date-rail-nav-stack--center {
    align-items: center;
    text-align: center;
  }
}

/* Десктоп: компактная рельса справа в строке с вкладками */
@media (min-width: 992px) {
  .fc-home-tabs-shell .fc-home-date-nav-row {
    justify-content: flex-end;
    margin-left: 0;
    margin-right: 0;
    width: auto;
  }
  .fc-home-tabs-shell .fc-home-date-nav {
    display: flex;
    justify-content: flex-end;
  }
  .fc-home-tabs-shell .fc-home-date-nav .fc-date-rail-track {
    display: inline-flex;
    align-items: stretch;
    flex-direction: row;
    flex-wrap: nowrap;
    width: auto;
    max-width: 100%;
    padding: 1px;
    gap: 1px;
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.045);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  }
  .fc-home-tabs-shell .fc-home-date-nav .fc-date-rail-nav {
    flex: 0 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.22rem;
    padding: 0.2rem 0.32rem 0.2rem 0.28rem;
    border-radius: 7px;
    text-decoration: none;
    color: var(--fc-muted);
    font-size: 0.68rem;
    font-weight: 600;
    transition: background 0.18s, color 0.18s;
    border: none;
    background: transparent;
    min-width: 0;
  }
  .fc-home-tabs-shell .fc-home-date-nav .fc-date-rail-nav--next {
    padding: 0.2rem 0.28rem 0.2rem 0.32rem;
  }
  .fc-home-tabs-shell .fc-home-date-nav .fc-date-rail-nav:hover {
    color: var(--fc-red-dark);
    background: rgba(255, 255, 255, 0.95);
  }
  .fc-home-tabs-shell .fc-home-date-nav .fc-date-rail-nav i {
    font-size: 0.55rem;
    opacity: 0.55;
    flex-shrink: 0;
  }
  .fc-home-tabs-shell .fc-home-date-nav .fc-date-rail-nav:hover i {
    opacity: 1;
  }
  .fc-home-tabs-shell .fc-home-date-nav .fc-date-rail-nav-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.08;
    min-width: 0;
  }
  .fc-home-tabs-shell .fc-home-date-nav .fc-date-rail-nav--next .fc-date-rail-nav-stack {
    align-items: flex-end;
  }
  .fc-home-tabs-shell .fc-home-date-nav .fc-date-rail-nav-label {
    font-size: 0.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.7;
  }
  .fc-home-tabs-shell .fc-home-date-nav .fc-date-rail-nav-date {
    font-size: 0.66rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--fc-text);
  }
  .fc-home-tabs-shell .fc-home-date-nav .fc-date-rail-nav:hover .fc-date-rail-nav-date {
    color: var(--fc-red-dark);
  }
  .fc-home-tabs-shell .fc-home-date-nav .fc-date-rail-nav.fc-date-rail-current {
    flex-shrink: 0;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0.18rem 0.42rem;
    min-width: 3.65rem;
    border-radius: 7px;
    background: linear-gradient(145deg, var(--fc-red), var(--fc-red-dark));
    color: #fff;
    box-shadow: 0 2px 10px rgba(196, 30, 58, 0.28);
  }
  .fc-home-tabs-shell .fc-home-date-nav .fc-date-rail-nav.fc-date-rail-current:hover {
    color: #fff;
    background: linear-gradient(145deg, var(--fc-red), var(--fc-red-dark));
    filter: brightness(1.04);
  }
  .fc-home-tabs-shell .fc-home-date-nav .fc-date-rail-nav.fc-date-rail-current:hover i {
    opacity: 1;
    color: #fff;
  }
  .fc-home-tabs-shell .fc-home-date-nav .fc-date-rail-nav.fc-date-rail-current .fc-date-rail-nav-label {
    color: rgba(255, 255, 255, 0.92);
    opacity: 1;
  }
  .fc-home-tabs-shell .fc-home-date-nav .fc-date-rail-nav.fc-date-rail-current .fc-date-rail-nav-date {
    color: #fff;
  }
  .fc-home-tabs-shell .fc-home-date-nav .fc-date-rail-nav.fc-date-rail-current:hover .fc-date-rail-nav-date {
    color: #fff;
  }
  .fc-home-tabs-shell .fc-home-date-nav .fc-date-rail-nav--center .fc-date-rail-nav-stack--center {
    align-items: center;
    text-align: center;
  }
  .fc-home-tabs-shell .fc-date-rail-calendar {
    width: 1.92rem;
    height: 1.92rem;
    border-radius: 8px;
  }
  .fc-home-tabs-shell .fc-date-rail-calendar .fa-calendar-alt {
    font-size: 0.75rem;
  }
}

/* Фильтр лиг: иконка + горизонтальный скролл */
.fc-league-filter {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 12px;
  border: 1px solid var(--fc-border);
  background: var(--fc-surface);
  overflow: hidden;
}
.fc-league-filter-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  color: var(--fc-muted);
  background: rgba(0, 0, 0, 0.025);
  border-right: 1px solid var(--fc-border);
  font-size: 0.85rem;
}
.fc-league-filter-scroll-outer {
  flex: 1;
  min-width: 0;
  position: relative;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 12px,
    #000 calc(100% - 12px),
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 12px,
    #000 calc(100% - 12px),
    transparent
  );
}
.fc-league-filter-scroll {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.fc-league-filter-scroll::-webkit-scrollbar {
  height: 4px;
}
.fc-league-filter-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}
.fc-lf-chip {
  flex-shrink: 0;
  border: 1px solid var(--fc-border);
  background: rgba(255, 255, 255, 0.65);
  color: var(--fc-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 10rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.fc-lf-chip:hover {
  border-color: rgba(196, 30, 58, 0.35);
  color: var(--fc-red-dark);
  background: var(--fc-red-soft);
}
.fc-lf-chip.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--fc-red), var(--fc-red-dark));
  color: #fff;
  box-shadow: 0 2px 10px rgba(196, 30, 58, 0.25);
}
.fc-lf-chip-logo {
  width: 14px;
  height: 14px;
  object-fit: contain;
  border-radius: 2px;
  flex-shrink: 0;
}
.fc-lf-chip-text {
  max-width: 8.5rem;
  display: inline-block;
  vertical-align: middle;
}

@media (prefers-reduced-motion: no-preference) {
  .fc-home-tab-content .tab-pane.active .fc-home-match-panel {
    animation: fc-home-pane-in 0.38s ease-out;
  }
}
@keyframes fc-home-pane-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fc-navbar-home {
  border-left: 1px solid var(--fc-border);
  padding-left: 0.75rem !important;
}

.fc-home-live-line {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--fc-muted);
  white-space: nowrap;
}

.fc-navbar-home .fc-home-live-line {
  font-size: 0.8125rem;
}

.fc-sb-empty-actions .btn {
  min-height: 2.25rem;
}

/* Контент вкладок без «рамки с главной» */
.fc-tab-plain.tab-content {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.fc-ui .fc-footer h6 .text-primary {
  color: var(--fc-red) !important;
}

/* ========== Главная: табло матчей (FlashScore-style) ========== */
.fc-hero-live-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.15rem;
  vertical-align: middle;
}
.fc-hero-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fc-red);
  box-shadow: 0 0 0 2px rgba(196, 30, 58, 0.2);
  animation: fc-pulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
.fc-hero-live-sep {
  opacity: 0.75;
  font-weight: 400;
}

/* Главная: один ряд вкладок + панель табло */
.fc-subnav-main.fc-subnav .nav-link {
  padding: 0.4rem 0.7rem !important;
  font-size: 0.78rem;
}

@media (min-width: 768px) {
  .fc-subnav-main.fc-subnav .nav-link {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.8125rem;
  }
}

.fc-tab-live-pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fc-red);
  box-shadow: 0 0 0 2px rgba(196, 30, 58, 0.2);
  animation: fc-pulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.fc-tab-live-pip--nav {
  width: 6px;
  height: 6px;
  margin-right: 0.2rem;
  margin-top: -1px;
}

.fc-tabs-shell .fc-subnav .nav-link:not(.active) .fc-tab-live-pip--nav {
  opacity: 0.85;
}

.fc-main-nav-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 0.32rem;
  margin-left: 0.3rem;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}

.fc-main-nav-tab-badge.is-hot {
  background: rgba(255, 255, 255, 0.95);
  color: var(--fc-red-dark);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.fc-tabs-shell .fc-subnav .nav-link.active .fc-main-nav-tab-badge:not(.is-hot) {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.fc-tabs-shell .fc-subnav .nav-link.active .fc-main-nav-tab-badge.is-hot {
  background: #fff;
  color: var(--fc-red-dark);
}

/* Обёртка табло под вкладками «Сегодня» / «Лайв» / «Завершённые» */
.fc-home-match-panel {
  padding: 1.15rem 1.15rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(180deg, #f3f4f6 0%, #eceef1 100%);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 28px rgba(0, 0, 0, 0.06),
    0 24px 48px rgba(196, 30, 58, 0.04);
}

.fc-home-match-panel .fc-scoreboard {
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 14px !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  background: var(--fc-surface);
}

.fc-home-match-panel .fc-sb-league-head {
  padding: 0.55rem 1rem;
  background: linear-gradient(180deg, #fbfbfc 0%, #f4f5f6 100%);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.fc-home-match-panel .fc-sb-league:first-child .fc-sb-league-head {
  border-top: none;
}

.fc-home-match-panel .fc-sb-row {
  padding-left: 1rem;
  padding-right: 1rem;
  border-bottom-color: rgba(0, 0, 0, 0.055);
}

.fc-home-match-panel .fc-sb-row:hover {
  background: rgba(196, 30, 58, 0.06);
}

.fc-home-match-panel .fc-sb-empty {
  padding: 2.5rem 1.25rem;
}

@media (max-width: 575.98px) {
  .fc-home-match-panel {
    padding: 0.85rem 0.75rem 1rem;
  }
}

.fc-scoreboard.fc-card {
  overflow: hidden;
  padding: 0;
  border-radius: var(--fc-radius);
}
.fc-scoreboard > .fc-sb-league:first-child .fc-sb-league-head {
  border-top: none;
}

.fc-sb-empty {
  text-align: center;
  padding: 2rem 1rem;
}

.fc-sb-league {
  border-bottom: 1px solid var(--fc-border);
}
.fc-sb-league:last-child {
  border-bottom: none;
}

.fc-sb-league-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: linear-gradient(180deg, #f3f4f6 0%, var(--fc-surface-2) 100%);
  border-bottom: 1px solid var(--fc-border);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--fc-text);
}
.fc-sb-league-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}
.fc-sb-league-titles {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.fc-sb-league-name {
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fc-sb-league-country {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--fc-muted);
}
.fc-sb-league-count {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--fc-muted);
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
}

.fc-sb-league-body {
  background: var(--fc-surface);
}

.fc-sb-row {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) 3.25rem minmax(0, 1fr) 2.35rem;
  gap: 0.35rem 0.55rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--fc-border);
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  color: inherit;
  outline: none;
}
.fc-sb-row:last-child {
  border-bottom: none;
}
.fc-sb-row:hover {
  background: var(--fc-red-soft);
}
.fc-sb-row:focus-visible {
  box-shadow: inset 0 0 0 2px var(--fc-red);
}
.fc-sb-row--live {
  background: linear-gradient(
    90deg,
    rgba(196, 30, 58, 0.14) 0%,
    rgba(196, 30, 58, 0.05) 38%,
    transparent 72%
  );
  box-shadow:
    inset 3px 0 0 var(--fc-red),
    inset 0 0 0 1px rgba(196, 30, 58, 0.1);
}
.fc-sb-row--live:hover {
  background: linear-gradient(
    90deg,
    rgba(196, 30, 58, 0.18) 0%,
    rgba(196, 30, 58, 0.08) 45%,
    var(--fc-red-soft) 100%
  );
  box-shadow:
    inset 3px 0 0 var(--fc-red),
    inset 0 0 0 1px rgba(196, 30, 58, 0.14);
}
.fc-sb-row--live .fc-sb-goals {
  font-weight: 800;
  color: var(--fc-red-dark);
}
.fc-sb-row--ft .fc-sb-goals {
  color: var(--fc-text);
}

.fc-sb-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  text-align: center;
  min-width: 0;
}
.fc-sb-meta-primary {
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--fc-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.fc-sb-row--live .fc-sb-meta-primary {
  color: var(--fc-red);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.78rem;
}
.fc-sb-row--ft .fc-sb-meta-primary {
  color: #157347;
  font-size: 0.65rem;
  font-weight: 700;
}

.fc-sb-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fc-red);
  animation: fc-pulse 1.4s ease-in-out infinite;
}

.fc-sb-team {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
}
/* row-reverse: main-start справа — flex-start прижимает блок к счёту, flex-end уезжал влево */
.fc-sb-team--home {
  justify-content: flex-start;
  flex-direction: row-reverse;
  text-align: right;
}
.fc-sb-team--away {
  justify-content: flex-start;
  text-align: left;
}

.fc-sb-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.fc-sb-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.fc-sb-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  text-align: center;
  min-height: 2.5rem;
}

.fc-sb-goals {
  font-weight: 800;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  line-height: 1;
}
.fc-sb-goals--pending {
  color: #adb5bd;
  font-weight: 600;
  font-size: 0.875rem;
}
.fc-sb-score-sep {
  margin: 0 0.1rem;
  opacity: 0.88;
  font-weight: 800;
}

.fc-sb-ht {
  font-size: 0.625rem;
  color: var(--fc-muted);
  font-weight: 600;
  line-height: 1;
  max-width: 100%;
  white-space: nowrap;
}

.fc-sb-pen {
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fc-red);
  line-height: 1;
  margin-top: 0.12rem;
}

.fc-sb-tools {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fc-sb-more {
  border: none;
  background: transparent;
  color: var(--fc-muted);
  padding: 0.3rem;
  border-radius: var(--fc-radius-sm);
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}
.fc-sb-more:hover {
  color: var(--fc-red);
  background: rgba(196, 30, 58, 0.1);
}
.fc-sb-more:focus-visible {
  outline: 2px solid var(--fc-red);
  outline-offset: 1px;
}

@media (max-width: 575.98px) {
  .fc-sb-row {
    grid-template-columns: 2.5rem minmax(0, 1fr) 2.85rem minmax(0, 1fr) 2rem;
    gap: 0.28rem 0.35rem;
    padding: 0.45rem 0.4rem;
  }
  .fc-sb-team {
    font-size: 0.72rem;
    gap: 0.3rem;
  }
  .fc-sb-logo {
    width: 18px;
    height: 18px;
  }
  .fc-sb-goals {
    font-size: 0.8125rem;
  }
  .fc-sb-meta-primary {
    font-size: 0.62rem;
  }
}

/* ---------- Команды: ссылки и страница клуба ---------- */
a.fc-team-link {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
a.fc-team-link:hover {
  color: var(--fc-red, #c41e3a);
  border-bottom-color: rgba(196, 30, 58, 0.35);
}
.fc-match-stats-hero a.fc-team-link.text-white {
  color: #fff !important;
  border-bottom-color: rgba(255, 255, 255, 0.22);
}
.fc-match-stats-hero a.fc-team-link.text-white:hover {
  color: #fff !important;
  opacity: 0.92;
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

.fc-fixture-team-block--link {
  color: inherit;
  text-decoration: none;
  border-radius: 12px;
  padding: 0.35rem 0.5rem;
  margin: -0.35rem -0.5rem;
  transition: background 0.18s ease, transform 0.18s ease;
}
.fc-fixture-team-block--link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}
.fc-fixture-team-block--link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 2px;
}

.fc-team-page-hero {
  position: relative;
  border-radius: var(--fc-radius, 12px);
}
.fc-team-page-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a3d2e 0%, #0d2818 45%, #1e4d3a 100%);
  opacity: 1;
}
.fc-team-page-hero__body {
  z-index: 1;
}
.fc-team-page-hero__logo {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

/* Страница команды (/teams/{id}) — обзор (в духе страницы лиги) */
.fc-team-page {
  max-width: 100%;
}
.fc-team-hero-pro {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(34, 120, 78, 0.35);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.fc-team-hero-pro__glow {
  position: absolute;
  inset: 0;
  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%);
}
.fc-team-hero-pro__inner {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.35rem 1rem;
}
@media (min-width: 768px) {
  .fc-team-hero-pro__inner {
    padding: 1.5rem 1.75rem 1.15rem;
  }
}
.fc-team-hero-pro__main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
}
.fc-team-hero-pro__brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}
.fc-team-hero-pro__logo-ring {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  padding: 4px;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.06));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.fc-team-hero-pro__logo-ring--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  font-size: 2rem;
}
.fc-team-hero-pro__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  display: block;
}
.fc-team-hero-pro__title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff;
}
@media (min-width: 576px) {
  .fc-team-hero-pro__title {
    font-size: 1.65rem;
  }
}
.fc-team-hero-pro__meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.58);
  margin-top: 0.35rem !important;
}
.fc-team-hero-pro__dot {
  margin: 0 0.35rem;
}
.fc-team-hero-pro__coach {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.5rem !important;
}
.fc-team-hero-pro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.fc-team-hero-pro__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid transparent;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}
.fc-team-hero-pro__btn i {
  font-size: 0.85rem;
}
.fc-team-hero-pro__btn--primary {
  background: #fff;
  color: #0d3d28;
  border-color: rgba(255, 255, 255, 0.35);
}
.fc-team-hero-pro__btn--primary:hover {
  color: var(--fc-red-dark);
  transform: translateY(-1px);
}
.fc-team-hero-pro__btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.fc-team-hero-pro__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.fc-team-hero-pro__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.fc-team-hero-pro__stat {
  text-align: center;
  padding: 0.45rem 0.35rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex: 1 1 calc(50% - 0.25rem);
  min-width: 5.75rem;
}
@media (min-width: 768px) {
  .fc-team-hero-pro__stat {
    flex: 1 1 calc(33.333% - 0.35rem);
  }
}
@media (min-width: 1200px) {
  .fc-team-hero-pro__stat {
    flex: 1 1 0;
    min-width: 6.5rem;
  }
  .fc-team-hero-pro__stat--wide {
    flex: 1.85 1 0;
    min-width: 10rem;
  }
}
.fc-team-hero-pro__stat-v {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.15;
}
.fc-team-hero-pro__stat-v--sm {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
}
.fc-team-hero-pro__stat-l {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.15rem;
  display: block;
  line-height: 1.25;
}

.fc-team-panel {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.fc-team-panel__head {
  background: linear-gradient(180deg, rgba(22, 110, 70, 0.08) 0%, transparent 100%);
  border-bottom: 1px solid var(--fc-border);
}
.fc-team-venue-name {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.fc-team-dl__row {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 62%);
  gap: 0.35rem 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--fc-border);
  font-size: 0.78rem;
}
.fc-team-dl__row:last-child {
  border-bottom: 0;
}
.fc-team-dl dt {
  margin: 0;
  font-weight: 700;
  color: var(--fc-muted);
}
.fc-team-dl dd {
  margin: 0;
  color: var(--fc-text);
  font-weight: 600;
}

.fc-team-league-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--fc-border);
  background: var(--fc-surface);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--fc-text);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}
.fc-team-league-chip img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}
.fc-team-league-chip:hover {
  border-color: rgba(22, 110, 70, 0.4);
  background: rgba(22, 110, 70, 0.06);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: var(--fc-text);
}

.fc-team-table-scroll {
  max-height: min(70vh, 520px);
  overflow: auto;
}
.fc-team-standings-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fc-muted);
  background: linear-gradient(180deg, var(--fc-surface-2), #fff);
  box-shadow: 0 1px 0 var(--fc-border);
  white-space: nowrap;
  padding: 0.5rem 0.45rem;
}
.fc-team-standings-table tbody td {
  padding: 0.45rem 0.45rem;
  font-size: 0.8rem;
  vertical-align: middle;
}
.fc-team-standings-ico {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--fc-border);
  padding: 2px;
}
.fc-team-rk-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 6px;
  background: var(--fc-surface-2);
  color: var(--fc-muted);
}
.fc-team-form-pip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  font-size: 0.55rem;
  font-weight: 800;
  border-radius: 3px;
  color: #fff;
  line-height: 1;
}
.fc-team-form-pip.is-w {
  background: #198754;
}
.fc-team-form-pip.is-d {
  background: #f59f00;
  color: #222;
}
.fc-team-form-pip.is-l {
  background: var(--fc-red);
}

.fc-team-match-list .list-group-item {
  border-color: var(--fc-border);
}
.fc-team-match-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: 0.5rem 0.65rem;
  align-items: center;
  padding: 0.65rem 1rem !important;
  transition: background 0.15s ease;
}
.fc-team-match-row:hover {
  background: rgba(22, 110, 70, 0.04);
}
.fc-team-match-row--done {
  background: rgba(0, 0, 0, 0.015);
}
.fc-team-match-row__time {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--fc-muted);
  white-space: nowrap;
}
.fc-team-match-row__lg {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fc-red-dark);
  opacity: 0.85;
}
.fc-team-match-row--done .fc-team-match-row__lg {
  color: var(--fc-muted);
  font-weight: 700;
  opacity: 1;
}
.fc-team-match-row__pair {
  min-width: 0;
}
.fc-team-match-row__go {
  flex-shrink: 0;
}
.fc-team-match-tag {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: var(--fc-surface-2);
  color: var(--fc-muted);
  margin-right: 0.25rem;
}
.fc-team-match-tag--home {
  background: rgba(22, 110, 70, 0.12);
  color: #146b45;
}
.fc-team-match-tag--live {
  background: rgba(196, 30, 58, 0.15);
  color: var(--fc-red-dark);
  animation: fc-team-pulse 1.4s ease-in-out infinite;
}
@keyframes fc-team-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.65;
  }
}

.fc-team-squad-block {
  border-bottom: 1px solid var(--fc-border);
}
.fc-team-squad-block:last-child {
  border-bottom: 0;
}
.fc-team-squad-block__head {
  padding: 0.65rem 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--fc-text);
  background: linear-gradient(90deg, rgba(22, 110, 70, 0.12), rgba(22, 110, 70, 0.02));
  border-left: 3px solid #1a7a52;
}
.fc-team-squad-table thead th {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.fc-team-squad-table tbody td {
  font-size: 0.78rem;
  padding: 0.45rem 0.5rem;
  vertical-align: middle;
}
.fc-team-squad-tr:hover td {
  background: rgba(22, 110, 70, 0.05);
}
.fc-team-squad-ph {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--fc-border);
}
.fc-team-pos-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.1rem 0.35rem;
  font-size: 0.62rem;
  font-weight: 800;
  font-family: ui-monospace, monospace;
  border-radius: 6px;
  background: var(--fc-surface-2);
  color: var(--fc-muted);
}

a.fc-player-link {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
a.fc-player-link:hover {
  color: var(--fc-red, #c41e3a);
  border-bottom-color: rgba(196, 30, 58, 0.35);
}

/* Страница игрока (/players/{id}) */
.fc-player-page {
  max-width: 100%;
}
.fc-player-hero-pro {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(30, 72, 120, 0.35);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.fc-player-hero-pro__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 0% 0%, rgba(66, 133, 244, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 90% 70% at 100% 100%, rgba(180, 130, 40, 0.28) 0%, transparent 50%),
    linear-gradient(158deg, #0c1524 0%, #1a2d4a 42%, #0f1118 100%);
}
.fc-player-hero-pro__inner {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.35rem 1rem;
}
@media (min-width: 768px) {
  .fc-player-hero-pro__inner {
    padding: 1.5rem 1.75rem 1.15rem;
  }
}
.fc-player-hero-pro__main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
}
.fc-player-hero-pro__brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}
.fc-player-hero-pro__photo-ring {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  padding: 4px;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.4), rgba(255, 200, 120, 0.15));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.fc-player-hero-pro__photo-ring--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  font-size: 2.5rem;
}
.fc-player-hero-pro__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #1a1a1a;
  display: block;
}
.fc-player-hero-pro__title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff;
}
@media (min-width: 576px) {
  .fc-player-hero-pro__title {
    font-size: 1.65rem;
  }
}
.fc-player-hero-pro__legal {
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.25rem !important;
}
.fc-player-hero-pro__meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.58);
  margin-top: 0.4rem !important;
}
.fc-player-hero-pro__dot {
  margin: 0 0.35rem;
}
.fc-player-hero-pro__pos-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.12rem 0.4rem;
  font-size: 0.58rem;
  font-weight: 800;
  font-family: ui-monospace, monospace;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.fc-player-hero-pro__club {
  font-size: 0.82rem;
  margin-top: 0.55rem !important;
  color: rgba(255, 255, 255, 0.88);
}
.fc-player-hero-pro__club a:hover {
  text-decoration: underline !important;
}
.fc-player-hero-pro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.fc-player-hero-pro__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid transparent;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}
.fc-player-hero-pro__btn i {
  font-size: 0.85rem;
}
.fc-player-hero-pro__btn--primary {
  background: #fff;
  color: #153a5c;
  border-color: rgba(255, 255, 255, 0.35);
}
.fc-player-hero-pro__btn--primary:hover {
  color: var(--fc-red);
  transform: translateY(-1px);
}
.fc-player-hero-pro__btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.fc-player-hero-pro__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.fc-player-hero-pro__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.fc-player-hero-pro__stat {
  text-align: center;
  padding: 0.45rem 0.35rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex: 1 1 calc(50% - 0.25rem);
  min-width: 5.25rem;
}
@media (min-width: 768px) {
  .fc-player-hero-pro__stat {
    flex: 1 1 calc(33.333% - 0.35rem);
  }
}
@media (min-width: 1200px) {
  .fc-player-hero-pro__stat {
    flex: 1 1 0;
    min-width: 5.5rem;
  }
  .fc-player-hero-pro__stat--wide {
    flex: 1.6 1 0;
    min-width: 9rem;
  }
}
.fc-player-hero-pro__stat-v {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.15;
}
.fc-player-hero-pro__stat-v--sm {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
}
.fc-player-hero-pro__stat-l {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.15rem;
  display: block;
  line-height: 1.25;
}

.fc-player-panel {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.fc-player-panel__head {
  background: linear-gradient(180deg, rgba(30, 80, 140, 0.08) 0%, transparent 100%);
  border-bottom: 1px solid var(--fc-border);
}
.fc-player-dl__row {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 62%);
  gap: 0.35rem 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--fc-border);
  font-size: 0.78rem;
}
.fc-player-dl__row:last-child {
  border-bottom: 0;
}
.fc-player-dl dt {
  margin: 0;
  font-weight: 700;
  color: var(--fc-muted);
}
.fc-player-dl dd {
  margin: 0;
  color: var(--fc-text);
  font-weight: 600;
}

.fc-player-club-list__item + .fc-player-club-list__item {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--fc-border);
}
.fc-player-club-link:hover .fw-semibold {
  color: var(--fc-red) !important;
}
.fc-player-club-ico {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--fc-border);
  padding: 3px;
  flex-shrink: 0;
}

.fc-player-match-list .list-group-item {
  border-color: var(--fc-border);
}
.fc-player-match-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: 0.5rem 0.65rem;
  align-items: center;
  padding: 0.65rem 1rem !important;
  transition: background 0.15s ease;
}
.fc-player-match-row:hover {
  background: rgba(30, 80, 140, 0.05);
}
.fc-player-match-row__time {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--fc-muted);
  white-space: nowrap;
}
.fc-player-match-row__lg {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fc-red-dark);
  opacity: 0.85;
}
.fc-player-match-row__pair {
  min-width: 0;
}
.fc-player-match-row__go {
  flex-shrink: 0;
}
.fc-player-match-tag {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: var(--fc-surface-2);
  color: var(--fc-muted);
  margin-right: 0.25rem;
}
.fc-player-match-tag--start {
  background: rgba(30, 80, 140, 0.12);
  color: #1a4d8c;
}
.fc-player-match-tag--team {
  max-width: 9rem;
  background: rgba(0, 0, 0, 0.04);
  vertical-align: bottom;
}

.fc-player-events-table thead th {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding: 0.5rem 0.65rem;
}
.fc-player-events-table tbody td {
  padding: 0.45rem 0.65rem;
  font-size: 0.8rem;
  vertical-align: middle;
}
.fc-player-ev-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.45rem;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
}
.fc-player-ev-badge--goal {
  background: rgba(25, 135, 84, 0.15);
  color: #146c43;
}
.fc-player-ev-badge--assist {
  background: rgba(30, 80, 140, 0.12);
  color: #1a4d8c;
}

/* Страница лиги (/league/{id}) — обзор */
.fc-league-page {
  max-width: 100%;
}
.fc-league-hero-pro {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(196, 30, 58, 0.2);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.fc-league-hero-pro__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 0% 0%, rgba(196, 30, 58, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 90% 70% at 100% 100%, rgba(30, 40, 80, 0.35) 0%, transparent 50%),
    linear-gradient(155deg, #1a0a0e 0%, #2d1218 35%, #0f1118 100%);
}
.fc-league-hero-pro__inner {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.35rem 1rem;
}
@media (min-width: 768px) {
  .fc-league-hero-pro__inner {
    padding: 1.5rem 1.75rem 1.15rem;
  }
}
.fc-league-hero-pro__main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
}
.fc-league-hero-pro__brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}
.fc-league-hero-pro__logo-ring {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  padding: 4px;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.fc-league-hero-pro__logo-ring--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  font-size: 2rem;
}
.fc-league-hero-pro__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  display: block;
}
.fc-league-hero-pro__title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff;
}
@media (min-width: 576px) {
  .fc-league-hero-pro__title {
    font-size: 1.65rem;
  }
}
.fc-league-hero-pro__meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.35rem !important;
}
.fc-league-hero-pro__dot {
  margin: 0 0.35rem;
}
.fc-league-hero-pro__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}
.fc-league-hero-pro__pill {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
}
.fc-league-hero-pro__pill--muted {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
}
.fc-league-hero-pro__pill--accent {
  background: rgba(196, 30, 58, 0.45);
  border-color: rgba(255, 200, 210, 0.35);
}
.fc-league-hero-pro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.fc-league-hero-pro__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid transparent;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}
.fc-league-hero-pro__btn i {
  font-size: 0.85rem;
}
.fc-league-hero-pro__btn--primary {
  background: #fff;
  color: var(--fc-red-dark);
  border-color: rgba(255, 255, 255, 0.3);
}
.fc-league-hero-pro__btn--primary:hover {
  color: var(--fc-red);
  transform: translateY(-1px);
}
.fc-league-hero-pro__btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.fc-league-hero-pro__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.fc-league-hero-pro__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.fc-league-hero-pro__stat {
  text-align: center;
  padding: 0.45rem 0.35rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex: 1 1 calc(50% - 0.25rem);
  min-width: 5.75rem;
}
@media (min-width: 768px) {
  .fc-league-hero-pro__stat {
    flex: 1 1 calc(33.333% - 0.35rem);
  }
}
@media (min-width: 1200px) {
  .fc-league-hero-pro__stat {
    flex: 1 1 0;
    min-width: 6.5rem;
  }
  .fc-league-hero-pro__stat--wide {
    flex: 1.85 1 0;
    min-width: 10rem;
  }
}
.fc-league-hero-pro__stat-v {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.15;
}
.fc-league-hero-pro__stat-v--sm {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
}
.fc-league-hero-pro__stat-l {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.15rem;
  display: block;
  line-height: 1.25;
}

.fc-league-section-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.65rem;
  color: var(--fc-text);
}
.fc-league-insight {
  border: 1px solid rgba(196, 30, 58, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.fc-league-meta-dl__row {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 62%);
  gap: 0.35rem 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--fc-border);
  font-size: 0.78rem;
}
.fc-league-meta-dl__row:last-child {
  border-bottom: 0;
}
.fc-league-meta-dl dt {
  margin: 0;
  font-weight: 700;
  color: var(--fc-muted);
  text-transform: capitalize;
}
.fc-league-meta-dl dd {
  margin: 0;
  color: var(--fc-text);
  font-weight: 600;
}

.fc-league-panel {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.fc-league-panel__head {
  background: linear-gradient(180deg, rgba(196, 30, 58, 0.06) 0%, transparent 100%);
  border-bottom: 1px solid var(--fc-border);
}
.fc-league-table-scroll {
  max-height: min(70vh, 520px);
  overflow: auto;
}
.fc-league-standings-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fc-muted);
  background: linear-gradient(180deg, var(--fc-surface-2), #fff);
  box-shadow: 0 1px 0 var(--fc-border);
  white-space: nowrap;
  padding: 0.5rem 0.45rem;
}
.fc-league-standings-table tbody td {
  padding: 0.45rem 0.45rem;
  font-size: 0.8rem;
  vertical-align: middle;
}
.fc-league-standings-tr--p1 td {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.12), transparent);
}
.fc-league-standings-tr--p2 td {
  background: linear-gradient(90deg, rgba(140, 150, 160, 0.1), transparent);
}
.fc-league-standings-tr--p3 td {
  background: linear-gradient(90deg, rgba(184, 115, 51, 0.09), transparent);
}
.fc-league-standings-ico {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--fc-border);
  padding: 2px;
}
.fc-league-rk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 6px;
  background: var(--fc-surface-2);
  color: var(--fc-muted);
}
.fc-league-rk.is-1 {
  background: linear-gradient(135deg, #ffd54f, #ffb300);
  color: #3e2723;
}
.fc-league-rk.is-2 {
  background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
  color: #263238;
}
.fc-league-rk.is-3 {
  background: linear-gradient(135deg, #deb887, #cd853f);
  color: #3e2723;
}
.fc-league-form-pip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  font-size: 0.55rem;
  font-weight: 800;
  border-radius: 3px;
  color: #fff;
  line-height: 1;
}
.fc-league-form-pip.is-w {
  background: #198754;
}
.fc-league-form-pip.is-d {
  background: #f59f00;
  color: #222;
}
.fc-league-form-pip.is-l {
  background: var(--fc-red);
}
.fc-league-team-name-link:hover {
  color: var(--fc-red) !important;
}

.fc-league-outcomes {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.fc-league-outcomes__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  background: var(--fc-surface-2);
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.fc-league-outcomes__item--total {
  background: rgba(196, 30, 58, 0.07);
  border-color: rgba(196, 30, 58, 0.15);
}
.fc-league-outcomes__lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fc-muted);
}
.fc-league-outcomes__val {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--fc-text);
}

.fc-league-match-list .list-group-item {
  border-color: var(--fc-border);
}
.fc-league-match-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: 0.5rem 0.65rem;
  align-items: center;
  padding: 0.65rem 1rem !important;
}
.fc-league-match-row__time {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--fc-muted);
  white-space: nowrap;
}
.fc-league-match-row__pair {
  min-width: 0;
}
.fc-league-match-row__go {
  flex-shrink: 0;
}

.fc-league-squad-acc__item {
  border: none !important;
  border-bottom: 1px solid var(--fc-border) !important;
}
.fc-league-squad-acc__btn {
  display: flex !important;
  align-items: center !important;
  width: 100%;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.02) !important;
  box-shadow: none !important;
}
.fc-league-squad-acc__btn:not(.collapsed) {
  background: rgba(196, 30, 58, 0.06) !important;
  color: var(--fc-red-dark);
}
.fc-league-squad-acc__team {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.fc-league-squad-acc__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--fc-border);
  padding: 3px;
}
.fc-league-squad-acc__logo--ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fc-muted);
  background: var(--fc-surface-2);
}
.fc-league-squad-acc__name {
  flex: 1 1 auto;
  font-weight: 800;
}
.fc-league-squad-acc__count {
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(196, 30, 58, 0.12) !important;
  color: var(--fc-red-dark) !important;
}
.fc-league-squad-table thead th {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fc-league-squad-table tbody td {
  font-size: 0.78rem;
  padding: 0.4rem 0.5rem;
}
.fc-league-player-ph {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--fc-border);
}

.fc-league-mini-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
}
.fc-league-team-chip {
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
  border-color: var(--fc-border) !important;
  background: var(--fc-surface);
}
.fc-league-team-chip:hover {
  border-color: rgba(196, 30, 58, 0.35) !important;
  background: rgba(196, 30, 58, 0.04);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.fc-league-team-chip__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--fc-border);
  padding: 3px;
}
.fc-league-team-chip__logo--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fc-muted);
}

.fc-comp-card__title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.fc-comp-card__title-link:hover {
  color: var(--fc-red);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.fc-team-info-tile,
.fc-team-matches-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.fc-team-info-tile:hover,
.fc-team-matches-card:hover {
  box-shadow: 0 0.35rem 1.1rem rgba(0, 0, 0, 0.08);
}
.fc-team-mini-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.fc-team-tile {
  display: block;
  border-radius: var(--fc-radius, 12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  color: inherit;
}
.fc-team-tile:hover {
  border-color: rgba(196, 30, 58, 0.35);
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  color: inherit;
}
.fc-team-tile__inner {
  padding: 1rem 0.75rem;
  text-align: center;
}
.fc-team-tile__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin: 0 auto 0.5rem;
}
.fc-team-tile__ph {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.5rem;
  border-radius: 10px;
  background: #f1f3f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
}
.fc-team-tile__name {
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.25;
  display: block;
}
.fc-team-tile__meta {
  font-size: 0.68rem;
  color: var(--fc-muted, #868e96);
  margin-top: 0.2rem;
}

/* ---------- Матчи: расширенная строка (стадион, тур, судья) — /fixtures и «Ближайшие» ---------- */
.fc-sb-match-wrap {
  border-bottom: 1px solid var(--fc-border);
}
.fc-sb-match-wrap:last-child {
  border-bottom: none;
}
.fc-sb-match-wrap .fc-sb-row {
  border-bottom: none;
}
.fc-sb-match-wrap--click[data-href] {
  cursor: pointer;
}
.fc-sb-match-wrap--click[data-href]:focus-visible {
  outline: 2px solid var(--fc-red, #c41e3a);
  outline-offset: 2px;
}
.fc-sb-row-extras {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.2rem 0.65rem 0.5rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, transparent 100%);
  border-top: 1px dashed rgba(0, 0, 0, 0.06);
}
.fc-sb-extras-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
  min-width: 0;
  flex: 1 1 12rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--fc-muted);
  line-height: 1.3;
}
.fc-sb-extra {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
}
.fc-sb-extra i {
  opacity: 0.72;
  flex-shrink: 0;
  font-size: 0.65rem;
}
.fc-sb-extra--warn {
  color: #b45309;
}
.fc-sb-extra-link {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--fc-red);
  letter-spacing: 0.02em;
  padding: 0.1rem 0;
  border-radius: var(--fc-radius-sm);
  transition: color 0.15s ease, opacity 0.15s ease;
}
.fc-sb-extra-link:hover {
  color: var(--fc-red-dark);
  opacity: 0.92;
}

.fc-upcoming-day-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--fc-text);
  letter-spacing: 0.01em;
}

@media (max-width: 575.98px) {
  .fc-sb-row-extras {
    flex-direction: column;
    align-items: stretch;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }
  .fc-sb-extra-link {
    align-self: flex-end;
  }
}

/* ---------- Страница «Матчи»: расширенная карточка ---------- */
.fc-sb-extras-inner--rich {
  row-gap: 0.35rem;
}
.fc-sb-extra--kickoff {
  font-weight: 700;
  color: var(--fc-text);
}
.fc-sb-extra-cap {
  font-size: 0.62rem;
  font-weight: 600;
  white-space: nowrap;
}
.fc-sb-row-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding: 0.35rem 0.55rem 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(0, 0, 0, 0.015);
}
.fc-sb-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--fc-muted);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
}
.fc-sb-chip i {
  font-size: 0.6rem;
  opacity: 0.85;
}

.fc-sb-anal-sub {
  margin-top: 0.28rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--fc-muted);
  line-height: 1.25;
}
.fc-sb-anal-sub--home {
  justify-content: flex-end;
}
.fc-sb-anal-sub--away {
  justify-content: flex-start;
}

.fc-sb-row-analytics {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.35rem 0.65rem;
  align-items: start;
  padding: 0.35rem 0.55rem 0.45rem;
  background: linear-gradient(180deg, rgba(196, 30, 58, 0.06) 0%, rgba(196, 30, 58, 0.02) 100%);
  border-top: 1px dashed rgba(196, 30, 58, 0.15);
}
.fc-sb-anal-side--home {
  text-align: right;
}
.fc-sb-anal-side--away {
  text-align: left;
}
.fc-sb-anal-head {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--fc-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem 0.45rem;
  justify-content: flex-end;
  line-height: 1.2;
}
.fc-sb-anal-side--away .fc-sb-anal-head {
  justify-content: flex-start;
}
.fc-sb-anal-rank {
  color: var(--fc-text);
  font-weight: 800;
}
.fc-sb-anal-pts {
  font-variant-numeric: tabular-nums;
}
.fc-sb-anal-mp {
  opacity: 0.85;
}
.fc-sb-anal-form {
  margin-top: 0.22rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.12rem;
  flex-wrap: wrap;
}
.fc-sb-anal-form--away {
  justify-content: flex-start;
}
.fc-form-pip {
  font-size: 0.55rem;
  font-weight: 800;
  width: 0.95rem;
  height: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  color: #fff;
  line-height: 1;
}
.fc-form-pip--w {
  background: #198754;
}
.fc-form-pip--d {
  background: #f59f00;
  color: #222;
}
.fc-form-pip--l {
  background: var(--fc-red);
}
.fc-sb-anal-center {
  text-align: center;
  align-self: center;
  padding: 0 0.15rem;
  max-width: 11rem;
}
.fc-sb-anal-weather {
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
}
.fc-sb-anal-weather-cond {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  margin-top: 0.08rem;
}

@media (max-width: 575.98px) {
  .fc-sb-row-analytics {
    grid-template-columns: 1fr;
  }
  .fc-sb-anal-center {
    order: -1;
    max-width: none;
    padding-bottom: 0.25rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
    margin-bottom: 0.15rem;
  }
  .fc-sb-anal-side--home {
    text-align: left;
  }
  .fc-sb-anal-head {
    justify-content: flex-start;
  }
  .fc-sb-anal-form {
    justify-content: flex-start;
  }
  .fc-sb-anal-sub--home {
    justify-content: flex-start;
  }
}

/* Шапка: умный поиск */
.fc-site-search-dd {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  z-index: 1080;
  max-height: min(70vh, 22rem);
  overflow-y: auto;
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-sm);
  box-shadow: var(--fc-shadow-hover);
}
.fc-site-search-dd__section + .fc-site-search-dd__section {
  border-top: 1px solid var(--fc-border);
}
.fc-site-search-dd__label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fc-muted);
  padding: 0.35rem 0.6rem 0.15rem;
}
.fc-site-search-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.55rem;
  text-decoration: none;
  color: var(--fc-text);
  border-radius: 6px;
  margin: 0 0.25rem 0.15rem;
  transition: background 0.12s ease;
}
.fc-site-search-item:hover,
.fc-site-search-item:focus-visible {
  background: var(--fc-red-soft);
  color: var(--fc-text);
  outline: none;
}
.fc-site-search-item__main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}
.fc-site-search-item__logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--fc-surface-2);
}
.fc-site-search-item__ph {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--fc-surface-2);
  color: var(--fc-muted);
  font-size: 0.75rem;
  flex-shrink: 0;
}
.fc-site-search-item__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.fc-site-search-item__name {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fc-site-search-item__meta {
  font-size: 0.68rem;
  color: var(--fc-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fc-site-search-dd__empty,
.fc-site-search-dd__loading {
  margin: 0;
}
