@layer features {
.hero-wrapper .carousel-track {
    gap: 0 !important;
}

.contato-hero {
    background-color: var(--preto-profundo);
    padding: 60px 0 40px 0;
    text-align: center;
    border-bottom: 2px solid var(--marrom-madeira);
    background-image: radial-gradient(circle at center, rgba(4, 65, 245, 0.1) 0%, transparent 70%);
}

.tag-hero-contato {
    color: var(--azul-neon);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: inline-block;
}

.hero-content-contato h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 10px;
}

.hero-content-contato p {
    color: #ccc;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.secao-pergaminho-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr; 
    gap: 60px;
    padding: 60px 20px;
    align-items: start;
}

.pergaminho-container {
    background-color: #f4e4bc; 
    background-image: 
        linear-gradient(to right, rgba(0,0,0,0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 40px 40px; 
    padding: 40px;
    border-radius: 4px;
    position: relative;
    box-shadow: 
        0 0 0 10px #e6d2a0, 
        0 10px 30px rgba(0,0,0,0.2); 
    color: #4a3b2a; 
    border-top: 20px solid #dcb87d; 
    border-bottom: 20px solid #dcb87d;
}

.pergaminho-container::before,
.pergaminho-container::after {
    content: '';
    position: absolute;
    width: 100%; height: 20px;
    left: 0;
    background: #cba86d;
    border-radius: 50%;
    z-index: -1;
}

.pergaminho-container::before {
    top: -10px;
}

.pergaminho-container::after {
    bottom: -10px;
}

.pergaminho-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--papel-borda);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.pergaminho-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    color: #2c1e10;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.selo-cera {
    width: 50px; height: 50px;
    background: #aa2222;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.8);
    font-family: 'Times New Roman', serif;
    font-weight: bold; font-size: 1.2rem;
    border: 3px double rgba(0,0,0,0.2);
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    transform: rotate(15deg);
}

.form-rpg .grupo-input {
    margin-bottom: 25px;
}

.form-rpg label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #5d4833;
}

.form-rpg input,
.form-rpg select,
.form-rpg textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--papel-borda);
    padding: 10px 0;
    font-family: 'Roboto', sans-serif; 
    font-size: 1.1rem;
    color: #2c1e10;
    outline: none;
    transition: 0.3s;
}

.form-rpg input:focus,
.form-rpg select:focus,
.form-rpg textarea:focus {
    border-bottom-color: var(--azul-principal);
    background: rgba(255,255,255,0.3);
}

.form-rpg input::placeholder,
.form-rpg textarea::placeholder {
    color: rgba(74, 59, 42, 0.5);
    font-style: italic;
}

