.ranking-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.ranking-slide {
    width: 200px;
    height: 24px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.ranking-slide-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: top 0.5s ease-in-out;
}

.ranking-slide-item {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rank-number {
    font-weight: bold;
    margin-right: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

.rank-title {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-change {
    font-size: 14px;
    width: 40px;
    text-align: right;
}

.rank-change.up {
    color: var(--brand-text);
}

.rank-change.down {
    color: blue;
}

.rank-change.new {
    color: green;
}

.rank-change.same {
    color: gray;
}

.ranking-container {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease-in-out, visibility 300ms ease-in-out;
}

.ranking-container.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
