/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0b0910;
    color: #ffffff;
    min-height: 100vh;
}


/* =========================================
   HEADER
========================================= */

.header {
    width: 100%;
    height: 80px;

    display: flex;
    align-items: center;

    padding: 0 6%;

    gap: 30px;

    background: #111017;

    border-top: 1px solid #292630;
    border-bottom: 1px solid #242129;

    position: sticky;
    top: 0;

    z-index: 1000;
}


/* =========================================
   LOGO
========================================= */

.logo {
    color: #ffffff;

    text-decoration: none;

    font-size: 28px;

    font-weight: 800;

    white-space: nowrap;
}

.logo span {
    color: #ff3d71;
}


/* =========================================
   SEARCH BAR
========================================= */

.search-container {
    display: flex;

    align-items: center;

    width: 100%;
    max-width: 670px;

    height: 48px;

    margin: auto;

    background: #1a1820;

    border: 1px solid #302c36;

    border-radius: 9px;

    overflow: hidden;
}

.search-container input {
    flex: 1;

    width: 100%;
    height: 100%;

    padding: 0 17px;

    background: transparent;

    border: none;
    outline: none;

    color: #ffffff;

    font-size: 16px;
}

.search-container input::placeholder {
    color: #88838d;
}

.search-container button {
    width: 55px;
    height: 100%;

    border: none;

    background: #ff3d71;

    color: #111;

    font-size: 20px;

    cursor: pointer;

    transition: 0.2s;
}

.search-container button:hover {
    background: #ff5b86;
}


/* =========================================
   NAVIGATION
========================================= */

nav {
    display: flex;

    align-items: center;

    gap: 28px;
}

nav a {
    color: #cccccc;

    text-decoration: none;

    font-size: 15px;

    transition: 0.2s;
}

nav a:hover {
    color: #ffffff;
}


/* =========================================
   MOBILE MENU BUTTON
========================================= */

.menu-btn {
    display: none;

    border: none;

    background: transparent;

    color: #ffffff;

    font-size: 26px;

    cursor: pointer;
}


/* =========================================
   HERO
========================================= */

.hero {
    padding: 90px 6% 70px;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            #28182f 0%,
            #0b0910 65%
        );
}

.hero h1 {
    font-size: clamp(32px, 5vw, 58px);

    line-height: 1.1;

    margin-bottom: 18px;
}

.hero p {
    color: #96919c;

    font-size: 17px;
}


/* =========================================
   MAIN CONTENT
========================================= */

.content {
    width: 88%;

    max-width: 1400px;

    margin: auto;

    padding: 45px 0;
}

.section-header {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 28px;
}

#resultCount {
    color: #77727d;

    font-size: 14px;
}


/* =========================================
   CARD GRID
========================================= */

.card-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(230px, 1fr)
        );

    gap: 22px;
}


/* =========================================
   CARD
========================================= */

.card {
    background: #15131b;

    border: 1px solid #292630;

    border-radius: 10px;

    overflow: hidden;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);

    border-color: #ff3d71;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.45);
}


/* =========================================
   CARD IMAGE
========================================= */

.card-image {
    width: 100%;

    height: 310px;

    display: block;

    object-fit: cover;
}


/* =========================================
   CARD CONTENT
========================================= */

.card-content {
    padding: 16px;
}

.card-title {
    color: #ffffff;

    font-size: 17px;

    font-weight: 600;

    margin-bottom: 8px;
}

.card-description {
    color: #88838d;

    font-size: 13px;

    line-height: 1.5;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================
   NO RESULTS
========================================= */

.no-results {
    display: none;

    text-align: center;

    padding: 90px 20px;

    color: #77727d;
}

.no-results h2 {
    margin-bottom: 10px;
}


/* =========================================
   INFO PAGE
========================================= */

.info-page {
    width: 88%;

    max-width: 1200px;

    margin: auto;

    padding: 60px 0;
}


/* =========================================
   MOVIE INFO TOP SECTION
========================================= */

.info-container {
    display: grid;

    grid-template-columns:
        300px 1fr;

    gap: 45px;

    align-items: start;
}


/* =========================================
   MOVIE POSTER
========================================= */

.info-poster {
    width: 100%;

    height: 430px;

    display: block;

    object-fit: cover;

    border-radius: 12px;

    border: 1px solid #292630;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.55);
}


/* =========================================
   MOVIE DETAILS
========================================= */

.info-details {
    padding-top: 5px;
}

.info-details h1 {
    font-size: clamp(32px, 4vw, 48px);

    line-height: 1.15;

    margin-bottom: 20px;
}

.info-details p {
    color: #aaa5ae;

    font-size: 16px;

    line-height: 1.8;

    margin-top: 20px;

    margin-bottom: 25px;
}


/* =========================================
   MOVIE BADGES
========================================= */

.info-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}

.badge {
    display: inline-block;

    padding: 7px 13px;

    background: #211f27;

    border: 1px solid #302c36;

    border-radius: 6px;

    color: #c7c3ca;

    font-size: 13px;
}


