/*
Theme Name: AnimeVerse
Theme URI: https://animeverse.top/
Author: Ozen
Description: Um tema personalizado para um site de animes
Version: 1.4
*/

/*=========================================*/
/* 1. VARIÁVEIS E RESET                    */
/*=========================================*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Unbounded:wght@200..900&display=swap');

:root {
    --color-bg: #0a0a0f;           
    --color-surface: #12121a;      
    --color-primary: #0047AB;      
    --color-primary-hover: #0055cc;
    --color-text-main: #ffffff;
    --color-text-muted: #a0a0b0;
    --header-height: 70px;
    --font-title: 'Unbounded', cursive;
    --font-text: 'Montserrat', sans-serif;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-text); 
    line-height: 1.6;
    overflow-x: hidden;
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: 0.3s; 
}

/* --- SCROLLBAR CUSTOMIZADA --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: #1c1c24;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/*=========================================*/
/* 2. HEADER (Estrutura Base)              */
/*=========================================*/
.site-header {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    height: var(--header-height);
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-bottom 0.4s ease;
}

.site-header.scrolled {
    background-color: rgba(18, 18, 26, 0.6) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

/* --- Logo --- */
.site-branding { 
    justify-self: start; 
    display: flex; 
    align-items: center; 
}

.logo-text { 
    font-family: var(--font-title); 
    font-size: 1.4rem; 
    font-weight: 800; 
    color: #fff; 
    letter-spacing: -0.5px; 
}

.logo-text .highlight { 
    color: var(--color-primary); 
}

/* --- Menu Desktop --- */
.main-navigation { 
    justify-self: center; 
    position: static; 
}

.main-navigation ul { 
    list-style: none; 
    display: flex; 
    gap: 30px; 
    margin: 0; 
    padding: 0; 
}

.main-navigation a { 
    font-family: var(--font-text); 
    font-size: 0.9rem; 
    font-weight: 600; 
    color: var(--color-text-muted); 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    position: relative; 
    padding: 5px 0; 
}

.main-navigation a:hover { 
    color: #fff; 
}

.main-navigation a::after { 
    content: ''; 
    position: absolute; 
    width: 0; 
    height: 2px; 
    bottom: 0; 
    left: 0; 
    background-color: var(--color-primary); 
    transition: width 0.3s ease; 
}

.main-navigation a:hover::after { 
    width: 100%; 
}

/* --- Ações (Direita) --- */
.header-actions { 
    justify-self: end; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.icon-btn {
    position: relative;
    background: transparent; 
    border: none; 
    color: #fff; 
    cursor: pointer; 
    padding: 8px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: background 0.2s, color 0.2s;
}

.icon-btn:hover { 
    background: rgba(255,255,255,0.1); 
    color: var(--color-primary); 
}

.badge-dot {
    position: absolute; 
    top: 6px; 
    right: 6px; 
    width: 8px; 
    height: 8px;
    background-color: #ff3b3b; 
    border-radius: 50%; 
    border: 2px solid var(--color-surface); 
    pointer-events: none;
}

.profile-btn img, 
.avatar-placeholder { 
    width: 35px; 
    height: 35px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 2px solid rgba(255,255,255,0.2); 
    transition: border-color 0.3s; 
}

.avatar-placeholder { 
    background: rgba(255,255,255,0.1); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #fff; 
}

.profile-btn:hover img { 
    border-color: var(--color-primary); 
}

/* Esconde itens mobile por padrão */
.mobile-only, 
.menu-toggle { 
    display: none; 
}


/*=========================================*/
/* 3. MENU MOBILE (A Gaveta)               */
/*=========================================*/
@media (max-width: 991px) {
    
    .desktop-only { 
        display: none !important; 
    }

    .menu-toggle { 
        display: flex; 
        z-index: 1100; 
    }

    /* --- GAVETA PRINCIPAL --- */
    .main-navigation {
        display: block !important;
        position: fixed;
        top: 0; 
        right: 0;
        width: 85%; 
        max-width: 300px; 
        height: 100vh;
        background: #0a0a0f; 
        border-left: 1px solid rgba(255,255,255,0.1);
        padding: 100px 30px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.8);
    }
    
    .main-navigation.active { 
        transform: translateX(0); 
    }

    .main-navigation ul { 
        flex-direction: column; 
        gap: 0; 
    }

    .main-navigation li { 
        width: 100%; 
        border-bottom: 1px solid rgba(255,255,255,0.05); 
    }

    .main-navigation a { 
        display: flex; 
        align-items: center; 
        width: 100%; 
        padding: 15px 0; 
        font-size: 1.1rem; 
        color: #fff; 
    }
    
    .mobile-only { 
        display: block; 
    }

    .mobile-only i { 
        color: var(--color-primary); 
        margin-right: 10px; 
        font-size: 1.2rem; 
    }

    /* --- OVERLAY ESCURO --- */
    .menu-overlay {
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 100%; 
        height: 100%;
        background: rgba(0,0,0,0.8);
        z-index: 990 !important; 
        opacity: 0; 
        visibility: hidden; 
        transition: 0.3s;
        pointer-events: none;
    }

    .menu-overlay.active { 
        opacity: 1; 
        visibility: visible; 
        pointer-events: auto; 
    }
}


/*=========================================*/
/* 4. HERO SECTION (Slider)                */
/*=========================================*/
.hero-slider-wrapper {
    position: relative; 
    width: 100vw; 
    height: 75vh;
    left: 50%; 
    margin-left: -50vw; 
    margin-right: -50vw; 
    margin-top: -70px;
    background: #000; 
    overflow: hidden;
    z-index: 1; 
}

.hero-slide { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    opacity: 0; 
    visibility: hidden; 
    transition: 0.8s; 
    z-index: 1; 
}

.hero-slide.active { 
    opacity: 1; 
    visibility: visible; 
    z-index: 2; 
}

.hero-bg-image { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-size: cover; 
    background-position: center; 
}

.hero-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(to right, rgba(10, 10, 15, 1) 0%, rgba(10, 10, 15, 0.8) 40%, rgba(10, 10, 15, 0) 100%); 
    z-index: 2; 
}

.hero-content { 
    position: relative; 
    z-index: 3; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    padding-top: 50px; 
}

/* --- Títulos e Textos --- */
.hero-title { 
    font-size: 3.5rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    max-width: 700px; 
    line-height: 1.1; 
    margin-bottom: 20px; 
    text-shadow: 0 10px 30px rgba(0,0,0,0.5); 
}

.hero-excerpt { 
    font-size: 1.1rem; 
    color: #ccc; 
    max-width: 600px; 
    margin-bottom: 30px; 
}

.hero-genres { 
    margin-bottom: 20px; 
    margin-top: -10px; 
    font-size: 0.95rem; 
    font-weight: 600; 
    color: var(--color-text-muted); 
}

.hero-genres a { 
    color: #e0e0e0; 
    text-transform: uppercase; 
}

.hero-genres a:hover { 
    color: var(--color-primary); 
}

/* --- Badges --- */
.hero-badges { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-bottom: 15px; 
    flex-wrap: wrap; 
    font-family: var(--font-text); 
}

.badge-item { 
    background: rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    padding: 5px 12px; 
    border-radius: 6px; 
    font-size: 0.8rem; 
    font-weight: 600; 
    color: #e0e0e0; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    backdrop-filter: blur(4px); 
}



.badge-tag.quality { 
    background: var(--color-primary); 
    color: #fff; 
    font-weight: 800; 
    padding: 6px 10px; 
    border-radius: 6px; 
    font-size: 0.75rem; 
    text-transform: uppercase; 
}

.badge-tag.rating { 
    background: rgba(255, 215, 0, 0.1); 
    border: 1px solid #ffd700; 
    color: #ffd700; 
    font-weight: 700; 
    padding: 5px 10px; 
    border-radius: 6px; 
    font-size: 0.8rem; 
    display: inline-flex; 
    align-items: center; 
    gap: 5px; 
}

/* --- Faixa Etária (CORES) --- */
.age-badge.age-l, .age-badge.age-livre,
.age-pill.age-l, .age-pill.age-livre {
    background: rgba(46, 204, 113, 0.5) !important;
    border-color: #2ecc71 !important;
    color: #2ecc71 !important;
}

.age-badge.age-10, .age-pill.age-10 {
    background: rgba(52, 152, 219, 0.5) !important;
    border-color: #3498db !important;
    color: #3498db !important;
}

.age-badge.age-12, .age-pill.age-12 {
    background: rgba(241, 196, 15, 0.5) !important;
    border-color: #f1c40f !important;
    color: #f1c40f !important;
}

.age-badge.age-14, .age-pill.age-14 {
    background: rgba(230, 126, 34, 0.5) !important;
    border-color: #e67e22 !important;
    color: #e67e22 !important;
}

/* 15, 16, 17 Vermelho */
.age-badge.age-15, .age-pill.age-15,
.age-badge.age-16, .age-pill.age-16,
.age-badge.age-17, .age-pill.age-17 {
    background: rgba(231, 76, 60, 0.5) !important;
    border-color: #e74c3c !important;
    color: #e74c3c !important;
}

.age-badge.age-18, .age-pill.age-18 {
    background: rgba(255, 255, 255, 0.5) !important;
    border-color: #fff !important;
    color: #fff !important;
}

/* --- Botões Hero --- */
.hero-buttons { 
    display: flex; 
    gap: 20px; 
}

.btn { 
    padding: 12px 35px; 
    border-radius: 50px; 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 0.9rem; 
    letter-spacing: 1px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    transition: 0.3s; 
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary { 
    background: var(--color-button-primary); 
    color: #fff; 
    box-shadow: 0 10px 30px color-mix(in srgb, var(--color-glow) 40%, transparent); 
}

.btn-primary:hover { 
    background: var(--color-button-primary);
    filter: brightness(1.15); 
    transform: translateY(-3px); 
}

.btn-secondary { 
    background: rgba(255,255,255,0.1); 
    color: #fff; 
    border: 1px solid rgba(255,255,255,0.2); 
    backdrop-filter: blur(5px); 
}

.btn-secondary:hover { 
    background: rgba(255,255,255,0.2); 
    border-color: #fff; 
}

/* --- Navegação e Setas --- */
.slider-navigation {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-bullet {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: width 0.3s ease;
}

.slider-bullet.active {
    width: 50px;
    background: rgba(255, 255, 255, 0.3);
}

.bullet-progress {
    height: 100%;
    background: var(--color-primary);
    width: 0%;
    border-radius: 4px;
}

.slider-bullet.active .bullet-progress {
    animation: progressFill 5s linear forwards;
}

@keyframes progressFill {
    from { width: 0%; }
    to { width: 100%; }
}

.slider-arrow { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background: rgba(0, 0, 0, 0.3); 
    color: #fff; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    cursor: pointer; 
    z-index: 10; 
    font-size: 1.5rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: 0.3s; 
    backdrop-filter: blur(5px); 
}

.slider-arrow:hover { 
    background: var(--color-primary); 
    border-color: var(--color-primary); 
}

.slider-arrow.prev-slide { 
    left: 30px; 
}

.slider-arrow.next-slide { 
    right: 30px; 
}


/*=========================================*/
/* 5. SEÇÃO ORÁCULO E CONTEÚDO EXTRA       */
/*=========================================*/

/* Conteúdo Geral */
.site-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: transparent; 
    position: relative;
    z-index: 20;
}

/* Oráculo - Fundo e Container */
.oracle-section {
    position: relative;
    padding: 40px 0 10px; /* Sem lacuna */
    text-align: center;
    background: linear-gradient(to bottom, rgba(10,10,15,0) 0%, var(--color-bg) 40%);
    z-index: 20; 
    margin-top: -5px; 
}

.oracle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0;
}

/* --- Avatar e Balão --- */
.oracle-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
}

.floating-cait {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.oracle-glow {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; 
    height: 80px;
    background: var(--color-primary);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.oracle-bubble {
    background: #2d3436;
    padding: 10px 25px;
    border-radius: 50px;
    position: relative;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: inline-block;
    animation: fadeIn 1s ease-out;
}

.oracle-bubble p {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}

.bubble-arrow {
    position: absolute;
    top: -6px; 
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px; 
    height: 12px;
    background: #2d3436;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-left: 1px solid rgba(255,255,255,0.1);
}

/* --- Botões do Oráculo (Ajuste do Corte) --- */
.mood-grid {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap; 
    justify-content: center;
    max-width: 100%;
    overflow-x: auto; 
    padding: 15px 20px; 
    -webkit-overflow-scrolling: touch; 
}

.mood-grid::-webkit-scrollbar { 
    display: none; 
}

.mood-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 50px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    color: #ccc;
    font-size: 0.85rem;
    font-weight: 700;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    cursor: pointer; 
}

.mood-btn:hover {
    background: var(--btn-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    border-color: var(--btn-color);
}

.mood-btn:hover i { 
    color: #fff; 
}


/*=========================================*/
/* 6. CARDS ORÁCULO                        */
/*=========================================*/

/* Área de Resposta do AJAX */
#oracle-response-area {
    margin-top: 0;
    width: 100%;
    min-height: 0;
    animation: fadeIn 0.5s ease;
}

#oracle-response-area:not(:empty) {
    margin-top: 30px;
    min-height: 200px;
}

