:root {
  --bg-dark: #1a1a1a;
  --bg-card: #242424;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent-green: #4CAF50;
  --accent-red: #f44336;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
}

header {
  padding: 1rem 2rem;
  background-color: var(--bg-card);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

nav ul {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  padding: 0.5rem 0;
  font-family: 'Poppins', sans-serif;
}

nav a:hover {
  color: var(--accent-green);
}

.dropdown {
  position: relative;
}

.arrow {
  font-size: 0.8rem;
  opacity: 0.7;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.5rem 0;
  min-width: 180px;
  margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  padding: 0.3rem 1rem;
}

.dropdown-menu a {
  color: var(--text-secondary);
  display: block;
  padding: 0.4rem 0;
}

.dropdown-menu a:hover {
  color: var(--text-primary);
}

main {
  padding: 2rem 0;
}

.season-banner {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0;
  position: relative;
}

.season-banner img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.season-banner .match-tabs {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 2rem;
  padding: 1rem 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.season-banner .leaderboard-tabs {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 2rem;
  padding: 1rem 0rem 0rem 0rem;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  overflow: hidden;
  margin-bottom: .47rem;
}

.season-banner .tab {
  color: #f2c710;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f2c710;
  transition: all 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  min-width: 120px;
  text-align: center;
  width: 100%;
  border-bottom: 2px solid #f2c710;
}

.season-banner .tab:hover {
  color: white;
}

.season-banner .tab.active {
  color: #ff3d7f;
  border-bottom: 2px solid #ff3d7f;
}

.dropdown-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.dropdown-arrow {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.dropdown-toggle.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #242424;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  min-width: 200px;
  z-index: 1000;
  margin-top: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dropdown-toggle.active .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  color: #a0a0a0;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.dropdown-item:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.dropdown-item:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.map-icon-small {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
}

.top-players {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0;
}

.leaderboard {
  max-width: 1200px;
  margin: 2rem auto;
  padding-bottom: 1.5rem;
  border-radius: 8px;
}

.toggle-container {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0;
  text-align: right;
}

.toggle-container {
  display: flex;
  gap: 1rem;
}

.toggle-button {
  margin: 0;
  padding: 0.75rem 1.5rem;
  background: var(--accent-green);
  color: white;
  border: none;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  min-width: 180px;
  text-align: center;
  width: 180px;
}

.toggle-button:hover {
  background: #3d9c40;
}

.leaderboard table {
  border-radius: 8px;
}

.podium {
  display: none;
  gap: 1rem;
  margin: 2rem 0;
  grid-template-columns: repeat(3, 1fr);
}

.skeleton-podium {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
  grid-template-columns: repeat(3, 1fr);
}

.player {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  padding: 0;
  border-radius: 8px;
  justify-content: space-between;
  overflow: hidden;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  position: relative;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 0;
  mask-image: linear-gradient(to right, black, transparent);
  -webkit-mask-image: linear-gradient(to right, black, transparent);
}

.info-text {
  padding-right: 1rem;
}

.info-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rank {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.first .rank {
  background: linear-gradient(to bottom, #fbd998, #b87d46);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.second .rank {
  background: linear-gradient(to bottom, #d2d2d2, #4a4a4a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.third .rank {
  background: linear-gradient(to bottom, #f5a375, #814713);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.name {
  font-family: 'Poppins', sans-serif;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 500;
}

.rank-number {
  color: #808080;
  font-style: italic;
  margin-right: 4px;
}

.rating {
  color: var(--accent-green);
  font-weight: 600;
  background: rgba(76, 175, 80, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  margin-right: 1rem;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 1px;
  font-family: 'Poppins', sans-serif;
}

th {
  padding: 1rem;
  text-align: left;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  width: 100px;
  background: #242424;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s;
}

th:hover {
  background: #2a2a2a;
}

td {
  text-align: left;
  position: relative;
  background: #242424;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  padding-left: 1rem;
  padding-right: 1rem;
}

td.stat-cell {
  width: 90px;
  background: #242424;
  padding-top: 8px;
  padding-bottom: 8px;
}

td.stat-cell:nth-child(2),
td.stat-cell:nth-child(3) {
  width: 140px;
}

td.player-cell {
  min-width: 120px;
  width: auto;
  padding-top: 8px;
  padding-bottom: 8px;
  position: relative;
}

td.player-cell[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  bottom: 100%;
  margin-bottom: 10px;
  background: #424242;
  color: white;
  padding: 10px;
  border-radius: 4px;
  font-size: 14px;
  width: max-content;
  max-width: 300px;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  white-space: pre-line;
}

td.player-cell[data-tooltip]:hover::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 100%;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #424242;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  margin-bottom: 2px;
  z-index: 1001;
}

@media screen and (max-width: 768px) {
  td.player-cell[data-tooltip]:hover::after {
    position: fixed;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 20px !important;
    top: auto !important;
    width: calc(100% - 40px) !important;
    max-width: none !important;
    margin-bottom: 0 !important;
    background: #1a1a1a !important;
    z-index: 9999 !important;
  }

  .toggle-container {
      max-width: 1200px;
      margin: 0 auto 2rem;
      padding: 0 1rem;
      text-align: left;
  }

  .leaderboard table {
      display: block;
      overflow-x: auto;
      white-space: nowrap;
  }

  td.player-cell[data-tooltip]:hover::before {
    display: none !important;
  }
}

th:first-child {
  min-width: 120px;
  width: 26%;
}

th:nth-child(2),
th:nth-child(3) {
  width: 140px;
}

td.stat-cell {
  position: relative;
}

td.stat-cell span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 4px;
  font-weight: 500;
  font-size: 1rem;
}

td.stat-cell .star-icon {
  width: 20px;
  height: 20px;
}

.player-cell {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.player-cell span {
  font-weight: 500;
  font-size: 1rem;
}

.player-cell img {
  border-radius: 50%;
  width: 32px;
  height: 32px;
}

.positive {
  color: var(--accent-green);
}

.negative {
  color: var(--accent-red);
}

/* Responsive Styles */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media screen and (max-width: 768px) {
  header {
    padding: 0.25rem;
  }

  nav {
    flex-direction: row;
    justify-content: space-between;
    padding: 0.25rem 1rem;
    position: relative;
    margin: 0;
  }

  .mobile-menu-btn {
    display: block;
    padding: 0.15rem;
  }

  .logo img {
    height: 24px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    width: 100%;
    text-align: center;
    background-color: var(--bg-card);
    padding: 1rem 0;
    gap: 1rem;
    z-index: 1000;
  }

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

  .podium {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }

  .leaderboard {
    overflow-x: auto;
    padding: 0 1rem;
  }

  .season-banner {
    padding: 0 1rem;
  }

  .player-cell {
    min-width: 180px;
    max-width: 220px;
  }

  .player-cell span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  td.stat-cell {
    min-width: 70px;
  }
}

/* Skeleton Loading */
.skeleton {
  animation: skeleton-loading 0.5s linear infinite alternate;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% {
    background-color: rgba(36, 36, 36, 1);
  }
  100% {
    background-color: rgba(52, 52, 52, 1);
  }
}

.skeleton-podium {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
  grid-template-columns: repeat(3, 1fr);
}

@media screen and (max-width: 768px) {
  .skeleton-podium {
    grid-template-columns: 1fr;
  }
}

.skeleton-player {
  background: var(--bg-card);
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.skeleton-row td {
  padding: 0;
  background: none;
}

.skeleton-row .player-cell,
.skeleton-row .stat-cell {
  height: 50px;
}

.skeleton-row .player-cell {
  min-width: 120px;
  width: auto;
}

.skeleton-row .stat-cell {
  width: 90px;
}

.skeleton-row .stat-cell:nth-child(2),
.skeleton-row .stat-cell:nth-child(3) {
  width: 140px;
}

.podium {
  visibility: hidden;
}

.podium.loaded {
  visibility: visible;
}

.podium .player {
  visibility: hidden;
}

.podium .player img,
.podium .player .name,
.podium .player .rating,
.podium .player .rank {
  opacity: 0;
}

.podium.loaded .player {
  visibility: visible;
}

.podium.loaded .player img,
.podium.loaded .player .name,
.podium.loaded .player .rating,
.podium.loaded .player .rank {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.filters {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0;
}

.filter-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  padding: 1rem;
  border-radius: 8px;
}

/* Match Details Styles */
.match-details {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0;
}

.match-header.skeleton {
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  animation: skeleton-loading 0.5s linear infinite alternate;
}

.match-header.skeleton::before,
.match-header.skeleton::after {
  display: none;
}

.match-header.skeleton .map-info {
  display: none;
}

.match-header.skeleton .match-date {
  display: none;
}

.match-header.skeleton .achievement-cards {
  display: none;
}

.podium.skeleton .player {
  background: #242424;
  height: 80px;
}

.podium.skeleton .player-info,
.podium.skeleton .rating {
  display: none;
}

@keyframes fadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.match-header.skeleton.fade-out {
  background: rgb(49, 49, 49);
}

.match-header.skeleton.fade-out,
.skeleton-podium.fade-out,
.match-stats.skeleton.fade-out {
  animation: fadeOut 0.5s ease-out forwards;
  animation-fill-mode: forwards;
  animation-timing-function: linear;
}

.match-banner {
  position: relative;
  padding: 1.5rem;
  border-radius: 8px;
  color: white;
  display: flex;
  gap: 2rem;
  overflow: hidden;
}

.match-tabs {
  display: none;
  gap: 2rem;
  z-index: 2;
  margin-top: 2rem;
  position: relative;
}

.match-header:not(.skeleton) .match-tabs {
  display: flex;
}

.match-tabs .tab {
  color: #a0a0a0;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  width: 12%;
  text-align: center;
}

.match-tabs .tab:hover {
  color: white;
}

.match-tabs .tab.active {
  color: #ff3d7f;
  border-bottom: 2px solid #ff3d7f;
}


.match-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.match-banner > * {
  position: relative;
  z-index: 2;
}

.match-detail {
  margin-bottom: 1.5rem;
}

.match-detail .score {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 2.5rem;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.match-detail .score span:first-child {
  color: #4DC49E;
}

.match-detail .score span:last-child {
  color: #F77C60;
}

.match-detail .score .score-separator {
  color: white;
}

.map-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.map-info h1 {
  font-size: 2.5rem;
  margin: 0;
}

.match-date {
  font-style: italic;
  color: #a0a0a0;
}

.map-detail-icon {
  margin-top: 3rem;
  position: absolute;
}

.map-detail-img {
  width: 50%;
  display: block;
  margin: auto;
}

.achievement-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.achievement-card {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.achievement-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.player-name {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.divider {
  width: 80%;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0.5rem 0;
}

.achievement-title {
  font-weight: 500;
}

.achievement-subtitle {
  color: #a0a0a0;
  font-size: 0.9rem;
}

@media screen and (max-width: 768px) {
  .achievement-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.match-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.stats-skeleton-box {
  background: #242424;
  border-radius: 8px;
  height: 500px;
  width: 100%;
  animation: skeleton-loading 0.5s linear infinite alternate;
}

.match-stats table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 1px;
}

.match-stats th,
.match-stats td {
  background: var(--bg-card);
  text-align: left;
  cursor: auto;
}

.match-stats td.positive {
  color: var(--accent-green);
}

.match-stats td.star::after {
  content: '★';
  color: var(--accent-green);
  margin-left: 4px;
}

.match-header {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.match-header::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: var(--map-background);
  background-size: 120%;
  background-position: center;
  filter: blur(2px);
  z-index: 0;
  background-size: cover;
}

.match-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.victory-banner {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.9)), url('content/maps/de_mirage.png');
  background-size: cover;
  background-position: center;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.victory-banner h1 {
  font-family: 'Rubik', sans-serif;
  font-size: 2.5rem;
  margin: 0;
}

.victory-banner .score {
  font-family: 'Rubik', sans-serif;
  font-size: 2.5rem;
  color: var(--accent-green);
}

.demo-button {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Poppins', sans-serif;
}

.match-info {
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.map-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Poppins', sans-serif;
}

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

.match-id {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.match-navigation {
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.match-navigation a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  padding: 0.5rem 0;
  position: relative;
}

.match-navigation a.active {
  color: var(--text-primary);
}

.match-navigation a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-green);
}

.match-tools {
  margin-left: auto;
  display: flex;
  gap: 1rem;
}

.match-tools button {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.teams-overview {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.team {
  border-radius: 8px;
}

/* Match History Styles */
.match-history {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  padding: 0 1rem;
}

.page-btn {
  background: var(--accent-green);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: opacity 0.2s;
  width: 120px;
  text-align: center;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#pageInfo {
  color: white;
  font-family: 'Poppins', sans-serif;
}

.match-card {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  height: 140px;
  background: #242424;
  display: flex;
  border: 1px solid transparent;
  transition: border-color 0.2s ease-in-out;
}

.match-card:hover {
  border-color: #4caf50;
}

.match-card .score {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 1.8rem;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.match-card .score span:first-child {
  color: #4DC49E;
}

.match-card .score span:last-child {
  color: #F77C60;
}

.match-card .score .score-separator {
  color: white;
}

.map-section {
  position: relative;
  width: auto;
  overflow: hidden;
  flex-shrink: 0;
}

.map-section .map-image {
  height: 100%;
  width: auto;
  object-fit: cover;
  opacity: 0.5;
  mask-image: linear-gradient(to right, #242424, transparent);
  -webkit-mask-image: linear-gradient(to right, #242424, transparent);
}

.match-content {
  flex: 1;
  padding: 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.match-actions {
  width: auto;
  padding: 1rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.map-icon {
  position: absolute;
  width: 116px;
  height: 116px;
  left: 72px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.map-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.map-header h2 {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 1.8rem;
  margin: 0;
  color: white;
}

.score {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 1.8rem;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.match-detail .score {
  font-size: 2.5rem;
}

.match-detail .score span:first-child {
  color: #4DC49E;
}

.match-detail .score span:last-child {
  color: #F77C60;
}

.match-detail .score .score-separator {
  color: white;
}

.teams {
  font-family: 'Poppins', sans-serif;
  margin-bottom: 0;
  display: flex;
}

.team {
  font-weight: 500;
}

.teams .team:first-child,
.teams .team:last-child {
  color: white !important;
}

.vs {
  margin: 0 0.5rem;
  display: flex;
  align-items: center;
}

.vs-icon {
  width: 24px;
  height: auto;
}

.match-meta,
.match-date {
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  color: #8F8F8F;
  font-size: .9rem;
}

.match-meta span {
  margin-right: 1rem;
}

.details-button {
  background: #1a1a1a;
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease-in-out;
}

.details-button:hover {
  background: #343434;
}

.details-button::after {
  content: '→';
  font-size: 1.2em;
  font-weight: 900;
}

.demo-download {
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  color: #808080;
  font-size: 0.9rem;
  text-align: right;
}

.demo-download:hover {
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  .match-history {
    padding: 0 1rem;
  }

  .match-card {
    flex-direction: column;
    height: auto;
    min-height: 200px;
  }

  .season-banner .leaderboard-tabs {
    position: relative;
    background: none;
    padding: 1rem 0rem 0rem 0rem;
    margin: 0;
    justify-content: center;
    gap: 1rem;
  }

  .season-banner .tab {
    background: #242424;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    border: none;
    margin: 0;
    width: 100%;
    font-size: .9rem;
  }

  .season-banner .tab.active {
    background: #ff3d7f;
    border: none;
    color: white;
  }

  .dropdown-toggle {
    width: 100%;
  }

  .dropdown-menu {
    position: fixed;
    top: auto;
    left: 1rem;
    right: 1rem;
    width: auto;
    margin-top: 0.5rem;
  }

  .dropdown-item {
    padding: 1rem;
    font-size: 1rem;
  }

  .map-icon-small {
    width: 28px;
    height: 28px;
  }

  .map-section {
    height: 100px;
    width: 100%;
  }

  .map-section .map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(to bottom, #242424, transparent);
    -webkit-mask-image: linear-gradient(to bottom, #242424, transparent);
  }

  .map-icon {
    width: 80px;
    height: 80px;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .match-content {
    padding: 1rem;
  }

  .map-header {
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: 1rem;
  }

  .map-header h2 {
    font-size: 1.25rem;
  }

  .score {
    font-size: 1.25rem;
    white-space: nowrap;
  }

  .teams {
    gap: 0.25rem;
    display: flex;
  }

  .match-actions {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 0rem;
  }

  .details-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .filter-group {
    padding: 1rem;
  }

  .filter-controls {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .date-range {
    width: 100%;
  }

  .date-input {
    flex: 1;
  }

  .filter-select {
    width: 100%;
  }

/* Filter Styles */
.filters {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0;
}

.filter-group h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
  min-width: 80px;
}

.filter-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  padding: 1rem;
  border-radius: 8px;
}

.filter-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.date-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.date-input {
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
}

.filter-select {
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  min-width: 150px;
}

@media screen and (max-width: 768px) {
  .filters {
    flex-direction: column;
    align-items: stretch;
    margin: 0 1rem;
  }

  .filter-group {
    flex-direction: column;
    align-items: stretch;
  }

  .date-range {
    flex-wrap: wrap;
  }
}

.player-cell[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: 100%;
  background: #1a1a1a;
  color: white;
  padding: 10px;
  border-radius: 4px;
  font-size: 14px;
  width: max-content;
  max-width: 300px;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  white-space: pre-line;
}