.main_header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 6.6rem;
    background-color: var(--black);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: .4rem 1.4rem;
    z-index: 999;
}

.main_header .logo {
    width: 6.8rem;
}

.main_header .header_actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.menu {
    position: fixed;
    top: 4.6rem;
    height: calc(100vh - 4.6rem);
    width: 100%;
    background-color: var(--black);
    display: none;
    flex-wrap: wrap;
    padding: 3.8rem 1.4rem;
    z-index: 997;
}

.menu ul li a {
    text-decoration: none;
    text-transform: uppercase;
    color: var(--gray);
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 2rem;
    padding: .4rem;
    cursor: pointer;
    transition: 200ms;
}

.menu ul li a:hover {
    color: var(--red);
    text-indent: 1rem;
}

.search {
    position: fixed;
    top: 4.6rem;
    height: calc(100vh - 4.6rem);
    width: 100%;
    background: rgba(19, 16, 16, 0.76);
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    z-index: 998;
}

.close_search_btn {
    flex-basis: 100%;
}

.search_box {
    flex-basis: 100%;
    background-color: var(--black);
    width: 90%;
    max-width: 34.8rem;
    border-radius: .8rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search_box h2 {
    color: var(--gray);
    text-align: center;
    padding-block: 1rem 1.4rem;
}

.search_box form {
    display: flex;
    gap: .6rem;
    width: 100%;
}

.search_box input {
    display: block;
    background-color: var(--light);
    border-radius: .4rem;
    border: none;
    padding: 1rem;
    width: 100%;
    max-width: 25rem;
}

.search_box input::placeholder {
    color: #9D9595;
}

.search_box .btn_search {
    background-color: var(--red);
    border-radius: .4rem;
}

main {
    width: 95%;
    margin: 8rem auto 4rem;
}

.section_header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-block: 4rem 2rem;
}

.section_header h2,
.section_header a {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.section_header h2 {
    text-transform: uppercase;
    color: var(--gray);
    font-size: 1.4rem;
    font-weight: 700;
}

.section_header a {
    text-decoration: none;
    text-transform: uppercase;
    color: var(--red);
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 200ms;
}

.section_header a:hover {
    text-decoration: underline var(--red);
}

.section_header a:hover img {
    transform: translateX(5px);
}

section form {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

section form .btn {
    background-color: var(--red);
    border-radius: .4rem;
}

.films_slide_box {
    position: relative;
}

.films_slide_box:hover .slide_control {
    background: linear-gradient(95deg, #0F0E0E 4.57%, rgba(15, 14, 14, 0.00) 149.08%);
}

.films_slide_box .slide_control {
    height: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    background: linear-gradient(95deg, rgba(15, 14, 14, 0.35) 4.57%, rgba(15, 14, 14, 0.00) 149.08%);
    width: 2rem;
    border-radius: .8rem;
}

.films_slide_box .slide_control .icon {
    max-width: 2.5rem;
}

.films_slide_box .left {
    left: 0;
}

.films_slide_box .right {
    right: 0;
}

.films_slide_box .films {
    max-width: 100%;
    display: flex;
    align-items: stretch;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.films_slide_box .films::-webkit-scrollbar {
    display: none;
}

.films_box .films {
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem 1rem;
}

.film {
    flex-shrink: 0;
    width: 10.4rem;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.film .cover {
    width: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0px 0px;
}

.film_info {
    height: 100%;
    border-radius: 0px 0px 8px 8px;
    background: var(--black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .8rem;
    padding: .6rem;
}

.film_info h2 {
    color: var(--light);
    font-size: 1.4rem;
    font-weight: 900;
    word-break: break-word;
}

.film_info del {
    color: var(--red);
    font-size: 12px;
}

.film_info span {
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
}

.film_info .btn {
    background-color: var(--green);
    border-radius: .4rem;
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
}

.film_info .btn:hover {
    opacity: .8;
}

.paginator {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: center;
    font-weight: 700;
}

.paginator_item {
    display: inline-block;
    margin: 0 .4rem;
    padding: .4rem 1.2rem;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

.paginator_item:hover {
    background: var(--red);
}

.paginator_active,
.paginator_active:hover {
    background: var(--red);
}

.error {
    text-align: center;
    color: var(--gray);
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    gap: 1.4rem;
}

.error img {
    margin: auto;
    max-width: 20rem;
}
