.miclub-table-wrap {
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(13, 16, 13, 0.95), rgba(10, 12, 10, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.miclub-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  text-align: left;
}

.miclub-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0.72rem 0.62rem;
  font-weight: 700;
  font-size: 0.74rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: rgba(20, 23, 20, 0.93);
  backdrop-filter: blur(8px);
}

.miclub-table thead th.th-select {
  width: 44px;
  text-align: center;
  line-height: 1;
}

.miclub-table thead th.th-thumb {
  width: 84px;
  text-align: center;
  line-height: 1;
}

.miclub-table thead th.th-untrade,
.miclub-table .col-untrade {
  width: 84px;
  text-align: center;
}

.miclub-table thead th[data-key="rating"],
.miclub-table .col-ovr {
  width: 74px;
  text-align: center;
}

.miclub-table thead th[data-key="name"] {
  text-align: left;
  padding-left: 0.95rem;
}

.miclub-table thead th.th-type,
.miclub-table .col-type {
  width: 260px;
  text-align: left;
}

.miclub-table thead th[data-key="nation"],
.miclub-table .col-nation,
.miclub-table thead th[data-key="club"],
.miclub-table .col-club,
.miclub-table thead th[data-key="league"],
.miclub-table .col-league {
  width: 112px;
  text-align: center;
}

.miclub-table thead th[data-key="pos"],
.miclub-table .col-pos {
  width: 140px;
  text-align: center;
}

.miclub-table thead th[data-key="definitionId"],
.miclub-table .col-defid {
  width: 122px;
  text-align: center;
}

.miclub-table tbody tr {
  vertical-align: middle;
  transition: background-color 160ms ease;
}

.miclub-table tbody tr:hover {
  background: rgba(30, 215, 96, 0.12);
}

.miclub-table tbody tr td {
  padding: 0.45rem 0.62rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.miclub-table .col-select {
  width: 44px;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.miclub-table .col-thumb {
  width: 84px;
  padding-left: 0.42rem;
  padding-right: 0.42rem;
}

.miclub-player-checkbox {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  background: rgba(9, 11, 10, 0.92);
  position: relative;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.miclub-player-checkbox:hover {
  border-color: rgba(30, 215, 96, 0.65);
}

.miclub-player-checkbox:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(30, 215, 96, 0.28);
}

.miclub-player-checkbox:checked {
  background: #1ed760;
  border-color: #1ed760;
}

.miclub-player-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 0px;
  width: 5px;
  height: 10px;
  border: solid #061109;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.thumb-container {
  position: relative;
  width: 74px;
  height: 74px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.thumb-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  background-position: center;
  background-size: auto;
  background-color: rgba(255, 255, 255, 0.2);
  background-blend-mode: overlay;
}

.thumb-bg.thumb-bg--special {
  box-shadow:
    inset 0 0 0 1px rgba(255, 216, 122, 0.9),
    0 0 0 1px rgba(255, 216, 122, 0.22),
    0 0 18px rgba(255, 216, 122, 0.26);
}

.thumb-face {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -12%;
  width: 100%;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.68));
}

.miclub-table .col-name {
  max-width: 260px;
  font-weight: 700;
  color: #f8fbf7;
  text-align: left;
  padding-left: 0.7rem !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.miclub-table .col-type {
  max-width: 260px;
  color: #cfd9cc;
  font-size: 0.82rem;
  white-space: normal;
  line-height: 1.25;
  overflow: visible;
  text-overflow: clip;
  padding-left: 0.7rem !important;
}

.type-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.46rem;
  max-width: 100%;
}

