.unixsee-category-banners {
    --ypb-text: #333333;
    --ypb-accent: #138a72;
    --ypb-card-bg: #f5f9fc;
    --ypb-card-bg-hover: #dfe9e3;
    --ypb-card-border: #d7e0e8;
    --ypb-card-shadow: 0 0 0 rgba(0, 0, 0, 0);
    --ypb-card-shadow-hover: 0 10px 22px rgba(15, 23, 42, 0.08);
    --ypb-circle: transparent;
    --ypb-circle-soft: transparent;
    --ypb-count: var(--ypb-desktop-count, 8);
    --ypb-gap: 14px;
    --ypb-item-size: calc((100% - (var(--ypb-gap) * (var(--ypb-count) - 1))) / var(--ypb-count));
    position: relative;
    width: 100%;
    direction: rtl;
    padding: 10px 48px;
    overflow: visible;
    box-sizing: border-box;
}

.unixsee-category-banners *,
.ypb-story-viewer * {
    box-sizing: border-box;
}

.unixsee-category-banners__viewport {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.unixsee-category-banners__nav {
    position: absolute;
    top: 50%;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #dde3e8;
    border-radius: 999px;
    background: #ffffff;
    color: #333333;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .08);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .18s ease, color .18s ease, border-color .18s ease, opacity .16s ease, box-shadow .18s ease, transform .18s ease;
    padding: 0;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
}

.unixsee-category-banners__nav span {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    pointer-events: none;
}

.unixsee-category-banners__nav span::before {
    content: "";
    display: block;
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    border-radius: 1px;
}

.unixsee-category-banners__nav--right span::before {
    transform: rotate(45deg);
}

.unixsee-category-banners__nav--left span::before {
    transform: rotate(-135deg);
}

.unixsee-category-banners__nav:hover {
    border-color: rgba(19, 138, 114, .22);
    color: var(--ypb-accent);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
    transform: translateY(-50%) scale(1.03);
}

.unixsee-category-banners__nav:disabled,
.unixsee-category-banners:not(.has-overflow) .unixsee-category-banners__nav {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.unixsee-category-banners__nav--right {
    right: 0;
}

.unixsee-category-banners__nav--left {
    left: 0;
}

.unixsee-category-banners__track {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--ypb-gap);
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 4px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
}

.unixsee-category-banners__track::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.unixsee-category-banners__item {
    flex: 0 0 var(--ypb-item-size);
    min-width: 0;
    max-width: var(--ypb-item-size);
    min-height: 108px;
    padding: 10px;
    border: 1px solid var(--ypb-card-border);
    border-radius: 10px;
    background: var(--ypb-card-bg);
    box-shadow: var(--ypb-card-shadow);
    appearance: none;
    -webkit-appearance: none;
    text-decoration: none;
    color: var(--ypb-text);
    font: inherit;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    scroll-snap-align: start;
    user-select: none;
    cursor: default;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

a.unixsee-category-banners__item,
button.unixsee-category-banners__item {
    cursor: pointer;
}

.unixsee-category-banners__visual {
    position: relative;
    isolation: isolate;
    width: 60px;
    height: 52px;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    flex: 0 0 52px;
}

.unixsee-category-banners__circle {
    display: none;
}

.unixsee-category-banners__item.is-story .unixsee-category-banners__visual::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 14px;
    padding: 2px;
    background: conic-gradient(from 210deg, #138a72 0deg, #86c7b7 110deg, #0f766e 220deg, #d9f1eb 315deg, #138a72 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 1;
    pointer-events: none;
}

.unixsee-category-banners__item.is-story.is-viewed .unixsee-category-banners__visual::before {
    background: #d9e1e8;
    opacity: .82;
}

.unixsee-category-banners__visual img {
    position: relative;
    z-index: 2;
    width: 60px;
    height: 52px;
    max-width: 60px;
    max-height: 52px;
    object-fit: contain;
    border-radius: 0;
    transition: transform .18s ease;
    pointer-events: none;
}

.unixsee-category-banners__story-play {
    position: relative;
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .14);
}

.unixsee-category-banners__story-play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #111827;
}