.btn-enviar-pergaminho {
    width: 100%;
    background: #2c1e10;
    color: #f4e4bc;
    border: none;
    padding: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem;
    cursor: pointer;
    display: flex; justify-content: center; align-items: center; gap: 10px;
    border-radius: 4px;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-enviar-pergaminho:hover {
    background: var(--azul-principal);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.alerta-rpg {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.alerta-rpg.sucesso {
    background: #d4edda; color: #155724; border: 1px solid #c3e6cb;
}

.alerta-rpg.erro {
    background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb;
}

.area-links-mapa .cabecalho-links {
    margin-bottom: 30px;
}

.area-links-mapa h2 {
    font-family: 'Poppins', sans-serif; color: var(--cor-texto); font-size: 1.8rem; margin-bottom: 5px;
}

.area-links-mapa p {
    color: #777;
}

.grid-links-rpg {
    display: flex; flex-direction: column; gap: 15px;
}

.link-card {
    display: flex; align-items: center; gap: 15px;
    background: white; padding: 15px 20px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: var(--sombra-suave);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.link-card:hover {
    transform: translateX(10px);
    border-color: var(--azul-neon);
    box-shadow: 0 5px 15px rgba(4, 65, 245, 0.15);
}

.icon-link {
    width: 45px; height: 45px;
    border-radius: 8px;
    background: #f4f6f9;
    color: var(--azul-principal);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    transition: 0.3s;
}

.link-card:hover .icon-link {
    background: var(--azul-principal);
    color: white;
}

.info-link {
    flex: 1; display: flex; flex-direction: column;
}

.info-link strong {
    color: var(--cor-texto); font-family: 'Poppins', sans-serif;
}

.info-link small {
    color: #888; font-size: 0.8rem; text-transform: uppercase;
}

.link-card .arrow {
    color: #ddd; transition: 0.3s;
}

.link-card:hover .arrow {
    color: var(--azul-principal); transform: translateX(5px);
}

.box-social-contato {
    margin-top: 40px;
    background: var(--preto-profundo);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    color: white;
}

.box-social-contato h4 {
    margin-bottom: 15px; font-family: 'Poppins', sans-serif;
}

.social-mini-grid {
    display: flex; justify-content: center; gap: 15px;
}

.social-mini-grid a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: white;
    transition: 0.3s;
}

.social-mini-grid a:hover {
    background: var(--azul-neon); color: var(--preto-profundo);
}

html.dark-mode .contato-hero {
    border-bottom-color: #333;
}

html.dark-mode .pergaminho-container {
    background-color: #2b2b2b; 
    color: #e0e0e0; 
    box-shadow: 0 0 0 5px #3d3d3d, 0 10px 30px rgba(0,0,0,0.5);
    border-color: #1f1f1f;
}

html.dark-mode .pergaminho-container::before,
html.dark-mode .pergaminho-container::after {
    background: #1f1f1f;
}

html.dark-mode .pergaminho-header h3 {
    color: #fff; border-bottom-color: #555;
}

html.dark-mode .form-rpg input,
html.dark-mode .form-rpg textarea,
html.dark-mode .form-rpg select {
    color: #fff;
    border-bottom-color: #555;
}

html.dark-mode .form-rpg label {
    color: var(--azul-neon);
}

html.dark-mode .form-rpg input::placeholder,
html.dark-mode .form-rpg textarea::placeholder {
    color: rgba(255,255,255,0.3);
}

html.dark-mode .link-card {
    background: #1a1b26;
    border-color: #333;
}

html.dark-mode .info-link strong {
    color: white;
}

html.dark-mode .icon-link {
    background: #242636;
}

@media (max-width: 992px) {
    .secao-pergaminho-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .pergaminho-container {
        padding: 30px 20px;
    }
}

body {
    background-color: transparent !important;
    color: var(--cor-texto);
    transition: color 0.3s ease;
    overflow-x: hidden;
}

body {
    background-color: transparent !important;
    color: var(--cor-texto);
    transition: color 0.3s ease;
    overflow-x: hidden;
}

.narrative-stage {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100vh; 
    z-index: -1;   
    contain: layout style;
    will-change: transform;

    
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    
    
    transition: background-image 0.6s ease-in-out, opacity 0.3s ease;

    
    
    background-image: url('../img/narrativa/ilustracao-dramatica-de-paisagens.jpg');
    
    
    opacity: 1;
}

/* Fundo narrativo so no desktop (r57.15): antes saia do HTML por wp_is_mobile(); escondido, o
   navegador nem baixa a imagem de fundo. Mesmo corte de 992px do filtro de sistemas (f1-04). */
@media (max-width: 991px) {
    .narrative-stage { display: none; }
}

html.dark-mode .narrative-stage {
    background-image: url('../img/narrativa/cena-de-fantasia-escura.jpg');
    
    
    opacity: 0.8;
}

@media (max-width: 768px) {
    .narrative-stage {
        background-attachment: scroll; 
        height: 100vh;
    }
}

.parallax-layer {
    will-change: transform;
}

.vf-bar {
    background: linear-gradient(90deg, var(--azul-principal), #1a3af5);
    position: relative; z-index: 89;
}

html.dark-mode .vf-bar {
    background: linear-gradient(90deg, var(--preto-profundo), #111225);
    border-bottom: 1px solid rgba(89,196,249,0.15);
}

.vf-bar-trigger {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; width: 100%;
    padding: 10px 16px;
    background: none; border: none; cursor: pointer;
    color: white; font-family: 'Poppins', sans-serif;
    font-size: 0.82rem; font-weight: 600;
    transition: background 0.2s;
}

.vf-bar-trigger:hover {
    background: rgba(255,255,255,0.08);
}

.vf-bar-icon {
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; background: rgba(255,255,255,0.15);
    border-radius: 6px; font-size: 0.8rem; flex-shrink: 0;
}

html.dark-mode .vf-bar-icon {
    background: rgba(89,196,249,0.15); color: var(--azul-neon);
}

.vf-bar-text {
    white-space: nowrap;
}

.vf-bar-count {
    font-size: 0.65rem; font-weight: 700;
    background: rgba(255,255,255,0.2); padding: 2px 8px;
    border-radius: 10px; white-space: nowrap;
}

html.dark-mode .vf-bar-count {
    background: rgba(89,196,249,0.15); color: var(--azul-neon);
}

.vf-bar-arrow {
    font-size: 0.65rem; opacity: 0.7;
    transition: transform 0.3s ease;
}

.vf-bar.open .vf-bar-arrow {
    transform: rotate(180deg);
}

.vf-panel {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1100;
    background: var(--bg-leitura);
    display: flex; flex-direction: column;
    visibility: hidden; opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.vf-panel.open {
    visibility: visible; opacity: 1;
    transform: translateY(0);
}

html.dark-mode .vf-panel {
    background: var(--preto-profundo);
}

.vf-panel-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(3px);
    z-index: 1099; opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.vf-panel-overlay.open {
    opacity: 1; visibility: visible;
}

.vf-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    border-bottom: 1px solid rgba(0,0,0,0.08);
    background: var(--bg-leitura);
    flex-shrink: 0; position: sticky; top: 0; z-index: 2;
}

html.dark-mode .vf-panel-header {
    border-bottom-color: rgba(255,255,255,0.08);
    background: var(--preto-profundo);
}

.vf-panel-title {
    font-size: 0.95rem; font-weight: 700; margin: 0;
    color: var(--texto-leitura);
    display: flex; align-items: center; gap: 8px;
}

.vf-panel-title i {
    color: var(--azul-principal); font-size: 0.9rem;
}

html.dark-mode .vf-panel-title {
    color: #eee;
}

html.dark-mode .vf-panel-title i {
    color: var(--azul-neon);
}

.vf-panel-close {
    background: rgba(0,0,0,0.06); border: none; cursor: pointer;
    color: #555; font-size: 1rem;
    width: 40px; height: 40px; min-width: 40px;
    border-radius: 50%; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.vf-panel-close:hover {
    background: rgba(0,0,0,0.12); color: #000;
}

html.dark-mode .vf-panel-close {
    background: rgba(255,255,255,0.08); color: #aaa;
}

html.dark-mode .vf-panel-close:hover {
    background: rgba(255,255,255,0.15); color: #fff;
}

.vf-panel-inner {
    max-width: 900px; margin: 0 auto; width: 100%;
    padding: 16px 16px 40px;
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
    flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
}

.vf-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.vf-panel-card {
    display: flex; flex-direction: column;
    text-decoration: none; border-radius: 10px;
    overflow: hidden; background: rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.25s ease;
}

.vf-panel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: rgba(255,0,0,0.2);
}

html.dark-mode .vf-panel-card {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.06);
}

html.dark-mode .vf-panel-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    border-color: rgba(255,0,0,0.3);
}

.vf-panel-card-thumb {
    position: relative; aspect-ratio: 16/9; overflow: hidden;
}

.vf-panel-card-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s ease;
}

.vf-panel-card:hover .vf-panel-card-thumb img {
    transform: scale(1.05);
}

.vf-panel-play {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 36px; height: 36px;
    background: rgba(255,0,0,0.85); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1rem;
    box-shadow: 0 3px 10px rgba(255,0,0,0.4);
    pointer-events: none; transition: transform 0.25s;
}

.vf-panel-card:hover .vf-panel-play {
    transform: translate(-50%, -50%) scale(1.15);
}

.vf-panel-card-info {
    padding: 10px 12px;
}

.vf-panel-card-sys {
    display: inline-block; font-size: 0.62rem; font-weight: 700;
    color: var(--azul-principal); text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 3px;
}

html.dark-mode .vf-panel-card-sys {
    color: var(--azul-neon);
}

.vf-panel-card-title {
    margin: 0; font-size: 0.78rem; font-weight: 600;
    color: var(--texto-leitura); line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

html.dark-mode .vf-panel-card-title {
    color: #ddd;
}

.vf-panel-footer {
    text-align: center; margin-top: 20px; padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

html.dark-mode .vf-panel-footer {
    border-top-color: rgba(255,255,255,0.06);
}

.vf-panel-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: #ff0000; color: white !important;
    padding: 10px 24px; border-radius: 50px;
    font-weight: 700; font-size: 0.8rem; text-decoration: none;
    text-transform: uppercase; transition: all 0.2s;
}

.vf-panel-cta:hover {
    background: #cc0000; transform: translateY(-1px);
}

@media (max-width: 768px) {
    .vf-panel-footer {
        display: none;
    }
}

@media (min-width: 768px) {
    .vf-panel {
        width: 480px; left: auto; right: 0;
        transform: translateX(100%);
        box-shadow: -10px 0 40px rgba(0,0,0,0.2);
    }

    .vf-panel.open {
        transform: translateX(0);
    }

    .vf-panel-header {
        padding: 16px 24px;
    }

    .vf-panel-inner {
        padding: 20px 24px 40px;
    }

    .vf-panel-title {
        font-size: 1.1rem;
    }

    .vf-panel-card-title {
        font-size: 0.82rem;
    }

    .vf-panel-play {
        width: 40px; height: 40px; font-size: 1.1rem;
    }
}

@media (min-width: 1200px) {
    .vf-panel {
        width: 560px;
    }

    .vf-panel-grid {
        grid-template-columns: repeat(2, 1fr); gap: 16px;
    }
}

.rotina-shorts-section {
    margin: 40px 0;
    padding-bottom: 20px;
    position: relative;
    
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.rotina-shorts-section .cabecalho-secao {
    max-width: 1200px;
    margin: 0 auto 20px auto;
    padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between;
}

.ver-todos-link {
    font-size: 1.5rem; font-weight: bold; color: var(--azul-principal);
}

.shorts-track-wrapper {
    width: 100%;
    overflow: hidden;
    
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.shorts-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 5% 30px 5%; 
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.shorts-track::-webkit-scrollbar {
    display: none;
}

.short-card {
    position: relative;
    flex: 0 0 200px; 
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    scroll-snap-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 2px solid rgba(255,255,255,0.1);
    cursor: pointer;
    z-index: 1;
}

.short-card:hover {
    transform: scale(1.05);
    border-color: var(--azul-neon);
    z-index: 10;
}

.short-poster {
    width: 100%;
    height: 100%;
    position: relative;
}

.short-poster img {
    width: 100%; 
    height: 100%; 
    
    object-fit: cover; 
    object-position: center; 
    opacity: 0.9;
}

.short-info {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 60px 10px 15px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%);
    pointer-events: none;
    z-index: 3;
    transition: opacity 0.3s;
}

.short-info h3 {
    color: white; font-size: 0.9rem; font-weight: 600; 
    line-height: 1.3; margin: 0;
    text-shadow: 1px 1px 2px black;
}

@media (max-width: 992px) {
    .short-card {
        flex: 0 0 160px;
    }

    .shorts-track {
        justify-content: flex-start;
    }
}

.grimorio-section {
    position: relative;
    padding: 20px 0;
}

.grimorio-wrapper .carousel-track {
    gap: 20px;
    padding: 10px 5px;
}

.grimorio-card {
    background: var(--bg-card-claro); 
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    min-width: 160px; 
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
}

.grimorio-card:hover {
    transform: translateY(-5px);
    border-color: var(--azul-neon);
    box-shadow: 0 10px 20px rgba(4, 65, 245, 0.15);
}

.grimorio-info h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cor-texto);
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.grimorio-count {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
}

html.dark-mode .grimorio-card {
    background: #1a1b26; 
    border-color: #333;
}

html.dark-mode .grimorio-info h3 {
    color: white;
}

html.dark-mode .grimorio-count {
    color: #aaa;
}

@media (max-width: 768px) {
    .grimorio-card {
        min-width: 140px;
        height: 140px;
        padding: 15px;
    }
}

.card-body {
    padding: 20px; flex: 1; display: flex; flex-direction: column;
}

.card-body h2 {
    font-size: 1.1rem; margin-bottom: 10px; line-height: 1.3; font-family: 'Poppins', sans-serif;
}

.card-body h2 a {
    color: var(--cor-texto); text-decoration: none;
}

.card-body h2 a:hover {
    color: var(--azul-principal);
}

.card-body .meta {
    font-size: 0.75rem; color: #888; margin-bottom: 8px;
}

.excerpt-desk {
    color: #666; font-size: 0.95rem; margin-bottom: 20px;
}

@media (max-width: 600px) {
    .excerpt-desk {
        display: none;
    }
}

.youtube-destaque-compacto {
    background: #000;
    color: white;
    padding: 30px 0;
    margin: 40px 0;
    overflow: hidden;
}

.yt-compact-grid {
    display: grid;
    
    grid-template-columns: 0.8fr 1.2fr; 
    gap: 30px;
    align-items: center;
}

.yt-info h3 {
    font-size: 1.5rem; margin: 10px 0;
    line-height: 1.2; color: white;
}

.tag-yt-small {
    color: #ff0000; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px;
}

.yt-stats-row {
    display: flex; gap: 20px; margin-bottom: 20px;
    font-size: 0.9rem; color: #ccc;
}

.yt-stats-row strong {
    color: white; font-size: 1.1rem;
}

.btn-yt-small {
    background: #ff0000; color: white;
    padding: 10px 25px; border-radius: 4px;
    font-weight: bold; text-transform: uppercase;
    font-size: 0.85rem; display: inline-block;
    transition: 0.3s;
}

.btn-yt-small:hover {
    background: #cc0000; transform: translateY(-2px);
}

.yt-video {
    position: relative;
    width: 100%;
    
    aspect-ratio: 16 / 9; 
    background: #111;
    border-radius: 8px;
    overflow: hidden;
}

.yt-video iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}

@media (max-width: 768px) {
    .yt-compact-grid {
        grid-template-columns: 1fr;
        text-align: center; 
        gap: 20px;
    }

    .yt-stats-row {
        justify-content: center;
    }

    .youtube-destaque-compacto {
        padding: 20px;
    }

    .yt-info h3 {
        font-size: 1.3rem;
    }
}

.filter-scroll-container {
    display: flex; align-items: center; gap: 10px;
    overflow-x: auto; white-space: nowrap;
    scrollbar-width: none; padding-bottom: 5px;
}

.filter-scroll-container::-webkit-scrollbar {
    display: none;
}

.pill {
    padding: 6px 16px; border-radius: 50px;
    background: #f0f0f0; color: #555;
    font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; transition: 0.2s;
    border: 1px solid transparent;
}

.pill.active,
.pill:hover {
    background: var(--azul-principal); color: white;
    box-shadow: 0 4px 10px rgba(4, 65, 245, 0.2);
}

html.dark-mode .pill {
    background: #2a2b30; color: #ccc;
}

html.dark-mode .pill.active {
    background: var(--azul-principal); color: white;
}

.category-filter-modern {
    background: var(--bg-leitura);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 20px 0;
    position: sticky; top: 0; z-index: 90;
    backdrop-filter: blur(10px);
}

html.dark-mode .category-filter-modern {
    background: rgba(13,10,11,0.95);
    border-bottom-color: rgba(255,255,255,0.08);
}

@media (min-width: 992px) {
    .category-filter-modern {
        top: 70px;
    }
}

.filter-header-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}

.filter-modern-label {
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: #888;
    display: flex; align-items: center; gap: 6px;
}

.filter-modern-label i {
    color: var(--azul-neon); font-size: 0.85rem;
}

.filter-count-badge {
    font-size: 0.72rem; font-weight: 600; color: var(--azul-neon);
    background: rgba(89,196,249,0.1); padding: 3px 10px; border-radius: 20px;
}

.filter-grid-wrap {
    display: flex; flex-wrap: wrap; gap: 10px;
}

.filter-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px; border-radius: 10px;
    background: rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.08);
    color: var(--texto-leitura); font-size: 0.85rem; font-weight: 600;
    text-decoration: none; transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-chip:hover {
    background: rgba(4,65,245,0.06); border-color: var(--azul-principal);
    color: var(--azul-principal); transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(4,65,245,0.1);
}

