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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
    color: #222;
}

header {
    height: 70px;
    background: #333545;
    color: white;
    display: flex;
    align-items: center;
    padding: 0 6%;
    gap: 25px;
}

.logo {
    font-size: 27px;
    font-weight: bold;
    white-space: nowrap;
}

.logo span,
.footer-logo span {
    color: #f84464;
}

.location {
    font-size: 14px;
    white-space: nowrap;
}

.search {
    flex: 1;
    max-width: 600px;
    background: white;
    border-radius: 5px;
    padding: 11px 15px;
    color: #777;
}

.search input {
    width: 90%;
    border: none;
    outline: none;
    font-size: 14px;
}

.signin {
    background: #f84464;
    color: white;
    border: none;
    padding: 9px 20px;
    border-radius: 4px;
    cursor: pointer;
}

nav {
    height: 45px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6%;
    box-shadow: 0 2px 5px rgba(0,0,0,.1);
}

nav a {
    margin-right: 22px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.hero {
    height: 390px;
    background:
        linear-gradient(90deg, rgba(20,20,30,.95), rgba(20,20,30,.45), rgba(20,20,30,.15)),
        linear-gradient(135deg, #171827, #762b46, #24294b);
    color: white;
    display: flex;
    align-items: center;
}

.hero-content {
    margin-left: 8%;
    max-width: 600px;
}

.small-title {
    color: #f84464;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 18px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 25px;
}

.hero button {
    background: #f84464;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.container {
    width: 88%;
    margin: auto;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 35px 0 20px;
}

.section-title h2 {
    font-size: 24px;
}

.section-title a {
    color: #f84464;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.movie-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    padding-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: transform .2s;
}

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

.poster {
    height: 270px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 70px;
    color: white;
}

.poster1 { background: linear-gradient(135deg,#1c1c3c,#c62850); }
.poster2 { background: linear-gradient(135deg,#111,#8b0000); }
.poster3 { background: linear-gradient(135deg,#6b1e3b,#ff6584); }
.poster4 { background: linear-gradient(135deg,#081a3a,#1769aa); }
.poster5 { background: linear-gradient(135deg,#ff7b00,#c2185b); }
.poster6 { background: linear-gradient(135deg,#17202a,#34495e); }

.movie-card h3 {
    font-size: 17px;
    margin: 12px 12px 5px;
}

.movie-card p {
    color: #777;
    font-size: 13px;
    margin: 0 12px 8px;
}

.rating {
    margin: 0 12px 12px;
    font-size: 13px;
}

.movie-card button {
    width: calc(100% - 24px);
    margin: 0 12px;
    padding: 9px;
    border: none;
    background: #f84464;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.events {
    margin-top: 50px;
    padding: 10px 0 50px;
    background: white;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.event-card {
    padding: 30px;
    border-radius: 8px;
    background: #f7f7f7;
    text-align: center;
}

.event-card div {
    font-size: 55px;
    margin-bottom: 15px;
}

.event-card h3 {
    margin-bottom: 8px;
}

.event-card p {
    color: #777;
    font-size: 14px;
}

footer {
    background: #333545;
    color: #ddd;
    text-align: center;
    padding: 40px;
}

.footer-logo {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
}

@media (max-width: 1000px) {
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    header {
        padding: 15px;
    }

    nav {
        padding: 0 15px;
    }
}

@media (max-width: 600px) {
    header {
        height: auto;
        flex-wrap: wrap;
        padding: 15px;
    }

    .search {
        order: 5;
        flex-basis: 100%;
    }

    nav {
        overflow-x: auto;
        white-space: nowrap;
    }

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

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

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

    .poster {
        height: 220px;
    }
}