.unixsee-category-banners__title {
    display: block;
    width: 100%;
    min-height: 20px;
    color: var(--ypb-text);
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unixsee-category-banners__item:hover,
.unixsee-category-banners__item:focus-visible {
    transform: none;
    background: var(--ypb-card-bg-hover);
    border-color: #1b8f6b;
    box-shadow: none;
    outline: none;
}

.unixsee-category-banners__item:hover .unixsee-category-banners__title,
.unixsee-category-banners__item:focus-visible .unixsee-category-banners__title {
    color: #111827;
}

.unixsee-category-banners__item:hover .unixsee-category-banners__visual,
.unixsee-category-banners__item:focus-visible .unixsee-category-banners__visual {
    background: transparent;
}

.unixsee-category-banners__item:not(.is-story):hover .unixsee-category-banners__visual img,
.unixsee-category-banners__item:not(.is-story):focus-visible .unixsee-category-banners__visual img {
    transform: none;
}

.unixsee-category-banners__item.is-story:hover .unixsee-category-banners__visual img {
    transform: none;
}

.unixsee-category-banners__track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.unixsee-category-banners__track.is-dragging .unixsee-category-banners__item {
    pointer-events: auto;
}

body.ypb-story-open {
    overflow: hidden !important;
    touch-action: none;
}

.ypb-story-viewer {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(4, 7, 12, .92);
    direction: rtl;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
}

.ypb-story-viewer.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ypb-story-viewer__stage {
    position: relative;
    width: min(430px, calc(100vw - 36px));
    height: min(760px, calc(100vh - 36px));
    max-height: 88vh;
    overflow: hidden;
    border-radius: 22px;
    background: #090b10;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
    isolation: isolate;
}

.ypb-story-viewer__media,
.ypb-story-viewer__media img,
.ypb-story-viewer__media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ypb-story-viewer__media {
    background: #090b10;
}

.ypb-story-viewer__media img,
.ypb-story-viewer__media video {
    object-fit: cover;
}

.ypb-story-viewer__shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .58), transparent 24%, transparent 70%, rgba(0, 0, 0, .62));
}

.ypb-story-viewer__progress {
    position: absolute;
    top: 12px;
    right: 12px;
    left: 12px;
    z-index: 6;
    display: flex;
    gap: 5px;
    direction: ltr;
}

.ypb-story-viewer__progress-item {
    position: relative;
    flex: 1 1 0;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .34);
}

.ypb-story-viewer__progress-fill {
    position: absolute;
    inset: 0;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left center;
}

.ypb-story-viewer__header {
    position: absolute;
    top: 26px;
    right: 14px;
    left: 14px;
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #fff;
}

.ypb-story-viewer__title {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}

.ypb-story-viewer__close {
    position: relative;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .30);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.ypb-story-viewer__close::before,
