.oddsapi-odds {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
}

 .oddsapi-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
 }

 .oddsapi-legend-item {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: #21221e;
 }

 .oddsapi-debug {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background-color: #f1f2f4;
  border: 1px solid #d6d9de;
  color: #33373d;
  font-size: 13px;
  line-height: 1.5;
  overflow-x: auto;
 }

.oddsapi-day-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 8px;
}

.oddsapi-day-nav__title,
.oddsapi-day-title {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  color: #3d5631;
}

.oddsapi-day-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  background-color: #eee;
  border: 1px solid #ddd;
  color: #21221e;
  text-decoration: none;
  font-weight: 600;
}

 .oddsapi-day-nav__btn:hover {
  background-color: #e4e4e4;
 }

 .oddsapi-day-nav__btn--disabled {
  background-color: #f1f2f4;
  border-color: #d6d9de;
  color: #8a8d93;
  cursor: not-allowed;
  pointer-events: none;
 }

.oddsapi-card {
  border-radius: 12px;
  background-color: #f8fbf4;
  box-shadow: 0 0 0 0.39px rgba(153, 198, 106, 0.2) inset,
              -1.96px -1.96px 5.87px #fff,
              2.94px 2.94px 5.87px rgba(148, 151, 136, 0.4);
  overflow: hidden;
}

.oddsapi-accordion {
  padding: 0;
}

.oddsapi-accordion__header {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  background-color: #eee;
  border-bottom: 1px solid #ddd;
}

.oddsapi-accordion__header::-webkit-details-marker {
  display: none;
}

.oddsapi-accordion__title {
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: #21221e;
}

.oddsapi-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
}

.oddsapi-card__day {
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  color: #3d5631;
}

.oddsapi-card__labels {
  display: grid;
  grid-template-columns: repeat(3, 55px) 220px;
  gap: 12px;
  align-items: center;
  justify-content: end;
  font-size: 14px;
  color: #51524d;
  text-transform: lowercase;
  margin-right: 75px;
}
.oddsapi-card__labels span:last-of-type{
  text-align: right;
}

.oddsapi-rows {
  border-top: 1px solid #ddd;
}

.oddsapi-row {
  display: grid;
  grid-template-columns: 64px 1fr 260px 220px;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid #d6eac2;
}

