:root {
    --cor-principal: #008000;
}

/* ==========================================================================
   CONFIGURAÇÕES GERAIS E BASE (Corrigido o seletor *)
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
    font-display: swap;
}

body {
    background-color: #111111;
    color: #ffffff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

/* ==========================================================================
   ESTILOS DO MENU LATERAL DESLIZANTE (OFF-CANVAS)
   ========================================================================== */
.btn-menu-hamburguer {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.btn-menu-hamburguer:hover {
    color: #00cc44;
}

.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay-menu.ativo {
    opacity: 1;
    visibility: visible;
}

.menu-lateral {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: #141414;
    border-right: 1px solid #222;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 20px;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.8);
    box-sizing: border-box;
}

.menu-lateral.ativo {
    left: 0;
}

.menu-lateral-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #222;
}

.btn-fechar-menu {
    background: none;
    border: none;
    color: #aaa;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-fechar-menu:hover {
    color: #fff;
}

.busca-menu-lateral {
    margin-bottom: 20px;
}

.busca-menu-lateral input {
    width: 100%;
    padding: 10px 14px;
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    outline: none;
    font-size: 0.9rem;
}

.busca-menu-lateral input:focus {
    border-color: var(--cor-principal, #008000);
}

.nav-links-verticais {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-links-verticais a {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #e5e5e5;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.nav-links-verticais a i {
    width: 20px;
    text-align: center;
    color: #888;
}

.nav-links-verticais a:hover,
.nav-links-verticais a.active {
    background: #222;
    color: #00cc44;
}

.nav-links-verticais a:hover i,
.nav-links-verticais a.active i {
    color: #00cc44;
}

/* ==========================================================================
   BANNERS PRINCIPAIS DO TOPO (SLIDES / SPLIT)
   ========================================================================== */
.container-topo-split {
    display: flex;
    width: 100%;
    height: 55vh;
    gap: 10px;
    padding: 0 4%;
    margin-bottom: 30px;
}

#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: 0 0 8px 8px;
    overflow: hidden;
    background-color: #1a1a1a;
    border-bottom: 3px solid var(--cor-principal);
}

.gradiente-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(17,17,17,0.95) 20%, rgba(17,17,17,0.5) 65%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.destaque-conteudo {
    position: relative;
    z-index: 5;
    padding: 0 55px 15px 55px !important;
    max-width: 100%;
}

.tag-midia {
    font-size: 0.75rem;
    color: #00ff55 !important;
    font-weight: 800 !important;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 5px;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.9) !important;
}

.destaque-conteudo h1, 
.destaque-conteudo h2 {
    font-size: 1.8rem;
    margin: 0 0 8px 0;
    font-weight: bold;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.9) !important;
}

.destaque-conteudo p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #cbcbcb;
    margin-bottom: 15px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.9) !important;
    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: filter 0.2s, background-color 0.2s;
}

.btn-assistir:hover {
    filter: brightness(0.85);
}

/* ==========================================================================
   SETAS DE NAVEGAÇÃO DOS BANNERS (SLIDERS)
   ========================================================================== */
.seta-slider-esq,
.seta-slider-dir {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    color: #fff !important;
    border: none !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    transition: background-color 0.2s ease !important;
}

.seta-slider-esq {
    left: 10px !important;
}

.seta-slider-dir {
    right: 10px !important;
}

.seta-slider-esq:hover,
.seta-slider-dir:hover {
    background-color: var(--cor-principal) !important;
}

/* ==========================================================================
   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;
}

/* ==========================================================================
   SUPORTE AO PAINEL ADMINISTRATIVO (ADMIN UI)
   ========================================================================== */
.abas-nav {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #333;
    margin-bottom: 25px;
    padding-bottom: 10px;
}

.aba-btn {
    background: transparent;
    border: none;
    color: #aaa;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aba-btn:hover {
    color: #fff;
    background: #252525;
}

.aba-btn.ativa {
    color: #00ff66;
    background: #1f2d23;
    border-bottom: 2px solid #00ff66;
}

.conteudo-aba {
    display: none;
}

.conteudo-aba.ativo {
    display: block;
}

@keyframes pulsoVerde {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

/* ==========================================================================
   OCULTA BARRAS DE ROLAGEM GLOBAIS (SCROLLBARS) (Corrigido seletor *)
   ========================================================================== */
*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

* {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* ==========================================================================
   MÍDIA QUERIES ADAPTATIVAS (MOBILE / TABLET OTIMIZADO)
   ========================================================================== */
@media (max-width: 768px) {
    .container-topo-split {
        flex-direction: column !important;
        height: auto !important;
        padding: 0 10px !important;
        gap: 15px !important;
        margin-bottom: 20px !important;
    }

    #banner-filmes, 
    #banner-series,
    .banner-split {
        width: 100% !important;
        height: 210px !important;
        min-height: 210px !important;
        padding-bottom: 12px !important;
        border-radius: 8px !important;
    }

    .destaque-conteudo {
        padding: 10px 45px 10px 45px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        height: 100% !important;
        box-sizing: border-box !important;
    }

    .tag-midia {
        display: none !important;
    }

    .destaque-conteudo h1,
    .destaque-conteudo h2,
    #filme-titulo,
    #serie-titulo {
        font-size: 1.1rem !important;
        line-height: 1.2 !important;
        margin: 0 0 4px 0 !important;
        font-weight: bold !important;
    }

    .destaque-conteudo p,
    #filme-sinopse,
    #serie-sinopse {
        font-size: 0.75rem !important;
        line-height: 1.15 !important;
        margin-bottom: 8px !important;
        color: #ccc !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .btn-assistir {
        padding: 5px 14px !important;
        font-size: 0.75rem !important;
        width: fit-content !important;
        border-radius: 4px !important;
    }

    .seta-slider-esq,
    .seta-slider-dir {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.85rem !important;
    }

    .seta-slider-esq {
        left: 5px !important;
    }

    .seta-slider-dir {
        right: 5px !important;
    }
}