@import url("https://fonts.googleapis.com/css2?family=Arial:wght@500;700&family=Roboto:wght@400;700&display=swap");


.stats-card {
  background: rgba(0, 0, 0, 0.9);
  border-radius: 12px;
  padding: 20px;
  max-width: 800px;

  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-left: 4px solrgb(255, 255, 255) 81C;
  /* Gold Accent */
}

h2 {
  text-align: center;
  color: var(--text_color);

  margin-top: 0;
  text-transform: uppercase;
  font-size: 1.5rem;
}

.match-info {
  text-align: center;
  color: var(--text_color);
  font-size: 0.9rem;
  margin-bottom: 20px;
  border-bottom: var(--border);
  padding: 10px 20px;
  background-color: var(--background_white_trans);
  display: flex;
  justify-content: space-between;
  align-items: center;

}

/* --- TIMELINE CONTAINER --- */
.match_event_container {
  position: relative;
  padding: 10px 0;
}

/* The vertical line */
.match_event_container::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--background_white);
  transform: translateX(-50%);
}

.event-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  position: relative;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 0.4s ease forwards;
}

/* Time Bubble in Center */
.event-time {
  background: #007749;
  /* Green Accent */
  color: white;
  font-weight: bold;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 12px;
  z-index: 2;
  min-width: 30px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Left and Right Sides */
.event-side {
  width: 45%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.side-home {
  justify-content: flex-end;
  /* Align to center line */
  text-align: right;
  padding-right: 15px;
  /* Spacing from time */
}

.side-away {
  justify-content: flex-start;
  /* Align to center line */
  text-align: left;
  padding-left: 15px;
  /* Spacing from time */
}

/* Event Content */
.player-name {
  font-weight: 600;
  font-size: 1.2rem;
  font-weight: bold;
}

.detail-text {
  font-size: 0.8rem;
  color: #aaa;
}

.more-detail-text {
  font-size: 0.8rem;
  color: #ffa600ab;
  font-weight: bold;
}

/* Icons */
.icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.loading {
  text-align: center;
  color: #888;
  padding: 20px;
  font-style: italic;
}

/* Error Message */
.error {
  color: #e74c3c;
  text-align: center;
}

.teams_stats_wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.teams_stats_wrapper .teams_stats {
  display: flex;
  display: flex;
  justify-content: center;
  align-items: center;
}

.teams_stats_team_logo {
  height: 50px;
  width: 50px;
  border-radius: 50;
  margin: 20px 20px;
}

.teams_stats_team_logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.match_event_container {
  height: 55vh;
  overflow: hidden;
  /* background-color: #007749; */
}

.match_event {
  transform: translateY(0);
  transition: transform 1s ease;
}

.loading_wrapper {
  width: 60%;
  background-color: #333;
  box-shadow: 5px 2px 5px rgba(0, 0, 0, 0.555);
  border-radius: 20px;
  padding: 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 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;
}

.match_event_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);
}