body {
  font-family: 'Titillium Web', sans-serif;
}

.season-section {
  margin: 0;
  background-color: #15151e;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.season-title {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 15px;
  border-bottom: 2px solid #e10600;
  padding-bottom: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}
thead {
  background-color: #15151e;
  color: white;
  border-bottom: 1px solid #151f34;
}
th {
  padding: 10px 1px;
  text-align: left;
  font-weight: bold;
}
td {
  padding: 10px 1px;
  border-bottom: 1px solid #151f34;
}
tr:hover {
  background-color: #151f34;
  transition: 200ms;
}
.position {
  font-weight: bold;
  color: #ffffff;
  min-width: 30px;
  padding-left: 12px;
}

.logo-cell {
  text-align: center;
  width: 60px;
}

.team-logo {
  max-width: 40px;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
#standings-container {
  max-width: 100%;
  width: 100%;
}
.season-selector {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}
.season-selector label {
  font-weight: bold;
  color: #ffffff;
}
.season-selector select {
  padding: 8px 12px;
  font-size: 16px;
  border: 2px solid #e10600;
  border-radius: 4px;
  cursor: pointer;
  background-color: white;
}
.season-selector select:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(225, 6, 0, 0.5);
}

.content-wrapper {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  align-items: flex-start;
}

.standings-panel .season-section {
  margin-top: 0;
}

.standings-panel {
  flex: 0 0 25%;
  min-height: 50vh;
}

.chart-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: transparent;
  padding: 0;
}

#chart-container {
  background-color: #15151e;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 50vh;
  min-height: 400px;
}

.chart-title {
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 15px;
  border-bottom: 2px solid #e10600;
  padding-bottom: 10px;
}

svg {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: 100%;
}

.line {
  fill: none;
  stroke-width: 2;
}

.flag-link {
  transition: opacity 0.2s;
}

.x-axis image {
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

text.axis-label {
  fill: #ffffff;
  font-size: 12px;
}

#position-chart-container {
  background-color: #15151e;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 50vh;
  min-height: 400px;
}

.tooltip {
  position: fixed;
  padding: 12px 15px;
  background-color: rgba(0, 0, 0, 0.9);
  color: #ffffff;
  border: 2px solid #e10600;
  border-radius: 6px;
  pointer-events: none;
  font-size: 12px;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.6;
}

.shared-legend {
  background-color: #15151e;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.legend-title {
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 12px;
  border-bottom: 2px solid #e10600;
  padding-bottom: 8px;
}

.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-left: 4px solid;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  flex-shrink: 0;
}

.legend-text {
  color: #ffffff;
  font-size: 12px;
  white-space: nowrap;
}