/* Loader */
.oracle-loader { 
    display: flex; 
    justify-content: center; 
    padding: 40px; 
}

.spinner {
    width: 40px; 
    height: 40px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

/* --- ORÁCULO AGORA É SLIDER (Linha Única) --- */
.oracle-results-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: auto;
}

/* BARRA DE ROLAGEM NO DESKTOP (Pra funcionar sem JS Drag) */
@media (min-width: 769px) {
    .oracle-results-grid::-webkit-scrollbar {
        display: block;
        height: 8px;
    }
    
    .oracle-results-grid::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
    }
    
    .oracle-results-grid::-webkit-scrollbar-thumb {
        background: var(--color-primary);
        border-radius: 4px;
    }
    
    .oracle-results-grid::-webkit-scrollbar-thumb:hover {
        background: var(--color-primary-hover);
    }
}

/* Item do Slider Oráculo */
.oracle-results-grid .anime-card-skinny {
    width: 175px;
    min-width: 175px;
    flex-shrink: 0;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    aspect-ratio: 2 / 3; 
    background: #000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.anime-card-skinny:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-link-wrapper { 
    display: block; 
    width: 100%; 
    height: 100%; 
}

.card-cover { 
    width: 100%; 
    height: 100%; 
    background-size: cover; 
    background-position: center; 
    position: relative; 
}

/* --- Badges Visíveis (Normal) --- */
.card-normal-badges {
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    padding: 10px;
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
    z-index: 1; 
    pointer-events: none; 
    transition: opacity 0.3s;
}

.badge-pill.genre-pill { 
    align-self: flex-start; 
    background: var(--color-primary); 
    color: #fff; 
    font-size: 0.65rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    padding: 3px 8px; 
    border-radius: 4px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.5); 
}

.right-badges { 
    position: absolute; 
    top: 10px; 
    right: 10px; 
    display: flex; 
    flex-direction: column; 
    gap: 5px; 
    align-items: flex-end; 
}

.rating-pill { 
    background: #ffd700; 
    color: #000; 
    font-size: 0.7rem; 
    font-weight: 800; 
    padding: 2px 6px; 
    border-radius: 4px; 
    display: flex; 
    align-items: center; 
    gap: 3px; 
}

.age-pill { 
    background: rgba(0,0,0,0.8); 
    border: 1px solid rgba(255,255,255,0.3); 
    color: #fff; 
    font-size: 0.7rem; 
    font-weight: 700; 
    padding: 2px 6px; 
    border-radius: 4px; 
}

/* --- BADGES SÓLIDAS NO ORÁCULO --- */
.oracle-results-grid .age-pill.age-l, 
.oracle-results-grid .age-pill.age-livre { background: #2ecc71 !important; color: #fff !important; border: none !important; }

.oracle-results-grid .age-pill.age-10 { background: #3498db !important; color: #fff !important; border: none !important; }

.oracle-results-grid .age-pill.age-12 { background: #f1c40f !important; color: #000 !important; border: none !important; }

.oracle-results-grid .age-pill.age-13 { background: #e67e22 !important; color: #fff !important; border: none !important; }

.oracle-results-grid .age-pill.age-14 { background: #e67e22 !important; color: #fff !important; border: none !important; }

.oracle-results-grid .age-pill.age-15 { background: #e74c3c !important; color: #fff !important; border: none !important; }

.oracle-results-grid .age-pill.age-16 { background: #e74c3c !important; color: #fff !important; border: none !important; }

.oracle-results-grid .age-pill.age-17 { background: #e74c3c !important; color: #fff !important; border: none !important; }

.oracle-results-grid .age-pill.age-18 { background: #000 !important; border: 1px solid #fff !important; color: #fff !important; }


.anime-card-skinny:hover .card-normal-badges { 
    opacity: 0; 
}

/* --- HOVER OVERLAY (Conteúdo Centralizado) --- */
.card-hover-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: rgba(0, 0, 0, 0.85); 
    opacity: 0; 
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    padding: 20px;
    text-align: center; 
    backdrop-filter: blur(5px); 
}

.anime-card-skinny:hover .card-hover-overlay { 
    opacity: 1; 
}

.hover-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Título */
.hover-title {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.2;
    margin: 10px 0 5px 0;
    font-weight: 800;
}

/* Temporada */
.hover-season {
    color: var(--color-primary); 
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

/* Botão Play */
.hover-play {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 5px;
    transition: 0.3s;
    text-shadow: 0 0 20px var(--color-primary);
}

.anime-card-skinny:hover .hover-play { 
    transform: scale(1.1); 
}

/* Info Técnica */
.hover-tech-info { 
    display: flex; 
    gap: 8px; 
    justify-content: center; 
}

.tech-tag { 
    font-size: 0.65rem; 
    border: 1px solid rgba(255,255,255,0.3); 
    color: #ccc; 
    padding: 2px 6px; 
    border-radius: 3px; 
    font-weight: 600; 
}

.audio-tag { 
    border-color: transparent; 
}

.audio-dub { background: var(--color-tag-dub) !important; border-color: transparent !important; color: #fff !important; }
.audio-dubleg { background: var(--color-tag-dubleg) !important; border-color: transparent !important; color: #fff !important; }

.badge-item.audio-dub { background: color-mix(in srgb, var(--color-tag-dub) 25%, transparent) !important; border-color: var(--color-tag-dub) !important; color: var(--color-tag-dub) !important; }
.badge-item.audio-dubleg { background: color-mix(in srgb, var(--color-tag-dubleg) 25%, transparent) !important; border-color: var(--color-tag-dubleg) !important; color: var(--color-tag-dubleg) !important; }

.quality-tag { 
    background: var(--color-tag-fhd); 
    border: none; 
    color: #fff; 
}



/*=========================================*/
/* 7. RESPONSIVIDADE MOBILE FINAL          */
/*=========================================*/

/* Tablet e Mobile (Geral) */
@media (max-width: 991px) {
    .hero-title { 
        font-size: 2.5rem; 
    }
    .hero-badges { 
        justify-content: center; 
    }
    .hero-slider-wrapper { 
        min-height: 100vh; 
        padding-bottom: 80px; 
    }
}

/* Celular */
@media (max-width: 768px) {
    
    /* --- 1. SLIDER MOBILE --- */
    .slider-arrow { display: none; }
    
    .hero-overlay { 
        background: linear-gradient(to top, rgba(10,10,15,1) 15%, rgba(10,10,15,0.5) 60%, rgba(10,10,15,0) 100%); 
    }
    
    .hero-slider-wrapper { 
        height: auto; 
        min-height: 600px;
        background-position: center; 
        align-items: flex-end; 
        padding-bottom: 100px; 
        margin-top: 10px;
    }
    
    .hero-content { 
        padding-top: 0; 
        text-align: center; 
        align-items: center; 
    }
    
    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }
    
    .hero-excerpt {
        font-size: 0.95rem;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        width: 100%;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
        margin-bottom: 10px;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .slider-navigation {
        left: 50%;
        transform: translateX(-50%);
        bottom: 30px;
    }


    /* --- 2. ORÁCULO: BOTÕES EMPILHADOS --- */
    .mood-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 0 20px;
        overflow-x: visible;
    }

    .mood-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.9rem;
        padding: 14px;
    }


    /* --- 3. ORÁCULO MOBILE (SLIDER) --- */
    .oracle-results-grid { 
        padding: 0 20px 20px;
        scrollbar-width: none;
    }
    .oracle-results-grid::-webkit-scrollbar { display: none; }

    /* Força card de 135px no Oráculo também */
    .oracle-results-grid .anime-card-skinny {
        width: 135px !important;
        min-width: 135px !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .rating-pill, .age-pill {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .rating-pill i { font-size: 0.7rem; }
    
    /* Hover no Mobile (Toque) */
    .hover-play { font-size: 4rem; }
}



/* ========================================= */
/* 9. SEÇÃO CONTINUAR ASSISTINDO (CW)        */
/* ========================================= */

.cw-section {
    padding: 20px 0;
    position: relative;
    z-index: 25;
}

/* Cabeçalho: Título + Link "Ver tudo" */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
    border-left: none; 
    padding-left: 15px; 
    position: relative;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.see-all-link {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: 0.3s;
}
.see-all-link:hover { color: var(--color-primary); }

/* Grid Horizontal (Slider Nativo) */
.cw-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px; 
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Esconder Scrollbar feio (Chrome/Safari) */
.cw-grid::-webkit-scrollbar {
    height: 6px;
}

.cw-grid::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
}

.cw-grid::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
}

/* O Card Widescreen */
.cw-card {
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
    transition: 0.3s;
}

.cw-thumb-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-bottom: 10px;
    background: #000;
    border: 1px solid rgba(255,255,255,0.1);
}

.cw-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
    opacity: 0.8;
}

/* Efeito Hover */
.cw-card:hover .cw-thumb-wrapper {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px color-mix(in srgb, var(--color-glow) 20%, transparent);
    border-color: var(--color-primary);
    transform: translateZ(0); 
    -webkit-transform: translateZ(0);
}
.cw-card:hover .cw-img {
    opacity: 1;
}

/* Botão Play (Overlay) */
.cw-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    font-size: 3rem;
    color: #fff;
    opacity: 0;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
    text-shadow: 0 0 20px rgba(0,0,0,0.8);
}
.cw-card:hover .cw-overlay {
    opacity: 1;
    transform:
    translate(-50%, -50%) scale(1);
}

/* BARRA DE PROGRESSO */
.progress-track {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    z-index: 3;
}

.progress-fill {
    height: 100%;
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-glow);
    position: relative;
}

/* Bolinha na ponta da barra */
.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: 0.3s;
}
.cw-card:hover .progress-fill::after {
    opacity: 1;
}

/* Badge de Tempo Restante */
.time-badge {
    position: absolute;
    bottom: 10px; right: 5px;
    background: rgba(0,0,0,0.8);
    color: #ccc;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    z-index: 2;
}

/* Textos */
.cw-info {
    padding: 0 5px;
}

.cw-anime-title {
    font-size: 0.95rem;
    margin: 0;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
}

.cw-ep-title {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    display: block;
    margin-top: 3px;
}

.cw-card:hover .cw-anime-title {
    color: var(--color-primary);
}

/* --- BADGE: QUANDO ASSISTIU (Topo Direita) --- */
.last-watched {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #eee;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 6px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
}


.last-watched::before {
    content: '\eb0e';
    font-family: 'remixicon';
    color: var(--color-primary);
    font-weight: normal;
}


.cw-card:hover .last-watched {
    opacity: 0;
    transition: opacity 0.3s;
}



/* ========================================= */
/* 10. CARROSSEL DE ÚLTIMOS ADICIONADOS      */
/* ========================================= */

.latest-section {
    padding-bottom: 60px;
    position: relative;
    z-index: 25;
}

/* --- TÍTULO --- */
.latest-section .section-header {
    border-left: none;
    padding-left: 15px;
    position: relative;
}

.neon-line {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 4px;
    background: var(--color-primary);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--color-glow);
}

/* --- CARROSSEL ESTRUTURA --- */
.carousel-container { 
    width: 100%; 
    position: relative; 
}

.carousel-track {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}

.carousel-track::-webkit-scrollbar { 
    height: 6px; 
}
.carousel-track::-webkit-scrollbar-track { 
    background: rgba(255,255,255,0.05); 
    border-radius: 3px; 
}
.carousel-track::-webkit-scrollbar-thumb { 
    background: var(--color-primary); 
    border-radius: 3px; 
}

.carousel-item {
    flex: 0 0 200px; /* Largura fixa para manter proporção */
    transition: transform 0.3s ease;
    scroll-snap-align: start;
}

.carousel-item .anime-card-skinny {
    height: 100%;
    aspect-ratio: 2 / 3;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    transform: translateZ(0); 
    -webkit-transform: translateZ(0);
}

/* --- BADGES NORMAIS (Gênero e Nota na Esquerda) --- */
.carousel-item .card-normal-badges {
    position: absolute;
    top: 10px !important;
    left: 10px !important;
    bottom: auto !important;
    right: auto !important;
    height: auto !important;
    width: auto !important;
    display: flex;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: 6px !important;
    z-index: 5;
    pointer-events: none;
    margin: 0; padding: 0;
}

/* Gênero (Azul) */
.carousel-item .badge-pill.genre-pill {
    background: var(--color-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    line-height: 1;
    align-self: flex-start;
}

/* Nota */
.carousel-item .rating-pill {
    background: #ffd700;
    border: 1px solid rgba(255,255,255,0.15);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 6px;
    display: flex; 
    align-items: center; 
    gap: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    margin: 0;
    align-self: flex-start;
}
.carousel-item .rating-pill i { 
    color: #000; 
    font-size: 0.7rem; 
    margin-top: -1px; 
}

/* Botão Favorito */
.fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    z-index: 10 !important;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    backdrop-filter: blur(2px);
}
.fav-btn:hover { 
    background: var(--color-primary); 
    border-color: var(--color-primary); 
    transform: scale(1.1); 
    box-shadow: 0 0 10px var(--color-glow); 
}

/* --- BADGE DE TEMPO --- */
.carousel-item .time-ago-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #ccc;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: lowercase;
    padding: 3px 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
    pointer-events: none;
    transition: opacity 0.3s;
}

.carousel-item .time-ago-badge i {
    font-size: 0.65rem;
    color: var(--color-primary);
}

/* Quando passar o mouse, o tempo some pra dar lugar ao Overlay */
.carousel-item .anime-card-skinny:hover .time-ago-badge {
    opacity: 0;
}

/* --- HOVER DO CARROSSEL (AJUSTES FINOS) --- */
.carousel-item .card-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: rgba(0, 0, 0, 0.88);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 6;
    padding: 15px;
    text-align: center;
    backdrop-filter: blur(4px);
}

.carousel-item .anime-card-skinny:hover .card-normal-badges { 
    opacity: 0; 
}

.carousel-item .anime-card-skinny:hover .card-hover-overlay { 
    opacity: 1;
}

.carousel-item .hover-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* Play */
.carousel-item .hover-play {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 5px;
    text-shadow: 0 0 20px var(--color-primary);
    transition: 0.3s;
}

.carousel-item .anime-card-skinny:hover .hover-play { 
    transform: scale(1.1); 
}

/* Título */
.carousel-item .hover-title {
    color: #fff;
    font-size: 1rem;
    line-height: 1.3;
    margin: 0;
    font-weight: 700;
    max-height: 2.6em;
    overflow: hidden;
}

/* Temporada */
.carousel-item .hover-season {
    color: var(--color-primary);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 5px;
}

/* Tech Info (Audio, Qualidade, Idade) */
.carousel-item .hover-tech-info {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
    margin-top: 5px;
}

.carousel-item .tech-tag {
    font-size: 0.6rem;
    border: 1px solid rgba(255,255,255,0.3);
    color: #ccc;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 600;
    white-space: nowrap;
}

.carousel-item .tech-tag.quality-tag {
    background: var(--color-tag-fhd);
    border: none; color: #fff;
}



/* ========================================= */
/* 11. AJUSTES GERAIS DE CARROSSEL (DRAG)    */
/* ========================================= */

/* Configuração Base (Mobile e Desktop com JS) */
.carousel-track, 
.cw-grid,
.oracle-results-grid { /* Inclui Oráculo aqui */
    scrollbar-width: none; 
    -ms-overflow-style: none;
    cursor: pointer; 
    user-select: none; 
    -webkit-user-select: none;
}

.carousel-track::-webkit-scrollbar,
.cw-grid::-webkit-scrollbar,
.oracle-results-grid::-webkit-scrollbar {
    display: none; 
}

.carousel-track.snap-off,
.cw-grid.snap-off,
.oracle-results-grid.snap-off {
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
}

/* Impede que a imagem fantasma apareça ao arrastar */
.carousel-item img, 
.cw-card img,
.oracle-results-grid img,
.carousel-item a, 
.cw-card a,
.oracle-results-grid a {
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Reativa cliques nos links, mas o JS vai gerenciar se abre ou não */
.carousel-item a, 
.cw-card a,
.oracle-results-grid a {
    pointer-events: auto;
}


/* ========================================= */
/* 12. TWEAK GLOBAL: BADGES DE IDADE (+XX)   */
/* ========================================= */

.age-badge, 
.age-pill {
    font-size: 0 !important; 
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 4px !important;
    border-radius: 4px !important;
    min-width: 28px; 
    height: auto !important;
    line-height: 1 !important;
}

/* EXCEÇÃO: Banner Principal  */
.hero-badges .age-badge,
.hero-badges .age-pill {
    padding: 8px 4px !important; 
    font-size: 0 !important;
    height: auto !important;
}

.hero-badges .age-badge::after,
.hero-badges .age-pill::after {
    font-size: 0.8rem !important; 
}

/* Escreve o novo formato (+XX) */
.age-pill.age-l::after, .age-badge.age-l::after,
.age-pill.age-livre::after, .age-badge.age-livre::after {
    content: 'L'; 
    font-size: 0.7rem !important; 
    font-weight: 800;
}

.age-pill.age-10::after, .age-badge.age-10::after {
    content: '+10'; 
    font-size: 0.7rem !important; 
    font-weight: 800;
}

.age-pill.age-12::after, .age-badge.age-12::after {
    content: '+12'; 
    font-size: 0.7rem !important; 
    font-weight: 800;
}

.age-pill.age-13::after, .age-badge.age-13::after {
    content: '+13'; 
    font-size: 0.7rem !important; 
    font-weight: 800;
}

.age-pill.age-14::after, .age-badge.age-14::after {
    content: '+14'; 
    font-size: 0.7rem !important; 
    font-weight: 800;
}

.age-pill.age-15::after, .age-badge.age-15::after {
    content: '+15'; 
    font-size: 0.7rem !important; 
    font-weight: 800;
}

.age-pill.age-16::after, .age-badge.age-16::after {
    content: '+16'; 
    font-size: 0.7rem !important; 
    font-weight: 800;
}

.age-pill.age-17::after, .age-badge.age-17::after {
    content: '+17'; 
    font-size: 0.7rem !important; 
    font-weight: 800;
}

.age-pill.age-18::after, .age-badge.age-18::after {
    content: '+18'; 
    font-size: 0.7rem !important; 
    font-weight: 800;
}


/* ========================================= */
/* 13. MOBILE FINAL (LAYOUT + 135PX)         */
/* ========================================= */

@media (max-width: 768px) {

    .site-content {
        padding-left: 10px !important;
        padding-right: 10px !important;
        overflow-x: hidden;
    }

    .section-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-bottom: 15px !important;
        padding: 0 !important;
        border: none !important;
    }

    .section-title {
        font-size: 1.0rem !important;
        margin: 0 !important;
        line-height: 1.2 !important;
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1; 
    }

    /* Ajuste do ícone no título */
    .section-title i { font-size: 1.1rem !important; margin: 0 !important; }
    
    .see-all-link {
        font-size: 0.7rem !important;
        white-space: nowrap !important;
        padding-left: 10px;
    }
    
    /* Linha neon ajustada */
    .neon-line { height: 20px !important; width: 3px !important; left: -10px !important;}

    /* --- CARROSSEL MOBILE (135PX) --- */
    .carousel-track {
        gap: 10px !important;
        padding: 0 !important;
        padding-right: 20px !important;
    }

    .carousel-item {
        width: 135px !important;
        min-width: 135px !important;
        flex: 0 0 auto !important;
    }
    
    .carousel-item .anime-card-skinny {
        width: 100% !important;
        aspect-ratio: 2 / 3 !important;
    }

    /* DIETA DAS BADGES (Pra caber no 135px) */
    .carousel-item .card-normal-badges {
        top: 5px !important;
        left: 5px !important;
        gap: 4px !important;
    }
    
    .carousel-item .fav-btn {
        top: 5px !important;
        right: 5px !important;
        width: 25px !important;
        height: 25px !important;
        font-size: 0.8rem !important;
    }

    .carousel-item .badge-pill.genre-pill {
        font-size: 0.5rem !important;
        padding: 3px 6px !important;
        border-radius: 3px !important;
    }

    .carousel-item .rating-pill {
        font-size: 0.55rem !important;
        padding: 1px 5px !important;
        border-radius: 3px !important;
    }

    .cw-grid {
        gap: 15px !important;
        padding: 0 !important;
        padding-right: 20px !important;
    }
    
    .cw-card {
        width: 85vw !important;
        min-width: 85vw !important;
    }
    
    .hover-play { font-size: 2.5rem !important; }
    .hover-title { font-size: 0.85rem !important; }
    .hover-season { font-size: 0.65rem !important; padding: 2px 8px !important; }
}



/* ========================================= */
/* 14. SEÇÃO NOVOS EPISÓDIOS (GRID 16:9)     */
/* ========================================= */

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding-bottom: 20px;
}

