.matches-table__header {
  display: flex;
  align-items: center;
  background: #f4f4f4;
  border-radius: 10px 10px 0 0;
  min-height: 40px;
}

.matches-table__info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  min-width: 0;
  font-size: 14px;
  color: #7d7d7d;
}

.matches-table__sport-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.matches-table__sport-link:hover .matches-table__sport-name {
  color: #232323;
}

.matches-table__sport-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: #7d7d7d;
}

.matches-table__sport-icon svg {
  width: 16px;
  height: 16px;
}

.matches-table__flag {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 2px;
}

.matches-table__dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #7d7d7d;
  flex-shrink: 0;
}

.matches-table__odds-header {
  display: flex;
  flex-shrink: 0;
}

.matches-table__odds-label {
  width: 128px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #7d7d7d;
  background: #f4f4f4;
  border-left: 1px solid #fff;
}

.matches-table__odds-label:last-child {
  border-radius: 0 10px 0 0;
}

.matches-table__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.matches-table__row {
  display: flex;
  align-items: center;
  min-height: 50px;
  border-bottom: 1px solid #f4f4f4;
}

.matches-table__row:last-child {
  border-bottom: none;
}

a.matches-table__match-link {
  text-decoration: none;
  color: inherit;
}

a.matches-table__match-link:hover {
  color: var(--primary);
}

.matches-table__match-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 20px;
  min-width: 0;
}

.matches-table__time {
  width: 40px;
  flex-shrink: 0;
  font-size: 14px;
  color: #7d7d7d;
}

a.matches-table__league--link,
a.matches-table__sport-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.15s ease;
}

a.matches-table__league--link:hover,
a.matches-table__sport-link:hover,
a.matches-table__sport-link:hover .matches-table__sport-name {
  color: var(--primary);
}

.matches-table__team-slot {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.matches-table__team-slot--home {
  justify-content: flex-end;
}

.matches-table__team-slot--away {
  justify-content: flex-start;
}

.matches-table__filler {
  flex: 1;
  min-width: 0;
  align-self: stretch;
}

.matches-table__team {
  font-size: 14px;
  color: #232323;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
  max-width: 100%;
}

.matches-table__team--home {
  text-align: right;
}

.matches-table__team--away {
  text-align: left;
}

a.matches-table__team--link {
  text-decoration: none;
  color: #232323;
  transition: color 0.15s ease;
}

a.matches-table__team--link:hover {
  color: var(--primary);
}

.matches-table__team-logo {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  object-fit: contain;
}

.matches-table__team-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.matches-table__separator {
  font-size: 16px;
  color: #232323;
  flex-shrink: 0;
  min-width: 20px;
  text-align: center;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

a.matches-table__separator {
  text-decoration: none;
}

.matches-table__odds {
  display: flex;
  flex-shrink: 0;
}

.matches-table__odd {
  width: 128px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #f4f4f4;
}
.matches-table__odd-inner {
  background: var(--grey-light);
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  padding: 7px 20px;
  justify-content: space-between;
}

.matches-table__odd-value {
  font-size: 14px;
  font-weight: 700;
  color: #232323;
}

.matches-table__odd-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.matches-table__odd-link:hover .matches-table__odd-inner {
  background: #e8f0fe;
}

.matches-table__odd-bk {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.matches-table__odd--changed {
  animation: mt-highlight 2s ease-out;
}

@keyframes mt-highlight {
  0% {
    background: #e8f5e9;
  }
  100% {
    background: transparent;
  }
}

.matches-table__row-header {
  display: none;
}

.matches-table__odd-label {
  display: none;
}

.matches-table__empty {
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: #7d7d7d;
}

.matches-table__row[data-status="inprogress"] .matches-table__time {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.matches-table__row[data-status="inprogress"] .matches-table__time::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e53935;
  flex-shrink: 0;
  animation: mt-pulse 1.5s ease-in-out infinite;
}

@keyframes mt-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

@media (max-width: 768px) {
  .matches-table__header {
    display: none;
  }

  .matches-table__body {
    gap: 12px;
  }

  .matches-table__row {
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    gap: 0;
  }

  .matches-table__row:last-child {
    border-bottom: 1px solid #ebebeb;
  }

  .matches-table__row-header,
  a.matches-table__match-link.matches-table__row-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 12px;
    color: #7d7d7d;
    border-bottom: 1px solid #ebebeb;
  }

  .matches-table__row-header .matches-table__sport-icon svg {
    width: 14px;
    height: 14px;
  }

  .matches-table__match-info {
    padding: 8px 16px;
    justify-content: center;
  }

  .matches-table__time {
    display: none;
  }

  .matches-table__team {
    font-size: 12px;
  }

  .matches-table__filler {
    display: none;
  }

  .matches-table__team-slot {
    flex: 1;
    min-width: 0;
  }

  .matches-table__odds {
    padding: 0 8px 8px;
    border-top: none;
    gap: 10px;
  }

  .matches-table__odd {
    flex: 1;
    width: auto;
    height: auto;
    border-left: none;
  }

  .matches-table__odd-inner {
    width: 100%;
    justify-content: space-between;
    gap: 2px;
    padding: 8px;
    border-radius: 10px;
  }

  .matches-table__odd-label {
    display: inline;
    font-size: 12px;
    font-weight: 400;
    color: #232323;
  }

  .matches-table__odd-bk {
    width: 20px;
    height: 20px;
  }
}
