html {
  background: #020617;
}

body {
  background-color: #020617;
}
html,
body {
  margin: 0;
  padding: 0;
  background:
  linear-gradient(rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.9)),
  url("hero-bg.jpg");

background-size: cover;
background-position: center;
background-attachment: fixed;
  min-height: 100%;
}

body {
  overflow-x: hidden;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* GLOBAL */

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95)),
    url("hero-bg.jpg");

  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  color: white;
  font-family: Arial, sans-serif;
  padding: 20px;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

button {
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: #38bdf8;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #38bdf8;
}

/* NAVBAR */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 18px 40px;
  margin-bottom: 20px;

  background: rgba(5, 10, 25, 0.55);
  backdrop-filter: blur(14px);

  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;

  position: sticky;
  top: 12px;
  z-index: 1000;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

nav li {
  cursor: pointer;
  transition: 0.3s;
}

nav li:hover {
  color: #38bdf8;
}

nav a {
  color: white;
  text-decoration: none;
}

/* HERO */

.hero {
  min-height: 620px;
  margin-bottom: 50px;
  padding: 90px 48px;
  border-radius: 24px;

  background:
    linear-gradient(rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.85)),
    url("hero-bg.jpg");

  background-size: cover;
  background-position: center;
  text-align: left;

  display: flex;
  align-items: center;
}

.hero h1 {
  font-size: 5rem;
  color: #38bdf8;
  margin-bottom: 20px;
  text-shadow: 0 0 20px #38bdf8;
}

.hero p {
  font-size: 1.2rem;
  color: #cbd5e1;
}

/* SEARCH */

.search-container {
  display: flex; 
  justify-content: center; 
  align-items: center; 
  gap: 0px; 

  margin-top: 20px;
  margin-bottom: 40px;
}

.search-container input {
  width: 380px;
  padding: 16px 20px;

  border-radius: 12px;
  border: 1px solid rgba(0, 255, 255, 0.4);

  background: rgba(255,255,255,0.12);
  color: white;

  font-size: 16px;

  backdrop-filter: blur(10px);
  outline: none;

  box-shadow: 0 0 12px rgba(0, 255, 255, 0.35);
}

.search-container input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-container button {
  padding: 16px 24px;
  border-radius: 12px;
  border: none;
  background: #4ddfff;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.autocomplete-box {
  display: none;
  position: absolute;
  margin-top: 55px;
  width: 240px;
  background: rgba(0,0,0,0.85);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,255,255,0.25);
  z-index: 999;
}

.autocomplete-item {
  padding: 12px 14px;
  color: white;
  cursor: pointer;
}

.autocomplete-item:hover {
  background: rgba(0,255,255,0.18);
}

/* CARDS */

.card-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.card {
  background: rgba(10, 15, 35, 0.55);
  backdrop-filter: blur(12px);

  width: 300px;
  padding: 20px;

  border-radius: 15px;
  border: 1px solid rgba(56, 189, 248, 0.35);

  box-shadow: 0 8px 40px rgba(0,0,0,0.45);

  cursor: pointer;
  position: relative;
  overflow: hidden;

  transition: 0.3s;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px #38bdf8;
}

.card h2 {
  color: #38bdf8;
  margin-bottom: 10px;
}

.card p {
  margin-bottom: 8px;
}

/* MODAL */

.modal {
  display: none;

  position: fixed;
  inset: 0;

  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.7);

  justify-content: center;
  align-items: center;

  z-index: 1000;

  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: rgba(20, 20, 40, 0.95);

  padding: 30px;
  border-radius: 20px;

  width: 300px;

  text-align: center;
  color: white;

  box-shadow: 0 0 25px #00e5ff;

  position: relative;

  animation: zoomIn 0.3s ease;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;

  font-size: 28px;
  cursor: pointer;

  color: #00e5ff;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* LEADERBOARD */

.leaderboard {
  max-width: 800px;
  margin: auto;
}

.leaderboard h2 {
  margin-bottom: 20px;
  text-align: center;
}

table {
  width: 100%;
  border-collapse: collapse;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);

  border-radius: 10px;
  overflow: hidden;
}

th,
td {
  padding: 15px;
  text-align: left;
}

th {
  background-color: #334155;
}

tr:nth-child(even) {
  background-color: rgba(51,65,85,0.7);
}

tr {
  transition: 0.3s;
}

tr:hover {
  background: rgba(56, 189, 248, 0.2);
}

/* PLAYER STATS */

#playerStats {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

#playerStats .card {
  max-width: 400px;
  width: 100%;
  text-align: center;
  padding: 25px;
  margin-left: auto;
  margin-right: auto;
}

#playerStats h2 {
  color: #38bdf8;
  margin-bottom: 15px;
}

#playerStats p {
  margin: 10px 0;
  font-size: 18px;
}

.player-image {
  width: 120px;
  margin-bottom: 15px;
}

/* NEWS */

.news-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.news-section .card {
  max-width: 350px;
}

.news-section a {
  text-decoration: none;
  color: white;
}

.news-section a:hover {
  opacity: 0.9;
}

#newsContainer {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px;
}

#newsContainer .card {
  min-width: 250px;
  flex-shrink: 0;
}

#newsContainer::-webkit-scrollbar {
  display: none;
}

/* ITEM SHOP */

#itemShopContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 22px;
  width: 90%;
  margin: 40px auto;
}

.shop-card,
#itemShopContainer .card {
  background: rgba(20, 25, 45, 0.88);
  border: 1px solid rgba(102, 255, 255, 0.25);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  color: white;
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.12);
  transition: 0.25s ease;

  min-height: 360px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.shop-card:hover,
#itemShopContainer .card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 0 28px rgba(0, 255, 255, 0.45);
}

.shop-image {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 12px;
}

