/* =========================
  SHARED STYLES
========================= */
:root {
  --purple-primary: #9333EA;
  --purple-secondary: #7C3AED;
  --purple-light: #C084FC;
  --bg-overlay: rgba(255, 255, 255, 0.05);
  --border-purple: rgba(147, 51, 234, 0.3);
  --transition-smooth: all 0.3s ease;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes slideShine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

@keyframes gradientFlow {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

@keyframes avatarShine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

@keyframes avatarPulse {
  0%, 100% { box-shadow: 0 0 60px rgba(147, 51, 234, 0.4); }
  50% { box-shadow: 0 0 80px rgba(147, 51, 234, 0.6); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =========================
  HERO SEARCH
========================= */
.player-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 40px 60px;
  min-height: 100vh;
}

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 56px;
  padding: 60px 40px 40px;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.1), transparent);
  filter: blur(60px);
  pointer-events: none;
  animation: headerGlow 4s ease-in-out infinite;
}

@keyframes headerGlow {
  0%, 100% {
    opacity: 0.5;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translateX(-50%) scale(1.1);
  }
}

.page-header-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease;
}

.page-title {
  font-size: 52px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #9333EA, #C084FC, #9333EA);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease-in-out infinite;
  letter-spacing: -0.01em;
}

.page-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

@keyframes shimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Search Bar */
.search-bar-container {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  animation: fadeInUp 0.6s ease 0.2s backwards;
}

.search-bar {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(147, 51, 234, 0.2);
  border-radius: 60px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.search-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.search-bar:focus-within::before {
  opacity: 1;
}

.search-bar:focus-within {
  border-color: rgba(147, 51, 234, 0.4);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 30px rgba(147, 51, 234, 0.2);
}

.search-bar .search-icon {
  font-size: 20px;
  flex-shrink: 0;
  opacity: 0.6;
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
  font-weight: 400;
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Controls Bar */
.controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 56px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(147, 51, 234, 0.15);
  border-radius: 20px;
  gap: 28px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s backwards;
  position: relative;
  overflow: hidden;
}

.controls-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.05), transparent);
  animation: slideShine 4s infinite;
}

@keyframes slideShine {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 100%;
  }
}

.stats-counter {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

.counter-icon {
  font-size: 24px;
  opacity: 0.8;
}

.counter-text {
  font-weight: 500;
}

.counter-text strong {
  color: #C084FC;
  font-weight: 700;
  font-size: 18px;
}

.controls-right {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-group label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  padding-left: 4px;
}

.filter-select {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(147, 51, 234, 0.2);
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
}

.filter-select:hover {
  background: rgba(147, 51, 234, 0.1);
  border-color: rgba(147, 51, 234, 0.3);
  transform: translateY(-2px);
}

.filter-select:focus {
  border-color: rgba(147, 51, 234, 0.4);
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.15);
}

.filter-select option {
  background: #1a1d35;
  color: #fff;
  padding: 10px;
}

/* Featured Section */
.featured-section {
  margin-bottom: 64px;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease 0.4s backwards;
}

.featured-carousel-container {
  position: relative;
  overflow: visible;
  padding: 16px 0 8px;
}

.featured-carousel {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: auto; /* CRITICAL: no smooth scroll for programmatic scrolling */
  user-select: none;
}

.featured-carousel::-webkit-scrollbar {
  display: none;
}

.featured-carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 6px 0 10px;
  will-change: auto;
}

.featured-carousel-container .carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(147, 51, 234, 0.5);
  background: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.featured-carousel-container .carousel-nav-btn.prev {
  left: -4px;
}

.featured-carousel-container .carousel-nav-btn.next {
  right: -4px;
}

.featured-carousel-container .carousel-nav-btn:hover {
  border-color: rgba(147, 51, 234, 0.8);
  background: rgba(147, 51, 234, 0.2);
  box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.featured-carousel-container .carousel-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.player-grid {
  display: grid;
  --rt-card-w: 214px;
  grid-template-columns: repeat(5, var(--rt-card-w));
  justify-content: center;
  gap: 14px;
  animation: fadeInUp 0.6s ease 0.5s backwards;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: rgba(255, 255, 255, 0.5);
  animation: fadeIn 0.6s ease;
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state h3 {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  font-weight: 600;
}

.empty-state p {
  font-size: 15px;
  font-weight: 400;
}

.search-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.search-empty-state h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.2rem;
}

.search-empty-state p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes countPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .player-grid {
    --rt-card-w: 198px;
  }

  .featured-card.rt-player-card {
    width: var(--rt-card-w);
  }
  
  .player-grid {
    grid-template-columns: repeat(4, var(--rt-card-w));
  }
}

