/* Контейнер страницы */
.calendar-page {
  background: #f7f3ee;
}

.calendar-page__container {
  padding: 20px;
}

/* Карточка, как в stats */
.calendar-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 0;
}

/* Двухколоночный грид */
.calendar-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding: 14px;
}

@media (max-width: 980px) {
  .calendar-grid {
    grid-template-columns: 1fr;
  }
}

/* Правая колонка */
.calendar-info {
  border: 1px dashed #e8e8e8;
  border-radius: 10px;
  min-height: 200px;
}

/* --- Минималистичная шапка --- */
.calendar-card__header {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #fafafa;
}

/* Контейнер фильтра */
.calendar-filter {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Надпись “Тур:” */
.calendar-filter__label {
  font-size: 15px;
  color: #333;
  font-weight: 500;
}

/* --- Минималистичный селект --- */
.calendar-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  border-bottom: 1px solid #b0b0b0;
  padding: 6px 28px 6px 4px;
  background-color: transparent;
  font-size: 15px;
  color: #222;
  cursor: pointer;
  outline: none;
  position: relative;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background-color 0.15s ease;
  width: 190px;
}

/* Стрелка вниз */
.calendar-select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 12px 8px;
}

/* hover — чуть темнее линия и текст */
.calendar-select:hover {
  border-bottom-color: #222;
  color: #111;
}

/* focus — подчёркивание поярче и лёгкий подсвет */
.calendar-select:focus {
  border-bottom-color: #000;
  background-color: #f5f5f5;
}

/* Стили для пунктов списка (на что браузер позволит повлиять) */
.calendar-select option {
  font-size: 15px;
  padding: 6px 10px;
  background-color: #ffffff;
  color: #111;
}

/* Кнопка для noscript — минимализм */
.calendar-submit {
  border: none;
  padding: 6px 12px;
  background: #eee;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.calendar-submit:hover {
  background: #e2e2e2;
}

/* ===== Календарь туров (дизайн как на странице клуба) ===== */

.fixtures-list {
  border: 1px solid #f0f0f0;
  overflow: hidden;
  background: #ffffff;
  font-size: 14px;
}

/* Шапка таблицы */
.fixtures-header {
  display: grid;
  grid-template-columns: 80px 150px 1fr;
  column-gap: 10px;
  padding: 8px 12px;
  background: #0e1c44;
  color: #ffffff;
  font-weight: 700;
}

.fixtures-header__cell {
  text-align: left;
}

.fixtures-header__cell--match {
  text-align: center;
}

/* Строка матча */
.fixtures-row {
  display: grid;
  grid-template-columns: 80px 150px 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 8px 12px;
  text-decoration: none;
  color: inherit;
}

/* Чередование цветов строк */
.fixtures-body .fixtures-row:nth-child(odd) {
  background: #e8e8e8;
}

.fixtures-body .fixtures-row:nth-child(even) {
  background: #ffffff;
}

/* Hover/active состояния */
.fixture-row.fixture-row--link:hover {
  background: #f9fafb;
}

.fixture-row.fixture-row--link:active {
  background: #f3f4f6;
}

.fixture-row.fixture-row--link {
  cursor: pointer;
}

/* Ячейки */
.fixtures-cell--round,
.fixtures-cell--date {
  white-space: nowrap;
  font-size: 13px;
}

.fixtures-cell--match {
  overflow: hidden;
}

/* Внутри ячейки "Матч" */
.fixtures-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
}

/* Стороны матча и счёт */
.fixture-side {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fixture-side span {
  font-weight: 600;
}

.fixture-side--away {
  justify-content: flex-end;
  text-align: right;
}

.fixture-score {
  text-align: center;
  font-weight: 700;
  min-width: 40px;
}

.fixture-side img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
