/* Seamless Popular Today marquee: animated only after its visual duplicate is ready. */
body.darkmode .hothome .popconslide {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
}

body.darkmode .hothome .listupd {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    width: max-content !important;
    overflow: visible !important;
    animation: marqueeContinuous 25s linear infinite !important;
    will-change: auto !important;
}

body.darkmode .hothome .listupd[data-moonscans-marquee="ready"] {
    animation: moonscansSeamlessMarquee var(--moonscans-marquee-duration, 30s) linear infinite !important;
}

body.darkmode .hothome .listupd[data-moonscans-marquee-shell="true"] {
    width: 100% !important;
    max-width: 100% !important;
    animation: none !important;
    transform: none !important;
}

body.darkmode .hothome .listupd .bs {
    flex: 0 0 130px !important;
    min-width: 130px !important;
    margin: 0 10px 0 0 !important;
}

body.darkmode .hothome .listupd .bs.moonscans-marquee-clone {
    pointer-events: none !important;
}

body.darkmode .hothome .listupd:hover,
body.darkmode .hothome .listupd:focus-within {
    animation-play-state: paused !important;
}

@keyframes moonscansSeamlessMarquee {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(var(--moonscans-marquee-distance, -50%), 0, 0); }
}

@media (max-width: 768px) {
    body.darkmode .hothome .listupd .bs {
        flex-basis: 110px !important;
        min-width: 110px !important;
        margin-right: 10px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.darkmode .hothome .popconslide {
        overflow-x: auto !important;
        scroll-snap-type: x proximity !important;
        -webkit-overflow-scrolling: touch !important;
    }

    body.darkmode .hothome .listupd,
    body.darkmode .hothome .listupd[data-moonscans-marquee="ready"] {
        animation: none !important;
        transform: none !important;
        will-change: auto !important;
    }

    body.darkmode .hothome .moonscans-marquee-clone {
        display: none !important;
    }
}
