/* --- CONFIGURAÇÕES GERAIS E RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #141414;
    color: #ffffff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    /* [NOVO] Adiciona suavização de fonte para um look mais profissional */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- CABEÇALHO --- */
header {
    padding: 20px 60px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    text-align: center;
}

.logo {
    color: #E50914;
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
}

/* --- SEÇÃO PRINCIPAL (HERO) --- */
.hero {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center top;
    background-image:
        linear-gradient(to top, #141414 10%, transparent 50%),
        url('../img/logo.jpg'); /* [MUDANÇA APLICADA] Imagem de fundo alterada */

    display: flex;
    align-items: flex-end;
    padding: 60px;
}

.hero-content {
    max-width: 45%;
}

.hero-content .title {
    font-size: 5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    font-style: italic;
}

.hero-content .meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #c7c7c7;
}

.meta .release-date {
    color: #28a745;
}

.meta .rating {
    background-color: #28a745;
    border: 1px solid rgba(255, 255, 255, 0.7);
    padding: 2px 8px;
    border-radius: 3px;
}

.meta .hd-badge {
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.7);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.9rem;
}

.hero-content .trending {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.trending .top-10-badge {
    background-color: #E50914;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1rem;
}

.hero-content .description {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content .actions {
    display: flex;
    gap: 15px;
}

.actions button {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem; /* Levemente ajustado */
    /* [MUDANÇA APLICADA] Fonte mais suave */
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s, background-color 0.2s;
}

.actions button:hover {
    transform: scale(1.05);
}

.btn-play {
    background-color: #ffffff;
    color: #000000;
}

.btn-favorite {
    background-color: #2f2f2f; /* Tom de cinza mais próximo da imagem */
    color: #ffffff;
}

.btn-favorite:hover {
    background-color: #404040;
}

/* [NOVO] Estilo para os ícones SVG dentro dos botões */
.actions .icon-svg {
    width: 20px;
    height: 20px;
}

/* --- SEÇÃO DE CONTEÚDO (EPISÓDIOS) --- */
.content-section {
    padding: 40px 60px;
}

.content-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.episodes-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.episode-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 5px;
}

.episode-card::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
    border-radius: 0 0 5px 5px;
}

.episode-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.episode-card:hover img {
    transform: scale(1.1);
}

.episode-card .hd-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.9rem;
    z-index: 2;
}

/* --- CÓDIGO PARA RESPONSIVIDADE (CELULAR) --- */
@media (max-width: 768px) {
    header { padding: 15px 20px; }
    .logo { font-size: 1.8rem; }
    .hero { padding: 20px; }
    .hero-content { max-width: 90%; }
    .hero-content .title { font-size: 3rem; }
    .hero-content .meta, .hero-content .trending, .hero-content .description { font-size: 0.9rem; }
    .hero-content .trending { font-size: 1rem; }
    .actions button { padding: 8px 15px; font-size: 1rem; }
    .content-section { padding: 20px; }
    .content-section h2 { font-size: 1.5rem; }
    .episodes-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* --- [SUBSTITUA POR ESTE BLOCO] Estilos corrigidos para a versão PC --- */
@media (min-width: 769px) {
    /* 1. Ajuste Geral do Layout do Hero */
    .hero {
        height: 90vh;
        justify-content: flex-start;
        align-items: center;
        padding-left: 5%;
        
        /* O gradiente continua o mesmo, para garantir a leitura */
        background-image: 
            linear-gradient(to top, rgba(20,20,20,0.9) 10%, rgba(20,20,20,0.7) 25%, transparent 90%),
            linear-gradient(to right, rgba(20,20,20,0.9) 10%, rgba(20,20,20,0.7) 20%, transparent 90%),
            url('../img/logo.jpg'); /* Mantenha o link da sua imagem aqui */
        
        /* [A MÁGICA ESTÁ AQUI] A imagem volta a cobrir todo o fundo... */
        background-size: cover;
        
        /* ...e aqui nós a centralizamos para o melhor enquadramento possível. */
        background-position: center center;
        
        /* Removemos o 'no-repeat' que não é mais necessário com 'cover' */
        background-repeat: no-repeat; 
    }

    .hero-content {
        max-width: 45%;
    }

    /* 2. Espaçamento Suave Entre os Elementos */
    .hero-content .title {
        margin-bottom: 1.5rem;
        font-style: normal;
        font-size: 4.5rem;
    }

    .hero-content .meta,
    .hero-content .trending {
        margin-bottom: 1.5rem;
    }

    .hero-content .description {
        margin-bottom: 2rem;
        font-size: 1.2rem;
        line-height: 1.6;
    }

    /* 3. Ajuste nos Botões */
    .actions button {
        padding: 1rem 2rem;
    }
}
