/* CONFIGURAÇÕES DE CORES E BASE */
:root {
    --roxo: #7f00ff;
    --verde: #00ff88;
    --fundo: #0a0a0a;
    --card-fundo: #111;
    --texto: #eeeeee;
    --borda: #222;
}

body {
    background-color: var(--fundo);
    color: var(--texto);
    font-family: 'Bubblegum Sans', cursive;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 1.5s ease;
}

/* MODO SHEEP (EASTER EGG) */
body.modo-sheep {
    background-color: #1a0a2e !important;
}

.btn-sheep {
    background-color: #0055ff !important;
    border-color: #00aaff !important;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.6);
}

/* CABEÇALHO */
.titulo {
    text-align: center;
    font-size: clamp(24px, 6vw, 36px);
    margin: 20px 0;
    background: linear-gradient(135deg, var(--roxo), var(--verde));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.banner {
    width: 92%;
    max-width: 800px;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    cursor: pointer;
}

/* MENU COM SCROLL HORIZONTAL */
.menuPrincipal {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 15px;
    margin-bottom: 20px;
    scrollbar-width: none;
}

.menuPrincipal::-webkit-scrollbar {
    display: none;
}

/* BOTÕES */
.btn {
    background-color: #1a1a1a;
    color: #fff;
    border: 1px solid var(--borda);
    padding: 12px 22px;
    cursor: pointer;
    border-radius: 25px;
    font-family: inherit;
    font-size: 15px;
    white-space: nowrap;
    transition: 0.2s;
}

.btn:active {
    transform: scale(0.95);
}

.btn:hover {
    border-color: var(--roxo);
    background: #222;
}

/* TÍTULO DA SEÇÃO */
.secaoTitulo {
    padding-left: 20px;
    font-size: 22px;
    color: var(--roxo);
    margin-bottom: 15px;
}

.subtitulo {
    color: var(--roxo);
    margin: 0 0 10px 0;
    font-size: 16px;
}

.divisor {
    border: 0;
    border-top: 1px solid #1e1e1e;
    margin: 15px 0 20px 0;
}

/* GRID DE CARDS */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 15px;
}

/* CARD */
.card {
    background-color: var(--card-fundo);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--borda);
    transition: transform 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    position: relative;
}

.card-img-wrap {
    position: relative;
}

.card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

.card p {
    text-align: center;
    padding: 8px 5px;
    font-size: 13px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--verde);
}

/* BADGE "NOVO" NO CARD (ponto verde brilhante, canto superior esquerdo) */
.badge-novo {
    position: absolute;
    top: 7px;
    left: 7px;
    width: 12px;
    height: 12px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 6px 3px rgba(0, 255, 136, 0.7);
    animation: pulsar 1.4s ease-in-out infinite;
    display: block;
}

@keyframes pulsar {
    0%, 100% { box-shadow: 0 0 5px 2px rgba(0, 255, 136, 0.7); }
    50%       { box-shadow: 0 0 12px 5px rgba(0, 255, 136, 0.4); }
}

/* Badge "NOVO" inline nos botões de temporada/episódio */
.badge-novo-inline {
    font-size: 11px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Badge "visto" (👁️) nos botões de episódio */
.badge-visto {
    font-size: 13px;
    margin-left: 4px;
    vertical-align: middle;
}

/* BOTÃO DE FAVORITO NOS CARDS */
.btn-fav-card {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.65);
    border: none;
    color: #666;
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
    padding: 0;
}

.btn-fav-card.ativo {
    color: #ff4466;
    background: rgba(0,0,0,0.75);
}

.btn-fav-card:hover {
    color: #ff4466;
    background: rgba(0,0,0,0.85);
}

/* SEÇÃO CONTINUAR ASSISTINDO */
.scroll-horizontal {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 5px 0 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.scroll-horizontal::-webkit-scrollbar {
    height: 4px;
}

.scroll-horizontal::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.card-continuar {
    min-width: 110px;
    max-width: 110px;
    flex-shrink: 0;
}

.card-continuar img {
    aspect-ratio: 2/3;
}

.card-continuar p {
    font-size: 11px;
}

/* BARRA DO TOPO (VOLTAR + FAVORITAR) */
.barra-topo {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* CAPA GRANDE */
.capaGrande {
    width: 200px;
    max-width: 65%;
    margin: 0 auto 20px auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

/* ÁREA HQ */
#areaHQ {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(127, 0, 255, 0.2);
    margin: 15px;
    padding: 20px;
}

/* PLAYER DE VÍDEO */
.player {
    width: 95%;
    max-width: 860px;
    margin: 10px auto;
    background: #000;
    border-radius: 12px;
    padding: 8px;
    box-sizing: border-box;
}

video {
    width: 100%;
    border-radius: 8px;
    outline: none;
    display: block;
}

.player-botoes {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    gap: 10px;
}

/* AVALIAÇÃO COM ESTRELAS */
.reacoes {
    text-align: center;
    margin-top: 15px;
    padding-bottom: 10px;
}

.reacoes button {
    background: #222;
    border: 1px solid #333;
    color: gold;
    padding: 10px 14px;
    margin: 3px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: transform 0.15s;
}

.reacoes button:hover {
    transform: scale(1.2);
}

/* LISTA DE EPISÓDIOS */
.episodios {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 15px 30px 15px;
}

.episodios .btn {
    text-align: left;
    border-radius: 10px;
}

/* ========================
   AJUSTES PARA CELULAR
   ======================== */
@media (max-width: 600px) {
    /* 2 colunas no grid */
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .card p {
        font-size: 12px;
        padding: 6px 4px;
    }

    /* Botões maiores e mais fáceis de tocar */
    .btn {
        padding: 13px 20px;
        font-size: 14px;
    }

    .secaoTitulo {
        font-size: 19px;
        padding-left: 12px;
    }

    .subtitulo {
        font-size: 14px;
    }

    /* Player ocupa toda a largura no mobile */
    .player {
        width: 100%;
        border-radius: 0;
        padding: 5px;
    }

    /* Botões do player lado a lado e maiores */
    .player-botoes {
        flex-direction: row;
        gap: 8px;
    }

    .player-botoes .btn {
        flex: 1;
        text-align: center;
        padding: 12px 8px;
        font-size: 13px;
    }

    /* Capa menor no mobile */
    .capaGrande {
        width: 160px;
    }

    /* Cards da seção continuar */
    .card-continuar {
        min-width: 95px;
        max-width: 95px;
    }

    /* Estrelas maiores para toque */
    .reacoes button {
        padding: 12px 14px;
        font-size: 22px;
    }

    .barra-topo {
        padding: 8px 10px;
        gap: 8px;
    }

    #areaHQ {
        margin: 10px;
        padding: 15px;
    }
}
