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

html {
    scroll-behavior: smooth;
}

body {
    background: #0b0b0f;
    color: white;
    font-family: Arial, sans-serif;
}

header {
    background: rgba(5,5,8,.96);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #292929;
}

.navbar {
    max-width: 1200px;
    height: 75px;
    margin: auto;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 29px;
    font-weight: 900;
    color: white;
    text-decoration: none;
}

.logo span {
    color: #ff7300;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: #ddd;
    text-decoration: none;
    transition: .3s;
}

.nav-links a:hover {
    color: #ff7300;
}

.menu-btn {
    display: none;
    color: white;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

/* BANNER */

.hero {
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: 60px max(calc((100% - 1150px) / 2), 30px);

    background:
        linear-gradient(90deg, #09090d 5%, rgba(9,9,13,.8) 45%, transparent),
        linear-gradient(0deg, #0b0b0f, transparent 30%),
        url("https://m.media-amazon.com/images/S/pv-target-images/2cfa4e3813b04a97bb3e85d661310daddfb5f333961721ea6539cf479ab88202.jpg");

    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 600px;
}

.tag {
    color: #ff7300;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 3px;
}

.hero h1 {
    font-size: clamp(48px, 8vw, 90px);
    line-height: .95;
    margin: 20px 0;
    font-weight: 900;
}

.hero h1 span {
    color: #ff7300;
}

.hero p {
    color: #ddd;
    line-height: 1.8;
    font-size: 16px;
    max-width: 500px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 15px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: .3s;
}

.btn-primary {
    background: #ff7300;
    color: white;
}

.btn-primary:hover {
    background: #d65f00;
    transform: translateY(-3px);
}

.btn-secondary {
    border: 1px solid #777;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: black;
}

/* CONTEÚDO */

.container {
    max-width: 1200px;
    margin: auto;
    padding: 80px 25px;
}

.section-title {
    margin-bottom: 35px;
}

.section-title h2 {
    font-size: 32px;
    margin-top: 12px;
}

/* PERSONAGENS */

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

.character-card {
    background: #19191f;
    border-radius: 10px;
    overflow: hidden;
    transition: .3s;
    border: 1px solid #292929;
}

.character-card:hover {
    transform: translateY(-8px);
    border-color: #ff7300;
    box-shadow: 0 10px 30px #000;
}

.character-card img {
    width: 100%;
    height: 290px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.character-info {
    padding: 20px;
}

.character-info h3 {
    margin-bottom: 10px;
}

.character-info p {
    color: #aaa;
    font-size: 14px;
}

/* EPISÓDIOS */

.episodes-section {
    border-top: 1px solid #292929;
}

#searchInput {
    width: 100%;
    padding: 17px;
    margin-bottom: 25px;
    background: #19191f;
    border: 1px solid #333;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    outline: none;
}

#searchInput:focus {
    border-color: #ff7300;
}

.episodes {
    display: grid;
    gap: 15px;
}

.episode-card {
    background: #19191f;
    border: 1px solid #292929;
    border-radius: 8px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: .3s;
}

.episode-card:hover {
    border-color: #ff7300;
    transform: translateX(5px);
}

.episode-number {
    background: #ff7300;
    padding: 14px;
    border-radius: 5px;
    font-weight: bold;
}

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

.episode-card p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.5;
}

.episode-status {
    margin-left: auto;
    color: #ff7300;
    font-size: 12px;
    white-space: nowrap;
}

.no-results {
    color: #aaa;
    text-align: center;
    padding: 25px;
}

/* SOBRE */

.about {
    padding: 110px 25px;

    background:
        linear-gradient(90deg, #0b0b0f 10%, rgba(11,11,15,.8)),
        url("https://image.tmdb.org/t/p/original/rWG8KXURMNbbxJjbsPYYhYOZ5jl.jpg");

    background-size: cover;
    background-position: center;
}

.about-content {
    max-width: 750px;
    margin: auto;
}

.about h2 {
    font-size: 40px;
    margin: 20px 0;
}

.about p {
    color: #ddd;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* RODAPÉ */

footer {
    background: #050507;
    border-top: 1px solid #292929;
    text-align: center;
    padding: 40px 20px;
}

footer p {
    color: #777;
    font-size: 13px;
    margin-top: 15px;
}

/* RESPONSIVIDADE */

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

@media (max-width: 600px) {
    .navbar {
        height: 65px;
    }

    .menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 65px;
        left: 0;
        width: 100%;
        background: #09090d;
        flex-direction: column;
        padding: 25px;
        gap: 25px;
    }

    .nav-links.active {
        display: flex;
    }

    .hero {
        min-height: 520px;
        padding: 40px 25px;
        background-position: center;
    }

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

    .characters {
        gap: 12px;
    }

    .character-card img {
        height: 190px;
    }

    .character-info {
        padding: 12px;
    }

    .character-info h3 {
        font-size: 15px;
    }

    .character-info p {
        font-size: 12px;
    }

    .episode-card {
        flex-wrap: wrap;
        gap: 12px;
    }

    .episode-status {
        margin-left: 0;
    }

    .about h2 {
        font-size: 30px;
    }
}
