

.tp-page {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 60px;
}

.tp-hero {
  position: relative;
  overflow: hidden;
  padding: 0 0 2px;
}
.tp-hero__bg { position: absolute; inset: 0; z-index: 0; }
.tp-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.4) 0%, transparent 100%);
}
.tp-hero__glow {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--primary-light) 0%, transparent 70%);
  pointer-events: none;
}
.tp-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--bg) 100%);
}
.tp-hero__inner {
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 32px 36px;
  flex-wrap: wrap;
}
.tp-hero__eyebrow {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--primary); margin-bottom: 12px;
}
.tp-hero__title {
  font-size: clamp(32px, 5vw, 48px); font-weight: 900;
  letter-spacing: -1.5px; line-height: 1; color: var(--text); margin: 0 0 12px;
}
.tp-hero__desc {
  font-size: 14px; color: var(--muted2); font-weight: 500;
  max-width: 420px; margin: 0 0 24px; line-height: 1.6;
}
.tp-hero__stats { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.tp-hero__stat  { display: flex; flex-direction: column; gap: 3px; }
.tp-hero__stat-val {
  font-size: 26px; font-weight: 900; letter-spacing: -1px; color: var(--text); line-height: 1;
}
.tp-hero__stat-label {
  font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .6px;
}
.tp-hero__stat-sep { width: 1px; height: 32px; background: var(--border2); flex-shrink: 0; }

.tp-hero__right { flex-shrink: 0; }
.tp-hero__cta-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; background: var(--surface);
  border: 1px solid var(--border2); border-radius: 18px; max-width: 380px;
  transition: border-color .2s, box-shadow .2s; box-shadow: var(--shadow-sm);
}
.tp-hero__cta-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.tp-hero__cta-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary-light);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); flex-shrink: 0;
}
.tp-hero__cta-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.tp-hero__cta-text strong { font-size: 13px; font-weight: 800; color: var(--text); }
.tp-hero__cta-text span  { font-size: 12px; color: var(--muted2); font-weight: 500; line-height: 1.4; }
.tp-hero__cta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 800; border-radius: 10px;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
  transition: filter .15s, transform .15s;
}
.tp-hero__cta-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

.tp-filters {
  position: sticky;
  top: var(--nav-h, 56px);
  z-index: 90;
  
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border2);
  transition: box-shadow .2s;
}
.tp-filters--sticky { box-shadow: var(--shadow); }
.tp-filters__inner {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 32px;
  overflow-x: auto; scrollbar-width: none;
  flex-wrap: wrap;
}
.tp-filters__inner::-webkit-scrollbar { display: none; }

