/* ====== Club Overview (вкладка Overview на странице клуба) ====== */

/* Контейнер: теперь три колонки 5/3/3 */
.club-overview {
  display: grid;
  grid-template-columns: 5fr 3fr 2fr; /* 5 / 3 / 3 */
  gap: 14px;
  padding: 0 20px;
}

/* Колонки */
.club-overview__left {
  min-height: 20px;
}
.club-overview__center {
  min-height: 20px;
}

/* --- Существующие карточки матчей справа --- */
.club-overview_list-matches {
  background: #fff;
  margin-bottom: 14px;
}
.club-overview_list-matches__title {
  margin: 0 0 10px 0;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
  padding: 5px;
  text-align: center;
  background: var(--club-primary-color-ui, #0e1c44);
  color: white;
}

.club-overview_list-matches__empty {
  margin: 2px 0 0 0;
}

.club-overview__fixtures-list {
  display: grid;
  gap: 10px;
  background: #f7f3ee;
}
.club-overview__fixture-row {
  display: grid;
  grid-template-rows: auto auto;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
}
.club-overview__fixture-row--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.club-overview__fixture-row--link:hover {
  background: #f9fafb;
}
.club-overview__fixture-row--link:active {
  background: #f3f4f6;
}

.club-overview__row-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 10px;
}

.club-overview__row-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
}

.club-overview__team {
  display: flex;
  align-items: center;
  gap: 7px;
}

.club-overview__team--home {
  justify-self: start;
}

.club-overview__team--away {
  justify-self: end;
}

.club-overview__team-name {
  display: inline-block;
  width: 60px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.club-overview__team-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex: 0 0 auto;
}

.club-overview__fixture-score {
  font-weight: 800;
  text-align: center;
  min-width: 40px;
  justify-self: center;
}

.club-overview__fixture-meta {
  text-align: right;
  font-size: 12px;
  color: #666;
  line-height: 1.3;
}

/* --- Левая колонка: статьи (классы уже используются в шаблоне) --- */
.club-overview__articles-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.club-overview__article {
  display: flex;
  gap: 20px;
  padding: 15px;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
  border-radius: 10px;
}
.club-overview__article-left {
  flex: 1;
}
.club-overview__date {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  color: #999;
  display: block;
  margin-bottom: 5px;
}
.club-overview__title {
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin: 0 0 10px 0;
}
.club-overview__title a {
  color: #000;
  text-decoration: none;
}
.club-overview__excerpt {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #000;
  margin: 0;
}
.club-overview__image {
  width: 150px;
  height: auto;
  object-fit: cover;
  flex: 1;
}
.club-overview__articles-empty {
  color: #666;
}

.club-overview__news-title,
.club-overview__article-title {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 700;
  padding: 5px;
  background: var(--club-primary-color-ui, #0e1c44);
  color: white;
  text-align: center;
}

.club-overview__news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.club-overview__news-item {
  padding: 10px 15px;
  background-color: #fff;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: baseline;
}
.club-overview__news-time {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  color: #999;
}
.club-overview__news-link {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  color: #000;
  text-decoration: none;
}
.club-overview__news-link:hover {
  text-decoration: underline;
}
.club-overview__news-empty {
  color: #666;
}

/* Адаптивность */
@media (max-width: 1000px) {
  .club-overview {
    grid-template-columns: 1fr; /* Стекование колонок */
  }
  .club-overview__right {
    order: 3;
  }
  .club-overview__center {
    order: 2;
  }
  .club-overview__left {
    order: 1;
  }
}

@media (max-width: 640px) {
  .club-overview__row-top {
    gap: 8px;
  }
  .club-overview__fixture-score {
    min-width: 64px;
  }
  .club-overview__fixture-meta {
    text-align: left;
  }
  .club-overview__row-bottom {
    justify-content: center;
  }

  .club-overview__article {
    flex-direction: column;
  }
  .club-overview__image {
    width: 100%;
  }
}

.club-overview-pager {
  display: flex;
  justify-content: center;
  margin: 16px 0 6px;
}
.club-overview-pager__list {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.club-overview-pager__item {
  line-height: 1;
}
.club-overview-pager__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-weight: 600;
  font-size: 14px;
  background: #fff;
}
.club-overview-pager__link:hover {
  background: #f6f6f6;
}
.club-overview-pager__link--active {
  background: var(--club-primary-color-ui, #0e1c44);
  color: #fff;
  border-color: #111;
  pointer-events: none;
}