#itemShopContainer .card h3 {
  font-size: 16px;
  line-height: 1.3;
  height: 60px;
  overflow: hidden;
  margin: 8px 0;
}

#itemShopContainer .card p {
  color: #66ffff;
  font-weight: bold;
  margin-top: auto;
}

#itemShopContainer .card img {
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 8px;
}

.no-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
}

.shop-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 25px auto;
}

.shop-filters button {
  padding: 10px 18px;
  border: none;
  border-radius: 20px;
  background: rgba(0, 255, 255, 0.2);
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.shop-filters button:hover {
  background: #66ffff;
  color: black;
}

.featured-item {
  width: 90%;
  margin: 30px auto;
  padding: 30px;
  border-radius: 25px;
  background: linear-gradient(135deg, rgba(0,255,255,0.22), rgba(128,0,255,0.25));
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  box-shadow: 0 0 30px rgba(0,255,255,0.25);
}

.featured-label {
  color: #66ffff;
  font-weight: bold;
  letter-spacing: 2px;
}

.featured-item h2 {
  font-size: 36px;
  margin: 10px 0;
}

.featured-item img {
  max-height: 260px;
  max-width: 45%;
  object-fit: contain;
}

.shop-countdown {
  width: fit-content;
  margin: 20px auto;
  padding: 12px 22px;
  border-radius: 25px;
  color: white;
  font-weight: bold;
  background: rgba(0, 255, 255, 0.18);
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.25);
}

/* TOURNAMENTS */

.tournament-table {
  width: 90%;
  margin: 30px auto;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  overflow: hidden;
}

.tournament-table th,
.tournament-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
}

.tournament-table th {
  background: rgba(0, 255, 255, 0.25);
  color: #66ffff;
}

.tournament-table tr {
  transition: 0.2s ease;
  cursor: pointer;
}

.tournament-table tr:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.01);
}

.status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.live {
  background: #00ff88;
  color: black;
  box-shadow: 0 0 12px #00ff88;
}

.upcoming {
  background: #00ccff;
  color: black;
}

.finished {
  background: #777;
  color: white;
}

.featured-tournament {
  width: 90%;
  margin: 30px auto;
  padding: 35px;
  border-radius: 20px;
  text-align: center;
  color: white;
  background: linear-gradient(135deg, rgba(0,255,255,0.2), rgba(128,0,255,0.25));
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.25);
}

.featured-tournament h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.featured-status {
  color: #00ff88;
  font-weight: bold;
  text-shadow: 0 0 10px #00ff88;
}

.featured-tournament a,
.tournament-table a {
  color: #66ffff;
  font-weight: bold;
  text-decoration: none;
}

/* COMPARE PAGE */

.compare-page {
  width: 95%;
  margin: 40px auto;
  color: white;
  text-align: center;
  background: #07111f;
  min-height: 100vh;
  padding-bottom: 80px;
}

.compare-search {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.compare-search input {
  padding: 14px;
  width: 240px;
  border: none;
  border-radius: 12px;
  background: rgba(255,255,255,0.9);
  color: black;
}

.compare-search button {
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  background: #66ffff;
  color: black;
  font-weight: bold;
  cursor: pointer;
}

#compareResults {
  width: 100%;
  margin: 60px auto 40px auto;
  display: flex;
  justify-content: center;
}

.compare-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(180px, 220px) minmax(280px, 360px);
  gap: 25px;
  justify-content: center;
  align-items: start;

  width: min(100%, 1050px);
  margin: 0 auto;
}

.compare-card {
  width: 100%;
  min-height: 620px;
  padding: 35px;
  border-radius: 22px;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 20px rgba(0,255,255,0.15);
}

.winner-card {
  width: 100%;
  min-height: 260px;
  margin-top: 170px;
  padding: 35px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.08);
  text-align: center;
  box-shadow: 0 0 20px rgba(0,255,255,0.15);
}

.winner-card h1 {
  color: #00ff88;
  text-shadow: 0 0 12px #00ff88;
}

.player-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 25px;
}

.profile-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(102,255,255,0.6);
  box-shadow: 0 0 18px rgba(0,255,255,0.4);
  transition: 0.25s ease;
}

.compare-card:hover .profile-img {
  transform: scale(1.08);
}

.rank-badge {
  display: inline-block;
  margin-top: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
}

.unreal {
  background: linear-gradient(90deg, #ff4df8, #66ffff);
  color: white;
}

.champion {
  background: linear-gradient(90deg, #ffcc00, #ff6b00);
  color: black;
}

.stat-bar-box {
  margin: 18px 0;
}

.stat-bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font-weight: bold;
}

.stat-bar-bg {
  height: 12px;
  background: rgba(255,255,255,0.12);
  border-radius: 20px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00ff88, #66ffff);
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(102,255,255,0.8);
}

.breakdown-box,
.earnings-box {
  margin-top: 20px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  text-align: left;
}

.breakdown-box p,
.earnings-box p {
  margin: 8px 0;
  font-size: 14px;
}

.radar-card,
.timeline-card {
  width: 520px;
  max-width: 90%;
  margin: 60px auto;
  padding: 25px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  color: white;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,255,255,0.15);
}

.radar-card canvas {
  margin-top: 20px;
  max-width: 100%;
}

.timeline {
  margin-top: 20px;
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  padding: 14px;
  margin: 10px 0;
  border-radius: 12px;
  background: rgba(0,255,255,0.1);
}

.timeline-item strong {
  color: #66ffff;
}

.compare-card,
.winner-card,
.radar-card,
.timeline-card {
  transition: 0.25s ease;
}

.compare-card:hover,
.winner-card:hover,
.radar-card:hover,
.timeline-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(0,255,255,0.35);
}

/* HOMEPAGE SECTIONS */

