.stats-card {
  border-radius: 15px;
  padding: 20px;
  width: 100%;

  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.781);
  border-left: var(--border);
  margin: 30px auto;
  background-color: var(--background_white);

}

h2 {
  text-align: center;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  font-size: 1rem;
  color: #ddd;
}



.stat-row {
  /* margin-bottom: 20px; */
  opacity: 0;
  animation: fadeIn 0.5s forwards;
  /* background-color: #051a12c2; */
  /* border: 0.5px solid #ffffff23; */
  /* box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.541); */

  /* border-radius: 10px; */
  /* overflow: hidden; */
  /* padding: 10px; */
  /* margin-bottom: 20px; */
  padding: 0;
  margin: 0;
  height: 30px;
}

.stat-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: small;
  font-weight: lighter;
  margin-bottom: 0;
  text-transform: uppercase;

  color: #ffffff;
  padding: 0 20px;
  text-align: center;
  gap: 5px;
}

.stat-label .stats_score {
  /* background: rgba(0, 0, 0, 0.589); */
  padding: 0;
  width: 20%;
}

.stat-label .stats_type {
  /* background: rgba(0, 0, 0, 0.589); */
  width: 60%;
  padding: 0;
}

.bar-container {
  display: flex;
  height: 5px;
  background: #333;
  /* border-radius: 4px; */
  /* overflow: hidden; */
  /* display: none; */
}

/* Team Colors */
.bar-home {
  background-color: var(--background_red_trans);
  height: 100%;
  transition: width 1s ease;
}

/* Green */
.bar-away {
  background-color: var(--background_blue);
  height: 100%;
  transition: width 1s ease;
}

/* Yellow */

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.loading {
  text-align: center;
  color: var(--text_gray);
  font-style: italic;
}

.error {
  text-align: center;
  color: var(--text_red);
  font-size: 0.9rem;
}

.teams_stats_wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

.teams_stats_wrapper .teams_stats {
  display: flex;
  display: flex;
  justify-content: center;
  align-items: center;
  /* background-color: #007749; */
}

.teams_stats_team_logo {
  height: 50px;
  width: 50px;
  border-radius: 50;
  margin: 20px 10px;
  /* background-color: #e74c3c; */
}

.teams_stats_team_logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teams_stats_wrapper .teams_stats p {
  font-size: medium;
  font-weight: lighter;
}

.stats_list_container {
  position: relative;
  height: 70vh;
  overflow: hidden;
}

.stats_list {
  transform: translateY(0);
  transition: transform 1s ease;
}

/* Pagination Controls */
.pagination-controls {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.stats_list_container:hover .pagination-controls {
  opacity: 1;
  pointer-events: auto;
}

.pagination-btn {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  transition: background 0.2s ease;
}

.pagination-btn:hover {
  background: rgba(0, 0, 0, 0.85);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.pagination-info {
  font-size: 0.9rem;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
}

.details-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 10px 0;
  border-left: 4px solid var(--background_sky);
  background-color: var(--background_cream);
  margin-bottom: 20px;
  border-radius: 5px 0 0 0;
  width: 100%
}

.details-header h2 {
  margin: 0;
  padding: 0 20px;
}