.tp-search-wrap { position: relative; display: flex; align-items: center; flex-shrink: 0; }
.tp-search-wrap > svg {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px;
  color: var(--muted); pointer-events: none; flex-shrink: 0; z-index: 1;
}
.tp-search {
  background: var(--surface2); border: 1px solid var(--border2); border-radius: 10px;
  padding: 9px 36px 9px 33px;
  font-size: 13px; font-weight: 500; color: var(--text);
  outline: none; width: 220px;
  transition: border-color .15s, box-shadow .15s; font-family: inherit;
}
.tp-search::placeholder { color: var(--muted); }
.tp-search:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.tp-search__clear {
  position: absolute; right: 10px;
  background: var(--surface3); border: none; border-radius: 5px; padding: 3px;
  cursor: pointer; color: var(--muted2);
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.tp-search__clear:hover { background: var(--surface4); }

.tp-pills { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.tp-pills::-webkit-scrollbar { display: none; }
.tp-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 100px;
  border: 1px solid var(--border2); background: var(--surface2);
  font-size: 12px; font-weight: 700; color: var(--muted2);
  cursor: pointer; white-space: nowrap; transition: all .15s; font-family: inherit;
}
.tp-pill:hover { color: #222; background: #fff; }
.tp-pill--active {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 2px 12px color-mix(in srgb, var(--primary) 35%, transparent);
}
.tp-pill__cnt {
  font-size: 10px; font-weight: 800; background: var(--border2);
  padding: 1px 7px; border-radius: 10px; line-height: 1.6;
}
.tp-pill--active .tp-pill__cnt { background: rgba(255,255,255,.25); }
.tp-pill__img { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; flex-shrink: 0; }

.tp-recruit-filter { display: flex; align-items: center; flex-shrink: 0; }
.tp-recruit-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 8px;
  border: 1px solid var(--border2); background: transparent;
  font-size: 12px; font-weight: 700; color: var(--muted2);
  cursor: pointer; white-space: nowrap; transition: all .15s; font-family: inherit;
}
.tp-recruit-btn:hover { border-color: rgba(74,222,128,.4); color: #4ade80; background: rgba(74,222,128,.06); }
.tp-recruit-btn--active {
  background: rgba(74,222,128,.1); border-color: rgba(74,222,128,.4);
  color: #4ade80;
}

.tp-sort-wrap {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto; flex-shrink: 0;
}
.tp-sort-label {
  font-size: 11px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px; white-space: nowrap;
}
.tp-sort-pills {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.tp-sort-btn {
  padding: 6px 13px; border-radius: 8px;
  border: 1px solid var(--border2); background: transparent;
  font-size: 12px; font-weight: 600; color: var(--muted2);
  cursor: pointer; white-space: nowrap; transition: all .15s; font-family: inherit;
}
.tp-sort-btn:hover { border-color: var(--border3); color: var(--text); background: var(--surface2); }
.tp-sort-btn--active { background: var(--surface3); border-color: var(--border3); color: var(--text); }

.tp-results-bar {
  padding: 14px 32px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.tp-results-bar span[id="tpResultCount"] { color: var(--text2); font-weight: 800; }
.tp-results-bar__reset button {
  background: none; border: none; color: var(--primary);
  font-size: 12px; font-weight: 700; cursor: pointer; padding: 0;
  font-family: inherit; text-decoration: underline; text-underline-offset: 2px;
}

.tp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 0 32px 32px;
}

.tp-card {
  position: relative; background: var(--surface);
  border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s, transform .18s, box-shadow .2s;
  cursor: default; box-shadow: var(--shadow-sm);
}
.tp-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); }

.tp-card__head {
  position: relative; height: 100px; background: var(--surface2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-end; padding: 14px 16px; gap: 8px;
}
.tp-card__logo-wrap {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%); width: 64px; height: 64px;
}
.tp-card__logo { width: 100%; height: 100%; object-fit: contain; border-radius:50%; filter: drop-shadow(0 2px 8px rgba(0,0,0,.15)); }
.tp-card__logo-placeholder {
  width: 100%; height: 100%; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 900; color: #fff; letter-spacing: -1px;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.tp-card__game-chip {
  position: absolute; top: 10px; left: 12px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  background: var(--primary-light);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  color: var(--primary); padding: 3px 9px; border-radius: 100px;
}
.tp-card__country { position: absolute; top: 10px; right: 12px; font-size: 11px; color: var(--muted2); font-weight: 600; }
.tp-card__recruit-badge {
  position: absolute; bottom: 10px; right: 12px;
  font-size: 10px; font-weight: 800; letter-spacing: .3px;
  background: rgba(74,222,128,.12); border: 1px solid rgba(74,222,128,.3);
  color: #4ade80; padding: 2px 8px; border-radius: 999px;
}

.tp-card__body { padding: 16px 18px 12px; flex: 1; }
.tp-card__short { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 4px; }
.tp-card__name  { font-size: 17px; font-weight: 900; color: var(--text); margin: 0 0 8px; letter-spacing: -.3px; line-height: 1.2; }
.tp-card__desc  { font-size: 12px; color: var(--muted2); font-weight: 500; line-height: 1.5; margin: 0; }

.tp-card__stats {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 18px; border-top: 1px solid var(--border); flex-wrap: wrap;
}
.tp-card__stat { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted2); }
.tp-card__stat svg { opacity: .5; flex-shrink: 0; }

