.match-box {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: calc(var(--border-radius-sm)/2) calc(var(--border-radius-sm));
    background-color: var(--background-secondary1);
    box-shadow: 0 5px 14px rgba(0,0,0,.2);
    width: 100%;
    height: 75px;
    cursor: pointer;
    margin-top: .5em;
    overflow: hidden;
}
.match-box:hover {
    background-color: var(--background-secondary2);
    box-shadow: 0 8px 20px rgba(0,0,0,.3);
    transform: translateY(-2px);
    transition: all 0.2s ease-in-out;
}

.match-top {
    display: grid;
    grid-template-columns: 1fr 50px 1fr;
    width: 100%;
    align-items: center;
    height: 21px;
    flex-shrink: 0;
    min-height: 0;
    font-size: 0.9em;
}
.event-name {
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.match-time {
    text-align: center;
}
.match-badges {
    display: flex;
    flex-direction: row;
    gap: 0.5em;
    justify-content: flex-end;
    height: 100%;
    min-height: 0;
    width: auto;
    overflow: hidden;
}
.match-badges img {
    height: 100%;
    display: block;
    object-fit: cover;
    width: auto;
}

.match-content {
    display: grid;
    grid-template-columns: 1fr minmax(35px, auto) 1fr;
    width: 100%;
    align-items: center;
    height: 100%;
    min-height: 0;
    grid-gap: .5em;
}
.team {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5em;
    height: 100%;
    min-height: 0;
    min-width: 0;
}
.team.r {
    justify-content: flex-end;
}
.team-avatar {
    height: 75%;
    width: auto;
    min-height: 0;
}
.team-avatar img {
    width: auto;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    border: 2px solid var(--border);
}
.team-name {
    font-size: 1.1em;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-score-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    width: 100%;
    font-size: 1.1em;
    font-weight: 500;
}
.match-score-box > *:first-child {
  justify-self: end;
}

.match-score-box > *:last-child {
  justify-self: start;
}
.match-score {
    white-space: nowrap;
}
.match-score-separator {
    margin: 0 5px;
}

