/* =========================================================
   SHARED CATALOG PAGES
   Genre / Country / Release / Top Rated
   ========================================================= */

.catalog-body {
    background:
        radial-gradient(circle at 50% -12%, rgba(227,38,46,.055), transparent 30%),
        var(--site-bg);
}

.catalog-page-head {
    padding: 42px 0 26px;
    border-bottom: 1px solid #171d23;
    background:
        linear-gradient(180deg, rgba(15,19,24,.62), rgba(8,11,15,0));
}

.catalog-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
}

.catalog-kicker {
    margin-bottom: 8px;
    color: var(--brand-red);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.catalog-page-head h1 {
    margin: 0;
    color: #f2f4f6;
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -.6px;
}

.catalog-page-head p {
    margin: 9px 0 0;
    color: #77818b;
    font-size: 12px;
    line-height: 1.5;
}

.catalog-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 7px;
}

.catalog-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    min-height: 30px;
    padding: 6px 9px;
    border: 1px solid #20272f;
    border-radius: 6px;
    background: #10151a;
    color: #7f8993;
    font-size: 9px;
}

.catalog-stat strong {
    color: #d8dde1;
    font-size: 11px;
}

.catalog-content {
    padding: 28px 0 10px;
}

.catalog-ad-slot {
    margin-bottom: 22px;
}

.catalog-top-pager {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.catalog-section + .catalog-section {
    margin-top: 38px;
}

.catalog-section-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 16px;
}

.catalog-section-title h2 {
    margin: 0;
    color: #e9ecef;
    font-size: 16px;
    line-height: 1.2;
}

.catalog-section-title span {
    color: #626d77;
    font-size: 10px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 26px 14px;
}

.catalog-grid .poster-card {
    width: 100%;
}

.catalog-grid .poster-card-image {
    box-shadow: 0 9px 25px rgba(0,0,0,.2);
}

.catalog-bottom-pager {
    display: flex;
    justify-content: center;
    padding: 40px 0 20px;
}

.catalog-pagination ul {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.catalog-pagination li {
    list-style: none;
}

.catalog-pagination a,
.catalog-pagination li > span {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border: 1px solid #222a32;
    border-radius: 6px;
    background: #10151b;
    color: #87919b;
    text-decoration: none;
    font-size: 10px;
    font-weight: 800;
    transition:
        background .16s ease,
        border-color .16s ease,
        color .16s ease;
}

.catalog-pagination a:hover {
    border-color: #4b3035;
    background: #171d24;
    color: #fff;
}

.catalog-pagination li.active > span {
    border-color: var(--brand-red);
    background: var(--brand-red);
    color: #fff;
}

.catalog-pagination li.dots > span {
    min-width: 24px;
    padding: 0 3px;
    border-color: transparent;
    background: transparent;
    color: #56616b;
}

.catalog-empty {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #1d242b;
    border-radius: 9px;
    background: #0e1318;
    text-align: center;
}

.catalog-empty strong {
    color: #dfe3e6;
    font-size: 14px;
}

.catalog-empty span {
    color: #68727c;
    font-size: 11px;
}

@media (max-width: 1100px) {
    .catalog-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .catalog-page-head {
        padding-top: 32px;
    }

    .catalog-heading-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .catalog-page-head h1 {
        font-size: 26px;
    }

    .catalog-stats {
        justify-content: flex-start;
    }

    .catalog-top-pager {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 3px;
    }

    .catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px 11px;
    }
}

@media (max-width: 470px) {
    .catalog-page-head {
        padding: 27px 0 20px;
    }

    .catalog-page-head h1 {
        font-size: 23px;
    }

    .catalog-content {
        padding-top: 22px;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 11px;
    }

    .catalog-pagination a,
    .catalog-pagination li > span {
        min-width: 31px;
        height: 31px;
        padding: 0 7px;
    }

    .catalog-pagination li.edge {
        display: none;
    }
}