.oddsapi-row__bookmakers {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.oddsapi-bm {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  overflow: hidden;
}
.oddsapi-bm img{
  margin: 0 !important;
  border-radius: 8px;
}

.oddsapi-bm-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.oddsapi-row:nth-child(odd) {
  background-color: transparent;
}

.oddsapi-row:nth-child(even) {
  background-color: transparent;
}

.oddsapi-row__time {
  font-weight: 700;
  color: #21221e;
}

.oddsapi-row__teams {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.oddsapi-team {
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  color: #21221e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oddsapi-row__bm {
  font-size: 13px;
  line-height: 18px;
  color: #51524d;
  text-decoration: none;
}

.oddsapi-row__compare {
  font-size: 10px;
  line-height: 18px;
  color: #3d5631;
  font-weight: 600;
  text-decoration: none;
}

.oddsapi-row__compare--arrow::after {
  content: '→';
  margin-left: 6px;
}

.oddsapi-row__odds {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.oddsapi-odd-btn {
  border-radius: 8px;
  background-color: #fff;
  border: 1px solid #99c66a;
  padding: 10px 0;
  font-weight: 700;
  color: #3d5631;
}

.oddsapi-odd-btn--home {
  background-color: #eaf3ff;
  border-color: #b7d4ff;
  color: #1e3a5f;
}

.oddsapi-odd-btn--draw {
  background-color: #f1f2f4;
  border-color: #d6d9de;
  color: #33373d;
}

.oddsapi-odd-btn--away {
  background-color: #ffecef;
  border-color: #ffbdc7;
  color: #7a1f2b;
}

.oddsapi-odd-btn.oddsapi-odd-move--down {
  background-color: #eaf3ff;
  border-color: #b7d4ff;
  color: #1e3a5f;
}

.oddsapi-odd-btn.oddsapi-odd-move--same {
  background-color: #f1f2f4;
  border-color: #d6d9de;
  color: #33373d;
}

.oddsapi-odd-btn.oddsapi-odd-move--up {
  background-color: #ffecef;
  border-color: #ffbdc7;
  color: #7a1f2b;
}

.oddsapi-footer-link {
  margin-top: 12px;
  text-align: center;
}

.oddsapi-footer-link a {
  color: #3d5631;
  font-weight: 600;
  text-decoration: none;
}

.oddsapi-compare {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.oddsapi-compare__back {
  display: inline-flex;
  align-self: flex-start;
  color: #3d5631;
  font-weight: 700;
  text-decoration: none;
}

.oddsapi-compare__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  color: #3d5631;
}

.oddsapi-compare__meta {
  margin-top: -10px;
  color: #51524d;
}

.oddsapi-compare__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.oddsapi-compare__legend-item {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: #21221e;
}

.oddsapi-compare__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.oddsapi-compare__tab {
  appearance: none;
  border: 1px solid #d6eac2;
  background: #fff;
  color: #3d5631;
  font-weight: 700;
  font-size: 14px;
  line-height: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.oddsapi-compare__tab.is-active {
  background: #3d5631;
  border-color: #3d5631;
  color: #fff;
}

.oddsapi-compare__panel {
  display: none;
}

.oddsapi-compare__panel.is-active {
  display: block;
}

.oddsapi-compare__swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background: #fff;
}

.oddsapi-compare__swatch--best {
  border: 2px solid #99c66a;
}

.oddsapi-compare__swatch--shortening {
  background-color: #eaf3ff;
  border-color: #b7d4ff;
}

.oddsapi-compare__swatch--drifting {
  background-color: #ffecef;
  border-color: #ffbdc7;
}

.oddsapi-compare__table {
  display: grid;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.oddsapi-compare__thead,
.oddsapi-compare__tr {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 90px;
  align-items: center;
}

.oddsapi-compare__th--outcome,
.oddsapi-compare__td--outcome {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 100px;
  grid-column: 1;
  background: #F8FBF4;
}

.oddsapi-compare__thead .oddsapi-compare__th--outcome {
  background-color: #E5F2D9;
  z-index: 3;
}

.oddsapi-compare__th--bm {
  min-width: 90px;
  text-align: center;
}

.oddsapi-compare__thead {
  background-color: #e5f2d9;
  border-top: 1px solid #d6eac2;
  border-bottom: 1px solid #d6eac2;
  position: sticky;
  top: 0;
  z-index: 4;
}

.oddsapi-compare__th,
.oddsapi-compare__td {
  padding: 10px 12px;
  font-size: 14px;
}

.oddsapi-compare__td {
  text-align: center;
}

.oddsapi-compare__td--outcome {
  text-align: left;
}

.oddsapi-compare__th:last-child,
.oddsapi-compare__td:last-child {
  border-right: 0;
}

.oddsapi-compare__th {
  font-weight: 700;
  color: #21221e;
}

.oddsapi-compare__tr {
  border-bottom: 1px solid #d6eac2;
}

.oddsapi-compare__td--bm {
  font-weight: 700;
  color: #21221e;
}

 .oddsapi-compare__bm-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 4px;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
 }

 .oddsapi-compare__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 6px 10px;
  border-radius: 999px;
  background-color: #f1f2f4;
  border: 1px solid #d6d9de;
  color: #21221e;
  font-weight: 700;
  line-height: 1;
 }

 .oddsapi-compare__pill--best {
  box-shadow: 0 0 0 2px #99c66a inset;
  background-color: #ffffff;
  border-color: #99c66a;
 }

 .oddsapi-compare__pill--shortening {
  background-color: #eaf3ff;
  border-color: #b7d4ff;
  color: #1e3a5f;
 }

 .oddsapi-compare__pill--drifting {
  background-color: #ffecef;
  border-color: #ffbdc7;
  color: #7a1f2b;
 }

@media (max-width: 900px) {
  .oddsapi-compare__table {
    overflow-x: auto;
  }
  .oddsapi-compare__thead,
  .oddsapi-compare__tr {
    min-width: 700px;
  }
}

@media (max-width: 1000px) {
  .oddsapi-row {
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
  }

  .oddsapi-row__odds {
    grid-column: 1 / -1;
  }

  .oddsapi-card__labels {
    grid-template-columns: repeat(3, 1fr);
    width: 220px;
    margin-right: 0;
  }

  .oddsapi-row__bookmakers {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .oddsapi-card__labels span:last-of-type{
    display: none;
  }
}