@media (max-width: 768px) {
  .player-page {
    padding: 20px 20px 40px;
  }

  .page-header {
    padding: 40px 20px 30px;
    margin-bottom: 40px;
  }

  .page-title {
    font-size: 38px;
  }

  .page-subtitle {
    font-size: 15px;
  }

  .search-bar {
    padding: 12px 20px;
  }

  .controls-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px;
  }

  .controls-right {
    width: 100%;
    flex-direction: column;
  }

  .filter-select {
    width: 100%;
  }

  .featured-carousel-container {
    padding: 12px 0 8px;
  }

  .featured-card.rt-player-card {
    width: var(--rt-card-w);
  }

  .rt-card-top {
    min-height: 170px;
  }

  .rt-card-photo {
    height: 160px;
  }

  .player-grid {
    --rt-card-w: 178px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .player-grid .rt-player-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .featured-carousel-container .carousel-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 32px;
  }

  .player-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-grid .rt-player-card {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }
}

/* =========================
  PLAYER CARDS - PURPLE VARIANT (USER FINAL)
========================= */

:root {
  --rt-card-w: 214px;
  --card-primary: #9333EA;
  --card-secondary: #7C3AED;
  --card-light: #C084FC;
  --card-glow: rgba(147, 51, 234, 0.5);
}

.rt-player-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #f8fafc;
  background: linear-gradient(145deg, #1a1a2e 0%, #16162a 100%);
  border: 2px solid var(--card-primary);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--card-glow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rt-player-card::after {
  display: none;
}

.rt-player-card::before {
  display: none;
}

.rt-player-card .card-shine {
  display: none;
}

.featured-card.rt-player-card {
  width: var(--rt-card-w);
  flex-shrink: 0;
}

.player-card.rt-player-card {
  width: 100%;
  margin: 0;
  padding: 0;
}

.rt-player-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.56), 0 0 24px var(--card-glow);
}

.featured-card.paused,
.carousel-card.paused {
  transform: translateY(-6px) !important;
  border-color: rgba(192, 132, 252, 0.95) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.56), 0 0 30px rgba(147, 51, 234, 0.62) !important;
}

.rt-card-top {
  position: relative;
  min-height: 220px;
  background: linear-gradient(135deg, var(--card-glow) 0%, rgba(124, 58, 237, 0.1) 100%);
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

.rt-card-top::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -56%) scale(var(--team-logo-scale, 1));
  width: 195px;
  height: 195px;
  background: var(--team-logo-url, none) center/contain no-repeat;
  opacity: 0.18;
  z-index: 0;
  filter: brightness(1.5);
}

.rt-card-top::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 96px;
  background: linear-gradient(to bottom, transparent, rgba(26, 26, 46, 0.95));
  z-index: 1;
}

.krafton-rank-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 3;
}

.krafton-rank-number {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  display: block;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 20px var(--card-glow);
  filter: drop-shadow(0 0 10px var(--card-glow));
}

.krafton-rank-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.rt-card-photo {
  width: 100%;
  height: 220px;
  margin: 0;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
}

.rt-card-photo img {
  position: relative;
  z-index: 2;
  width: auto;
  height: 100%;
  max-width: 85%;
  object-fit: contain;
  object-position: center bottom;
  filter: none;
  transition: transform 0.3s ease;
  pointer-events: none;
  user-select: none;
}

.rt-player-card:hover .rt-card-photo img {
  transform: scale(1.05);
}

.rt-card-photo .avatar-initial {
  font-size: 64px;
  font-weight: 900;
  color: #fff;
  text-shadow: none;
}

.rt-card-body {
  padding: 16px 14px 18px;
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 22, 42, 1) 100%);
  border-radius: 0 0 24px 24px;
  position: relative;
  z-index: 2;
}

.rt-card-body-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-primary), transparent);
  box-shadow: none;
}

