/* --- HERO фон --- */
.vbm-player-hero{
  position: relative;
  width: 100%;
  min-height: 60vh;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}
.vbm-player-hero__overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.55) 65%, rgba(0,0,0,.9) 100%);
  pointer-events:none;
}
.vbm-player-hero__header{
  position: relative;
  z-index: 2;
  padding-top: 6rem;
  padding-bottom: 1rem;
}
.vbm-player-hero__role{
  opacity: .8;
  font-size: .9rem;
  margin-bottom: .35rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.vbm-player-hero__name{
  margin: 0;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 800;
  text-transform: uppercase;
}

/* --- Карточка (фото + статусы) --- */
.vbm-player-hero__card{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  padding: 18px 0 28px;
}
.vbm-player-hero__photo{
  background: #fff !important;
  border: 3px solid #fff !important;
  border-radius: 30px !important;
  padding: 0 !important;
  align-self: start;
}
.vbm-player-hero__photo img{
  display:block;
  width:100%;
  height:auto;
  border-radius: 30px !important;
}

.vbm-player-hero__stats{
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
  align-self: end;
  margin-bottom: 0;
}

/* --- Стили для плашек характеристик --- */
.vbm-stat{
  background: rgba(0,0,0,.35); /* ФОН ВОЗВРАЩАЕМ */
  border: 3px solid #fff !important;
  border-radius: 30px !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 100px;
  padding: 16px 14px;
  position: relative;
}
.vbm-stat__label{
  color: rgba(255,255,255,.85);
  opacity: 1;
  margin-bottom: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  width: 100%;
  padding-top: 4px;
  flex-shrink: 0;
}
.vbm-stat__value{
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  padding-bottom: 12px;
  margin-top: auto;
}

/* Номер как плашка в стиле карточек - ИСПРАВЛЕННЫЙ */
.vbm-player-hero__number{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  border: 3px solid #fff;
  border-radius: 30px;
  color: #fff;
  font-weight: 800;
  font-size: 32px; /* УВЕЛИЧЕН ШРИФТ */
  line-height: 1;
  padding: 0; /* УБРАЛИ PADDING */
  margin-top: 20px;
  width: 75px; /* УМЕНЬШИЛИ НА ТРЕТЬ (было 80px) */
  height: 75px; /* УМЕНЬШИЛИ НА ТРЕТЬ (было 80px) */
  aspect-ratio: 1/1;
  flex-shrink: 0;
  text-align: center; /* ЦЕНТРИРОВАНИЕ ТЕКСТА */
}

/* Контейнер макета */
.container{
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}

/* Full-bleed: растягиваем hero на всю ширину viewport */
.vbm-player-hero{
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Фиксированная высота hero */
.vbm-player-hero{
  height: clamp(520px, 68vh, 760px);
  min-height: auto;
  overflow: hidden;
  background-size: cover;
  background-position: top center;
}

/* Градиент оверлея */
.vbm-player-hero__overlay{
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.32) 35%, rgba(0,0,0,0.55) 65%, #001e4b 100%);
}

/* Скрываем старый блок SportsPress */
.post_type_sp_player .sp-section-content-photo,
.post_type_sp_player .sp-section-content-details {
  display: none !important;
}

/* Убираем отступы обёртки страницы */
.post_type_sp_player .page_content_wrap,
.single-sp_player .page_content_wrap {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.post_type_sp_player .content_wrap,
.post_type_sp_player .post_content,
.post_type_sp_player .entry-content {
  margin-top: 0 !important;
}

/* Поднимаем hero под фиксированную шапку */
.post_type_sp_player .vbm-player-hero {
  padding-top: 168px;
}
.admin-bar .post_type_sp_player .vbm-player-hero {
  padding-top: 80px;
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Планшеты (992px и меньше) */
@media (max-width: 992px){
  .vbm-player-hero__card{
    grid-template-columns: 260px 1fr;
  }
  .vbm-player-hero__stats{
    grid-template-columns: repeat(3, minmax(140px,1fr));
  }
}

/* Мобильные устройства (768px и меньше) */
@media (max-width: 768px){
  /* УМЕНЬШАЕМ РАССТОЯНИЕ СВЕРХУ */
  .vbm-player-hero__header {
    padding-top: 1.5rem !important; /* БЫЛО 3rem */
    padding-bottom: 0.5rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 10;
  }
  
  /* Амплуа игрока */
  .vbm-player-hero__role {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 14px !important;
    margin-bottom: 6px !important; /* УМЕНЬШИЛИ ОТСТУП */
    text-align: center;
  }
  
  .vbm-player-hero__name {
    font-size: clamp(24px, 6vw, 36px) !important;
    text-align: center;
    margin-bottom: 4px !important; /* ДОБАВИЛИ ОТСТУП СНИЗУ */
  }
  
  .vbm-player-hero__number {
    font-size: 32px !important; /* УМЕНЬШИЛИ ШРИФТ ДЛЯ МОБИЛЬНЫХ */
    margin: 8px auto 0 !important; /* УМЕНЬШИЛИ ОТСТУП СВЕРХУ */
    display: flex !important;
    width: 75px !important; /* УМЕНЬШИЛИ РАЗМЕР ДЛЯ МОБИЛЬНЫХ */
    height: 75px !important;
  }
  
  /* Уменьшаем общую высоту hero для мобильных */
  .vbm-player-hero {
    min-height: 450px !important; /* БЫЛО 500px */
    height: auto !important;
    justify-content: flex-start !important;
    padding-bottom: 15px;
  }
  
  /* УВЕЛИЧИВАЕМ ФОТОГРАФИЮ */
  .vbm-player-hero__photo{
    max-width: 340px !important; /* БЫЛО 280px - УВЕЛИЧИЛИ */
    margin: 0 auto;
    justify-self: center;
  }
  
  /* Карточка - одна колонка */
  .vbm-player-hero__card{
    grid-template-columns: 1fr !important;
    gap: 16px; /* УМЕНЬШИЛИ GAP */
    padding: 10px 0 15px; /* УМЕНЬШИЛИ PADDING */
    margin-top: 0 !important;
  }
  
  /* Плашки характеристик */
  .vbm-player-hero__stats{
    grid-template-columns: repeat(2, minmax(140px,1fr)) !important;
    align-self: center !important;
    width: 100%;
    gap: 8px; /* УМЕНЬШИЛИ GAP */
  }
}

/* Маленькие телефоны (480px и меньше) */
@media (max-width: 480px){
  .vbm-player-hero__header {
    padding-top: 1rem !important; /* ЕЩЁ МЕНЬШЕ ОТСТУП */
    padding-bottom: 0.25rem !important;
  }
  
  .vbm-player-hero__role {
    font-size: 13px !important;
    margin-bottom: 4px !important;
  }
  
  .vbm-player-hero__name {
    font-size: clamp(20px, 7vw, 28px) !important;
    margin-bottom: 2px !important;
  }
  
  .vbm-player-hero__number {
    font-size: 32px !important;
    margin: 6px auto 0 !important;
    width: 75px !important;
    height: 75px !important;
  }
  
  /* УВЕЛИЧИВАЕМ ФОТО ДАЖЕ НА МАЛЕНЬКИХ ЭКРАНАХ */
  .vbm-player-hero__photo{
    max-width: 300px !important; /* БОЛЬШЕ ЧЕМ БЫЛО */
  }
  
  .vbm-player-hero__stats{
    grid-template-columns: repeat(2, minmax(130px,1fr)) !important;
    gap: 6px;
  }
  
  .vbm-stat{
    min-height: 75px; /* НЕМНОГО УМЕНЬШИЛИ ВЫСОТУ */
    padding: 8px 6px;
  }
  
  .vbm-stat__value{
    font-size: 16px;
    padding-bottom: 6px;
  }
  
  .vbm-stat__label{
    padding-top: 2px;
    font-size: 10px;
  }
}

/* Очень маленькие экраны (360px и меньше) */
@media (max-width: 360px){
  .vbm-player-hero__stats{
    grid-template-columns: 1fr !important;
  }
  
  /* СОХРАНЯЕМ ДОСТАТОЧНО БОЛЬШУЮ ФОТО */
  .vbm-player-hero__photo{
    max-width: 260px !important;
  }
  
  .vbm-player-hero__header {
    padding-top: 0.75rem !important;
  }
}

/* Гарантия отображения на всех устройствах */
.vbm-player-hero__header,
.vbm-player-hero__role,
.vbm-player-hero__name,
.vbm-player-hero__number {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Исправление для мобильной версии - предотвращаем уезжание контента */
@media (max-width: 768px) {
  .vbm-player-hero {
    overflow: visible !important;
    position: relative;
  }
  
  .vbm-player-hero__card {
    position: relative;
    z-index: 5;
  }
  
  /* Убираем возможные ограничения высоты */
  .vbm-player-hero__header,
  .vbm-player-hero__card {
    min-height: 0 !important;
    height: auto !important;
  }
}

/* Экстренное исправление высоты для мобильных */
@media (max-width: 768px) {
  .single-sp_player .vbm-player-hero {
    min-height: 100vh !important;
    height: auto !important;
  }
  
  .vbm-player-hero__header {
    padding-top: 120px !important; /* Отступ под фиксированную шапку */
  }
}

/* Более специфичное исправление для номера */
.vbm-player-hero__header .vbm-player-hero__number{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
}

/* Гарантия центрирования содержимого */
.vbm-player-hero__number {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
}