/* Match event and prediction summary sections */
.event-icon.event-penalty svg,
.event-icon.event-missed-penalty svg,
.event-icon.event-own-goal svg {
  width: 16px;
  height: 16px;
}

.event-icon.event-penalty,
.event-icon.event-missed-penalty,
.event-icon.event-own-goal,
.event-icon.event-goal {
  color: var(--bodyText);
}

.match-data-container {
  margin-bottom: 2rem;
}

.half-header {
  border-radius: 0.25rem;
  display: flex;
  justify-content: space-between;
  background: var(--lightGrey);
  padding: 0.5rem 1rem;
  margin: 1rem 0 0.5rem;
}

.half-header h3 {
  font-size: 1rem;
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  font-family: "Red Hat Display";
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.event-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  margin-bottom: 0.25rem;
  min-height: 44px;
}

.event-time {
  grid-column: 2;
  grid-row: 1;
  min-width: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--darkGrey);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.event-content {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  min-width: 0;
}

.away-team .event-content {
  grid-column: 3;
  justify-self: end;
}

.away-content {
  justify-content: flex-end;
  text-align: right;
  flex-direction: row-reverse;
}

.away-team {
  flex-direction: row-reverse;
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.event-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.away-content .event-details {
  text-align: right;
}

.player-in {
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 400;
}

.player-out {
  color: var(--error);
  font-size: 0.75rem;
  opacity: 0.6;
}

.event-player {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--titleText);
}

.score-display {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--bodyText);
  padding: 0.25rem 0.5rem;
  background: var(--lightBlue);
  border-radius: 24px;
  border: 1px solid var(--mediumGrey);
}

.event-assist,
.event-detail,
.event-type {
  font-size: 0.75rem;
  opacity: 0.7;
}

.event-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
}

.event-icon.event-goal {
  color: var(--green);
}

.event-icon.event-yellow-card {
  color: #ffc107;
}

.event-icon.event-red-card {
  color: var(--error);
}

.event-icon.event-var {
  color: var(--primaryAlt);
}

.empty-events,
.empty-stats {
  text-align: center;
  padding: 1rem;
  opacity: 0.7;
}

.additional-info {
  display: flex;
  justify-content: center;
  padding: 0.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 0.25rem;
  margin: 0.5rem 0;
  font-size: 0.875rem;
  font-style: italic;
  opacity: 0.8;
}

.live-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: var(--green);
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.prediction-summary-img {
  position: absolute;
  background-image:
    linear-gradient(15deg, rgba(255, 255, 255, 1) 20%, rgba(255, 255, 255, 0.1) 50%),
    var(--prediction-team-logo);
  width: 150px;
  height: 150px;
  top: -0.75rem;
  right: -0.25rem;
  background-size: cover;
  opacity: 0.15;
  z-index: 0;
  transform: rotate(12deg);
}

.prediction-summary {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  padding: 1rem;
  border-radius: 0.5rem;
  gap: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-blue);
  border: 1px solid var(--lightGrey);
  margin-bottom: 1rem;
}

.prediction-summary-rest {
  display: flex;
  flex-direction: row;
  background-color: var(--white);
  padding: 0.75rem;
  border-radius: 0.5rem;
  gap: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-blue);
  border: 1px solid var(--lightGrey);
  margin-bottom: 1rem;
}

.winner-badge-rest {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  flex: 1;
  gap: 0.75rem;
  min-width: 0;
}

.summary-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  justify-content: space-between;
  min-width: 0;
}

.summary-title {
  color: var(--bodyText);
  font-weight: 500;
  font-size: 1rem;
  margin: 0;
}

.summary-winner {
  font-size: 1.75rem;
  color: #0F3157;
  font-family: "Red Hat Display";
  font-weight: 600;
  line-height: 1;
}

.summary-odds {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  width: 100%;
  z-index: 1;
}

.summary-odd-button {
  display: flex;
  min-height: 32px;
  padding: 0 0 0 12px;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  border-radius: 4px;
  border: 1px solid #EBEBEB;
  background: var(--white);
  overflow: hidden;
}

.summary-bet {
  display: flex;
  flex: 1;
  min-width: 0;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 12px 0 0;
}

.summary-bet-value {
  color: var(--darkGrey);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
}

.summary-odd-value {
  color: var(--primaryAlt);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.probability-circle-container {
  display: flex;
  justify-content: center;
  flex: 0 0 auto;
}

.probability-circle {
  position: relative;
  width: var(--probability-circle-size, 120px);
  height: var(--probability-circle-size, 120px);
  border-radius: 50%;
  background-color: var(--white);
  transition: transform var(--motion-duration-long) var(--motion-easing-standard);
}

.probability-circle:hover {
  transform: scale(1.05);
}

.circle-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.circle-value {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px;
}

.circle-value-label {
  font-size: 0.8rem;
  color: var(--darkGrey);
  margin-bottom: 2px;
}

.circle-value-percent {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0F3157;
}

.match-analysis-alert,
.prediction-summary .alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
}

.match-analysis-alert-info,
.prediction-summary .alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

.match-analysis-alert-warning,
.prediction-summary .alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
}

.team-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.home-badge img,
.away-badge img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.prediction-summary-rest .empty-state,
.prediction-summary .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.prediction-summary-rest .empty-state svg,
.prediction-summary .empty-state svg {
  margin-bottom: 1rem;
  opacity: 0.5;
}

.prediction-summary-rest .empty-state p,
.prediction-summary .empty-state p {
  color: var(--bodyText);
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.7;
}

@media only screen and (max-width: 768px) {
  .event-player,
  .event-type,
  .event-assist {
    font-size: 0.75rem;
  }

  .event-time {
    font-size: 0.875rem;
    padding: 0 0.5rem;
  }

  .half-header h3 {
    font-size: 1rem;
  }
}

@media only screen and (max-width: 480px) {
  .event-content {
    gap: 0.5rem;
    padding: 0;
  }

  .event-item {
    margin-bottom: 0.75rem;
  }

  .player-in,
  .event-player {
    font-size: 0.875rem;
  }

  .player-out {
    font-size: 0.75rem;
  }

  .half-header h3 {
    font-size: 0.875rem;
  }
}
