/* ===============================
   RESET
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #041c2c;
    color: #ffffff;
}


/* ===============================
   HEADER
================================ */

.header {
    height: 70px;
    background: #03263b;

    display: flex;
    align-items: center;

    padding: 0 5%;

    border-bottom: 1px solid #164b63;

    position: sticky;
    top: 0;
    z-index: 1000;
}


/* LOGO */

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;

    margin-right: 55px;
}

.logo span:first-child {
    color: #79d0b7;
}

.logo span:nth-child(2) {
    color: #79d0b7;
}


/* NAVIGATION */

.navbar {
    display: flex;
    gap: 35px;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
    color: #01b4e4;
}


/* HEADER RIGHT */

.header-right {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 20px;
}

.language {
    background: transparent;

    border: 1px solid #ffffff;
    border-radius: 4px;

    color: #ffffff;

    padding: 6px 9px;

    cursor: pointer;
}

.search-icon,
.menu-btn {
    border: none;
    background: transparent;

    color: white;

    font-size: 22px;

    cursor: pointer;
}

.menu-btn {
    display: none;
}


/* ===============================
   SEARCH
================================ */

.search-area {
    display: none;

    background: #0a3347;

    padding: 20px 5%;
}

.search-area.show {
    display: block;
}

.search-box {
    display: flex;
    max-width: 1000px;
    margin: auto;
}

.search-box input {
    flex: 1;

    padding: 15px 20px;

    border: none;
    outline: none;

    border-radius: 7px 0 0 7px;

    font-size: 15px;
}

.search-box button {
    padding: 0 25px;

    border: none;

    background: #01b4e4;

    color: white;

    font-weight: bold;

    cursor: pointer;

    border-radius: 0 7px 7px 0;
}


/* ===============================
   HERO
================================ */

.hero {
    min-height: 430px;

    display: flex;
    align-items: center;

    padding: 60px 7%;

    background:
        linear-gradient(
            90deg,
            rgba(3, 30, 45, 0.98),
            rgba(3, 30, 45, 0.75),
            rgba(3, 30, 45, 0.25)
        ),
        linear-gradient(
            135deg,
            #08738b,
            #03263b
        );
}

.hero-content {
    max-width: 650px;
}

.hero-small {
    color: #01b4e4;

    font-size: 14px;
    font-weight: bold;

    letter-spacing: 3px;

    margin-bottom: 15px;
}

.hero h1 {
    font-size: 48px;

    line-height: 1.1;

    margin-bottom: 20px;
}

.hero p {
    color: #d5e5eb;

    font-size: 17px;

    line-height: 1.7;

    margin-bottom: 25px;
}

.hero-button {
    background: #01b4e4;

    border: none;

    color: white;

    padding: 13px 25px;

    border-radius: 5px;

    font-size: 15px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.3s;
}

.hero-button:hover {
    background: #009ac5;
}


/* ===============================
   CONTAINER
================================ */

.container {
    width: 90%;
    max-width: 1400px;

    margin: 50px auto;
}


/* ===============================
   SECTION HEADER
================================ */

.movie-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 27px;
}

.section-header a {
    color: #01b4e4;

    text-decoration: none;

    font-size: 14px;
}


/* ===============================
   MOVIE GRID
================================ */

.movie-grid {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 20px;
}


/* MOVIE CARD */

.movie-card {
    background: #082f42;

    border-radius: 7px;

    overflow: hidden;

    transition: 0.3s;

    cursor: pointer;
}

.movie-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.4);
}


/* POSTER */

.poster-placeholder {
    width: 100%;

    aspect-ratio: 2 / 3;

    background:
        linear-gradient(
            135deg,
            #155e73,
            #062a3c
        );

    display: flex;

    justify-content: center;
    align-items: center;

    font-size: 45px;

    color: #8ccbd7;
}


/* MOVIE INFO */

.movie-info {
    padding: 13px;
}

.movie-info h3 {
    font-size: 15px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    margin-bottom: 7px;
}

.movie-info p {
    color: #9bb5bf;

    font-size: 13px;
}


/* ===============================
   TRENDING
================================ */

.trending-box {
    background:
        linear-gradient(
            135deg,
            #0b536c,
            #073448
        );

    border-radius: 8px;

    padding: 35px;
}

.trending-box span {
    font-size: 35px;
}

.trending-box h3 {
    margin: 10px 0;

    font-size: 22px;
}

.trending-box p {
    color: #b9d0d8;
}


/* ===============================
   FOOTER
================================ */

.footer {
    background: #021b2a;

    padding: 45px 5%;

    text-align: center;

    color: #91aab4;
}

.footer-logo {
    color: #79d0b7;

    font-size: 23px;

    font-weight: bold;

    margin-bottom: 15px;
}

.footer p {
    margin: 8px 0;

    font-size: 13px;
}

.copyright {
    color: #617c87;
}


/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 1100px) {

    .movie-grid {
        grid-template-columns:
            repeat(4, 1fr);
    }

}


@media (max-width: 800px) {

    .navbar {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 38px;
    }

    .movie-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

}


@media (max-width: 550px) {

    .header {
        padding: 0 20px;
    }

    .logo {
        margin-right: 0;
    }

    .language {
        display: none;
    }

    .hero {
        min-height: 380px;

        padding: 40px 25px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 15px;
    }

    .container {
        width: 92%;
    }

    .movie-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 12px;
    }

    .section-header h2 {
        font-size: 22px;
    }

}

.poster {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #062a3c;
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.movie-card:hover .poster img {
    transform: scale(1.05);
}

.rating {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.85);
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.loading,
.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: #9bb5bf;
}