﻿@import url("https://fonts.googleapis.com/css?family=Oswald&display=swap");


* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    min-height: 100vh;

    background: #151316;
    color: #ffffff;

    font-family: Arial, sans-serif;

    display: flex;
    flex-direction: column;
    align-items: center;
}



header {
    width: 100%;

    padding: 50px 5%;

    background: #151316;

    border-bottom: 1px solid #29272a;

    display: flex;
    align-items: center;
    justify-content: center;
}

header h1 {
    margin: 0;

    color: #ffffff;

    font-size: 2rem;
    font-weight: 1000;

    letter-spacing: 0.5px;
}



main {
    width: 100%;
    max-width: 1250px;

    margin: 0 auto;

    padding: 25px 20px 40px;

    text-align: center;

    position: relative;
}


.input-container {
    width: 360px;
    max-width: 360px;

    margin: 0 0 25px auto;
    padding: 5px;

    display: flex;
    align-items: center;
    gap: 8px;

    background: rgba(17, 16, 19, 0.35);

    border: 1px solid rgba(7, 88, 115, 0.65);
    border-radius: 5px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);

    position: relative;
}

.input-container input {
    flex: 1;
    min-width: 0;

    height: 38px;

    padding: 0 12px;

    background: transparent;
    color: #ffffff;

    border: none;
    outline: none;

    font-size: 13px;
    font-weight: 400;
}

.input-container input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.input-container input:focus {
    background: rgba(255, 255, 255, 0.03);
}

.input-container button {
    flex: 0 0 auto;

    width: 75px;
    height: 38px;

    padding: 0;

    background: rgba(7, 88, 115, 0.75);
    color: #ffffff;

    border: 1px solid rgba(12, 126, 165, 0.6);
    border-radius: 4px;

    cursor: pointer;

    font-size: 12px;
    font-weight: 600;

    text-transform: none;
    letter-spacing: 0;

    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}

.input-container button:hover {
    background: rgba(8, 115, 149, 0.85);
    border-color: rgba(11, 138, 178, 0.8);
}

.wrapper {
    width: auto;

    margin: 0;

    display: flex;

    justify-content: flex-start;
    align-items: center;

    gap: 12px;

    position: absolute;

    top: 35px;
    left: 20px;

    z-index: 10;
}


.button1 {
    position: relative;

    margin: 0;

    padding: 8px 16px;

    min-width: 120px;

    background: #064b67;

    color: #ffffff;

    border: 1px solid #086382;

    border-radius: 4px;

    cursor: pointer;

    font-family: Arial, sans-serif;

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 0;

    text-transform: none;

    perspective: none;

    transform: none;

    transform-style: flat;

    mix-blend-mode: normal;

    box-shadow: none;

    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}

.button1:hover {
    background: #075873;

    border-color: #0b8ab2;

    transform: none;

    box-shadow: none;
}

.button1:active {
    transform: translateY(0) scale(0.97);
}


.button1::before,
.button1::after {
    display: none;
}


#MoviesGrid {
    width: 100%;

    margin: 25px auto 0;

    padding: 0;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 24px;

    align-items: stretch;
}



.movie-card {
    width: 100%;

    min-width: 0;

    margin: 0;

    padding: 12px;

    background: #064b67;

    border: 1px solid #075873;

    border-radius: 5px;

    text-align: left;

    cursor: pointer;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.35);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}



.movie-card:hover {
    background: #075873;

    border-color: #0a789c;

    transform: translateY(-7px);

    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.55);
}