.tp-card__footer {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px 14px; border-top: 1px solid var(--border);
}
.tp-card__btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 9px; font-size: 12px; font-weight: 700;
  text-decoration: none; transition: all .15s; flex: 1; justify-content: center;
}
.tp-card__btn--ghost { background: var(--surface2); border: 1px solid var(--border2); color: var(--muted2); }
.tp-card__btn--ghost:hover { background: var(--surface3); border-color: var(--border3); color: var(--text); }
.tp-card__btn--primary {
  background: var(--primary); border: 1px solid transparent; color: #fff;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 30%, transparent);
}
.tp-card__btn--primary:hover { filter: brightness(1.08); transform: translateY(-1px); }

.tp-empty {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 60px 24px; color: var(--muted); text-align: center;
}
.tp-empty svg { opacity: .25; color: var(--muted); }
.tp-empty__title { font-size: 16px; font-weight: 800; color: var(--text2); }
.tp-empty__sub   { font-size: 13px; color: var(--muted2); font-weight: 500; }
.tp-empty__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 800; border-radius: 10px;
  text-decoration: none; border: none; cursor: pointer; margin-top: 4px;
  transition: filter .15s; font-family: inherit;
}
.tp-empty__btn:hover { filter: brightness(1.08); }

.tp-cta-banner {
  position: relative; margin: 8px 32px 0; border-radius: 20px;
  overflow: hidden; border: 1px solid var(--border2);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.tp-cta-banner__bg { position: absolute; inset: 0; z-index: 0; }
.tp-cta-banner__glow {
  position: absolute; top: -60px; left: -60px; width: 400px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--primary-light) 0%, transparent 70%);
  pointer-events: none;
}
.tp-cta-banner__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px; opacity: .5;
}
.tp-cta-banner__inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 28px 32px; flex-wrap: wrap;
}
.tp-cta-banner__left { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 0; }
.tp-cta-banner__icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--primary-light);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); flex-shrink: 0;
}
.tp-cta-banner__title { font-size: 18px; font-weight: 900; color: var(--text); margin: 0 0 5px; letter-spacing: -.3px; }
.tp-cta-banner__desc  { font-size: 13px; color: var(--muted2); margin: 0; font-weight: 500; line-height: 1.5; }
.tp-cta-banner__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.tp-cta-banner__btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px; border-radius: 11px; font-size: 13px; font-weight: 800;
  text-decoration: none; transition: all .18s; white-space: nowrap;
}
.tp-cta-banner__btn--primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--primary) 35%, transparent);
}
.tp-cta-banner__btn--primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.tp-cta-banner__btn--ghost { background: var(--surface2); border: 1px solid var(--border2); color: var(--text2); }
.tp-cta-banner__btn--ghost:hover { background: var(--surface3); border-color: var(--border3); color: var(--text); }

@media (max-width: 900px) {
  .tp-hero__inner    { padding: 28px 20px 24px; flex-direction: column; align-items: flex-start; }
  .tp-hero__right    { width: 100%; }
  .tp-hero__cta-card { max-width: 100%; }
  .tp-filters__inner { padding: 10px 20px; gap: 10px; }
  .tp-grid           { padding: 0 20px 24px; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .tp-cta-banner     { margin: 8px 20px 0; }
  .tp-cta-banner__inner { padding: 22px 20px; }
  .tp-results-bar    { padding: 12px 20px; }
  .tp-sort-wrap      { margin-left: 0; }
  .tp-sort-pills     { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .tp-hero__title { font-size: 30px; }
  .tp-grid        { grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 20px; }
  .tp-cta-banner__left    { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tp-cta-banner__actions { flex-direction: column; align-items: flex-start; width: 100%; }
  .tp-cta-banner__btn     { width: 100%; justify-content: center; }
  .tp-hero__stats { gap: 14px; }
}
@media (max-width: 400px) {
  .tp-grid { grid-template-columns: 1fr; }
}