section {
  scroll-margin-top: 90px;
}

.trending-section,
.tournament-countdowns,
.player-of-day,
.fraggers-section,
.activity-section {
  margin-top: 90px;
  margin-bottom: 90px;
}

.trending-section,
.fraggers-section,
.activity-section {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  color: white;
  text-align: center;
}

.trending-section h2,
.tournament-countdowns h2,
.fraggers-section h2,
.activity-section h2 {
  font-size: 34px;
  margin-bottom: 10px;
  color: white;
}

.trending-section p,
.tournament-countdowns p,
.fraggers-section p,
.activity-section p {
  opacity: 0.9;
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.trending-card {
  padding: 25px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 20px rgba(0,255,255,0.15);
  transition: 0.25s ease;
}

.trending-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(0,255,255,0.35);
}

.trending-card img {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(102,255,255,0.6);
  box-shadow: 0 0 18px rgba(0,255,255,0.4);
}

.trending-card h3 {
  margin-top: 15px;
  font-size: 24px;
}

.trending-card p {
  margin: 8px 0;
}

.trending-card a {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: 12px;
  background: #66ffff;
  color: black;
  font-weight: bold;
  text-decoration: none;
}

/* FEATURED EVENT */

.featured-event {
  width: 92%;
  margin: 70px auto;
  border-radius: 28px;

  background:
    linear-gradient(135deg, rgba(0,255,255,0.15), rgba(0,0,0,0.4));

  border: 1px solid rgba(102,255,255,0.25);
  box-shadow: 0 0 40px rgba(0,255,255,0.18);

  overflow: hidden;
  position: relative;
}

.featured-event-content {
  padding: 60px 40px;
  text-align: center;
  color: white;
  position: relative;
  z-index: 2;
}

.featured-live {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: #ff3b3b;
  color: white;
  font-weight: bold;
  box-shadow: 0 0 18px rgba(255,59,59,0.7);
  margin-bottom: 20px;
  animation: pulseLive 1.5s infinite;
}

.featured-event h2 {
  font-size: 52px;
  margin-bottom: 12px;
  color: #66ffff;
  text-shadow: 0 0 18px rgba(102,255,255,0.6);
}

.featured-region,
.featured-prize {
  font-size: 20px;
  margin: 10px 0;
  opacity: 0.92;
}

.featured-countdown {
  margin-top: 30px;
  font-size: 22px;
  font-weight: bold;
}

.featured-countdown span {
  color: #00ff88;
  text-shadow: 0 0 12px rgba(0,255,136,0.8);
}

.featured-button {
  display: inline-block;
  margin-top: 35px;
  padding: 16px 28px;
  border-radius: 14px;
  background: #66ffff;
  color: black;
  font-weight: bold;
  text-decoration: none;
  transition: 0.25s ease;
}

.featured-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 22px rgba(102,255,255,0.45);
}

@keyframes pulseLive {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }

  100% {
    transform: scale(1);
  }
}

/* PLAYER OF THE DAY */

.player-of-day {
  width: 92%;
  margin: 70px auto;
  padding: 40px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(0,255,255,0.16), rgba(128,0,255,0.18));
  box-shadow: 0 0 35px rgba(0,255,255,0.18);
  color: white;
}

.pod-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.pod-label {
  color: #66ffff;
  font-weight: bold;
  letter-spacing: 2px;
}

.pod-text h2 {
  font-size: 48px;
  margin: 10px 0;
}

.pod-stats {
  display: flex;
  gap: 18px;
  margin: 25px 0;
  flex-wrap: wrap;
}

.pod-stats div {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  min-width: 120px;
}

.pod-stats strong {
  display: block;
  font-size: 22px;
  color: #00ff88;
}

.pod-stats span {
  font-size: 13px;
  opacity: 0.85;
}

.pod-button {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 14px;
  background: #66ffff;
  color: black;
  font-weight: bold;
  text-decoration: none;
}

.pod-image {
  width: 230px;
  height: 230px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(102,255,255,0.6);
  box-shadow: 0 0 30px rgba(0,255,255,0.45);
}

/* FRAGGERS */

.fraggers-section {
  width: 90%;
  margin: 70px auto;
  color: white;
  text-align: center;
}

.fraggers-table {
  margin: 30px auto 0;
  max-width: 800px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 25px rgba(0,255,255,0.15);
}

.fragger-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.fragger-row.header {
  background: rgba(0,255,255,0.18);
  color: #66ffff;
  font-weight: bold;
}

.fragger-row:hover {
  background: rgba(255,255,255,0.08);
}

/* ACTIVITY FEED */

.activity-section {
  width: 90%;
  margin: 70px auto;
  color: white;
  text-align: center;
}

.activity-feed {
  max-width: 750px;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 18px rgba(0,255,255,0.12);
}

.activity-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 12px #00ff88;
  flex-shrink: 0;
}

.activity-item p {
  margin: 0;
}

/* SEARCH RESULT PLAYER CARD */

.player-search-result {
  width: 90%;
  max-width: 650px;
  margin: 25px auto;
}

.search-player-card {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 25px;
  border-radius: 22px;
  background: rgba(255,255,255,0.08);
  color: white;
  box-shadow: 0 0 25px rgba(0,255,255,0.18);
}

.search-player-card img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
}

.search-player-card a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #66ffff;
  color: black;
  font-weight: bold;
  text-decoration: none;
}

.no-player {
  color: white;
  text-align: center;
}

/* ANIMATED BACKGROUND */