/* =========================================
   BACK BUTTON
========================================= */

.back-btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 12px 20px;

    background: #ff3d71;

    color: #ffffff;

    text-decoration: none;

    border-radius: 7px;

    font-size: 14px;

    font-weight: 700;

    transition: 0.2s;
}

.back-btn:hover {
    background: #ff5b86;

    transform: translateY(-2px);
}


/* =========================================
   DOWNLOAD / QUALITY SECTION
========================================= */

.download-section {
    width: 100%;

    margin-top: 65px;

    padding-top: 40px;

    border-top: 1px solid #292630;
}

.download-section h2 {
    text-align: center;

    font-size: 29px;

    margin-bottom: 35px;
}


/* =========================================
   DOWNLOAD LIST
========================================= */

.download-list {
    width: 100%;

    max-width: 900px;

    margin: 0 auto;
}


/* =========================================
   INDIVIDUAL DOWNLOAD ITEM
========================================= */

.download-item {
    width: 100%;

    text-align: center;

    margin-bottom: 32px;
}


/* =========================================
   DOWNLOAD TITLE
========================================= */

.download-title {
    color: #ffffff;

    font-size: 22px;

    line-height: 1.5;

    margin-bottom: 17px;
}


/* GREEN LANGUAGE TEXT */

.download-title span {
    color: #c7ff00;
}


/* FILE SIZE */

.download-title b {
    color: #ffffff;

    font-weight: 400;
}


/* =========================================
   DOWNLOAD BUTTON
========================================= */

.download-btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    min-width: 265px;

    padding: 15px 22px;

    background: #c7ff00;

    color: #080808;

    text-decoration: none;

    border-radius: 8px;

    font-size: 17px;

    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.download-btn:hover {
    background: #d8ff4c;

    transform: translateY(-2px);
}

.download-btn span {
    font-size: 25px;

    line-height: 1;
}


/* =========================================
   MOVIE NOT FOUND
========================================= */

.not-found {
    text-align: center;

    padding: 100px 20px;
}

.not-found h1 {
    font-size: 35px;

    margin-bottom: 15px;
}

.not-found p {
    color: #88838d;

    margin-bottom: 25px;
}


/* =========================================
   FOOTER
========================================= */

footer {
    width: 100%;

    margin-top: 50px;

    padding: 32px 6%;

    border-top: 1px solid #242129;

    text-align: center;

    color: #66616c;

    font-size: 13px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .header {
        padding: 0 4%;

        gap: 18px;
    }

    nav {
        gap: 18px;
    }

    .info-container {
        grid-template-columns:
            250px 1fr;

        gap: 30px;
    }

    .info-poster {
        height: 370px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .header {
        height: auto;

        min-height: 70px;

        padding: 12px 4%;

        flex-wrap: wrap;

        gap: 12px;
    }


    .logo {
        font-size: 23px;
    }


    .menu-btn {
        display: block;

        margin-left: auto;
    }


    nav {
        display: none;

        position: absolute;

        top: 70px;

        right: 4%;

        width: 180px;

        padding: 18px;

        background: #15131b;

        border: 1px solid #302c36;

        border-radius: 8px;

        flex-direction: column;

        gap: 18px;
    }


    nav.active {
        display: flex;
    }


    .search-container {
        order: 3;

        flex-basis: 100%;

        max-width: none;

        margin: 3px 0 0;
    }


    .hero {
        padding: 60px 5% 50px;
    }


    .hero h1 {
        font-size: 35px;
    }


    .hero p {
        font-size: 15px;
    }


    .content {
        width: 92%;

        padding: 35px 0;
    }


    .card-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 12px;
    }


    .card-image {
        height: 220px;
    }


    .card-content {
        padding: 12px;
    }


    .card-title {
        font-size: 14px;
    }


    .card-description {
        font-size: 11px;
    }


    /* INFO PAGE */

    .info-page {
        width: 92%;

        padding: 35px 0;
    }


    .info-container {
        grid-template-columns: 1fr;

        gap: 28px;
    }


    .info-poster {
        width: 250px;

        height: 350px;

        margin: 0 auto;
    }


    .info-details {
        text-align: center;
    }


    .info-details h1 {
        font-size: 30px;
    }


    .info-meta {
        justify-content: center;
    }


    .download-section {
        margin-top: 45px;

        padding-top: 30px;
    }


    .download-section h2 {
        font-size: 25px;
    }


    .download-title {
        font-size: 17px;

        padding: 0 5px;
    }


    .download-btn {
        min-width: 240px;

        padding: 14px 18px;

        font-size: 15px;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 400px) {

    .logo {
        font-size: 21px;
    }


    .card-grid {
        grid-template-columns: 1fr;
    }


    .card-image {
        height: 300px;
    }


    .download-title {
        font-size: 16px;
    }


    .download-btn {
        width: 100%;

        min-width: 0;
    }

}
