/* assets/styles/club.css */

.club-wrap {
  background: #f7f3ee;
}

.club-wrap__container {
  padding: 20px;
}

.club-hero {
  position: relative;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #111;
  color: #fff;
}

.club-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  filter: none;
}
.club-hero__veil-left {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.35) 40%,
    rgba(0, 0, 0, 0) 70%
  );
}
.club-hero__veil-blur {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(2px);
  opacity: 0.3;
}

.club-hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 20px;
  padding: 24px;
}
.club-hero__logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}
.club-hero__title {
  margin: 0 0 6px 0;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
}
.club-hero__meta {
  opacity: 0.9;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.club-tabs {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 14px;
}
.club-tabs__list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.club-tabs__link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  border: 1px solid transparent;
}
.club-tabs__link:hover {
  background: #f6f6f6;
}
.club-tabs__link--active {
  background: #eef6ff;
  border-color: #cfe6ff;
}

.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}
.card h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.fixtures-list {
  display: grid;
  gap: 10px;
}
.fixture-row {
  display: grid;
  grid-template-columns: 1fr 140px 1fr 90px;
  gap: 10px;
  align-items: center;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 10px 12px;
}
.fixture-side {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fixture-side img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.fixture-score {
  text-align: center;
  font-weight: 700;
}

/* ============== SQUAD (правки по твоему ТЗ) =============== */

.group-title {
  margin: 18px 0 10px;
  font-size: 38px; /* было 18px */
  line-height: 1.2;
  font-weight: 800;
}

.squad-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)); /* было 4 */
  gap: 14px;
}

/* по мере сужения уменьшаем число карточек в строке */
@media (max-width: 1260px) {
  .squad-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .squad-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .squad-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .squad-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .squad-grid {
    grid-template-columns: 1fr;
  }
}

.player-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  width: 200px; /* было 272px */
  max-width: 100%;
  height: 250px; /* было 310px */
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  position: relative;
  text-decoration: none; /* чтобы не подчеркивался как ссылка */
  justify-self: center; /* центрируем карточку в своей колонке */
}

.player-photo-wrap {
  position: relative;
  overflow: hidden;
  display: flex; /* добавлено */
  justify-content: center; /* добавлено */
  align-items: flex-end; /* добавлено: прижать фото к низу */
}
.player-photo {
  width: 65%;
  height: 123px;
  object-fit: cover;
  transition: transform 0.2s ease;
}
.player-card:hover .player-photo {
  transform: scale(1.06);
}

/* номер без фона, синий крупный */
.player-num {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #0691c8;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 38px;
  font-weight: 700;
}

/* нижняя полоска с синим фоном и белым текстом */
.player-info {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0691c8; /* синий фон */
  color: #fff; /* белый текст по умолчанию */
}

/* логотип крупнее */
.player-clublogo {
  width: 42px; /* было 18px */
  height: 42px; /* было 18px */
  object-fit: contain;
}

.player-name {
  margin: 0;
  font-size: 17px; /* было 16px */
  font-weight: 800;
  color: #fff; /* белый */
  text-decoration: none;
}
.player-pos {
  margin: 0;
  font-size: 14px; /* было 12px */
  color: #fff; /* белый */
  text-decoration: none;
}

/* =========================
   TROPHIES (обновлённые стили)
   ========================= */

.trophies-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trophy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fafafa;
}
.trophy-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.trophy-icon {
  width: 64px; /* было 32px */
  height: 64px; /* было 32px */
  object-fit: contain;
  flex: 0 0 64px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
}
.trophy-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.trophy-label {
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trophy-years {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap; /* перенос на новые строки */
  gap: 6px 8px;
  max-width: 100%;
}
.trophy-year {
  display: inline-block; /* отдельный «бейдж» для каждого года */
  margin: 0;
  font-size: 12px;
  color: #555;
  padding: 2px 8px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 999px;
}

.trophy-badges {
  display: flex;
  flex-wrap: wrap; /* разрешаем перенос */
  gap: 8px; /* больше расстояние */
  align-items: center;
  justify-content: flex-end;
}
.badge {
  display: inline-block;
  padding: 20px 40px; /* крупнее бейджи */
  border-radius: 20px;
  font-size: 34px; /* крупнее шрифт */
  font-weight: 600;
  border: 1px solid #e5e5e5;
  background: #fff;
}
.badge-win {
  background: #e8ecf5;
  color: #241b5e;
  border-color: #e8ecf5;
}
.badge-run {
  background: #e3f2fd;
  color: #0d47a1;
  border-color: #bbdefb;
}
.badge-oth {
  background: #fffde7;
  color: #8d6e63;
  border-color: #fff9c4;
}

/* =========================
   STADIUM
   ========================= */

.stadium-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
}
@media (max-width: 900px) {
  .stadium-grid {
    grid-template-columns: 1fr;
  }
}
.stadium-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  background: #f7f7f7;
}
.stadium-row {
  padding: 8px 10px;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  background: #fafafa;
}

.muted {
  color: #666;
}

/* Кликаябельная строка матча на странице клуба */
.fixture-row.fixture-row--link {
  text-decoration: none;
  color: inherit;
  display: grid; /* чтобы сохранить грид-раскладку из .fixture-row */
}

.fixture-row.fixture-row--link:hover {
  background: #f9fafb;
}

.fixture-row.fixture-row--link:active {
  background: #f3f4f6;
}

.fixture-row.fixture-row--link {
  cursor: pointer;
}
