* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #0d0d0f;
    color: #eee;
}

.container {
    width: min(1200px, 92%);
    margin: auto;
}

.site-header {
    background: #151518;
    border-bottom: 1px solid #29292e;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}

.nav a {
    color: #ddd;
    text-decoration: none;
}

.hero {
    padding: 70px 0;
    background: linear-gradient(
        135deg,
        #17171b,
        #0d0d0f
    );
}

.hero h1 {
    font-size: 42px;
    margin: 0 0 10px;
}

.hero p {
    color: #aaa;
}

.search {
    display: flex;
    gap: 10px;
    max-width: 700px;
    margin-top: 25px;
}

.search input {
    flex: 1;
    padding: 15px 16px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-size: 16px;
}

.search button {
    padding: 0 25px;
    border: 0;
    border-radius: 8px;
    background: #e50914;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.section {
    padding: 40px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.section-head h1,
.section-head h2 {
    margin: 0;
}

.section-head span {
    color: #999;
}

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

.movie-card {
    background: #17171a;
    border-radius: 10px;
    overflow: hidden;
    transition: .2s;
}

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

.movie-card a {
    text-decoration: none;
    color: #fff;
}

.movie-card img,
.poster-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #25252a;
}

.poster-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.movie-info {
    padding: 12px;
}

.movie-info h3 {
    font-size: 15px;
    margin: 0 0 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meta,
.detail-meta {
    display: flex;
    gap: 12px;
    color: #aaa;
    font-size: 13px;
}

.notice {
    padding: 18px;
    background: #19191d;
    border: 1px solid #303038;
    border-radius: 8px;
    color: #ccc;
    margin: 20px 0;
}

.search-inner {
    margin: 0 0 30px;
}

.movie-hero {
    background-size: cover;
    background-position: center;
    padding: 70px 0;
    min-height: 650px;
}

.movie-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 45px;
    align-items: center;
}

.poster-large img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

.watch-btn {
    display: block;
    text-align: center;
    background: #e50914;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    padding: 16px;
    border-radius: 8px;
    margin-top: 14px;
}

.details h1 {
    font-size: 48px;
    margin: 0 0 15px;
}

.details h2 {
    margin-top: 30px;
}

.details p {
    font-size: 17px;
    line-height: 1.7;
    color: #ccc;
}

.genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.genres span {
    border: 1px solid #444;
    border-radius: 20px;
    padding: 7px 12px;
    color: #bbb;
    font-size: 13px;
}

.footer {
    border-top: 1px solid #29292e;
    color: #888;
    padding: 30px 0;
    margin-top: 30px;
    text-align: center;
}


@media (max-width: 900px) {

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

    .movie-layout {
        grid-template-columns: 260px 1fr;
    }

    .details h1 {
        font-size: 38px;
    }
}


@media (max-width: 650px) {

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

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

    .movie-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .poster-large {
        max-width: 300px;
        margin: auto;
    }

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

    .search button {
        padding: 0 15px;
    }

    .section {
        padding: 25px 0;
    }
}