/* ==========================================================================
   1. CONFIGURAÇÃO DO FUNDO E UNIVERSAL
   ========================================================================== */
html, body {
    background-color: #7f888f !important; /* O cinza principal da borda */
    background-image: url("http://www.transparenttextures.com/patterns/3px-tile.png") !important; 
    background-repeat: repeat !important; /* Faz o padrão cobrir a tela toda */
    background-blend-mode: overlay !important; /* Mescla os quadradinhos com o cinza */
    background-attachment: fixed !important; /* Mantém o fundo fixo ao rolar */
    background-size: auto !important; /* Garante que os quadradinhos fiquem no tamanho certo de 3px */
}

/* Títulos Universais */
h1, h2, h3, h4 {
    color: #ffffff !important;
    font-weight: 600;
    text-transform: uppercase;
}

a {
    color: #969696;
    transition: all 0.3s ease;
}
a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px #7f888f;
    text-decoration: none;
}

/* Textos e Parágrafos Internos */
.fh5co-tab-content p, 
.fh5co-tab-content div,
.categoria-fics p,
.fh5co-tab-content span:not(.tag-18):not(.ficha-label) {
    color: #ffffff !important;
    opacity: 0.95;
}

.subtitulo-abas {
    margin-bottom: 25px;
}


/* ==========================================================================
   2. ESTRUTURA DO PAINEL CENTRAL (CONTAINERS)
   ========================================================================== */
.painel-central-universo {
    max-width: 1000px !important;
    margin: 60px auto 5px auto !important;
    width: 95% !important;
    padding: 40px;
    background: rgba(45, 45, 45, 0.40) !important; 
    border: 3px solid #7f888f;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(127, 136, 143, 0.45);
    position: relative;
    height: auto !important;
    overflow: visible !important;
    box-shadow: 0 0 50px rgba(127, 136, 143, 0.6);
    border: 4px solid #7f888f;
}

