.team-timeline {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 -2rem;
    padding: 1rem 2rem 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.team-timeline__track {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: max-content;
    padding-top: 1rem;
}

.team-timeline__track::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    background: rgb(49 49 49);
    z-index: 0;
}

.team-timeline__item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 78px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border-bottom: none !important;
}

.team-timeline__item--future {
    opacity: 0.5;
}

.team-timeline__item--cup .team-timeline__emblem-wrapper::after {
    content: "\f091"; /* fa-trophy */
    font-family: FontAwesome, sans-serif;
    position: absolute;
    bottom: -4px;
    right: -4px;
    font-size: 10px;
    color: #f1c40f;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-timeline__emblem-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-timeline__emblem-wrapper svg,
.team-timeline__emblem-wrapper img {
    width: 100%;
    height: 100%;
}

.team-timeline__badge {
    font-size: 14px;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #fff;
}

.team-timeline__badge--win {
    background: #28a745;
}

.team-timeline__badge--loss {
    background: #dc3545;
}

.team-timeline__badge--draw {
    background: #6c757d;
}

.team-timeline__badge--upcoming {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.6);
}

.team-timeline__loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.team-timeline__empty {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    padding: 1rem 0.5rem;
}
