#motion.pure-cinema-motion {
    overflow: hidden;
    padding-inline: 0;
    container-type: inline-size;
}

#motion .cinema-rail {
    --film-width: min(72cqw, 860px);
    box-sizing: border-box;
    scroll-padding-inline: 0;
}

#motion .cinema-card {
    margin: 0;
    min-width: 0;
}

#motion .cinema-heading {
    margin-bottom: 0;
}

#motion .cinema-frame {
    position: relative;
}

#motion .cinema-frame video {
    border-radius: 0;
    height: 100%;
    background: transparent;
}

#motion .cinema-card figcaption {
    margin: 0;
}

#motion .cinema-dock[hidden] {
    display: none;
}

#motion .cinema-dock {
    max-width: calc(100% - 24px);
    box-sizing: border-box;
}

#motion .cinema-dots {
    display: grid;
    grid-template-columns: repeat(22, 18px);
}

#motion .cinema-dots button {
    width: 18px;
    height: 24px;
}

#motion .cinema-dots button::after {
    left: 6px;
    top: 9px;
}

#motion .cinema-dots button[aria-pressed=true]::after {
    left: 2px;
    width: 14px;
}

#motion .tk-motion-toggle {
    top: auto;
    bottom: 12px;
    width: 38px;
    height: 38px;
}

@media (max-width: 640px) {
    #motion .cinema-rail {
        --film-width: 74cqw;
    }

    #motion .cinema-dots {
        grid-template-columns: repeat(11, 18px);
    }

    #motion .cinema-count {
        display: none;
    }
}
