/* Прогнозы матча (tab=stats) — карточки-аккордеоны в стиле «Экспресса дня» (exp2) */

.mp-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.mp-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-group-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mp-group-title {
  color: var(--text-dark-grey);
  font-size: 15px;
  font-weight: 800;
  line-height: 20px;
  margin: 0;
  padding: 0 2px;
}

.mp-group-title-content,
.mp-group-team {
  align-items: center;
  display: inline-flex;
}

.mp-group-title-content {
  flex-wrap: wrap;
  gap: 6px;
}

.mp-group-team {
  gap: 6px;
  min-width: 0;
}

.mp-group-team-logo {
  flex: 0 0 24px;
  height: 24px;
  object-fit: contain;
  width: 24px;
}

.mp-group-separator {
  color: var(--text-tetriary);
}

.mp-item {
  background: var(--grayscale-white, #fff);
  border: 1px solid var(--grayscale-gray-light);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(29, 42, 56, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mp-item:hover {
  border-color: var(--grayscale-body-xlight-darkmode);
  box-shadow: 0 6px 20px rgba(29, 42, 56, 0.10);
}

.mp-row {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 12px;
  padding: 12px 16px;
  text-align: left;
  user-select: none;
  width: 100%;
}

.mp-mid {
  display: block;
  flex: 1;
  min-width: 0;
}

.mp-bet {
  color: var(--text-black);
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-meta {
  align-items: center;
  color: var(--text-tetriary);
  display: flex;
  font-size: 12px;
  font-weight: 400;
  gap: 6px;
  line-height: 16px;
  margin-top: 4px;
  min-width: 0;
}

.mp-cat {
  color: var(--accent-primary-green);
  flex: none;
  font-weight: 700;
}

.mp-odd {
  align-items: center;
  background: var(--additional-dull-green-light);
  border: 1px solid var(--additional-dull-green);
  border-radius: 6px;
  box-sizing: border-box;
  color: var(--accent-darkgreen);
  display: inline-flex;
  flex: none;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  height: 40px;
  justify-content: center;
  line-height: 16px;
  padding: 0 14px;
  white-space: nowrap;
  width: 176px;
}

/* правый отступ = ширина шеврона (16px) + gap строки (12px), чтобы кнопка выравнивалась по чипу КФ */
.mp-body-content {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-right: 28px;
}

.mp-body-content .mp-text {
  flex: 1;
  min-width: 0;
}

.mp-bet-btn {
  align-items: center;
  background: var(--gradients-green);
  border-radius: 6px;
  color: var(--text-white, #fff);
  cursor: pointer;
  display: inline-flex;
  flex: none;
  font-size: 12px;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  line-height: 16px;
  padding: 0 20px;
  text-decoration: none;
  transition: filter 0.15s ease;
  white-space: nowrap;
}

.mp-bet-btn:hover {
  filter: brightness(1.06);
}

.mp-odd-logo {
  align-items: center;
  background: transparent;
  border-radius: 4px;
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 0 90px;
  height: 22px;
  justify-content: center;
  padding: 0;
  width: 90px;
}

.mp-odd-logo img {
  max-height: 16px;
  max-width: 78px;
  object-fit: contain;
}

.mp-chev {
  color: var(--text-tetriary);
  display: inline-flex;
  flex: none;
}

.mp-chev svg {
  height: 16px;
  transition: transform 0.3s ease;
  width: 16px;
}

.mp-item.is-open .mp-chev svg {
  transform: rotate(180deg);
}

.mp-body-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.mp-item.is-open .mp-body-wrap {
  grid-template-rows: 1fr;
}

.mp-body-wrap > div {
  overflow: hidden;
}

.mp-body {
  padding: 0 16px 14px;
}

.mp-body-head {
  align-items: center;
  border-top: 1px solid var(--grayscale-gray-light);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-top: 12px;
}

.mp-body-title {
  color: var(--text-tetriary);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

.mp-text {
  color: var(--grayscale-body-light);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  margin: 0;
  max-width: 820px;
}

@media (max-width: 1023px) {
  .mp-item,
  .mp-item:hover {
    background: transparent;
    box-shadow: none;
  }

  .mp-list {
    gap: 32px;
  }

  .mp-group-list {
    gap: 10px;
  }

  .mp-group-title {
    font-size: 14px;
    line-height: 18px;
  }

  .mp-group-team-logo {
    flex-basis: 22px;
    height: 22px;
    width: 22px;
  }

  .mp-row {
    gap: 10px;
    padding: 10px 12px;
  }

  .mp-bet {
    font-size: 13px;
    line-height: 16px;
    white-space: normal;
  }

  .mp-meta {
    flex-wrap: wrap;
  }

  .mp-odd {
    flex: 0 0 176px;
    height: 36px;
    padding: 0 12px;
    width: 176px;
  }

  .mp-body {
    padding: 0 12px 12px;
  }

  .mp-body-content {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding-right: 0;
  }
}

@media (max-width: 639px) {
  .mp-title-fitting .mp-group-title-content {
    flex-wrap: nowrap;
    width: max-content;
  }

  .mp-title-fitting .mp-group-team {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .mp-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 12px;
    gap: 10px 8px;
    padding: 12px;
  }

  .mp-mid {
    display: contents;
  }

  .mp-bet {
    grid-column: 1 / -1;
    grid-row: 1;
    line-height: 18px;
    overflow-wrap: anywhere;
  }

  .mp-meta {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
  }

  .mp-odd {
    grid-column: 2;
    grid-row: 2;
    gap: 6px;
    height: 32px;
    max-width: 150px;
    min-width: 0;
    padding: 0 8px;
    width: auto;
  }

  .mp-chev {
    grid-column: 3;
    grid-row: 2;
  }

  .mp-chev svg {
    height: 12px;
    width: 12px;
  }

  .mp-odd-logo {
    flex: 1 1 auto;
    max-width: 68px;
    min-width: 0;
    padding: 0;
    width: auto;
  }

  .mp-odd-logo img {
    max-width: 100%;
  }
}
