:root {
    --cor-principal: #008000; /* Verde padrão inicial - Altere aqui para mudar em todo o site */
}

/* ==========================================================================
   CONFIGURAÇÕES GERAIS E CORPO
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #111111;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    padding-top: 90px; /* Dá espaço para a navbar fixa respirar no Desktop */
}

/* ==========================================================================
   NAVBAR FIXA
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: #000000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo {
    color: var(--cor-principal);
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.navbar nav {
    display: flex;
    align-items: center;
}

.navbar nav a {
    color: #e5e5e5;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    transition: color 0.2s;
}

.navbar nav a:hover {
    color: var(--cor-principal);
}

.pesquisa-container {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

#input-busca {
    width: 100%;
    padding: 8px 15px;
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid #444;
    color: white;
    border-radius: 4px;
    outline: none;
}

/* ==========================================================================
   MENU DROPDOWN DE GÊNEROS (NAVBAR)
   ========================================================================== */
.dropdown-genero {
    position: relative;
    display: inline-block;
    margin-left: 20px;
}

.dropdown-btn {
    background: transparent;
    color: #e5e5e5;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    padding: 10px 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.dropdown-btn:hover {
    color: #ffffff;
}

.seta-baixo {
    font-size: 0.8rem;
    margin-left: 6px;
    transition: transform 0.2s;
}

.dropdown-conteudo {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(0, 0, 0, 0.95);
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.5);
    border: 1px solid #333;
    border-radius: 4px;
    z-index: 1050;
    padding: 5px 0;
    text-align: right;
}

.dropdown-conteudo a {
    color: #aaa !important;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.dropdown-conteudo a:hover {
    background-color: #222;
    color: #ffffff !important;
}

.dropdown-genero:hover .dropdown-conteudo {
    display: block;
}

.dropdown-genero:hover .seta-baixo {
    transform: rotate(180deg);
    color: var(--cor-principal);
}

/* ==========================================================================
   ESTRUTURA SLIDER SPLIT (LADO A LADO)
   ========================================================================== */
.container-topo-split {
    display: flex;
    width: 100%;
    height: 55vh;
    gap: 10px;
    padding: 0 4%;
    margin-bottom: 30px;
    margin-top: 0 !important;
    padding-top: 10px !important; 
}

#banner-filmes, #banner-series {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding-bottom: 35px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: #1a1a1a;
}

.gradiente-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(17,17,17,1) 15%, rgba(17,17,17,0.3) 60%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.destaque-conteudo {
    position: relative;
    z-index: 5;
    padding: 0 5%;
    max-width: 95%;
}

.tag-midia {
    font-size: 0.75rem;
    color: var(--cor-principal);
    font-weight: bold;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 5px;
}

.destaque-conteudo h1 {
    font-size: 1.8rem;
    margin: 0 0 8px 0;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
}

.destaque-conteudo p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #cbcbcb;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-assistir {
    background-color: var(--cor-principal);
    color: white;
    border: none;
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-assistir:hover {
    /* Aplica um filtro de brilho menor para escurecer o verde nativamente no hover */
    filter: brightness(0.8);
}

/* COR DA BOLINHA ATIVA DO SLIDER */
.indicadores-slider span.active, 
.indicadores-slider .dot.active,
.indicador.ativo {
    background-color: var(--cor-principal) !important;
    opacity: 1;
}

.dot {
    background-color: #aaa;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
}

/* BOTÃO 'TODOS' ATIVO NO FILTRO DE GÊNERO */
.categorias-container button.ativo,
.categorias-container button:first-of-type {
    background-color: var(--cor-principal) !important; 
    color: white !important;
    border-color: var(--cor-principal) !important;
}

/* ==========================================================================
   FILTRO DE CATEGORIAS / SEÇÕES
   ========================================================================== */
.categorias-container {
    padding: 10px 5%;
    margin-bottom: 20px;
    clear: both;
}

.categorias-container button:hover {
    background-color: var(--cor-principal) !important;
    border-color: var(--cor-principal) !important;
}