.rt-card-lines {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.rt-card-ign,
.rt-card-name,
.rt-card-role,
.rt-card-team {
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rt-card-ign {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
  text-shadow: none;
  filter: none;
}

.rt-card-name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.rt-card-role {
  font-size: 11px;
  font-weight: 700;
  color: #ede9fe;
}

.rt-card-team {
  font-size: 12px;
  font-weight: 700;
  color: var(--card-light);
}

.team-socials {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
}

.social-icon-mini {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, filter 0.2s ease;
  opacity: 0.8;
  text-decoration: none;
  cursor: pointer;
}

.social-icon-mini:hover {
  transform: scale(1.2);
  opacity: 1;
  filter: drop-shadow(0 0 4px var(--card-glow));
}

.social-icon-mini svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.social-icon-mini.youtube {
  color: #FF0000;
}

.social-icon-mini.instagram {
  color: #E4405F;
}

.rt-card-view {
  margin: 12px auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 10px 24px;
  border-radius: 999px;
  border: 2px solid var(--card-primary);
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.rt-card-view::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--card-primary), var(--card-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 999px;
}

.rt-card-view span {
  position: relative;
  z-index: 1;
}

.rt-card-view:hover {
  transform: translateY(-2px);
  border-color: var(--card-light);
  box-shadow: 0 6px 20px var(--card-glow);
}

.rt-card-view:hover::before {
  opacity: 1;
}

@media (max-width: 768px) {
  .rt-card-top {
    min-height: 200px;
  }

  .rt-card-top::before {
    width: 160px;
    height: 160px;
    opacity: 0.16;
  }

  .rt-card-photo {
    height: 200px;
  }

  .krafton-rank-number {
    font-size: 28px;
  }

  .rt-card-ign {
    font-size: 15px;
  }

  .rt-card-name {
    font-size: 11px;
  }

  .rt-card-role {
    font-size: 10px;
  }

  .rt-card-team {
    font-size: 11px;
  }

  .rt-card-view {
    display: flex;
    width: calc(100% - 24px);
    min-width: 0;
    padding: 8px 14px;
    margin: 10px auto 0;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .rt-card-top {
    min-height: 180px;
  }

  .rt-card-top::before {
    width: 136px;
    height: 136px;
    opacity: 0.15;
  }

  .rt-card-photo {
    height: 180px;
  }

  .krafton-rank-number {
    font-size: 24px;
  }

  .rt-card-view {
    width: calc(100% - 18px);
    padding: 7px 12px;
    font-size: 11px;
  }

  .rt-card-ign {
    font-size: 14px;
  }

  .rt-card-name {
    font-size: 10px;
  }

  .rt-card-role {
    font-size: 9px;
  }

  .rt-card-team {
    font-size: 10px;
  }
}

/* =========================
  UNIFIED HERO SETTINGS (PLAYERS)
========================= */
.players-list-page {
  background: #000;
  padding-top: 0;
}

.players-list-page .page-surface {
  background: #000;
}

.players-list-page .nav:not(.scrolled) {
  background: transparent !important;
  backdrop-filter: none;
  border-bottom: none;
}

.players-list-page .nav.scrolled {
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 900px) {
  .players-list-page .nav:not(.scrolled) {
    background: rgba(10, 10, 20, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  }
}

/* Players list page hero */
.players-list-page .page-header {
  position: relative;
  min-height: 78vh;
  min-height: 78svh;
  padding: clamp(7.5rem, 11vh, 9rem) 40px clamp(2rem, 5vh, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
  margin-bottom: 56px;
}

@media (min-width: 769px) {
  .players-list-page .page-header {
    min-height: 58vh;
    min-height: 58svh;
    padding: 7.8rem 40px 1rem;
    margin-bottom: 16px;
    justify-content: flex-start;
  }

  .players-list-page .page-header-content {
    width: min(100%, 1200px);
    max-width: 1200px;
    padding: 1rem 1rem 0;
    transform: none;
  }

  .players-list-page .players-hero-title {
    margin-bottom: 1.55rem;
    transform: none;
  }

  .players-list-page .players-hero-subtitle {
    margin: 0 0 2.35rem;
  }

  .players-list-page .players-search-wrap {
    margin-top: 0;
    width: min(1100px, 96%);
  }
}

.players-list-page .players-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.players-list-page .page-header-content,
.players-list-page .search-bar-container {
  position: relative;
  z-index: 1;
}

.players-list-page .page-header-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  text-align: center;
  transform: translateY(-1.5rem);
}

.players-list-page .players-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 1.25rem;
  transform: translateY(-14px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.players-list-page .title-bar {
  display: inline-block;
  width: 4px;
  height: 40px;
  background: linear-gradient(to bottom, #8b5cf6, #ec4899);
  border-radius: 2px;
}

.players-list-page .players-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 2.5rem;
}

.players-list-page .players-search-wrap {
  width: min(1100px, 96%);
  margin: 1rem auto 0;
  position: relative;
}

@media (min-width: 769px) and (max-width: 1440px) {
  .players-list-page .page-header {
    padding-top: 7.6rem;
    padding-bottom: 0.95rem;
  }

  .players-list-page .page-header-content {
    width: min(100%, 1080px);
  }

}

@media (min-width: 769px) and (max-height: 860px) {
  .players-list-page .page-header {
    min-height: clamp(440px, 58svh, 520px);
    padding-top: 7.1rem;
    padding-bottom: 0.85rem;
  }

  .players-list-page .page-header-content {
    padding-top: 0.8rem;
  }

  .players-list-page .players-hero-title {
    font-size: clamp(1.95rem, 4vw, 2.45rem);
    margin-bottom: 1.25rem;
  }

  .players-list-page .players-hero-subtitle {
    margin-bottom: 1.9rem;
  }
}

.players-list-page #poda {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.players-list-page .white,
.players-list-page .border,
.players-list-page .darkBorderBg,
.players-list-page .glow {
  max-height: 102px;
  max-width: 578px;
  height: 100%;
  width: 100%;
  position: absolute;
  overflow: hidden;
  z-index: -1;
  border-radius: 999px;
  filter: blur(3px);
  pointer-events: none;
}

.players-list-page .input {
  background-color: #010201;
  border: none;
  width: 560px;
  height: 72px;
  border-radius: 999px;
  color: #fff;
  padding: 0 62px 0 74px;
  font-size: 20px;
}

.players-list-page .input::placeholder {
  color: #c0b9c0;
}

.players-list-page .input:focus {
  outline: none;
}

.players-list-page .white {
  max-height: 80px;
  max-width: 566px;
  border-radius: 999px;
  filter: blur(2px);
}

.players-list-page .white::before {
  content: "";
  z-index: -2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(83deg);
  position: absolute;
  width: 600px;
  height: 600px;
  background-repeat: no-repeat;
  background-position: 0 0;
  filter: brightness(2);
  background-image: conic-gradient(
    rgba(0, 0, 0, 0) 0%,
    #a099d8,
    rgba(0, 0, 0, 0) 8%,
    rgba(0, 0, 0, 0) 50%,
    #9f7aea,
    rgba(0, 0, 0, 0) 58%
  );
  transition: all 2s;
}

.players-list-page .border {
  max-height: 76px;
  max-width: 562px;
  border-radius: 999px;
  filter: blur(0.5px);
}

.players-list-page .border::before {
  content: "";
  z-index: -2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(70deg);
  position: absolute;
  width: 600px;
  height: 600px;
  filter: brightness(1.8);
  background-repeat: no-repeat;
  background-position: 0 0;
  background-image: conic-gradient(
    #1c191c,
    #402fb5 5%,
    #1c191c 14%,
    #1c191c 50%,
    #a855f7 60%,
    #1c191c 64%
  );
  transition: all 2s;
}

.players-list-page .darkBorderBg {
  max-height: 82px;
  max-width: 572px;
}

.players-list-page .darkBorderBg::before {
  content: "";
  z-index: -2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(82deg);
  position: absolute;
  width: 600px;
  height: 600px;
  filter: brightness(1.6);
  background-repeat: no-repeat;
  background-position: 0 0;
  background-image: conic-gradient(
    rgba(0, 0, 0, 0),
    #312e81,
    rgba(0, 0, 0, 0) 10%,
    rgba(0, 0, 0, 0) 50%,
    #7e22ce,
    rgba(0, 0, 0, 0) 60%
  );
  transition: all 2s;
}

.players-list-page #poda:hover > .darkBorderBg::before {
  transform: translate(-50%, -50%) rotate(-98deg);
}

.players-list-page #poda:hover > .glow::before {
  transform: translate(-50%, -50%) rotate(-120deg);
}

.players-list-page #poda:hover > .white::before {
  transform: translate(-50%, -50%) rotate(-97deg);
}

.players-list-page #poda:hover > .border::before {
  transform: translate(-50%, -50%) rotate(-110deg);
}

.players-list-page #poda:focus-within > .darkBorderBg::before {
  transform: translate(-50%, -50%) rotate(442deg);
  transition: all 4s;
}

