.hero {
  padding: 2.5rem 0 1.5rem;
}

.hero-card {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 2.5rem 3rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero-highlight {
  color: #2563eb;
}

.hero-text {
  max-width: 580px;
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
  color: #4b5563;
}

.hero-search {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-search input {
  min-width: 260px;
  max-width: 420px;
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
}

.section {
  margin-top: 2.5rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-intro {
  max-width: 620px;
  margin: -0.5rem 0 0;
  color: #64748b;
  font-size: 0.95rem;
}

.featured-section {
  margin-top: 3rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f3f6ff 100%);
  border: 1px solid #e4e8f5;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.featured-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.featured-kicker {
  display: inline-flex;
  margin-bottom: 0.4rem;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.featured-carousel > * {
  scroll-snap-align: start;
}

.featured-carousel .listing-card {
  height: 100%;
  border: 1px solid #dfe5f4;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.category-pill {
  width: 100%;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.category-pill:hover {
  border-color: #2563eb;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.category-pill.active {
  border-color: #2563eb;
  background: #eff6ff;
}

.category-emoji {
  font-size: 1.4rem;
}

.live-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.live-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 500;
}

.live-controls {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.live-search-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.live-search-group input {
  min-width: 220px;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
}

.select {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  background: #ffffff;
}

.loading {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.no-results {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.load-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.stats-section {
  padding: 3rem 0 2rem;
}

.stats-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  text-align: center;
  gap: 2rem;
}

.stat-block {
  flex: 1;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #2563eb;
}

.stat-label {
  font-size: 0.9rem;
  color: #475569;
}

@media (min-width: 900px) {
  .featured-carousel {
    grid-auto-columns: calc((100% - 3rem) / 4);
  }
}

@media (max-width: 900px) {
  .hero-card {
    padding: 2rem 1.5rem;
  }

  .stats-grid {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .live-controls {
    align-items: stretch;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .featured-section {
    padding: 1rem;
  }

  .featured-carousel {
    grid-auto-columns: minmax(240px, 85%);
  }
}