.movie-card img {
    display: block;

    width: 100%;
    height: 250px;

    margin: 0 auto 12px;

    object-fit: cover;

    border: none;

    border-radius: 3px;

    background: #111;

    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.movie-card:hover img {
    transform: scale(1.025);

    filter: brightness(1.08);
}



.movie-card h2 {
    margin: 3px 0 6px;

    padding: 0;

    color: #ffffff;

    font-family: Arial, sans-serif;

    font-size: 1rem;

    font-weight: 600;

    line-height: 1.35;

    transition: color 0.25s ease;
}

.movie-card:hover h2 {
    color: #d9f5ff;
}



.movie-card p {
    margin: 3px 0;

    color: #c9dce2;

    font-family: Arial, sans-serif;

    font-size: 0.82rem;

    line-height: 1.4;
}



.results {
    width: 100%;

    margin: 25px auto;

    padding: 0;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 24px;

    justify-content: center;
}



.movie {
    width: 100%;

    min-width: 0;

    margin: 0;

    padding: 12px;

    background: #064b67;

    color: #ffffff;

    border: 1px solid #075873;

    border-radius: 5px;

    text-align: left;

    display: flex;

    flex-direction: column;

    align-items: stretch;

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.35);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.movie:hover {
    background: #075873;

    border-color: #0a789c;

    transform: translateY(-7px);

    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.55);
}



.movie img {
    display: block;

    width: 100%;
    max-width: 180px;

    height: 250px;

    margin: 0 auto 12px;

    object-fit: cover;

    border: none;

    border-radius: 3px;

    background: #111;

    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.movie:hover img {
    transform: scale(1.025);

    filter: brightness(1.08);
}

.movie h2 {
    margin: 3px 0 7px;

    padding: 0;

    color: #ffffff;

    font-family: Arial, sans-serif;

    font-size: 1rem;

    font-weight: 600;

    line-height: 1.35;
}


.movie p {
    margin: 5px 0;

    color: #c9dce2;

    font-family: Arial, sans-serif;

    font-size: 0.82rem;

    line-height: 1.45;
}


#MoviesGrid > p {
    grid-column: 1 / -1;

    margin: 40px auto;

    color: #cbd9de;

    font-size: 1.1rem;

    text-align: center;

    animation: loadingPulse 1.4s ease-in-out infinite;
}


@keyframes loadingPulse {

    0%,
    100% {
        opacity: 0.45;
    }

    50% {
        opacity: 1;
    }
}


.movie-card,
.movie {
    animation: movieAppear 0.45s ease both;
}