.episode-card {
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    position: relative;
}

/* --- THUMBNAIL (16:9 Widescreen) --- */
.ep-thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
}

.ep-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0.9;
}

/* Efeito Hover na Imagem */
.episode-card:hover .ep-img {
    transform: scale(1.05);
    opacity: 0.5;
}

/* --- BADGES (Topo Esquerdo) --- */
.ep-badges-top {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 5px;
    z-index: 2;
}

.ep-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 6px;
    border-radius: 2px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1;
    display: flex;
    align-items: center;
}

.ep-badge.quality {
    background: var(--color-primary);
    color: #fff;
}

.ep-badge.audio {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ccc;
}

/* --- BADGE DE TEMPO ("26 min atrás") --- */
.ep-time-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: #ccc;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.1);
}

.ep-time-badge i { font-size: 0.7rem; color: var(--color-primary); }

/* --- NÚMERO DO EP (Canto Inferior Direito) --- */
.ep-number {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #000;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.2);
}

/* --- PLAY OVERLAY (Hover) --- */
.ep-hover-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 3;
    opacity: 0;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.ep-hover-overlay i {
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 0 20px var(--color-primary);
}

.episode-card:hover .ep-hover-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* --- INFORMAÇÕES (Texto Embaixo) --- */
.ep-info {
    padding: 10px 5px 0 5px;
}

.ep-anime-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: 0.3s;
}

.episode-card:hover .ep-anime-title {
    color: var(--color-primary);
}

.ep-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 500;
    display: flex;       
    align-items: center;
    gap: 5px;            
    min-width: 0;
}

.season-info {
    white-space: nowrap;
    flex-shrink: 0;
}

.ep-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;                 
    color: #fff;             
}

/* --- RESPONSIVIDADE (Mobile) --- */
@media (max-width: 768px) {
    .episodes-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .ep-anime-title { font-size: 1rem; }
    .ep-thumb-wrapper { border-radius: 6px; }
}



/* ========================================= */
/* 15. SEÇÃO MAIS POPULARES (CARROSSEL)      */
/* ========================================= */

.popular-section .section-header {
    margin-bottom: 5px;
    padding-bottom: 0;
    border: none;
}

.popular-section {
    padding-bottom: 10px;
}

/* O SEGREDO TÁ AQUI: Dar teto pro carrossel */
.popular-section .carousel-container {
    padding-bottom: 10px;
    overflow-y: visible;
    overflow-x: auto;
}

.popular-item {
    flex: 0 0 auto;    
    width: 160px;      
    margin-right: 12px; 
    padding-top: 15px;
}

.anime-card-vertical {
    width: 100%;
    position: relative;
    transition: 0.3s;
}

.popular-section .card-cover {
    width: 100%;
    aspect-ratio: 2 / 3; 
    background-repeat: no-repeat; 
    background-size: cover; 
    background-position: center top;
    background-color: #0a0a0a;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.popular-section .popular-item {
    flex: 0 0 auto;    
    width: 160px;      
    margin-right: 0;
}

.popular-section .popular-item:last-child {
    margin-right: 0;
}

.anime-card-vertical:hover .card-cover {
    transform: translateY(-8px);
}

.popular-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e0e0e0;
    margin-top: 10px;
    line-height: 1.2;
    white-space: nowrap;      
    overflow: hidden;         
    text-overflow: ellipsis;  
    text-align: left;         
    transition: 0.3s;
}

.anime-card-vertical:hover .popular-title {
    color: var(--color-primary);
}

/* Mobile */
@media (max-width: 768px) {
    .popular-item {
        width: 130px; 
        margin-right: 10px;
    }
    .popular-title {
        font-size: 0.8rem;
    }
}



/* ========================================= */
/* 16. RODAPÉ (FOOTER MINIMALISTA)           */
/* ========================================= */

.site-footer {
    padding: 30px 0;
    margin-top: 60px; 
    border-top: 1px solid #1a1a1a;
    font-size: 0.85rem;
    color: #888;
}

.footer-inner {
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

/* Lado Esquerdo */
.footer-left {
    color: #888;
}

.footer-left strong {
    color: #fff; 
    font-weight: 700;
}

.rights-text {
    display: block; 
    margin-top: 4px; 
    color: #666; 
}

/* Lado Direito */
.footer-right p {
    margin: 0;
    color: #666; 
}

/* Responsividade */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column; 
        text-align: center;
        gap: 20px;
    }
    
    .rights-text {
        display: inline; 
    }
}