.type-label {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.type-filter-btn {
  flex: 0 0 auto;
  width: 24px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background-color: rgba(255, 255, 255, 0.04);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #d9e6d7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.type-filter-btn:hover {
  border-color: rgba(30, 215, 96, 0.62);
  box-shadow: 0 0 0 2px rgba(30, 215, 96, 0.18);
}

.type-filter-btn:active {
  transform: translateY(1px);
}

.type-filter-btn.type-filter-active {
  border-color: rgba(30, 215, 96, 0.9);
  box-shadow:
    0 0 0 2px rgba(30, 215, 96, 0.28),
    0 0 14px rgba(30, 215, 96, 0.18);
}

.col-ovr {
  width: 64px;
  text-align: center;
  font-weight: 800;
  color: #ffdf95;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: 0.02em;
}

.col-pos {
  width: 160px;
  text-align: center;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: #d4dfd0;
}

.col-defid {
  width: 130px;
  text-align: center;
}

.icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  border-radius: 10px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.icon.icon-filterable {
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease;
}

.icon.icon-filterable:hover {
  transform: translateY(-1px);
  border-color: rgba(30, 215, 96, 0.45);
  background: rgba(30, 215, 96, 0.15);
}

.icon.icon-filter-active {
  border-color: rgba(30, 215, 96, 0.75);
  background: rgba(30, 215, 96, 0.22);
  box-shadow: 0 0 0 2px rgba(30, 215, 96, 0.18);
}

.defid-copy {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.42rem 0.58rem;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.8rem;
  transition: transform 120ms ease, background-color 140ms ease, border-color 140ms ease;
}

.defid-copy:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.defid-copy:active {
  transform: translateY(1px);
}

.defid-copy.copied {
  background: rgba(30, 215, 96, 0.16);
  color: var(--primary-color);
  border-color: rgba(30, 215, 96, 0.4);
}

.miclub-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin: 0.2rem 0 0.65rem;
  flex-wrap: wrap;
}

.miclub-search {
  flex: 1 1 280px;
  min-width: 220px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 0.5rem 0.86rem;
  font-size: 0.9rem;
}

.miclub-search:focus {
  outline: none;
  border-color: rgba(30, 215, 96, 0.55);
  box-shadow: 0 0 0 3px rgba(30, 215, 96, 0.16);
}

.miclub-search::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.miclub-filter-meta {
  color: var(--text-secondary);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.miclub-filter-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.miclub-reset-filter {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f3f6f2;
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.miclub-reset-filter:hover {
  filter: brightness(1.08);
}

.miclub-active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin: 0 0 0.6rem;
}

.miclub-filter-chip {
  border: 1px solid rgba(30, 215, 96, 0.35);
  background: rgba(30, 215, 96, 0.14);
  color: #d8f5e2;
  border-radius: 999px;
  padding: 0.25rem 0.58rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 0.1rem 0.75rem;
  flex-wrap: wrap;
}

.pager-info {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.pager-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pager-page {
  min-width: 58px;
  text-align: center;
  font-weight: 700;
  color: #f2f5f1;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.pager-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f4f7f3;
  border-radius: 999px;
  padding: 0.38rem 0.84rem;
  cursor: pointer;
  font-weight: 700;
  transition: filter 120ms ease, transform 120ms ease, opacity 120ms ease;
}

.pager-btn:hover {
  filter: brightness(1.08);
}

.pager-btn:active {
  transform: translateY(1px);
}

.pager-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

.miclub-hover-preview {
  position: fixed;
  left: -9999px;
  top: -9999px;
  z-index: 12000;
  pointer-events: none;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 80ms ease, transform 80ms ease;
}

.miclub-hover-preview.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.miclub-hover-preview__card {
  width: 168px;
  border-radius: 14px;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

.th-sort {
  position: relative;
  user-select: none;
}

.th-sort .sort-indicator {
  margin-left: 0.38rem;
  font-size: 0.72rem;
  opacity: 0.86;
  color: #d8e4d4;
}

.miclub-empty-state {
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 1.1rem;
  margin-top: 0.55rem;
  background: rgba(255, 255, 255, 0.03);
}

.miclub-empty-state h3 {
  margin: 0;
  font-size: 1.02rem;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.miclub-empty-state p {
  margin: 0.42rem 0 0;
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.92rem;
}

@media (max-width: 1120px) {
  .miclub-table .th-league,
  .miclub-table .col-league {
    display: none;
  }

  .miclub-table {
    min-width: 880px;
  }
}

@media (max-width: 860px) {
  .miclub-table .th-nation,
  .miclub-table .col-nation {
    display: none;
  }

  .miclub-table {
    min-width: 760px;
  }

  .pager-info {
    font-size: 0.83rem;
  }

  .icon {
    width: 32px;
    height: 32px;
  }
}
