/* OSU Category Slider */
.osu-cat-slider {
    --osu-cat-item-width: 86px;
    --osu-cat-gap: 18px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.osu-cat-track {
    display: flex;
    align-items: flex-start;
    gap: var(--osu-cat-gap);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 1px 8px;
}

.osu-cat-track::-webkit-scrollbar {
    display: none;
}

.osu-cat-item {
    flex: 0 0 var(--osu-cat-item-width);
    width: var(--osu-cat-item-width);
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #364152;
    text-decoration: none !important;
    text-align: center;
    scroll-snap-align: start;
    transition: transform .2s ease;
}

.osu-cat-item:hover {
    transform: translateY(-2px);
}

.osu-cat-thumb {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e6edf3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 54px;
}

.osu-cat-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.osu-cat-letter {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Be Vietnam Pro", Arial, sans-serif;
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
    color: #2E7D32;
    background: #eef7ef;
}

.osu-cat-name {
    width: 100%;
    min-width: 0;
    font-family: "Be Vietnam Pro", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 500;
    color: #354052;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
}

@media (max-width: 767px) {
    .osu-cat-track {
        gap: 14px;
        padding-left: 2px;
        padding-right: 18px;
    }

    .osu-cat-item {
        flex-basis: 76px;
        width: 76px;
    }

    .osu-cat-thumb {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }

    .osu-cat-name {
        font-size: 11px;
    }
}
