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

body {
    font-family: Arial, sans-serif;
    background: #10131b;
    color: #f4f4f5;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    min-height: 76px;
    padding: 18px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #292d38;
    background: #10131b;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo span {
    color: #e6a84b;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: #c5c7ce;
    font-size: 14px;
}

nav a:hover,
.text-link:hover,
.back-link:hover {
    color: #e6a84b;
}

.hero {
    padding: 100px 8%;
    min-height: 390px;
    background: linear-gradient(110deg, #171d2b, #252536);
}

.eyebrow {
    color: #e6a84b;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.1;
    margin-bottom: 18px;
}

.hero h1 span {
    color: #e6a84b;
}

.hero-text {
    max-width: 470px;
    color: #c5c7ce;
    margin-bottom: 25px;
}

.button,
.search-form button,
.suggest-form button {
    display: inline-block;
    border: 0;
    border-radius: 5px;
    padding: 11px 18px;
    background: #e6a84b;
    color: #171717;
    font-weight: bold;
    cursor: pointer;
}

.button:hover,
.search-form button:hover,
.suggest-form button:hover {
    background: #f2bd6d;
}

.section {
    padding: 65px 8%;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 25px;
}

.section-heading h2,
.suggest-section h2 {
    font-size: 30px;
}

.film-count {
    color: #a7aab4;
    font-size: 13px;
}

.search-form {
    display: flex;
    gap: 10px;
    max-width: 520px;
    margin-bottom: 30px;
}

.search-form input,
.suggest-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #383d4b;
    border-radius: 5px;
    background: #1b202c;
    color: white;
    font: inherit;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid #2b303d;
    border-radius: 8px;
    background: #191e29;
}

.poster {
    min-height: 220px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 7px;
    background: linear-gradient(145deg, #34435b, #151a25);
}

.poster span {
    color: #e6c58e;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.poster strong {
    max-width: 250px;
    font-size: 25px;
    line-height: 1.15;
}

.poster small {
    color: #d0d1d6;
}

.poster-2 { background: linear-gradient(145deg, #563b35, #171923); }
.poster-3 { background: linear-gradient(145deg, #274b62, #151a25); }
.poster-4 { background: linear-gradient(145deg, #744b79, #171923); }
.poster-5 { background: linear-gradient(145deg, #49634e, #151923); }
.poster-6 { background: linear-gradient(145deg, #82613a, #171923); }

.movie-info {
    padding: 17px;
}

.movie-info h3 {
    font-size: 18px;
    margin-bottom: 3px;
}

.movie-info p {
    color: #a7aab4;
    font-size: 13px;
    margin-bottom: 13px;
}

.text-link {
    color: #e6a84b;
    font-size: 14px;
    font-weight: bold;
}

.text-link span {
    margin-left: 4px;
}

.notice {
    color: #c5c7ce;
    padding: 20px 0;
}

.suggest-section {
    margin: 0 8% 65px;
    padding: 35px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    border: 1px solid #303645;
    border-radius: 8px;
    background: #191e29;
}

.suggest-section p {
    color: #b8bbc4;
}

.suggest-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.suggest-form label {
    font-size: 13px;
    color: #d4d5da;
}

.suggest-form button {
    align-self: flex-start;
}

.form-error {
    color: #ff8c8c !important;
    font-size: 13px;
}

.form-success {
    color: #8ed6a3 !important;
    font-size: 13px;
}

footer {
    padding: 30px 8%;
    border-top: 1px solid #292d38;
    color: #a7aab4;
    font-size: 13px;
}

footer p {
    margin-top: 5px;
}

.detail-main {
    min-height: 65vh;
    padding: 55px 8%;
}

.back-link {
    display: inline-block;
    color: #c5c7ce;
    margin-bottom: 25px;
}

.detail-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 35px;
    padding: 25px;
    border: 1px solid #303645;
    border-radius: 8px;
    background: #191e29;
}

.detail-poster {
    min-height: 360px;
    border-radius: 5px;
}

.detail-content {
    padding: 12px 0;
}

.detail-content h1 {
    font-size: 38px;
    margin-bottom: 12px;
}

.detail-description {
    max-width: 650px;
    color: #c5c7ce;
    margin-bottom: 25px;
}

.facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.facts p {
    display: flex;
    flex-direction: column;
    color: #f4f4f5;
}

.facts span {
    color: #e6a84b;
    font-size: 12px;
    text-transform: uppercase;
}

.not-found {
    padding: 60px 0;
}

.not-found p {
    color: #c5c7ce;
    margin: 10px 0 20px;
}

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

    .suggest-section {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    nav {
        flex-wrap: wrap;
        gap: 15px;
    }

    .hero {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .section {
        padding-top: 45px;
        padding-bottom: 45px;
    }

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

    .search-form {
        flex-direction: column;
    }

    .suggest-section {
        margin-left: 5%;
        margin-right: 5%;
        padding: 22px;
    }

    .detail-main {
        padding: 35px 5%;
    }

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

    .detail-poster {
        min-height: 260px;
    }

    .detail-content h1 {
        font-size: 30px;
    }

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