:root {
   --mu-red: #e30613;
   --mu-red-soft: #f7b5ba;
   --mu-red-pale: #fff2f3;
   --text: #111318;
   --muted: #6e737c;
   --line: #e8e9ec;
   --card: #ffffff;
   --page: #ffffff;
   --shadow: 0 10px 28px rgba(18, 21, 27, 0.07);
   --radius: 14px;
   --container: 1200px;
}

.squad-page {
 min-height: 100vh;
 /*overflow: hidden;*/
}

.squad-container {
 /*width: min(calc(100% - 40px), var(--container));*/
 /*margin: 0 auto;*/
}

/* Верхняя часть */

.squad-logo {
 width: 150px;
 min-width: 150px;
 filter: drop-shadow(0 8px 14px rgba(0,0,0,.10));
}

/* Секции */
.squad-content {
 padding: 10px 0 64px;
 margin: 0 auto;
 width: 100%;
}

.squad-group + .squad-group {
 margin-top: 52px;
}

.squad-group__title {
 margin: 0;
 font-size: clamp(24px, 1.8vw, 30px);
 line-height: 1.15;
 text-transform: uppercase;
 letter-spacing: -0.02em;
 font-weight: 900;
 font-family: 'PT Sans', 'Trebuchet MS', 'Franklin Gothic Medium', sans-serif;
}

.squad-group__line {
 height: 3px;
 margin-top: 13px;
 margin-bottom: 24px;
 background: linear-gradient(
   90deg,
   var(--mu-red) 0,
   var(--mu-red) 165px,
   rgba(227,6,19,.35) 165px,
   rgba(227,6,19,.12) 58%,
   rgba(227,6,19,0) 100%
 );
}

.players-grid {
 display: grid;
 grid-template-columns: repeat(2, minmax(0, 1fr));
 gap: 20px;
}

/* Карточка игрока */
.player-card {
 position: relative;
 min-height: 205px;
 display: grid;
 grid-template-columns: 44% 56%;
 overflow: hidden;
 border: 1px solid var(--line);
 border-radius: 0;
 background: var(--card);
 box-shadow: var(--shadow);
 transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.player-card:hover {
 transform: translateY(-4px);
 border-color: rgba(227, 6, 19, .28);
 box-shadow: 0 16px 34px rgba(18, 21, 27, .11);
}

.player-card::after {
 content: "";
 position: absolute;
 top: 0;
 right: 0;
 width: 70%;
 height: 3px;
 background: linear-gradient(90deg, transparent, var(--mu-red));
 opacity: 0;
 transition: opacity .22s ease;
}

.player-card:hover::after {
 opacity: 1;
}

.player-card__photo {
 position: relative;
 min-height: 205px;
 overflow: hidden;
 background:
 radial-gradient(circle at 50% 34%, rgba(227,6,19,.10), transparent 38%),
 linear-gradient(145deg, #fafafa, #f0f1f3);
}

.player-card__photo::before {
 content: "MU";
 position: absolute;
 left: 50%;
 top: 50%;
 transform: translate(-50%, -50%);
 color: rgba(227,6,19,.06);
 font-size: 74px;
 font-weight: 900;
 letter-spacing: -8px;
}

.player-card__photo img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 1s ease;
  margin: 0 !important;
}

.player-card:hover .player-card__photo img {
 transform: scale(1.08);
}

.player-card__info {
 position: relative;
 min-width: 0;
 padding:
 clamp(16px, 1.2vw, 22px)
 clamp(16px, 1.2vw, 20px)
 clamp(14px, 1vw, 18px);
 display: flex;
 flex-direction: column;
 justify-content: flex-end;
 z-index: 2;
}

.player-card__number {
 position: absolute;
 top: 15px;
 right: 17px;
 color: rgba(17, 19, 24, .065);
 font-size: clamp(52px, 5vw, 72px);
 line-height: .9;
 font-weight: 900;
 letter-spacing: -0.07em;
 pointer-events: none;
 user-select: none;
 z-index: 0;
}

.player-card__first-name,
.player-card__last-name,
.player-card__meta {
 position: relative;
 z-index: 1;
}

.player-card__first-name {
 margin-top: 0;
 font-size: clamp(14px, 1vw, 16px);
 line-height: 1.2;
 color: #31343a;
}

.player-card__last-name {
 margin-top: 2px;
 font-size: clamp(17px, 1.45vw, 22px);
 line-height: 1.15;
 font-weight: 900;
 text-transform: uppercase;
 overflow-wrap: anywhere;
}


.player-card__meta {
 display: flex;
 align-items: center;
 margin-top: 13px;
 min-width: 0;
}

.player-card__country {
 display: flex;
 align-items: center;
 gap: 9px;
 min-width: 0;
 color: var(--muted);
 font-size: clamp(12px, .9vw, 14px);
 line-height: 10px;
 white-space: nowrap;
}



.player-card__age-badge {
 position: absolute;
 left: 10px;
 bottom: 10px;
 z-index: 3;
 /*padding: 6px 9px;*/
 border-radius: 5px;
 color: #ffffff;
 background: var(--mu-red);
 box-shadow: 0 4px 12px rgba(227, 6, 19, .24);
 font-size: clamp(11px, .8vw, 13px);
 padding: clamp(4px, .5vw, 6px) clamp(8px, .7vw, 10px);
 line-height: 1;
 font-weight: 800;
 white-space: nowrap;
}

.player-card__flag {
 min-width: 27px;
 font-size: 21px;
 line-height: 1;
}

/* Планшеты */
@media (max-width: 980px) {
 .squad-logo {
   width: 120px;
   min-width: 120px;
 }

 .players-grid {
   grid-template-columns: repeat(2, minmax(0, 1fr));
 }

}

/* Смартфоны */
@media (max-width: 640px) {
 .squad-logo {
   width: 82px;
   min-width: 82px;
 }

/* .squad-content {
   padding: 30px 0 44px;
 }*/

 .squad-group + .squad-group {
   margin-top: 38px;
 }

 .squad-group__line {
   margin-bottom: 18px;
   background: linear-gradient(
     90deg,
     var(--mu-red) 0,
     var(--mu-red) 95px,
     rgba(227,6,19,.28) 95px,
     rgba(227,6,19,0) 100%
   );
 }

 .players-grid {
   grid-template-columns: 1fr;
   gap: 14px;
 }

 .player-card {
   min-height: 174px;
   grid-template-columns: 42% 58%;
 }

 .player-card__photo {
   min-height: 174px;
 }

 .player-card__info {
   padding: 18px 15px;
 }

 .player-card__number {
   top: 13px;
   right: 14px;
   font-size: 62px;
 }

 .player-card__first-name {
   margin-top: 10px;
   font-size: 14px;
 }

 .player-card__last-name {
   font-size: 18px;
 }

 .player-card__meta {
   margin-top: 11px;
 }

 .player-card__age-badge {
   left: 8px;
   bottom: 8px;
   padding: 5px 8px;
   font-size: 12px;
 }

}

.player-card__loan-badge {
 position: absolute;
 top: 10px;
 left: 10px;
 z-index: 3;
 padding: 6px 9px;
 /*border-radius: 5px;*/
 color: #fff;
 font-size: clamp(10px, 0.75vw, 12px);
 line-height: 1;
 font-weight: 700;
 text-transform: uppercase;
 letter-spacing: 0.03em;
 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
 white-space: nowrap;
}

.player-card__loan-badge--out {
 background: #262a31;
}

.player-card__loan-badge--in {
 background: var(--mu-red);
}