.ab-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 16px 20px
}

.ab-related-grid--side {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 14px
}

.ab-related-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--bdr, #e8eaf0);
    border-radius: 18px;
    transition: border-color .18s, box-shadow .18s, transform .18s
}

.ab-related-card:hover {
    border-color: var(--teal, #0d9488);
    box-shadow: 0 14px 30px rgba(13, 148, 136, .15);
    transform: translateY(-2px)
}

.ab-related-top {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 16px 12px 14px;
    border-bottom: 1px solid var(--bdr, #e8eaf0)
}

.ab-related-top:before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-radial-gradient(circle at 50% 50%, rgba(13, 148, 136, .055) 0 10px, transparent 10px 22px), #fcfefe
}

.ab-related-team,
.ab-related-count {
    position: relative;
    z-index: 2
}

.ab-related-odd .bk {
    position: relative;
    z-index: 2
}

.ab-related-team {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px
}

.ab-related-team>.tc-crest-link,
.ab-related-team>.tc-crest {
    width: 40px;
    height: 40px;
    flex: 0 0 40px
}

.ab-related-team .tc-crest {
    width: 40px !important;
    height: 40px !important
}

.ab-related-team>span:last-child {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--g700, #334155)
}

.ab-related-count {
    align-self: center;
    padding-top: 4px;
    text-align: center;
    font-family: var(--font-display, 'Sora', sans-serif);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    color: var(--teal, #0d9488)
}

.ab-related-count small {
    display: block;
    margin-top: 3px;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--g400, #94a3b8)
}

.ab-related-title {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 15px;
    text-align: center;
    text-decoration: none;
    font-family: var(--font-display, 'Sora', sans-serif);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--text-heading, #0f1629)
}

.ab-related-title em {
    font-style: normal;
    color: var(--teal, #0d9488)
}

.ab-related-footer {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    padding: 11px 15px;
    background: var(--g50, #f8fafc);
    border-top: 1px solid var(--bdr, #e8eaf0)
}

.ab-related-bar {
    width: 52px;
    height: 7px;
    overflow: hidden;
    flex: 0 0 52px;
    border-radius: 4px;
    background: var(--g200, #e2e8f0)
}

.ab-related-bar i {
    display: block;
    height: 100%;
    background: var(--teal, #0d9488)
}

.ab-related-confidence {
    font-family: var(--font-display, 'Sora', sans-serif);
    font-size: 13px;
    color: var(--g500, #64748b)
}

.ab-related-odd {
    margin-left: auto
}

.ab-related-odd:empty {
    display: none
}

.ab-related-odd .bk {
    margin: 0
}

.detail-side .ab-related-title {
    min-height: 48px
}

.detail-side .ab-related-card {
    width: 100%
}

html[data-theme="dark"] .ab-related-card {
    background: #111a2e;
    border-color: rgba(255, 255, 255, .08)
}

html[data-theme="dark"] .ab-related-card:hover {
    border-color: rgba(94, 234, 212, .3);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .4)
}

html[data-theme="dark"] .ab-related-top {
    border-bottom-color: rgba(255, 255, 255, .08)
}

html[data-theme="dark"] .ab-related-top:before {
    background: repeating-radial-gradient(circle at 50% 50%, rgba(94, 234, 212, .09) 0 10px, transparent 10px 22px), #0f1b2e
}

html[data-theme="dark"] .ab-related-team>span:last-child {
    color: rgba(255, 255, 255, .8)
}

html[data-theme="dark"] .ab-related-count {
    color: #5eead4
}

html[data-theme="dark"] .ab-related-count small {
    color: rgba(255, 255, 255, .4)
}

html[data-theme="dark"] .ab-related-title {
    color: #fff
}

html[data-theme="dark"] .ab-related-title em {
    color: #5eead4
}

html[data-theme="dark"] .ab-related-footer {
    background: rgba(255, 255, 255, .03);
    border-top-color: rgba(255, 255, 255, .08)
}

html[data-theme="dark"] .ab-related-confidence {
    color: rgba(255, 255, 255, .65)
}

@media(max-width:1000px) {
    .ab-related-grid:not(.ab-related-grid--side) {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:680px) {
    .ab-related-grid:not(.ab-related-grid--side) {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 16px
    }

    .ab-related-grid:not(.ab-related-grid--side)::-webkit-scrollbar {
        display: none
    }

    .ab-related-grid:not(.ab-related-grid--side) .ab-related-card {
        flex: 0 0 78%;
        max-width: 290px;
        scroll-snap-align: start
    }
}