body::before {
  content: "";
  position: fixed;
  inset: 0;

  background:
    radial-gradient(circle at 20% 20%, rgba(0,255,255,0.12), transparent 25%),
    radial-gradient(circle at 80% 30%, rgba(0,255,136,0.12), transparent 25%),
    radial-gradient(circle at 50% 80%, rgba(102,255,255,0.12), transparent 25%);

  animation: backgroundMove 18s ease-in-out infinite alternate;

  z-index: -2;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;

  background:
    linear-gradient(120deg, rgba(0,255,255,0.03), rgba(0,0,0,0), rgba(0,255,136,0.03));

  animation: gradientShift 10s linear infinite;

  z-index: -1;
  pointer-events: none;
}

@keyframes backgroundMove {
  0% {
    transform: translate(0px, 0px) scale(1);
  }

  100% {
    transform: translate(-40px, -20px) scale(1.08);
  }
}

@keyframes gradientShift {
  0% {
    transform: translateX(-10%);
  }

  100% {
    transform: translateX(10%);
  }
}

/* FOOTER */

footer {
  margin-top: 60px;
  padding: 20px;
  text-align: center;
  color: white;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}

/* MOBILE */

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  nav {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    padding: 20px;
  }

  nav div,
  nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  nav a {
    font-size: 14px;
  }

  .hero h1,
  .featured-event h2,
  .pod-text h2 {
    font-size: 34px;
  }

  .hero p,
  .featured-region,
  .featured-prize {
    font-size: 16px;
  }

  .search-container,
  .compare-search {
    flex-direction: column;
    align-items: center;
  }

  .search-container input,
  .compare-search input {
    width: 90%;
  }

  .featured-event-content,
  .pod-content {
    padding: 35px 20px;
  }

  .pod-content {
    flex-direction: column;
    text-align: center;
  }

  .pod-image {
    width: 180px;
    height: 180px;
  }

  .trending-grid,
  .countdown-grid {
    grid-template-columns: 1fr;
  }

  .fragger-row {
    grid-template-columns: 0.7fr 1.5fr 1fr 1fr;
    font-size: 13px;
    padding: 13px;
  }

  .activity-item {
    align-items: flex-start;
    text-align: left;
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }

  .compare-card,
  .winner-card {
    width: 90%;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .winner-card {
    margin-top: 0;
  }

  .radar-card,
  .timeline-card {
    width: 90%;
  }

  #itemShopContainer {
    grid-template-columns: 1fr;
  }

  .featured-item {
    flex-direction: column;
    text-align: center;
  }

  .featured-item img {
    max-width: 90%;
  }

  .search-player-card {
    flex-direction: column;
    text-align: center;
  }
}
/* COMPARE PAGE CENTER FIX */

#compareResults {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 60px auto;
}

.compare-grid {
  margin: 0 auto;
  justify-content: center;
}

.radar-card,
.timeline-card {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
/* EMERGENCY COMPARE CENTER FIX */

.compare-page {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto !important;
  text-align: center;
}

#compareResults {
  width: 100%;
  max-width: 1100px;
  margin: 60px auto !important;
  display: block !important;
}

#compareResults .compare-grid {
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
}
/* HOME SEARCH FIX */

.search-container {
  max-width: 700px;
  margin: 25px auto 50px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.search-container input {
  flex: 1;
  max-width: 420px;
}

.search-container button {
  flex-shrink: 0;
}/* FORCE HOME SEARCH TOGETHER */

.hero .search-container {
  width: fit-content !important;
  margin: 25px auto 45px auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
}

.hero .search-container input {
  width: 300px !important;
}

.hero .search-container button {
  width: auto !important;
}
/* RECENT PLACEMENTS */

.placements-section {
  width: 90%;
  margin: 90px auto;
  color: white;
  text-align: center;
}

.placements-section h2 {
  font-size: 34px;
  margin-bottom: 10px;
}

.placements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.placement-card {
  padding: 25px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 20px rgba(0,255,255,0.15);
  transition: 0.25s ease;
}

.placement-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(0,255,255,0.35);
}

.placement-rank {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 20px;
  background: #00ff88;
  color: black;
  font-weight: bold;
  margin-bottom: 12px;
}

.placement-card h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.placement-card p {
  opacity: 0.85;
  margin-bottom: 10px;
}

.placement-card strong {
  color: #66ffff;
}
/* FEATURED CLIPS */

.clips-section {
  width: 90%;
  margin: 90px auto;
  color: white;
  text-align: center;
}

.clips-section h2 {
  font-size: 34px;
  margin-bottom: 10px;
}

.clips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.clip-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 20px rgba(0,255,255,0.15);
  transition: 0.25s ease;
}

.clip-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(0,255,255,0.35);
}

.clip-card iframe {
  width: 100%;
  height: 190px;
  border: none;
  border-radius: 16px;
  margin-bottom: 15px;
}

.clip-card h3 {
  margin-bottom: 8px;
  color: #66ffff;
}

.clip-card p {
  opacity: 0.85;
}
/* LOADING SKELETONS */

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 22px;
  width: 90%;
  margin: 40px auto;
}

.skeleton-card {
  height: 330px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.18),
    transparent
  );
  animation: skeletonLoad 1.4s infinite;
}

@keyframes skeletonLoad {
  100% {
    transform: translateX(100%);
  }
}
nav a.active-link {
  color: #66ffff !important;
  text-shadow: 0 0 12px #66ffff;
  font-weight: bold;
}
.site-footer {
  width: 92%;
  margin: 90px auto 20px auto;
  padding: 35px;
  border-radius: 24px;
  background: rgba(255,255,255,0.08);
  color: white;
  text-align: center;
  box-shadow: 0 0 25px rgba(0,255,255,0.15);
}

.site-footer h2 {
  color: #66ffff;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 25px 0;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.footer-links a:hover {
  color: #66ffff;
  text-shadow: 0 0 10px #66ffff;
}

.footer-disclaimer {
  font-size: 13px;
  opacity: 0.75;
}