/* ========================================= */
/* 17. PÁGINA ARQUIVO (A-Z E GRID)           */
/* ========================================= */

.archive-animes-page {
    padding-top: 100px;
    padding-bottom: 60px;
}

/* --- CABEÇALHO DA PÁGINA --- */
.archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.archive-header .page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.archive-header .page-subtitle {
    color: #888;
    font-size: 1rem;
}

/* --- FILTRO A-Z (TRACK) --- */
.az-filter-container {
    background: transparent;
    padding: 15px 0;
    margin-bottom: 40px;
    border: none;
    overflow-x: auto;
}

.az-track {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: max-content;
}

.az-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase;
    border: 1px solid #222;
}

.btn-list {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

/* Botão "Todos" */
.az-item:first-child {
    width: auto;
    padding: 0 15px;
}

/* Estados Hover e Active */
.az-item:hover,
.az-item.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--color-glow) 40%, transparent);
}

/* --- GRID DE RESULTADOS --- */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 25px;
}

/* Container do Card */
.anime-card-archive {
    width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    background: #000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.anime-card-archive:hover {
    transform: translateY(-5px);
    z-index: 2;
}

/* Capa */
.anime-card-archive .card-cover {
    width: 100%;
    aspect-ratio: 2 / 3;
    background-size: cover;
    background-position: center top;
    position: relative;
}

/* Gradiente */
.card-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    pointer-events: none;
}

/* --- BADGES (TOPO DO CARD) --- */
.card-header-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 5;
}

.badges-left-stack {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
}

/* Estilo Base Badge Sólida */
.badge-solid {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.6);
    line-height: 1.2;
    text-align: center;
    width: fit-content;
}

/* --- CORES DAS BADGES --- */

/* 1. Gênero */
.genre-badge { background-color: var(--color-primary); }

