.content__search {
  margin: 50px 0;
}

.search__club {
  margin: 10px 0 0 0;
  /* width: 70px; */
  height: 70px;
}
.search__flag {
  width: 70px;
  height: 45px;
}

#serchformu{
  width: 90%;
}
#searchformu{
  width: 105%;
  color: #011303;
  /* border-radius: 30px; */
  background: #fcfcfc;
  /* font-family: Inter; */
  /* font-size: 14px; */
  /* font-style: italic; */
  /* font-weight: 500; */
  /* line-height: normal; */
  /* padding: 0 0 0 20px; */
}
.search__block {
  margin: 30px 0;
  width: 100%;
  height: 100%;
  background: #FFF;
  border-radius: 10px;
  padding: 10px;
}
/*.search__navigation {*/
/*  display: flex;*/
/*  justify-content: space-between;*/
/*}*/
/*.search__navigation select,*/
/*.search__navigation .hasDatepicker*/
/* {*/
/*  width: 168px;*/
/*  color: #242121;*/
/*  height: 40px;*/
/*  border-radius: 30px;*/
/*  background: rgb(232, 240, 254);*/
/*  font-family: Inter;*/
/*  font-size: 16px;*/
/*  font-style: italic;*/
/*  font-weight: 500;*/
/*  line-height: normal;*/
/*  padding: 0 0 0 20px;*/
/*}*/

#club_meta{
  font-size: 14px !important;

}
.search__table {
  margin: 20px 0;
  border-collapse: collapse;
  text-align: center;
  height: 100%;
  width: 100%;
}
.search__table tr th a {
  font-size: 16px;
  color: #323232;
  font-family: Inter;
  font-style: italic;
  font-weight: 600;
  line-height: normal;
}
.search__table tr th {
  font-size: 16px;
  color: #323232;
  font-family: Inter;
  font-style: italic;
  font-weight: 600;
  line-height: normal;
}
.search__table tr th div span {
  font-size: 16px;
  color: #323232;
  font-family: Inter;
  font-style: italic;
  font-weight: 600;
  line-height: normal;
}

.navigation__age {
  display: flex;
  align-items: center;
  flex-direction: column;
}
.navigation__age span {
  padding: 4px;
  font-size: 16px;
  color: #323232;
  font-family: Inter;
  font-style: italic;
  font-weight: 600;
  line-height: normal;
}
.navigation__button {
  color: #FFF;
  background-color: #224523;
}

.age__from {
  margin: 10px 0;
  display: flex;
  width: 100%;
  justify-content: space-between;
}
.age__from label {
  margin: 0 10px 0 0;
  font-size: 16px;
  color: #323232;
  font-family: Inter;
  font-style: italic;
  font-weight: 600;
  line-height: normal;
}
.age__from input {
  color: #242121;
  border-radius: 30px;
  background: rgb(232, 240, 254);
  font-family: Inter;
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
  line-height: normal;
  padding: 0 0 0 20px;
}
.age__to {
  display: flex;
  width: 100%;
  justify-content: space-between;
}
.age__to label {
  font-size: 16px;
  color: #FFF;
  font-family: Inter;
  font-style: italic;
  font-weight: 600;
  line-height: normal;
}
.age__to input {
  color: #242121;
  border-radius: 30px;
  background: rgb(232, 240, 254);
  font-family: Inter;
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
  line-height: normal;
  padding: 0 0 0 20px;
}

.player__avatar-name {
  display: flex;
  align-items: center;
}
.player__avatar-name img {
  max-width: 60px;
  max-height: 66px;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 40%;
}
.player__name {
  margin: 0 0 0 10px;
}
.player__name span a {
  font-size: 16px;
  color: #323232;
  font-family: Inter;
  font-style: italic;
  font-weight: 700;
  line-height: normal;
}
.player__name p a {
  font-size: 14px;
  color: #323232;
  font-family: Inter;
  font-style: italic;
  font-weight: 500;
  line-height: normal;
}

.search__table tr th .club__player__name{
  font-style: normal;
  margin-top: 5px;
  font-size: smaller;
}

