:root {
    --ff-primary: -apple-system,
    blinkmacsystemfont,
    "Segoe UI",
    roboto,
    oxygen,
    ubuntu,
    cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
}

* {
    box-sizing: border-box;
}

.odds-block {
    margin-top: 1rem;
    font: normal 400 16px/24px var(--ff-primary);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    color: #fff;
}

.odds-block__item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #434f72;
    background: #000;
}

.odds-block__item:not(:has(.odds-block__item-coefficients)) {
	display: none;
}

.odds-block__item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    line-height: 12px;
}

.odds-block__item-date {
    margin-left: -15px;
    padding: 5px 10px 3px 14px;
    border-radius: 0 6px 6px 0;
    background-image: linear-gradient(70deg, #31bc69 -8%, #089e4e 96%);
    color: #fff;
}

.odds-block__item-league {
    margin: 10px 0 0;
    font-size: 18px;
    line-height: 18px;
    font-weight: 700;
    text-align: center;
}

.odds-block__item-teams {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    min-height: 36px;
    font-size: 14px;
    line-height: 16px;
}

.odds-block__item-team {
    flex: 1 0 42%;
    display: inline-block;
}

.odds-block__item-team.vs {
    min-width: 24px;
    flex-shrink: 0;
    flex-basis: 16%;
    text-align: center;
}

.team-1 {
    text-align: center;
}

.team-2 {
    text-align: center;
}

.odds-block__item-coefficients {
    margin-top: auto;
    display: flex;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid #434f72;
}

.odds-block__item-coefficients:has(+.odds-table__button) {
    margin-bottom: 10px;
}

.odds-block__item-coefficient {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 4px;
    background: rgba(164, 170, 181, .1215686275);
    color: #fff;
    font-size: 16px;
    line-height: 16px;
    font-weight: 400;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    flex: 1 1;
}

.odds-block__item-coefficient:hover {
    background-color: #31bc69;
    color: #fff;
}

.odds-block__item-coefficient.active {
    background-color: #31bc69;
    color: #fff;
}

.odds-block__item-link {
    margin-top: 10px;
    border-radius: 8px;
    border: none;
    color: #fff;
    padding: 12px 20px;
    line-height: 16px;
    font-size: 14px;
    width: 100%;
    background: linear-gradient(90deg, #835aeb 0, #03b4fe 100%);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.odds-block__item-link:hover {
    opacity: 0.7;
}

.odds-block__item-tip {
    font-size: 14px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.odds-block__item-tip {
    display: none;
}

.odds-block__item-tip span {
    font-size: 14px;
    color: #fff;
    width: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background-image: linear-gradient(70deg, #31bc69 -8%, #089e4e 96%);
}

/* next matches */
/* table */

.odds-table {
    margin-top: 1rem;
    font: normal 400 16px/24px var(--ff-primary);
    border-radius: 10px;
    padding: 2px;
    /*background: #2c323e;*/
    overflow: auto;
    color: #fff;
}

.odds-table thead,
.odds-table tbody {
    display: block;
}

.odds-table__wrapper {
    width: 100%;
}

.odds-table__wrapper:not(:has(.draw)) .odds-table__head-odds-item--draw {
    display: none;
}

.odds-table__wrapper:not(:has(.draw)) .odds-table__head-odds-item {
    flex-grow: 1;
}

.odds-table:not(:has(.odds-table__button)) {
    min-width: 800px
}

.odds-table__head {
    padding: 8px 12px 8px;
    display: grid;
    grid-template-columns: 1fr 168px 168px 168px;
    gap: 20px;
    /*background: #23304e;*/
    border-radius: 8px;
    margin-bottom: 4px;
    color: red;
}

.odds-table:not(:has(.odds-table__button)) .odds-table__head {
    grid-template-columns: 1fr 168px 168px;
}

.odds-table__title {
    white-space: nowrap;
    margin: 0;
    font-size: 16px;
}

.odds-table__head-odds {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}


.odds-table__head-odds span {
    width: 50px;
    text-align: center;
    text-transform: uppercase;
}

.odds-table__head-probability {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.odds-table__inner {
    padding: 4px;
    border-radius: 8px;
    background: #2c323e;
    display: grid;
    grid-template-columns: 60px minmax(240px, 1fr) 168px 168px 168px;
    gap: 22px;
    align-items: center;
}

.odds-table__inner:not(:has(.odds-table__button)) {
    grid-template-columns: 60px 1fr 168px 168px;
}

.odds-table__inner > * {
    position: relative;
}

.odds-table__inner > *:not(:last-child):after {
    content: "";
    position: absolute;
    top: 50%;
    right: -11px;
    height: 36px;
    width: 2px;
    translate: 0 -50%;
    background: #434f72;
}

.odds-table__inner + .odds-table__inner {
    margin-top: 4px;
}

.odds-table__date {
    text-align: center;
    padding: 0 4px;
    font-size: 14px;
    line-height: 16px;
}

.odds-table__teams {
    display: flex;
    flex-direction: column;
}

.odds-table__bet,
.odds-table__probabilities {
    display: flex;
    gap: 8px;
}

.odds-table__inner:not(:has(.odds-table__bet > *)) {
	display: none;
}

.odds-table__bet span,
.odds-table__probabilities span {
    background: rgba(164, 170, 181, .2);
    padding: 6px;
    border-radius: 4px;
    width: 50px;
    text-align: center;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
}

.odds-table__bet:not(:has(.draw)) span,
.odds-table__probabilities:not(:has(.draw)) span {
    width: 80px;
}

.odds-table__bet span.active {
    background-color: #31bc69;
    color: #fff;
}

.odds-table__probabilities span {
    font-size: 12px;
    padding: 6px 2px;
}

.odds-table__button {
    grid-column-end: -1;
    width: 100%;
    padding: 4px 8px !important;
}

/* table */
/* historical */
.odds-historical-table {
    margin-top: 1rem;
    font: normal 400 16px / 24px var(--ff-primary);
    border-radius: 10px;
    padding: 2px;
    background: #000;
    overflow: auto;
    color: #fff;
}

.odds-historical-table tbody {
    display: block;
}

.odds-historical-table__wrapper {
    width: 100%;
}

.odds-historical-table__header {
    display: block;
    margin-bottom: 4px;
}

.odds-historical-table__header tr {
    padding: 8px 0;
    display: grid;
    grid-template-columns: 72px minmax(140px, 200px) minmax(240px, 1fr) 60px 70px 60px;
    background: #434f72;
    color: #fff;
    border-radius: 8px;
}

.odds-historical-table__header-item {
    margin: 0;
    font-size: 16px;
    color: #fff;
    padding: 0 12px;
    text-align: center;
    display: block;
}

.odds-historical-table__item {
    position: relative;
    display: grid;
    grid-template-columns: 72px minmax(140px, 200px) minmax(240px, 1fr) 60px 70px 60px;
    border-radius: 8px;
    background: rgba(164, 170, 181, .15);
    align-items: center;
}
.odds-historical-table__item > * {
    position: relative;
    text-align: center;
    display: block;
    padding: 8px;
}

.odds-historical-table__item > *:not(:last-child):before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    height: 20px;
    width: 1px;
    translate: 0 -50%;
    background: #434f72;
}

.odds-historical-table__item:not(:first-child) {
    margin-top: 4px;
    text-align: center;
}

.odds-historical-table__tip {
    font-size: 14px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background-image: linear-gradient(70deg, #31bc69 -8%, #089e4e 96%);
    margin: 0 auto;
    width: 24px;
    height: 24px;
}

.odds-historical-table__item .check {
    display: block;
    width: 20px;
    height: 20px;
}

.odds-historical-table__item .check::after {
    content: url("data:image/svg+xml;charset=UTF-8,<svg width='20' height='20' viewBox='0 0 36 36' xmlns='http://www.w3.org/2000/svg' aria-hidden='true'><path fill='%23ffffff00' d='M36 32a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4h28a4 4 0 0 1 4 4v28z'/><path fill='%23FFF' d='M29.28 6.362a2.502 2.502 0 0 0-3.458.736L14.936 23.877l-5.029-4.65a2.5 2.5 0 1 0-3.394 3.671l7.209 6.666c.48.445 1.09.665 1.696.665.673 0 1.534-.282 2.099-1.139.332-.506 12.5-19.27 12.5-19.27a2.5 2.5 0 0 0-.737-3.458z'/></svg>");
    position: absolute;
    display: inline-block;
    right: 20px;
    width: 20px;
    height: 20px;
    top: 50%;
    translate: 0 -50%;
    background-image: linear-gradient(70deg, #31bc69 -8%, #089e4e 96%);
    margin: 0 auto;
    border-radius: 4px;
}
/* historical */
