/* Players page filter panel (right column on desktop, bottom sheet below 992px). Plain CSS served as-is. */
.fp-panel {
  --fp-bg: #1a1a40;
  --fp-border: rgba(255, 255, 255, 0.14);
  --fp-accent: #5cf8db;
  --fp-muted: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  color: #fff;
  background: var(--fp-bg);
  border: 1px solid var(--fp-border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.site-dark-skin .fp-panel {
  --fp-bg: #1c1c1c;
}

/* desktop: stays in view next to the long list, scrolls on its own */
@media (min-width: 992px) {
  .fp-panel {
    position: sticky;
    top: 70px;
    max-height: calc(100vh - 90px);
    margin-top: 8px;
  }
  .fp-open,
  .fp-backdrop,
  .fp-close {
    display: none !important;
  }
}

.fp-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--fp-border);
}
.fp-title {
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 700;
}
.fp-title i {
  margin-right: 6px;
  color: var(--fp-accent);
}
.fp-badge {
  display: inline-block;
  min-width: 18px;
  margin-left: 6px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  color: #0b1d1a;
  background: var(--fp-accent);
  border-radius: 9px;
}
.fp-link {
  padding: 0;
  font-size: 12px;
  color: var(--fp-accent);
  background: none;
  border: 0;
  cursor: pointer;
}
.fp-link:hover {
  text-decoration: underline;
}
.fp-close {
  padding: 0 4px;
  font-size: 18px;
  color: #fff;
  background: none;
  border: 0;
}

.fp-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(92, 248, 219, 0.45) transparent;
}
.fp-scroll::-webkit-scrollbar {
  width: 8px;
}
.fp-scroll::-webkit-scrollbar-track {
  margin: 8px 0;
  background: transparent;
}
.fp-scroll::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  background: rgba(92, 248, 219, 0.35);
  background-clip: padding-box;
}
.fp-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(92, 248, 219, 0.7);
  background-clip: padding-box;
}

/* sections */
.fp-sec {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.fp-sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}
.fp-sec-head:hover {
  background: rgba(255, 255, 255, 0.04);
}
.fp-sec-head > i:first-child {
  width: 16px;
  color: var(--fp-accent);
  text-align: center;
}
.fp-sec-title {
  flex: 1 1 auto;
}
.fp-sec-count {
  min-width: 18px;
  padding: 0 6px;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
  border-radius: 9px;
}
.fp-sec-count.on {
  color: #0b1d1a;
  background: var(--fp-accent);
}
.fp-sec-caret {
  font-size: 10px;
  color: var(--fp-muted);
  transition: transform 0.15s;
}
.fp-sec.open .fp-sec-caret {
  transform: rotate(180deg);
}
.fp-sec-body {
  display: none;
  padding: 2px 14px 14px;
}
.fp-sec.open .fp-sec-body {
  display: block;
}