.club__avatar-name {
  display: flex;
  align-items: center;
}
.club__avatar-name .club_ava_img{
  width: 65px;
  height: 65px ;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.club__avatar-name img {
  width: 57px;
  height: 57px;
  border-radius: 50%;
}

.represents__column {
  display: flex;
  flex-direction: column;
}

.league__name-img {
  display: flex;
  align-items: center;
}
.league__name-img span {
  font-size: 13px;
  color: #323232;
  font-family: Inter;
  font-style: italic;
  font-weight: 500;
  line-height: normal;
}
.league__name-img img {
  margin: 0 0 0 10px;
  width: 50px;
  height: 30px;
}

/*.pagination {*/
/*  display: flex;*/
/*  width: 100%;*/
/*  justify-content: center;*/
/*}*/
.pagination__block {
  /*cursor: pointer;*/
  /*margin: 0 5px;*/
  /*display: flex;*/
  /*align-items: center;*/
  /*justify-content: center;*/
  /*border-radius: 50%;*/
  width: 24px;
  /*height: 24px;*/
  /*border: 2px solid #224523;*/
}
/*.pagination__block a {*/
/*  color: #323232;*/
/*  font-size: 14px;*/
/*  line-height: 25px;*/
/*  font-family: Inter;*/
/*  font-style: italic;*/
/*  font-weight: 400;*/
/*}*/
/*.pagination .first a,*/
/*.pagination .last a{*/
/*  color: #105409;*/
/*  font-size: 14px;*/
/*  line-height: 25px;*/
/*  font-family: Inter;*/
/*  font-style: italic bold;*/
/*  font-weight: 400;*/
/*}*/

li.first.disabled {
  display: none;
}
li.last.disabled {
  display: none;
}

/*.pagination__block.active {*/
/*  background: #224523;*/
/*}*/
.pagination__block.active a {
  color: #FFF;
  font-weight: 700;
}
.search__table {
  width: 100%;
  border-collapse: collapse;
  border: 3px solid #1C291D;
}

.search__table th,
.search__table td {
  padding: 10px;
  text-align: center;
  border: 2px solid #1C291D;
}
.chat__right {
  flex: 1; /* Оставшееся пространство занимает правая панель */
  position: relative; /* Позиционируем для использования абсолютного позиционирования внутри */
}

.chat__navigation {
  /* position: absolute; 
  bottom: 0;  */
  width: 100%; /* Занимаем всю ширину родительского контейнера */
}


.additional-buttons {
  display: flex;
  align-items: center;
}

@media (max-width: 930px) {
  /*.capacity{*/
  /*  display: none;*/
  /*}*/

  .search__table tr th a {
    font-size: 12px;
    color: #323232;
    font-family: Inter;
    font-style: italic;
    font-weight: 600;
    line-height: normal;
  }
  .search__table tr th {
    font-size: 12px;
    color: #323232;
    font-family: Inter;
    font-style: italic;
    font-weight: 600;
    line-height: normal;
  }
  .search__table tr th div span {
    font-size: 12px;
    color: #323232;
    font-family: Inter;
    font-style: italic;
    font-weight: 600;
    line-height: normal;
  }

  .stick-bottom {
    max-width:540px !important;
  }

  /*.search__navigation {*/
  /*  display: flex;*/
  /*  justify-content: space-between;*/
  /*  flex-direction: column;*/
  /*  align-items: baseline;*/
  /*}*/
  .search__navigation .navigation__button {
    margin: 10px 0;
  }
  .navigation__age {
    margin: 10px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 530px) {
  .player__avatar-name {
    display: flex;
    align-items: center;
    flex-direction: column;
  }
  .player__name {
    margin: 0;
  }
  .club__avatar-name {
    display: flex;
    align-items: center;
    flex-direction: column;
  }
  .search__club {
    margin: 10px 0 0 0;
    width: 50px;
    /* height: 50px; */
  }
  .search__flag {
    width: 40px;
    height: 25px;
  }
}
@media (max-width: 570px) {
  .search__block {
    overflow: scroll;
  }

  .search__table tr th a {
    font-size: 10px;
    color: #323232;
    font-family: Inter;
    font-style: italic;
    font-weight: 600;
    line-height: normal;
  }
  .search__table tr th {
    font-size: 10px;
    color: #323232;
    font-family: Inter;
    font-style: italic;
    font-weight: 600;
    line-height: normal;
  }
  .search__table tr th div span {
    font-size: 10px;
    color: #323232;
    font-family: Inter;
    font-style: italic;
    font-weight: 600;
    line-height: normal;
  }
}
@media (max-width: 390px) {
  .player__avatar-name img {
    width: 47px;
    height: 47px;
  }
  .search__table tr th div span {
    font-size: 10px;
  }
  .search__table tr th a {
    font-size: 11px;
  }
}
@media (max-width: 350px) {
  .age__from input,
  .age__to input {
    width: 180px;
  }
  .search__club {
    width: 30px;
    height: 30px;
  }
  .search__table tr th {
    font-size: 12px;
  }
}


/* ===== ТОЛЬКО КОНТЕНТ – ДЕСКТОП БЕЗ ИЗМЕНЕНИЙ, МОБИЛЬНЫЕ ОТСТУПЫ ТОЧНО ПО ЗАДАЧЕ ===== */
:root {
  --primary-color: #00A550;
  --secondary-color: #003B26;
  --accent-color: #008C45;
  --light-bg: #f8f9fa;
  --border-color: #e0e0e0;
  --text-primary: #222;
  --text-secondary: #444;
  --border-radius: 8px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.search span, a, li, label, h1 {
  font-family: 'Inter', sans-serif;
}
.search * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}
.content.search {
  background: #f5f5f5;
  color: var(--text-primary);
  line-height: 1.5;
  padding: 2rem 1rem;
}
/*body {*/
/*  background-color: #f5f5f5;*/
/*  color: var(--text-primary);*/
/*  line-height: 1.5;*/
/*  padding: 2rem 1rem;*/
/*}*/

.content__container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Заголовок страницы */
.search-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--light-bg);
}

