:root {
  --hero-gradient: linear-gradient(180deg, rgba(29, 29, 47, 0.9) 0%, rgba(8, 8, 18, 0.82) 100%);
  --panel-strong: rgba(19, 19, 28, 0.92);
  --accent: #f4ac1c;
  --accent-strong: #ffcf52;
  --border-soft: rgba(255, 255, 255, 0.08);
  --teal-accent: #3EA7AE;
  --teal-glow: rgba(62, 167, 174, 0.55);
}

.is-hidden {
  display: none !important;
}

.tops-page .site-header {
  position: static;
}

.tops-hero {
  background: var(--hero-gradient);
  padding: 96px 0 64px;
  position: relative;
  overflow: hidden;
}

.tops-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 207, 82, 0.14), transparent 55%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.hero-copy .eyebrow {
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 12px;
}

.hero-title {
  font-family: 'Lilita One', system-ui;
  font-size: clamp(48px, 5vw, 72px);
  letter-spacing: 0.05em;
  margin: 0;
  color: var(--accent-strong);
}

.hero-subtitle {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
}

.view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.toggle-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.toggle-btn.active {
  background: rgba(244, 172, 28, 0.2);
  color: #fff;
  transform: translateY(-1px);
}

.toggle-btn:focus-visible {
  outline: 2px solid rgba(244, 172, 28, 0.7);
  outline-offset: 2px;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  max-width: 480px;
  margin-left: auto;
}

.hero-art img {
  flex: 0 0 auto;
  width: clamp(180px, 20vw, 260px);
  height: auto;
  filter: drop-shadow(0 16px 35px rgba(0, 0, 0, 0.55));
  position: relative;
  z-index: 1;
}

.hero-art .hero-overlay {
  transform: translateY(20px);
  width: clamp(140px, 17vw, 200px);
  z-index: 0;
}

.hero-art-logos {
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.logo-burst {
  position: relative;
  width: clamp(180px, 28vw, 260px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(255, 207, 82, 0.45), rgba(15, 20, 32, 0.88));
  border-radius: 50%;
  border: 1px solid rgba(255, 207, 82, 0.35);
  box-shadow: 0 28px 54px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.logo-burst img {
  width: 64%;
  height: auto;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.55));
  z-index: 1;
}

.logo-burst .logo-ring {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 207, 82, 0.22), transparent 65%);
  animation: rotate-ring 16s linear infinite;
}

.hero-art-caption {
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.tops-page .art-holder {
  margin-bottom: 16px;
}

@keyframes rotate-ring {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.top-all-time {
  padding: 72px 0 56px;
  background: rgba(9, 9, 16, 0.82);
}

.team-top {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, rgba(4, 20, 24, 0.8) 0%, rgba(5, 13, 18, 0.86) 100%);
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  font-family: 'Lilita One', system-ui;
  font-size: clamp(28px, 3vw, 40px);
  margin: 0;
  color: #fff;
}

.section-subtitle {
  margin-top: 8px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.62);
}

.metric-label {
  color: var(--teal-accent);
  font-weight: 600;
  margin-left: 6px;
}

.filters-section {
  padding: 56px 0;
  background: rgba(13, 13, 23, 0.86);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.team-filters {
  background: linear-gradient(180deg, rgba(6, 22, 27, 0.82) 0%, rgba(6, 16, 19, 0.85) 100%);
  border-top: 1px solid rgba(62, 167, 174, 0.18);
  border-bottom: 1px solid rgba(62, 167, 174, 0.18);
}

.filter-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 32px;
  background: var(--panel-strong);
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35);
}

.team-filters .filter-form {
  background: rgba(9, 22, 24, 0.92);
  border: 1px solid rgba(62, 167, 174, 0.35);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 8px;
}

.form-group select,
.form-group input {
  background: rgba(10, 10, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group select:focus,
.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(244, 172, 28, 0.2);
  outline: none;
}

.form-group.search-group {
  grid-column: span 3;
}

.form-group.search-group input {
  width: 100%;
}

.filters-actions {
  grid-column: span 3;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  align-items: center;
}

.btn-primary {
  background: var(--accent);
  color: #080808;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(244, 172, 28, 0.25);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 11px 24px;
  color: #fff;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn-ghost:hover {
  border-color: #fff;
  color: var(--accent-strong);
  transform: translateY(-2px);
}

.ranking-section {
  padding: 64px 0 96px;
  background: linear-gradient(180deg, rgba(8, 8, 17, 0.85) 0%, rgba(15, 15, 25, 0.88) 100%);
}

.team-ranking {
  background: linear-gradient(180deg, rgba(5, 13, 18, 0.82) 0%, rgba(7, 31, 35, 0.86) 100%);
}

.ranking-list {
  min-height: 280px;
}

.ranking-cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.mini-card {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(62, 167, 174, 0.22) 0%, rgba(10, 22, 24, 0.92) 70%);
  border: 1px solid rgba(62, 167, 174, 0.4);
  border-radius: 18px;
  padding: 52px 18px 18px;
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #f1fbfb;
}