@keyframes movieAppear {

    from {
        opacity: 0;

        transform:
            translateY(20px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* Stagger movie cards */

.movie-card:nth-child(1),
.movie:nth-child(1) {
    animation-delay: 0.05s;
}

.movie-card:nth-child(2),
.movie:nth-child(2) {
    animation-delay: 0.10s;
}

.movie-card:nth-child(3),
.movie:nth-child(3) {
    animation-delay: 0.15s;
}

.movie-card:nth-child(4),
.movie:nth-child(4) {
    animation-delay: 0.20s;
}

.movie-card:nth-child(5),
.movie:nth-child(5) {
    animation-delay: 0.25s;
}

.movie-card:nth-child(6),
.movie:nth-child(6) {
    animation-delay: 0.30s;
}

.movie-card:nth-child(7),
.movie:nth-child(7) {
    animation-delay: 0.35s;
}

.movie-card:nth-child(8),
.movie:nth-child(8) {
    animation-delay: 0.40s;
}


footer {
    width: 100%;

    margin-top: 50px;

    padding: 25px 5%;

    border-top: 1px solid #29272a;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    color: #9da8ac;

    font-size: 14px;
}


footer div {
    margin: 0;
}


footer div ul {
    margin: 0;
    padding: 0;

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 18px;

    list-style: none;
}


footer div ul li {
    margin: 0;
    padding: 0;

    display: block;
}


footer div ul li a {
    width: auto;

    margin: 0;

    color: #9da8ac;

    text-decoration: none;

    font-size: 14px;

    transition:
        color 0.25s ease;
}


footer div ul li a:hover {
    color: #ffffff;
}


.card-title {
    width: 100%;

    display: flex;

    flex-wrap: wrap;

    color: #ffffff;
}


.col-lg-3 {
    flex: 1;

    display: flex;

    flex-direction: column;

    align-items: center;

    list-style: none;

    margin: 10px;

    padding: 15px;

    border-radius: 5px;

    text-align: center;

    background: #064b67;

    color: #ffffff;

    font-family: Arial, sans-serif;
}


.col-lg-3 img {
    width: 180px;

    height: 250px;

    object-fit: cover;

    border-radius: 3px;

    border: none;
}



.results li {
    flex: 1;

    display: flex;

    flex-direction: column;

    align-items: center;

    list-style: none;

    margin: 10px;

    padding: 15px;

    border-radius: 5px;

    text-align: center;

    background: #064b67;

    color: #ffffff;
}


.results li img {
    width: 180px;

    height: 250px;

    object-fit: cover;

    border-radius: 3px;

    border: none;
}


.results li h2 {
    color: #ffffff;

    font-size: 1rem;

    padding: 10px 5px 0;

    font-family: Arial, sans-serif;
}


hr {
    width: 100%;

    margin: 15px 0;

    border: none;

    border-top: 1px solid #29272a;
}


button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 2px solid #0b8ab2;

    outline-offset: 3px;
}


@media screen and (max-width: 1050px) {

    #MoviesGrid,
    .results {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


@media screen and (max-width: 800px) {

    header {
        padding: 20px 4%;
    }

    header h1 {
        font-size: 1.7rem;
    }

    main {
        padding: 20px 15px 35px;
    }

    #MoviesGrid,
    .results {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 18px;
    }

    .movie-card,
    .movie {
        padding: 10px;
    }

    .movie-card img,
    .movie img {
        height: 240px;
    }

    footer {
        flex-direction: column;

        text-align: center;

        padding: 25px 15px;
    }
}


@media screen and (max-width: 600px) {

    header {
        padding: 18px 15px;

        text-align: center;

        justify-content: center;
    }

    header h1 {
        font-size: 1.5rem;
    }

    main {
        width: 100%;

        padding:
            18px 12px 30px;
    }


    /* Search */

    .input-container {
        flex-direction: column;

        position: static;

        width: 100%;
        max-width: 100%;

        margin: 5px 0 15px;

        gap: 8px;
    }

    .input-container input,
    .input-container button {
        width: 100%;

        min-height: 45px;
    }


    /* Buttons */

    .wrapper {
        flex-direction: column;

        gap: 8px;
    }

    .button1 {
        width: 100%;

        max-width: 300px;
    }


    /* Movies */

    #MoviesGrid,
    .results {
        grid-template-columns: 1fr;

        gap: 18px;

        width: 100%;
    }

    .movie-card,
    .movie {
        width: 100%;

        max-width: 330px;

        margin-left: auto;
        margin-right: auto;
    }


    .movie-card img,
    .movie img {
        width: 180px;

        height: 250px;
    }


    .movie-card h2,
    .movie h2 {
        font-size: 1rem;
    }


    /* Footer */

    footer div ul {
        gap: 12px;
    }
}



@media screen and (max-width: 380px) {

    header h1 {
        font-size: 1.3rem;
    }

    .movie-card,
    .movie {
        max-width: 290px;
    }

    .movie-card img,
    .movie img {
        width: 165px;

        height: 230px;
    }
}


@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}

.search-area {
    width: 100%;
    margin: 5px 0 15px;

    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: 10px;
}

.search-row {
    width: 380px;

    display: flex;
    align-items: center;

    gap: 6px;

    padding: 4px;

    background: rgba(17, 16, 19, 0.55);

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.25);
}

.search-row input {
    flex: 1;

    height: 40px;

    padding: 0 12px;

    background: transparent;

    color: #ffffff;

    border: none;
    outline: none;

    font-size: 13px;
}

.search-row input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.search-row button {
    width: 75px;
    height: 40px;

    background: rgba(7, 88, 115, 0.85);

    color: #ffffff;

    border: none;
    border-radius: 4px;

    cursor: pointer;

    font-size: 12px;
    font-weight: 600;
}

.search-row button:hover {
    background: #087395;
}


/* FILTERS */

.filter-row {
    width: 100%;

    display: flex;
    justify-content: flex-end;

    align-items: center;

    gap: 7px;

    flex-wrap: wrap;
}

.filter-row input,
.filter-row select {
    height: 34px;

    padding: 0 9px;

    background: rgba(17, 16, 19, 0.7);

    color: #ffffff;

    border: 1px solid #075873;

    border-radius: 4px;

    outline: none;

    font-family: Arial, sans-serif;

    font-size: 12px;
}

.filter-row input::placeholder {
    color: #7e8589;
}

.filter-row input:focus,
.filter-row select:focus {
    border-color: #0c7ea5;

    box-shadow:
        0 0 0 1px rgba(12, 126, 165, 0.2);
}

.filter-row input[type=number] {
    width: 75px;
}

.filter-row select {
    min-width: 105px;
}

#directorFilter {
    width: 125px;
}

#studioFilter {
    width: 120px;
}