.footer-copy {
  margin-top: 12px;
  font-size: 13px;
  opacity: 0.65;
}
/* LIVE TICKER */

.live-ticker {
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(0,255,255,0.12);
  box-shadow: 0 0 18px rgba(0,255,255,0.2);
  margin-bottom: 35px;
}

.ticker-track {
  display: flex;
  gap: 45px;
  width: max-content;
  padding: 12px 20px;
  animation: tickerMove 22s linear infinite;
}

.ticker-track span {
  white-space: nowrap;
  font-weight: bold;
  color: #66ffff;
  text-shadow: 0 0 10px rgba(102,255,255,0.7);
}

@keyframes tickerMove {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(-100%);
  }
}
/* FADE-IN SCROLL ANIMATIONS */

.fade-in {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}
/* ITEM SHOP RARITY COLORS */

.common {
  border-color: rgba(180,180,180,0.5) !important;
}

.uncommon {
  border-color: rgba(0,255,136,0.6) !important;
  box-shadow: 0 0 18px rgba(0,255,136,0.18) !important;
}

.rare {
  border-color: rgba(0,170,255,0.7) !important;
  box-shadow: 0 0 18px rgba(0,170,255,0.2) !important;
}

.epic {
  border-color: rgba(180,80,255,0.8) !important;
  box-shadow: 0 0 18px rgba(180,80,255,0.25) !important;
}

.legendary {
  border-color: rgba(255,170,0,0.9) !important;
  box-shadow: 0 0 18px rgba(255,170,0,0.28) !important;
}
/* V-BUCKS PRICE */

.vbucks-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  color: #66ffff;
  font-weight: bold;

  margin-top: auto;
}

.vbucks-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.item-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.item-modal-content {
  width: 90%;
  max-width: 460px;
  padding: 30px;
  border-radius: 24px;
  background: rgba(15,23,42,0.96);
  color: white;
  text-align: center;
  box-shadow: 0 0 35px rgba(0,255,255,0.35);
  position: relative;
}

.item-modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 30px;
  cursor: pointer;
  color: #66ffff;
}

.modal-item-img {
  width: 220px;
  max-width: 90%;
  margin-bottom: 15px;
}

.modal-price {
  justify-content: center;
  font-size: 24px;
  margin-top: 18px;
}
.creators-section {
  width: 90%;
  margin: 90px auto;
  color: white;
  text-align: center;
}

.creators-section h2 {
  font-size: 34px;
  margin-bottom: 10px;
}

.creators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.creator-card {
  position: relative;
  padding: 28px;
  border-radius: 22px;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 20px rgba(0,255,255,0.15);
  transition: 0.25s ease;
}

.creator-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(0,255,255,0.35);
}

.creator-card img {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(102,255,255,0.6);
  box-shadow: 0 0 18px rgba(0,255,255,0.4);
}

.creator-card h3 {
  margin-top: 15px;
  font-size: 24px;
}

.creator-card p {
  opacity: 0.85;
  margin: 8px 0 16px;
}

.creator-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.creator-links a {
  padding: 9px 14px;
  border-radius: 12px;
  background: #66ffff;
  color: black;
  font-weight: bold;
  text-decoration: none;
}

.live-badge,
.offline-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: bold;
}

.live-badge {
   background: rgba(168, 85, 247, 0.18);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.5);

  box-shadow:
    0 0 12px rgba(168, 85, 247, 0.6),
    0 0 28px rgba(168, 85, 247, 0.35);
}

.offline-badge {
  background: #777;
  color: white;
}
#scrollTopBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #66ffff;
  color: black;
  font-size: 24px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  display: none;
  z-index: 9999;
  box-shadow: 0 0 18px rgba(102,255,255,0.6);
}

#scrollTopBtn:hover {
  transform: scale(1.1);
}
/* MOBILE DARK FIX */

@media (max-width: 768px) {
  body {
    background:
      linear-gradient(
        rgba(5, 10, 20, 0.92),
        rgba(5, 10, 20, 0.98)
      ),
      url("hero-bg.jpg") !important;

    background-size: cover !important;
    background-position: center !important;
    background-attachment: scroll !important;
    color: white !important;
  }

  body::before,
  body::after {
    opacity: 0.45;
  }

  .compare-card,
  .winner-card,
  .radar-card,
  .timeline-card,
  .card,
  nav {
    background: rgba(15, 23, 42, 0.82) !important;
  }
}
/* FINAL MOBILE DARK OVERRIDE */
@media (max-width: 768px) {
  html,
  body {
    background: #07111f !important;
    background-image: none !important;
    color: white !important;
  }

  body::before,
  body::after {
    display: none !important;
  }

  section,
  .leaderboard,
  .compare-page,
  .players-page,
  .tournaments-page {
    background: transparent !important;
  }

  h1,
  h2,
  h3,
  p,
  a,
  span,
  td,
  th {
    color: white !important;
  }
}
@media (max-width: 768px) {
  .compare-page,
  #compareResults,
  #itemShopContainer,
  .shop-page,
  .item-shop-page,
  main {
    background: #07111f !important;
  }
}
  .compare-card,
  .winner-card,
  .radar-card,
  .timeline-card,
  #itemShopContainer .card,
  .shop-card {
    background: rgba(20, 25, 45, 0.88) !important;
    color: white !important;
  }
/* FORCE MOBILE DARK BACKGROUND ON EVERY PAGE */
@media (max-width: 768px) {
  html,
  body,
  main,
  section,
  .compare-page,
  .shop-page,
  .item-shop-page,
  #itemShopContainer,
  #compareResults {
    background: #07111f !important;
    background-image: none !important;
  }

  body::before,
  body::after,
  .compare-page::before,
  .compare-page::after,
  .shop-page::before,
  .shop-page::after,
  .item-shop-page::before,
  .item-shop-page::after {
    content: none !important;
    display: none !important;
    background: none !important;
  }
}
@media (max-width: 768px) {
  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    background: #07111f !important;
  }

  .compare-page {
    width: 100% !important;
    margin: 0 !important;
    padding: 20px 0 !important;
    min-height: 100vh;
  }
}
* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

