 * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      background: #0a0a0a;
     background-image: 
                radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 1px); /* Dots pattern */
            background-size: 20px 20px; /* Dot size and spacing */
            background-position: center; /* Center the dot pattern */
            background-repeat: repeat; /* Repeat the dots pattern across the page */
      background-size: 50px 50px, 150px 150px, 20px 20px;
      color: white;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
      min-height: 100vh;
      
    }

/* =======================
   Container & Layout
   ======================= */
.container {
  max-width: 1300px;
  margin: 0 auto;
  margin-top: 150px;
}

/* =======================
   Hero Section
   ======================= */
.hero-section {
  text-align: center;
  margin-bottom: 60px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 40px;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  color: #8b5cf6;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #ff0000;
  -webkit-text-decoration-color: #ff0000;
  text-underline-offset: 4px;

    text-shadow: 0px 0px 18px rgb(109, 109, 109);
}

/* =======================
   Search Section
   ======================= */
.search-section {
  margin-bottom: 40px;
}

.search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.search-input {
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-btn {
  display: none;
}

/* =======================
   Filter Tabs
   ======================= */
.filter-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.filter-btn {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.filter-btn.active {
  background: #8b5cf6;
  color: white;
  border-color: #8b5cf6;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.filter-btn:hover {
  background: rgba(139, 92, 246, 0.2);
  color: white;
  border-color: rgba(139, 92, 246, 0.5);
}

/* =======================
   Time Note
   ======================= */
.time-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
  text-align: center;
}

.time-note a {
  color: #8b5cf6;
  text-decoration: none;
}

/* =======================
   Cards Grid
   ======================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
  max-width: 1300px;
  margin: 0 auto;
}

/* =======================
   League Card
   ======================= */
.league-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  height: 270px;
  display: flex;
  flex-direction: row;
  margin-bottom: 20px;
}

.league-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(139, 92, 246, 0.3);
}

/* === Card Header (Image) === */
.card-header {
  position: relative;
  width: 390px;
  height: 100%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image {
  width: 100%;
  height: 245px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  border-radius: 8px;
  margin: 20px;
}

.card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  border-radius: 0 0 8px 8px;
}

.card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Sponsored Overlay */
.sponsored-overlay {
  position: absolute;
  top: 20px;
  left: 30px;
  background: rgba(255, 100, 100, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  z-index: 10;
}

/* === Card Content === */
.card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  overflow: hidden;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.card-subtitle {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.card-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
  overflow-y: auto;
  max-height: 120px;
  padding-right: 8px;
}

.card-description::-webkit-scrollbar {
  width: 4px;
}

.card-description::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.card-description::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.6);
  border-radius: 2px;
}

.card-description::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.8);
}

/* === Card Details Footer === */
.card-details-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
}

.card-details-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-top: 10px;
  word-break: break-word;
}

.detail-item {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  white-space: normal;
}

.detail-label {
  color: rgba(255, 255, 255, 0.5);
  margin-right: 4px;
  font-weight: 500;
}

.sponsored-game-type-element a {
  text-decoration: none;
  color: #ff3742;
}

.game-type-element a {
  text-decoration: none;
  color: #ae00ff;
}

.separator {
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
}

/* === Join Button === */
.league-link {
  color: #8b5cf6;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s;
  font-weight: 500;
}

.league-link:hover {
  color: #a855f7;
}

.join-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  color: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
  min-width: 120px;
  justify-content: center;
}

.join-btn.live {
  background: linear-gradient(135deg, #ff192c, #ab0009);
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.join-btn.custom {
  background: linear-gradient(135deg, #6624ff, #460088);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.join-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* =======================
   Responsive Tweaks
   ======================= */
@media (max-width: 1268px) {
  body {
    padding: 20px 15px;
  }

  .container {
    max-width: 800px;
  }

  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .league-card {
    height: auto;
    min-height: 280px;
    flex-direction: column;
  }

  .card-header {
    width: 100%;
    height: 200px;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .card-image {
    width: calc(100% - 40px);
    height: 160px;
    margin: 20px;
  }

  .sponsored-overlay {
    top: 36px;
    left: 36px;
  }

  .filter-tabs {
    gap: 8px;
  }

  .filter-btn {
    font-size: 12px;
    padding: 10px 16px;
  }

  .card-content {
    padding: 20px;
  }

  .card-details-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .join-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

.filter-tabs {
  display: flex;
  overflow-x: auto;
  flex-wrap: nowrap;
  gap: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0; /* Remove huge padding */
}

  .filter-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
    font-size: 13px;
    padding: 10px 16px;
    border-radius: 20px;
    white-space: nowrap;
    overflow-x: hidden;
  }

  .filter-btn:first-child {
  margin-left: 450px; /* Create the same spacing without increasing total width */
}

  .cards-grid {
    grid-template-columns: 1fr;
  }

  /* League details stack vertically */
  .card-details-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .detail-item {
    width: 100%;
    white-space: normal;
  }

  .separator {
    display: none;
  }
}

/* =======================
   Animation classes
   ======================= */
.card-fade-in {
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}