.filter-chip.active {
    background: var(--azul-principal); color: white;
    border-color: var(--azul-principal);
    box-shadow: 0 4px 15px rgba(4,65,245,0.3);
}

.filter-chip.active .filter-chip-count {
    background: rgba(255,255,255,0.25); color: white;
}

.filter-chip i {
    font-size: 0.8rem;
}

.filter-chip-count {
    font-size: 0.7rem; font-weight: 700;
    background: rgba(0,0,0,0.06); padding: 2px 7px; border-radius: 8px;
    color: #888; line-height: 1;
}

html.dark-mode .filter-chip {
    background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08);
    color: #ccc;
}

html.dark-mode .filter-chip:hover {
    background: rgba(89,196,249,0.1); border-color: var(--azul-neon);
    color: var(--azul-neon);
}

html.dark-mode .filter-chip.active {
    background: var(--azul-principal); color: white; border-color: var(--azul-principal);
}

html.dark-mode .filter-chip-count {
    background: rgba(255,255,255,0.08); color: #aaa;
}

@media (max-width: 768px) {
    .category-filter-modern {
        position: sticky; top: 0; z-index: 90;
        padding: 12px 0;
    }

    .filter-header-row {
        margin-bottom: 8px;
    }

    .filter-grid-wrap {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .filter-grid-wrap::-webkit-scrollbar {
        display: none;
    }

    .filter-chip {
        flex-shrink: 0;
        padding: 7px 14px;
        font-size: 0.78rem;
    }
}

.grimorio-full-grid {
    display: grid;
    
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    width: 100%;
}

.grimorio-full-grid .card-sistema {
    min-width: 0 !important; 
    width: 100% !important;
    margin: 0 !important;
    flex: none !important;
    
    
    height: 140px; 
    
    
    position: relative;
    overflow: hidden; 
    border-radius: 12px;
    box-shadow: var(--sombra-suave);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.grimorio-full-grid .card-sistema .sistema-img {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    z-index: 1;
}

.grimorio-full-grid .card-sistema .sistema-img img {
    width: 100%; 
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grimorio-full-grid .card-sistema:hover .sistema-img img {
    transform: scale(1.1);
}

.grimorio-full-grid .card-sistema h3 {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 80%, transparent 100%);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    margin: 0;
}

@media (max-width: 768px) {
    .grimorio-full-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }

    .grimorio-full-grid .card-sistema {
        height: 120px;
    }

    .grimorio-full-grid .card-sistema h3 {
        font-size: 0.8rem;
    }
}

.search-trigger {
    background: none; border: none; cursor: pointer;
    color: var(--azul-neon); font-size: 1.3rem;
    transition: color 0.3s; padding: 5px;
}

.search-trigger:hover {
    color: var(--azul-neon);
}

@media (max-width: 992px) {
    .mobile-controls {
        display: flex !important;
    }

    .menu-toggle {
        display: block;
    }
}

@media (min-width: 992px) {
    .mobile-controls {
        display: none !important;
    }
}

.search-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(13, 10, 11, 0.98); 
    z-index: 10000;
    opacity: 0; visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    padding-top: 100px;
    backdrop-filter: blur(10px);
}

