/* body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f5f5f5;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
} */

img {
  display: block;
  max-width: 100%;
}


/* CSS for section section:MatchWidget */
.match-widget-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 1400px;
  margin: 0 auto;
  margin-bottom: 20px;
  width: 100%;
}

.match-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background-color: #fff;
}

/* Header Styles */
.match-header {
  background-color: #e63946;
  padding: 12px;
  display: flex;
  align-items: center;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* .header-content > button {
  height: 100%;
} */

.league-icon {
  aspect-ratio: 1;
  height: 19px;
  margin: auto 0;
}

.league-title {
  display: -webkit-box;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  -webkit-line-clamp: 1; /* number of lines to show */
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Match List Styles */
.match-list {
  display: flex;
  flex-direction: column;
}

.match-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  gap: 10px;
  min-height: 40px;
  color: #000000;
}

/* Row Variants */
.row-yellow {
  background-color: #ffd700;
}

.row-white {
  background-color: #ffffff;
}

.row-dark {
  background-color: #1a1a2e;
  color: #ffffff;
}

/* Columns */
.row-left {
  flex-basis: 10%;
  flex-shrink: 0;
}

.row-center {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  gap: 0;
  /* Gaps handled by inner containers */
}

.row-right {
  flex-basis: 15%;
  /* Fixed width for alignment */
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* Typography */
.match-time {
  font-size: 16px;
  color: inherit;
}

.team-group {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 135px;
  /* Fixed width from Figma */
}

.team-group.home {
  justify-content: flex-end;
}

.team-group.away {
  justify-content: flex-start;
}

.team-name {
  font-size: 16px;
  color: inherit;
  white-space: nowrap;
}

/* .row-dark .team-name {
  color: #ffffff;
} */

.score-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  /* Fixed width from Figma */
}

.score {
  font-size: 16px;
  font-weight: 500;
  color: inherit;
  width: max-content;
}

/* .row-dark .score {
  color: #ffffff;
} */

.details-link {
  font-size: 14px;
  color: #0c00b1;
  text-decoration: none;
}

.row-dark .details-link {
  color: #ffffff;
}

/* Flag Icons / Merged Images */
.flag-icon {
  /* position: relative; */
  width: 34px;
  /* height: 24px; */
  flex-shrink: 0;
}

.flag-layer {
  /* position: absolute;
  top: 0;
  left: 0; */
  width: 100%;
  height: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .match-row {
    /* flex-wrap: wrap; */
    flex-direction: column;
    height: auto;
    padding: 8px 12px;
  }

  .row-left {
    width: 100%;
    font-weight: bold;
    font-size: 14px;
  }

  .row-center {
    width: 100%;
    justify-content: space-between;
  }

  .team-group {
    width: 100%;
  }

  .team-name {
    font-size: 14px;
    color: inherit;
    white-space: wrap;
  }

  .team-group.home > .team-name {
    text-align: right;
  }
  .team-group.away > .team-name {
    text-align: left;
  }

  .row-right {
    display: none;
    /* width: 100%;
    justify-content: flex-start; */
  }

  .league-title {
    font-size: 14px;
  }
}