.fh5co-tab-wrap {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.fh5co-tab-menu {
    background: rgba(30, 30, 30, 0.5) !important;
    border-radius: 16px 0 0 16px;
}

.col-md-8 {
    padding-top: 0 !important;
    margin-top: 0 !important;
}


/* ==========================================================================
   3. BLOCO DA AUTORA E ALINHAMENTO (MODIFICADO)
   ========================================================================== */
/* Alinha a caixa de dados verticalmente ao centro em relação à foto no desktop */
@media screen and (min-width: 769px) {
    .fh5co-content-inner > .row {
        display: flex;
        align-items: center; 
    }
}

/* Caixa interna da foto (Totalmente transparente e centralizada) */
.perfil-card-foto {
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Título principal (Nome da Autora) */
.nome-autora {
    margin-top: 5px;
    font-size: 28px;
    padding-top: 0;
    margin-bottom: 10px;
}

/* Moldura Neon da Foto */
.avatar-moldura {
    border: 4px solid #7f888f;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(127, 136, 143, 0.6);
    padding: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

.avatar-moldura img {
    border-radius: 50%;
    display: block;
}


/* ==========================================================================
   4. DESIGN DE FICHA / DADOS DA TRIPULAÇÃO (COLUNA DA DIREITA)
   ========================================================================== */
/* Caixa de Dados: Sem margem sobressalente embaixo e perfeitamente centralizada */
.ficha-dados-universo {
    margin-top: 0;
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(127, 136, 143, 0.3);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: left;
}

/* Título do Card de Dados */
.ficha-dados-universo h3 {
    font-size: 14px;
    color: #fff !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(127, 136, 143, 0.3);
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ficha-dados-universo h3 svg {
    stroke: #fff;
    flex-shrink: 0;
}

/* Linhas da Ficha */
.ficha-linha {
    border-bottom: 1px dashed rgba(127, 136, 143, 0.2);
    padding: 18px 0;
    font-size: 15px;
}

.ficha-linha.sem-borda {
    border-bottom: none;
    padding: 12px 0;
}

/* Etiquetas dos Dados (Identificação, Ciclos...) */
.ficha-etiqueta {
    color: #969696;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    display: inline-block;
    width: 140px;
    flex-shrink: 0;
}


/* ==========================================================================
   5. COMPONENTES: CONTADOR, REDES SOCIAIS E TRANSMISSÃO
   ========================================================================== */
/* Contador */
.contador-historias {
    margin: 5px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(127, 136, 143, 0.1);
    border: 1px solid #7f888f;
    border-radius: 12px;
    padding: 10px 15px;
    width: 100%;
    max-width: 220px;
}

.contador-historias .fh5co-number {
    font-size: 35px;
    line-height: 1;
    font-weight: bold;
    margin: 0;
    color: #ffffff !important;
    text-shadow: 0 0 10px #7f888f;
}

.contador-historias .fh5co-text h3 {
    font-size: 11px;
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.3;
    color: #ffffff !important;
    font-weight: bold;
}

/* Redes Sociais */
.redes-autora {
    margin-top: 20px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    list-style: none;
}

.redes-autora a {
    color: #969696;
    font-size: 20px;
    transition: 0.3s;
    display: block;
}

.redes-autora a i {
    color: #969696 !important;
}

.redes-autora a:hover i {
    color: #ffffff !important;
    text-shadow: 0 0 10px #7f888f;
}

/* Bloco da Biografia (Transmissão) */
.divisor-universo {
    border-color: rgba(127, 136, 143, 0.2); 
    margin: 25px 0;
}
.transmissao-titulo {
    font-size: 20px; 
    color: #fff; !important; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    margin-bottom: 20px;
}
.transmissao-texto-bloco {
    text-align: justify; 
    line-height: 1.8;
    letter-spacing: 1px; 
    font-size: 16px; 
    background: rgba(30, 30, 30, 0.5); 
    padding: 15px; 
    border-radius: 8px;
}


/* ==========================================================================
   6. GRID DE FANFICS (ATUALIZADO COM SCROLL INTERNO)
   ========================================================================== */

/* Container Principal */
.grid-categorias {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px; 
    justify-content: space-between;
    align-items: stretch;
    margin-top: 20px;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.coluna-categoria {
    flex: 1; 
    min-width: 280px;
    background: rgba(30, 30, 30, 0.5); 
    border: 1px solid rgba(127, 136, 143, 0.1) !important;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    max-height: 600px;
}

.categoria-fics {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden; 
}

.lista-fics-links {
    flex: 1;
    overflow-y: auto; 
    padding-right: 10px;
    margin-right: -5px;
}

.lista-fics-links::-webkit-scrollbar {
    width: 6px;
}
.lista-fics-links::-webkit-scrollbar-track {
    background: rgba(30, 30, 30, 0.3);
    border-radius: 10px;
}
.lista-fics-links::-webkit-scrollbar-thumb {
    background: #7f888f;
    border-radius: 10px;
}

.categoria-fics h2 {
    color: #fff !important;
    font-weight: bold;
    font-size: 18px;
    margin: 0 0 15px 0 !important;
    border-bottom: 1px solid rgba(127, 136, 143, 0.2);
    padding-bottom: 10px;
}

.lista-fics-links a {
    display: block;
    background: rgba(127, 136, 143, 0.08);
    border: 1px solid rgba(127, 136, 143, 0.1);
    padding: 6px 14px;
    margin: 5px 0;
    border-radius: 20px;
    font-weight: 500;
    color: #fff !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lista-fics-links a:hover {
    background: #7f888f;
    color: white;
    box-shadow: 0 0 12px #7f888f;
}

/* Tag +18 */
.tag-18 {
    background: #ff3b6b !important;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 5px;
    vertical-align: middle;
    text-shadow: 0 0 5px rgba(255, 59, 107, 0.5);
}

/* ==========================================================================
   7. GALÁXIA DE SELOS
   ========================================================================== */
.galaxia-selos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.galaxia-selos img {
    width: 100%;
    height: auto;
    
    /* Estilo da Moldura Neon */
    border: 3px solid #7f888f;
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 0 15px rgba(127, 136, 143, 0.4);
    
    /* Efeitos */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(30, 30, 30, 0.5);
}

.galaxia-selos img:hover {
    transform: scale(1.15) rotate(4deg);
    box-shadow: 0 0 20px rgba(127, 136, 143, 0.8);
    border-color: #ffffff;
}


/* ==========================================================================
   8. SISTEMA DE PLANETINHAS (PREFERÊNCIAS)
   ========================================================================== */

.linha-planeta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background: rgba(30, 30, 30, 0.5) !important;
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid rgba(127, 136, 143, 0.2);
}

.nome-preferencia { width: 160px; color: #ffffff; font-weight: 600; }

.orbita-planetas { flex-grow: 1; display: flex; gap: 8px; align-items: center; }

.planetinha {
    width: 20px; height: 20px; background: #5a5a5a; border-radius: 50%;
    position: relative; box-shadow: inset -4px -4px 0px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.planetinha.ativo {
    background: radial-gradient(circle at 30% 30%, #d2d7d9, #7f888f);
    box-shadow: 0 0 10px rgba(127, 136, 143, 0.8), inset -3px -3px 0px rgba(0,0,0,0.3);
}

.planetinha.anel::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 30px; height: 8px;
    border: 2px solid #8d8c8c;
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    pointer-events: none;
    display: block;
}


.porcentagem-texto { width: 50px; text-align: right; font-size: 13px; color: #969696; font-weight: bold; }

/* ==========================================================================
   9. RÁDIO DE BORDO (SPOTIFY) - AJUSTADO
   ========================================================================== */
.radio-bordo {
    background: rgba(30, 30, 30, 0.7);
    border: 2px solid #7f888f;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(127, 136, 143, 0.3);
    
    display: block;        
    margin: 40px auto;
    width: 90%;            
    max-width: 450px;      
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   10. RESPONSIVIDADE (MOBILE)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .painel-central-universo {
        margin: 15px;
        padding: 15px;
    }

    .fh5co-tab-menu {
        border-radius: 16px 16px 0 0;
    }
}

/* ==========================================================================
   11. RODAPÉ E LIMPEZA DE LAYOUT (CORRIGIDO)
   ========================================================================== */

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

#fh5co-footer {
    display: block !important;
    position: relative !important;
    clear: both !important;
    margin: 60px auto 100px auto;
    background-color: transparent !important;
    color: #ffffff !important;
    text-align: center;
}

#fh5co-footer small {
    display: block;
    width: 100%;
}

#fh5co-main {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
}