* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
  background-color: #1a1a1a;
  min-height: 100vh;
  padding: 24px;
}

/* Search and Filter Section */
.search-filter-container {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #1e1e1e;
  border-radius: 12px;
  border: 1px solid #333333;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

.search-section {
  margin-bottom: 20px;
}

.search-input {
  width: 100%;
  max-width: 400px;
  padding: 12px 16px;
  background-color: #2a2a2a;
  border: 1px solid #333333;
  border-radius: 8px;
  color: #f9fafb;
  font-size: 14px;
  font-family: inherit;
}

.search-input::placeholder {
  color: #9ca3af;
}

.search-input:focus {
  outline: none;
  border-color: #4b5563;
  box-shadow: 0 0 0 2px rgba(75, 85, 99, 0.2);
}

.filter-section {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.filter-btn {
  padding: 8px 16px;
  background-color: #2a2a2a;
  color: #f9fafb;
  border: 1px solid #333333;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background-color: #333333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.filter-btn.active {
  background-color: #4b5563;
  border-color: #6b7280;
  color: #ffffff;
}

.results-counter {
  text-align: center;
}

#results-count {
  font-size: 14px;
  color: #9ca3af;
  font-weight: 500;
}

/* Week Display */
#week-display {
  margin-bottom: 30px;
  text-align: center;
}

.current-week {
  font-size: 24px;
  font-weight: 600;
  color: #f9fafb;
  padding: 15px 30px;
  background-color: #2a2a2a;
  border: 1px solid #333333;
  border-radius: 8px;
  display: inline-block;
}

/* All Games Header (for all-events page) */
#all-games-header {
  margin-bottom: 30px;
  text-align: center;
}

.all-games-title {
  font-size: 24px;
  font-weight: 600;
  color: #f9fafb;
  padding: 15px 30px;
  background-color: #2a2a2a;
  border: 1px solid #333333;
  border-radius: 8px;
  display: inline-block;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(262px, 1fr));
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.broadcast-container {
  width: 100%;
}

.broadcast-card {
  width: 100%;
  height: 450px;
  background: #1e1e1e;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border: 2px solid #2a2a2a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.broadcast-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-content {
  padding: 15px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.teams-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.team-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2a2a;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.team-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.team-name {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: #f9fafb;
}

.vs-text {
  font-size: 18px;
  font-weight: bold;
  color: #9ca3af;
}

.game-details {
  padding-top: 16px;
  border-top: 1px solid #333333;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.icon {
  width: 20px;
  height: 20px;
  color: #d1d5db;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-label {
  font-weight: 600;
  color: #f9fafb;
}

.detail-value {
  color: #f9fafb;
  margin-left: 8px;
}

.broadcast-section {
  padding-top: 16px;
  border-top: 1px solid #333333;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 150px;
}

.broadcast-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  flex: 1;
}

.broadcast-row:last-child {
  margin-bottom: 0;
}

.broadcast-content {
  flex: 1;
}

.broadcast-label {
  font-weight: 600;
  color: #f9fafb;
  display: block;
  margin-bottom: 8px;
}

.broadcast-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.broadcast-badge {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  background-color: #2a2a2a;
  border: 1px solid #333333;
  color: #f9fafb;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.broadcast-badge:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  background-color: #333333;
}

.broadcast-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.bottom-section {
  padding-top: 16px;
  border-top: 1px solid #333333;
  text-align: center;
  flex-shrink: 0;
  margin-top: auto;
}

.buy-tickets-link {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  background-color: #2a2a2a;
  border: 1px solid #333333;
  color: #f9fafb;
  text-decoration: none;
  transition: all 0.2s ease;
  text-align: center;
}

.buy-tickets-link:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  background-color: #333333;
}

.loading {
  text-align: center;
  color: #9ca3af;
  font-size: 18px;
  margin-top: 100px;
}

.error {
  text-align: center;
  color: #ef4444;
  font-size: 18px;
  margin-top: 100px;
}

/* Responsive design */
@media (max-width: 768px) {
  .cards-container {
    grid-template-columns: 1fr;
  }

  .card-content {
    padding: 16px;
  }

  .team-logo {
    width: 56px;
    height: 56px;
  }

  .team-name {
    font-size: 12px;
  }

  .vs-text {
    font-size: 20px;
  }

  .broadcast-logo {
    width: 18px;
    height: 18px;
  }
}