#actorFilter {
    width: 120px;
}


body {
    background:
        radial-gradient(
            ellipse at 50% -20%,
            rgba(14, 94, 122, 0.28),
            transparent 55%
        ),
        linear-gradient(
            180deg,
            #080a0d 0%,
            #0b0d11 45%,
            #07090c 100%
        );

    font-family: Arial, sans-serif;
}




header {
    min-height: 105px;

    justify-content: flex-start;

    padding: 28px 5%;

    background:
        linear-gradient(
            90deg,
            rgba(5, 20, 27, 0.98),
            rgba(8, 10, 14, 0.94),
            rgba(8, 10, 14, 0.75)
        );

    border-bottom: 1px solid rgba(255, 255, 255, 0.07);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35);
}

header h1 {
    position: relative;

    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 900;

    letter-spacing: -1px;

    text-transform: uppercase;
}

header h1::after {
    content: "";

    display: none;

    width: 45px;
    height: 3px;

    margin-top: 9px;

    background: #0b8ab2;

    border-radius: 10px;

    box-shadow:
        0 0 15px rgba(11, 138, 178, 0.8);
}



main {
    max-width: 1400px;

    padding-top: 35px;
}



.search-area {
    position: relative;

    margin-bottom: 35px;
}

.search-row {
    width: min(650px, 100%);

    padding: 7px;

    background: rgba(17, 20, 25, 0.92);

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 50px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.4);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.search-row:focus-within {
    border-color: rgba(11, 138, 178, 0.75);

    box-shadow:
        0 0 0 4px rgba(11, 138, 178, 0.08),
        0 15px 45px rgba(0, 0, 0, 0.5);
}

.search-row input {
    height: 45px;

    padding-left: 20px;

    font-size: 14px;
}

.search-row button {
    width: 105px;
    height: 45px;

    border-radius: 50px;

    background: #0b8ab2;

    border: none;

    font-size: 13px;
    font-weight: 700;

    box-shadow:
        0 5px 18px rgba(11, 138, 178, 0.25);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.search-row button:hover {
    background: #0da4d0;

    transform: translateY(-1px);

    box-shadow:
        0 8px 25px rgba(11, 138, 178, 0.4);
}




.filter-row {
    justify-content: flex-end;

    gap: 8px;

    padding: 13px 15px;

    background: rgba(14, 16, 20, 0.85);

    border: 1px solid rgba(255, 255, 255, 0.07);

    border-radius: 12px;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.25);
}