/* 2. Nota */
.rating-badge { background-color: var(--color-badge-star); color: #fff; display: flex; align-items: center; gap: 3px; }

/* 3. Status */
.status-badge.status-completo { background-color: var(--color-tag-dub); }
.status-badge.status-lancamento { background-color: #00C2FF; }
.status-badge.status-hiato { background-color: #dc3545; }
.status-badge.status-aguardando { background-color: #6f42c1; }
.status-badge.status-default { background-color: #444; }

/* 4. IDADE (CHAPADA/SÓLIDA) */
.anime-card-archive .age-badge {
    opacity: 1 !important;
    backdrop-filter: none;
    color: #fff;
    border: none;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    min-width: 25px;
}
.anime-card-archive .age-badge.age-l, .anime-card-archive .age-badge.age-livre { background-color: #00C853 !important; color: #fff !important; }
.anime-card-archive .age-badge.age-10 { background-color: #00B0FF !important; color: #fff !important; }
.anime-card-archive .age-badge.age-12 { background-color: #FFD600 !important; color: #fff !important; }
.anime-card-archive .age-badge.age-14 { background-color: #FF6D00 !important; color: #fff !important; }
.anime-card-archive .age-badge.age-16 { background-color: #D50000 !important; color: #fff !important; }
.anime-card-archive .age-badge.age-17 { background-color: #D50000 !important; color: #fff !important; }
.anime-card-archive .age-badge.age-18 { background-color: #111 !important; color: #fff !important; }

/* Botão Favorito */
.fav-btn-circle {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    width: 28px;
    height: 28px;
    z-index: 10 !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(2px);
    transition: 0.3s;
}
.fav-btn-circle:hover {
    background: #fff;
    border-color: transparent;
    color: var(--color-favorite);
    transform: scale(1.1);
}

/* --- RODAPÉ DO CARD --- */
.card-footer-content {
    position: absolute;
    bottom: 12px;
    left: 10px;
    right: 10px;
    z-index: 5;
    transition: 0.3s ease;
}

.anime-title-overlay {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 5px rgba(0,0,0,1);
    transition: 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Infos Técnicas (Reveal) */
.anime-tech-reveal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 0;
}

.reveal-item { font-size: 0.7rem; color: #ccc; font-weight: 600; margin-right: 2px; }

.reveal-badge {
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 1px 5px;
    border-radius: 3px;
    color: #fff;
    text-transform: uppercase;
}

/* --- HOVER EFFECTS --- */
.anime-card-archive:hover .card-footer-content {
    bottom: 15px; 
}

.anime-card-archive:hover .anime-title-overlay {
    transform: translateY(-20px);
    color: var(--color-primary);
}

.anime-card-archive:hover .anime-tech-reveal {
    opacity: 1;
    height: auto;
    margin-top: -15px;
}

/* --- PAGINAÇÃO E MENSAGENS --- */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: transparent;
    border: none;
}

.no-results i {
    font-size: 3rem;
    color: #333;
    margin-bottom: 15px;
    display: block;
}

.no-results h2 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 20px;
}

.btn-back {
    background: var(--color-primary);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}
.btn-back:hover {
    background: #fff;
    color: var(--color-primary);
}

.pagination-wrapper {
    margin-top: 50px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #0a0a0a;
    color: #fff;
    border-radius: 50%;
    margin: 0 5px;
    font-weight: 600;
    border: 1px solid #222;
    transition: 0.3s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.1);
}

/* Responsividade */
@media (max-width: 768px) {
    .az-track {
        justify-content: flex-start;
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .badge-solid { font-size: 0.6rem; padding: 2px 6px; }
}

@media (max-width: 480px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



/* ========================================= */
/* 18. PÁGINA DE PEDIDOS                     */
/* ========================================= */

.pedidos-page {
    padding-top: 200px;
    padding-bottom: 80px;
    min-height: 80vh;
}

.pedidos-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.pedidos-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.pedidos-subtitle {
    color: #888;
    margin-bottom: 30px;
}

/* Barra de Busca */
.pedidos-search-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 5px 5px 5px 25px;
    transition: 0.3s;
}

.pedidos-search-wrapper:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 15px color-mix(in srgb, var(--color-glow) 30%, transparent);
}

.pedidos-search-wrapper input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.pedidos-search-wrapper button {
    background: var(--color-primary); /* Roxo/Rosa do print ou Azul Cobalt */
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
}
.pedidos-search-wrapper button:hover {
    background: #fff;
    color: var(--color-primary);
}

/* Empty State (Fantasma) */
.empty-state {
    margin-top: 50px;
    color: #333;
}
.empty-state i {
    font-size: 4rem;
    display: block;
    margin-bottom: 10px;
}

/* Grid de Resultados */
.anilist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

/* Card do Resultado */
.anilist-card {
    background: #0a0a0a;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 2 / 3;
    transition: 0.3s;
}
.anilist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.anilist-cover {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    inset: 0;
}
.anilist-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 50%);
    transition: 0.3s;
}
.anilist-card:hover .anilist-cover::after {
    background: rgba(0,0,0,0.6);
}

.anilist-year {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-badge-star, #ffd700);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 3;
}

.anilist-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    text-align: center;
    z-index: 2;
}

.anilist-info h3 {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 0;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 700;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(20px);
}
.anilist-card:hover .anilist-info h3 {
    color: var(--color-primary);
    transform: translateY(-45px);
}

/* Botões de Ação */
.btn-request-anime, .btn-status, .btn-requested, .btn-watch-now {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translate(-50%, 20px);
    width: 85%;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    opacity: 0;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 3;
    text-decoration: none;
}
.anilist-card:hover .btn-request-anime,
.anilist-card:hover .btn-status,
.anilist-card:hover .btn-requested,
.anilist-card:hover .btn-watch-now {
    opacity: 1;
    transform: translate(-50%, 0);
}

.btn-watch-now {
    background: var(--color-primary);
    color: #fff;
}
.btn-watch-now:hover {
    background: #fff;
    color: var(--color-primary);
}

.btn-request-anime {
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
}
.btn-request-anime:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-requested {
    background: var(--color-primary);
    color: #fff;
    cursor: default;
}

/* Botões de Status (Feedback Visual) */
.btn-status {
    cursor: not-allowed;
    color: #fff;
}

.btn-pendente {
    background: var(--color-primary);
}

.btn-recusado {
    background: var(--color-favorite, #ff0055);
}

.btn-atendido {
    background: #2ecc71;
}

/* Loader */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.1);
    border-left-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 30px auto;
}
@keyframes spin { 100% { transform: rotate(360deg); } }


/* ========================================= */
/* 19. PÁGINA CALENDÁRIO                     */
/* ========================================= */

.calendario-page {
    padding-top: 100px;
    padding-bottom: 80px;
    min-height: 80vh;
}

.calendario-header {
    text-align: center;
    margin-bottom: 50px;
}

/* Container das Abas */
.calendar-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

/* Botão do Dia */
.tab-day {
    background: transparent;
    border: 1px solid #333;
    color: #888;
    padding: 10px 25px;
    border-radius: 8px; /* Borda arredondada suave */
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-day:hover {
    border-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Botão Ativo (Dia Selecionado) */
.tab-day.active {
    background: var(--color-primary); /* AZUL COBALTO */
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 5px 15px color-mix(in srgb, var(--color-favorite) 40%, transparent); /* Glow Azul */
}

/* Estado Vazio */
.empty-day-state {
    text-align: center;
    padding: 60px;
    background: transparent;
    border: none;
    color: #555;
}
.empty-day-state i {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Mobile: Scroll horizontal nas abas */
@media (max-width: 768px) {
    .calendar-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        white-space: nowrap;
        flex-wrap: nowrap;
    }
    .tab-day {
        flex: 0 0 auto; /* Não encolhe */
    }
}



/* ========================================= */
/* 20. PÁGINA SINGLE ANIME                   */
/* ========================================= */

/* --- HERO BACKGROUND (FIX 100% WIDTH) --- */
.anime-hero-background {
    position: absolute;
    top: 0;
    left: 50%; /* Centraliza em relação à tela */
    width: 100vw; /* Força largura total da viewport */
    height: 650px; /* Um pouco mais alto para cobrir bem */
    transform: translateX(-50%); /* Ajusta a centralização pra cobrir tudo */
    background-size: cover;
    background-position: center top;
    z-index: -10; /* Garante que fique atrás de tudo */
    opacity: 0.35;
    /* Máscara para suavizar o final da imagem */
    mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
    pointer-events: none;
    overflow: hidden;
}

/* Importante para não gerar barra de rolagem horizontal com 100vw */
body {
    overflow-x: hidden;
}

.hero-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5,5,5,0.2) 0%, #050505 100%);
}

/* --- LAYOUT GRID HERO --- */
.anime-header-grid {
    display: grid;
    grid-template-columns: 280px 1fr; /* Capa Fixa + Conteúdo */
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
    position: relative; /* Para ficar acima do background */
}

/* Coluna Esquerda (Capa) */
.poster-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    border: 1px solid #222;
}

.main-poster {
    width: 100%;
    display: block;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.poster-status-bar {
    text-align: center;
    padding: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    font-size: 0.9rem;
}

/* Cores dos Status na Capa */
.bg-green { background: var(--color-tag-dub); } /* Completo (Verde) */
.bg-blue { background: #00C2FF; }  /* Em Lançamento (Azul Claro) */
.bg-red { background: #dc3545; }   /* Hiato (Vermelho) */
.bg-purple { background: #6f42c1; } /* Em Breve (Roxo) */
.status-default { background: #444; } /* Padrão (Cinza) */

.user-rating-box {
    text-align: center;
    margin-top: 15px;
    background: rgba(0,0,0,0.6);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}
.rating-box-title {
    display: block;
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}
.user-rating-box .stars {
    color: #555;
    font-size: 1.8rem;
    margin-bottom: 5px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    gap: 2px;
}
.user-rating-box .stars i {
    transition: 0.2s;
}
.user-rating-box.has-voted .stars {
    cursor: default;
}
.rating-results {
    color: #ccc;
    font-size: 0.85rem;
}
.rating-results strong {
    color: #ffd700;
}

/* Coluna Direita (Info) */
.anime-title-hero {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Meta Badges */
.anime-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.meta-badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    color: #ccc;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(5px);
}


.rating-badge { background: var(--color-badge-star); color: #000; border: none; font-weight: 800; }

/* BADGES DE IDADE (NOVAS CORES SÓLIDAS) */
.meta-badge.age-badge-single {
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-weight: 800;
    padding: 6px 14px;
}
.age-badge-single.age-l, .age-badge-single.age-livre { background: color-mix(in srgb, #00C853 25%, transparent) !important; border-color: #00C853 !important; color: #00C853 !important; }
.age-badge-single.age-10 { background: color-mix(in srgb, #00B0FF 25%, transparent) !important; border-color: #00B0FF !important; color: #00B0FF !important; }
.age-badge-single.age-12 { background: color-mix(in srgb, #FFD600 25%, transparent) !important; border-color: #FFD600 !important; color: #FFD600 !important; }
.age-badge-single.age-14 { background: color-mix(in srgb, #FF6D00 25%, transparent) !important; border-color: #FF6D00 !important; color: #FF6D00 !important; }
.age-badge-single.age-16 { background: color-mix(in srgb, #D50000 25%, transparent) !important; border-color: #D50000 !important; color: #D50000 !important; }
.age-badge-single.age-18 { background-color: #111; border: 1px solid #444; }

/* Gêneros */
.anime-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.genre-pill {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    color: #ccc;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s;
    backdrop-filter: blur(4px);
    text-decoration: none;
    display: inline-block;
}
.genre-pill:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(255,255,255,0.05);
}

/* Sinopse */
.section-label {
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    border-left: 4px solid var(--color-primary);
    padding-left: 10px;
}

.synopsis-text {
    color: #ccc;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 30px;
}

.btn-action-cobalt {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-action-cobalt:hover {
    background: var(--color-primary);
    box-shadow: 0 0 20px color-mix(in srgb, var(--color-glow) 40%, transparent);
}

/* --- SEÇÃO EPISÓDIOS --- */
.episodes-section {
    margin-top: 60px;
    position: relative;
}

.section-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.cobalt-line {
    width: 6px;
    height: 35px;
    background: var(--color-primary);
    border-radius: 4px;
}

.section-header-left h2 {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Abas de Temporada */
.season-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
    overflow-x: auto;
}

.season-tab-btn {
    background: transparent;
    border: none;
    color: #666;
    font-size: 1rem;
    font-weight: 700;
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 6px;
}

.season-tab-btn:hover { color: #fff; }

.season-tab-btn.active {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 15px color-mix(in srgb, var(--color-glow) 30%, transparent);
}

/* Grid Episódios */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.episode-card {
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
}

.episode-card:hover {
    transform: translateY(-5px);
}

.ep-thumb-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.ep-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.episode-card:hover .ep-thumb-wrapper img {
    transform: scale(1.1);
    opacity: 0.6;
}

.ep-number-tag {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 2px 6px;
    font-size: 0.7rem;
    border-radius: 4px;
    font-weight: 700;
}

.ep-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #fff;
    opacity: 0;
    transition: 0.3s;
}

.episode-card:hover .ep-play-overlay {
    opacity: 1;
}

.ep-info {
    padding: 3px;
}

.ep-anime-name {
    display: block;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 4px;
    transition: 0.3s;
}
.episode-card:hover .ep-anime-name {
    color: var(--color-primary);
}

.ep-title {
    font-size: 0.75rem;
    color: #888;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ep-num-str {
    color: #fff;
    font-weight: 800;
}
.ep-desc-str {
    color: #888;
}

/* --- BADGES INTERNAS DO EPISÓDIO --- */
.ep-badges-container {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 5px;
    z-index: 2;
}

.ep-badge-quality,
.ep-badge-audio {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 5px 6px;
    border-radius: 4px;
    color: #fff;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.6);
    line-height: 1;
}

/* Cores específicas do Print */
.ep-badge-quality {
    background-color: var(--color-primary);
}

.ep-badge-audio {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ccc;
}

/* Responsividade Single */
@media (max-width: 768px) {
    .anime-header-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .poster-wrapper {
        max-width: 200px;
        margin: 0 auto;
    }
    .anime-title-hero {
        font-size: 2rem;
        text-align: center;
    }
    .anime-meta-row, .anime-genres {
        justify-content: center;
    }
    .section-label {
        text-align: center;
        border-left: none;
        border-bottom: 2px solid var(--color-primary);
        display: inline-block;
    }
    /* No mobile, o background pode ser menor */
    .anime-hero-background {
        height: 500px;
    }
}



/* ========================================= */
/* 21. PÁGINA PLAYER (EPISÓDIO)              */
/* ========================================= */

.player-page-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    padding-top: 100px;
    padding-bottom: 60px;
}

/* --- BREADCRUMB --- */
.player-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
}
.player-breadcrumb a { color: #aaa; transition: 0.3s; }
.player-breadcrumb a:hover { color: var(--color-primary); }
.player-breadcrumb .separator { font-size: 1.2rem; color: #444; }
.player-breadcrumb .active { color: #fff; font-weight: 600; }

/* --- VÍDEO STAGE --- */
.video-stage-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    position: relative;
    z-index: 10;
}

#main-video-frame {
    width: 100%;
    height: 100%;
}

.player-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
}
.player-error i { font-size: 3rem; margin-bottom: 10px; }

/* --- CONTROLES BAR --- */
.player-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: 0 0 12px 12px;
    margin-top: -5px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: none;
    flex-wrap: wrap;
    gap: 15px;
}

.control-right, .player-sources {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Botões Funcionais */
.btn-report {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.btn-report:hover { background: #dc3545; color: #fff; border-color: #dc3545; }

/* Botões de Fonte (Player) */
.players-label { color: #888; font-weight: 700; font-size: 0.8rem; margin-right: 5px; display: flex; align-items: center; gap: 5px; }

.btn-source {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
}
.btn-source:hover {
    background: rgba(255, 255, 255, 0.1);
}
.btn-source.active {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 15px color-mix(in srgb, var(--color-glow) 40%, transparent);
}
.btn-source.active .badge-dub,
.btn-source.active .badge-leg {
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
}

.badge-dub { background: #00C2FF; color: #000; padding: 1px 4px; border-radius: 3px; font-weight: 800; font-size: 0.6rem; }
.badge-leg { background: #6f42c1; color: #fff; padding: 1px 4px; border-radius: 3px; font-weight: 800; font-size: 0.6rem; }

/* Botões Navegação */
.btn-nav {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}
.btn-nav.prev { background: rgba(255, 255, 255, 0.05); color: #fff; border: 1px solid rgba(255, 255, 255, 0.1); }
.btn-nav.prev:hover { background: rgba(255, 255, 255, 0.1); }

.btn-nav.next { background: var(--color-primary); color: #fff; border: 1px solid var(--color-primary); }
.btn-nav.next:hover { background: #fff; color: var(--color-primary); border-color: #fff; }

.btn-nav.disabled { background: rgba(255, 255, 255, 0.02); color: #555; cursor: not-allowed; border: 1px solid rgba(255, 255, 255, 0.05); }

/* --- TÍTULO E INFO --- */
.episode-info-block {
    margin-top: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
    margin-bottom: 30px;
}
.ep-main-title { font-size: 1.5rem; color: #fff; margin-bottom: 5px; }
.ep-number { color: var(--color-primary); margin-right: 10px; }
.anime-parent-link { color: #888; }
.anime-parent-link a { color: #ccc; font-weight: 600; }
.anime-parent-link a:hover { color: var(--color-primary); }

/* --- SIDEBAR --- */
.player-sidebar {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: fit-content;
    max-height: 800px;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sidebar-header h3 { font-size: 1rem; color: #fff; margin: 0; }
.ep-count { background: rgba(255, 255, 255, 0.05); padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; color: #888; border: 1px solid rgba(255, 255, 255, 0.1); }

.sidebar-ep-list {
    overflow-y: auto;
    padding: 10px;
    max-height: 600px;
}

.sidebar-ep-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    transition: 0.3s;
    margin-bottom: 5px;
    text-decoration: none;
    border: 1px solid transparent;
}
.sidebar-ep-item:hover { background: rgba(255, 255, 255, 0.02); }
.sidebar-ep-item.current { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }

.sidebar-thumb {
    width: 80px;
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}
.sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.playing-indicator {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    background: rgba(0,0,0,0.4);
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.sidebar-info { display: flex; flex-direction: column; justify-content: center; }
.s-ep-num { font-size: 0.75rem; color: var(--color-primary); font-weight: 700; }
.s-ep-title { font-size: 0.85rem; color: #ccc; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Mobile */
@media (max-width: 900px) {
    .player-page-container { grid-template-columns: 1fr; }
    .player-sidebar { max-height: 400px; }
}



/* ========================================= */
/* 22. SISTEMA DE COMENTÁRIOS (FINAL)        */
/* ========================================= */

.comments-area {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.comments-title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 25px;
    border-left: 4px solid var(--color-primary);
    padding-left: 15px;
}

/* --- Lista de Comentários --- */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list li {
    margin-bottom: 20px;
}

/* O CARD DO COMENTÁRIO */
.comment-body {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative; 
    padding: 20px; 
    min-height: 90px;
    transition: 0.3s;
    display: flex;
    gap: 20px;
}

.comment-body:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

/* AVATAR */
.comment-body img.avatar {
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    width: 50px;
    height: 50px;
    object-fit: cover;
    flex-shrink: 0;
}

/* WRAPPER DO CONTEÚDO (Ao lado do avatar) */
.comment-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* INFO DO AUTOR (Nome e Data) */
.comment-meta {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* Nome do Autor */
.fn { 
    font-style: normal;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
}
.fn a { color: #fff; text-decoration: none; }

/* Data e Hora */
.comment-metadata {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}
.comment-metadata a { color: #666; text-decoration: none; }
.comment-metadata a:hover { color: var(--color-primary); }
.edit-link { color: #dc3545; margin-left: 5px; }

/* TEXTO DO COMENTÁRIO */
.comment-content p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

/* BOTÃO RESPONDER */
.reply {
    align-self: flex-end;
}

.comment-reply-link {
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    padding: 5px 15px;
    border-radius: 20px;
    transition: 0.3s;
    display: inline-block;
}

.comment-reply-link:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* Respostas Aninhadas */
.children {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
    margin-left: 40px;
}

/* --- FORMULÁRIO --- */
.custom-comment-form {
    margin-top: 40px;
    border-top: 1px solid #222;
    padding-top: 30px;
}

.comment-reply-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: block;
    font-weight: 700;
}

.comment-inputs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: inherit;
    outline: none;
    transition: 0.3s;
}

input:focus, textarea:focus {
    border-color: var(--color-primary);
}

textarea { resize: vertical; min-height: 100px; }

.btn-submit-comment {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}
.btn-submit-comment:hover {
    background: #fff;
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .comment-inputs-row { grid-template-columns: 1fr; }
    .children { margin-left: 15px; }
}

/* ========================================= */
/* AJUSTES RESPONSIVOS (MOBILE GLOBAL)       */
/* ========================================= */

@media (max-width: 900px) {
    
    /* 1. CONTAINER GERAL (Episódios e Filmes) */
    .player-page-container {
        display: flex;       /* Flex é mais seguro pra mobile que Grid */
        flex-direction: column;
        padding-left: 20px !important;  /* Força o respiro na esquerda */
        padding-right: 20px !important; /* Força o respiro na direita */
        width: 100%;
        box-sizing: border-box; /* O SEGREDO: Impede que o padding estoure a tela */
        gap: 30px;
    }

    /* 2. SIDEBAR (Só aparece em episódios) */
    .player-sidebar {
        width: 100%;
        max-height: 400px;
        margin-top: 10px;
    }

    /* 3. COMENTÁRIOS */
    .comment-body {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    .comment-body img.avatar {
        position: relative;
        top: 0; left: 0;
        margin-bottom: 5px;
        width: 40px; 
        height: 40px;
    }
    .comment-content-wrapper { width: 100%; padding: 0; }
    .children { margin-left: 15px; border-left: 1px solid #333; }

    /* 4. CONTROLES DO PLAYER */
    .player-controls-bar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    .control-left, .control-right, .player-sources {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .btn-nav { flex: 1; justify-content: center; }

    /* 5. INFOS DO FILME (Novo!) */
    .movie-meta-tags {
        gap: 10px;
        justify-content: flex-start;
    }
    
    .meta-tag {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    /* Título Responsivo */
    .ep-main-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    /* Breadcrumb quebra linha */
    .player-breadcrumb {
        white-space: normal;
        display: block; 
        line-height: 1.8;
    }
}


/* ========================================= */
/* 23. ESTILO DO PLAYER (PLYR V2)            */
/* ========================================= */

:root {
    --plyr-color-main: var(--color-primary);
    --plyr-video-control-color: #fff;
    --plyr-video-control-color-hover: #fff;
    --plyr-video-control-background-hover: var(--color-primary);
}

/* Arredondamento e Sombra */
.plyr {
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Botão Play Gigante (Aquele do meio) */
.plyr__control--overlaid {
    background: color-mix(in srgb, var(--color-primary) 80%, transparent); /* Azul Cobalto Transparente */
    color: #fff;
}
.plyr__control--overlaid:hover {
    background: var(--color-primary);
}

/* Cores da Barra de Progresso */
.plyr--full-ui input[type=range] {
    color: var(--color-primary);
}

/* Botões da Barra (Play, Voltar, Avançar) */
.plyr--video .plyr__control:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Ícones de Rewind/Forward um pouco menores para alinhar */
.plyr__controls .plyr__control svg {
    width: 18px;
    height: 18px;
}

/* No mobile, garante que o toque funcione bem */
.plyr--video.plyr--mobile .plyr__control--overlaid {
    opacity: 1;
    visibility: visible;
}



/* ========================================= */
/* 24. PÁGINA SINGLE FILME                   */
/* ========================================= */

/* Container de Info */
.movie-meta-tags {
    display: flex;
    gap: 15px;
    margin: 15px 0 25px;
    flex-wrap: wrap;
}

.meta-tag {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}
.meta-tag i { color: var(--color-primary); }

.meta-tag.quality {
    background: color-mix(in srgb, var(--color-primary) 20%, transparent);
    color: var(--color-primary);
    border-color: color-mix(in srgb, var(--color-primary) 50%, transparent);
    font-weight: 800;
    backdrop-filter: blur(10px);
}

/* Sinopse */
.movie-synopsis {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}
.movie-synopsis h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 10px;
    border-left: 3px solid var(--color-primary);
    padding-left: 10px;
}
.movie-synopsis p {
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Gêneros */
.movie-genres-list {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.movie-genres-list span { color: #888; font-weight: 600; }

.genre-tag {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}
.genre-tag:hover {
    background: color-mix(in srgb, var(--color-primary) 20%, transparent);
    color: var(--color-primary);
    border-color: color-mix(in srgb, var(--color-primary) 50%, transparent);
}



/* ========================================= */
/* 25. PÁGINAS DE ARQUIVO (BUSCA/GÊNERO)     */
/* ========================================= */

.archive-container {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.archive-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #222;
    padding-bottom: 20px;
}

.archive-title {
    font-size: 2rem;
    color: #fff;
}

.archive-title .prefix {
    color: var(--color-primary);
    font-weight: 300;
    margin-right: 10px;
}

.search-count { color: #666; font-size: 0.9rem; margin-top: 5px; }

/* GRID DE CARDS */
.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.anime-card {
    transition: transform 0.3s ease;
}
.anime-card:hover { transform: translateY(-5px); }

.card-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 2/3; /* Formato Poster */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.anime-card:hover .card-image img {
    transform: scale(1.05);
    opacity: 0.6;
}

/* Overlay Play */
.card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}
.card-overlay i {
    font-size: 3rem;
    color: #fff;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}
.anime-card:hover .card-overlay { opacity: 1; }

/* Badges */
.card-rating {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(0,0,0,0.8);
    color: #FFD700;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}
.badge-movie {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--color-primary);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Info Texto */
.card-info { padding-top: 12px; }

.card-title {
    font-size: 1rem;
    color: #fff;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.anime-card:hover .card-title { color: var(--color-primary); }

.card-meta { font-size: 0.8rem; color: #666; }
.card-meta .dot { margin: 0 5px; color: #333; }

/* Paginação */
.pagination {
    margin-top: 50px;
    text-align: center;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    background: #111;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    margin: 0 3px;
    border: 1px solid #222;
    transition: 0.3s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* Sem Resultados */
.no-results {
    text-align: center;
    padding: 100px 0;
    color: #444;
}
.no-results i { font-size: 4rem; display: block; margin-bottom: 20px; }
.no-results h2 { color: #fff; margin-bottom: 10px; }



/* Busca Modal */
.search-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    backdrop-filter: blur(10px);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-wrap {
    width: 100%;
    max-width: 700px;
    padding: 0 20px;
    text-align: center;
}

.search-form {
    position: relative;
    border-bottom: 2px solid #333;
}
.search-form:focus-within { border-color: var(--color-primary); }

.search-field {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 15px 50px 15px 0;
    outline: none;
    font-weight: 700;
}

.search-submit {
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 2rem;
    cursor: pointer;
}

.close-search {
    position: absolute;
    top: 30px; right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.3s;
}
.close-search:hover { color: #dc3545; transform: rotate(90deg); }
.search-note { color: #666; margin-top: 15px; font-size: 0.9rem; }



/* ========================================= */
/* 26. MODAL DE REPORT (ANI-MODAL)           */
/* ========================================= */

.aniplay-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.aniplay-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: #111;
    width: 90%;
    max-width: 450px;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #333;
    z-index: 2;
    transform: scale(0.9);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.aniplay-modal.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px; right: 15px;
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.2s;
}
.close-modal:hover { color: #fff; }

.modal-header { text-align: center; margin-bottom: 25px; }
.icon-alert { font-size: 3rem; color: #ffbc00; margin-bottom: 10px; display: block; }
.modal-header h3 { font-size: 1.5rem; color: #fff; margin: 0; }
.modal-header p { color: #888; font-size: 0.9rem; margin-top: 5px; }

/* Grid de Opções */
.report-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.radio-card { cursor: pointer; position: relative; }
.radio-card input { position: absolute; opacity: 0; }

.card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid transparent;
    color: #aaa;
    transition: 0.3s;
    height: 100%;
}
.card-inner i { font-size: 1.5rem; margin-bottom: 5px; }
.card-inner span { font-size: 0.8rem; text-align: center; }

/* Selecionado */
.radio-card input:checked + .card-inner {
    border-color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
    color: #fff;
}

/* Textarea */
.report-details textarea {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 12px;
    border-radius: 8px;
    color: #fff;
    resize: none;
    height: 80px;
    margin-bottom: 20px;
    font-family: inherit;
}
.report-details textarea:focus { border-color: var(--color-primary); outline: none; }

/* Botão Enviar */
.btn-send-report {
    width: 100%;
    background: var(--color-primary);
    color: #fff !important;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
}
.btn-send-report:hover { background: #fff; color: var(--color-primary); }

/* 🕵️‍♀️ Fix Caitlyn: Força o texto branco no botão de reporte */
#report-modal .btn-send-report {
    color: #ffffff !important;
}

#report-modal .btn-send-report .btn-text {
    color: #ffffff !important;
}

/* Garante que o Hover continue funcionando perfeitamente */
#report-modal .btn-send-report:hover {
    background-color: #ffffff !important;
    color: var(--color-primary) !important;
}

#report-modal .btn-send-report:hover .btn-text {
    color: var(--color-primary) !important;
}

/* 🕵️‍♀️ Fix Caitlyn: Deixa a caixa de comentário escura e o texto visível */
.comments-section textarea#comment {
    background-color: #050508 !important; /* Fundo escuro igual ao console */
    color: #eeeeee !important;           /* Texto claro para leitura */
    border: 1px solid #222 !important;   /* Borda discreta */
    padding: 15px !important;            /* Respiro interno */
}

/* Cor do texto de exemplo (Placeholder) */
.comments-section textarea#comment::placeholder {
    color: #666 !important;
}

/* Efeito quando o usuário clica para digitar */
.comments-section textarea#comment:focus {
    border-color: var(--color-primary) !important;
    outline: none !important;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1) !important;
}

/* Fix para a seleção de texto (quando você seleciona com o mouse) */
.comments-section textarea#comment::selection {
    background-color: var(--color-primary) !important;
    color: #000 !important;
}

/* Tela de Sucesso */
.report-success { text-align: center; padding: 20px 0; }
.report-success i { font-size: 4rem; color: #2ecc71; margin-bottom: 10px; display: block; }
.report-success h3 { color: #fff; font-size: 1.5rem; }
.report-success p { color: #ccc; }



/* ========================================= */
/* 27. PÁGINA DE LOGIN (AUTH)                */
/* ========================================= */

.login-page-wrapper {
    display: flex;
    min-height: 100vh;
    background: #050505;
}

/* Lado da Arte (Esquerda) */
.login-art-side {
    flex: 1;
    background: url('https://i.imgur.com/SeuLinkDaCaitlyn.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 60px;
}
/* Overlay escuro na arte */
.login-art-side::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.art-content {
    position: relative;
    z-index: 2;
    color: #fff;
}
.art-content h2 { font-size: 3rem; line-height: 1; margin-bottom: 10px; }
.art-content h2 span { color: var(--color-primary); }

/* Lado do Formulário (Direita) */
.login-form-side {
    flex: 0 0 500px; /* Largura fixa */
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    border-left: 1px solid #222;
}

/* Boxes (Login/Register/Lost) */
.auth-box {
    width: 100%;
    max-width: 350px;
    display: none; /* Escondido por padrão */
    animation: fadeIn 0.5s ease;
}
.auth-box.active { display: block; }

.auth-box h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 30px;
}

/* Inputs */
.input-group {
    position: relative;
    margin-bottom: 20px;
}
.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}
.input-group input {
    width: 100%;
    background: #151515;
    border: 1px solid #333;
    padding: 15px 15px 15px 45px; /* Espaço pro ícone */
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: 0.3s;
}
.input-group input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px color-mix(in srgb, var(--color-glow) 30%, transparent);
    outline: none;
}

/* Ações e Botões */
.form-actions {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 25px;
}
.form-actions a { color: #fff; text-decoration: none; }

.btn-auth {
    width: 100%;
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
}
.btn-auth:hover {
    background: #fff;
    color: var(--color-primary);
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 0.9rem;
}
.auth-footer a {
    color: var(--color-primary);
    font-weight: bold;
    text-decoration: none;
}

/* Mensagens de Erro/Sucesso */
.auth-message {
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: center;
}
.auth-message.error { color: #e74c3c; }
.auth-message.success { color: #2ecc71; }

/* Responsivo Mobile */
@media (max-width: 900px) {
    .login-page-wrapper { flex-direction: column; }
    .login-art-side { display: none; } /* Esconde arte no celular pra focar no login */
    .login-form-side { flex: 1; border: none; padding: 20px; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}



/* ========================================= */
/* 28. DASHBOARD DO USUÁRIO (MINHA CONTA)    */
/* ========================================= */

.dashboard-wrapper {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

/* 1. Header do Dashboard */
.dash-header {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.dash-user-welcome {
    display: flex;
    align-items: center;
    gap: 20px;
}
.dash-avatar img {
    border-radius: 50%;
    border: 3px solid var(--color-primary);
    box-shadow: 0 0 15px color-mix(in srgb, var(--color-glow) 40%, transparent);
}
.dash-welcome-text h2 { margin: 0; font-size: 2rem; color: #fff; }
.dash-welcome-text h2 span { color: var(--color-primary); }
.dash-welcome-text p { margin: 5px 0 0; color: #888; }

.btn-logout {
    border: 1px solid #333;
    padding: 10px 20px;
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-logout:hover {
    background: #d63031; /* Vermelho para sair */
    border-color: #d63031;
}

/* 2. Grid (Sidebar + Content) */
.dash-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Sidebar */
.dash-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
}

.dash-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.dash-nav a {
    padding: 15px 20px;
    border-radius: 8px;
    color: #aaa;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
    font-weight: 500;
}
.dash-nav a i { font-size: 1.2rem; }
.dash-nav a:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}
/* Item Ativo (Azul Cobalto) */
.dash-nav a.active {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 5px 15px color-mix(in srgb, var(--color-glow) 30%, transparent);
}
.back-home { margin-top: 20px; border-top: 1px solid #222; padding-top: 20px; }

/* 3. Conteúdo (Formulários) */
.dash-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #222;
}

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-weight: bold;
    color: #ccc;
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dash-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: 0.3s;
}
.dash-input:focus {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}
.dash-input.disabled {
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.03);
    cursor: not-allowed;
}

/* Wrapper da Senha (Para posicionar o ícone) */
.password-wrapper {
    position: relative;
    width: 100%;
}
.password-wrapper input {
    width: 100%;
    padding-right: 45px; /* Espaço pro ícone não ficar em cima do texto */
}

/* O Ícone do Olho */
.toggle-pass {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2;
}
.toggle-pass:hover {
    color: var(--color-primary);
}

/* Alertas */
.dash-alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}
.dash-alert.success { background: rgba(46, 204, 113, 0.2); color: #2ecc71; border: 1px solid #2ecc71; }
.dash-alert.error { background: color-mix(in srgb, var(--color-favorite) 20%, transparent); color: #e74c3c; border: 1px solid #e74c3c; }

/* Grid para as senhas (Lado a lado) */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 700px) { .form-row-2 { grid-template-columns: 1fr; } }

.avatar-edit-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Área de Upload */
.avatar-upload-area {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Ocultar o input feio padrão */
input[type="file"]#profile_pic {
    display: none;
}

/* Botão Bonito */
.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-upload:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}
.upload-btn-wrapper small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.8rem;
}

.avatar-preview img {
    border-radius: 50%;
    border: 2px solid #333;
}

.btn-small-outline {
    border: 1px solid #444;
    padding: 8px 15px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-save-profile {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}
.btn-save-profile:hover { background: #fff; color: var(--color-primary); }

/* Estados Vazios */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}
.empty-state i { font-size: 3rem; margin-bottom: 15px; display: block; opacity: 0.5; }

/* Responsivo */
@media (max-width: 900px) {
    .dash-grid { grid-template-columns: 1fr; }
    .dash-header { flex-direction: column; text-align: center; gap: 20px; }
    .dash-user-welcome { flex-direction: column; }
}

/* ========================================= */
/* 29. CORREÇÕES RESPONSIVAS (MOBILE) 📱      */
/* ========================================= */

@media (max-width: 768px) {
    /* 1. Ajusta o container principal para não vazar */
    .dashboard-wrapper {
        margin: 20px auto;
        padding: 0 15px; /* Reduz padding lateral para caber na tela */
        width: 100%;
        box-sizing: border-box; /* Garante que padding não aumente a largura */
        overflow-x: hidden; /* Corta qualquer excesso invisível */
    }

    /* 2. Empilha o Menu e o Conteúdo */
    .dash-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .avatar-upload-area {
        flex-direction: column; /* Coloca um embaixo do outro */
        align-items: stretch;   /* Faz o botão esticar na largura total */
        gap: 15px;
        padding: 20px;          /* Um pouco mais de respiro */
    }

    /* Centraliza a bolinha do preview na tela */
    .avatar-preview {
        display: flex;
        justify-content: center;
        margin-bottom: 5px;
    }

    /* Deixa o botão de upload bonitão e largo no celular */
    .upload-btn-wrapper {
        width: 100%;
        text-align: center;
    }
    .btn-upload {
        width: 100%;            /* Ocupa toda a largura */
        justify-content: center; /* Centraliza o texto e ícone dentro */
        padding: 12px 15px;      /* Botão mais alto pra facilitar o toque */
    }

    /* 3. Reduz o padding dos cartões (estava muito gordo) */
    .dash-card, .dash-header {
        padding: 20px; /* De 30px para 20px pra ganhar espaço */
    }

    /* 4. Garante que os Inputs respeitem a largura da tela */
    .dash-input, 
    .password-wrapper input,
    .form-group input {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box; /* CRUCIAL: Impede que o input vaze pra direita */
    }

    /* 5. Ajustes visuais no Header do Dashboard */
    .dash-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .dash-user-welcome {
        flex-direction: column;
        text-align: center;
    }
    .dash-avatar {
        margin-bottom: 10px;
    }
    
    /* 6. Menu Lateral mais compacto */
    .dash-nav a {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}



/* ========================================= */
/* 30. GRADE DE FAVORITOS (DASHBOARD)        */
/* ========================================= */

.animes-grid-dash {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* Responsivo automático */
    gap: 20px;
}

/* ==================================== */
/* NOVO LAYOUT DO CARD DE FAVORITOS     */
/* ==================================== */
.fav-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fav-card {
    background: #0a0a0a;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 2 / 2.9;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: 0.3s;
}
.fav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.fav-cover {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}
.fav-cover::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; top: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0) 100%);
    transition: 0.3s;
    pointer-events: none;
}
.fav-card:hover .fav-cover::after {
    background: rgba(0,0,0,0.6);
}
.fav-link-layer {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 5;
}
.fav-top-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 10;
}
.fav-badge-genre {
    background: var(--color-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}
.fav-badge-rating {
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    width: max-content;
}
.fav-badge-rating i { color: #ffd700; }
.fav-card .btn-remove-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.fav-card .btn-remove-fav i {
    color: #fff !important;
}
.fav-card .btn-remove-fav:hover {
    transform: scale(1.1);
    background: #ff1a4a;
}
.fav-info {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}
.fav-info h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    transition: 0.3s;
}
.fav-card:hover .fav-info h3 {
    color: var(--color-primary);
}
.fav-meta-hover {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 0;
}
.fav-card:hover .fav-meta-hover {
    max-height: 60px;
    opacity: 1;
    margin-top: 8px;
}
.fav-meta-season {
    font-size: 0.8rem;
    color: #ccc;
    font-weight: 600;
}
.fav-meta-tags {
    display: flex;
    gap: 5px;
}
.fav-tag-audio, .fav-tag-qualidade {
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
}
.fav-tag-qualidade {
    background: var(--color-primary);
}
.fav-tag-audio.audio-dub,
.fav-tag-audio.audio-leg,
.fav-tag-audio.audio-dubleg {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
}

/* Barra de Progresso do Dashboard */
.anime-progress-container {
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 2px;
}
.anime-progress-bar {
    height: 100%;
    background: var(--color-primary);
    border-radius: 4px;
    transition: width 0.5s ease;
    box-shadow: 0 0 8px var(--color-glow);
}
.anime-progress-text {
    font-size: 11px;
    color: #888;
    text-align: right;
    width: 100%;
    display: block;
}

/* Botãozinho de Remover no Card */
.btn-remove-fav {
    background: transparent;
    border: none;
    color: var(--color-favorite); /* Vermelho */
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.2s;
}
.btn-remove-fav:hover { transform: scale(1.2); }

/* Coração Ativo Vermelho Global */
.btn-add-fav.active i {
    color: var(--color-favorite); /* Coração Vermelho quando ativo */
}



/* ========================================= */
/* 31. BOTÃO DE FAVORITOS (ESTADOS)          */
/* ========================================= */

/* Quando o botão está ATIVO (Salvo) */
.btn-action-cobalt.active {
    background: color-mix(in srgb, var(--color-favorite) 15%, transparent); /* Fundo avermelhado leve */
    border-color: var(--color-favorite);
    color: var(--color-favorite); /* Texto Vermelho */
}

.btn-action-cobalt.active i {
    color: var(--color-favorite); /* Ícone Vermelho */
}

/* Efeito de Loading (Feedback) */
.btn-action-cobalt.loading {
    opacity: 0.7;
    pointer-events: none; /* Bloqueia cliques repetidos */
    cursor: wait;
}

/* Animaçãozinha no clique (Pulo do Coração) */
@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
.btn-action-cobalt.active i {
    animation: heartBeat 0.3s ease-in-out;
}

/* Botão Favoritos no Slider (Hero) */
.btn.btn-secondary.active {
    background: color-mix(in srgb, var(--color-favorite) 20%, transparent);
    border-color: var(--color-favorite);
    color: var(--color-favorite);
}
.btn.btn-secondary.active i {
    color: #e74c3c;
}

/* ========================================= */
/* 32. BOTÃO FAVORITO CIRCULAR (ARCHIVE)     */
/* ========================================= */

.fav-btn-circle {
    /* (Seus estilos atuais de tamanho/borda devem estar aqui) */
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efeito elástico */
}

/* Quando está salvo (Vermelho) */
.fav-btn-circle.active {
    color: #fff;         /* Ícone Branco */
    background: var(--color-favorite); border-color: transparent;
    box-shadow: 0 5px 15px color-mix(in srgb, var(--color-favorite) 40%, transparent); /* Brilho vermelho */
}

.fav-btn-circle.active i {
    color: #fff !important;
}

/* Hover no estado ativo */
.fav-btn-circle.active:hover {
    background: var(--color-favorite); /* Vermelho mais escuro */
    transform: scale(1.1);
}

/* Loading no círculo */
.fav-btn-circle.loading {
    animation: spin 1s linear infinite;
    opacity: 0.8;
    pointer-events: none;
}
@keyframes spin { 100% { transform: rotate(360deg); } }



/* ========================================= */
/* 33. NOTIFICAÇÕES (DASHBOARD) 🔔           */
/* ========================================= */

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notif-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 20px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

/* Estado: NÃO LIDA (Destaque) */
.notif-card.unread {
    background: rgba(46, 204, 113, 0.05); /* Leve verde ou azul */
    border-left: 4px solid var(--color-primary); /* Borda lateral azul */
}
.notif-card.unread h4 { color: #fff; font-weight: 700; }

/* Estado: LIDA (Mais apagado) */
.notif-card.read {
    opacity: 0.7;
}

/* Ícone Lateral */
.notif-icon {
    width: 50px;
    height: 50px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.notif-icon i { font-size: 1.5rem; color: var(--color-primary); }
.notif-card.unread .notif-icon { background: var(--color-primary); }
.notif-card.unread .notif-icon i { color: #fff; }

/* Conteúdo */
.notif-content { flex: 1; }
.notif-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}
.notif-header h4 { margin: 0; font-size: 1rem; color: #ccc; }
.notif-time { font-size: 0.8rem; color: #666; }
.notif-content p { margin: 0 0 15px; color: #888; font-size: 0.95rem; line-height: 1.5; }

/* Ações */
.notif-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #222;
    padding-top: 10px;
}
.btn-text {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}
.btn-action-icon {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: 0.2s;
    margin-left: auto; /* Empurra pra direita se for o último */
}
.btn-action-icon:hover { color: #fff; transform: scale(1.1); }
.btn-mark-read:hover { color: #2ecc71; }
.btn-delete-notif:hover { color: #e74c3c; }

/* Mobile */
@media (max-width: 600px) {
    .notif-card { flex-direction: column; gap: 10px; }
    .notif-icon { display: none; } /* Esconde ícone grande pra ganhar espaço */
}



/* Lista de Rastreio de Pedidos */
.request-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: 0.3s;
    margin-bottom: 5px;
}
.request-item:hover {
    border-color: #333;
    transform: translateY(-2px);
}

.req-main-info { flex: 1; }

.req-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}
.req-header h5 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
}

.req-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.req-status.status-pending {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.req-status.status-done {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.req-status.status-trash {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.req-desc {
    margin: 0 0 10px;
    font-size: 0.9rem;
    color: #888;
}

.req-date {
    font-size: 0.8rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Botão "Assistir" quando o pedido é atendido */
.btn-watch-req {
    background: var(--color-primary);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}
.btn-watch-req:hover {
    background: #fff;
    color: #000;
}

/* Responsivo */
@media (max-width: 600px) {
    .request-item { flex-direction: column; align-items: flex-start; }
    .req-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .req-action { width: 100%; }
    .btn-watch-req { width: 100%; justify-content: center; }
}


/* ========================================= */
/* 35. HEADER NOTIFICATIONS (SININHO) 🔔     */
/* ========================================= */

.header-notifications {
    position: relative;
    display: flex;
    align-items: center;
}

/* Garante que o botão do sino mantenha o estilo do seu tema */
.notif-bell-btn {
    position: relative;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.notif-bell-btn:hover {
    background: rgba(255,255,255,0.1); 
    color: var(--color-primary);
}

/* O Pontinho Vermelho Inteligente (Igual ao seu original, mas com texto) */
.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #ff3b3b;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 10px; /* Pílula se o número for grande */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-surface); /* Recorte charmoso */
    padding: 0 4px;
    line-height: 1;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* O Dropdown (A Caixinha) */
.notif-dropdown {
    position: absolute;
    top: calc(100% + 15px); /* Afasta do botão pra baixo */
    right: -5px; /* Alinha perfeitamente com a borda direita */
    width: 320px;
    background-color: var(--color-surface); /* Usa o fundo elegante do seu tema */
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 9999;
    text-align: left; /* Tira o espremido centralizado */
    cursor: default;
}

.notif-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Setinha charmosa apontando pro sino */
.notif-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 15px;
    width: 10px;
    height: 10px;
    background-color: var(--color-surface);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-left: 1px solid rgba(255,255,255,0.08);
    transform: rotate(45deg);
}

.notif-dropdown-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-weight: 800;
    color: #fff;
    font-size: 0.95rem;
}

.notif-dropdown-content {
    max-height: 350px;
    overflow-y: auto;
}

/* Scrollbar Bonita pro Dropdown */
.notif-dropdown-content::-webkit-scrollbar { width: 4px; }
.notif-dropdown-content::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 4px; }

/* Itens da Lista */
.header-notif-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    text-decoration: none;
    transition: background 0.2s;
}
.header-notif-item:hover { background: rgba(255,255,255,0.03); }
.header-notif-item:last-child { border-bottom: none; }

/* Item Não Lido (Destaque Azul) */
.header-notif-item.unread {
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
    border-left: 3px solid var(--color-primary);
}

.h-notif-icon {
    margin-right: 15px;
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-top: 2px;
}

.h-notif-info { 
    display: flex; 
    flex-direction: column; 
    flex: 1;
}

.h-notif-title { 
    color: #eee; 
    font-size: 0.85rem; 
    line-height: 1.4; 
    font-weight: 600;
}

.h-notif-time { 
    color: var(--color-text-muted); 
    font-size: 0.7rem; 
    margin-top: 5px; 
    font-weight: 500;
}

/* O Loader "Carregando" Consertado */
.header-notif-loading {
    padding: 30px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.header-notif-loading i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.header-notif-empty {
    padding: 30px 20px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.notif-dropdown-footer {
    padding: 12px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.2);
    border-radius: 0 0 12px 12px;
}
.notif-dropdown-footer a {
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
}
.notif-dropdown-footer a:hover { color: #fff; }



/* ========================================= */
/* 36. HEADER PROFILE (DROPDOWN) 👤          */
/* ========================================= */

.header-profile {
    position: relative;
    display: flex;
    align-items: center;
}

.header-profile .profile-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 220px;
    background-color: var(--color-surface);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 9999;
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Setinha Charmosa */
.profile-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 12px;
    width: 10px;
    height: 10px;
    background-color: var(--color-surface);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-left: 1px solid rgba(255,255,255,0.08);
    transform: rotate(45deg);
}

.profile-dropdown-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.profile-dropdown-header .user-name {
    font-weight: 800;
    color: #fff;
    font-size: 1rem;
}

.profile-dropdown-content {
    padding: 10px 0;
    display: flex;
    flex-direction: column;
}

.profile-dropdown-content a {
    padding: 12px 20px;
    color: #ccc;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: 0.2s;
}

.profile-dropdown-content a i {
    font-size: 1.1rem;
    color: var(--color-primary);
}

.profile-dropdown-content a:hover {
    background: rgba(255,255,255,0.03);
    color: #fff;
}

/* Sair (Vermelho) */
.profile-dropdown-content a.logout-link i { color: #e74c3c; }
.profile-dropdown-content a.logout-link:hover { color: #e74c3c; }



/* ========================================= */
/* 37. BOTÃO PULAR ABERTURA (PLAYER) ⏭️       */
/* ========================================= */

.video-stage-wrapper {
    position: relative; /* Garante que o botão flutue apenas dentro do vídeo */
}

.btn-skip-op {
    position: absolute;
    bottom: 80px; /* Fica logo acima da barra de controle do Plyr */
    right: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--font-text);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 50;
    
    /* Escondido por padrão com animação */
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-skip-op:hover {
    background: #fff;
    color: var(--color-primary); /* Azul Cobalto do Tema */
    border-color: #fff;
    transform: scale(1.05) translateX(0);
}

.btn-skip-op i {
    font-size: 1.2rem;
}

/* Classe ativada pelo JS quando chega a hora da abertura */
.btn-skip-op.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.admin-bar-fix-padding {
    padding-top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar-fix-padding {
        padding-top: 46px;
    }
}

.anilist-grid .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    width: 100%;
}

/* Overlay escuro nos cards ao passar o mouse */
.card-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}
.anime-card-vertical:hover .card-cover::after,
.anime-card-archive:hover .card-cover::after {
    opacity: 1;
}

/* Garante que o conteúdo do card (badges, texto, play) fique acima do overlay */
.card-cover > * {
    z-index: 2;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .btn-skip-op {
        bottom: 60px;
        right: 15px;
        padding: 8px 15px;
        font-size: 0.85rem;
    }
} /* Close @media (max-width: 768px) */

/* Fix for all card favorite buttons */
.fav-btn.active, .fav-btn-circle.active {
    color: #fff !important;
    background: var(--color-favorite) !important; 
    border-color: transparent !important;
    box-shadow: 0 5px 15px color-mix(in srgb, var(--color-favorite) 40%, transparent) !important;
}
.fav-btn.active i, .fav-btn-circle.active i {
    color: #fff !important;
}
.fav-btn:hover, .fav-btn-circle:hover {
    background: #fff !important;
    border-color: transparent !important;
    color: var(--color-favorite) !important;
}
.fav-btn:hover i, .fav-btn-circle:hover i {
    color: var(--color-favorite) !important;
}
.fav-btn.active:hover, .fav-btn-circle.active:hover {
    background: var(--color-favorite) !important;
    color: #fff !important;
    transform: scale(1.1);
}
.fav-btn.active:hover i, .fav-btn-circle.active:hover i {
    color: #fff !important;
}

/* Single Meta Badges overrides for glassmorph */
.meta-badge.audio-dub {
    background: color-mix(in srgb, var(--color-tag-dub) 25%, transparent) !important;
    border-color: var(--color-tag-dub) !important;
    color: var(--color-tag-dub) !important;
}
.meta-badge.audio-dubleg {
    background: color-mix(in srgb, var(--color-tag-dubleg) 25%, transparent) !important;
    border-color: var(--color-tag-dubleg) !important;
    color: var(--color-tag-dubleg) !important;
}
.meta-badge.audio-leg {
    background: color-mix(in srgb, var(--color-tag-leg) 25%, transparent) !important;
    border-color: var(--color-tag-leg) !important;
    color: var(--color-tag-leg) !important;
}
.meta-badge.rating-badge {
    background: color-mix(in srgb, #ffd700 20%, transparent) !important;
    border: 1px solid #ffd700 !important;
    color: #ffd700 !important;
}

/* ==========================================
   HISTÓRICO DE EXIBIÇÃO (AJAX)
   ========================================== */

.hist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.hist-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.hist-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hist-cover:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.5);
}

.hist-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.hist-cover:hover .hist-overlay {
    opacity: 1;
}

.hist-play-btn {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hist-cover:hover .hist-play-btn {
    transform: scale(1);
}

.hist-badge-visto {
    position: absolute;
    top: 10px; left: 10px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 3;
}

.hist-badge-ep {
    position: absolute;
    bottom: 10px; right: 10px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    border-left: 3px solid var(--color-primary);
    z-index: 3;
}

.hist-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hist-info h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hist-info h4 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.hist-info h4 a:hover {
    color: var(--color-primary);
}

.hist-info span {
    font-size: 0.8rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
}

/* --- BANNER LOGIN COMENTÁRIOS --- */
.must-log-in-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
}
.must-log-in-box h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.must-log-in-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.btn-login-pink {
    background: var(--color-primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.btn-login-pink:hover { filter: brightness(1.2); color: #fff; }
.ou-text { color: #666; font-size: 0.9rem; }
.btn-register-outline {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.btn-register-outline:hover { background: #fff; color: #000; }
}


/* ==================================================
   15. GAMIFICATION & REWARDS
   ================================================== */

/* --- Toast Notifications --- */
.gamify-toast {
    position: fixed;
    bottom: -100px;
    right: 20px;
    background: rgba(18, 18, 26, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s;
    opacity: 0;
}
.gamify-toast.show {
    bottom: 30px;
    opacity: 1;
}
.gamify-toast .toast-icon {
    background: var(--color-primary);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.gamify-toast.level-up-toast .toast-icon {
    background: #f1c40f;
}
.gamify-toast.frame-toast .toast-icon {
    background: #9b59b6;
}
.gamify-toast .toast-content h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #fff;
    font-family: 'Unbounded', sans-serif;
}
.gamify-toast .toast-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #aaa;
}

/* --- Avatar Frames --- */
.avatar-frame-wrapper {
    position: relative;
    display: inline-block;
    padding: 5px; /* Spacing for the frame */
    align-self: flex-start;
    flex-shrink: 0;
}
.avatar-frame-wrapper img {
    display: block;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}
.avatar-frame-wrapper img.avatar {
    border: none !important;
}

/* Bronze */
.frame-bronze {
    background: linear-gradient(135deg, #cd7f32, #8c5a1c);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}
/* Silver */
.frame-silver {
    background: linear-gradient(135deg, #e0e0e0, #9e9e9e);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(224, 224, 224, 0.5);
}
/* Gold */
.frame-gold {
    background: linear-gradient(135deg, #ffd700, #b8860b);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}
/* Diamond */
.frame-diamond {
    background: linear-gradient(135deg, #00ffff, #0000ff);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
    animation: diamond-pulse 2s infinite alternate;
}
/* Neon */
.frame-neon {
    background: #111;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, inset 0 0 10px #ff00ff;
    border: 2px solid #ff00ff;
}
/* Fire */
.frame-fire {
    background: linear-gradient(to top, #ff0000, #ff7f00, #ffff00);
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.8);
    animation: fire-flicker 0.1s infinite alternate;
}

@keyframes diamond-pulse {
    from { box-shadow: 0 0 10px rgba(0, 255, 255, 0.4); }
    to { box-shadow: 0 0 25px rgba(0, 255, 255, 0.8); }
}
@keyframes fire-flicker {
    0% { box-shadow: 0 0 20px rgba(255, 69, 0, 0.8), inset 0 0 10px rgba(255, 0, 0, 0.5); }
    100% { box-shadow: 0 0 30px rgba(255, 0, 0, 1), inset 0 0 20px rgba(255, 69, 0, 0.8); }
}

/* --- Dashboard Recompensas --- */
.level-showcase {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(255,255,255,0.02);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}
.level-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 20px rgba(var(--color-primary-rgb), 0.5);
}
.level-circle .lvl-num {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Unbounded', sans-serif;
    line-height: 1;
}
.level-circle .lvl-lbl {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.xp-bar-container {
    flex: 1;
}
.xp-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #aaa;
    font-size: 0.95rem;
}
.xp-info strong {
    color: #fff;
    font-size: 1.1rem;
}
.xp-bar {
    width: 100%;
    height: 12px;
    background: #222;
    border-radius: 10px;
    overflow: hidden;
}
.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), #00e5ff);
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

.frames-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}
.frame-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.frame-item.active {
    border-color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.1);
}
.frame-item.locked {
    opacity: 0.6;
}
.frame-item.locked:hover {
    transform: none;
    box-shadow: none;
}
.frame-preview {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.frame-preview .lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    border-radius: 8px;
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    z-index: 5;
}
.avatar-frame-wrapper ~ .lock-overlay {
    border-radius: 50%;
}
.frame-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}
.btn-equip {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
    width: 100%;
    margin-top: auto;
}
.frame-item:not(.locked) .btn-equip:hover {
    background: var(--color-primary);
    color: #fff;
}
.frame-item.active .btn-equip {
    background: var(--color-primary);
    color: #fff;
    cursor: default;
}
.frame-item.locked .btn-equip {
    display: none;
}

/* --- Header Level Ring --- */
.header-level-ring {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    margin-right: -10px;
}
.header-level-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(var(--color-primary) var(--progress), rgba(255,255,255,0.1) 0deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
    z-index: 1;
}
.header-level-ring span {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    font-family: 'Unbounded', sans-serif;
}

/* ==================================================
   16. MEGA GAMIFICATION (CORES E RANKING)
   ================================================== */

/* --- Cores de Nick --- */
.nick-color-red {
    color: #e74c3c !important;
    text-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
}
.nick-color-gold {
    color: #f1c40f !important;
    text-shadow: 0 0 5px rgba(241, 196, 15, 0.5);
}
.nick-color-neon {
    color: #00ffff !important;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.8), 0 0 15px #ff00ff;
}

/* --- Título do Usuário nos Comentários --- */
.comment-user-title {
    font-size: 0.65rem;
    color: #fff;
    font-weight: 700;
    margin-left: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    top: -2px;
}

/* --- Ranking Global --- */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.ranking-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: 0.3s;
}
.ranking-item:hover {
    background: rgba(255,255,255,0.04);
}
.ranking-item.top-3 {
    border-color: rgba(241, 196, 15, 0.3);
    background: linear-gradient(90deg, rgba(241,196,15,0.05) 0%, rgba(0,0,0,0) 100%);
}
.ranking-pos {
    font-size: 1.5rem;
    font-weight: 900;
    color: #555;
    width: 40px;
    text-align: center;
}
.ranking-item.top-3 .ranking-pos {
    color: #f1c40f;
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.4);
}
.ranking-avatar img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.1);
}
.ranking-item.top-3 .ranking-avatar img {
    border-color: #f1c40f;
}
.ranking-info {
    flex-grow: 1;
}
.ranking-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}
.ranking-stats {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #aaa;
}

/* ==================================================
   17. COMMENT BACKGROUNDS & BADGES
   ================================================== */
.comment-body.cbg-glass {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
}

.comment-body.cbg-darkred {
    background: linear-gradient(135deg, rgba(80,0,0,0.8) 0%, rgba(20,0,0,0.9) 100%) !important;
    border: 1px solid rgba(255, 0, 0, 0.2) !important;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.1) !important;
}

.badge-item:hover {
    background: rgba(255,255,255,0.1) !important;
    transform: translateY(-2px);
    transition: all 0.3s;
}

/* Fix public profile layout on mobile */
@media (max-width: 768px) {
    .profile-stats {
        gap: 15px !important;
    }
    .profile-banner {
        height: 150px !important;
    }
}

/* --- SPOILER DOS COMENTÁRIOS --- */
.spoiler-checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #dc3545;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    width: fit-content;
}

.comment-content.is-spoiler {
    position: relative;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 25px; /* Added spacing for reply button */
}
.comment-content.is-spoiler .comment-text-inner {
    filter: blur(8px);
    transition: filter 0.3s ease;
    user-select: none;
}
.comment-content.is-spoiler.revealed .comment-text-inner {
    filter: none;
    user-select: text;
}
.spoiler-warning {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 2;
    border-radius: 8px;
    transition: opacity 0.3s;
    gap: 5px;
}
.comment-content.is-spoiler.revealed .spoiler-warning {
    opacity: 0;
    pointer-events: none;
}