.search-header h1 {
  font-family: 'Inter', sans-serif;
  color: var(--secondary-color);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.results-count {
  background: rgba(0, 165, 80, 0.1);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-block;
}

/* ===== ПАНЕЛЬ ФИЛЬТРОВ – ДЕСКТОП (БЕЗ ИЗМЕНЕНИЙ) ===== */
.filters-panel {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1.5rem; /* десктопный отступ между колонками */
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 180px;
  flex: 1 1 180px;
}

.filter-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-select {
  -webkit-appearance: menulist-textfield;
  height: 45px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.95rem;
  background: white;
  transition: border 0.2s, box-shadow 0.2s;
  color: var(--text-primary);
  width: 100%;
}

.filter-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0,165,80,0.1);
  outline: none;
}

.filter-select option:checked {
  background: var(--primary-color) linear-gradient(0deg, var(--primary-color) 0%, var(--primary-color) 100%);
  color: white;
}

.filter-select[multiple] {
  min-height: auto;
  height: auto;
  padding: 0.4rem 0.8rem;
}

.filter-select[multiple] option {
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  margin: 2px 0;
}

/* Чипсы выбранных стран */
.selected-countries {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  min-height: 28px;
  align-items: center;
}
/* Чипсы для выбранных позиций и стран */
.selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  min-height: 28px;
  align-items: center;
}
.position-chip,
.country-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0.2rem 0.8rem 0.2rem 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.position-chip:hover,
.country-chip:hover {
  background: #ffe6e6;
  border-color: #ff9999;
}

.country-chip img {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.position-chip .remove-icon {
  font-weight: 700;
  margin-left: 0.2rem;
  color: #666;
}
.empty-selection {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-style: italic;
}

/* Фильтр Tier */
.tier-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tier-range select {
  flex: 1 1 0;
  min-width: 90px;
}
.age-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.age-range .filter-select {
  flex: 1 1 0;
  min-width: 90px;
}
/* Возраст и вместимость */
.age-badge, .capacity-badge {
  background: var(--light-bg);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
/* Радио-группа Gender */
.gender-radio-group {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.gender-radio-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-transform: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  letter-spacing: normal;
  cursor: pointer;
  margin: 0;
}

.gender-radio-group input[type="radio"] {
  accent-color: var(--primary-color);
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

.filter-hint {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  line-height: 1.2;
}

/* Колонка Gender + Apply – десктоп (без изменений) */
.filter-group.gender-apply {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gender-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.apply-button-wrapper {
  margin-top: auto;
}

.apply-button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.7rem 1.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.apply-button:hover {
  background: var(--accent-color);
}
.capacity-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.capacity-range .filter-select {
  flex: 1 1 0;
  min-width: 90px;
}
/* ===== ТАБЛИЦА РЕЗУЛЬТАТОВ (без изменений) ===== */
.search-section {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  overflow: hidden;
}

.section-header {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: white;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-header h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
}
.results-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}
.content__search .results-count {
  color: white;
}
.results-table {
  width: 100%;
  border-collapse: collapse;
}

.results-table thead {
  background-color: var(--light-bg);
}

.results-table th {
  padding: 1rem 1.2rem;
  text-align: left;
  font-weight: 600;
  color: var(--secondary-color);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border-color);
}

.results-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s;
  /*cursor: pointer;*/
}

.results-table tbody tr:hover {
  background-color: rgba(0, 165, 80, 0.05);
}

.results-table td {
  padding: 1rem 1.2rem;
  vertical-align: middle;
}

.club-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.club-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.club-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.club-details {
  display: flex;
  gap: 0.5rem;
}
.club-details h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.club-details h3 a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.2s;
}

.club-details h3 a:hover {
  color: var(--primary-color);
}