.mini-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(62, 167, 174, 0.2), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 44px rgba(0, 0, 0, 0.55);
}

.mini-card .badge-rank {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 15px;
  border-radius: 50%;
  background: rgba(62, 167, 174, 0.24);
  color: var(--teal-accent);
  border: 1px solid rgba(62, 167, 174, 0.6);
}

.mini-card h4 {
  font-size: 18px;
  margin: 0 0 12px;
  color: #f4f7f8;
}

.mini-region {
  margin: 0 0 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

.mini-country {
  margin: 0 0 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
}

.mini-card .stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.mini-card .stats .stat-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(14, 20, 24, 0.65);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.mini-card .stats dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
}

.mini-card .stats dd {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
}

.mini-art {
  width: 100%;
  min-height: 0;
  background: rgba(62, 167, 174, 0.08);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(62, 167, 174, 0.25);
  overflow: visible;
}

.mini-art img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.tops-page .mini-art img,
.tops-page .art-holder img {
  width: min(200px, 100%);
  height: auto;
}

.stats .stat-row.stat-highlight {
  border-color: rgba(62, 167, 174, 0.8);
  background: rgba(62, 167, 174, 0.18);
  box-shadow: 0 0 14px rgba(62, 167, 174, 0.35);
}

.earnings-display {
  margin: 14px 0 18px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(62, 167, 174, 0.12);
  border: 1px solid rgba(62, 167, 174, 0.35);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.earnings-display--mini {
  margin: 12px 0 14px;
  padding: 8px 12px;
  border-radius: 12px;
  gap: 8px;
}

.earnings-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

.earnings-display--mini .earnings-label {
  font-size: 11px;
  letter-spacing: 0.06em;
}

.earnings-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--teal-accent);
}

.earnings-display--mini .earnings-value {
  font-size: 16px;
}

.earnings-display--highlight {
  border-color: rgba(244, 172, 28, 0.55);
  background: rgba(244, 172, 28, 0.12);
  box-shadow: 0 0 18px rgba(244, 172, 28, 0.22);
}

.earnings-display--highlight .earnings-value {
  color: var(--accent-strong);
}

.player-card .earnings-display {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: rgba(14, 26, 34, 0.82);
  border: 1px solid rgba(62, 167, 174, 0.35);
  box-shadow: 0 8px 24px rgba(7, 12, 20, 0.35);
  padding: 14px 16px;
  margin: 18px 0 0;
}

.player-card .earnings-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(220, 237, 240, 0.78);
}

.player-card .earnings-value {
  font-size: 22px;
  color: #dff4f5;
  text-shadow: none;
}

.player-card .earnings-display--highlight {
  border-color: rgba(244, 172, 28, 0.45);
  background: rgba(244, 172, 28, 0.18);
  box-shadow: 0 12px 28px rgba(244, 172, 28, 0.22);
}

.player-card .earnings-display--highlight .earnings-value {
  color: #ffe9b1;
}

.stats .stat-row.stat-highlight dt,
.stats .stat-row.stat-highlight dd {
  color: var(--teal-accent);
}

.empty-state {
  padding: 28px;
  border-radius: 16px;
  background: rgba(18, 18, 30, 0.88);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
}

@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin: 20px auto 0;
  }

  .hero-art {
    justify-content: center;
    margin: 24px auto 0;
    max-width: 100%;
  }

  .filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 24px;
  }

  .form-group.search-group {
    grid-column: span 2;
  }

  .filters-actions {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .tops-hero {
    padding: 72px 0 48px;
  }

  .hero-title {
    font-size: clamp(36px, 11vw, 52px);
  }

  .hero-art {
    gap: 16px;
    flex-direction: row;
  }

  .hero-art img {
    width: clamp(140px, 45vw, 200px);
  }

  .view-toggle {
    margin-top: 20px;
  }

  .filter-form {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .form-group.search-group {
    grid-column: 1;
  }

  .filters-actions {
    grid-column: 1;
    flex-direction: column;
    align-items: stretch;
  }

  .filters-actions .btn-primary,
  .filters-actions .btn-ghost {
    width: 100%;
    text-align: center;
  }

  .mini-card .stats {
    grid-template-columns: 1fr;
  }
}
