.anlamtv-topbar-categories {
    position: relative;
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 0;
    width: 100%;
    overflow: hidden;
    margin: 0 0 16px;
}

.anlamtv-topbar-categories__nav {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox: مخفی کردن کامل خط اسکرول */
    cursor: grab; /* نشانه‌ی بصری برای امکان کشیدن با ماوس در مرورگرهای غیرلمسی */
    user-select: none; /* حین کشیدن با ماوس، متن دسته‌ها انتخاب نشود */
}

.anlamtv-topbar-categories__nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Edge: مخفی کردن کامل خط اسکرول */
}

.anlamtv-topbar-categories__nav.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.anlamtv-topbar-categories__list {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 6px 10px;
}

.anlamtv-topbar-categories__item {
    flex-shrink: 0;
}

.anlamtv-topbar-categories__item a {
    display: block;
    padding: 6px 16px;
    margin: 0 4px;
    color: #495057;
    background-color: #fff;
    border: 1px solid #e2e5e9;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    -webkit-user-drag: none; /* جلوگیری از درگ بومی لینک که با کشیدن سفارشی ما تداخل می‌کند */
    user-drag: none;
    -webkit-touch-callout: none;
}

.anlamtv-topbar-categories__item a:hover,
.anlamtv-topbar-categories__item a:focus {
    background-color: #d32f2f;
    border-color: #d32f2f;
    color: #fff;
}

/* وقتی واقعاً در حال کشیدن هستیم، تغییر رنگ هاور/فوکوس/کلیک روی هیچ کلیدی
   اعمال نشود (تا رد شدن انگشت/ماوس از روی چند کلید پشت‌سرهم، آن‌ها را قرمز
   چشمک نزند؛ چون این صرفاً پیمایش است، نه واقعاً هاور یا انتخاب). */
.anlamtv-topbar-categories__nav.is-dragging .anlamtv-topbar-categories__item a,
.anlamtv-topbar-categories__nav.is-dragging .anlamtv-topbar-categories__item a:hover,
.anlamtv-topbar-categories__nav.is-dragging .anlamtv-topbar-categories__item a:focus,
.anlamtv-topbar-categories__nav.is-dragging .anlamtv-topbar-categories__item a:active {
    background-color: #fff !important;
    border-color: #e2e5e9 !important;
    color: #495057 !important;
}

/* --- نشانه‌ی اولیه‌ی کشیدنی‌بودن نوار: یک خط با فلش به دو طرف، برای چند
   لحظه نمایان و سپس محو می‌شود --- */
.anlamtv-topbar-categories__drag-hint {
    position: absolute;
    top: 50%;
    inset-inline-start: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.anlamtv-topbar-categories__drag-hint.is-visible {
    opacity: 1;
}

.anlamtv-topbar-categories__drag-hint svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}