.navbar {
  width: calc(100% - 24px);
  max-width: 100%;
  margin: 12px auto;
}

@media (max-width: 600px) {
  .navbar {
    flex-wrap: wrap;
    overflow: visible;
  }

  .navbar a {
    font-size: 12px;
  }

  .compare-page,
  #compare,
  main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
}
.player-profile-card {
  max-width: 900px;
  margin: 30px auto;
  padding: 28px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.18);
  color: white;
  text-align: center;
}

.player-profile-card h2 {
  font-size: 2rem;
  color: #38bdf8;
  margin-bottom: 5px;
}

.player-subtitle {
  color: #cbd5e1;
  margin-bottom: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stat-box {
  padding: 20px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-box span {
  display: block;
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.stat-box strong {
  color: #67e8f9;
  font-size: 1.6rem;
}

@media (max-width: 700px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .player-profile-card {
    margin: 20px 12px;
    padding: 20px;
  }
}
.player-profile-card {
  max-width: 700px;
  margin: 30px auto;
  padding: 28px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(103, 232, 249, 0.45);
  box-shadow: 0 0 35px rgba(103, 232, 249, 0.3);
  color: white;
  text-align: center;
}

.player-profile-card h2 {
  color: #67e8f9;
  font-size: 2rem;
  margin-bottom: 5px;
}

.player-subtitle {
  color: #cbd5e1;
  margin-bottom: 22px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.stat-box {
  background: rgba(30, 41, 59, 0.95);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-box span {
  display: block;
  color: #94a3b8;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.stat-box strong {
  color: #67e8f9;
  font-size: 1.4rem;
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.18);
}

.skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  animation: skeletonLoading 1.2s infinite;
}

.skeleton-title {
  width: 180px;
  height: 32px;
  border-radius: 10px;
  margin: 0 auto 12px;
}

.skeleton-subtitle {
  width: 240px;
  height: 18px;
  border-radius: 10px;
  margin: 0 auto 24px;
}

.skeleton-card .stat-box {
  min-height: 86px;
}

@keyframes skeletonLoading {
  100% {
    left: 100%;
  }
}
.error-card {
  border-color: rgba(248, 113, 113, 0.55);
  box-shadow: 0 0 35px rgba(248, 113, 113, 0.25);
}

.error-card h2 {
  color: #f87171;
}

.error-card p {
  color: #fecaca;
}
.recent-searches {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 25px;
}

.recent-search-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, 0.4);
  background: rgba(15, 23, 42, 0.9);
  color: #67e8f9;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.recent-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(103, 232, 249, 0.4);
}
.recent-searches {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 18px !important;
  width: 100% !important;
}

.recent-search-btn {
  min-width: unset !important;
  width: auto !important;
}
#recentSearches {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  gap: 10px !important;
}
#recentSearches .recent-search-btn {
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
}
.autocomplete-box {
  position: absolute;
  margin-top: 60px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(103, 232, 249, 0.4);
  border-radius: 14px;
  overflow: hidden;
  z-index: 20;
}

.autocomplete-item {
  padding: 10px 16px;
  color: white;
  cursor: pointer;
}

.autocomplete-item:hover {
  background: rgba(103, 232, 249, 0.2);
}
.search-container {
  position: relative;
  overflow: visible !important;
}

.autocomplete-box {
  position: absolute !important;
  top: 65px !important;
  left: 0 !important;
  width: 310px !important;
  max-height: 220px;
  overflow-y: auto;
  z-index: 9999 !important;
  pointer-events: auto;
}

.search-container button {
  position: relative !important;
  z-index: 10000 !important;
  pointer-events: auto !important;
}

.autocomplete-box:empty {
  display: none !important;
}

.autocomplete-box {
  pointer-events: none !important;
}

.autocomplete-item {
  pointer-events: auto !important;
}
.autocomplete-box {
  display: none !important;
}
.search-container,
.search-container input,
.search-container button {
  pointer-events: auto !important;
  position: relative !important;
  z-index: 999999 !important;
}

#autocompleteBox,
.autocomplete-box,
#playerSearchResult {
  display: none !important;
  pointer-events: none !important;
}
.mode-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.mode-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, 0.35);
  background: rgba(15, 23, 42, 0.85);
  color: #67e8f9;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(103, 232, 249, 0.35);
}

.active-tab {
  background: rgba(103, 232, 249, 0.2);
  box-shadow: 0 0 15px rgba(103, 232, 249, 0.35);
}
.favorite-btn {
  margin-bottom: 22px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: #ffd54a;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
}

.favorite-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.35);
}
.player-link {
  color: #67e8f9;
  text-decoration: none;
  transition: 0.2s ease;
}

.player-link:hover {
  text-shadow: 0 0 12px rgba(103, 232, 249, 0.7);
}
.profile-banner {
  height: 120px;
  border-radius: 18px;
  margin-bottom: 50px;
  background: linear-gradient(135deg, #0f172a, #0891b2, #312e81);
  position: relative;
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.08);
}