.fp-hint {
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--fp-muted);
}
.fp-field {
  margin-bottom: 12px;
}
.fp-label {
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fp-muted);
}
/* chips */
.fp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.fp-chip {
  padding: 3px 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  cursor: pointer;
}
.fp-chip:hover {
  color: #fff;
  border-color: rgba(92, 248, 219, 0.5);
}
.fp-chip.active {
  font-weight: 700;
  color: #0b1d1a;
  background: var(--fp-accent);
  border-color: var(--fp-accent);
}
.fp-quick {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

/* inputs */
.fp-pair {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fp-pair > span {
  font-size: 12px;
  color: var(--fp-muted);
}
.fp-panel input[type=number],
.fp-panel input[type=text],
.fp-panel select.fp-select,
.fp-pair select {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  height: 32px;
  padding: 0 10px;
  font-size: 13px;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}
.fp-panel input:focus,
.fp-panel select:focus {
  outline: 0;
  border-color: var(--fp-accent);
  box-shadow: 0 0 0 3px rgba(92, 248, 219, 0.15);
}
.fp-panel select option {
  color: #111;
}
/* no browser spinners: they look out of place on the dark inputs, typing is faster anyway */
.fp-panel input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.fp-panel input[type=number]::-webkit-inner-spin-button,
.fp-panel input[type=number]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

/* segmented radio (Any / Yes / No, Include / Exclude) */
.fp-seg {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}
.fp-seg label {
  margin: 0;
  cursor: pointer;
}
.fp-seg input {
  display: none;
}
.fp-seg span {
  display: block;
  padding: 4px 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}
.fp-seg input:checked + span {
  font-weight: 700;
  color: #0b1d1a;
  background: var(--fp-accent);
}

.fp-btn-ghost {
  width: 100%;
  padding: 8px;
  font-size: 13px;
  color: var(--fp-accent);
  background: transparent;
  border: 1px solid rgba(92, 248, 219, 0.5);
  border-radius: 8px;
  cursor: pointer;
}
.fp-btn-ghost:hover {
  background: rgba(92, 248, 219, 0.1);
}

.fp-foot {
  padding: 12px 14px;
  border-top: 1px solid var(--fp-border);
  background: var(--fp-bg);
}
.fp-apply {
  width: 100%;
  height: 40px;
  font-size: 14px;
  font-weight: 700;
  color: #0b1d1a;
  background: var(--fp-accent);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.fp-apply:hover {
  filter: brightness(1.08);
}

/* select2 (team / league / nation) */
.fp-panel .select2-container--default .select2-selection--multiple {
  min-height: 34px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}
.fp-panel .select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: var(--fp-accent);
}
/* selected tags: tinted, not filled, so they don't shout */
.fp-panel .select2-container--default .select2-selection--multiple .select2-selection__choice {
  margin-top: 4px;
  padding: 1px 8px;
  font-size: 12px;
  color: #d9fbf4;
  background: rgba(92, 248, 219, 0.12);
  border: 1px solid rgba(92, 248, 219, 0.4);
  border-radius: 12px;
}
.fp-panel .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  margin-right: 4px;
  color: rgba(217, 251, 244, 0.7);
}
.fp-panel .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: #fff;
}
.fp-panel .select2-search--inline .select2-search__field {
  color: #fff;
}
.select2-container--open .select2-dropdown.fp-s2-dd,
.fp-s2-dd {
  background: #1a1a40;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}
.select2-container--open {
  z-index: 3000;
}
.fp-s2-dd .select2-results__option {
  padding: 7px 10px;
  color: #fff !important;
  background: transparent !important;
}
.fp-s2-dd .select2-results__option--highlighted,
.fp-s2-dd .select2-results__option[aria-selected=true].select2-results__option--highlighted {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 3px 0 0 #5cf8db;
}
.fp-s2-dd .select2-results__option[aria-selected=true] {
  color: rgba(255, 255, 255, 0.45) !important;
}
/* empty "enter characters" / loading rows */
.fp-s2-dd .select2-results__message:empty {
  display: none;
}
.fp-s2-item img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  object-fit: contain;
  vertical-align: middle;
}

/* below 992px: floating button + bottom sheet */
.fp-open {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 1500;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #0b1d1a;
  background: #5cf8db;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.fp-open .fp-badge {
  color: #5cf8db;
  background: #0b1d1a;
}
.fp-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1900;
  display: none;
  background: rgba(0, 0, 0, 0.6);
}
.fp-backdrop.open {
  display: block;
}
@media (max-width: 991.98px) {
  .fp-panel {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2000;
    max-height: 88vh;
    border-radius: 18px 18px 0 0;
    transform: translateY(105%);
    transition: transform 0.25s ease;
  }
  .fp-panel.open {
    transform: translateY(0);
  }
  body.fp-lock {
    overflow: hidden;
  }
}

/* exclude section: same calm tags, in red */
.fp-tln-exclude .select2-container--default .select2-selection--multiple .select2-selection__choice {
  color: #ffd9e2;
  background: rgba(224, 71, 107, 0.14);
  border-color: rgba(224, 71, 107, 0.5);
}
.fp-tln-exclude .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: rgba(255, 217, 226, 0.7);
}
.fp-sec[data-sec=exclude] .fp-sec-head > i:first-child {
  color: #e0476b;
}

/* single selects (select2): same look as the inputs */
.fp-pair .select2-container {
  flex: 1 1 0;
  min-width: 0;
}
.fp-panel .select2-container--default .select2-selection--single {
  height: 32px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}