.secao-master {
    margin-top: 20px;
    position: relative;
    clear: both;
}

.secao-master h2 {
    padding-left: 5%;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 15px;
}

/* ==========================================================================
   GRADE DO CATÁLOGO
   ========================================================================== */
.vitrine-container {
    padding: 0 5% 30px 5%;
}

.grade-midias {
    display: grid;
    grid-template-columns: repeat(6, 1fr); 
    gap: 15px;
}

.card-midia {
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 6px;
    overflow: hidden;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-midia:hover {
    transform: scale(1.04);
}

.card-midia img {
    width: 100%;
    aspect-ratio: 2 / 3; 
    object-fit: cover;
    display: block;
    background-color: #222;
}

.card-info {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-info h4 {
    margin: 0 0 5px 0;
    font-size: 0.85rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-info span {
    color: #888;
    font-size: 0.75rem;
    display: block;
}

/* ==========================================================================
   MODAL DE TRAILER
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}

.modal-conteudo {
    width: 80%;
    max-width: 800px;
    position: relative;
}

.fechar {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
}

#player-video iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* ==========================================================================
   GERENCIAMENTO DE SCROLLBARS OCULTAS
   ========================================================================== */
.grade-novidades, #grade-episodios {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

.grade-novidades::-webkit-scrollbar, 
#grade-episodios::-webkit-scrollbar,
.grade-novidades-container::-webkit-scrollbar,
div[class*="container"]::-webkit-scrollbar,
*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.grade-novidades, 
#grade-episodios, 
.secao-master, 
div[class*="container"] {
    -ms-overflow-style: none !important;  
    scrollbar-width: none !important;  
}

/* ==========================================================================
   MÍDIA QUERIES ADAPTATIVAS (RESPONSIVIDADE TOTAL MOBILE/TABLET)
   ========================================================================== */
@media (max-width: 1024px) {
    .grade-midias {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* 1. Alarga o topo do body para suportar a barra de busca movida/ajustada */
    body {
        padding-top: 155px !important; 
    }

    /* 2. Ajusta o comportamento estrutural da Navbar no celular */
    .navbar {
        padding: 12px 4% !important;
        flex-wrap: wrap; 
    }

    .logo {
        font-size: 1.5rem !important;
    }

    /* 3. Reajuste cirúrgico na Barra de Busca baseado nas suas classes */
    .pesquisa-container {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px 0 5px 0 !important; 
        order: 3; 
    }

    #input-busca {
        padding: 10px 15px !important;
        font-size: 0.95rem !important;
        background-color: rgba(20, 20, 20, 0.9) !important;
    }

    /* 4. Correção estrutural dos Destaques empilhados verticalmente */
    .container-topo-split {
        flex-direction: column !important;
        height: auto !important;
        padding: 0 4% !important;
        gap: 20px !important; 
        margin-bottom: 20px !important;
    }

    #banner-filmes, #banner-series {
        width: 100% !important;
        height: 250px !important; 
        padding-bottom: 20px !important;
    }

    /* 5. Respiro e tamanho dos textos internos do Destaque */
    .destaque-conteudo {
        padding: 0 15px !important;
        max-width: 90% !important;
    }

    .destaque-conteudo h1 {
        font-size: 1.5rem !important;
        margin-bottom: 6px !important;
    }

    .destaque-conteudo p {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
        max-width: 85% !important; 
    }

    /* 6. Ajuste dos botões e grades finais */
    .btn-assistir {
        padding: 8px 18px !important;
        font-size: 0.85rem !important;
    }

    .grade-midias {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
/* Container que junta a logo e o texto */
.brand-container {
    display: flex;
    align-items: center; /* Alinha verticalmente no centro */
    gap: 10px;           /* Dá um espaço de 10px entre a imagem e o texto */
    text-decoration: none;
}

/* Ajuste de tamanho da logo na barra de navegação */
.brand-logo {
    height: 32px;        /* Define uma altura proporcional para a barra */
    width: auto;         /* Mantém a proporção perfeitamente circular */
    display: block;
}