.profile-avatar {
  position: absolute;
  left: 50%;
  bottom: -38px;
  transform: translateX(-50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #020617;
  border: 3px solid #67e8f9;
  color: #67e8f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  box-shadow: 0 0 25px rgba(103, 232, 249, 0.55);
}
.player-meta {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.player-meta span {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(103, 232, 249, 0.2);
  padding: 8px 14px;
  border-radius: 999px;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  color: #67e8f9;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
  }

  .nav-links.show {
    display: flex;
  }

  .navbar {
    flex-wrap: wrap;
  }
}
.nav-links {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease;
}

.nav-links.show {
  max-height: 500px;
  opacity: 1;
}
.global-search {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 12px auto;
}

.global-search input {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: white;
}

.global-search button {
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  background: #67e8f9;
  color: #020617;
  font-weight: 700;
}
.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-links.show {
    display: flex;
  }
}
@media (min-width: 769px) {
  .nav-links {
    display: flex !important;
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
    flex-direction: row !important;
    gap: 18px !important;
  }

  .hamburger {
    display: none !important;
  }
}
nav .nav-links {
  display: flex !important;
  gap: 18px !important;
  align-items: center !important;
  max-height: none !important;
  opacity: 1 !important;
  overflow: visible !important;
}

@media (max-width: 768px) {
  nav .nav-links {
    display: none !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  nav .nav-links.show {
    display: flex !important;
  }
}
#leaderboardBody tr {
  cursor: pointer;
  transition: 0.2s ease;
}

#leaderboardBody tr:hover {
  background: rgba(103, 232, 249, 0.18);
}
.leaderboard-player {
  display: flex;
  align-items: center;
  gap: 10px;
}

.leaderboard-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(103, 232, 249, 0.2);
  border: 1px solid rgba(103, 232, 249, 0.5);
  color: #67e8f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(103, 232, 249, 0.35);
}
th {
  cursor: pointer;
  transition: 0.2s ease;
}

th:hover {
  color: #67e8f9;
  text-shadow: 0 0 12px rgba(103, 232, 249, 0.6);
}
.leaderboard-search {
  margin: 18px 0;
  padding: 12px 16px;
  width: 280px;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: white;
  outline: none;
}

.leaderboard-search:focus {
  box-shadow: 0 0 18px rgba(103, 232, 249, 0.35);
}
#leaderboardBody tr {
  animation: leaderboardFadeIn 0.35s ease both;
}

@keyframes leaderboardFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
nav {
  position: sticky;
  top: 0;
  z-index: 9999;
  backdrop-filter: blur(12px);
  background: rgba(2, 6, 23, 0.82);
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  filter: drop-shadow(0 0 10px rgba(103, 232, 249, 0.5));
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand span {
  font-size: 1.4rem;
  font-weight: 800;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-left {
  text-align: left;
}

.live-badge,
.event-label {
  display: inline-block;
  color: #67e8f9;
  font-weight: 800;
  margin-bottom: 16px;
}

.featured-event-card {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(103, 232, 249, 0.35);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 0 35px rgba(103, 232, 249, 0.18);
}

.featured-event-card h3 {
  font-size: 2rem;
  color: white;
}

.event-stats {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

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

  .hero-left {
    text-align: center;
  }
}
/* UNIVERSAL GLASS CARDS */

.player-card,
.tournament-card,
.news-card,
.creator-card,
.video-card,
.placement-card,
.activity-item,
table,
.card {

  background: rgba(10, 15, 35, 0.55);
  backdrop-filter: blur(12px);

  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 18px;

  box-shadow: 0 8px 40px rgba(0,0,0,0.35);

  transition: 0.3s ease;
}

/* HOVER EFFECT */

.player-card:hover,
.tournament-card:hover,
.news-card:hover,
.creator-card:hover,
.video-card:hover,
.placement-card:hover,
.card:hover {

  transform: translateY(-6px);

  box-shadow:
    0 12px 50px rgba(0,0,0,0.45),
    0 0 20px rgba(56, 189, 248, 0.18);
}

/* BUTTONS */

button,
.btn {

  background: linear-gradient(135deg, #38bdf8, #67e8f9);
  color: #04111d;

  border: none;
  border-radius: 12px;

  padding: 10px 18px;

  font-weight: bold;
  cursor: pointer;

  transition: 0.25s ease;
}

button:hover,
.btn:hover {

  transform: scale(1.05);

  box-shadow:
    0 0 18px rgba(56, 189, 248, 0.4);
}

/* SECTION TITLES */

section h2 {

  font-size: 2.2rem;
  margin-bottom: 10px;

  color: white;

  text-shadow:
    0 0 18px rgba(255,255,255,0.15);
}

/* PARAGRAPHS */

section p {

  color: #cbd5e1;
}

/* TABLES */

table {

  width: 100%;
  overflow: hidden;
}

th {

  background: rgba(56, 189, 248, 0.18);
  color: white;
}

td,
th {

  padding: 14px;
  text-align: center;
}

/* LIVE FEED ITEMS */

.activity-item {

  padding: 14px 18px;
  margin-bottom: 12px;
}

/* PLAYER IMAGES */

.player-card img,
.creator-card img {

  border-radius: 50%;

  border: 3px solid rgba(56, 189, 248, 0.6);

  box-shadow:
    0 0 18px rgba(56, 189, 248, 0.25);
}
/* MOBILE RESPONSIVE */

@media (max-width: 900px) {

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .search-container {
    flex-direction: column;
    width: 100%;
  }

  .search-container input,
  .search-container button {
    width: 100%;
  }

  .card-container {
    flex-direction: column;
    align-items: center;
  }

  .card,
  .player-card,
  .creator-card,
  .news-card,
  .video-card,
  .tournament-card {
    width: 95%;
  }

  table {
    font-size: 0.8rem;
  }

  nav {
    flex-direction: column;
    gap: 12px;
  }
}
body {
  background:
    linear-gradient(rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.92)),
    url("hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
@media (max-width: 768px) {
  .nav-links {
    display: flex !important;
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;

    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
  }

  .nav-links a {
    display: inline-block;
    font-size: 14px;
    padding: 8px 12px;
  }

  .hamburger {
    display: none !important;
  }

  nav,
  .navbar {
    flex-wrap: wrap;
  }
}
.mobile-page-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;

  margin-top: 18px;
}

.mobile-page-tabs a {
  color: white;
  text-decoration: none;

  padding: 8px 14px;
  border-radius: 999px;

  background: rgba(10, 15, 35, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.35);
}
@media (max-width: 768px) {
  .hamburger {
    display: block !important;
  }

  .nav-links {
    display: none;
  }

  .nav-links.show {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 15px;
  }
}
.page-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;

  gap: 16px;

  padding: 18px 20px;
  margin: 20px auto;
}

.tab-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tab-links a {
  color: white;
  text-decoration: none;
  font-weight: 700;

  padding: 10px 18px;
  border-radius: 999px;

  background: rgba(10, 15, 35, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.tab-links a:hover {
  background: rgba(56, 189, 248, 0.2);
}

.mini-search {
  display: flex;
  gap: 10px;
}

.mini-search input {
  padding: 10px 14px;

  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.4);

  background: rgba(10, 15, 35, 0.55);
  color: white;
}

.mini-search button {
  border-radius: 999px;
}

@media (max-width: 768px) {

  .page-tabs {
    flex-direction: column;
    align-items: center;
  }

  .mini-search {
    width: 100%;
    justify-content: center;
  }

  .mini-search input {
    width: 60%;
  }
}
/* FORCE SAME MOBILE BACKGROUND ON EVERY PAGE */
@media (max-width: 768px) {
  html,
  body {
    min-height: 100%;
    background:
      linear-gradient(rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.92)),
      url("hero-bg.jpg") !important;

    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
  }
}
/* Better page spacing */
section {
  margin-bottom: 60px;
}

/* Better mobile card spacing */
@media (max-width: 768px) {
  section {
    padding: 20px;
  }

  .card,
  .player-card,
  .news-card,
  .tournament-card {
    margin-bottom: 18px;
  }
}
#authStatus {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;

  display: flex;
  gap: 10px;
  align-items: center;

  padding: 12px 18px;
  border-radius: 999px;

  background: rgba(10, 15, 35, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);

  color: white;

  min-width: 220px;
  min-height: 50px;

  box-shadow:
    0 0 18px rgba(56, 189, 248, 0.18);
}

#authStatus button,
#authStatus a {
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
#authStatus {
  font-size: 14px;
  font-weight: 600;
}