.country-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.country-flag {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.country-name {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.league-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.league-name {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.tier-badge {
  background: var(--light-bg);
  color: var(--text-secondary);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
}
.player-info {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.player-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  flex-shrink: 0;
}

.player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.player-details {
    flex: 1;
}

.player-name-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.player-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.player-name:hover {
    color: var(--primary-color);
}

.player-positions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.position-badge {
    background: rgba(0, 165, 80, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: help;
    position: relative;
}

.pagination-container {
  display: flex;
  justify-content: center;
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.pagination {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  color: var(--text-primary);
}

.pagination .active a {
  background: var(--primary-color);
  color: white;
}

.pagination a:hover {
  background: var(--light-bg);
  color: var(--primary-color);
}

.pagination .disabled span {
  color: #aaa;
  cursor: not-allowed;
}
/* Стили для инфраструктуры */
.facility-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.facility-info h3 a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.2s;
}

.facility-info h3 a:hover {
  color: var(--primary-color);
}

.facility-location {
  color: var(--text-secondary);
  font-size: 0.85rem;
}
/* Возраст и вместимость */
.age-badge, .capacity-badge {
  background: var(--light-bg);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.capacity-badge.highlight {
  background: rgba(0, 165, 80, 0.1);
  color: var(--primary-color);
  font-weight: 600;
}

/* Поверхность стадиона */
.surface-badge {
  background: rgba(0, 165, 80, 0.1);
  color: var(--primary-color);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.85rem;
}
.show-mob {
  display: none;
}
.hidden-mob {
  display: table-cell;
}
.club-logo .club_ava_img {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
}
.section-header .results-count {
  color: white;
}
#from:before,
#to:before {
  content: attr(placeholder);
  color: green;
}
/* ===== МОБИЛЬНАЯ ВЕРСИЯ – ТОЧНОЕ УПРАВЛЕНИЕ ЗАЗОРАМИ ===== */
@media (max-width: 768px) {
  .show-mob {
    display: block;
  }
  .hidden-mob {
    display: none;
  }
  .content.search {
    padding: 0;
  }
  .search-header {
    margin-bottom: 1rem;
    padding: 1rem 0 0 1rem;
  }
  .filters-panel {
    display: flex;
    border-radius: unset;
    flex-direction: column;
    gap: 0; /* убираем автоматический gap, управляем через margin */
    padding: 1.2rem;
  }
  .search-section {
    border-radius: unset;
  }
  .filter-group {
    flex: 1 1 75px;
    min-width: 100%;
    margin-bottom: 0; /* сброс */
  }

  /* Зазор между country и tier: БОЛЬШЕ (1.5rem) */
  .filter-group:first-of-type {
    margin-bottom: 1.5rem;
  }

  /* Зазор между tier и gender: МЕНЬШЕ (0.75rem) */
  .filter-group:nth-of-type(2) {
    margin-bottom: 0.75rem;
  }

  /* Колонка gender+apply: убираем нижний отступ, внутренний gap уменьшаем */
  .filter-group.gender-apply {
    margin-bottom: 0;
    gap: 0.75rem; /* между gender и кнопкой – МЕНЬШЕ (0.75rem) */
  }

  .apply-button-wrapper {
    margin-top: 0; /* не прижимаем, отступ уже задан через gap родителя */
    width: 100%;
  }

  .selected-countries {
    margin-top: 0.25rem;
  }
  .content__container {
    padding: 0;
  }

  .search-header h1 {
    font-size: 1.5rem;
  }

  .section-header {
    /*flex-direction: column;*/
    /*align-items: flex-start;*/
    gap: 0.5rem;
    padding: 1rem;
  }

  .results-table {
    display: block;
    overflow-x: auto;
  }

  .results-table th,
  .results-table td {
    padding: 0.8rem;
  }
  .player-info,
  .club-info,
  .intermediary-info,
  .manager-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .player-name-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  .country-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
  }
  .multiple-countries .country-info {
    flex-direction: row;
  }
  .filter-hint {
    display: none;
  }
}

@media (max-width: 480px) {
  .filters-panel {
    padding: 1rem;
  }

  .gender-radio-group {
    padding: 0.5rem 0.75rem;
    gap: 0.8rem;
  }

  /* На очень узких экранах сохраняем пропорции */
  .filter-group:first-of-type {
    margin-bottom: 1.25rem;
  }
  .filter-group:nth-of-type(2) {
    margin-bottom: 0.6rem;
  }
  .filter-group.gender-apply {
    gap: 0.6rem;
  }
  .pagination a, .pagination span {
    min-width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  .search-section {
    margin-bottom: 1.5rem;
  }

  .results-table th,
  .results-table td {
    padding: 0.6rem;
    font-size: 0.9rem;
  }

  .section-header h2 {
    font-size: 1.1rem;
  }
  .empty-selection {
      display: none;
  }
}