/* =========================================================
   MOVIES LISTING PAGE
   Shared header / cards / footer live in their own CSS files.
   ========================================================= */

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


/* ---------------------------------------------------------
   Page heading
--------------------------------------------------------- */

.movies-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));
}

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

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

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

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

.movies-page-stats {
    display: flex;
    align-items: baseline;
    gap: 5px;
    padding-bottom: 3px;
    color: #707a84;
    font-size: 10px;
    white-space: nowrap;
}

.movies-page-stats strong {
    color: #d5dade;
    font-size: 12px;
}

.movies-page-stats i {
    width: 3px;
    height: 3px;
    margin: 0 5px;
    border-radius: 50%;
    background: #3e474f;
}


/* ---------------------------------------------------------
   Main content
--------------------------------------------------------- */

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

.movies-ad-slot {
    position: relative;
    z-index: 1;
    margin-bottom: 22px;
}

.movies-ad-slot:empty {
    display: none;
}


/* ---------------------------------------------------------
   Poster grid
--------------------------------------------------------- */

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

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

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


/* ---------------------------------------------------------
   Pagination
--------------------------------------------------------- */

.movies-top-pager {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 21px;
}

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

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

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

.movies-pagination a,
.movies-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;
}

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

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

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

.movies-pagination li.edge a {
    color: #adb4bb;
}


/* ---------------------------------------------------------
   Empty state
--------------------------------------------------------- */

.movies-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;
}

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

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


/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

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

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

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

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

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

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

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

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

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

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

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

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

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