#authStatus span {
  color: white !important;
}

#authStatus button,
#authStatus a {
  color: #67e8f9 !important;
}
/* AUTH PAGES */

.auth-page {

  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 20px;

  background:
    linear-gradient(rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.92)),
    url("hero-bg.jpg");

  background-size: cover;
  background-position: center;
}

.auth-card {

  width: 100%;
  max-width: 420px;

  padding: 40px 30px;

  border-radius: 24px;

  background: rgba(10, 15, 35, 0.65);

  backdrop-filter: blur(14px);

  border: 1px solid rgba(56, 189, 248, 0.35);

  box-shadow:
    0 10px 50px rgba(0,0,0,0.45);
}

.auth-card h1 {

  text-align: center;

  margin-bottom: 30px;

  font-size: 3rem;

  color: #38bdf8;

  text-shadow:
    0 0 20px rgba(56, 189, 248, 0.35);
}

.auth-card input {

  width: 100%;

  margin-bottom: 18px;

  padding: 14px 18px;

  border-radius: 14px;

  border: 1px solid rgba(56, 189, 248, 0.35);

  background: rgba(255,255,255,0.05);

  color: white;

  font-size: 1rem;
}

.auth-card input::placeholder {
  color: #cbd5e1;
}

.auth-card button {

  width: 100%;

  padding: 14px;

  border: none;

  border-radius: 14px;

  font-weight: bold;
  font-size: 1rem;

  cursor: pointer;

  background:
    linear-gradient(135deg, #38bdf8, #67e8f9);

  color: #04111d;

  transition: 0.25s ease;
}

.auth-card button:hover {

  transform: scale(1.02);

  box-shadow:
    0 0 22px rgba(56, 189, 248, 0.35);
}

.auth-card a {

  display: block;

  margin-top: 20px;

  text-align: center;

  color: #67e8f9;

  text-decoration: none;
}

.auth-card p {

  text-align: center;

  margin-top: 12px;

  color: #f87171;
}
/* INFO PAGES */

.info-page {
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.info-card {
  max-width: 800px;
  padding: 40px;
  border-radius: 24px;

  background: rgba(10, 15, 35, 0.65);
  backdrop-filter: blur(14px);

  border: 1px solid rgba(56, 189, 248, 0.35);

  box-shadow:
    0 10px 50px rgba(0,0,0,0.45);

  color: white;
}

.info-card h1 {
  font-size: 3rem;
  color: #38bdf8;
  margin-bottom: 20px;
}

.info-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 18px;
}
/* FOOTER */

.site-footer {

  display: flex;
  justify-content: center;
  gap: 24px;

  padding: 30px 20px;

  margin-top: 60px;

  border-top:
    1px solid rgba(255,255,255,0.08);

  background:
    rgba(2, 6, 23, 0.75);

  backdrop-filter: blur(10px);
}

.site-footer a {

  color: #67e8f9;

  text-decoration: none;

  font-weight: 600;

  transition: 0.2s ease;
}

.site-footer a:hover {

  color: white;

  text-shadow:
    0 0 12px rgba(56, 189, 248, 0.45);
}
.demo-warning {

  margin-top: 10px;
  margin-bottom: 25px;

  color: #facc15;

  font-weight: 600;

  text-align: center;

  text-shadow:
    0 0 10px rgba(250, 204, 21, 0.25);
}
body {
  animation: pageFade 0.25s ease-in;
}

@keyframes pageFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}