:root {
      --player-main-nav-h: 46px;
      --player-detail-back-gap: 12px;
    }

    body {
      /* 선수정보실 원형 선수 이미지는 리그별 저장값 차이 없이 한 규격으로 통일한다. */
      --fs-player-circle-y: 30%;
      --fs-player-circle-scale: 1.18;
    }

    html {
      overflow-y: scroll;
      scrollbar-gutter: stable;
    }

    body {
            font-family: 'Malgun Gothic', '맑은 고딕', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
font-weight: 700; /* 굵게 설정 */
-webkit-font-smoothing: antialiased; /* 글자를 더 선명하고 매끄럽게 처리 */
      margin: 0;
      background: #0b0f14;
      color: #e8eef6
    }

    .top-nav {
      display: flex;
      gap: 14px;
      padding: 12px 16px;
      background: #0f1622;
      position: sticky;
      top: 0;
      z-index: 10
    }

    .top-nav a {
      color: #e8eef6;
      text-decoration: none;
      font-weight: 700;
      opacity: .9
    }

    .wrap {
      max-width: 1100px;
      margin: 0 auto;
      padding: 16px
    }

    @media (min-width: 1200px) {
      .wrap {
        max-width: 1400px;
        /* 또는 1600px */
      }
    }

    .row {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 14px
    }

    select,
    input {
      padding: 10px 12px;
      border-radius: 10px;
      border: 1px solid #243044;
      background: #0f1622;
      color: #e8eef6;
      outline: none
    }

    .teams {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 14px;
      align-items: start;
      /* ★ 핵심 */
    }

    @media (min-width: 1200px) {
      .teams {
        grid-template-columns: repeat(4, 1fr);
      }
    }

    .team-card {
      border: 1px solid #ffd37a;
      background: #0f1622;
      border-radius: 16px;
      overflow: hidden
    }



    .team-h {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) minmax(360px, .9fr);
      align-items: center;
      gap: 10px 14px;
      padding: 12px 12px;
      border-bottom: 1px solid #1e2a3b
    }

    .logo {
      width: 34px;
      height: auto;
      border-radius: 10px;
      object-position: center var(--fs-team-logo-y, 50%);
      background: #0b0f14;
    }

    .team-logo-circle {
      --team-logo-scale: var(--fs-team-logo-scale, 1.08);
      --team-logo-y: var(--fs-team-logo-y, 50%);
      --team-logo-translate-y: var(--fs-team-logo-translate-y, 0%);
      display: inline-grid;
      place-items: center;
      flex: 0 0 auto;
      width: 34px;
      height: 34px;
      border-radius: 999px;
      overflow: hidden;
      border: 1px solid #c9e3d1;
      background: radial-gradient(circle at 50% 42%, #ffffff 0%, #f2faf5 72%, #e4f2ea 100%);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 2px 8px rgba(35, 91, 55, .08);
      color: var(--pd-green-dark);
      font-size: 9px;
      font-weight: 950;
      line-height: 1;
      text-align: center;
    }

    .team-logo-circle img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: contain;
      object-position: center var(--team-logo-y);
      transform: translateY(var(--team-logo-translate-y)) scale(var(--team-logo-scale));
      transform-origin: center;
    }

    .team-logo-circle--summary {
      width: 38px;
      height: 38px;
    }

    .team-logo-circle--mini {
      width: 22px;
      height: 22px;
      font-size: 7px;
    }

    .team-logo-circle--detail {
      width: min(112px, 100%);
      height: min(112px, 100%);
      font-size: 13px;
    }

    .team-logo-fallback {
      display: grid;
      place-items: center;
      width: 100%;
      height: 100%;
      padding: 3px;
      box-sizing: border-box;
    }

    .team-name {
      font-weight: 900
    }

    .coach {
      opacity: .75;
      font-size: 13px
    }
    /* 감독 사진 - 코치 이미지가 있는 경우 보여주기 위한 스타일 */
    .coach-photo{
      width: 26px;
      height: 26px;
      border-radius: 10px;
      object-fit: cover;
      object-position: center var(--fs-player-circle-y, 30%);
      transform: scale(var(--fs-player-circle-scale, 1.18));
      transform-origin: center var(--fs-player-circle-y, 30%);
      margin-left: 6px;
      vertical-align: middle;
      background: #111;
      border: 1px solid #2a3a52;
    }

    .players {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
      padding: 12px
    }

    .p {
      display: grid;
      grid-template-columns: 58px minmax(0, 1fr) auto;
      column-gap: 10px;
      row-gap: 6px;
      align-items: start;
      border: 1px solid #1e2a3b;
      border-radius: 14px;
      padding: 10px;
      background: #0b0f14
    }

    .pimg {
      width: 54px;
      height: auto;
      border-radius: 14px;
      object-fit: cover;
      object-position: center var(--fs-player-circle-y, 30%);
      transform: scale(var(--fs-player-circle-scale, 1.18));
      transform-origin: center var(--fs-player-circle-y, 30%);
      background: #111;
    }


    .pmeta {
      display: grid;
      grid-column: 2;
      grid-row: 1 / span 3;
      gap: 4px;
      min-width: 0
    }

    .p-line {
      display: block;
      min-width: 0;
    }

    .pname {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-weight: 900;
      min-width: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis
    }

    .captain-dot {
      display: inline-grid;
      place-items: center;
      width: 16px;
      height: 16px;
      border-radius: 999px;
      background: #eaf7ee;
      color: #166534;
      border: 1px solid #bfe2c9;
      font-size: 10px;
      font-weight: 950;
      line-height: 1;
      vertical-align: 1px;
    }

    .player-name-number {
      display: inline-grid;
      place-items: center;
      flex: 0 0 auto;
      min-width: 22px;
      height: 17px;
      padding: 0 6px;
      border-radius: 999px;
      border: 1px solid rgba(33, 118, 71, .22);
      background: rgba(236, 248, 239, .94);
      color: #257548;
      font-size: 10px;
      font-weight: 950;
      line-height: 1;
      letter-spacing: 0;
    }

    .psub {
      grid-row: 2;
      opacity: .8;
      font-size: 13px;
      line-height: 1.35;
      white-space: normal;
      overflow: visible;
      overflow-wrap: anywhere
    }

    .badge {
      display: none;
      font-size: 12px;
      font-weight: 800;
      padding: 4px 8px;
      border-radius: 999px;
      border: 1px solid #2a3a52;
      opacity: .9
    }

    .insta-btn {
      grid-column: 3;
      grid-row: 1;
      width: 32px;
      height: 32px;
      border-radius: 10px;
      border: 1px solid #2a3a52;
      background: #0f1622;
      display: grid;
      place-items: center;
      cursor: pointer
    }

    .insta-btn[disabled] {
      opacity: .35;
      cursor: not-allowed
    }

    .insta-btn svg {
      width: 16px;
      height: 16px;
      fill: #e8eef6
    }

    .insta-btn {
      color: #e995b1;
      /* 인스타 핑크 */
    }

    .insta-btn:hover {
      color: #ff4f8b;
    }

    /* 헤더 */
    header {
      width: 100%;
      padding: 1px;
      background-color: #ffffff;
      display: flex;
      justify-content: center;
      border-bottom: none;
    }

    /* 네비게이션 바 */
    .main-nav {
      position: sticky;
      top: 0;
      z-index: 1100;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(12, 16, 22, 0.94);
      border-bottom: 1px solid rgba(255, 255, 255, 0.10);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }

    .main-nav ul {
      display: flex;
      gap: 14px;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .main-nav ul li a {
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      color: #f6f0f0;
      font-weight: 600;
      padding: 6px 12px;
      border-radius: 4px;
      transition: all 0.2s ease;
    }

    .main-nav ul li a:hover {
      background-color: #f7f3f3;
      color: #474343;
    }

    .main-nav ul li a.active {
      background: linear-gradient(180deg, rgba(73, 121, 185, 0.42), rgba(52, 90, 144, 0.38));
      color: #f6fbff;
      border: 1px solid #5e84b0;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 4px 12px rgba(0, 0, 0, 0.34);
    }

    @media (max-width: 480px) {
      .main-nav {
        padding: 6px 0;
      }

      .main-nav ul {
        display: flex;
        flex-wrap: nowrap;
        /* ✅ 줄바꿈 금지 */
        overflow-x: auto;
        /* ✅ 넘치면 가로 스크롤 */
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;

        gap: 6px;
        list-style: none;
        margin: 0;
        padding: 0 10px;
        /* 좌우 여백 */
      }

      .main-nav ul li {
        flex: 0 0 auto;
        /* ✅ 항목이 줄어들며 찌그러지지 않게 */
      }

      .main-nav ul li a {
        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 12px;
        /* ✅ 글자 크기 */
        line-height: 1;
        /* ✅ 2줄 방지 */
        padding: 6px 10px;
        /* ✅ 과한 좌우 패딩 줄이기 */
        border-radius: 6px;

        text-decoration: none;
        color: #f6f0f0;
        font-weight: 600;
      }

      .main-nav ul li a:hover {
        background-color: #f7f3f3;
        color: #474343;
      }

      /* (선택) 스크롤바 숨김 */
      .main-nav ul::-webkit-scrollbar {
        display: none;
      }

      .main-nav ul {
        scrollbar-width: none;
      }
    }

    @media (max-width: 900px) {
      .main-nav {
        padding: 6px 0;
      }

      .main-nav ul {
        display: flex;
        flex-wrap: nowrap;
        /* ✅ 줄바꿈 금지 */
        overflow-x: auto;
        /* ✅ 넘치면 가로 스크롤 */
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;

        gap: 6px;
        list-style: none;
        margin: 0;
        padding: 0 10px;
        /* 좌우 여백 */
      }

      .main-nav ul li {
        flex: 0 0 auto;
        /* ✅ 항목이 줄어들며 찌그러지지 않게 */
      }

      .main-nav ul li a {
        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 12px;
        /* ✅ 글자 크기 */
        line-height: 1;
        /* ✅ 2줄 방지 */
        padding: 6px 10px;
        /* ✅ 과한 좌우 패딩 줄이기 */
        border-radius: 6px;

        text-decoration: none;
        color: #f6f0f0;
        font-weight: 600;
      }

      .main-nav ul li a:hover {
        background-color: #f7f3f3;
        color: #474343;
      }

      /* (선택) 스크롤바 숨김 */
      .main-nav ul::-webkit-scrollbar {
        display: none;
      }

      .main-nav ul {
        scrollbar-width: none;
      }
    }

    /* 선수 한 줄에서 오른쪽 아이콘이 화면 밖으로 안 나가게 */
    .p {
      overflow: hidden;
      /* ✅ 바깥으로 튀어나가는 것 방지 */
    }

    /* CAP/포지션 배지 + 인스타 버튼은 줄어들지 않게 */
    .badge,
    .insta-btn {
      flex: 0 0 auto;
      /* ✅ 고정 크기 유지 */
    }

    /* 인스타 버튼을 항상 맨 오른쪽에 붙이기 */
    .insta-btn {
      margin-left: auto;
      /* ✅ 오른쪽 끝 정렬 */
    }

    .badge {
      margin-left: 8px;
    }

    /* 팀/감독 옆 미니 인스타 아이콘 */
    .ig-mini {
      width: 18px;
      height: 18px;
      margin-left: 6px;
      border-radius: 6px;
      border: 1px solid #2a3a52;
      background: #0f1622;
      display: inline-grid;
      place-items: center;
      cursor: pointer;
      padding: 0;
      vertical-align: middle;
    }

    .ig-mini svg {
      width: 12px;
      height: 12px;
      fill: currentColor;
    }

    .ig-mini {
      color: #e995b1;
    }

    .ig-mini:hover {
      color: #ff4f8b;
    }

    /* ===== team pocket fold (collapsible per team) ===== */
    .fold-toggle {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      color: #b9c6d6;
      user-select: none;
      white-space: nowrap;
    }

    .fold-toggle input {
      width: 16px;
      height: 16px;
    }

    .fold-toggle span {
      opacity: .95;
    }

    details.team-fold {
      position: relative;
      border-radius: 14px;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, .08);
      background: rgba(0, 0, 0, .22);
      box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
      margin: 0;
      /* ★ 이게 없어서 첫 팀이 떠 보임 */
      align-self: start;
      /* grid 기준 강제 통일 */
      margin-top: 12px;
    }

    details.team-fold::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 6px;
      background: var(--team-accent, var(--pd-green));
      z-index: 2;
    }


    summary.team-summary {
      list-style: none;
      cursor: pointer;
      user-select: none;
    }

    summary.team-summary::-webkit-details-marker {
      display: none;
    }

    /* 기존 team-h를 summary로 올렸을 때의 클릭 영역 정돈 */
    .team-summary .team-h {
      border-radius: 14px;
      margin: 0;
      padding-left: 20px !important;
    }

    /* 접힘 상태에서 헤더 아래 여백 제거 */
    details.team-fold[open] .players {
      border-top: 1px solid rgba(255, 255, 255, .06);
    }

    .teams > details.team-fold[open] {
      grid-column: 1 / -1;
    }

    @media (max-width:520px) and (orientation: portrait) {

      /* 시즌 + 검색 + 토글이 한 줄에 들어오도록 */
      .row {
        flex-wrap: nowrap;
        gap: 6px;
      }

      #leagueSel {
        flex: 0 0 54%;
        min-width: 0;
      }

      #q {
        flex: 1 1 auto;
        min-width: 0;
      }

      .fold-toggle span {
        display: inline;
      }

      /* 모바일 세로에선 텍스트 숨기고 체크만 */
    }
    .pimg,