.fp-panel .select2-container--default.select2-container--focus .select2-selection--single,
.fp-panel .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--fp-accent);
}
.fp-panel .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0 28px 0 10px;
  font-size: 13px;
  line-height: 30px;
  color: #fff;
}
.fp-panel .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 30px;
  right: 6px;
}
.fp-panel .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: rgba(255, 255, 255, 0.6) transparent transparent;
}
.fp-s2-dd .select2-search--dropdown {
  padding: 8px;
}
.fp-s2-dd .select2-search--dropdown .select2-search__field {
  height: 30px;
  padding: 0 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}
.fp-s2-dd .select2-results > .select2-results__options {
  max-height: 260px;
  scrollbar-width: thin;
  scrollbar-color: rgba(92, 248, 219, 0.45) transparent;
}

/* play styles: icon tiles */
.fp-ps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.fp-chip.fp-ps {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 7px 4px 6px;
  border-radius: 10px;
}
.fp-chip.fp-ps img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.fp-chip.fp-ps span {
  font-size: 10px;
  line-height: 1.15;
  text-align: center;
}
/* icons are coloured artwork, so a filled teal tile would hide them: tint and outline instead */
.fp-chip.fp-ps.active {
  color: #fff;
  background: rgba(92, 248, 219, 0.16);
  border-color: var(--fp-accent);
  box-shadow: inset 0 0 0 1px var(--fp-accent);
}