.filter-row input,
.filter-row select {
    height: 36px;

    padding: 0 12px;

    background: #111419;

    border: 1px solid rgba(255, 255, 255, 0.09);

    border-radius: 7px;

    color: #dfe8eb;

    font-size: 12px;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.filter-row input:hover,
.filter-row select:hover {
    background: #171b21;

    border-color: rgba(255, 255, 255, 0.18);
}

.filter-row input:focus,
.filter-row select:focus {
    border-color: #0b8ab2;

    background: #111a1f;

    box-shadow:
        0 0 0 2px rgba(11, 138, 178, 0.1);
}



#MoviesGrid,
.results {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 26px;

    margin-top: 35px;
}


.movie-card,
.movie {
    position: relative;

    padding: 0;

    background: #111419;

    border: 1px solid rgba(255, 255, 255, 0.07);

    border-radius: 10px;

    overflow: hidden;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.4);

    transition:
        transform 0.35s cubic-bezier(.2,.8,.2,1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}




.movie-card::before,
.movie::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 3px;

    background: #0b8ab2;

    opacity: 0;

    z-index: 5;

    transition: opacity 0.3s ease;
}





.movie-card img,
.movie img {
    width: 100%;

    height: 320px;

    max-width: none;

    margin: 0;

    border-radius: 0;

    object-fit: cover;

    box-shadow: none;

    transition:
        transform 0.5s cubic-bezier(.2,.8,.2,1),
        filter 0.4s ease;
}

.movie-card:hover img,
.movie:hover img {
    transform: scale(1.045);

    filter:
        brightness(1.12)
        saturate(1.08);
}


.movie-card::after,
.movie::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    top: 240px;

    height: 100px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            #111419
        );

    pointer-events: none;

    z-index: 1;
}


.movie-card h2,
.movie h2 {
    position: relative;

    z-index: 3;

    margin: 0;

    padding: 14px 14px 5px;

    font-size: 1rem;

    font-weight: 700;

    line-height: 1.3;

    letter-spacing: -0.2px;
}

.movie-card p,
.movie p {
    position: relative;

    z-index: 3;

    margin: 0;

    padding: 2px 14px 14px;

    color: #8e9ba1;

    font-size: 0.78rem;

    line-height: 1.45;
}



.results li {
    margin: 0;

    padding: 0;

    background: #111419;

    border: 1px solid rgba(255, 255, 255, 0.07);

    border-radius: 10px;

    overflow: hidden;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.4);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.results li:hover {
    transform: translateY(-8px);

    border-color: rgba(11, 138, 178, 0.5);
}

.results li img {
    width: 100%;

    height: 320px;

    margin: 0;

    border-radius: 0;

    object-fit: cover;
}

.results li h2 {
    margin: 0;

    padding: 14px;

    font-weight: 700;
}



#MoviesGrid > p {
    padding: 60px 20px;

    color: #718087;

    font-size: 14px;

    letter-spacing: 0.3px;
}





@media screen and (max-width: 1050px) {

    #MoviesGrid,
    .results {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .movie-card img,
    .movie img,
    .results li img {
        height: 300px;
    }
}


@media screen and (max-width: 800px) {

    #MoviesGrid,
    .results {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 18px;
    }

    .movie-card img,
    .movie img,
    .results li img {
        height: 280px;
    }

    .filter-row {
        justify-content: center;
    }

    .wrapper {
        justify-content: center;
    }
}


@media screen and (max-width: 600px) {

    header {
        min-height: 85px;

        padding: 22px 15px;

        justify-content: center;
    }

    header h1 {
        text-align: center;

        font-size: 1.5rem;
    }

    header h1::after {
        margin-left: auto;
        margin-right: auto;
    }

    main {
        padding: 22px 12px 30px;
    }

    .search-row {
        width: 100%;
    }

    .wrapper {
        justify-content: center;
    }

    .filter-row {
        padding: 12px;
    }

    #MoviesGrid,
    .results {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .movie-card,
    .movie {
        width: 100%;

        max-width: 340px;

        margin-left: auto;
        margin-right: auto;
    }

    .movie-card img,
    .movie img,
    .results li img {
        height: 380px;
    }

    .movie-card:hover,
    .movie:hover {
        transform: translateY(-5px);
    }
}


@media screen and (max-width: 380px) {

    .movie-card,
    .movie {
        max-width: 300px;
    }

    .movie-card img,
    .movie img,
    .results li img {
        height: 340px;
    }
}