.players-list-page #poda:focus-within > .glow::before {
  transform: translate(-50%, -50%) rotate(420deg);
  transition: all 4s;
}

.players-list-page #poda:focus-within > .white::before {
  transform: translate(-50%, -50%) rotate(443deg);
  transition: all 4s;
}

.players-list-page #poda:focus-within > .border::before {
  transform: translate(-50%, -50%) rotate(430deg);
  transition: all 4s;
}

.players-list-page .glow {
  overflow: hidden;
  filter: blur(30px);
  opacity: 0.72;
  max-height: 170px;
  max-width: 620px;
}

.players-list-page .glow::before {
  content: "";
  z-index: -2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(60deg);
  position: absolute;
  width: 999px;
  height: 999px;
  background-repeat: no-repeat;
  background-position: 0 0;
  background-image: conic-gradient(
    #000,
    #402fb5 5%,
    #000 38%,
    #000 50%,
    #a855f7 60%,
    #000 87%
  );
  transition: all 2s;
}

.players-list-page #main {
  position: relative;
  width: min(560px, 100%);
  margin: 0 auto;
}

.players-list-page #search-icon {
  position: absolute;
  left: 24px;
  top: 22px;
  z-index: 2;
  pointer-events: none;
}

.players-list-page .search-clear-btn {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.players-list-page .search-clear-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.players-list-page .search-clear-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .players-list-page .page-header,
  .players-list-page .page-header-content,
  .players-list-page .players-hero-subtitle {
    transition: all 0.25s ease;
  }

  .players-list-page.players-search-active .page-header {
    min-height: 56vh;
    padding-bottom: 0.75rem;
  }

  .players-list-page.players-search-active .page-header-content {
    padding-top: 1rem;
  }

  .players-list-page.players-search-active .players-hero-subtitle {
    margin: 0 0 1rem;
  }

  .players-list-page .page-header {
    min-height: 55vh;
    padding: 7rem 1rem 2.5rem;
    margin-bottom: 1rem;
    display: block;
    overflow: hidden;
  }

  .players-list-page .page-header-content {
    transform: none;
    padding: 1.85rem 0 0;
    max-width: 1200px;
  }

  .players-list-page .players-hero-subtitle {
    margin: 0 0 2rem;
  }

  .players-list-page .players-search-wrap {
    margin-top: 0.7rem;
  }

  .players-list-page .title-bar {
    height: 32px;
  }

  .players-list-page #main {
    width: min(560px, 92vw);
    margin: 0 auto;
    overflow: visible;
  }

  .players-list-page .input {
    width: 100%;
    height: 64px;
    padding: 0 56px 0 66px;
    font-size: 16px;
  }

  .players-list-page #search-icon {
    left: 24px;
    top: 18px;
  }

  .players-list-page #search-icon svg {
    width: 24px;
    height: 24px;
  }
}

@media (min-width: 1500px) {
  .player-page {
    max-width: 1600px;
    padding: 48px 56px 72px;
  }

  .players-list-page .page-header {
    min-height: 58svh;
    padding: 8rem 56px 1rem;
    margin-bottom: 16px;
  }

  .players-list-page .page-header-content {
    width: min(100%, 1440px);
    max-width: 1440px;
    padding-top: 1rem;
  }

  .players-list-page .players-hero-title {
    margin-bottom: 1.25rem;
  }

  .players-list-page .players-search-wrap {
    width: min(1240px, 96%);
  }

  .player-grid {
    --rt-card-w: 220px;
    grid-template-columns: repeat(6, var(--rt-card-w));
    gap: 18px;
  }
}
