.story-banner {
    width: 100%;
    background: linear-gradient(135deg, #0a0a0f 0%, #111118 100%);
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 9999;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.story-banner.scrolled {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.15);
    border-bottom-color: rgba(16, 185, 129, 0.4);
}

.story-banner::before,
.story-banner::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.story-banner::before {
    left: 0;
    background: linear-gradient(90deg, #0a0a0f 0%, transparent 100%);
}

.story-banner::after {
    right: 0;
    background: linear-gradient(-90deg, #0a0a0f 0%, transparent 100%);
}

.story-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: storyScroll 120s linear infinite;
    padding: 0 20px;
}

.story-track:hover {
    animation-play-state: paused;
}

.story-card {
    flex-shrink: 0;
    width: 85px;
    transition: transform 0.3s ease;
}

.story-card a {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-card a:hover {
    transform: translateY(-3px);
}

.story-card a:hover .story-img-inner {
    border-color: rgba(16, 185, 129, 0.8);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.story-img-inner {
    width: 85px;
    height: 110px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(16, 185, 129, 0.3);
    background: #111118;
    margin-bottom: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.story-img-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-card a:hover .story-img-inner::after {
    opacity: 1;
}

.story-img-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 6px;
    background: rgba(255, 255, 255, 0.03);
}

.story-card span {
    display: block;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
}

@keyframes storyScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 992px) {
    .story-banner {
        padding: 10px 0;
    }
    .story-banner::before,
    .story-banner::after {
        width: 60px;
    }
    .story-track {
        gap: 14px;
    }
    .story-card {
        width: 78px;
    }
    .story-img-inner {
        width: 78px;
        height: 100px;
    }
    .story-card span {
        font-size: 0.65rem;
    }
}

@media (max-width: 768px) {
    .story-banner {
        padding: 8px 0;
    }
    .story-banner::before,
    .story-banner::after {
        width: 40px;
    }
    .story-track {
        gap: 10px;
        animation-duration: 70s;
        padding: 0 12px;
    }
    .story-card {
        width: 68px;
    }
    .story-img-inner {
        width: 68px;
        height: 88px;
        border-radius: 12px;
        border-width: 1.5px;
    }
    .story-img-inner img {
        padding: 4px;
    }
    .story-card span {
        font-size: 0.6rem;
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .story-banner {
        padding: 6px 0;
    }
    .story-banner::before,
    .story-banner::after {
        width: 30px;
    }
    .story-track {
        gap: 8px;
        animation-duration: 55s;
        padding: 0 8px;
    }
    .story-card {
        width: 60px;
    }
    .story-img-inner {
        width: 60px;
        height: 78px;
        border-radius: 10px;
        margin-bottom: 4px;
    }
    .story-img-inner img {
        padding: 3px;
    }
    .story-card span {
        font-size: 0.55rem;
    }
}

@media (max-width: 360px) {
    .story-track {
        gap: 6px;
        animation-duration: 45s;
    }
    .story-card {
        width: 54px;
    }
    .story-img-inner {
        width: 54px;
        height: 70px;
        border-radius: 8px;
    }
    .story-card span {
        font-size: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .story-track {
        animation: none;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .story-track::-webkit-scrollbar {
        display: none;
    }
}