/* attributes (IGS): collapsible groups with compact rows */
.fp-sub {
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.12);
}
.fp-sub-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}
.fp-sub-head > span:first-child {
  flex: 1 1 auto;
}
.fp-sub-head i {
  font-size: 9px;
  color: var(--fp-muted);
  transition: transform 0.15s;
}
.fp-sub.open .fp-sub-head i {
  transform: rotate(180deg);
}
.fp-sub-count {
  min-width: 16px;
  padding: 0 5px;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
}
.fp-sub-count.on {
  color: #0b1d1a;
  background: var(--fp-accent);
}
.fp-sub-body {
  display: none;
  padding: 2px 10px 6px;
}
.fp-sub.open .fp-sub-body {
  display: block;
}
.fp-attr {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.fp-attr-name {
  flex: 0 0 74px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}
.fp-attr .fp-pair {
  flex: 1 1 auto;
  min-width: 0;
}
.fp-attr input[type=number] {
  height: 28px;
  padding: 0 6px;
  text-align: center;
}

/* before select2 takes over, show a dark empty box instead of the browser's white listbox/select */
.fp-panel select:not(.select2-hidden-accessible) {
  -webkit-appearance: none;
  appearance: none;
  height: 34px;
  overflow: hidden;
  color: transparent;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

/* already-applied teams would otherwise show in the browser's light selection colours */
.fp-panel select:not(.select2-hidden-accessible) option {
  display: none;
}

/* position pills */
.fp-quick {
  flex-wrap: wrap;
  gap: 5px;
}
.fp-qpill.active {
  font-weight: 700;
  color: #0b1d1a;
  background: var(--fp-accent);
  border-color: var(--fp-accent);
}

/* role: position > role > +/++ */
.fp-role-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.fp-role-level {
  display: flex;
  grid-column: 1 / -1;
  gap: 6px;
}
.fp-role-level .fp-chip {
  flex: 1 1 0;
  padding: 4px 0;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.fp-role-steps .select2-container--disabled .select2-selection--single {
  opacity: 0.5;
}

.fp-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.fp-label-row .fp-label {
  margin: 0;
}
.fp-link.fp-dim {
  color: var(--fp-muted);
  opacity: 0.5;
  pointer-events: none;
}

.fp-role-done .select2-container--default .select2-selection--single {
  border-color: rgba(92, 248, 219, 0.45);
}

/* view toolbar above the player table (group by + extra stat columns) */
.pl-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 10px;
  padding: 8px 10px;
  color: #fff;
  background: #1a1a40;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
}
.site-dark-skin .pl-toolbar {
  background: #1c1c1c;
}
.pl-count {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}
.pl-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pl-menu {
  position: relative;
}
.pl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  cursor: pointer;
}
.pl-btn:hover,
.pl-menu.open .pl-btn {
  color: #fff;
  border-color: #5cf8db;
}
.pl-btn > i:first-child {
  color: #5cf8db;
}
/* Group by / Columns: white icons */
.pl-toolbar .pl-btn > i:first-child {
  color: #fff;
}
.pl-btn strong {
  font-weight: 700;
  color: #fff;
}
.pl-caret {
  font-size: 9px;
  opacity: 0.6;
  transition: transform 0.15s;
}
.pl-menu.open .pl-caret {
  transform: rotate(180deg);
}
.pl-badge {
  min-width: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  color: #0b1d1a;
  background: #5cf8db;
  border-radius: 9px;
}
.pl-pop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 1000;
  display: none;
  padding: 6px;
  background: #1a1a40;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}
.site-dark-skin .pl-pop {
  background: #1c1c1c;
}
.pl-menu.open .pl-pop {
  display: block;
}
.pl-pop-group {
  min-width: 160px;
}
.pl-opt {
  display: block;
  width: 100%;
  padding: 7px 10px;
  font-size: 13px;
  color: #fff;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.pl-opt:hover {
  background: rgba(255, 255, 255, 0.08);
}
.pl-opt.active {
  font-weight: 700;
  background: rgba(92, 248, 219, 0.12);
  box-shadow: inset 3px 0 0 #5cf8db;
}
.pl-pop-cols {
  width: 320px;
  max-width: calc(100vw - 32px);
  padding: 10px;
}
.pl-pop-title {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.pl-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-height: 240px;
  overflow-y: auto;
}
.pl-col {
  padding: 3px 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  cursor: pointer;
}
.pl-col:hover {
  border-color: rgba(92, 248, 219, 0.5);
}
.pl-col.active {
  color: #d9fbf4;
  background: rgba(92, 248, 219, 0.14);
  border-color: rgba(92, 248, 219, 0.5);
}
.pl-pop-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.pl-link {
  padding: 0;
  font-size: 12px;
  color: #5cf8db;
  background: none;
  border: 0;
  cursor: pointer;
}
.pl-apply {
  height: 30px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: #0b1d1a;
  background: #5cf8db;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

/* page bar (partials/pageBar.php, styles in page-bar.css) above the tabs */
.pb + .pl-tabs {
  margin-top: 10px;
}
.pl-pop-left {
  right: auto;
  left: 0;
}
a.pl-opt {
  text-decoration: none;
}
a.pl-opt:hover {
  color: #fff;
}
.pl-pop-versions {
  min-width: 170px;
  max-height: 320px;
  overflow-y: auto;
}
.pl-pop .pl-pop-title {
  padding: 4px 10px 6px;
  margin: 0;
}

/* list tabs (Main, Updated, Popular ...) */
.pl-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  /* same gap under the page bar (game / version / gender) as the player page's tabs */
  margin-top: 10px;
  padding: 4px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  background: #1a1a40;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
}
.site-dark-skin .pl-tabs {
  background: #1c1c1c;
}
.pl-tabs::-webkit-scrollbar {
  display: none;
}
.pl-tab {
  flex: 0 0 auto;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  text-decoration: none;
}
.pl-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
}
.pl-tab.active {
  color: #0b1d1a;
  background: #5cf8db;
}

/* applied filters, right above the list */
.pl-active {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
}
.pl-active-title {
  margin-right: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.pl-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 6px 3px 10px;
  font-size: 12px;
  color: #d9fbf4;
  background: rgba(92, 248, 219, 0.12);
  border: 1px solid rgba(92, 248, 219, 0.4);
  border-radius: 14px;
  text-decoration: none;
}
.pl-pill img {
  width: 16px !important;
  height: 16px;
  margin: 0 3px;
  padding: 0 !important;
  top: 0 !important;
  object-fit: contain;
  vertical-align: middle;
}
.pl-pill i {
  font-size: 10px;
  opacity: 0.7;
}
.pl-pill:hover {
  color: #fff;
  text-decoration: none;
  background: rgba(224, 71, 107, 0.18);
  border-color: rgba(224, 71, 107, 0.6);
}
.pl-pill:hover i {
  opacity: 1;
}
.pl-clear-all {
  margin-left: 4px;
  font-size: 12px;
  color: #ff8aa5;
}
.pl-clear-all:hover {
  color: #fff;
}