.pimg svg {
  width: 54px;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
  object-position: center var(--fs-player-circle-y, 30%);
  background: #111;
}

    /* ===== GTN-inspired player data center refresh ===== */
    :root {
      --pd-bg: #f3f8f4;
      --pd-panel: #ffffff;
      --pd-soft: #eef8f0;
      --pd-line: #b9ddc5;
      --pd-line-strong: #68b985;
      --pd-green: #15834d;
      --pd-green-dark: #0b5f38;
      --pd-blue: #2563eb;
      --pd-blue-soft: #eaf1ff;
      --pd-ink: #143524;
      --pd-muted: #607568;
      --pd-red: #dc2626;
      --pd-shadow: 0 18px 46px rgba(22, 101, 52, 0.11);
    }

    body {
      background: var(--pd-bg) !important;
      color: var(--pd-ink) !important;
    }

    header {
      background: #ffffff !important;
    }

    .main-nav {
      background: rgba(255, 255, 255, 0.94) !important;
      border-bottom: 1px solid var(--pd-line) !important;
      box-shadow: 0 8px 24px rgba(22, 101, 52, 0.08);
      min-height: 45px;
      padding: 6px 0;
      box-sizing: border-box;
    }

    .main-nav ul {
      max-width: 100%;
      box-sizing: border-box;
    }

    .main-nav ul li a {
      box-sizing: border-box;
      min-height: 32px;
      border: 1px solid transparent !important;
      color: var(--pd-green-dark) !important;
      border-radius: 999px !important;
      font-weight: 900 !important;
      font-size: 14px;
      line-height: 1;
    }

    .main-nav ul li a:hover,
    .main-nav ul li a.active {
      background: var(--pd-green) !important;
      color: #fff !important;
      border-color: var(--pd-green) !important;
      box-shadow: none !important;
    }

    @media (max-width: 900px) {
      .main-nav {
        padding: 6px 0;
      }

      .main-nav ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        scrollbar-width: none;
        gap: 6px;
        padding: 0 10px;
      }

      .main-nav ul li {
        flex: 0 0 auto;
      }

      .main-nav ul li a {
        min-height: 28px;
        font-size: 12px;
        padding: 6px 10px;
      }
    }

    .wrap {
      max-width: 1280px !important;
      padding: 18px clamp(12px, 2vw, 28px) 36px !important;
    }

    .player-dashboard {
      margin: 0 0 18px;
    }

    .player-hero {
      display: grid;
      grid-template-columns: minmax(0, 1.25fr) minmax(420px, 0.75fr);
      gap: 18px;
      align-items: stretch;
      padding: clamp(18px, 2vw, 26px);
      border: 1px solid var(--pd-line);
      border-radius: 26px;
      background: #fff;
      box-shadow: var(--pd-shadow);
    }

    .player-eyebrow {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      max-width: 100%;
      min-width: min(220px, 100%);
      min-height: 27px;
      white-space: nowrap;
      word-break: keep-all;
      overflow: hidden;
      text-overflow: ellipsis;
      width: max-content;
      margin-bottom: 10px;
      padding: 7px 14px;
      border-radius: 999px;
      background: #dff3e5;
      color: var(--pd-green-dark);
      font-size: 12px;
      font-weight: 950;
    }

    .player-hero h1 {
      margin: 0;
      color: var(--pd-green-dark);
      font-size: clamp(28px, 4vw, 52px);
      line-height: 1.02;
      letter-spacing: 0;
    }

    .player-hero p {
      max-width: 680px;
      margin: 8px 0 0;
      color: var(--pd-muted);
      font-size: 13px;
      line-height: 1.45;
    }

    .player-stat-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .player-stat {
      min-height: 92px;
      padding: 15px;
      border-radius: 18px;
      border: 1px solid var(--player-stat-border, rgba(255, 255, 255, .34));
      background: var(--player-stat-bg, #17834f);
      color: var(--player-stat-fg, #fff);
      display: flex;
      flex-direction: column;
      justify-content: center;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .28),
        0 10px 24px var(--player-stat-shadow, rgba(21, 97, 60, .13));
    }

    .player-stat-action {
      cursor: pointer;
      transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
    }

    .player-stat-action:hover,
    .player-stat-action:focus-visible {
      transform: translateY(-2px);
      border-color: var(--player-stat-border-hover, rgba(255, 255, 255, .54));
      background: var(--player-stat-bg-hover, var(--player-stat-bg, #17834f));
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .32),
        0 14px 28px var(--player-stat-shadow, rgba(21, 97, 60, .18));
      outline: none;
    }

    .player-stat-grid .player-stat:nth-child(1) {
      --player-stat-bg: #17834f;
      --player-stat-bg-hover: #126f43;
      --player-stat-border: rgba(23, 131, 79, .62);
      --player-stat-shadow: rgba(23, 131, 79, .2);
    }

    .player-stat-grid .player-stat:nth-child(2) {
      --player-stat-bg: #2f6fd6;
      --player-stat-bg-hover: #255fbd;
      --player-stat-border: rgba(47, 111, 214, .58);
      --player-stat-shadow: rgba(47, 111, 214, .2);
    }

    .player-stat-grid .player-stat:nth-child(3) {
      --player-stat-bg: #c74779;
      --player-stat-bg-hover: #ad3867;
      --player-stat-border: rgba(199, 71, 121, .58);
      --player-stat-shadow: rgba(199, 71, 121, .19);
    }

    .player-stat-grid .player-stat:nth-child(4) {
      --player-stat-bg: #b7791f;
      --player-stat-bg-hover: #9f6819;
      --player-stat-border: rgba(183, 121, 31, .58);
      --player-stat-shadow: rgba(183, 121, 31, .2);
    }

    .player-stat strong {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      width: 100%;
      min-height: 40px;
      color: var(--player-stat-fg, #fff);
      font-size: clamp(23px, 2.7vw, 34px);
      line-height: 1;
      white-space: nowrap;
    }

    .player-stat span {
      display: -webkit-box;
      min-height: 32px;
      margin-top: 7px;
      color: var(--player-stat-sub-fg, rgba(255, 255, 255, .86));
      font-size: 11.5px;
      line-height: 1.35;
      font-weight: 900;
      overflow: hidden;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }

    .players-loading .player-stat strong {
      position: relative;
      color: transparent !important;
    }

    .players-loading .player-stat strong::before,
    .player-skeleton-card i,
    .player-skeleton-card b,
    .player-skeleton-card span {
      content: "";
      display: block;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(255,255,255,.26), rgba(255,255,255,.58), rgba(255,255,255,.26));
      background-size: 180% 100%;
      animation: playerSkeletonPulse 1.05s ease-in-out infinite;
    }

    .players-loading .player-stat strong::before {
      width: min(92px, 72%);
      height: 24px;
    }

    .player-skeleton-card {
      min-height: 118px;
      display: grid;
      grid-template-columns: 48px minmax(0, 1fr);
      gap: 10px 12px;
      align-items: center;
      padding: 14px;
      border: 1px solid var(--pd-line);
      border-radius: 18px;
      background: #fff;
      box-shadow: 0 8px 22px rgba(22, 101, 52, .06);
    }

    .player-skeleton-card i {
      grid-row: 1 / span 3;
      width: 48px;
      height: 58px;
      border-radius: 14px;
      background: linear-gradient(90deg, #e8f4ed, #f7fbf8, #e8f4ed);
      background-size: 180% 100%;
    }

    .player-skeleton-card b {
      width: 42%;
      height: 17px;
      background: linear-gradient(90deg, #dfeee5, #f7fbf8, #dfeee5);
      background-size: 180% 100%;
    }

    .player-skeleton-card span {
      width: 88%;
      height: 12px;
      background: linear-gradient(90deg, #eef6f1, #fbfdfc, #eef6f1);
      background-size: 180% 100%;
    }

    .player-skeleton-card span:last-child {
      width: 64%;
    }

    @keyframes playerSkeletonPulse {
      0% { background-position: 120% 0; }
      100% { background-position: -80% 0; }
    }

    @media (prefers-reduced-motion: reduce) {
      .players-loading .player-stat strong::before,
      .player-skeleton-card i,
      .player-skeleton-card b,
      .player-skeleton-card span {
        animation: none;
      }
    }

    .player-toolbar {
      display: grid !important;
      grid-template-columns: minmax(180px, 260px) minmax(240px, 1fr) auto;
      align-items: center;
      gap: 10px !important;
      margin: 14px 0 18px !important;
      padding: 12px !important;
      border: 1px solid var(--pd-line);
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.92);
      box-shadow: 0 10px 26px rgba(22, 101, 52, 0.07);
    }

    .player-toolbar select,
    .player-toolbar input {
      width: 100%;
      box-sizing: border-box;
      min-width: 0 !important;
      background: #fff !important;
      color: var(--pd-ink) !important;
      border-color: var(--pd-line) !important;
      border-radius: 14px !important;
      font-weight: 900;
    }

    .fold-toggle {
      background: #e9f7ee !important;
      color: var(--pd-green-dark) !important;
      border-color: #bfe2c9 !important;
      border-radius: 14px !important;
      min-height: 42px;
      padding: 0 12px !important;
      display: inline-flex !important;
      align-items: center;
      justify-content: center;
      gap: 8px;
      white-space: nowrap;
    }

    .teams {
      gap: 16px !important;
    }

    details.team-fold {
      background: #fff !important;
      border: 1px solid var(--pd-line) !important;
      border-radius: 22px !important;
      box-shadow: 0 14px 34px rgba(22, 101, 52, 0.09);
      overflow: hidden;
    }

    summary.team-summary {
      background: #f8fcf9 !important;
      border-bottom: 1px solid #d7ecdd !important;
      padding: 0 !important;
    }

    .team-h {
      background: #f8fcf9 !important;
      border-bottom: 0 !important;
      padding: 14px 14px 14px 20px !important;
      color: var(--pd-ink) !important;
    }

    .logo {
      width: 46px !important;
      height: 46px !important;
      border-radius: 16px !important;
      object-fit: contain;
      box-sizing: border-box;
      background: #fff !important;
      border: 1px solid #cfe8d6;
      padding: 4px;
    }

    .team-name {
      display: flex;
      align-items: center;
      gap: 7px;
      color: var(--pd-green-dark);
      font-size: 17px;
      font-weight: 950;
      line-height: 1.2;
    }

    .team-detail-link,
    .coach-detail-link {
      appearance: none;
      border: 0;
      padding: 0;
      background: transparent;
      color: inherit;
      font: inherit;
      font-weight: inherit;
      text-align: left;
      cursor: pointer;
    }

    .team-detail-link:hover,
    .coach-detail-link:hover,
    .team-detail-link:focus-visible,
    .coach-detail-link:focus-visible {
      color: #0c8b4e;
      text-decoration: underline;
      text-underline-offset: 3px;
      outline: none;
    }

    .coach {
      margin-top: 5px;
      color: var(--pd-muted) !important;
      opacity: 1 !important;
      font-size: 13px !important;
      font-weight: 850;
    }

    .coach[data-coach-detail] {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 0 !important;
    }

    .coach-detail-link {
      color: var(--pd-muted);
      font-size: 13px;
      font-weight: 850;
    }

    .coach-detail-link:disabled {
      cursor: default;
      text-decoration: none;
      color: #6f8176;
    }

    .coach-former {
      display: inline-flex;
      align-items: center;
      margin-left: 6px;
      padding: 2px 6px;
      border-radius: 999px;
      background: #eef7f1;
      color: #4f6b5a;
      font-size: 11px;
      font-weight: 900;
      vertical-align: middle;
    }

    .team-data-line {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      margin-top: 8px;
    }

    .team-data-line span,
    .team-data-line .team-data-button {
      appearance: none;
      padding: 4px 8px;
      border-radius: 999px;
      background: #eaf7ee;
      color: var(--pd-green-dark);
      border: 1px solid #c5e5cd;
      font-size: 11px;
      font-weight: 950;
    }

    .team-data-line .team-data-button {
      cursor: pointer;
      background: #fff7e8;
      border-color: #efd39b;
      color: #875b0b;
    }

    .team-data-line .team-data-button:hover,
    .team-data-line .team-data-button:focus-visible {
      background: #ffecc1;
      outline: none;
    }

    .players {
      grid-template-columns: 1fr !important;
      gap: 9px !important;
      padding: 12px !important;
      background: #fff !important;
    }

    details.team-fold[open] .players {
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
      gap: 10px !important;
      padding: 14px !important;
    }

    .p {
      display: grid !important;
      grid-template-columns: 58px minmax(0, 1fr) auto auto;
      gap: 10px !important;
      align-items: center;
      border: 1px solid #d7ecdd !important;
      border-radius: 16px !important;
      padding: 10px !important;
      background: #fbfefd !important;
      color: var(--pd-ink) !important;
      box-shadow: none !important;
    }

    .pimg,
    .pimg img,
    .pimg svg {
      grid-column: 1;
      grid-row: 1 / span 2;
      width: 58px !important;
      height: 70px !important;
      border-radius: 14px !important;
      object-fit: cover;
      object-position: center var(--fs-player-circle-y, 30%);
      background: #edf8f0 !important;
    }

    .pmeta {
      display: grid;
      align-content: center;
      gap: 8px;
      min-height: 70px;
      min-width: 0;
    }

    .pname {
      color: var(--pd-ink);
      font-size: 16px;
      font-weight: 950;
      line-height: 1.15;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .psub {
      color: var(--pd-muted) !important;
      opacity: 1 !important;
      font-size: 12px !important;
      line-height: 1.25;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }

    .p-tags {
      display: flex;
      flex-wrap: nowrap;
      align-items: center;
      justify-content: flex-start;
      gap: 4px;
      min-width: 0;
      overflow: hidden;
    }

    .p-tags span {
      min-width: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      padding: 3px 7px;
      border-radius: 999px;
      background: var(--pd-blue-soft);
      color: var(--pd-blue);
      border: 1px solid #c8d9ff;
      font-size: 11px;
      font-weight: 950;
    }

    .badge {
      border: 1px solid #bfe2c9 !important;
      background: #eaf7ee !important;
      color: var(--pd-green-dark) !important;
      opacity: 1 !important;
      min-width: 42px;
      text-align: center;
    }

    .p .insta-btn {
      grid-column: 3;
      grid-row: 1;
      margin-left: 0 !important;
    }

    .player-detail-dialog {
      position: relative;
      width: min(1240px, 100%);
      min-height: calc(100vh - 28px);
      overflow: visible;
      border: 1px solid #b9ddc5;
      border-radius: 22px;
      background: linear-gradient(180deg, #ffffff, #f3fbf5);
      color: var(--pd-ink);
      box-shadow: 0 20px 54px rgba(11, 95, 56, 0.14);
    }

    .player-detail-content {
      padding: 22px;
      max-width: 100%;
      box-sizing: border-box;
      overflow-x: hidden;
    }

    .player-detail-generic,
    .league-detail-shell,
    .relation-brief {
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
    }

    .player-detail-generic {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 12px;
    }

    .player-detail-page {
      display: grid;
      justify-items: center;
      width: 100%;
      margin: 0 auto 18px;
    }

    .player-detail-page[hidden] {
      display: none !important;
    }

    .player-detail-page-dialog {
      width: min(1480px, calc(100vw - 28px));
      max-width: none;
      justify-self: center;
      min-height: 0;
      box-shadow: 0 16px 44px rgba(11, 95, 56, 0.11);
    }

    .player-detail-page-open .wrap {
      max-width: 1520px;
    }

    .player-detail-back {
      position: sticky;
      top: calc(var(--player-main-nav-h, 46px) + var(--player-detail-back-gap, 12px));
      z-index: 1201;
      display: inline-flex;
      align-items: center;
      min-height: 32px;
      margin: 8px 0 0 14px;
      padding: 5px 12px;
      border: 1px solid #c8e4d0;
      border-radius: 999px;
      background: rgba(255, 255, 255, .94);
      color: var(--pd-green-dark);
      font-size: 12px;
      font-weight: 950;
      text-decoration: none;
      box-shadow: 0 10px 22px rgba(11, 95, 56, .13);
      backdrop-filter: blur(8px);
    }

    .player-detail-head {
      display: grid;
      grid-template-columns: 128px minmax(0, 1fr);
      gap: 18px;
      align-items: center;
    }

    .player-detail-photo {
      width: 128px;
      height: 160px;
      border-radius: 20px;
      overflow: hidden;
      border: 1px solid #cfe8d6;
      background: #e8f6ec;
      display: grid;
      place-items: center;
    }

    .player-detail-photo--transparent {
      background: transparent !important;
    }

    .player-detail-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center var(--fs-player-circle-y, 30%);
      transform: scale(var(--fs-player-circle-scale, 1.18));
      transform-origin: center var(--fs-player-circle-y, 30%);
      display: block;
    }

    .player-detail-photo .team-logo-circle img {
      object-position: center var(--team-logo-y);
      transform: translateY(var(--team-logo-translate-y)) scale(var(--team-logo-scale));
    }

    .player-detail-empty {
      color: #7b9285;
      font-size: 11px;
      font-weight: 950;
    }

    .player-detail-team {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      max-width: 100%;
      padding: 6px 10px;
      border: 1px solid #c8e4d0;
      border-radius: 999px;
      background: #ecf8ef;
      color: var(--pd-green-dark);
      font-size: 12px;
      font-weight: 950;
    }

    .player-detail-team img {
      flex: 0 0 auto;
      width: 18px;
      height: 18px;
      object-fit: contain;
    }

    .player-detail-main h2 {
      display: flex;
      align-items: center;
      gap: 9px;
      flex-wrap: wrap;
      margin: 10px 42px 10px 0;
      color: var(--pd-green-dark);
      font-size: clamp(26px, 4vw, 40px);
      line-height: 1.05;
      letter-spacing: 0;
    }

    .player-detail-facts,
    .player-detail-stats {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .player-detail-facts span,
    .player-detail-stats span {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
      max-width: 100%;
      min-height: 30px;
      padding: 5px 9px;
      border-radius: 999px;
      border: 1px solid #c6e3cf;
      background: #fff;
      color: var(--pd-green-dark);
      font-size: 12px;
      font-weight: 950;
    }

    .player-detail-facts b {
      color: var(--pd-muted);
      font-size: 11px;
    }

    .player-detail-facts .player-fact-compact {
      justify-content: center;
      min-width: 42px;
      min-height: 20px;
      padding: 1px 10px;
      border-radius: 8px;
      background: #f1fbf3;
      box-shadow: inset 0 0 0 1px rgba(38, 120, 73, 0.05);
      white-space: nowrap;
      line-height: 1.15;
    }

    .player-detail-stats {
      margin-top: 14px;
    }

    .player-detail-stat-honor-row {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
      margin-top: 14px;
      overflow: hidden;
    }

    .player-detail-stat-honor-row--top,
    .player-card-stat-honor-row {
      flex-wrap: nowrap;
      align-items: center;
      width: 100%;
    }

    .player-detail-stat-honor-row--top {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 6px;
      align-items: start;
      overflow: visible;
    }

    .player-detail-stat-honor-row--top .player-detail-facts {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
    }

    .player-detail-stat-honor-row--top .player-current-stats {
      display: flex;
      flex-wrap: wrap;
      width: 100%;
      gap: 5px;
    }

    .player-detail-stat-honor-row--top .player-detail-facts,
    .player-card-stat-honor-row .player-detail-facts,
    .player-detail-stat-honor-row--top .player-current-stats,
    .player-card-stat-honor-row .player-current-stats {
      flex: 0 1 auto;
      flex-wrap: nowrap;
      min-width: 0;
      overflow: visible;
    }

    .player-detail-stat-honor-row .player-detail-stats {
      flex: 0 0 auto;
      margin-top: 0;
    }

    .player-detail-stats span {
      flex-direction: column;
      align-items: flex-start;
      min-width: 70px;
      border-radius: 14px;
      background: #f8fcf9;
    }

    .player-current-stats {
      gap: 7px;
    }

    .player-current-stats span {
      flex-direction: row;
      align-items: center;
      min-width: 0;
      min-height: 32px;
      border-radius: 999px;
      border-color: #f2bf9a;
      background: #fff0e5;
      color: #9a3f0b;
      white-space: nowrap;
    }

    .player-current-stats .player-stat-piece {
      flex: 0 1 auto;
      min-width: 0;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      min-height: 24px;
      padding: 2px 7px;
      border-radius: 999px;
      background: color-mix(in srgb, var(--team-accent, var(--pd-green)) 10%, #fff);
      border: 1px solid color-mix(in srgb, var(--team-accent, var(--pd-green)) 18%, #d8eadc);
      color: #10251a;
    }

    .player-current-stats .player-stat-piece i {
      flex: 0 0 auto;
      font-style: normal;
      color: #14532d;
      font-size: 10px;
      font-weight: 1000;
      line-height: 1;
    }

    .player-current-stats .player-stat-piece i.is-alpha {
      display: inline-grid;
      place-items: center;
      width: 15px;
      height: 15px;
      border-radius: 999px;
      background: #14532d;
      color: #fff;
      font-size: 9px;
      letter-spacing: 0;
    }

    .player-current-stats .player-stat-piece b {
      min-width: 0;
      color: #06120b;
      font-size: 11.5px;
      font-weight: 1000;
      line-height: 1;
    }

    .player-current-stats span:nth-child(2n) {
      border-color: #a9d7f1;
      background: #e7f6ff;
      color: #07587c;
    }

    .player-current-stats span:nth-child(3n) {
      border-color: #e6cf78;
      background: #fff6cc;
      color: #735300;
    }

    .player-current-stats span:nth-child(4n) {
      border-color: #d3b9f5;
      background: #f4ecff;
      color: #5c348f;
    }

    .player-detail-stats b {
      font-size: 18px;
      line-height: 1;
    }

    .player-detail-stats small {
      margin-left: 2px;
      color: var(--pd-muted);
      font-size: 10px;
      font-weight: 850;
    }

    .player-detail-stats em {
      color: inherit;
      font-size: 11px;
      font-style: normal;
      font-weight: 900;
      opacity: .82;
    }

    .player-detail-insta {
      margin-top: 10px;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      min-height: 34px;
      padding: 7px 11px;
      border-radius: 999px;
      border: 1px solid #f2b8d2;
      background: #fff;
      color: #d62976;
      font-size: 12px;
      font-weight: 950;
      cursor: pointer;
      text-decoration: none;
    }

    .player-detail-insta svg {
      width: 16px;
      height: 16px;
      fill: currentColor;
    }

    .player-detail-block {
      min-width: 0;
      max-width: 100%;
      box-sizing: border-box;
      margin-top: 16px;
      padding: 13px;
      border: 1px solid #d4eadb;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.72);
    }

    .player-detail-block strong {
      display: block;
      margin-bottom: 6px;
      color: var(--pd-green-dark);
      font-size: 13px;
    }

    .player-detail-block p {
      margin: 0;
      color: var(--pd-muted);
      font-size: 13px;
      line-height: 1.55;
      font-weight: 850;
    }

    .player-detail-block ul {
      margin: 0;
      padding-left: 18px;
      color: var(--pd-muted);
      font-size: 13px;
      line-height: 1.6;
    }

    .player-move-line {
      margin-top: 8px;
      padding: 9px 11px;
      border-color: rgba(20, 115, 70, 0.22);
      background: rgba(236, 250, 241, 0.86);
    }

    .player-move-line strong {
      margin-bottom: 6px;
      font-size: 11px;
    }

    .player-move-line span {
      display: flex;
      align-items: center;
      gap: 6px;
      overflow: hidden;
      color: #155c36;
      font-size: 12px;
      font-weight: 950;
    }

    .player-move-line b {
      min-width: 0;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 3px 7px 3px 4px;
      border: 1px solid rgba(20, 115, 70, 0.18);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.75);
      font: inherit;
    }

    .player-move-line .team-logo-circle {
      width: 22px;
      height: 22px;
      min-width: 22px;
      border-radius: 50%;
      box-shadow: 0 1px 4px rgba(15, 23, 42, 0.10);
    }

    .player-move-line em {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-style: normal;
    }

    .player-move-line i {
      color: rgba(21, 92, 54, 0.66);
      font-style: normal;
      font-weight: 1000;
    }

    .player-detail-generic > h2 {
      margin: 0 44px 14px 0;
      color: var(--pd-green-dark);
      font-size: clamp(25px, 4vw, 38px);
      line-height: 1.08;
    }

    .player-detail-team-head {
      align-items: center;
      padding: 12px;
      border: 1px solid #d8ecde;
      border-radius: 18px;
      background: #f7fcf8;
    }

    .player-detail-logo-photo {
      height: 128px;
      background: #fff;
    }

    .player-detail-logo-photo > img {
      object-fit: contain;
      padding: 12px;
      box-sizing: border-box;
    }

    .player-detail-coach-list {
      display: grid;
      gap: 8px;
    }

    .player-detail-coach-row {
      display: grid;
      grid-template-columns: minmax(82px, 128px) minmax(0, 104px) minmax(78px, 112px) minmax(92px, 1fr) auto;
      align-items: center;
      gap: 8px;
      padding: 8px;
      border: 1px solid #d7eadc;
      border-radius: 13px;
      background: #fff;
    }

    .player-detail-coach-row .coach-rate-name {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 27px;
      padding: 4px 9px;
      border-radius: 999px;
      background: #eaf7ee;
      color: var(--pd-green-dark);
      font-size: 12px;
      font-weight: 950;
    }

    .player-detail-coach-row .coach-rate-team,
    .player-detail-coach-row .coach-rate-record {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .player-detail-coach-row .coach-rate-team {
      color: #40604f;
      font-size: 12px;
      font-weight: 900;
    }

    .player-detail-coach-row .coach-rate-record {
      color: #5b7164;
      font-size: 12px;
      font-weight: 850;
    }

    .player-detail-coach-row i {
      height: 8px;
      border-radius: 999px;
      background: #e5f1e9;
      overflow: hidden;
    }

    .player-detail-coach-row i b {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, #1c8b55, #76c66f);
    }

    .player-detail-coach-row em {
      color: var(--pd-green-dark);
      font-size: 12px;
      font-style: normal;
      font-weight: 950;
      white-space: nowrap;
    }

    .team-coach-rate-panel .player-detail-coach-list {
      gap: 0;
      padding: 4px 6px;
      border: 1px solid #d7ecdd;
      border-radius: 11px;
      background: rgba(255,255,255,.74);
    }

    .team-coach-rate-panel .player-detail-coach-row {
      grid-template-columns: minmax(64px, 86px) minmax(70px, 98px) minmax(64px, 1fr) 34px;
      gap: 5px;
      min-height: 22px;
      padding: 3px 2px;
      border: 0;
      border-bottom: 1px solid rgba(199, 226, 207, .78);
      border-radius: 0;
      background: transparent;
    }

    .team-coach-rate-panel .player-detail-coach-row .coach-rate-team {
      display: none;
    }

    .team-coach-rate-panel .player-detail-coach-row .coach-rate-name {
      justify-content: flex-start;
      min-height: 0;
      padding: 0;
      border: 0;
      background: transparent;
      box-shadow: none;
      font-size: 10.5px;
    }

    .team-coach-rate-panel .player-detail-coach-row .coach-rate-record {
      font-size: 10.5px;
    }

    .team-coach-rate-panel .player-detail-coach-row i {
      height: 6px;
    }

    .team-coach-rate-panel .player-detail-coach-row em {
      font-size: 11px;
    }

    .team-coach-rate-panel .player-detail-coach-row:last-child {
      border-bottom: 0;
    }

    .league-detail-list {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 9px;
      margin-top: 10px;
    }

    .league-detail-row {
      display: grid;
      grid-template-columns: 44px minmax(0, 1fr);
      align-items: center;
      gap: 10px;
      min-height: 58px;
      padding: 9px;
      border: 1px solid #d6eadc;
      border-radius: 15px;
      background: rgba(255,255,255,.82);
    }

    .league-detail-wide {
      grid-template-columns: 58px minmax(0, 1fr);
      min-height: 76px;
    }

    .league-detail-row img,
    .league-detail-mark {
      width: 44px;
      height: 44px;
      border-radius: 13px;
      border: 1px solid #c9e3d1;
      background: #fff;
      object-fit: contain;
      display: grid;
      place-items: center;
      color: var(--pd-green-dark);
      font-size: 9px;
      font-weight: 950;
      text-align: center;
    }

    .league-player-row {
      cursor: pointer;
    }

    .league-player-row:hover {
      border-color: #86cc9b;
      background: #f7fff9;
    }

    .league-player-row img {
      object-fit: cover;
      object-position: center var(--fs-player-circle-y, 30%);
      transform: scale(var(--fs-player-circle-scale, 1.18));
      transform-origin: center var(--fs-player-circle-y, 30%);
    }

    .player-team-detail-list,
    .player-full-list {
      display: grid;
      gap: 14px;
      margin-top: 12px;
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
    }

    .player-team-detail-section {
      position: relative;
      display: grid;
      gap: 10px;
      padding: 12px 12px 12px 17px;
      border: 1px solid color-mix(in srgb, var(--team-accent-strong, #d6eadc) 52%, #d6eadc);
      border-radius: 18px;
      background:
        linear-gradient(90deg, var(--team-accent-faint, rgba(21, 131, 77, .07)) 0%, #f7fcf8 46%, #f7fcf8 100%);
    }

    .team-coach-team-section,
    .player-roster-team-section,
    .relation-section {
      position: relative;
      overflow: hidden;
    }

    .relation-section::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 6px;
      background: linear-gradient(180deg, #16834a 0%, #49b565 52%, #f0c64b 100%);
    }

    .team-coach-team-section[open]::before,
    .team-coach-team-section:not(.is-collapsed)::before,
    .player-roster-team-section[open]::before,
    .player-roster-team-section:not(.is-collapsed)::before,
    .transfer-team-section[open]::before,
    .transfer-team-section:not(.is-collapsed)::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 6px;
      background:
        linear-gradient(180deg,
          color-mix(in srgb, var(--team-accent, var(--pd-green)) 88%, #1f2933) 0%,
          var(--team-accent-soft, rgba(21, 131, 77, .18)) 52%,
          color-mix(in srgb, var(--team-accent, var(--pd-green)) 76%, #1f2933) 100%);
    }

    .relation-section:nth-child(4n+2)::before {
      background: linear-gradient(180deg, #0f7c95 0%, #49a8c6 52%, #74d4a4 100%);
    }

    .relation-section:nth-child(4n+3)::before {
      background: linear-gradient(180deg, #9b6a10 0%, #e0a733 52%, #6fbd68 100%);
    }

    .relation-section:nth-child(4n+4)::before {
      background: linear-gradient(180deg, #6a5aa8 0%, #9b87dd 52%, #56b98b 100%);
    }

    .player-team-detail-title {
      display: flex;
      align-items: center;
      gap: 9px;
      color: var(--pd-green-dark);
      cursor: pointer;
      min-height: 46px;
      margin: -5px -5px 0 -10px;
      padding: 6px 9px 6px 10px;
      border-radius: 14px;
      background:
        linear-gradient(90deg,
          color-mix(in srgb, var(--team-accent, var(--pd-green)) 82%, #202936) 0,
          color-mix(in srgb, var(--team-accent, var(--pd-green)) 78%, #202936) 46%,
          color-mix(in srgb, var(--team-accent, var(--pd-green)) 58%, #ffffff) 78%,
          color-mix(in srgb, var(--team-accent, var(--pd-green)) 32%, #ffffff) 100%);
    }

    .player-team-detail-title > img,
    .player-team-detail-title .league-detail-mark {
      width: 34px;
      height: 34px;
      object-fit: contain;
    }

    .player-team-detail-title strong {
      font-size: 15px;
      font-weight: 1000;
      color: #fff;
      text-shadow: 0 1px 2px rgba(0,0,0,.2);
    }

    .player-team-detail-title > span.player-team-logo-trigger {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-left: 0 !important;
      color: inherit !important;
      font-size: inherit !important;
      font-weight: inherit !important;
    }

    .player-team-detail-title > span:not(.team-logo-circle):not(.league-detail-mark) {
      margin-left: auto;
      color: color-mix(in srgb, var(--team-accent, var(--pd-green)) 72%, #244135);
      font-size: 12px;
      font-weight: 950;
    }

    .player-section-toggle {
      flex: 0 0 auto;
      margin-left: auto;
      display: inline-grid;
      place-items: center;
      width: 24px;
      min-width: 24px;
      height: 24px;
      min-height: 24px;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      color: rgba(255,255,255,.92);
      font-size: 19px;
      font-weight: 1000;
      line-height: 1;
      cursor: pointer;
      text-shadow: 0 1px 4px rgba(0,0,0,.38);
    }

    .player-team-detail-title span + .player-section-toggle {
      margin-left: 0;
    }

    .player-team-detail-section.is-collapsed {
      gap: 0;
    }

    .player-team-detail-section.is-collapsed > .player-section-toggle-content {
      display: none !important;
    }

    .player-full-card {
      display: grid;
      grid-template-columns: 118px minmax(0, 1fr);
      min-width: 0;
      max-width: 100%;
      box-sizing: border-box;
      gap: 13px;
      padding: 12px;
      border: 1px solid #d7eadc;
      border-radius: 16px;
      background: #fff;
    }

    .player-full-card .player-detail-photo {
      width: 112px;
      height: 148px;
      border-radius: 16px;
    }

    .player-full-body {
      min-width: 0;
    }

    .player-full-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 8px;
    }

    .player-full-head h3 {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      min-width: 0;
      margin: 0;
      color: var(--pd-green-dark);
      font-size: 20px;
      line-height: 1.1;
    }

    .player-full-head h3 > span:first-child {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .player-full-actions {
      display: inline-flex;
      align-items: center;
      justify-content: flex-end;
      gap: 6px;
      flex: 0 0 auto;
    }

    .player-full-head a {
      flex: 0 0 auto;
      padding: 6px 9px;
      border: 1px solid #c8e4d0;
      border-radius: 999px;
      color: var(--pd-green-dark);
      background: #ecf8ef;
      font-size: 11px;
      font-weight: 950;
      text-decoration: none;
    }

    .player-card-meta {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 6px;
      min-width: 0;
    }

    .player-card-meta .player-detail-facts,
    .player-card-meta .player-current-stats {
      margin-top: 0;
    }

    .player-card-meta .player-current-stats span {
      min-height: 20px;
      padding: 1px 9px;
      border-radius: 8px;
      line-height: 1.15;
    }

    .player-card-meta .player-current-stats b,
    .player-card-meta .player-current-stats em {
      font-size: 11px;
      line-height: 1;
    }

    .player-card-meta .player-current-stats.is-empty {
      display: none;
    }

    .player-card-insta {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 24px;
      min-width: 24px;
      height: 24px;
      min-height: 24px;
      margin: 0;
      padding: 0;
      border: 1px solid #f2b6cb;
      border-radius: 9px;
      background: #fff5fa;
      color: #d62976;
      cursor: pointer;
    }

    .player-card-insta svg {
      width: 15px;
      height: 15px;
      fill: currentColor;
    }

    .player-intro-block {
      position: relative;
      padding: 9px 10px 0;
      --player-intro-lines: 3;
      cursor: pointer;
    }

    .player-intro-block p {
      line-height: 1.42;
      max-height: 4.26em;
      overflow: hidden;
      box-sizing: border-box;
      margin-bottom: 0;
    }

    .player-intro-block:not(.is-expanded) p {
      display: -webkit-box;
      -webkit-line-clamp: var(--player-intro-lines);
      -webkit-box-orient: vertical;
      min-height: 4.26em;
    }

    .player-intro-block.is-expanded p {
      max-height: none;
      cursor: pointer;
    }

    .player-intro-block.is-static {
      cursor: default;
    }

    .player-intro-block:focus-visible {
      outline: 2px solid rgba(21, 131, 77, .34);
      outline-offset: 2px;
    }

    .team-coach-detail-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
      gap: 10px;
      min-width: 0;
    }

    .team-coach-profile {
      grid-column: 1 / -1;
    }

    .team-coach-detail-grid > .player-detail-block:last-child {
      grid-column: 1 / -1;
    }

    .team-coach-profile-layout {
      display: grid;
      grid-template-columns: 104px minmax(0, 1fr);
      gap: 12px;
      align-items: start;
      min-width: 0;
    }

    .team-coach-media {
      display: grid;
      gap: 7px;
      align-content: start;
      min-width: 0;
    }

    .team-coach-profile-main {
      min-width: 0;
      display: grid;
      gap: 8px;
      align-content: start;
    }

    .team-coach-profile-heading {
      min-width: 0;
    }

    .team-coach-name-line {
      display: grid;
      grid-template-columns: max-content minmax(0, 1fr);
      align-items: center;
      gap: 8px;
      min-width: 0;
      margin-bottom: 6px;
    }

    .team-coach-rate-panel {
      grid-column: 1 / -1;
      min-width: 0;
      display: grid;
      gap: 5px;
      align-self: start;
      padding: 7px 8px;
      border: 1px solid #d6eadc;
      border-radius: 13px;
      background: #fbfffc;
    }

    .team-coach-rate-panel .coach-rate-switch {
      padding: 0;
      border: 0;
      background: transparent;
      box-shadow: none;
    }

    .team-coach-rate-panel .coach-rate-switch-tabs {
      grid-template-columns: repeat(2, minmax(0, max-content));
      justify-content: start;
      gap: 6px;
      min-height: 26px;
    }

    .team-coach-rate-panel .coach-rate-switch-tabs button {
      min-height: 24px;
      padding: 4px 10px;
      font-size: 11px;
      border-radius: 999px;
      white-space: nowrap;
    }

    .team-coach-rate-panel .coach-rate-panel {
      min-height: 34px;
    }

    .team-coach-rate-panel > strong {
      color: var(--pd-green-dark);
      font-size: 11px;
      font-weight: 950;
    }

    .team-coach-media .player-detail-photo {
      width: 98px;
      height: 122px;
      border-radius: 15px;
    }

    .team-coach-profile-heading h3 {
      margin: 0;
      color: var(--pd-green-dark);
      font-size: 22px;
      line-height: 1.1;
      white-space: nowrap;
    }

    .team-coach-history-inline {
      min-width: 0;
      color: #5d7567;
      font-size: 11.5px;
      font-weight: 850;
      line-height: 1.2;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .team-coach-intro-grid {
      margin-top: 10px;
      padding: 10px 11px;
      border: 1px solid #d6eadc;
      border-radius: 13px;
      background: linear-gradient(180deg, #fbfffc, #f1fbf4);
      min-width: 0;
    }

    .team-coach-intro {
      margin: 0;
      color: #4f6759;
      font-size: 12px;
      font-weight: 760;
      line-height: 1.5;
      word-break: keep-all;
    }

    .team-coach-intro-grid.player-intro-block:not(.is-expanded) .team-coach-intro {
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      min-height: auto;
      max-height: 4.5em;
      overflow: hidden;
    }

    .team-coach-intro-grid.player-intro-block.is-expanded .team-coach-intro {
      display: block;
      max-height: none;
    }

    .coach-team-line {
      align-items: center;
      flex-wrap: nowrap;
      gap: 5px;
    }

    .coach-card-insta {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 24px;
      min-width: 24px;
      height: 24px;
      min-height: 24px;
      padding: 0;
      border: 1px solid #f2b6cb;
      border-radius: 9px;
      background: #fff5fa;
      color: #d62976;
      text-decoration: none;
    }

    .coach-card-insta svg {
      width: 15px;
      height: 15px;
      fill: currentColor;
    }

    .team-coach-history {
      margin-top: 0;
      padding: 6px 7px;
      border: 1px solid #d6eadc;
      border-radius: 11px;
      background: #fbfffc;
    }

    .team-coach-history strong {
      display: block;
      margin-bottom: 4px;
      color: var(--pd-green-dark);
      font-size: 10.5px;
    }

    .transfer-card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
      gap: 8px;
    }

    .transfer-card {
      display: grid;
      grid-template-columns: 42px minmax(0, 1fr);
      align-items: center;
      gap: 12px;
      min-height: 58px;
      padding: 8px;
      border: 1px solid #d6eadc;
      border-radius: 14px;
      background: #fff;
    }

    .transfer-card img,
    .transfer-card .league-detail-mark,
    .transfer-card .transfer-silhouette {
      width: 42px;
      height: 42px;
      border-radius: 12px;
      object-fit: cover;
      overflow: hidden;
      background: #fff;
      border: 1px solid #c9e3d1;
    }

    .transfer-card img {
      object-position: center var(--fs-player-circle-y, 30%);
      transform: scale(var(--fs-player-circle-scale, 1.18));
      transform-origin: center var(--fs-player-circle-y, 30%);
    }

    .transfer-card .league-detail-mark {
      object-position: center var(--fs-team-logo-y, 50%);
    }

    .player-detail-silhouette,
    .transfer-silhouette {
      display: grid;
      place-items: center;
      width: 100%;
      height: 100%;
    }

    .player-detail-silhouette svg,
    .transfer-silhouette svg {
      width: 100%;
      height: 100%;
      display: block;
    }

    .transfer-card > div {
      min-width: 0;
    }

    .transfer-card b,
    .transfer-card small {
      display: block;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .transfer-card b {
      display: flex;
      align-items: center;
      gap: 5px;
      color: var(--pd-green-dark);
      font-size: 13px;
      font-weight: 950;
    }

    .transfer-card b span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .transfer-card b .player-name-number {
      flex: 0 0 auto;
      min-width: 22px;
      overflow: visible;
    }

    .transfer-card small {
      margin-top: 3px;
      color: var(--pd-muted);
      font-size: 11px;
      font-weight: 850;
    }

    .transfer-card .transfer-route-text {
      color: #174f2d;
      font-weight: 1000;
    }

    .transfer-card .transfer-route-logos {
      display: flex;
      align-items: center;
      gap: 5px;
      overflow: hidden;
      white-space: nowrap;
    }

    .transfer-card .transfer-route-logos b {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: auto;
      min-width: 0;
      max-width: 120px;
      height: 22px;
      padding: 1px 7px 1px 2px;
      gap: 4px;
      border: 1px solid rgba(20, 115, 70, 0.24);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.86);
    }

    .transfer-card .transfer-route-logos .team-logo-circle {
      width: 18px;
      height: 18px;
      min-width: 18px;
      border-radius: 50%;
    }

    .transfer-card .transfer-route-logos em {
      min-width: 0;
      max-width: 82px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-style: normal;
      color: #174f2d;
      font-size: 10px;
      font-weight: 950;
    }

    .transfer-card .transfer-route-logos i {
      flex: none;
      color: rgba(23, 79, 45, 0.52);
      font-style: normal;
      font-weight: 1000;
    }

    .transfer-card mark {
      display: inline-flex;
      align-items: center;
      flex: none;
      height: 18px;
      padding: 0 7px;
      border-radius: 999px;
      background: #eef8f1;
      color: var(--pd-green-dark);
      font-size: 10px;
      font-weight: 950;
    }

    .transfer-card mark.is-transfer {
      background: #e8f2ff;
      color: #1d4ed8;
    }

    .transfer-card mark.is-left {
      background: #fff4e6;
      color: #9a5a0b;
    }

    .player-portrait-circle {
      aspect-ratio: 1 / 1;
      border-radius: 50% !important;
      overflow: hidden;
      object-fit: cover;
      object-position: center var(--fs-player-circle-y, 30%);
    }

    .player-portrait-circle img,
    .player-portrait-circle svg {
      display: block;
      width: 100% !important;
      height: 100% !important;
      border-radius: 50% !important;
      object-fit: cover;
      object-position: center var(--fs-player-circle-y, 30%);
    }

    .player-portrait-circle img {
      transform: scale(var(--fs-player-circle-scale, 1.18));
      transform-origin: center var(--fs-player-circle-y, 30%);
    }

    .pimg.player-portrait-circle {
      width: 54px !important;
      height: 54px !important;
      min-width: 54px;
      min-height: 54px;
    }

    .transfer-card .transfer-player-photo,
    .transfer-card .transfer-silhouette.transfer-player-photo {
      width: 42px;
      height: 42px;
      border-radius: 50% !important;
    }

    .player-detail-photo--player {
      width: 128px;
      height: 174px;
      border-radius: 20px !important;
    }

    .player-detail-photo--player img,
    .player-detail-photo--player svg {
      border-radius: 20px !important;
      object-position: center var(--fs-player-circle-y, 30%);
    }

    .player-detail-photo--player img {
      transform: scale(var(--fs-player-circle-scale, 1.18));
      transform-origin: center var(--fs-player-circle-y, 30%);
    }

    .player-full-card .player-detail-photo--player.player-portrait-circle {
      aspect-ratio: auto;
      border-radius: 16px !important;
    }

    .player-full-card .player-detail-photo--player.player-portrait-circle img,
    .player-full-card .player-detail-photo--player.player-portrait-circle svg {
      border-radius: 16px !important;
      object-position: center var(--fs-player-circle-y, 30%);
    }

    .relation-brief {
      margin-bottom: 10px;
    }

    .relation-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(340px, 1fr));
      gap: 10px;
    }

    .relation-section {
      min-width: 0;
      padding: 12px 12px 12px 17px;
      border: 1px solid #d6eadc;
      border-radius: 14px;
      background: #f9fcfa;
    }

    .relation-section-wide {
      grid-column: 1 / -1;
    }

    .relation-section-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 0 4px 0 12px;
      margin-bottom: 9px;
    }

    .relation-section-title strong {
      color: var(--pd-green-dark);
      font-size: 14px;
      font-weight: 950;
    }

    .relation-section-title span {
      flex: 0 0 auto;
      padding: 4px 7px;
      border-radius: 999px;
      background: #e4f2e8;
      color: var(--pd-green-dark);
      font-size: 11px;
      font-weight: 950;
    }

    .relation-fold-toggle {
      position: absolute;
      width: 1px;
      height: 1px;
      opacity: 0;
      pointer-events: none;
    }

    .relation-fold-body {
      max-height: var(--relation-fold-h, 202px);
      min-height: var(--relation-fold-min-h, var(--relation-fold-h, 202px));
      overflow: hidden;
      transition: max-height .22s ease;
    }

    .relation-fold-toggle:checked ~ .relation-fold-body {
      max-height: 1600px;
      min-height: 0;
    }

    .relation-fold-action {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 34px;
      min-width: 34px;
      height: 24px;
      margin: 9px auto 0;
      padding: 0;
      border-radius: 999px;
      border: 1px solid #c9e3d1;
      background: #fff;
      color: var(--pd-green-dark);
      font-size: 17px;
      font-weight: 1000;
      line-height: 1;
      cursor: pointer;
      box-shadow: 0 4px 10px rgba(22, 101, 52, .08);
    }

    .relation-fold-less {
      display: none;
    }

    .relation-fold-toggle:checked ~ .relation-fold-action .relation-fold-more {
      display: none;
    }

    .relation-fold-toggle:checked ~ .relation-fold-action .relation-fold-less {
      display: inline;
    }

    .relation-card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
      gap: 8px;
    }

    .relation-card-grid-tight {
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .relation-constellation.relation-fold-body,
    .relation-chemistry-lines.relation-fold-body {
      --relation-fold-h: 218px;
      --relation-fold-min-h: 218px;
    }

    .relation-family-list {
      display: grid;
      gap: 9px;
    }

    .relation-family-card {
      min-width: 0;
      padding: 9px;
      border: 1px solid #d6eadc;
      border-radius: 12px;
      background: #fff;
    }

    .relation-family-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 8px;
    }

    .relation-family-head strong {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: var(--pd-green-dark);
      font-size: 13px;
      font-weight: 1000;
    }

    .relation-family-head span {
      flex: 0 0 auto;
      padding: 3px 7px;
      border-radius: 999px;
      background: #fff0e5;
      color: #9a3f0b;
      font-size: 10px;
      font-weight: 950;
    }

    .relation-pitch {
      display: grid;
      gap: 10px;
      padding: 12px;
      border: 1px solid #c9e3d1;
      border-radius: 14px;
      background: linear-gradient(180deg, #edf8f0, #f9fcfa);
    }

    .relation-pitch-line {
      display: grid;
      grid-template-columns: 48px minmax(0, 1fr);
      align-items: center;
      gap: 8px;
      min-height: 66px;
    }

    .relation-pitch-line > strong {
      display: grid;
      place-items: center;
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: #16834a;
      color: #fff;
      font-size: 12px;
      font-weight: 1000;
    }

    .relation-pitch-line > div,
    .relation-age-stars {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }

    .relation-orbit-player {
      display: inline-grid;
      justify-items: center;
      gap: 3px;
      width: 64px;
      min-width: 0;
      text-align: center;
    }

    .relation-orbit-player b,
    .relation-orbit-player em {
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-style: normal;
      line-height: 1.1;
    }

    .relation-orbit-player b {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 3px;
      color: var(--pd-green-dark);
      font-size: 11px;
      font-weight: 1000;
    }

    .relation-orbit-player b > span:first-child {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .relation-orbit-player em {
      color: var(--pd-muted);
      font-size: 9px;
      font-weight: 850;
    }

    .relation-orbit-player .relation-avatar img {
      width: 100%;
      height: 100%;
      object-position: center var(--fs-player-circle-y, 30%);
      transform: scale(var(--fs-player-circle-scale, 1.18));
      transform-origin: center var(--fs-player-circle-y, 30%);
    }

    .relation-constellation,
    .relation-chemistry-lines,
    .relation-core-triangles {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
      gap: 10px;
    }

    .relation-age-orbit,
    .relation-chemistry-card,
    .relation-core-triangle {
      min-width: 0;
      padding: 10px;
      border: 1px solid #d6eadc;
      border-radius: 14px;
      background: #fff;
    }

    .relation-chemistry-card {
      display: grid;
      grid-template-columns: 70px minmax(0, 1fr);
      align-items: center;
      gap: 10px;
      background: linear-gradient(135deg, #fff, #fff7fb);
      border-color: #efd1de;
    }

    .relation-chemistry-core {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 70px;
      height: 70px;
      padding: 10px 6px 9px;
      border-radius: 50%;
      background: #fff0f6;
      text-align: center;
      box-shadow: inset 0 0 0 2px rgba(214, 41, 118, .12);
      box-sizing: border-box;
    }

    .relation-chemistry-mark {
      position: relative;
      z-index: 2;
      display: grid;
      justify-items: center;
      align-content: center;
      gap: 2px;
      width: 100%;
      height: 100%;
      min-width: 0;
      color: #3f0823;
      font-weight: 1000;
      line-height: 1;
    }

    .relation-chemistry-core::before {
      content: "";
      position: absolute;
      inset: 6px;
      z-index: 0;
      border-radius: inherit;
      background: linear-gradient(180deg, #ffe5f1 0%, #ffc0dc 100%);
      box-shadow: inset 0 0 0 1px rgba(159, 18, 57, .16);
    }

    .relation-chemistry-core::after {
      content: none;
    }

    .relation-chemistry-mark b {
      display: block;
      min-width: 0;
      color: #3f0823;
      font-size: 15px;
      line-height: 1;
      letter-spacing: 0;
      text-shadow: 0 1px 0 rgba(255, 255, 255, .72);
      white-space: nowrap;
    }

    .relation-chemistry-mark i {
      display: block;
      max-width: 46px;
      min-width: 0;
      padding: 2px 6px;
      border-radius: 999px;
      background: #fff7fb;
      color: #4f0b2a;
      border: 1px solid rgba(159, 18, 57, .18);
      font-size: 10px;
      font-style: normal;
      line-height: 1.1;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .relation-chemistry-card strong {
      display: block;
      color: #8b174b;
      font-size: 13px;
      font-weight: 1000;
    }

    .relation-chemistry-card p {
      margin: 3px 0 7px;
      color: var(--pd-muted);
      font-size: 10px;
      font-weight: 850;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .relation-chemistry-card > div:last-child > div {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      align-items: center;
    }

    .relation-age-orbit {
      display: grid;
      grid-template-columns: 82px minmax(0, 1fr);
      align-items: center;
      gap: 10px;
    }

    .relation-age-core {
      display: grid;
      place-items: center;
      width: 82px;
      height: 82px;
      border-radius: 50%;
      background: #fff0e5;
      color: #9a3f0b;
      text-align: center;
      box-shadow: inset 0 0 0 2px rgba(154, 63, 11, .12);
    }

    .relation-age-core b,
    .relation-age-core span {
      display: block;
      line-height: 1.1;
      font-weight: 1000;
    }

    .relation-age-core b {
      font-size: 15px;
    }

    .relation-age-core span {
      margin-top: 3px;
      font-size: 10px;
    }

    .relation-age-spectrum {
      display: grid;
      gap: 8px;
    }

    .relation-spectrum-row {
      display: grid;
      grid-template-columns: 96px minmax(0, 1fr);
      align-items: center;
      gap: 9px;
      padding: 9px;
      border: 1px solid #d6eadc;
      border-radius: 12px;
      background: #fff;
    }

    .relation-spectrum-row strong {
      color: var(--pd-green-dark);
      font-size: 12px;
      font-weight: 1000;
    }

    .relation-spectrum-body {
      display: grid;
      gap: 6px;
      min-width: 0;
    }

    .relation-spectrum-bar {
      position: relative;
      height: 10px;
      border-radius: 999px;
      background: linear-gradient(90deg, #9ed7f1, #f1d77b, #f2a36e);
    }

    .relation-spectrum-bar span,
    .relation-spectrum-bar i,
    .relation-spectrum-bar em {
      position: absolute;
      top: 50%;
      width: 14px;
      height: 14px;
      border: 2px solid #fff;
      border-radius: 50%;
      transform: translate(-50%, -50%);
      box-shadow: 0 2px 6px rgba(20, 70, 40, .16);
    }

    .relation-spectrum-bar span { left: 12%; background: #0f7c95; }
    .relation-spectrum-bar i { left: 50%; background: #c89312; }
    .relation-spectrum-bar em { left: 88%; background: #b85a18; }

    .relation-spectrum-labels {
      display: grid;
      grid-template-columns: 24% 52% 24%;
      align-items: start;
      color: var(--pd-muted);
      font-size: 10px;
      font-weight: 850;
      line-height: 1.15;
      min-width: 0;
    }

    .relation-spectrum-labels span {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 3px;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      text-align: center;
    }

    .relation-spectrum-labels span:nth-child(2) {
      justify-content: center;
    }

    .relation-spectrum-labels span:nth-child(3) {
      justify-content: center;
    }

    .relation-spectrum-labels b {
      flex: 0 0 auto;
      color: var(--pd-green-dark);
      font-size: 9px;
      font-weight: 1000;
    }

    .relation-spectrum-labels em {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      font-style: normal;
    }

    .relation-coach-age-flow {
      position: relative;
      display: grid;
      grid-template-columns: repeat(var(--coach-count, 8), minmax(0, 1fr));
      align-items: start;
      gap: clamp(2px, 0.65vw, 7px);
      min-height: var(--coach-height, 148px);
      padding: 12px 6px 4px;
      overflow: hidden;
    }

    .relation-coach-age-flow::before {
      content: "";
      position: absolute;
      left: 18px;
      right: 18px;
      top: 58px;
      height: 8px;
      border-radius: 999px;
      background: linear-gradient(90deg, #f2a36e, #f1d77b, #9ed7f1);
      opacity: .58;
    }

    .relation-coach-age-chip {
      position: relative;
      z-index: 1;
      display: grid;
      justify-items: center;
      gap: 4px;
      min-width: 0;
      padding: 6px 3px;
      border: 1px solid #d6eadc;
      border-radius: 14px;
      background: rgba(255, 255, 255, .94);
      box-shadow: 0 6px 14px rgba(22, 101, 52, .08);
      transform: translateY(calc(var(--coach-rank, 0) * 9px));
    }

    .relation-coach-age-chip .relation-avatar,
    .relation-coach-age-chip .relation-avatar > span {
      width: 38px;
      height: 38px;
      min-width: 38px;
      min-height: 38px;
    }

    .relation-coach-age-chip .relation-avatar img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center var(--fs-player-circle-y, 30%);
      transform: scale(var(--fs-player-circle-scale, 1.18));
      transform-origin: center var(--fs-player-circle-y, 30%);
    }

    .relation-coach-age-chip b,
    .relation-coach-age-chip p,
    .relation-coach-age-chip small {
      display: block;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      text-align: center;
      max-width: 100%;
    }

    .relation-coach-age-chip b {
      color: var(--pd-green-dark);
      font-size: 12px;
      font-weight: 1000;
    }

    .relation-coach-age-chip p {
      margin: 2px 0 0;
      color: #9a3f0b;
      font-size: 10px;
      font-weight: 950;
    }

    .relation-coach-age-chip small {
      margin-top: 2px;
      color: var(--pd-muted);
      font-size: 9px;
      font-weight: 850;
    }

    .relation-core-triangle > strong {
      display: block;
      margin-bottom: 8px;
      color: var(--pd-green-dark);
      font-size: 13px;
      font-weight: 1000;
    }

    .relation-triangle {
      position: relative;
      min-height: 178px;
      border-radius: 14px;
      background: linear-gradient(180deg, #f8fcfa, #eef8f1);
    }

    .relation-tri-node {
      position: absolute;
      display: grid;
      justify-items: center;
      gap: 4px;
    }

    .relation-tri-node > span {
      padding: 2px 7px;
      border-radius: 999px;
      background: #e4f2e8;
      color: var(--pd-green-dark);
      font-size: 10px;
      font-weight: 950;
    }

    .relation-tri-top { top: 8px; left: 50%; transform: translateX(-50%); }
    .relation-tri-left { left: 14px; bottom: 10px; }
    .relation-tri-right { right: 14px; bottom: 10px; }

    .relation-empty {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 42px;
      margin: 0;
      padding: 8px 12px;
      border: 1px dashed #cfe5d6;
      border-radius: 12px;
      background: rgba(255, 255, 255, .72);
      color: #738678;
      font-size: 11px;
      font-weight: 850;
      line-height: 1.35;
      text-align: center;
    }

    .relation-card {
      display: grid;
      grid-template-columns: 50px minmax(0, 1fr);
      gap: 10px;
      align-items: center;
      min-width: 0;
      min-height: 78px;
      padding: 9px;
      border: 1px solid #d6eadc;
      border-radius: 12px;
      background: #fff;
    }

    .relation-avatar,
    .relation-avatar > span,
    .relation-silhouette {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      overflow: hidden;
    }

    .relation-avatar {
      display: grid;
      place-items: center;
      border: 1px solid #c9e3d1;
      background: #fff;
    }

    .relation-avatar img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center var(--fs-player-circle-y, 30%);
      transform: scale(var(--fs-player-circle-scale, 1.18));
      transform-origin: center var(--fs-player-circle-y, 30%);
      border: 0;
    }

    .relation-avatar > span {
      display: grid;
      place-items: center;
      color: var(--pd-green-dark);
      font-size: 9px;
      font-weight: 950;
      background: #eef8f1;
    }

    .relation-silhouette svg {
      width: 100%;
      height: 100%;
      display: block;
    }

    .relation-card b,
    .relation-card p,
    .relation-card small,
    .relation-team-card b,
    .relation-team-card p,
    .relation-team-card em {
      display: block;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .relation-card b {
      color: var(--pd-green-dark);
      font-size: 13px;
      font-weight: 950;
    }

    .relation-card p {
      margin: 3px 0 0;
      color: #2d5d3b;
      font-size: 11px;
      font-weight: 850;
    }

    .relation-card small {
      margin-top: 3px;
      color: var(--pd-muted);
      font-size: 10px;
      font-weight: 800;
    }

    .relation-team-strip {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 8px;
    }

    .relation-team-card {
      display: grid;
      grid-template-columns: 34px minmax(0, 1fr) auto;
      align-items: center;
      gap: 8px;
      min-width: 0;
      padding: 8px;
      border: 1px solid #d6eadc;
      border-radius: 12px;
      background: #fff;
    }

    .relation-team-card img,
    .relation-team-card > span {
      width: 34px;
      height: 34px;
      border-radius: 10px;
      object-fit: contain;
      background: #fff;
      border: 1px solid #c9e3d1;
    }

    .relation-team-card > span {
      display: grid;
      place-items: center;
      color: var(--pd-green-dark);
      font-size: 9px;
      font-weight: 950;
    }

    .relation-team-card b {
      color: var(--pd-green-dark);
      font-size: 12px;
      font-weight: 950;
    }

    .relation-team-card p,
    .relation-team-card em {
      margin: 2px 0 0;
      color: var(--pd-muted);
      font-size: 10px;
      font-style: normal;
      font-weight: 850;
    }

    .relation-check-list {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .relation-check-list span {
      min-width: 0;
      max-width: 100%;
      padding: 5px 8px;
      border-radius: 999px;
      background: #fff7df;
      color: #775700;
      font-size: 11px;
      font-weight: 900;
    }

    @media (max-width: 720px) {
      :root {
        --player-detail-back-gap: 26px;
      }

      .player-detail-back {
        position: fixed;
        top: calc(env(safe-area-inset-top, 0px) + var(--player-main-nav-h, 46px) + var(--player-detail-back-gap, 26px));
        left: 12px;
        z-index: 5200;
        min-height: 32px;
        margin: 0;
        padding: 5px 11px;
        border-color: #b8dfc4;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 12px 26px rgba(11, 95, 56, .18);
      }

      .player-detail-page-dialog {
        width: 100%;
        max-width: 100%;
        margin-inline: 0;
        box-sizing: border-box;
        padding-top: 50px;
      }

      .team-coach-team-section,
      .player-roster-team-section,
      .relation-section {
        padding: 9px 8px 9px 12px;
      }

      .team-coach-team-section::before,
      .player-roster-team-section::before,
      .relation-section::before {
        width: 5px;
      }

      .team-coach-detail-grid {
        grid-template-columns: 1fr;
        gap: 7px;
      }

      .team-coach-profile-layout {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 7px;
      }

      .team-coach-name-line {
        grid-template-columns: max-content minmax(0, 1fr);
        gap: 5px;
        margin-bottom: 4px;
      }

      .team-coach-history-inline {
        font-size: 9.5px;
        line-height: 1.1;
      }

      .team-coach-rate-panel {
        padding: 5px 6px;
        border-radius: 10px;
      }

      .team-coach-rate-panel > strong {
        margin-bottom: 0;
      }

      .team-coach-intro-grid {
        margin-top: 6px;
        padding: 7px;
        border-radius: 10px;
      }

      .team-coach-intro {
        font-size: 11.5px;
        line-height: 1.42;
      }

      .player-full-card {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 8px;
        padding: 9px;
      }

      .player-full-card .player-detail-photo {
        grid-row: 1 / span 2;
        width: 64px;
        height: 86px;
        border-radius: 13px;
      }

      .player-full-card .player-detail-photo--player.player-portrait-circle,
      .player-full-card .player-detail-photo--player.player-portrait-circle img,
      .player-full-card .player-detail-photo--player.player-portrait-circle svg {
        border-radius: 13px !important;
      }

      .player-full-body {
        display: contents;
      }

      .player-full-head {
        grid-column: 2;
        align-items: flex-start;
        flex-direction: row;
        gap: 6px;
        margin-bottom: 0;
      }

      .player-full-head h3 {
        min-width: 0;
        font-size: 16px;
        overflow-wrap: anywhere;
      }

      .player-full-head a {
        padding: 5px 7px;
        font-size: 10px;
      }

      .player-full-actions {
        gap: 4px;
      }

      .player-card-insta {
        width: 22px;
        min-width: 22px;
        height: 22px;
        min-height: 22px;
        border-radius: 8px;
      }

      .player-full-card .player-detail-facts {
        display: flex;
        flex-wrap: nowrap;
        gap: 4px;
        overflow: hidden;
      }

      .player-full-card .player-card-meta {
        grid-column: 2;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
      }

      .player-full-card .player-card-meta .player-current-stats {
        order: 0;
        display: flex;
        flex-wrap: nowrap;
        min-height: 18px;
        gap: 4px;
        overflow: hidden;
      }

      .player-full-card .player-card-meta .player-current-stats.is-empty {
        display: block;
        width: 100%;
      }

      .player-full-card .player-card-meta .player-detail-facts {
        order: 0;
        flex-wrap: nowrap;
        overflow: hidden;
      }

      .player-full-card .player-detail-facts .player-fact-compact {
        width: auto;
        min-width: 30px;
        min-height: 18px;
        padding: 1px 8px;
        border-radius: 7px;
        font-size: 10px;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .player-full-card .player-card-meta .player-current-stats span {
        flex: 0 1 auto;
        min-width: 30px;
        min-height: 18px;
        padding: 1px 8px;
        border-radius: 7px;
        font-size: 10px;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .player-full-card .player-card-meta .player-current-stats b,
      .player-full-card .player-card-meta .player-current-stats em {
        font-size: 10px;
      }

      .player-full-card .player-detail-block {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 8px;
        padding: 9px;
      }

      .player-full-card .player-detail-stats {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 8px;
        gap: 5px;
      }

      .player-full-card .player-detail-stats span {
        min-width: 54px;
        min-height: 42px;
        padding: 6px 8px;
      }

      .player-full-card .player-current-stats span,
      .player-current-stats span {
        min-width: 0;
        min-height: 28px;
        padding: 5px 8px;
        flex-direction: row;
      }

      .player-full-card .player-card-meta .player-current-stats {
        grid-column: auto;
        width: auto;
        margin-top: 0;
        min-height: 18px;
        gap: 4px;
      }

      .player-full-card .player-card-meta .player-current-stats span {
        flex: 0 1 auto;
        min-width: 30px;
        min-height: 18px;
        padding: 1px 8px;
        border-radius: 7px;
        font-size: 10px;
      }

      .player-intro-block p {
        max-height: 4.26em;
        text-align: left;
      }

      .player-intro-block {
        --player-intro-lines: 3;
      }

      .team-coach-media {
        gap: 5px;
      }

      .team-coach-media .player-detail-photo {
        width: 52px;
        height: 64px;
        border-radius: 9px;
      }

      .team-coach-profile-heading h3 {
        margin-bottom: 2px;
        font-size: 15px;
      }

      .coach-team-line {
        gap: 4px;
      }

      .coach-card-insta {
        width: 22px;
        min-width: 22px;
        height: 22px;
        min-height: 22px;
        border-radius: 8px;
      }

      .team-coach-detail-grid .player-detail-block {
        margin-top: 5px;
        padding: 7px;
        border-radius: 11px;
      }

      .team-coach-detail-grid .player-detail-block strong {
        margin-bottom: 4px;
        font-size: 12px;
      }

      .team-coach-detail-grid .player-detail-facts span {
        min-height: 24px;
        padding: 4px 7px;
        font-size: 10px;
      }

      .team-coach-detail-grid .player-detail-coach-list {
        gap: 5px;
      }

      .team-coach-detail-grid .player-detail-coach-row {
        grid-template-columns: minmax(52px, 74px) minmax(46px, 1fr) 30px;
        grid-template-areas: "name bar record";
        align-items: center;
        gap: 4px;
        min-height: 28px;
        padding: 4px 6px;
        border-radius: 10px;
      }

      .team-coach-detail-grid .player-detail-coach-row .coach-rate-name {
        grid-area: name;
        min-height: 20px;
        padding: 3px 6px;
        font-size: 9.5px;
        align-self: stretch;
      }

      .team-coach-detail-grid .player-detail-coach-row .coach-rate-record {
        display: none;
      }

      .team-coach-detail-grid .player-detail-coach-row i {
        grid-area: bar;
        height: 6px;
        min-width: 0;
      }

      .team-coach-detail-grid .player-detail-coach-row em {
        grid-area: record;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 10px;
        line-height: 1.05;
        align-self: center;
      }

      .team-coach-history {
        margin-top: 7px;
        padding-top: 7px;
      }

      .team-coach-history ul,
      .team-coach-detail-grid .player-detail-block ul {
        font-size: 11px;
        line-height: 1.35;
      }

      .transfer-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
      }

      .transfer-team-section {
        gap: 6px;
        padding-block: 8px;
      }

      .transfer-team-section .player-team-detail-title {
        min-height: 28px;
      }

      .transfer-card {
        grid-template-columns: 34px minmax(0, 1fr);
        min-height: 44px;
        gap: 10px;
        padding: 6px;
      }

      .transfer-card b {
        font-size: 12px;
      }

      .transfer-card .transfer-route-text {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.22;
      }

      .transfer-card .transfer-route-logos {
        gap: 4px;
        overflow-x: auto;
        scrollbar-width: none;
      }

      .transfer-card .transfer-route-logos::-webkit-scrollbar {
        display: none;
      }

      .transfer-card .transfer-route-logos b {
        max-width: 74px;
        flex: none;
      }

      .transfer-card small {
        font-size: 10px;
      }

      .transfer-card img,
      .transfer-card .league-detail-mark,
      .transfer-card .transfer-silhouette {
        width: 30px;
        height: 30px;
      }

      .relation-grid {
        grid-template-columns: 1fr;
        gap: 8px;
      }

      .relation-section {
        padding: 9px 9px 9px 13px;
        border-radius: 12px;
      }

      .relation-section-title {
        padding-left: 10px;
        padding-right: 3px;
      }

      .relation-card-grid,
      .relation-card-grid-tight,
      .relation-team-strip,
      .relation-family-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
      }

      .relation-empty {
        grid-column: 1 / -1;
        min-height: 34px;
        padding: 7px 9px;
        font-size: 10px;
      }

      .relation-card {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 7px;
        align-items: start;
        min-height: 62px;
        padding: 7px;
      }

      .relation-avatar,
      .relation-avatar > span,
      .relation-silhouette {
        display: grid;
        width: 38px;
        height: 38px;
        border-radius: 50%;
      }

      .relation-avatar img {
        display: block;
      }

      .relation-team-card {
        grid-template-columns: minmax(0, 1fr);
        min-height: 76px;
        gap: 3px;
      }

      .relation-team-card img,
      .relation-team-card > span {
        display: none;
      }

      .relation-team-card em {
        margin-top: 4px;
      }

      .relation-pitch {
        padding: 9px;
        gap: 7px;
        background: linear-gradient(180deg, #edf8f0, #f9fcfa);
      }

      .relation-pitch-line {
        grid-template-columns: 38px minmax(0, 1fr);
        min-height: 58px;
        gap: 6px;
      }

      .relation-pitch-line > strong {
        width: 34px;
        height: 34px;
        font-size: 10px;
      }

      .relation-orbit-player {
        width: 48px;
      }

      .relation-orbit-player b {
        font-size: 10px;
      }

      .relation-orbit-player em {
        display: none;
      }

      .relation-constellation,
      .relation-chemistry-lines,
      .relation-core-triangles {
        grid-template-columns: 1fr;
      }

      .relation-fold-body {
        --relation-fold-h: 178px;
      }

      .relation-constellation.relation-fold-body,
      .relation-chemistry-lines.relation-fold-body {
        --relation-fold-h: 188px;
        --relation-fold-min-h: 188px;
      }

      .relation-age-orbit {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 8px;
      }

      .relation-age-core {
        width: 64px;
        height: 64px;
      }

      .relation-chemistry-card {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 8px;
        padding: 8px;
      }

      .relation-chemistry-core {
        width: 64px;
        height: 64px;
        padding: 8px 5px 7px;
        border-radius: 50%;
      }

      .relation-chemistry-mark b {
        font-size: 13px;
      }

      .relation-chemistry-mark i {
        max-width: 40px;
        padding: 2px 5px;
        font-size: 9px;
      }

      .relation-age-core b {
        font-size: 12px;
      }

      .relation-spectrum-row {
        grid-template-columns: 1fr;
        gap: 6px;
      }

      .relation-coach-age-flow {
        grid-template-columns: repeat(var(--coach-count, 8), minmax(0, 1fr));
        gap: 1px;
        min-height: var(--coach-mobile-height, 112px);
        padding: 8px 0 0;
      }

      .relation-coach-age-flow::before {
        display: block;
        left: 8px;
        right: 8px;
        top: 40px;
        height: 6px;
      }

      .relation-coach-age-chip {
        gap: 2px;
        padding: 3px 1px;
        border-radius: 10px;
        transform: translateY(calc(var(--coach-rank, 0) * 6px));
      }

      .relation-coach-age-chip .relation-avatar,
      .relation-coach-age-chip .relation-avatar > span {
        width: 26px;
        height: 26px;
        min-width: 26px;
        min-height: 26px;
      }

      .relation-coach-age-chip b {
        font-size: 8px;
      }

      .relation-coach-age-chip p {
        margin-top: 1px;
        font-size: 7px;
      }

      .relation-coach-age-chip small {
        display: none;
      }

      .relation-triangle {
        min-height: 160px;
      }
    }

    @media (min-width: 520px) and (max-width: 720px) {
      .transfer-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    .league-detail-row b,
    .league-detail-row small {
      display: block;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .league-detail-row b {
      color: var(--pd-green-dark);
      font-size: 13px;
      font-weight: 950;
    }

    .league-detail-row small {
      margin-top: 3px;
      color: var(--pd-muted);
      font-size: 11px;
      font-weight: 850;
    }

    .player-detail-honors {
      border-color: rgba(216, 174, 68, .34);
      background: linear-gradient(135deg, rgba(255, 249, 224, .92), rgba(239, 250, 242, .94));
    }

    .player-detail-honors--inline {
      flex: 1 1 auto;
      min-width: 0;
      padding: 0;
      border: 0;
      background: transparent;
      box-shadow: none;
      overflow: hidden;
    }

    .player-full-card .player-detail-block.player-detail-honors--inline {
      grid-column: auto;
      width: auto;
      margin-top: 0;
      padding: 0;
      border: 0;
      background: transparent;
      box-shadow: none;
    }

    .player-card-stat-honor-row {
      width: 100%;
      max-width: 100%;
      margin-top: 0;
    }

    .player-card-stat-honor-row.has-honors {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 4px 6px;
      align-items: center;
    }

    .player-card-stat-honor-row.has-honors .player-detail-honors--inline {
      grid-column: 1 / -1;
      width: 100%;
    }

    .player-full-card .player-card-stat-honor-row .player-current-stats.is-empty {
      display: none;
      width: auto;
    }

    .player-honor-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 10px;
    }

    .player-detail-honors--inline .player-honor-list {
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 0;
      overflow: visible;
      scrollbar-width: none;
    }

    .player-detail-honors--inline .player-honor-list::-webkit-scrollbar {
      display: none;
    }

    .player-honor-chip {
      min-width: 0;
      display: inline-grid;
      gap: 2px;
      padding: 8px 10px;
      border: 1px solid rgba(202, 154, 43, .32);
      border-radius: 12px;
      background: rgba(255, 255, 255, .72);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .48);
      color: #17351f;
      line-height: 1.15;
    }

    .player-detail-honors--inline .player-honor-chip {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      min-height: 32px;
      padding: 5px 8px;
      border-radius: 999px;
      white-space: nowrap;
    }

    .player-card-stat-honor-row .player-honor-chip {
      min-height: 24px;
      padding: 2px 7px;
      border-radius: 8px;
    }

    .player-honor-chip b {
      font-size: 12px;
      font-weight: 950;
      color: #9a6a10;
    }

    .player-detail-honors--inline .player-honor-chip b {
      font-size: 10.5px;
      max-width: 74px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .player-honor-chip em {
      max-width: 170px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 11px;
      font-style: normal;
      font-weight: 850;
      color: #265b3a;
    }

    .player-detail-honors--inline .player-honor-chip em {
      max-width: 120px;
      font-size: 10px;
    }

    .player-honor-chip small {
      font-size: 13px;
      font-weight: 950;
      color: #1f7a4d;
    }

    .player-detail-honors--inline .player-honor-chip small {
      font-size: 11px;
    }

    .insta-btn,
    .ig-mini {
      background: #fff !important;
      color: #d62976 !important;
      border: 1px solid #f4b8d2 !important;
      box-shadow: none !important;
    }

    .insta-btn svg,
    .ig-mini svg {
      fill: currentColor !important;
    }

    @media (max-width: 1020px) {
      .player-hero {
        grid-template-columns: 1fr;
      }

      .player-stat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }
    }

    @media (max-width: 760px) {
      .wrap {
        padding: 12px 10px 28px !important;
        max-width: 100% !important;
        overflow-x: hidden;
      }

      .player-hero {
        padding: 16px;
        border-radius: 20px;
      }

      .player-eyebrow {
        min-width: min(178px, 100%);
        padding-inline: 12px;
      }

      .player-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .player-stat {
        min-height: 76px;
        padding: 12px;
      }

      .player-toolbar {
        grid-template-columns: minmax(0, 1fr) max-content !important;
        gap: 6px !important;
        padding: 8px !important;
        border-radius: 14px !important;
      }

      .player-toolbar #leagueSel {
        grid-column: 1 / -1;
      }

      .player-toolbar #q {
        grid-column: 1 / 2;
      }

      .player-toolbar .fold-toggle {
        grid-column: 2 / 3;
        justify-self: end;
        min-height: 32px;
        padding: 0 8px !important;
        border-radius: 11px !important;
        font-size: 11px;
        gap: 5px;
      }

      .player-toolbar .fold-toggle input {
        width: 13px;
        height: 13px;
        min-width: 0 !important;
        flex: 0 0 13px;
      }

      .player-toolbar select,
      .player-toolbar input {
        height: 34px;
        padding: 5px 10px;
        border-radius: 11px !important;
        font-size: 12px;
      }

      .p {
        grid-template-columns: 52px minmax(0, 1fr) auto !important;
      }

      details.team-fold[open] .players {
        grid-template-columns: 1fr !important;
        padding: 9px !important;
      }

      .p .insta-btn {
        grid-column: 3;
      }

      .pimg,
      .pimg img,
      .pimg svg {
        width: 52px !important;
        height: 62px !important;
      }

      .pimg.player-portrait-circle {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px;
        min-height: 52px;
      }

      .pimg.player-portrait-circle img,
      .pimg.player-portrait-circle svg {
        width: 100% !important;
        height: 100% !important;
      }

      .pmeta {
        min-height: 62px;
        gap: 7px;
      }

      .insta-btn {
        width: 30px;
        height: 30px;
      }

      .player-detail-dialog {
        width: calc(100vw - 6px);
        min-height: calc(100vh - 20px);
        max-height: none;
        border-radius: 15px;
      }

      .player-detail-content {
        padding: 8px;
      }

      .player-detail-head {
        grid-template-columns: 74px minmax(0, 1fr);
        gap: 10px;
      }

      .player-detail-photo {
        width: 74px;
        height: 104px;
        border-radius: 13px;
      }

      .player-detail-photo--player {
        width: 74px;
        height: 104px;
        border-radius: 13px !important;
      }

      .player-detail-photo--player img,
      .player-detail-photo--player svg {
        border-radius: 13px !important;
      }

      .player-detail-logo-photo {
        height: 74px;
      }

      .player-detail-main h2 {
        margin: 7px 30px 7px 0;
        font-size: 22px;
      }

      .player-detail-facts span,
      .player-detail-stats span {
        min-height: 24px;
        padding: 4px 7px;
        font-size: 10px;
        overflow-wrap: anywhere;
      }

      .player-detail-stats {
        margin-top: 9px;
      }

      .player-detail-stat-honor-row {
        gap: 6px;
        margin-top: 9px;
      }

      .player-detail-stats span {
        min-width: 54px;
      }

      .player-detail-stats b {
        font-size: 16px;
      }

      .player-detail-insta {
        min-height: 29px;
        margin-top: 7px;
        padding: 5px 9px;
        font-size: 11px;
      }

      .player-detail-block {
        margin-top: 10px;
        padding: 8px;
        border-radius: 13px;
      }

      .league-detail-shell,
      .relation-brief {
        width: 100%;
        margin-top: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
      }

      .league-detail-shell > strong,
      .relation-brief > strong {
        display: none;
      }

      .league-detail-shell > .player-team-detail-list {
        margin-top: 0;
        gap: 9px;
      }

      .player-detail-generic > h2 {
        margin-right: 34px;
        font-size: 23px;
      }

      .player-team-detail-section,
      .player-team-detail-list {
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
      }

      .player-detail-generic {
        gap: 8px;
      }

      .player-detail-generic > h2 {
        margin-left: 2px;
      }

      .player-full-list,
      .transfer-card-grid,
      .relation-grid {
        width: 100%;
      }

      .player-detail-coach-row {
        grid-template-columns: minmax(64px, 82px) minmax(74px, 1fr) minmax(42px, 1fr) 34px;
        gap: 5px;
      }

      .player-detail-coach-row .coach-rate-team {
        display: none;
      }

      .player-detail-coach-row .coach-rate-record {
        font-size: 10.5px;
      }

      .player-detail-coach-row em {
        font-size: 11px;
      }
    }

    /* Global nav lock: keep the top menu identical across pages. */
    .main-nav {
      width: 100% !important;
      min-height: 45px !important;
      padding: 6px 0 !important;
      box-sizing: border-box !important;
    }

    .main-nav ul {
      width: min(100%, 560px) !important;
      display: grid !important;
      grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
      gap: 6px !important;
      margin: 0 auto !important;
      padding: 0 10px !important;
      box-sizing: border-box !important;
      overflow: visible !important;
    }

    .main-nav ul li {
      min-width: 0 !important;
    }

    .main-nav ul li a {
      width: 100% !important;
      min-height: 32px !important;
      padding: 6px 8px !important;
      border: 1px solid transparent !important;
      border-radius: 999px !important;
      box-sizing: border-box !important;
      font-size: 13px !important;
      line-height: 1 !important;
      white-space: nowrap !important;
    }

    @media (max-width: 480px) {
      .main-nav ul {
        width: 100% !important;
      }

      .main-nav ul li a {
        min-height: 30px !important;
        padding: 6px 5px !important;
        font-size: 11px !important;
      }
    }

    .team-summary .team-h {
      display: grid !important;
      grid-template-columns: 46px minmax(180px, 1fr) minmax(320px, .9fr);
      align-items: center;
      gap: 12px;
    }

    .team-title-box {
      min-width: 0;
    }

    .team-header-extras {
      min-width: 0;
      display: grid;
      gap: 7px;
      width: 100%;
    }

    .team-header-extras:empty {
      display: none;
    }

    .team-expanded-extras {
      box-sizing: border-box;
      padding: 0;
      background: transparent;
      border-top: 0;
    }

    .team-achievement-list {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-start;
      gap: 5px 6px;
      min-height: 24px;
      align-items: center;
    }

    .team-achievement-chip {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      max-width: 100%;
      min-height: 24px;
      padding: 3px 9px 3px 5px;
      border-radius: 999px;
      border: 1px solid #d8c38c;
      background: linear-gradient(135deg, #fff9e6, #f4df9a);
      color: #5b4310;
      box-shadow: 0 5px 13px rgba(123, 86, 12, .08);
      font-size: 11px;
      font-weight: 950;
      line-height: 1;
      white-space: nowrap;
      min-width: 0;
    }

    .team-achievement-chip i {
      width: 17px;
      height: 17px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background: #fff;
      color: #a56b00;
      font-style: normal;
      font-size: 9px;
      font-weight: 1000;
      border: 1px solid rgba(165, 107, 0, .18);
      flex: 0 0 auto;
    }

    .team-achievement-chip b {
      display: block;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .team-achievement-chip.mission {
      border-color: #b8dccc;
      background: linear-gradient(135deg, #f2fff7, #d9f3e5);
      color: #145c38;
      box-shadow: 0 5px 13px rgba(20, 92, 56, .07);
    }

    .team-achievement-chip.mission i {
      color: #147247;
      border-color: rgba(20, 114, 71, .18);
    }

    .team-achievement-chip.league {
      border-color: #d8cf95;
      background: linear-gradient(135deg, #fffbe8, #f5e7a8);
      color: #594611;
    }

    .team-achievement-chip.league i {
      color: #b78000;
      border-color: rgba(183, 128, 0, .2);
    }

    .team-achievement-empty {
      justify-self: start;
      align-self: center;
      padding: 5px 9px;
      border-radius: 999px;
      border: 1px dashed #cce6d3;
      color: #6f8778;
      background: rgba(255, 255, 255, .65);
      font-size: 11px;
      font-weight: 850;
      white-space: nowrap;
    }

    .team-h .coach-rate-list {
      align-self: center;
      justify-self: stretch;
      width: 100%;
    }

    .coach-rate-list {
      display: grid;
      gap: 5px;
      padding: 7px 9px;
      border-radius: 14px;
      background: rgba(255, 255, 255, .72);
      border: 1px solid #d7ecdd;
      cursor: pointer;
    }

    .coach-rate-list::before {
      content: attr(data-title);
      color: #2f5f43;
      font-size: 10px;
      font-weight: 1000;
      letter-spacing: .02em;
    }

    .coach-rate-list--summary {
      gap: 0;
      padding: 4px 7px;
      border-radius: 12px;
      max-height: none;
      overflow: visible;
      cursor: default;
    }

    .coach-rate-list--summary::before {
      font-size: 9.5px;
      line-height: 1;
    }

    .coach-rate-row {
      display: grid;
      grid-template-columns: 82px 72px 72px minmax(64px, 1fr) 38px;
      align-items: center;
      gap: 6px;
      min-width: 0;
      font-size: 12px;
      color: #385647;
      font-weight: 900;
    }

    .coach-rate-row span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .coach-rate-name,
    .coach-rate-team,
    .coach-rate-record {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .coach-rate-name {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 20px;
      padding: 3px 7px;
      border-radius: 999px;
      border: 1px solid #c8e8d2;
      background: linear-gradient(180deg, #f2fbf5 0%, #e1f4e8 100%);
      color: #17633d;
      font-size: 12px;
      font-weight: 1000;
      line-height: 1;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
    }

    .coach-rate-record {
      color: #6d8477;
      font-size: 11px;
      font-weight: 850;
    }

    .coach-rate-team {
      color: #40604f;
      font-size: 11px;
      font-weight: 900;
    }

    .coach-rate-row i {
      display: block;
      height: 8px;
      border-radius: 999px;
      background: #e5f2e9;
      overflow: hidden;
      box-shadow: inset 0 0 0 1px rgba(20, 92, 56, .05);
    }

    .coach-rate-row i b {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, #2f9d62, #9bd36c);
    }

    .coach-rate-row em {
      font-style: normal;
      text-align: right;
      color: #167044;
      font-size: 12px;
      font-weight: 1000;
      white-space: nowrap;
    }

    .coach-rate-list--summary .coach-rate-row {
      grid-template-columns: 66px 58px minmax(48px, 1fr) 30px;
      gap: 4px;
      min-height: 20px;
      padding: 2px 0;
      border-bottom: 1px solid rgba(199, 226, 207, .72);
      font-size: 10.5px;
    }

    .coach-rate-list--summary .coach-rate-row:last-child {
      border-bottom: 0;
    }

    .coach-rate-list--summary .coach-rate-team {
      display: none;
    }

    .coach-rate-list--summary .coach-rate-name {
      justify-content: flex-start;
      min-height: 0;
      padding: 0;
      border: 0;
      background: transparent;
      box-shadow: none;
      font-size: 10px;
    }

    .coach-rate-list--summary .coach-rate-record {
      font-size: 9.5px;
    }

    .coach-rate-list--summary .coach-rate-row i {
      height: 6px;
    }

    .coach-rate-list--summary .coach-rate-row em {
      font-size: 10px;
    }

    .coach-rate-switch {
      display: grid;
      gap: 5px;
      min-width: 0;
    }

    .coach-rate-switch-tabs {
      display: flex;
      align-items: center;
      gap: 5px;
      min-width: 0;
    }

    .coach-rate-switch-tabs button {
      flex: 0 1 auto;
      min-width: 0;
      min-height: 23px;
      padding: 3px 9px;
      border: 1px solid #cfe7d6;
      border-radius: 999px;
      background: rgba(255, 255, 255, .76);
      color: #45705a;
      font-size: 10px;
      font-weight: 1000;
      line-height: 1;
      white-space: nowrap;
      cursor: pointer;
    }

    .coach-rate-switch-tabs button.is-active {
      background: #17633d;
      border-color: #17633d;
      color: #fff;
      box-shadow: 0 5px 12px rgba(23, 99, 61, .13);
    }

    .coach-rate-switch .coach-rate-list {
      cursor: default;
    }

    .coach-rate-switch .coach-rate-list::before {
      content: none;
    }

    .coach-rate-panel[hidden] {
      display: none !important;
    }

    .coach-rate-more {
      justify-self: start;
      min-height: 24px;
      padding: 4px 10px;
      border-radius: 999px;
      border: 1px solid #c8e8d2;
      background: #f2fbf5;
      color: #17633d;
      font-size: 11px;
      font-weight: 1000;
      cursor: pointer;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
    }

    .coach-rate-more:hover {
      background: #e4f5eb;
      border-color: #9bd6ae;
    }

    .coach-rate-honors {
      grid-column: 1 / -1;
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      margin-top: 1px;
    }

    .coach-rate-honors small {
      padding: 2px 6px;
      border-radius: 999px;
      background: #f4fbf6;
      border: 1px solid #dbeee2;
      color: #4b6c59;
      font-size: 10px;
      font-weight: 850;
    }

    .coach-rate-empty {
      color: #7c9285;
      font-size: 11px;
      font-weight: 850;
      text-align: right;
    }

    @media (max-width: 980px) {
      .team-summary .team-h {
        grid-template-columns: 46px minmax(0, 1fr);
      }

      .team-summary .team-header-extras {
        grid-column: 1 / -1;
      }

      .team-expanded-extras {
        padding: 8px 0 0;
        background: #fff;
        border-top: 1px solid #d7ecdd;
      }

      .team-achievement-list {
        justify-content: flex-start;
      }

      .team-achievement-empty {
        justify-self: start;
      }
    }

    @media (max-width: 520px) {
      .team-summary .team-h {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 8px;
        padding: 11px 10px 11px 16px !important;
      }

      .team-summary .logo {
        width: 40px !important;
        height: 40px !important;
        padding: 3px !important;
        border-radius: 13px !important;
      }

      .team-title-box,
      .team-header-extras {
        min-width: 0;
        overflow: hidden;
      }

      .team-header-extras {
        gap: 5px;
      }

      .team-expanded-extras {
        padding: 8px 0 0;
      }

      .team-achievement-chip {
        max-width: 100%;
        min-height: 22px;
        padding: 2px 7px 2px 4px;
        font-size: 10px;
        min-width: 0;
      }

      .team-achievement-chip i {
        width: 16px;
        height: 16px;
        font-size: 8px;
      }

      .team-achievement-chip b {
        max-width: min(58vw, 220px);
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .coach-rate-list {
        gap: 5px;
        padding: 6px 7px;
        border-radius: 12px;
      }

      .coach-rate-list--summary {
        gap: 0;
        padding: 4px 6px;
      }

      .coach-rate-row {
        grid-template-columns: 62px 58px minmax(42px, 1fr) 32px;
        gap: 4px;
        font-size: 10.5px;
      }

      .coach-rate-row .coach-rate-team {
        display: none;
      }

      .coach-rate-name {
        min-height: 0;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        font-size: 10.5px;
      }

      .coach-rate-record,
      .coach-rate-honors small {
        font-size: 9.5px;
      }

      .coach-rate-row em {
        font-size: 10.5px;
      }

      .coach-rate-more {
        min-height: 22px;
        padding: 3px 8px;
        font-size: 10px;
      }
    }

    #leagueSel option,
    #leagueSel optgroup {
      background: #f5fcf8;
      color: #143c28;
    }
:root {
  --ui-row-h: 38px;
  --ui-chip-h: 28px;
  --ui-card-gap: 10px;
  --ui-section-gap: 14px;
}

@media (max-width: 720px) {
  .player-stat-grid,
  .player-detail-grid,
  .league-detail-list,
  .relation-section-grid {
    gap: var(--ui-card-gap);
  }

  .player-stat,
  .team-fold,
  .player-detail-block,
  .relation-card,
  .league-detail-card {
    padding: 10px;
  }

  .player-chip,
  .player-pill,
  .detail-pill,
  .team-achievement-chip,
  .rd-table-team-pill,
  .coach-rate-record,
  .player-meta-badges span,
  .player-current-stats span {
    min-height: var(--ui-chip-h);
    line-height: 1.15;
    gap: 6px;
  }

  .player-card,
  .coach-rate-row,
  .league-detail-player,
  .transfer-row {
    min-height: var(--ui-row-h);
  }

  .player-name,
  .coach-rate-name,
  .league-detail-name,
  .relation-name,
  .transfer-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Team hub: compact list headers with the expensive detail body truly inside the fold. */
.teams.team-hub-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px;
}

.teams.team-hub-list > details.team-fold {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 0;
  border-color: #cfead7;
  background: linear-gradient(180deg, #ffffff 0%, #fbfefd 100%) !important;
  box-shadow: 0 10px 22px rgba(22, 101, 52, .07);
}

.teams.team-hub-list > details.team-fold::before {
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--team-accent, var(--pd-green)) 82%, #1f2933) 0%,
      var(--team-accent-soft, rgba(21, 131, 77, .18)) 52%,
      color-mix(in srgb, var(--team-accent, var(--pd-green)) 76%, #1f2933) 100%) !important;
}

.teams.team-hub-list > details.team-fold[open] {
  box-shadow: 0 14px 30px rgba(22, 101, 52, .1);
}

.teams.team-hub-list summary.team-summary {
  background: transparent !important;
}

.teams.team-hub-list .team-summary .team-h {
  position: relative;
  overflow: hidden;
  grid-template-columns: 58px minmax(0, 1fr);
  column-gap: 16px;
  min-height: 70px;
  padding: 10px 14px 10px 18px !important;
  border-bottom: 0;
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--team-accent, var(--pd-green)) 82%, #202936) 0,
      color-mix(in srgb, var(--team-accent, var(--pd-green)) 78%, #202936) 33%,
      color-mix(in srgb, var(--team-accent, var(--pd-green)) 54%, #ffffff) 68%,
      color-mix(in srgb, var(--team-accent, var(--pd-green)) 22%, #ffffff) 100%) !important;
}

.teams.team-hub-list .team-summary .team-logo-circle--summary {
  width: 58px;
  height: 58px;
  border-width: 2px;
  border-radius: 50%;
  border-color: rgba(255, 255, 255, .62);
  background: color-mix(in srgb, var(--team-accent, var(--pd-green)) 84%, #1f2933);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 5px 14px rgba(35, 91, 55, .14);
}

.teams.team-hub-list .team-summary .team-logo-circle--summary img {
  width: 88%;
  height: 88%;
}

.teams.team-hub-list .team-title-box {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: grid;
  align-content: center;
  gap: 7px;
  min-width: 0;
}

.teams.team-hub-list .team-title-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
  line-height: 1.15;
}

.teams.team-hub-list .team-name-main {
  min-width: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 1000;
  -webkit-text-stroke: .75px rgba(0, 0, 0, .86);
  paint-order: stroke fill;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, .82),
    0 1px 7px rgba(0, 0, 0, .42);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teams.team-hub-list .team-summary-coach {
  flex: 0 1 auto;
  min-width: 0;
  color: rgba(255, 255, 255, .9);
  font-size: 12px;
  font-weight: 950;
  -webkit-text-stroke: .58px rgba(0, 0, 0, .82);
  paint-order: stroke fill;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, .78),
    0 1px 6px rgba(0, 0, 0, .38);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teams.team-hub-list .team-summary-coach.is-empty {
  color: #7d9386;
}

.teams.team-hub-list .team-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 96px));
  gap: 6px;
  max-width: 206px;
}

.teams.team-hub-list .team-data-grid span {
  min-width: 0;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 10px;
  background: rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .9);
  -webkit-text-stroke: .48px rgba(0, 0, 0, .78);
  paint-order: stroke fill;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.teams.team-hub-list .team-data-grid b {
  font-size: 12px;
  font-weight: 1000;
}

.teams.team-hub-list .coach {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
}

.teams.team-hub-list .coach-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teams.team-hub-list .coach-photo-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  isolation: isolate;
}

.teams.team-hub-list .coach-photo-wrap::before {
  content: none;
}

.teams.team-hub-list .coach-photo-wrap .coach-photo {
  position: relative;
  z-index: 1;
  margin-left: 0;
  border-color: color-mix(in srgb, var(--team-accent, #2a3a52) 74%, #d9e4dc);
  box-shadow: 0 3px 9px rgba(20, 92, 56, .18);
}

.team-hub-rate {
  min-width: 196px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 9px;
  padding: 8px 10px;
  border: 1px solid #cfead7;
  border-radius: 14px;
  background: rgba(255, 255, 255, .86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.team-hub-rate span {
  min-width: 0;
  color: #446552;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.team-hub-rate strong {
  color: #17633d;
  font-size: 18px;
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
}

.team-hub-rate i {
  grid-column: 1 / -1;
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #e4f2e9;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(20, 92, 56, .06);
}

.team-hub-rate i b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f9d62, #9bd36c);
}

.team-hub-detail {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px 20px;
  border-top: 1px solid #d7ecdd;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .78) 100%),
    linear-gradient(90deg, var(--team-accent-soft, rgba(21, 131, 77, .16)) 0%, var(--team-accent-faint, rgba(21, 131, 77, .06)) 72%, rgba(255,255,255,.22) 100%),
    linear-gradient(180deg, #fbfefd 0%, #f4fbf6 100%) !important;
}

.team-hub-detail .team-expanded-extras {
  padding: 10px 0 0;
  background: transparent;
  border-top: 0;
}

.team-hub-detail .players {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
  padding: 0;
  border-top: 0 !important;
  --team-hub-person-y: calc(var(--fs-player-circle-y, 30%) - 4%);
  --team-hub-person-scale: clamp(1.08, calc(var(--fs-player-circle-scale, 1.18) * .9), 1.22);
  --team-hub-coach-y: calc(var(--fs-player-circle-y, 30%) - 2%);
  --team-hub-coach-scale: clamp(1, calc(var(--fs-player-circle-scale, 1.18) * .82), 1.12);
}

.team-hub-detail .players .p {
  grid-template-columns: 58px minmax(0, 1fr) auto auto !important;
  align-items: center;
  overflow: visible;
}

.team-hub-detail .players .pmeta {
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 5px;
  min-width: 0;
}

.team-hub-detail .players .p-line {
  display: grid;
  grid-template-columns: minmax(0, max-content);
  align-items: center;
  min-width: 0;
}

.team-hub-detail .players .pname {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  gap: 5px;
}

.team-hub-detail .players .p-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 5px;
  min-width: 0;
  overflow: visible;
}

.team-hub-detail .players .p-tags span {
  flex: 0 0 auto;
  max-width: 100%;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.08;
}

.team-hub-detail .players .insta-btn {
  align-self: center;
}

.team-hub-detail .players .p--coach {
  border-color: color-mix(in srgb, var(--team-accent-strong, #bfe2c9) 62%, #d7e5dc) !important;
  background:
    linear-gradient(90deg, var(--team-accent-faint, rgba(21, 131, 77, .07)) 0%, #fbfefd 66%) !important;
}

.team-hub-detail .players .p--coach .pname {
  color: var(--pd-green-dark);
}

.team-hub-detail .players .p--coach .pimg--coach,
.team-hub-detail .players .p--coach .pimg--coach img {
  object-position: center var(--team-hub-coach-y);
  transform-origin: center var(--team-hub-coach-y);
}

.team-hub-detail .players .p--coach .pimg--coach {
  width: 58px !important;
  height: 70px !important;
  min-width: 58px !important;
  min-height: 70px !important;
  overflow: hidden !important;
  transform: none !important;
}

.team-hub-detail .players .p--coach .pimg--coach img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform: scale(var(--team-hub-coach-scale));
}

.team-hub-detail .players .pimg {
  transform: none !important;
}

.team-hub-detail .players .pimg img,
.team-hub-detail .players img.pimg {
  object-fit: cover;
  object-position: center var(--team-hub-person-y) !important;
  transform: scale(var(--team-hub-person-scale)) !important;
  transform-origin: center var(--team-hub-person-y) !important;
}

.team-hub-detail .players .pimg.player-portrait-circle {
  overflow: hidden;
  border-radius: 50% !important;
}

.team-hub-detail .players .pimg.player-portrait-circle img,
.team-hub-detail .players .pimg.player-portrait-circle svg {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
}

.team-hub-detail .players .pimg.player-portrait-circle img {
  object-fit: cover !important;
  object-position: center var(--team-hub-person-y) !important;
  transform: scale(var(--team-hub-person-scale)) !important;
  transform-origin: center var(--team-hub-person-y) !important;
}

.coach-list-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #5b7466;
  font-size: 11px;
  font-weight: 1000;
}

.badge.badge--coach {
  background: #fff7e8 !important;
  border-color: #efd39b !important;
  color: #875b0b !important;
}

.team-collapse-actions {
  display: flex;
  justify-content: center;
  padding: 2px 0 0;
}

.team-collapse-btn {
  display: inline-grid;
  place-items: center;
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--pd-green-dark);
  font-size: 19px;
  font-weight: 950;
  line-height: 1;
  box-shadow: none;
}

@media (max-width: 720px) {
  .teams.team-hub-list {
    gap: 8px;
    width: min(100%, 430px);
    max-width: 100%;
    margin-inline: auto;
    justify-items: stretch;
  }

  .teams.team-hub-list > details.team-fold {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .teams.team-hub-list .team-summary .team-h {
    width: 100%;
    box-sizing: border-box;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 8px 12px;
    min-height: 62px;
    padding: 9px 10px 9px 13px !important;
    background:
      linear-gradient(90deg,
        color-mix(in srgb, var(--team-accent, var(--pd-green)) 82%, #202936) 0,
        color-mix(in srgb, var(--team-accent, var(--pd-green)) 78%, #202936) 62%,
        color-mix(in srgb, var(--team-accent, var(--pd-green)) 44%, #ffffff) 88%,
        color-mix(in srgb, var(--team-accent, var(--pd-green)) 18%, #ffffff) 100%) !important;
  }

  .teams.team-hub-list .team-summary .team-logo-circle--summary {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
  }

  .teams.team-hub-list .team-title-box {
    min-width: 0;
    overflow: hidden;
  }

  .teams.team-hub-list .team-title-row {
    gap: 6px;
  }

  .teams.team-hub-list .team-name-main {
    font-size: 15px;
  }

  .teams.team-hub-list .team-summary-coach {
    font-size: 11px;
  }

  .teams.team-hub-list .team-data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 184px;
    gap: 5px;
  }

  .teams.team-hub-list .team-data-grid span {
    padding: 4px 7px;
    border-radius: 9px;
    font-size: 10.5px;
  }

  .team-hub-detail {
    padding: 0 8px 8px 13px;
    gap: 8px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .team-hub-detail .players {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .team-hub-detail .players .p {
    grid-template-columns: 52px minmax(0, 1fr) auto !important;
    gap: 8px !important;
  }

  .team-hub-detail .players .badge {
    display: none;
  }

  .team-collapse-btn {
    width: 24px;
    min-width: 24px;
    height: 23px;
    min-height: 23px;
    font-size: 18px;
  }
}

@media (max-width: 380px) {
  .teams.team-hub-list {
    width: 100%;
  }

  .teams.team-hub-list .team-summary .team-h {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .teams.team-hub-list .team-summary .team-logo-circle--summary {
    width: 44px !important;
    height: 44px !important;
  }

  .team-hub-rate {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  body.player-detail-page-open .wrap {
    width: 100%;
    max-width: none;
    padding-inline: 0;
  }

  body.player-detail-page-open .player-detail-page {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    padding-inline: 0;
    box-sizing: border-box;
  }

  body.player-detail-page-open .player-detail-page-dialog {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    border-radius: 14px;
  }

  body.player-detail-page-open .player-detail-content {
    padding: 6px;
    overflow-x: hidden;
  }

  body.player-detail-page-open .player-detail-generic,
  body.player-detail-page-open .league-detail-shell > .player-team-detail-list {
    gap: 7px;
  }

  body.player-detail-page-open .team-coach-team-section,
  body.player-detail-page-open .player-roster-team-section,
  body.player-detail-page-open .relation-section,
  body.player-detail-page-open .transfer-team-section {
    padding: 8px 6px 8px 11px;
  }

  body.player-detail-page-open .relation-section-title {
    padding-left: 18px;
    padding-right: 4px;
  }

  body.player-detail-page-open .team-coach-detail-grid,
  body.player-detail-page-open .player-detail-generic,
  body.player-detail-page-open .relation-grid,
  body.player-detail-page-open .transfer-card-grid,
  body.player-detail-page-open .player-full-list {
    width: 100%;
    max-width: none;
  }

  body.player-detail-page-open .player-full-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 7px;
    padding: 7px;
  }

  body.player-detail-page-open .player-card-stat-honor-row.has-honors {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  body.player-detail-page-open .player-card-stat-honor-row.has-honors .player-detail-honors--inline {
    grid-column: 1;
  }
}

.player-detail-page-open .team-coach-team-section,
.player-detail-page-open .player-roster-team-section {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  gap: 9px;
}

.player-detail-page-open .team-coach-team-section::before,
.player-detail-page-open .player-roster-team-section::before {
  content: none !important;
}

.player-detail-page-open .team-coach-team-section .player-team-detail-title,
.player-detail-page-open .player-roster-team-section .player-team-detail-title {
  min-height: 70px;
  margin: 0;
  padding: 10px 14px 10px 18px;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(22, 101, 52, .08);
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--team-accent, var(--pd-green)) 82%, #202936) 0,
      color-mix(in srgb, var(--team-accent, var(--pd-green)) 78%, #202936) 46%,
      color-mix(in srgb, var(--team-accent, var(--pd-green)) 58%, #ffffff) 78%,
      color-mix(in srgb, var(--team-accent, var(--pd-green)) 32%, #ffffff) 100%);
}

.player-detail-page-open .team-coach-team-section .player-team-detail-title .team-logo-circle,
.player-detail-page-open .player-roster-team-section .player-team-detail-title .team-logo-circle {
  width: 58px !important;
  height: 58px !important;
  border-width: 2px;
  border-color: rgba(255, 255, 255, .62);
  background: color-mix(in srgb, var(--team-accent, var(--pd-green)) 84%, #1f2933);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 5px 14px rgba(35, 91, 55, .14);
}

.player-detail-page-open .team-coach-team-section .player-team-detail-title .team-logo-circle img,
.player-detail-page-open .player-roster-team-section .player-team-detail-title .team-logo-circle img {
  width: 88%;
  height: 88%;
}

.player-detail-page-open .team-coach-team-section .player-team-detail-title strong,
.player-detail-page-open .player-roster-team-section .player-team-detail-title strong {
  color: #fff;
  font-size: 18px;
  -webkit-text-stroke: .75px rgba(0, 0, 0, .86);
  paint-order: stroke fill;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, .82),
    0 1px 7px rgba(0, 0, 0, .42);
}

.player-detail-page-open .player-roster-team-section .player-team-detail-title > span:not(.player-team-logo-trigger):not(.team-logo-circle):not(.league-detail-mark) {
  color: rgba(255, 255, 255, .88);
  -webkit-text-stroke: .48px rgba(0, 0, 0, .72);
  paint-order: stroke fill;
  text-shadow: 0 1px 4px rgba(0,0,0,.32);
}

.player-detail-page-open .team-coach-team-section .team-coach-detail-grid {
  padding: 0;
}

@media (max-width: 720px) {
  .player-detail-page-open .team-coach-team-section,
  .player-detail-page-open .player-roster-team-section {
    padding: 0;
    gap: 7px;
  }

  .player-detail-page-open .team-coach-team-section .player-team-detail-title,
  .player-detail-page-open .player-roster-team-section .player-team-detail-title {
    min-height: 62px;
    padding: 9px 10px 9px 13px;
    gap: 8px 12px;
    background:
      linear-gradient(90deg,
        color-mix(in srgb, var(--team-accent, var(--pd-green)) 82%, #202936) 0,
        color-mix(in srgb, var(--team-accent, var(--pd-green)) 78%, #202936) 68%,
        color-mix(in srgb, var(--team-accent, var(--pd-green)) 50%, #ffffff) 92%,
        color-mix(in srgb, var(--team-accent, var(--pd-green)) 30%, #ffffff) 100%);
  }

  .player-detail-page-open .team-coach-team-section .player-team-detail-title .team-logo-circle,
  .player-detail-page-open .player-roster-team-section .player-team-detail-title .team-logo-circle {
    width: 50px !important;
    height: 50px !important;
  }

  .player-detail-page-open .team-coach-team-section .player-team-detail-title strong,
  .player-detail-page-open .player-roster-team-section .player-team-detail-title strong {
    font-size: 15px;
  }
}

@media (max-width: 720px) {
  html:has(body.player-detail-page-open),
  body.player-detail-page-open {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    touch-action: pan-y;
  }

  body.player-detail-page-open .wrap {
    padding-inline: 0;
    overflow-x: hidden;
  }

  body.player-detail-page-open .player-detail-page {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-inline: 0;
    overflow-x: hidden;
  }

  body.player-detail-page-open .player-detail-page-dialog {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    overflow-x: hidden;
  }

  body.player-detail-page-open .player-detail-content {
    padding: 4px;
    box-sizing: border-box;
  }

  body.player-detail-page-open .player-detail-block,
  body.player-detail-page-open .player-full-card {
    padding: 7px;
  }

  body.player-detail-page-open .player-team-detail-list,
  body.player-detail-page-open .league-detail-shell > .player-team-detail-list,
  body.player-detail-page-open .player-full-list {
    gap: 6px;
  }

  body.player-detail-page-open .relation-section,
  body.player-detail-page-open .transfer-team-section {
    padding: 7px 4px 7px 9px;
  }

  body.player-detail-page-open .team-coach-detail-grid,
  body.player-detail-page-open .relation-grid,
  body.player-detail-page-open .transfer-card-grid {
    gap: 6px;
  }

  body.player-detail-page-open .player-team-detail-title,
  body.player-detail-page-open .player-team-detail-section,
  body.player-detail-page-open .player-detail-block,
  body.player-detail-page-open .player-full-card {
    max-width: 100%;
    box-sizing: border-box;
  }
}

.player-full-card .player-card-meta .player-current-stats .player-stat-piece,
.player-detail-stat-honor-row--top .player-current-stats .player-stat-piece {
  overflow: visible;
  text-overflow: clip;
}

@media (max-width: 720px) {
  body.player-detail-page-open .player-full-card {
    grid-template-columns: 54px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 6px;
    padding: 8px;
  }

  body.player-detail-page-open .player-full-card .player-detail-photo {
    width: 54px;
    height: 76px;
  }

  body.player-detail-page-open .player-full-head,
  body.player-detail-page-open .player-full-card .player-card-meta {
    grid-column: 2;
    min-width: 0;
  }

  body.player-detail-page-open .player-full-card .player-card-meta {
    gap: 5px;
    align-self: start;
  }

  body.player-detail-page-open .player-full-card .player-detail-facts,
  body.player-detail-page-open .player-full-card .player-current-stats {
    gap: 5px;
    grid-column: auto;
    margin-top: 0;
  }

  body.player-detail-page-open .player-full-card .player-detail-facts {
    order: 0;
    display: flex;
    flex-wrap: wrap;
  }

  body.player-detail-page-open .player-full-card .player-card-stat-honor-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    width: 100%;
  }

  body.player-detail-page-open .player-full-head h3 {
    display: grid;
    grid-template-columns: minmax(0, auto) auto auto;
    justify-content: start;
    gap: 4px;
    max-width: 100%;
  }

  body.player-detail-page-open .player-full-head h3 .player-name-number {
    min-width: 20px;
    height: 16px;
    padding-inline: 5px;
    font-size: 9px;
  }

  body.player-detail-page-open .player-full-card .player-card-meta .player-detail-facts,
  body.player-detail-page-open .player-full-card .player-card-meta .player-current-stats {
    width: 100%;
  }

  body.player-detail-page-open .player-full-card .player-detail-honors--inline {
    width: 100%;
    overflow: visible;
  }

  body.player-detail-page-open .player-full-card .player-detail-honors--inline .player-honor-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
    gap: 4px;
    width: 100%;
  }

  body.player-detail-page-open .player-full-card .player-detail-honors--inline .player-honor-chip {
    justify-content: center;
    min-width: 0;
    min-height: 22px;
    padding: 2px 5px;
    border-radius: 8px;
  }

  body.player-detail-page-open .player-full-card .player-detail-honors--inline .player-honor-chip b {
    max-width: 58px;
    font-size: 9.5px;
  }

  body.player-detail-page-open .player-full-card .player-detail-honors--inline .player-honor-chip small {
    font-size: 10px;
  }

  body.player-detail-page-open .player-full-card .player-detail-facts .player-fact-compact {
    min-width: 0;
    flex: 0 1 auto;
  }

  .player-detail-stat-honor-row--top .player-detail-facts,
  .player-detail-stat-honor-row--top .player-current-stats,
  .player-full-card .player-card-meta .player-detail-facts,
  .player-full-card .player-card-meta .player-current-stats {
    width: 100%;
    flex-wrap: wrap;
    overflow: visible;
  }

  .player-detail-stat-honor-row--top .player-current-stats .player-stat-piece,
  .player-full-card .player-card-meta .player-current-stats .player-stat-piece {
    min-width: 0;
    min-height: 21px;
    padding: 1px 5px;
    gap: 3px;
    border-radius: 999px;
  }

  .player-detail-stat-honor-row--top .player-current-stats .player-stat-piece i.is-alpha,
  .player-full-card .player-card-meta .player-current-stats .player-stat-piece i.is-alpha {
    width: 14px;
    height: 14px;
    font-size: 8px;
  }

  .player-detail-stat-honor-row--top .player-current-stats .player-stat-piece b,
  .player-full-card .player-card-meta .player-current-stats .player-stat-piece b {
    font-size: 10.5px;
  }
}

body.player-detail-page-open .player-detail-page-dialog {
  margin-inline: auto;
}

body.player-detail-page-open .player-detail-content {
  margin-inline: auto;
  padding-inline: 12px;
}

body.player-detail-page-open .player-detail-generic {
  width: 100%;
  margin-inline: auto;
}

body.player-detail-page-open .league-detail-shell > .player-team-detail-list,
body.player-detail-page-open .player-full-list {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
}

body.player-detail-page-open .league-detail-shell {
  padding: 9px 8px;
}

body.player-detail-page-open .transfer-card-grid,
body.player-detail-page-open .relation-grid {
  width: 100%;
  margin-inline: auto;
}

body.player-detail-page-open .transfer-team-section,
body.player-detail-page-open .relation-section {
  padding-left: 8px;
  padding-right: 8px;
}

@media (min-width: 721px) {
  body.player-detail-page-open .wrap {
    width: min(1520px, calc(100vw - 32px));
    max-width: none;
    margin-inline: auto;
    box-sizing: border-box;
  }

  body.player-detail-page-open .player-detail-page {
    display: grid;
    justify-items: center;
    width: 100%;
    padding-inline: 0;
  }

  body.player-detail-page-open .player-detail-page-dialog {
    width: min(1480px, 100%);
    margin-inline: auto;
  }

  body.player-detail-page-open .player-detail-content {
    display: grid;
    justify-items: center;
    width: 100%;
  }

  body.player-detail-page-open .player-detail-generic,
  body.player-detail-page-open .league-detail-shell {
    width: min(1400px, 100%);
    margin-inline: auto;
  }
}

body.player-detail-page-open .team-coach-team-section,
body.player-detail-page-open .player-roster-team-section {
  position: relative;
  gap: 6px;
  padding: 4px;
  border: 1px solid color-mix(in srgb, var(--team-accent, var(--pd-green)) 42%, #d6eadc);
  border-radius: 16px;
  background: color-mix(in srgb, var(--team-accent-faint, rgba(21, 131, 77, .07)) 48%, #ffffff);
  box-sizing: border-box;
}

body.player-detail-page-open .team-coach-team-section .player-team-detail-title,
body.player-detail-page-open .player-roster-team-section .player-team-detail-title {
  margin: 0;
  padding-left: 12px;
  padding-right: 12px;
}

body.player-detail-page-open .team-coach-team-section .team-coach-detail-grid,
body.player-detail-page-open .player-roster-team-section .player-full-list {
  padding-inline: 1px;
}

body.player-detail-page-open .team-coach-team-section,
body.player-detail-page-open .player-roster-team-section {
  padding-left: 0;
}

body.player-detail-page-open .team-coach-team-section:not(.is-collapsed)::before,
body.player-detail-page-open .player-roster-team-section:not(.is-collapsed)::before {
  content: "" !important;
  position: absolute;
  left: -9px;
  top: 0;
  bottom: 0;
  width: 5px;
  border-radius: 999px;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--team-accent, var(--pd-green)) 88%, #1f2933) 0%,
      color-mix(in srgb, var(--team-accent, var(--pd-green)) 58%, #ffffff) 48%,
      color-mix(in srgb, var(--team-accent, var(--pd-green)) 82%, #1f2933) 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.42), 0 10px 22px rgba(22, 101, 52, .13);
}

body.player-detail-page-open .team-coach-team-section.is-collapsed::before,
body.player-detail-page-open .player-roster-team-section.is-collapsed::before {
  content: none !important;
}

@media (max-width: 720px) {
  body.player-detail-page-open .player-detail-content {
    padding: 6px !important;
  }

  body.player-detail-page-open .league-detail-shell {
    padding: 4px !important;
  }

  body.player-detail-page-open .league-detail-shell > .player-team-detail-list,
  body.player-detail-page-open .player-full-list {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    padding-inline: 0;
  }

  body.player-detail-page-open .transfer-team-section,
  body.player-detail-page-open .relation-section {
    width: 100%;
    margin-inline: 0;
    padding: 4px !important;
    box-sizing: border-box;
    overflow: hidden;
  }

  body.player-detail-page-open .relation-section-title {
    padding-left: 20px !important;
    padding-right: 6px !important;
  }

  body.player-detail-page-open .team-coach-team-section,
  body.player-detail-page-open .player-roster-team-section {
    width: 100%;
    margin-inline: 0;
    gap: 5px;
    padding: 3px;
    border-radius: 13px;
    box-sizing: border-box;
    overflow: hidden;
  }

  body.player-detail-page-open .team-coach-team-section .player-team-detail-title,
  body.player-detail-page-open .player-roster-team-section .player-team-detail-title {
    padding-left: 8px;
    padding-right: 8px;
  }

  body.player-detail-page-open .team-coach-team-section:not(.is-collapsed)::before,
  body.player-detail-page-open .player-roster-team-section:not(.is-collapsed)::before {
    left: 0;
    width: 3px;
  }

  body.player-detail-page-open .team-coach-detail-grid,
  body.player-detail-page-open .player-roster-team-section .player-full-list,
  body.player-detail-page-open .relation-grid,
  body.player-detail-page-open .transfer-card-grid {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    padding-inline: 0;
    box-sizing: border-box;
  }

  body.player-detail-page-open .player-detail-page,
  body.player-detail-page-open .player-detail-page-dialog,
  body.player-detail-page-open .player-detail-generic,
  body.player-detail-page-open .league-detail-shell,
  body.player-detail-page-open .player-team-detail-title,
  body.player-detail-page-open .player-team-detail-section,
  body.player-detail-page-open .player-detail-block,
  body.player-detail-page-open .player-full-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  body.player-detail-page-open .transfer-card img,
  body.player-detail-page-open .transfer-card .league-detail-mark,
  body.player-detail-page-open .transfer-card .transfer-silhouette {
    width: 32px;
    height: 32px;
  }

  body.player-detail-page-open .player-detail-page {
    padding-inline: 6px !important;
  }

  body.player-detail-page-open .player-detail-page-dialog {
    overflow: hidden;
  }
}

@media (max-width: 720px) {
  body.player-detail-page-open .wrap,
  body.player-detail-page-open .player-detail-page,
  body.player-detail-page-open .player-detail-page-dialog,
  body.player-detail-page-open .player-detail-content,
  body.player-detail-page-open .player-detail-generic,
  body.player-detail-page-open .league-detail-shell {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    transform: none !important;
  }

  body.player-detail-page-open .player-detail-page {
    padding: 0 4px !important;
  }

  body.player-detail-page-open .player-detail-content {
    padding: 5px !important;
  }

  body.player-detail-page-open .player-detail-generic {
    justify-items: stretch;
  }
}
/* Detail pages: keep expanded team blocks clean, without left vertical rails. */
body.player-detail-page-open .team-coach-team-section::before,
body.player-detail-page-open .player-roster-team-section::before,
body.player-detail-page-open .transfer-team-section::before,
body.player-detail-page-open .team-coach-team-section:not(.is-collapsed)::before,
body.player-detail-page-open .player-roster-team-section:not(.is-collapsed)::before,
body.player-detail-page-open .transfer-team-section:not(.is-collapsed)::before,
body.player-detail-page-open .transfer-team-section[open]::before {
  content: none !important;
  display: none !important;
}

body.player-detail-page-open .player-team-detail-title > span:last-child:not(.player-team-logo-trigger):not(.team-logo-circle) {
  color: #fff;
  font-weight: 1000;
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, .9),
    1px -1px 0 rgba(0, 0, 0, .9),
    -1px 1px 0 rgba(0, 0, 0, .9),
    1px 1px 0 rgba(0, 0, 0, .9),
    0 2px 6px rgba(0, 0, 0, .32);
}
