.ss-search .events-filters {
  margin-bottom: 0;
}

.ss-search[data-collapsible-filters] .ss-filters-panel__body {
  margin-top: 0;
}

.events-filters {
  padding: 1.25rem 1.5rem 1.25rem;
  margin-bottom: 1.75rem;
  border-radius: 12px;
  box-shadow: none;
}

.events-filters__grid {
  display: grid;
  gap: 1rem 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Статус на всю ширину в мобильной сетке 2×N */
@media (max-width: 767px) {
  .events-filters__field--wide {
    grid-column: 1 / -1;
  }
}

/* Один брейкпоинт с карточками и шапкой сайта (768px) — без «прыжков» между 560 и 720 */
@media (min-width: 768px) {
  .events-filters__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .events-filters__field--wide {
    grid-column: span 2;
  }
}

.events-filters__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #5c6370;
  margin-bottom: 0.35rem;
}

.events-filters__control {
  width: 100%;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font-size: 0.9375rem;
  background: #fff;
  color: #1a1d24;
}

.events-filters__status-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.75rem;
}

.events-filters__status-actions > .events-filters__control {
  flex: 1 1 auto;
  width: auto;
  min-width: 10rem;
  max-width: none;
}

.events-filters__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.events-filters__actions--inline {
  margin-top: 0;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

@media (max-width: 480px) {
  .events-filters__status-actions {
    flex-wrap: wrap;
  }

  .events-filters__status-actions > .events-filters__control {
    width: 100%;
    flex: 1 1 100%;
    max-width: 100%;
  }

  .events-filters__actions--inline {
    flex-wrap: wrap;
    width: 100%;
  }
}

.events-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.events-btn--primary {
  background: #ff8c00;
  color: #fff;
}

.events-btn--primary:hover {
  filter: brightness(1.05);
}

.events-btn--ghost {
  background: #fff;
  color: #3a4150;
  border: 1px solid #e2e5ea;
}

.events-btn--ghost:hover {
  background: #f8f9fb;
}

.events-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.events-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.events-card__main-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

@media (min-width: 768px) {
  .events-card__main-link {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 768px) {
  .events-card {
    flex-direction: row;
    align-items: center;
  }
}

.events-card__media {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  background: #e8eaef;
  overflow: hidden;
  border-radius: 8px;
  align-self: center;
}

.events-card__img {
  width: 200px;
  height: 200px;
  max-width: 100%;
  object-fit: cover;
  display: block;
}

.events-card__placeholder {
  width: 200px;
  height: 200px;
  min-height: 0;
  background: #13243e url("/static/images/placeholders/champ.svg") center/42% no-repeat;
}

.events-card__body {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.events-card__name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Как в сводной карточке профиля (athlete-profile-meta в trainer_teams.css) */
.events-card .athlete-profile-meta.events-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.45rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-profile-meta);
  line-height: 1.5;
  margin-top: 0.35rem;
}

.events-card .athlete-profile-meta.events-card__meta .athlete-profile-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.events-card .athlete-profile-meta.events-card__meta .athlete-profile-meta__item > span:last-child {
  word-break: break-word;
}

.events-card .athlete-profile-meta.events-card__meta .athlete-profile-meta__icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: var(--color-profile-meta);
}

.events-card__sport-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  padding-top: 0.55rem;
  border-top: 1px solid #eef2f7;
}

.events-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  max-width: 100%;
  line-height: 1.25;
  font-weight: 600;
}

.events-tag--status {
  flex-shrink: 0;
}

.events-tag--status-open {
  background: #e6f7f2;
  color: #0a7d62;
}

.events-tag--status-closed {
  background: #fff4e5;
  color: #b45309;
}

.events-tag--status-finished {
  background: #eef1f5;
  color: #5c6773;
}

.events-tag--status-default {
  background: #f3f4f6;
  color: #6b7280;
}

.events-tag--sport {
  background: #e8f4ff;
  color: #4d8ee8;
}

.events-tag--age {
  background: #f1f5f9;
  color: #475569;
}

.events-card__footer {
  flex-shrink: 0;
  margin-top: 0;
  padding: 0.75rem 1.25rem 1.15rem;
}

@media (min-width: 768px) {
  .events-card__footer {
    padding: 1.25rem 1.25rem 1.25rem 0.75rem;
    align-self: center;
  }
}

.events-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.35rem;
  border-radius: 8px;
  background: #ff8c00;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.events-cta:hover {
  filter: brightness(1.05);
}

.events-empty {
  padding: 2rem 1.5rem;
  text-align: center;
  color: #5c6370;
  border-radius: 12px;
}