/* match the homepage containers (.home-panel / .hpc): translucent glass instead of solid dark blocks.
   Menus, dropdowns and the mobile sheet stay solid because they float over content. */
.pl-tabs,
.pl-toolbar,
.site-players-page .table-site {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.site-dark-skin .pl-tabs,
.site-dark-skin .pl-toolbar,
.site-dark-skin .site-players-page .table-site {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}
.site-players-page .table-site {
  border-radius: 14px;
}
.site-players-page .table-site thead th {
  background: rgba(255, 255, 255, 0.05);
}
@media (min-width: 992px) {
  .fp-panel,
  .site-dark-skin .fp-panel {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .fp-foot {
    background: transparent;
  }
}

/* the glass blur gives each block its own layer: keep the blocks that open menus above the ones
   after them (otherwise Group by / Columns menus open behind the table; the page bar sets its own) */
.pl-toolbar {
  position: relative;
  z-index: 20;
}

/* floating Apply, shown by JS on desktop when there are unapplied changes and the panel button is off screen */
.fp-float-apply {
  position: fixed;
  bottom: 18px;
  z-index: 1500;
  display: none;
  height: 44px;
  font-size: 14px;
  font-weight: 700;
  color: #0b1d1a;
  background: #5cf8db;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.fp-float-apply.show {
  display: block;
}
.fp-float-apply i {
  margin-right: 6px;
}

/* ---------- players table ---------- */
/* "Player details" columns: rendered, hidden until picked in the Columns menu */
.pl-table .pc-opt {
  display: none;
}
.pl-table.show-growth .pc-opt-growth,
.pl-table.show-wr .pc-opt-wr,
.pl-table.show-clause .pc-opt-clause,
.pl-table.show-joined .pc-opt-joined,
.pl-table.show-body .pc-opt-body,
.pl-table.show-igs .pc-opt-igs,
.pl-table.show-accel .pc-opt-accel,
.pl-table.show-personality .pc-opt-personality,
.pl-table.show-temper .pc-opt-temper,
.pl-table.show-gprofile .pc-opt-gprofile {
  display: table-cell;
}
/* FC 27 player profile columns: names, kept on one line */
.pl-table .pc-opt-txt {
  font-size: 12px;
  white-space: nowrap;
}

.pl-pop .pl-pop-title-2 {
  margin-top: 10px;
}

.pl-table {
  margin-bottom: 0;
}
.site-players-page .pl-table > :not(caption) > * > * {
  padding: 10px 8px !important;
  vertical-align: middle;
}
/* one type scale for the whole table:
   header 11px muted | values 13px | OVR/POT 15px | secondary lines 11px muted; teal only for the sort arrow + hovers */
.site-players-page .pl-table thead th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-players-page .pl-table thead th a {
  color: inherit;
}
.site-players-page .pl-table thead th a:hover,
.site-players-page .pl-table thead th.pl-sorted,
.site-players-page .pl-table thead th.pl-sorted a {
  color: #fff;
}
.pl-table thead th.pl-sorted i {
  color: #5cf8db;
}
.pl-table .pc-num {
  text-align: center;
}
.site-players-page .pl-table tbody td {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}
.pl-table .pc-expand {
  width: 34px;
  padding-left: 0 !important;
}
.pl-table tbody tr.player-row:has(.igs-btn) {
  cursor: pointer;
}
.pl-table tbody tr.player-row:hover {
  background: rgba(255, 255, 255, 0.04);
}
.pl-table tbody tr.player-row:hover .igs-btn {
  color: #5cf8db;
}
.pl-table .igs-btn {
  position: static;
  padding: 0;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}
.pl-table .igs-btn:hover {
  color: #5cf8db;
}
.site-players-page .pl-table .smwf-star {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
}
.pl-gro::before {
  content: "+";
}
.pl-sub {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
}

/* player cell, homepage style: round photo with club glow, name, crest + flag + positions */
.pl-player {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pl-table .pl-thumb {
  --club: 92, 248, 219;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  margin: 0;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 65%, rgba(var(--club), 0.55) 0%, rgba(var(--club), 0.15) 55%, rgba(var(--club), 0) 72%), rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 10px rgba(var(--club), 0.3);
}
.pl-name-block {
  min-width: 0;
  max-width: 190px;
}
/* long names end in "..." (full name on hover) so one name can't widen the whole table */
.pl-table .player-name {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-players-page .pl-table .player-name a {
  color: #fff !important;
}
.site-players-page .pl-table .player-name a:hover {
  color: #5cf8db !important;
  opacity: 1;
}
.pl-sub-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
}
.pl-crest img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.pl-flag img {
  display: block;
  width: 20px;
  height: 20px;
  /* nation images are padded squares: show them whole, no ring (it framed the padding) */
  object-fit: contain;
}
.site-players-page .pl-table .player-position-cln {
  overflow: hidden;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pl-loan {
  padding: 0 5px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 5px;
}

/* ratings as text (homepage cards): the only bigger numbers in the row, OVR full white, POT a step back */
.pl-ovr,
.pl-pot {
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
.pl-ovr {
  color: #fff;
}
/* homepage card colours (.hpc-ovr / .hpc-pot): OVR white, POT teal */
.pl-pot {
  color: rgba(92, 248, 219, 0.95);
}

/* phones: the player column stays in place while the numbers scroll sideways */
@media (max-width: 767.98px) {
  .site-players-page .pl-table > :not(caption) > * > * {
    padding: 8px 7px !important;
  }
  .pl-table .pc-expand {
    display: none;
  }
  .pl-table .pc-info,
  .site-players-page .pl-table thead th.pc-info {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #24215e;
    box-shadow: 6px 0 10px -6px rgba(0, 0, 0, 0.6);
  }
  .site-players-page .pl-table thead th.pc-info {
    z-index: 3;
  }
  .site-dark-skin .pl-table .pc-info,
  .site-dark-skin .site-players-page .pl-table thead th.pc-info {
    background: #1e1e1e;
  }
  .pl-player {
    gap: 8px;
    min-width: 0;
    max-width: 190px;
  }
  .pl-table .pl-thumb {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }
  .pl-name-block {
    overflow: hidden;
  }
  .pl-table .player-name {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ---------- in game stats (inline row on desktop, drawer on phones) ---------- */
/* restyles the /playerIgsUi markup (shared with other clients) without changing it */
.site-players-page .pl-table .pl-igs-row > td {
  padding: 4px 12px 16px !important;
  white-space: normal;
  cursor: default;
}
/* when the table scrolls sideways, keep the stats in the visible part (--igs-w is set by players-filters.js) */
.pl-igs-row > td > .player-stats {
  position: sticky;
  left: 12px;
  max-width: var(--igs-w, 100%);
}
.pl-igs-row .player-stats,
.igs-drawer .player-stats,
.pl-igs-row .player-stats .player-stats > .row,
.igs-drawer .player-stats .player-stats > .row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
}
/* wide tables: the six groups side by side (one row), a bit more compact */
.pl-table.igs-one-row .pl-igs-row .player-stats,
.pl-table.igs-one-row .pl-igs-row .player-stats .player-stats > .row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.pl-table.igs-one-row .pl-igs-row .player-stats > [class*="col-"],
.pl-table.igs-one-row .pl-igs-row .player-stats .player-stats > .row > [class*="col-"] {
  padding: 8px 9px !important;
}
.pl-table.igs-one-row .pl-igs-row .sub-stat-text-row > div:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* goalkeepers: the six headline numbers sit one level deeper */
.pl-igs-row .player-stats .player-stats,
.igs-drawer .player-stats .player-stats {
  display: block;
  grid-column: 1 / -1;
}
.pl-igs-row .player-stats [class*="col-"],
.igs-drawer .player-stats [class*="col-"] {
  flex: none;
  width: auto;
  max-width: none;
  padding: 0;
}
.pl-igs-row .player-stats > [class*="col-"],
.igs-drawer .player-stats > [class*="col-"],
.pl-igs-row .player-stats .player-stats > .row > [class*="col-"],
.igs-drawer .player-stats .player-stats > .row > [class*="col-"] {
  padding: 10px 12px !important;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}
.pl-igs-row .main-stat-rating-title,
.igs-drawer .main-stat-rating-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  text-align: left !important;
}
.pl-igs-row .main-stat-title,
.igs-drawer .main-stat-title {
  margin: 2px 0 8px !important;
  padding-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: left !important;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pl-igs-row .player-stats .player-stats .main-stat-title,
.igs-drawer .player-stats .player-stats .main-stat-title {
  margin-bottom: 0 !important;
  padding-bottom: 0;
  border-bottom: 0;
}
.pl-igs-row .sub-stat,
.igs-drawer .sub-stat {
  margin-bottom: 7px !important;
}
.pl-igs-row .sub-stat .row,
.igs-drawer .sub-stat .row {
  margin: 0;
}
.pl-igs-row .sub-stat-text-row,
.igs-drawer .sub-stat-text-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}
.pl-igs-row .sub-stat-text-row > div,
.igs-drawer .sub-stat-text-row > div {
  padding: 0 !important;
}
.pl-igs-row .sub-stat-rating,
.igs-drawer .sub-stat-rating {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.pl-igs-row .stat-progress,
.igs-drawer .stat-progress {
  left: 0 !important;
  width: 100%;
  height: 4px;
  margin: 3px 0 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  box-shadow: none;
}
.pl-igs-row .stat-progress .progress-bar,
.igs-drawer .stat-progress .progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 3px;
}
/* one line per stat: name | bar | value (the markup's two rows are flattened into one grid row) */
.pl-igs-row .sub-stat,
.igs-drawer .sub-stat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px 20px;
  align-items: center;
  column-gap: 5px;
  margin-bottom: 6px !important;
}
.pl-igs-row .sub-stat > .row,
.igs-drawer .sub-stat > .row,
.pl-igs-row .sub-stat-text-row,
.igs-drawer .sub-stat-text-row {
  display: contents;
}
.pl-igs-row .sub-stat-text-row > div:first-child,
.igs-drawer .sub-stat-text-row > div:first-child {
  grid-column: 1;
  grid-row: 1;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pl-igs-row .sub-stat-text-row > div:last-child,
.igs-drawer .sub-stat-text-row > div:last-child {
  grid-column: 3;
  grid-row: 1;
  text-align: right;
}
.pl-igs-row .sub-stat .stat-progress,
.igs-drawer .sub-stat .stat-progress {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}
.igs-drawer .sub-stat {
  grid-template-columns: minmax(0, 1fr) 44px 22px;
}
/* value tiers, same thresholds and colours as Fifa::statColor (fifa-green ... fifa-red) */
.igs-green .sub-stat-rating { color: rgb(58, 200, 66); }
.igs-green .progress-bar { background: rgb(58, 200, 66) !important; }
.igs-light-green .sub-stat-rating { color: rgb(142, 174, 78); }
.igs-light-green .progress-bar { background: rgb(142, 174, 78) !important; }
.igs-yellow .sub-stat-rating { color: rgb(187, 170, 7); }
.igs-yellow .progress-bar { background: rgb(187, 170, 7) !important; }
.igs-red .sub-stat-rating { color: rgb(209, 28, 66); }
.igs-red .progress-bar { background: rgb(209, 28, 66) !important; }

/* phones: bottom drawer */
.igs-drawer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  color: #fff;
  background: #1a1a40;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.5);
  transform: translateY(105%);
  transition: transform 0.25s ease;
}
.site-dark-skin .igs-drawer {
  background: #1c1c1c;
}
.igs-drawer.open {
  transform: translateY(0);
}
.igs-drawer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.igs-drawer-head .pl-thumb {
  --club: 92, 248, 219;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 65%, rgba(var(--club), 0.55) 0%, rgba(var(--club), 0.15) 55%, rgba(var(--club), 0) 72%), rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 10px rgba(var(--club), 0.3);
}
.igs-drawer-name {
  flex: 1 1 auto;
  min-width: 0;
}
.igs-drawer-title {
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.igs-drawer-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}
.igs-drawer-ratings {
  display: flex;
  gap: 12px;
}
.igs-drawer-ratings span {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
}
.igs-drawer-ratings b {
  font-size: 17px;
}
.igs-drawer-close {
  padding: 0 4px;
  font-size: 18px;
  color: #fff;
  background: none;
  border: 0;
}
.igs-drawer-body {
  overflow-y: auto;
  padding: 12px;
}
.igs-drawer .player-stats,
.igs-drawer .player-stats .player-stats > .row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.igs-drawer-loading {
  padding: 30px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}
