.ts-gap {
    --ts-gap-ink: #15202b;
    --ts-gap-muted: #637083;
    --ts-gap-line: #d9e1e8;
    --ts-gap-panel: #ffffff;
    --ts-gap-soft: #f4f7f9;
    --ts-gap-green: #0f9f6e;
    --ts-gap-blue: #3e7eba;
    --ts-gap-gold: #f5a623;
    --ts-gap-red: #df4b43;
    color: var(--ts-gap-ink);
    margin: 24px 0;
}

.ts-gap * {
    box-sizing: border-box;
}

.ts-gap-head {
    align-items: stretch;
    background: linear-gradient(135deg, #102033 0%, #18384b 54%, #155f55 100%);
    border-radius: 8px;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 14px;
    overflow: hidden;
    padding: 20px;
    position: relative;
}

.ts-gap-head:before {
    background:
        linear-gradient(90deg, rgba(255,255,255,.10), rgba(255,255,255,0)),
        repeating-linear-gradient(135deg, rgba(255,255,255,.10) 0 1px, transparent 1px 13px);
    content: "";
    inset: 0;
    opacity: .45;
    pointer-events: none;
    position: absolute;
}

.ts-gap-title-wrap,
.ts-gap-stats {
    position: relative;
    z-index: 1;
}

.ts-gap-kicker {
    color: #8de5c6;
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.ts-gap-title {
    color: #ffffff;
    font-size: 28px;
    line-height: 1.1;
    margin: 0;
}

.ts-gap-subtitle {
    color: rgba(255,255,255,.78);
    font-size: 14px;
    line-height: 1.45;
    margin: 8px 0 0;
    max-width: 680px;
}

.ts-gap-stats {
    align-items: stretch;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(84px, 1fr));
}

.ts-gap-stat {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 8px;
    color: #ffffff;
    min-width: 84px;
    padding: 10px 12px;
}

.ts-gap-stat strong {
    display: block;
    font-size: 22px;
    line-height: 1.05;
}

.ts-gap-stat span {
    color: rgba(255,255,255,.72);
    display: block;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 4px;
    text-transform: uppercase;
}

.ts-gap-stat--next strong {
    color: #ffe08a;
}

.ts-gap-tools {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    margin: 0 0 14px;
}

.ts-gap-sort {
    background: var(--ts-gap-soft);
    border: 1px solid var(--ts-gap-line);
    border-radius: 8px;
    display: inline-flex;
    gap: 4px;
    padding: 4px;
}

.ts-gap-sort-btn {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--ts-gap-muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    min-height: 34px;
    padding: 0 13px;
    white-space: nowrap;
}

.ts-gap-sort-btn.is-active {
    background: var(--ts-gap-panel);
    box-shadow: 0 2px 8px rgba(21, 32, 43, .12);
    color: var(--ts-gap-ink);
}

.ts-gap-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ts-gap-card {
    background: var(--ts-gap-panel);
    border: 1px solid var(--ts-gap-line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(16, 32, 51, .07);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding: 14px;
    position: relative;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.ts-gap-card:hover {
    border-color: #c8d9e7;
    box-shadow: 0 10px 28px rgba(16, 32, 51, .1);
    transform: translateY(-1px);
}

.ts-gap-card.is-loadmore-hidden {
    display: none;
}

.ts-gap-card-top,
.ts-gap-footer,
.ts-gap-time,
.ts-gap-lead,
.ts-gap-angle {
    align-items: center;
    display: flex;
}

.ts-gap-card-top {
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ts-gap-meta {
    align-items: center;
    color: var(--ts-gap-muted);
    display: flex;
    font-size: 12px;
    font-weight: 800;
    gap: 7px;
    min-width: 0;
    text-transform: uppercase;
}

.ts-gap-meta img {
    flex: 0 0 auto;
}

.ts-gap-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ts-gap-count {
    background: #eaf8f2;
    border: 1px solid #bfead8;
    border-radius: 8px;
    color: var(--ts-gap-green);
    flex: 0 0 auto;
    min-width: 74px;
    padding: 6px 8px;
    text-align: center;
}

.ts-gap-count strong {
    display: block;
    font-size: 18px;
    line-height: 1;
}

.ts-gap-count span {
    display: block;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 3px;
    text-transform: uppercase;
}

.ts-gap-match {
    color: var(--ts-gap-ink);
    display: grid;
    font-size: 19px;
    font-weight: 900;
    gap: 5px;
    line-height: 1.15;
    margin: 0px -13px 11px;
    padding: 7px 0px 7px 20px;
    min-height: 70px;
    text-decoration: none;
    border-left: 3px solid var(--ts-gap-green);
}

.ts-gap-card:hover .ts-gap-match {
    color: var(--ts-gap-green);
}

.ts-gap-match span {
    overflow-wrap: anywhere;
}

.ts-gap-match em {
    color: var(--ts-gap-gold);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.ts-gap-time {
    border-bottom: 1px solid var(--ts-gap-line);
    border-top: 1px solid var(--ts-gap-line);
    color: var(--ts-gap-muted);
    font-size: 12px;
    font-weight: 800;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 10px 0;
}

.ts-gap-time span {
    color: var(--ts-gap-red);
}

.ts-gap-btr {
    background: #ffffff;
    border: 1px solid var(--ts-gap-line);
    border-radius: 8px;
    margin: 0 0 12px;
    padding: 9px;
}

.ts-gap-btr-head {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 7px;
}

.ts-gap-btr-head span {
    color: var(--ts-gap-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.1;
    text-transform: uppercase;
}

.ts-gap-btr-head strong {
    color: var(--ts-gap-green);
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.ts-gap-btr-bar {
    background: #e8edf1;
    border-radius: 99px;
    display: flex;
    height: 8px;
    overflow: hidden;
}

.ts-gap-btr-bar span {
    display: block;
    flex: 0 0 var(--ts-gap-btr-share, 0%);
    min-width: 2px;
}

.ts-gap-btr-bar .is-home {
    background: #536376;
}

.ts-gap-btr-bar .is-draw {
    background: #d89018;
}

.ts-gap-btr-bar .is-away {
    background: #eb7300;
}

.ts-gap-btr-bar .is-best {
    background: #14aa84;
    background: linear-gradient(359deg, #17aa83, #7dffda);
}

.ts-gap-btr-bar .is-other-one {
    background: #d89018;
    background: linear-gradient(359deg, #d79019, #ffc86b);
}

.ts-gap-btr-bar .is-other-two {
    background: #eb7300;
    background: linear-gradient(359deg, #eb7300, #ffa54e);
}

.ts-gap-btr-grid {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    margin-top: 7px;
}

.ts-gap-btr-grid span {
    align-items: center;
    background: var(--ts-gap-soft);
    border: 1px solid #e7edf2;
    border-radius: 7px;
    color: var(--ts-gap-muted);
    display: flex;
    font-size: 11px;
    font-weight: 900;
    gap: 5px;
    justify-content: space-between;
    min-width: 0;
    padding: 6px 7px;
}

.ts-gap-btr-grid b {
    color: var(--ts-gap-ink);
    font-size: 12px;
    line-height: 1;
}

.ts-gap-btr-grid strong {
    color: var(--ts-gap-muted);
    flex: 0 0 auto;
    font-size: 11px;
    line-height: 1;
}

.ts-gap-btr-grid .is-best {
    background: linear-gradient(359deg, rgba(23, 170, 131, .13), rgba(125, 255, 218, .22));
    border-color: rgba(20, 170, 132, .35);
}

.ts-gap-btr-grid .is-best strong,
.ts-gap-btr-grid .is-best b {
    color: var(--ts-gap-green);
}

.ts-gap-btr-grid .is-other-one {
    background: linear-gradient(359deg, rgba(215, 144, 25, .11), rgba(255, 200, 107, .2));
    border-color: rgba(216, 144, 24, .34);
}

.ts-gap-btr-grid .is-other-two {
    background: linear-gradient(359deg, rgba(235, 115, 0, .1), rgba(255, 165, 78, .2));
    border-color: rgba(235, 115, 0, .32);
}

.ts-gap-tipster-title {
    color: var(--ts-gap-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    margin: 0 0 7px;
    text-transform: uppercase;
}

.ts-gap-lead {
    align-items: flex-start;
    background: #f7fbff;
    border: 1px solid #dbe8fb;
    border-radius: 8px;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    margin: 0 0 7px 0;
}

.ts-gap-lead span {
    color: var(--ts-gap-blue);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.ts-gap-lead strong {
    color: var(--ts-gap-ink);
    font-size: 14px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ts-gap-lead em {
    color: var(--ts-gap-muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.ts-gap-angles {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
}

.ts-gap-angle {
    background: var(--ts-gap-soft);
    border: 1px solid #e7edf2;
    border-radius: 8px;
    color: var(--ts-gap-ink);
    gap: 10px;
    justify-content: space-between;
    padding: 8px 9px;
}

.ts-gap-angle span {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    min-width: 0;
    overflow-wrap: anywhere;
}

.ts-gap-angle em {
    color: var(--ts-gap-muted);
    display: block;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    margin-top: 3px;
}

.ts-gap-angle strong {
    background: var(--ts-gap-ink);
    border-radius: 99px;
    color: #ffffff;
    flex: 0 0 auto;
    font-size: 11px;
    line-height: 1;
    min-width: 24px;
    padding: 5px 7px;
    text-align: center;
}

.ts-gap-angle--more strong {
    background: var(--ts-gap-muted);
}

.ts-gap-footer {
    gap: 10px;
    justify-content: space-between;
    margin-top: auto;
}

.ts-gap-footnote {
    color: var(--ts-gap-muted);
    display: grid;
    font-size: 11px;
    font-weight: 800;
    gap: 2px;
    line-height: 1.25;
}

.ts-gap-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    justify-content: flex-end;
}

.ts-gap-link {
    align-items: center;
    background: var(--ts-gap-ink);
    border-radius: 5px;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 900;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    text-decoration: none;
    white-space: nowrap;
}

.ts-gap-link:hover {
    background: var(--ts-gap-gold);
    color: #ffffff;
}

.ts-gap-card-link {
    position: static;
}

.ts-gap-card-link::after {
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
}

.ts-gap-card-link span {
    position: relative;
    z-index: 2;
}

.ts-gap-link--secondary {
    background: #ffffff;
    border: 1px solid var(--ts-gap-line);
    color: var(--ts-gap-ink);
    position: relative;
    z-index: 3;
}

.ts-gap-link--secondary:hover {
    background: #ecf8f2;
    border-color: #bfe8d5;
    color: var(--ts-gap-green);
}

.ts-gap-empty {
    align-items: center;
    background: var(--ts-gap-panel);
    border: 1px dashed var(--ts-gap-line);
    border-radius: 8px;
    color: var(--ts-gap-muted);
    display: grid;
    gap: 6px;
    justify-items: center;
    padding: 34px 16px;
    text-align: center;
}

.ts-gap-empty strong {
    color: var(--ts-gap-ink);
    font-size: 18px;
}

.ts-gap-loadmore-wrap {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.ts-gap-loadmore-wrap[hidden] {
    display: none;
}

.ts-gap-loadmore {
    appearance: none;
    background: var(--ts-gap-ink);
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    min-height: 38px;
    padding: 0 18px;
}

.ts-gap-loadmore:hover {
    background: var(--ts-gap-gold);
}

@media only screen and (max-width: 1024px) {
    .ts-gap-head {
        grid-template-columns: 1fr;
    }

    .ts-gap-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media only screen and (max-width: 640px) {
    .ts-gap {
        margin: 10px 0;
    }

    .ts-gap-head {
        padding: 16px;
    }

    .ts-gap-title {
        font-size: 23px;
    }

    .ts-gap-stats,
    .ts-gap-grid {
        grid-template-columns: 1fr;
    }

    .ts-gap-tools {
        justify-content: stretch;
    }

    .ts-gap-sort {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .ts-gap-sort-btn {
        padding: 0 8px;
        white-space: normal;
    }

    .ts-gap-footer {
        align-items: stretch;
        /* flex-direction: column; */
    }

    .ts-gap-actions {
        justify-content: stretch;
    }

    .ts-gap-link {
        flex: 1 1 0;
    }
}
