.category-story-showcase {
    padding: 24px 0 28px;
    background: #234440;
    color: #fff;
    box-shadow: inset 0 1px rgba(255, 255, 255, .07), inset 0 -1px rgba(8, 27, 24, .22);
}

.category-story-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
}

.category-story-heading span {
    display: block;
    margin-bottom: 4px;
    color: #dfc665;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .16em;
}

.category-story-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 23px;
    line-height: 1.1;
}

.category-story-heading > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 8px 14px;
    border: 1px solid rgba(223, 198, 101, .72);
    border-radius: 999px;
    color: #f3e4ad;
    font-size: 11px;
    /* font-weight: 800; */
    text-decoration: none;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.category-story-heading > a:hover,
.category-story-heading > a:focus-visible {
    border-color: #dfc665;
    background: #dfc665;
    color: #173632;
    transform: translateY(-1px);
}

.category-story-heading > a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.category-story-carousel { position: relative; }

.category-story-rail {
    --category-story-gap: 16px;
    display: flex;
    gap: var(--category-story-gap);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1px 1px 5px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}

.category-story-rail::-webkit-scrollbar { display: none; }
.category-story-rail:focus-visible { outline: 2px solid #dfc665; outline-offset: 6px; border-radius: 8px; }

.category-story-card.story-card {
    width: calc((100% - (var(--category-story-gap) * 4)) / 5);
    min-width: calc((100% - (var(--category-story-gap) * 4)) / 5);
    flex: 0 0 calc((100% - (var(--category-story-gap) * 4)) / 5);
    aspect-ratio: 9 / 16;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: #152b28;
    box-shadow: 0 9px 22px rgba(5, 20, 18, .28);
    scroll-snap-align: start;
}

.category-story-card.story-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s ease;
}

.category-story-card.story-card:hover img { transform: scale(1.035); }

.category-story-card.story-card video {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .28s ease;
}

.category-story-card.story-card.is-playing video { opacity: 1; }

.category-story-shade {
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(180deg, transparent 38%, rgba(5, 15, 13, .14) 56%, rgba(5, 15, 13, .94) 100%);
    pointer-events: none;
}

.category-story-play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    background: rgba(20, 48, 43, .72);
    color: #fff;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(4px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.category-story-play i { margin-left: 2px; font-size: 18px; }
.category-story-card.is-playing .category-story-play {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.82);
}

.category-story-copy {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 4;
    color: #fff;
}

.category-story-copy h3 {
    display: -webkit-box;
    margin: 0 0 7px;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    line-height: 1.12;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.category-story-copy span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #e6cf79;
    font-size: 9px;
    font-weight: 800;
}

.category-story-copy b { font: inherit; }

.category-story-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 50%;
    background: rgba(18, 48, 43, .92);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 7px 19px rgba(5, 20, 18, .3);
    transform: translateY(-50%);
    transition: opacity .2s ease, transform .2s ease, background .2s ease;
}

.category-story-arrow:hover { background: #fff; color: #234440; transform: translateY(-50%) scale(1.05); }
.category-story-arrow.is-prev { left: -18px; }
.category-story-arrow.is-next { right: -18px; }
.category-story-arrow:disabled { pointer-events: none; opacity: 0; }

@media (max-width: 768px) {
    .category-story-showcase { padding: 19px 0 22px; }
    .category-story-heading { align-items: center; margin-bottom: 13px; }
    .category-story-heading span { font-size: 8px; }
    .category-story-heading h2 { font-size: 19px; }
    .category-story-heading > a { font-size: 9px; }
    .category-story-rail { --category-story-gap: 10px; margin-right: -20px; padding-right: 20px; }
    .category-story-card.story-card { width: 124px; min-width: 124px; flex-basis: 124px; border-radius: 9px; }
    .category-story-copy { right: 8px; bottom: 8px; left: 8px; }
    .category-story-copy h3 { font-size: 12px; }
    .category-story-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .category-story-rail { scroll-behavior: auto; }
    .category-story-card.story-card img,
    .category-story-card.story-card video,
    .category-story-play,
    .category-story-arrow { transition: none; }
}
