/* MAVEX Top Players — public player list
   Search, filters, table, responsive cards, pagination and list profile links.
   Keep responsive layout rules near the components they affect.
*/

.tp-public * {
  box-sizing: border-box;
}

.tp-filters {
  display: grid;
  grid-template-columns: minmax(180px,1.7fr) repeat(4,minmax(115px,1fr)) auto auto;
  gap: 11px;
  align-items: end;
}

.tp-filters input,.tp-filters select {
  height: 40px;
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd9e6;
  border-radius: 7px;
  background: white;
  padding: 0 10px;
  color: #172a3d;
}

.tp-reset,.tp-apply,.tp-filter-toggle {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #b8cde0;
  border-radius: 7px;
  background: white;
  color: #164a77;
  font-weight: 750;
  cursor: pointer;
}

.tp-filter-toggle {
  display: none;
}

.tp-results {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0 2px 9px;
  color: #60758a;
  font-size: 12px;
}

.tp-list-results-number,
.tp-list-results-last-updated {
  display: inline-block;
  flex: 0 0 auto;
}

.tp-list-results-last-updated {
  margin-left: 8px;
}

.tp-list-results-sort-order {
  margin-left: auto;
}

.tp-sort-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tp-sort-label select {
  height: 34px;
  border: 1px solid #cbd9e6;
  border-radius: 7px;
  background: #fff;
  padding: 0 10px;
  color: #172a3d;
}

.tp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: white;
}

.tp-table th:first-child {
  width: 23%;
}

.tp-table th:nth-child(2) {
  width: 15%;
}

.tp-table th:nth-child(3) {
  width: 19%;
}

.tp-table th:nth-child(4),.tp-table th:nth-child(5) {
  width: 21.5%;
}

.tp-table td {
  padding: 11px;
  vertical-align: middle;
  border-bottom: 1px solid #e5edf4;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* Current public-list template: player, country and equipment cells. */
.tp-list-player-photo {
  width: 50px;
  min-width: 50px;
  margin-right: 10px;
  line-height: 0;
}

.tp-list-player-photo img {
  display: block;
  width: 50px;
  height: 58px;
  object-fit: cover;
  object-position: top center;
  border-radius: 6px;
  background: #dcebf7;
}

.tp-list-player-photo .tp-placeholder,
.tp-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 58px;
  color: #24577f;
  font-size: 23px;
  font-weight: 800;
  background: #dcebf7;
  border-radius: 6px;
}

.tp-player-info,
.tp-list-player-country-info,
.tp-list-player-blade,
.tp-list-player-fh-rubber,
.tp-list-player-bh-rubber {
  min-width: 0;
  overflow: hidden;
}

.tp-list-player-name {
  color: #123e66;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.tp-list-player-gender {
  margin-top: 4px;
  color: #7a8b9b;
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.tp-list-player-open-player-profile {
  margin-top: 4px;
}

.tp-list-player-country-flag {
  margin-right: 6px;
  line-height: 0;
}

.tp-list-player-country-flag img {
  display: block;
  width: 22px;
  height: 16px;
  object-fit: cover;
  border: 1px solid #d7e0e8;
  border-radius: 2px;
}

.tp-list-player-country-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tp-list-player-blade-photo,
.tp-list-player-fh-rubber-photo,
.tp-list-player-bh-rubber-photo {
  margin-right: 7px;
  line-height: 0;
}

.tp-list-player-blade-photo img,
.tp-list-player-fh-rubber-photo img,
.tp-list-player-bh-rubber-photo img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
  background: #fff;
  border-radius: 3px;
}

.tp-list-player-blade-brand,
.tp-list-player-fh-rubber-brand,
.tp-list-player-bh-rubber-brand {
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.tp-list-player-blade-brand a,
.tp-list-player-fh-rubber-brand a,
.tp-list-player-bh-rubber-brand a {
  color: #164a77;
  text-decoration: none;
}

.tp-list-player-blade-brand a:hover,
.tp-list-player-fh-rubber-brand a:hover,
.tp-list-player-bh-rubber-brand a:hover {
  text-decoration: underline;
}

.tp-card-head strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
  color: #123e66;
}

