/* ============================================================
   8match — страница команды/сборной (resources/views/teams/show.blade.php)
   Подключается поверх redesign.css + redesign-pages.css (не редактируем).
   ============================================================ */

/* ---------- Двухколоночный макет: сайдбар + основной контент ---------- */
.rdx-layout{display:grid;grid-template-columns:296px 1fr;gap:24px;align-items:start}
.rdx-side{display:flex;flex-direction:column;gap:18px;min-width:0}
.rdx-side .rd-panel{margin-bottom:0}
.rdx-side h3{margin:0 0 14px;font-size:12px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:var(--rd-muted)}

/* ---------- Факты (строка «подпись — значение») ---------- */
.rdx-facts{display:flex;flex-direction:column;gap:11px}
.rdx-facts__row{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:13px}
.rdx-facts__row span:first-child{color:var(--rd-muted);font-weight:600}
.rdx-facts__row span:last-child{font-weight:800;color:var(--rd-ink);text-align:right}
.rdx-facts__row span:last-child a{color:var(--rd-ink)}
.rdx-facts__row span:last-child a:hover{color:var(--rd-coral)}

/* ---------- Мини-список результатов (сайдбар) ---------- */
.rdx-mini{display:flex;flex-direction:column}
.rdx-mini__row{display:flex;align-items:center;gap:9px;padding:9px 0;border-bottom:1px solid var(--rd-line);text-decoration:none;color:inherit}
.rdx-mini__row:last-child{border-bottom:0}
.rdx-mini__row:hover .rdx-mini__op{color:var(--rd-coral)}
.rdx-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}
.rdx-dot--w{background:var(--rd-green)}
.rdx-dot--d{background:var(--rd-grey)}
.rdx-dot--l{background:var(--rd-coral)}
.rdx-mini img{width:18px;height:13px;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.08);flex-shrink:0}
.rdx-mini__op{flex:1;min-width:0;font-size:13px;font-weight:700;color:var(--rd-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rdx-mini__score{font-size:13px;font-weight:800;color:var(--rd-ink);font-variant-numeric:tabular-nums;flex-shrink:0}

/* ---------- Таблица состава: строки-разделители по амплуа ---------- */
.team-squad__group td{background:var(--rd-bg-soft)!important;font-size:11px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:var(--rd-muted);padding:9px 14px!important}
.team-squad__group td b{color:var(--rd-ink);font-size:12px}

/* ---------- Строка матча в основной таблице ---------- */
/* Строка матча в таблице команды: флаг стоит СО СТОРОНЫ счёта, поэтому у хозяев
   он справа от названия, у соперника — слева. Так счёт остаётся осью строки. */
.team-match__side{display:inline-flex;align-items:center;gap:8px;justify-content:inherit}
.team-match__side img{width:20px;height:14px;flex:0 0 auto;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
.team-match__side b{font-weight:700;color:var(--rd-ink)}
.rd-table--match .c-home .team-match__side{flex-direction:row}
.rd-table--match .c-away .team-match__side{flex-direction:row}

@media (max-width:900px){
  .rdx-layout{grid-template-columns:1fr}
}

/* ---------------------------------------------------------------
   ПЕРЕКЛЮЧАТЕЛЬ РОЗЫГРЫШЕЙ + ТРЕНЕР В САЙДБАРЕ
   --------------------------------------------------------------- */
.team-editions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 0}
.team-editions__label{font-size:13px;font-weight:700;color:var(--rd-muted);margin-right:4px}
.team-edition{
  display:inline-flex;align-items:center;padding:7px 16px;border-radius:20px;
  border:1px solid var(--rd-line);background:#fff;
  font-size:15px;font-weight:800;color:var(--rd-ink);text-decoration:none;
  transition:border-color .15s ease,color .15s ease,background .15s ease;
}
.team-edition:hover{border-color:var(--rd-coral);color:var(--rd-coral)}
.team-edition.is-active{background:var(--rd-coral);border-color:var(--rd-coral);color:#fff}

.team-coach{display:block;margin-top:12px;text-decoration:none;color:inherit}
.team-coach + .team-coach{margin-top:18px;padding-top:18px;border-top:1px solid var(--rd-line)}
.team-coach__photo{width:100%;aspect-ratio:1;border-radius:10px}
.team-coach__name{display:flex;align-items:center;gap:9px;margin-top:12px}
.team-coach__name img{width:22px;height:15px;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.08);flex-shrink:0}
.team-coach__name b{font-size:16px;font-weight:800;color:var(--rd-ink);line-height:1.25}
.team-coach:hover .team-coach__name b{color:var(--rd-coral)}

/* Годы, в которые клуб носил прежнее имя. */
.rdx-facts__note { color: var(--muted, #7b8794); font-size: .85em; }
