/* Base styles */
.team-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.breadcrumb {
  font-size: 14px;
  margin-bottom: 10px;
}

.breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.team-header-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.team-header-left {
  flex: 0 0 75%;
}

.team-header-right {
  flex: 0 0 25%;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 6px;
}

.team-basic-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-logo {
  border-radius: 4px;
}

.league-logo {
  margin-top: 3px;
}

.team-tournament-selector {
  margin-top: 15px;
  display: inline;
}

.upcoming-matches {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
}

.upcoming-matches li {
  padding: 4px 0;
  font-size: 14px;
}

.team-page-bottom {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.team-bottom-left {
  flex: 0 0 60%;
  min-width: 0;
}

.team-bottom-right {
  flex: 0 0 40%;
  min-width: 300px;
}

/* TABLES */
.standings-table, .form-stats-table, .adv-stats-multicol, .fixtures-table, .outcome-table, .scorers-table, .summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.standings-table th, .standings-table td,
.form-stats-table th, .form-stats-table td,
.adv-stats-multicol th, .adv-stats-multicol td,
.fixtures-table th, .fixtures-table td,
.outcome-table th, .outcome-table td,
.scorers-table th, .scorers-table td,
.summary-table th, .summary-table td {
  padding: 8px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.standings-section {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.standings-table td a {
  text-decoration: none;
  color: #333;
}

.standings-table tr.current-team {
  background-color: #ffeaa7;
  font-weight: bold;
}

/* FORM colors */
.form-w { background: #4caf50; color: #fff; padding: 5px 8px; border-radius: 4px; }
.form-d { background: #ff9800; color: #fff; padding: 5px 8px; border-radius: 4px; }
.form-l { background: #f44336; color: #fff; padding: 5px 8px; border-radius: 4px; }

/* Widgets common box */
.advanced-stats-widget, .match-outcome-widget, .top-scorers-widget, .league-summary-widget {
  margin-top: 20px;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
}

/* Responsive part */
@media (min-width: 769px) {
  .team-page-bottom {
    flex-wrap: nowrap;
  }
}

@media (max-width: 768px) {
  .standings-table th:nth-child(9),
  .standings-table td:nth-child(9) {
    display: none;
  }
}

