/* Page markers inside continuous CSS grids (must not create empty rows) */
.collection-items-grid > .seo-page-item {
    min-width: 0;
}

.collection-items-grid > .seo-page-item > .hv-card {
    height: 100%;
}

/* SEO list pagination bar — always horizontal, never a broken grid row */
.seo-pager {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin: 1.25rem 0 0.5rem;
    padding: 0.5rem 0.25rem 0.85rem;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--col-muted, var(--hv-muted, rgba(255, 255, 255, 0.55)));
    clear: both;
    grid-column: 1 / -1;
}

.seo-pager__list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.seo-pager__list > li {
    display: inline-flex;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.seo-pager__link,
.seo-pager__current,
.seo-pager__ellipsis,
.seo-pager__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.55rem;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.seo-pager__link:hover,
.seo-pager__nav:hover {
    color: var(--col-text, var(--hv-text, rgba(255, 255, 255, 0.92)));
}

.seo-pager__current {
    font-weight: 700;
    color: var(--col-text, var(--hv-text, rgba(255, 255, 255, 0.95)));
}

.seo-pager__ellipsis {
    min-width: 0;
    padding-inline: 0.1rem;
    font-size: 0.72rem;
    opacity: 0.45;
    pointer-events: none;
    user-select: none;
}

.seo-pager__nav {
    font-size: 0.78rem;
    opacity: 0.8;
}

/* «مشاهده‌ی فیلم‌های قبلی» — sheet «صفحه‌بندی» §6 */
.seo-load-previous {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 0 1rem;
    padding: 0.35rem 0.25rem 0.75rem;
    clear: both;
    grid-column: 1 / -1;
}

.seo-load-previous__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.35rem;
    color: var(--col-text, var(--hv-text, rgba(255, 255, 255, 0.88)));
    font-size: 0.88rem;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.seo-load-previous__link:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
    color: var(--col-text, var(--hv-text, rgba(255, 255, 255, 0.95)));
}

.seo-load-previous__link.is-loading,
.seo-load-previous__link[aria-busy='true'] {
    opacity: 0.55;
    pointer-events: none;
}