.tp-card-head a {
  color: #123e66;
  text-decoration: none;
}

.tp-card-head a:hover {
  text-decoration: underline;
}

.tp-card-head small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #7a8b9b;
}

.tp-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border: 1px solid #d7e0e8;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}

.tp-code {
  display: block;
  margin: 0;
  font-size: 10px;
  color: #8292a2;
}

.tp-equip {
  width: 38px;
  height: 38px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 7px;
  background: white;
  border-radius: 3px;
}

.tp-cards {
  display: none;
}

.tp-empty {
  padding: 24px;
  text-align: center;
  border: 1px dashed #b8ccdd;
  border-radius: 9px;
  color: #5e7388;
  background: #f8fbfe;
  margin: 12px 0;
}

.tp-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 17px 0;
}

.tp-pagination button {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #cfdeea;
  border-radius: 7px;
  background: white;
  color: #194d77;
  font-weight: 750;
  cursor: pointer;
}

.tp-pagination button:disabled {
  opacity: .4;
  cursor: default;
}

.tp-row[hidden] {
  display: none !important;
}

@media (max-width:1050px) {
  .tp-filters {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  .tp-table th,.tp-table td {
    padding: 8px;
  }

  .tp-equip {
    width: 31px;
    height: 31px;
  }

  .tp-list-player-blade-photo img,
  .tp-list-player-fh-rubber-photo img,
  .tp-list-player-bh-rubber-photo img {
    width: 31px;
    height: 31px;
  }
}

@media (max-width:767px) {
  .tp-hero {
    padding: 23px 19px;
    margin-bottom: 13px;
  }

  .tp-tools {
    padding: 10px;
  }

  .tp-filter-toggle {
    display: block;
    width: 100%;
    text-align: left;
  }

  .tp-filters {
    display: none;
    grid-template-columns: 1fr 1fr;
    padding-top: 12px;
  }

  .tp-filters.is-open {
    display: grid;
  }

  .tp-search,.tp-reset,.tp-apply {
    grid-column: 1/-1;
  }

  .tp-results {
    font-size: 11px;
    flex-wrap: wrap;
  }

  .tp-list-results-sort-order {
    margin-left: auto;
  }

  .tp-table-wrap {
    display: none;
  }

  .tp-list-player-photo img {
    width: 50px;
    height: 58px;
  }

  .tp-cards {
    display: grid;
    gap: 11px;
  }

  .tp-card {
    border: 1px solid var(--line);
    border-radius: 11px;
    background: white;
    overflow: hidden;
    box-shadow: 0 4px 14px #11395b0d;
  }

  .tp-card-head {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 13px;
    background: linear-gradient(120deg,#f2f8fd,white);
    border-bottom: 1px solid #e3edf5;
  }

  .tp-card-photo {
    width: 66px;
    height: 76px;
    flex: 0 0 66px;
    object-fit: cover;
    object-position: top center;
    border-radius: 7px;
    background: #dcebf7;
  }

  .tp-card-head strong {
    font-size: 16px;
  }

  .tp-card-country {
    display: block;
    margin-top: 6px;
    color: #536d83;
    font-size: 12px;
  }

  .tp-card-items {
    padding: 3px 13px 8px;
  }

  .tp-card-items>div {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 8px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #edf2f6;
  }

  .tp-card-items>div:last-child {
    border: 0;
  }

  .tp-card-items b {
    font-size: 10px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #6d8193;
  }

  .tp-card-items span {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 13px;
  }

  .tp-card-items .tp-equip {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }
}

@media (max-width:380px) {
  .tp-filters {
    grid-template-columns: 1fr;
  }

  .tp-search,.tp-reset,.tp-apply {
    grid-column: auto;
  }

  .tp-card-items>div {
    grid-template-columns: 68px 1fr;
  }
}

/* PrettyPhoto image links: preserve the existing thumbnail layout. */

.tp-public a.tp-lightbox {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  line-height: 0;
  text-decoration: none;
  cursor: zoom-in;
  max-width: 100%;
}

.tp-public a.tp-lightbox img {
  display: block;
}

.tp-card-head>a.tp-lightbox {
  flex: 0 0 auto;
}

.tp-card-items .tp-lightbox {
  flex: 0 0 auto;
}

/* MAVEX public page visual refresh: photographic hero with a horizontal fade */

.tp-public {
  --navy: #0b3154;
  --blue: #16466c;
  --line: #e2e8ce;
  color: #263b4b;
  font-size: 14px;
}

.tp-hero {
  margin: 0 0 20px;
  padding: 25px 30px;
  border-radius: 13px;
  color: #17466a;
  background: radial-gradient(ellipse at 90% 0%,#387db777,transparent 45%),linear-gradient(125deg,#061a34,#0b3a68 58%,#17639a);
  box-shadow: 0 8px 24px rgba(50,65,30,.12);
  position: relative;
  isolation: isolate;
  min-height: 164px;
  overflow: hidden;
  background-color: #f5f7e7;
  background-image: url("../images/top_players_banner.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
}

.tp-hero > * {
  position: relative;
  z-index: 1;
}

.tp-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  opacity: .82;
  margin-bottom: 9px;
  color: #17466a;
}

.tp-hero h1 {
  font-size: clamp(25px,3vw,37px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 9px;
  color: #123f67;
}

.tp-hero p {
  margin: 0;
  color: #315c7d;
}

.tp-total {
  margin-top: 18px;
  color: #315c7d;
  font-size: 12px;
}

.tp-total b {
  font-size: 25px;
  color: #f47725;
  margin-right: 5px;
}

.tp-tools {
  padding: 15px;
  background: rgba(250,251,239,.94);
  border: 1px solid var(--line);
  border-radius: 11px;
  margin-bottom: 13px;
  border-color: #e3e9cf;
  box-shadow: 0 3px 12px rgba(50,65,30,.04);
}

.tp-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 750;
  color: #244b69;
}

.tp-reset,.tp-filter-toggle {
  border-color: #d7e3ee;
  background: #eef6fc;
  color: #17466a;
}

.tp-apply {
  padding: 0 13px;
  border: 1px solid #0862c8;
  border-radius: 7px;
  background: #f47725;
  color: #fff;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
  border-color: #f47725;
}

.tp-apply:hover {
  background: #e96819;
  border-color: #e96819;
}

.tp-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  border-color: #dfe7d1;
  box-shadow: 0 4px 15px rgba(50,65,30,.05);
}

.tp-table th {
  padding: 13px 11px;
  text-align: left;
  color: white;
  font-size: 12px;
  background: linear-gradient(180deg,#174c73 0%,#0a3154 100%);
  border-right: 1px solid #ffffff20;
}

.tp-table th:first-child:after,.tp-table th:nth-child(2):after,.tp-table th:nth-child(3):after,.tp-table th:nth-child(4):after,.tp-table th:nth-child(5):after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin-top: 7px;
  background: #f47725;
}

.tp-table tbody tr:nth-child(even) {
  background: #f3f8fb;
}

.tp-table tbody tr:hover {
  background: #e7f2f8;
}

.tp-pagination button[aria-current=page] {
  background: #17466a;
  color: white;
  border-color: #17466a;
}

@media (max-width:767px) {
  .tp-hero {
    min-height: 0;
    padding: 23px 19px;
    background-position: right center;
    background-size: auto 100%;
  }


  .tp-hero h1 {
    color: #123f67;
  }

  .tp-hero p,.tp-total {
    color: #315c7d;
  }
}

.tp-profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 4px 11px;
  border: 1px solid #1768a6;
  border-radius: 6px;
  background: #eef7ff;
  color: #104d7c;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  line-height: 1.35;
  white-space: nowrap;
}

.tp-profile-button:hover,.tp-profile-button:focus {
  background: #0d5b96;
  color: #fff;
  text-decoration: none;
}

.tp-profile-button-disabled {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
  opacity: .9;
}

.tp-profile-button-disabled:hover,.tp-profile-button-disabled:focus {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #64748b;
  text-decoration: none;
}

.tp-card-head .tp-profile-button {
  align-self: flex-start;
}