.ypb-story-viewer__close::after {
    content: "";
    position: absolute;
    top: 18px;
    left: 10px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.ypb-story-viewer__close::before {
    transform: rotate(45deg);
}

.ypb-story-viewer__close::after {
    transform: rotate(-45deg);
}

.ypb-story-viewer__tap {
    position: absolute;
    top: 78px;
    bottom: 86px;
    z-index: 4;
    width: 42%;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.ypb-story-viewer__tap--prev {
    right: 0;
}

.ypb-story-viewer__tap--next {
    left: 0;
}

.ypb-story-viewer__cta {
    position: absolute;
    right: 50%;
    bottom: 24px;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #111827;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transform: translateX(50%);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .24);
    backdrop-filter: blur(8px);
}

.ypb-story-viewer__cta[hidden] {
    display: none;
}

.ypb-story-viewer__paused {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 9;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .44);
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
}

.ypb-story-viewer.is-paused .ypb-story-viewer__paused {
    opacity: 1;
}

.ypb-story-viewer__paused::before,
.ypb-story-viewer__paused::after {
    content: "";
    position: absolute;
    top: 16px;
    width: 6px;
    height: 22px;
    border-radius: 2px;
    background: #fff;
}

.ypb-story-viewer__paused::before {
    right: 19px;
}

.ypb-story-viewer__paused::after {
    left: 19px;
}

@media (max-width: 1024px) {
    .unixsee-category-banners {
        --ypb-count: var(--ypb-tablet-count, 5);
        --ypb-gap: 12px;
        padding-inline: 42px;
    }

    .unixsee-category-banners__nav {
        width: 36px;
        height: 36px;
    }

    .unixsee-category-banners__item {
        min-height: 104px;
        padding: 10px 8px;
    }

    .unixsee-category-banners__track {
        padding-inline: 4px;
    }

    .unixsee-category-banners__title {
        font-size: 12px;
    }
}

@media (max-width: 767px), (hover: none) and (pointer: coarse) {
    .unixsee-category-banners {
        --ypb-count: var(--ypb-mobile-count, 3.2);
        --ypb-gap: 10px;
        padding-inline: 0 !important;
    }

    body .unixsee-category-banners .unixsee-category-banners__nav {
        display: none !important;
    }

    .unixsee-category-banners__track {
        padding-inline: 0 !important;
    }

    .unixsee-category-banners__item {
        min-height: 98px;
        padding: 8px;
        border-radius: 10px;
    }

    .unixsee-category-banners__visual {
        width: 52px;
        height: 46px;
        border-radius: 0;
        flex-basis: 46px;
    }

    .unixsee-category-banners__visual img {
        width: 52px;
        height: 46px;
        max-width: 52px;
        max-height: 46px;
    }

    .unixsee-category-banners__circle {
        display: none;
    }

    .unixsee-category-banners__title {
        min-height: 18px;
        font-size: 11px;
        line-height: 18px;
    }

    .ypb-story-viewer {
        padding: 0;
        background: #090b10;
    }

    .ypb-story-viewer__stage {
        width: 100vw;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
    }

    .ypb-story-viewer__progress {
        top: max(10px, env(safe-area-inset-top));
    }

    .ypb-story-viewer__header {
        top: calc(max(10px, env(safe-area-inset-top)) + 14px);
    }

    .ypb-story-viewer__cta {
        bottom: max(24px, env(safe-area-inset-bottom));
    }
}

/* Style 2: modern category slider inspired by the supplied reference. */
.unixsee-category-banners--modern {
    --ypb-modern-card-size: min(146px, var(--ypb-item-size));
    --ypb-modern-radius: 15px;
    --ypb-modern-title: #0a0a0a;
    --ypb-gap: 16px;
    padding: 16px;
    overflow: visible;
}

.unixsee-category-banners--modern .unixsee-category-banners__viewport {
    overflow: hidden;
    padding: 0;
}

.unixsee-category-banners--modern .unixsee-category-banners__track {
    align-items: flex-start;
    gap: var(--ypb-gap);
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
}

.unixsee-category-banners--modern .unixsee-category-banners__item {
    flex: 0 0 var(--ypb-modern-card-size);
    width: var(--ypb-modern-card-size);
    max-width: var(--ypb-modern-card-size);
    min-width: 0;
    min-height: 175px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    gap: 0;
    color: var(--ypb-modern-title);
    overflow: visible;
}

.unixsee-category-banners--modern .unixsee-category-banners__visual {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
    border-radius: var(--ypb-modern-radius);
    background: transparent;
    overflow: hidden;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.unixsee-category-banners--modern .unixsee-category-banners__visual img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transition: transform .2s ease;
}

.unixsee-category-banners--modern .unixsee-category-banners__title {
    display: block;
    width: 100%;
    min-height: 17px;
    margin-top: 12px;
    color: var(--ypb-modern-title);
    font-size: 13px;
    font-weight: 400;
    line-height: 17px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unixsee-category-banners--modern .unixsee-category-banners__item:hover,
.unixsee-category-banners--modern .unixsee-category-banners__item:focus-visible {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    outline: none;
}

.unixsee-category-banners--modern .unixsee-category-banners__item:hover .unixsee-category-banners__visual,
.unixsee-category-banners--modern .unixsee-category-banners__item:focus-visible .unixsee-category-banners__visual {
    background: transparent;
}

.unixsee-category-banners--modern .unixsee-category-banners__item:not(.is-story):hover .unixsee-category-banners__visual img,
.unixsee-category-banners--modern .unixsee-category-banners__item:not(.is-story):focus-visible .unixsee-category-banners__visual img {
    transform: scale(1.025);
}

.unixsee-category-banners--modern .unixsee-category-banners__item.is-story .unixsee-category-banners__visual::before {
    inset: 0;
    border-radius: var(--ypb-modern-radius);
    padding: 2px;
    z-index: 3;
}

.unixsee-category-banners--modern .unixsee-category-banners__story-play {
    width: 48px;
    height: 48px;
}

.unixsee-category-banners--modern .unixsee-category-banners__nav {
    width: 40px;
    height: 40px;
    border: 1px solid #ececec;
    background: rgba(255, 255, 255, .98);
    color: #171717;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    top: calc(50% - 14px);
    transform: translateY(-50%);
}

.unixsee-category-banners--modern .unixsee-category-banners__nav span {
    width: 10px;
    height: 10px;
}

.unixsee-category-banners--modern .unixsee-category-banners__nav span::before {
    width: 6px;
    height: 6px;
    border-top-width: 1.5px;
    border-right-width: 1.5px;
}

.unixsee-category-banners--modern .unixsee-category-banners__nav:hover {
    border-color: #e4e4e4;
    color: #111111;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .11);
    transform: translateY(-50%);
}

.unixsee-category-banners--modern .unixsee-category-banners__nav--right {
    right: 16px;
}

.unixsee-category-banners--modern .unixsee-category-banners__nav--left {
    left: 16px;
}

@media (max-width: 1024px) {
    .unixsee-category-banners--modern {
        --ypb-modern-card-size: min(138px, var(--ypb-item-size));
        --ypb-gap: 14px;
        padding: 14px;
    }

    .unixsee-category-banners--modern .unixsee-category-banners__item {
        min-height: 165px;
        padding: 0;
        border-radius: 0;
    }

    .unixsee-category-banners--modern .unixsee-category-banners__visual {
        width: 100%;
        height: auto;
        border-radius: 14px;
        flex-basis: auto;
    }

    .unixsee-category-banners--modern .unixsee-category-banners__visual img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
    }

    .unixsee-category-banners--modern .unixsee-category-banners__title {
        min-height: 17px;
        margin-top: 11px;
        font-size: 12.5px;
        line-height: 17px;
    }

    .unixsee-category-banners--modern .unixsee-category-banners__nav {
        width: 38px;
        height: 38px;
        top: calc(50% - 14px);
    }

    .unixsee-category-banners--modern .unixsee-category-banners__nav--right {
        right: 14px;
    }

    .unixsee-category-banners--modern .unixsee-category-banners__nav--left {
        left: 14px;
    }
}

@media (max-width: 767px), (hover: none) and (pointer: coarse) {
    .unixsee-category-banners--modern {
        --ypb-modern-card-size: min(118px, var(--ypb-item-size));
        --ypb-gap: 10px;
        padding: 10px 0 !important;
    }

    .unixsee-category-banners--modern .unixsee-category-banners__track {
        padding-inline: 0 !important;
    }

    .unixsee-category-banners--modern .unixsee-category-banners__item {
        min-height: 142px;
        padding: 0;
        border-radius: 0;
    }

    .unixsee-category-banners--modern .unixsee-category-banners__visual {
        width: 100%;
        height: auto;
        border-radius: 12px;
        flex-basis: auto;
    }

    .unixsee-category-banners--modern .unixsee-category-banners__visual img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
    }

    .unixsee-category-banners--modern .unixsee-category-banners__title {
        min-height: 16px;
        margin-top: 9px;
        font-size: 11.5px;
        line-height: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .unixsee-category-banners__track {
        scroll-behavior: auto;
    }

    .unixsee-category-banners__item:hover .unixsee-category-banners__visual img {
        transform: none;
    }
}
