.main-tabs {
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scroll-behavior: smooth;
    touch-action: pan-x;
    flex-wrap: nowrap;
    gap: .375rem;
    padding-bottom: .25rem;
    display: flex;
    overflow-x: auto
}

.main-tabs .nav-item {
    flex: none
}

.main-tabs .nav-link {
    white-space: nowrap;
    margin-bottom: 0
}

.main-tabs.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none
}

.main-tabs.hide-scrollbar::-webkit-scrollbar {
    display: none
}

.main-tabs .nav-link:focus {
    outline-offset: 2px;
    outline: 3px solid rgba(0, 123, 255, .15)
}

.main-tabs.dragging {
    cursor: grabbing;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none
}

.source-badge {
    z-index: 2;
    background-color: rgba(255, 255, 255, .9);
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    display: flex;
    position: absolute;
    top: 10px;
    right: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2)
}

@media(min-width:768px) {
    .content-types-compact.mb-2 {
        display: none
    }
}

.content-types-compact .btn-group-sm {
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    display: flex;
    overflow-x: auto
}

button.btn.btn-outline-secondary.btn-sm.me-1.mb-1 {
    border: rgba(255, 255, 255, 0);
    border-left: 1px solid rgba(51, 51, 51, .22)
}

.btn-group-sm>.btn,
.btn-sm {
    --bs-btn-padding-y: .2rem;
    --bs-btn-padding-x: .5rem;
    --bs-btn-font-size: .8rem;
    --bs-btn-font-weight: 600;
    --bs-btn-line-height: 1.4
}

.content-types-compact .btn-group-sm::-webkit-scrollbar {
    height: 6px
}

.content-types-compact .btn-group-sm::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px
}

.source-badge img {
    object-fit: cover;
    border-radius: 50%;
    width: 16px;
    height: 16px
}

.channel-avatar {
    position: relative
}

.source-indicator {
    z-index: 2;
    background-color: #fff;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    display: flex;
    position: absolute;
    bottom: 0;
    right: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2)
}

.source-indicator img {
    object-fit: cover;
    border-radius: 50%;
    width: 14px;
    height: 14px
}

.sources-filter {
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 10px
}

.filter-title {
    margin-bottom: 5px;
    font-weight: 700
}

.sources-buttons {
    flex-wrap: wrap;
    gap: 5px;
    display: flex
}

.source-filter-btn {
    border-radius: 20px;
    align-items: center;
    padding: 5px 10px;
    font-size: 12px;
    transition: all .2s;
    display: flex
}

.source-filter-btn img {
    border-radius: 50%;
    margin-right: 5px
}

.source-filter-btn.active {
    color: #fff;
    background-color: #d32f2f;
    border-color: #d32f2f
}

.video-meta {
    color: #666;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    display: flex
}

.provider-name {
    color: #007bff;
    font-weight: 500
}

.view-count {
    align-items: center;
    gap: 3px;
    display: flex
}

.view-count i {
    font-size: .7rem
}

.provider-card {
    background-color: #fff;
    border-radius: 8px;
    height: 100%;
    transition: transform .2s, box-shadow .2s;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1)
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, .15)
}

.provider-avatar {
    padding-top: 75%;
    position: relative;
    overflow: hidden
}

.provider-avatar img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0
}

.provider-info {
    padding: 10px
}

.provider-title {
    color: #222;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0 0 5px;
    font-size: .9rem;
    font-weight: 600;
    overflow: hidden
}

.provider-meta {
    color: #666;
    font-size: .75rem
}

.provider-header {
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 10px 15px
}

.provider-subscriber-count {
    color: #666;
    align-items: center;
    gap: 5px;
    font-size: .9rem;
    display: flex
}

.provider-subscriber-count i {
    color: #007bff
}

.sources-filter-compact {
    background: rgba(0, 47, 108, .05);
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    display: flex
}

.sources-filter-compact .btn-group-sm {
    flex-wrap: wrap;
    gap: 4px;
    display: flex
}

.sources-filter-compact .btn-group-sm .btn {
    border: 1px solid rgba(0, 47, 108, .2);
    border-radius: 20px;
    margin: 0 2px;
    padding: 4px 8px;
    font-size: .75rem;
    transition: all .2s
}

.sources-filter-compact .btn.active {
    color: #fff;
    background-color: #002f6c;
    border-color: #002f6c;
    box-shadow: 0 2px 4px rgba(0, 47, 108, .3)
}

.sources-filter-compact .btn:hover:not(.active) {
    background-color: rgba(0, 47, 108, .1);
    border-color: rgba(0, 47, 108, .3)
}

.fa-fallback .fab:before,
.fa-fallback .fas:before {
    content: none !important
}

.fa-fallback [data-source-id] .fab.fa-youtube:after {
    content: "YT";
    color: red;
    font-weight: 700
}

.fa-fallback [data-source-id] .fab.fa-x-twitter:after {
    content: "X";
    color: #000;
    font-weight: 700
}

.fa-fallback [data-source-id] .fab.fa-tiktok:after {
    content: "TT";
    color: #000;
    font-weight: 700
}

.tabs-container {
    background: #fff;
    border-radius: .5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    overflow: hidden;
    contain: layout style
}

.nav-tabs-custom {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 2px solid #e9ecef
}

.nav-tabs-custom::-webkit-scrollbar {
    display: none
}

.nav-tabs-custom .nav-link-tab {
    border: 0;
    background: transparent;
    padding: 1rem 1.5rem;
    color: #6c757d;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: color .2s, background .2s;
    white-space: nowrap;
    cursor: pointer;
    line-height: 1.5
}

.nav-tabs-custom .nav-link-tab:focus-visible {
    outline: 3px solid #0d6efd;
    outline-offset: -3px;
    border-radius: 4px
}

.nav-tabs-custom .nav-link-tab:hover {
    color: #0d6efd;
    background: rgba(13, 110, 253, .05)
}

.nav-tabs-custom .nav-link-tab.active {
    color: #0d6efd
}

.nav-tabs-custom .nav-link-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #0d6efd;
    border-radius: 3px 3px 0 0
}

.tab-content-custom {
    padding: 1.5rem
}

.tab-pane-custom {
    display: none
}

.tab-pane-custom.active {
    display: block
}

.video-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #e9ecef
}

.play-overlay,
.transition-opacity {
    will-change: opacity;
    transform: translate(-50%, -50%)
}

.video-card:hover .play-overlay {
    opacity: 1 !important
}

.providers-scroll { position: relative; overflow-x: auto; }
.drag-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 80px; /* يتغير بالـ JS */
  background: #d32f2f;
  border-radius: 3px;
  transition: left .1s linear;
  pointer-events: none;
  z-index: 10;
}