.home-container {
  margin: 12px auto 12px;
  padding: 8px;
  border-radius: 8px;
  max-width: 600px; width: 100%;
  background-color: var(--primary-dark);
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.15);
}

.home-subcontainer {
  margin: 12px auto 12px;
  padding: 8px;
  border-radius: 8px;
  max-width: 1000px; width: 100%;
  background-color: var(--primary-dark);
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.15);
}





.home-tab-menu {
  list-style-type: none;
  margin: 0; padding: 0;
  height: 40px;
  overflow: hidden;
  display: flex; justify-content: center;
  align-items: center;
  background-color: transparent;
  border-bottom: 1px solid var(--secondary-color);
}
.home-tab-menu button {
  display: block;
  margin: 0 2px; padding: 4px;
  min-width: 32px;
  color: var(--text-primary);
  background-color: transparent;
  border: none; outline: none;
  border-radius: 0;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s;
}
.home-tab-menu button.active {
  color: var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
  font-size: 24px;
  pointer-events: none;
}
.home-tab-menu button:hover { color: var(--accent-color); }





.tournament-container { display: flex; margin: 12px auto; max-width: 976px; overflow-x: auto; }

.tournament-matches-container { flex-shrink: 0; width: 232px; height: 391px; padding: 0 4px; }
.tournament-matches-table-container { flex-shrink: 0; width: 100%; height: 368px; overflow-y: auto; border: 1px solid var(--primary-color); }
.tournament-matches-table-title-container { display: flex; justify-content: space-between; align-items: center; }
.tournament-matches-table-title { font-size: 14px; }
.tournament-matches-table-title-arrow {
  background: none; border: none;
  margin: 0; padding: 0;
  margin: -28px -12px -14px -12px;
  font-size: 52px;
  transform: scaleX(0.5);
  cursor: pointer;
  color: var(--secondary-color);
  text-align: center;
}
.tournament-matches-table-title-arrow:hover { color: var(--accent-color); transition: 0.3s; }
.tournament-matches-table-title-arrow.inactive { color: var(--text-muted); pointer-events: none; }


td.tournament-matches-table-match-container { text-align: left; padding: 0; }
td.tournament-matches-table-match-container a {
  color: var(--text-primary);
  text-align: left; text-decoration: none;
  border: transparent; border-radius: 0;
  width: 100%; height: 100%;
  transition: all 0.3s ease;
  cursor: pointer;
}
.tournament-matches-table-match-container a:hover { background-color: var(--accent-color); }
.tournament-matches-table-match-container.highlight { background-color: var(--secondary-color); }
.tournament-matches-table-match-info-container { margin: 2px 0px; font-size: 12px; }
.tournament-matches-table-match-team-container { display: flex; align-items:center; margin: 2px 0 2px 8px; }
.tournament-matches-table-match-team-score { margin-right: 4px; }
.tournament-matches-table-match-team-name {}

.tournament-event-container { display: flex; flex-grow: 1; flex-direction: column; width: 100%; height: 100%; }

.tournament-title { font-size: 30px; font-weight: bold; color: var(--text-primary); text-align: center; text-wrap: balance; }
.tournament-title a { background-color: transparent; color: var(--secondary-color); text-decoration: underline; }
.tournament-subtitle { font-size: 24px; font-weight: bold; color: var(--text-primary); text-align: center; text-wrap: balance; }

.tournament-standings-container { display: flex; flex-grow: 1; flex-direction: column; height: 325px; }
.tournament-standings-content { display: flex; flex-grow: 1; }

.tournament-team-standings-container { flex-grow: 1; display: flex; flex-direction: column; height: 285px; padding: 0 4px; }
.tournament-player-standings-container { flex-grow: 1; display: flex; flex-direction: column; height: 285px; padding: 0 4px; }

.tournament-section-title { font-size: 20px; font-weight: bold; color: var(--text-primary); text-align: center; }

.tournament-team-standings-table-container { margin: 0; height: 100%; overflow-y: auto; }
.tournament-player-standings-table-container { margin: 0; height: 100%; overflow-y: auto; }

.tournament-matches-table-container .standard-table { width: 100%; }
.tournament-team-standings-table-container .standard-table { width: 100%; }
.tournament-player-standings-table-container .standard-table { width: 100%; }





.subseason-container { display: flex; margin: 12px auto; max-width: 976px; overflow-x: auto; }

.subseason-tournaments-container { flex-shrink: 0; width: 190px; height: 391px; padding: 0 4px; }
.subseason-tournaments-table-container { flex-shrink: 0; width: 100%; height: 368px; overflow-y: auto; border: 1px solid var(--primary-color); }
.subseason-tournaments-table-title { font-size: 14px; }



td.subseason-tournaments-table-tournament-container {  padding: 0; }
td.subseason-tournaments-table-tournament-container a {
  color: var(--text-primary);
  text-align: left; text-decoration: none;
  border: transparent; border-radius: 0;
  width: 100%; height: 100%;
  transition: all 0.3s ease;
  cursor: pointer;
}
.subseason-tournaments-table-tournament-container a:hover { background-color: var(--accent-color); }
.subseason-tournaments-table-tournament-container.highlight { background-color: var(--secondary-color); }
.subseason-tournaments-table-tournament-name {}
.subseason-tournaments-table-tournament-location { font-size: 12px; margin: 2px 0 2px 12px; }
.subseason-tournaments-table-tournament-date-range { font-size: 12px; margin: 2px 0 2px 12px; }

.subseason-event-container { display: flex; flex-grow: 1; flex-direction: column; width: 100%; height: 100%; }

.subseason-title { font-size: 30px; font-weight: bold; color: var(--text-primary); text-align: center; text-wrap: balance; }
.subseason-title a { background-color: transparent; color: var(--secondary-color); text-decoration: underline; }
.subseason-subtitle { font-size: 24px; font-weight: bold; color: var(--text-primary); text-align: center; text-wrap: balance; }

.subseason-standings-container { display: flex; flex-grow: 1; flex-direction: column; height: 325px; }
.subseason-standings-content { display: flex; flex-grow: 1; }

.subseason-team-standings-container { flex-grow: 1; display: flex; flex-direction: column; height: 285px; padding: 0 4px; }
.subseason-player-standings-container { flex-grow: 1; display: flex; flex-direction: column; height: 285px; padding: 0 4px; }

.subseason-section-title { font-size: 20px; font-weight: bold; color: var(--text-primary); text-align: center; }

.subseason-team-standings-table-container { margin: 0; height: 100%; overflow-y: auto; }
.subseason-player-standings-table-container { margin: 0; height: 100%; overflow-y: auto; }

.subseason-tournaments-table-container .standard-table { width: 100%; }
.subseason-team-standings-table-container .standard-table { width: 100%; }
.subseason-player-standings-table-container .standard-table { width: 100%; }





@media (max-width: 667px) { .home-container { max-width: 90%; min-width: 460px; } }
@media (max-width: 1131px) { .home-subcontainer { max-width: 90%; min-width: 460px; } }