.search-overlay.active {
    opacity: 1; visibility: visible;
}

.close-search {
    position: absolute; top: 30px; right: 30px;
    background: none; border: none; color: #fff;
    font-size: 2rem; cursor: pointer; transition: 0.3s;
}

.close-search:hover {
    color: var(--azul-neon); transform: rotate(90deg);
}

.search-container {
    width: 100%; max-width: 800px; padding: 0 20px;
    animation: slideUp 0.4s ease forwards;
    transform: translateY(20px); opacity: 0;
}

.search-overlay.active .search-container {
    opacity: 1; transform: translateY(0);
}

.input-wrapper {
    position: relative; width: 100%;
    border-bottom: 3px solid var(--azul-principal);
}

.search-icon-input {
    position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    font-size: 1.5rem; color: var(--azul-neon);
}

.search-field {
    width: 100%; background: transparent; border: none;
    font-family: 'Poppins', sans-serif; font-weight: 700;
    font-size: clamp(0.8rem, 3vw, 1.5rem);
    color: white; padding: 10px 10px 10px 50px;
    outline: none;
}

.search-field::placeholder {
    color: rgba(255,255,255,0.3);
}

.quick-links {
    margin-top: 30px; text-align: center; color: #888;
}

.search-overlay .quick-links > span {
    display: block; margin-bottom: 15px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px;
}

.tags-row {
    display: flex; justify-content: center; gap: 15px; flex-wrap: wrap;
}

.tags-row a {
    background: rgba(255,255,255,0.1); color: white;
    padding: 8px 20px; border-radius: 50px; font-size: 0.9rem;
    border: 1px solid transparent; transition: 0.3s;
}

.tags-row a:hover {
    background: var(--azul-principal); border-color: var(--azul-neon);
}

@keyframes slideUp {
    to {
        transform: translateY(0); opacity: 1;
    }
}

@media (max-width: 768px) {
    .search-overlay {
        padding-top: 60px;
        justify-content: flex-start;
    }

    .close-search {
        top: 15px;
        right: 15px;
        font-size: 1.5rem;
    }

    .search-container {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 15px 40px;
    }

    .search-field {
        font-size: 1.1rem;
    }

    .quick-links {
        text-align: left;
    }
}
}
