/* css/style.css */
/* Este arquivo combina seu 'index.css' (Biblioteca) e 'ebookvip1.css' (Leitor) */

/* === :ROOT (CORES GLOBAIS) === */
:root {
    /* Cores da Biblioteca (do index.css) */
    --primary-purple: #8B5CF6;
    --main-red: #E50914;
    --dark-bg: #141414;
    --card-bg: #1F2937;
    --light-text: #B3B3B3;
    --white-text: #FFFFFF;
    --vip-gold: #FFD700;

    /* Cores do Leitor (do ebookvip1.css) */
    --brand-rose: #8C3B3B;
    --brand-gold: #B08D57;
    --brand-dark: #3D352E;
    --brand-light: #F5F0E8;
    --text-color: #3D352E;

    /* Tema Escuro Leitor */
    --dark-bg-reader: #222222;
    --dark-text-reader: #D8D8D8;
    --dark-title-reader: var(--brand-gold);
    --dark-subtle-text-reader: #888888;
    --dark-border-reader: rgba(176, 141, 87, 0.2);

    /* Tema Sépia Leitor */
    --sepia-bg-reader: #f4e9d8;
    --sepia-text-reader: #4a3f35;
    --sepia-title-reader: #6B4F2E;
    --sepia-subtle-text-reader: #856a4f;
    --sepia-border-reader: rgba(91, 70, 54, 0.2);
}

/* === ESTILOS GLOBAIS / LOGIN (do index.css) === */
body {
    background-color: var(--dark-bg); /* ATUALIZADO: Corrigido de 'fff' para var(--dark-bg) */
    color: var(--white-text);
    font-family: 'Poppins', sans-serif;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.pagina-detalhes {
    background-color: #000;
}
img { pointer-events: none; }
.font-anton { font-family: 'Anton', sans-serif; }
#login-overlay {
    background-image: linear-gradient(to top, rgba(0,0,0,0.8) 0, rgba(0,0,0,0) 60%, rgba(0,0,0,0.8) 100%), url('https://i.pinimg.com/originals/7b/e5/ce/7be5ceec355939ea13d9ab22665533ee.gif');
    background-size: cover;
    background-position: center;
}
.login-box {
    background-color: rgba(0,0,0,0.8);
    padding: 50px 60px;
    border-radius: 8px;
    width: 100%;
    max-width: 450px;
}
.login-title { color: var(--white-text); font-size: 2rem; font-weight: 600; margin-bottom: 28px; }
.login-input {
    background: #333; border-radius: 4px; border: 1px solid #555; color: var(--white-text);
    height: 50px; padding: 16px 20px; width: 100%; transition: border-color 0.2s;
}
.login-input:focus { outline: none; border-color: var(--white-text); }
.login-button {
    background: var(--main-red); border-radius: 4px; font-size: 1rem; font-weight: 600;
    padding: 16px; width: 100%; border: none; color: white;
    cursor: pointer; transition: background-color 0.2s;
}
.login-button:hover { background-color: #f6121d; }
.login-button:disabled { background-color: #555; cursor: wait; }
.google-button {
    background: var(--white-text); color: #000; border-radius: 4px; font-size: 1rem; font-weight: 600;
    padding: 14px; width: 100%; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 0.75rem;
    transition: background-color 0.2s;
}
.google-button:hover { background-color: #ddd; }
.divider { display: flex; align-items: center; text-align: center; color: #888; margin: 1.5rem 0; }
.divider::before, .divider::after {
    content: ''; flex: 1; border-bottom: 1px solid #444;
}
.divider:not(:empty)::before { margin-right: .25em; }
.divider:not(:empty)::after { margin-left: .25em; }
.login-help a { text-decoration: none; color: #B3B3B3; font-size: 0.9rem; }
.login-help a:hover { text-decoration: underline; }

/* === ESTILOS BIBLIOTECA (do index.css) === */
.book-row {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-purple) transparent;
    gap: 1rem; /* <--- ADICIONE ESTA LINHA (Espaço entre os itens) */
}
.book-row::-webkit-scrollbar { height: 8px; }
.book-row::-webkit-scrollbar-thumb { background-color: var(--primary-purple); border-radius: 4px; }

.book-card {
    position: relative;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--card-bg);
    scroll-snap-align: start;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid #374151;
    cursor: pointer;
    width: 180px; /* Tamanho padrão */
    aspect-ratio: 2 / 3;
}
.book-card:hover { transform: translateY(-5px) scale(1.03); z-index: 10; box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.cover-image { width: 100%; height:100%; object-fit: cover; display: block; }

.page-header { 
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 2rem; position: absolute; top: 0; left: 0; right: 0; z-index: 20; 
}
.logo-text {
    font-family: 'Anton', sans-serif; font-size: 1.75rem; color: var(--white-text);
    text-transform: uppercase; letter-spacing: 1.5px; text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
#logout-button { background-color: rgba(31, 41, 55, 0.7); color: white; padding: 0.5rem 1rem; border-radius: 6px; font-weight: 500; transition: background-color 0.2s ease; }
#logout-button:hover { background-color: rgba(55, 65, 81, 0.9); }

/* Slider Hero */
/* Slider Hero */
#hero-slider-container { 
    width: 100%; 
    height: 30vh;       /* <--- Mude aqui (Ex: de 70vh para 50vh) */
    min-height: 350px;  /* <--- Mude aqui (Ex: de 450px para 350px) */
    max-height: 500px;  /* <--- Mude aqui (Ex: de 600px para 500px) */
    position: relative; 
}
.swiper-slide { background-size: cover; background-position: center; display: flex; align-items: center; justify-content: flex-start; }
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* O gradiente mágico: transparente em cima -> preto do site (#141414) embaixo */
    background: linear-gradient(
        to bottom,
        rgba(20, 20, 20, 0.2) 0%,    /* Levemente escuro no topo para o texto do menu aparecer */
        rgba(20, 20, 20, 0.4) 60%,   /* Começa a escurecer mais a partir do meio */
        #141414 100%                 /* Cor sólida do fundo na base */
    );
    z-index: 1; /* Garante que fique acima da imagem */
    pointer-events: none; /* Permite clicar nos links abaixo, se houver */
}
.slide-content { position: relative; z-index: 10; color: var(--white-text); padding: 0 5%; max-width: 650px; }
.slide-content h2 { font-family: 'Anton', sans-serif; font-size: 3.5rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1rem; line-height: 1.1; text-shadow: 2px 2px 8px rgba(0,0,0,0.7); }
.slide-content p { font-size: 1.1rem; margin-bottom: 1.5rem; max-width: 500px; text-shadow: 1px 1px 4px rgba(0,0,0,0.7); }
.slide-button { display: inline-block; background-color: var(--main-red); color: var(--white-text); padding: 12px 24px; border-radius: 4px; text-decoration: none; font-weight: 600; transition: background-color 0.3s ease; }
.slide-button:hover { background-color: #f6121d; }
.swiper-pagination-bullet { background: rgba(255, 255, 255, 0.5); width: 10px; height: 10px; opacity: 1; }
.swiper-pagination-bullet-active { background: var(--main-red); }
.swiper-button-next, .swiper-button-prev { color: var(--white-text); width: 50px; height: 50px; background-color: rgba(0,0,0,0.3); border-radius: 50%; transition: background-color 0.3s ease; }
.swiper-button-next:hover, .swiper-button-prev:hover { background-color: rgba(0,0,0,0.6); }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 1.5rem; }

/* Rodapé */
.page-footer { background-color: #1B1B1B; color: #D1D5DB; padding: 3rem 1rem; text-align: center; border-top: 1px solid #374151; }
.social-icons a { color: #1B1B1B; background-color: var(--white-text); width: 44px; height: 44px; line-height: 44px; font-size: 1.2rem; border-radius: 50%; display: inline-block; margin: 0 0.5rem; transition: transform 0.3s ease; }
.social-icons a:hover { transform: scale(1.1); }
.copyright-text { margin-top: 1.5rem; font-size: 0.8rem; letter-spacing: 0.5px; }
.vip-activation-link {
    color: var(--vip-gold); font-weight: 600; text-decoration: none;
    margin-top: 1.5rem; display: inline-block; border: 1px solid var(--vip-gold);
    padding: 8px 16px; border-radius: 6px; transition: all 0.3s ease;
}
.vip-activation-link:hover { background-color: var(--vip-gold); color: #000; }

/* --- Ajustes para o Ícone VIP --- */
.vip-lock-overlay {
    position: absolute;
    bottom: 5px;   /* Fica 5px da borda inferior */
    right: 5px;    /* MUDANÇA: Fica 5px da borda direita */
    left: auto;    /* MUDANÇA: Remove o posicionamento à esquerda */
    width: 25px;   /* Largura menor do overlay */
    height: 25px;  /* Altura menor do overlay */
    background-color: rgba(0, 0, 0, 0.7); /* Fundo sutil */
    border-radius: 50%; /* Faz a bolha */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10; /* Garante que fique acima da capa */
    padding: 0; /* Remove padding extra */
}

.vip-lock-overlay i.fas.fa-crown {
    font-size: 14px; /* Tamanho da coroa */
    color: var(--vip-gold); /* Cor dourada */
    line-height: 1; /* Alinhamento vertical */
}

.free-tag-overlay i.fas.fa-gift {
    font-size: 13px; /* Tamanho do presente */
    color: #3B82F6;  /* Um tom de azul */
    line-height: 1;
}
/* [FIM DO NOVO BLOCO] */


.vip-lock-overlay span {
    display: none; /* Esconde a palavra VIP */
}

/* Garante que o book-card seja o contêiner de posicionamento */
.book-card {
    position: relative;
    /* Certifique-se de que não há overflow: hidden que corte a coroa se ela sair um pouco */
    overflow: hidden; /* Ou remova a propriedade se já estiver "hidden" e cause problemas */
}

/* Modal VIP */
.modal {
    display: none; position: fixed; z-index: 1000; left: 0; top: 0;
    width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}
.modal-content {
    background-color: #141414; color: var(--white-text);
    margin: 15% auto; padding: 2.5rem; border: 1px solid #333;
    width: 90%; max-width: 420px; border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); position: relative;
    animation: fadeIn 0.3s ease-in-out; text-align: center;
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.close-button {
    color: #8c8c8c; position: absolute; top: 15px; right: 20px;
    font-size: 28px; font-weight: bold; cursor: pointer; transition: color 0.2s ease;
}
.close-button:hover, .close-button:focus { color: var(--white-text); }
.modal-title { font-weight: 600; font-size: 1.6rem; margin-bottom: 1.5rem; }
.modal-buttons-container { display: flex; flex-direction: column; gap: 0.75rem; }
.modal-button {
    width: 100%; background-color: var(--main-red); color: white;
    padding: 16px; border: none; border-radius: 4px;
    cursor: pointer; font-size: 1rem; font-weight: 600;
    transition: background-color 0.3s ease; text-align: center;
    text-decoration: none; display: inline-block;
}
.modal-button:hover { background-color: #f6121d; }


/* === ESTILOS PÁGINA DE DETALHES (do sinopse.css) === */
.details-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    padding-top: 100px; /* Espaço para o header */
}
.details-cover-image {
    width: 250px;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--brand-gold); /* Cor do leitor */
    margin: 0 auto 2rem auto;
    display: block;
}
.book-title-details {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--white-text);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}
.synopsis {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: var(--light-text);
    line-height: 1.9;
    text-align: left;
    margin-bottom: 2.5rem;
    background-color: rgba(31, 41, 55, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--brand-gold);
}
.read-button {
    display: block; width: fit-content; margin: 0 auto;
    background-color: var(--main-red); color: var(--white-text);
    padding: 1rem 2.5rem; border-radius: 50px;
    text-decoration: none; font-weight: 600; font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center; box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}
.read-button:hover { background-color: #f6121d; transform: translateY(-2px); }
.back-button {
    display: inline-block; color: var(--light-text);
    margin-bottom: 2rem; text-decoration: none;
    font-size: 0.9rem; transition: color 0.2s ease;
}
.back-button:hover { color: var(--white-text); }
.back-button i { margin-right: 0.5rem; }
.related-books-section {
    margin-top: 4rem; padding-top: 2rem;
    border-top: 1px solid var(--card-bg);
}
.related-books-title {
    font-family: 'Poppins', sans-serif; font-size: 1.8rem;
    font-weight: 600; margin-bottom: 1.5rem;
    color: var(--white-text);
}


/* === ESTILOS LEITOR (do ebookvip1.css) === */

/* Body do Leitor - Variáveis Dinâmicas */
body.leitor-body {
    font-family: 'Lora', serif;
    background-color: var(--current-bg);
    color: var(--current-text);
    line-height: 1.9;
    transition: background-color 0.3s, color 0.3s, font-size 0.2s;
    font-size: 1.3rem; /* Padrão desktop */
}
body.leitor-body.theme-dark {
    --current-bg: var(--dark-bg-reader);
    --current-text: var(--dark-text-reader);
    --current-title: var(--dark-title-reader);
    --current-subtle-text: var(--dark-subtle-text-reader);
    --current-border: var(--dark-border-reader);
}
body.leitor-body.theme-sepia {
    --current-bg: var(--sepia-bg-reader);
    --current-text: var(--sepia-text-reader);
    --current-title: var(--sepia-title-reader);
    --current-subtle-text: var(--sepia-subtle-text-reader);
    --current-border: var(--sepia-border-reader);
}
body.leitor-body.theme-light {
    --current-bg: var(--brand-light);
    --current-text: var(--text-color);
    --current-title: var(--brand-dark);
    --current-subtle-text: #8a8a8a;
    --current-border: rgba(0, 0, 0, 0.1);
}

/* Capa e Conteúdo do Leitor */
#capa {
    height: auto; width: 100vw;
    position: relative; overflow: hidden;
}
#capa .capa-bg-image {
    display: block; width: 100%; height: auto;
    object-fit: cover; object-position: center;  
    filter: brightness(0.8);
}
.book-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 1rem 2rem;
}
.book-section { margin-bottom: 4rem; }

/* Sumário do Leitor */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--current-title);
    border-bottom: 3px double var(--brand-gold);
    padding-bottom: 1rem;
}
#sumario ul { list-style: none; }
#sumario li {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--current-border);
    font-size: 1.1em;
}
#sumario li:last-child { border: none; }
#sumario .sumario-label {
    color: var(--current-title); font-family: 'Playfair Display', serif;
    font-weight: bold; margin-right: 1rem;
}
#sumario li .sumario-titulo { 
    color: var(--current-text); 
    font-family: 'Lora', serif;
}

/* Capítulos do Leitor */
.capitulo .numero-capitulo {
    font-family: 'Lora', serif;
    color: var(--current-subtle-text); 
    font-size: 1em;
    margin-bottom: 0.2rem; 
    text-transform: uppercase;
}
.capitulo h3 {
    font-family: 'Playfair Display', serif; font-size: 1.8em; color: var(--current-title);
    margin-bottom: 1.5rem; line-height: 1.2;
}
.capitulo h4 {
    font-family: 'Playfair Display', serif; font-size: 1.3em; color: var(--current-title);
    margin-bottom: 1.5rem; line-height: 1.2;
}
.capitulo p { 
    margin-bottom: 0.0em; 
    font-size: 1.1em; 
    text-align: justify;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}
.capitulo p + p { text-indent: 2em; }
.capitulo h3 + p::first-letter,
.capitulo h3 + h4 + p::first-letter {
    font-family: 'Playfair Display', serif; 
    color: var(--brand-rose);
    font-size: 5em;
    float: left; 
    line-height: 0.8; 
    padding-right: 0.5rem;
    padding-top: 0.2rem;
}
.capitulo strong { 
    color: var(--current-text);
    font-weight: 700; 
}
.ornamento-manual { width: 100%; margin: 2rem 0; }
.ornamento-manual img {
    display: block; margin-left: auto; margin-right: auto;
    width: 80%; max-width: 280px;
    height: auto; opacity: 0.6; 
}

/* Widget do Leitor */
#theme-widget {
    position: fixed; top: 1rem; left: 50%;
    transform: translateX(-50%); z-index: 1000;
    display: flex; flex-direction: column;
    align-items: center; gap: 0.75rem;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}
#theme-widget.visible-widget { opacity: 1; pointer-events: auto; }
.widget-controls {
    display: flex; flex-direction: column; gap: 0.75rem;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(-10px); opacity: 0;
    pointer-events: none;
}
.widget-controls.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.control-panel {
    display: flex; align-items: center; gap: 0.75rem;
    background: rgba(0,0,0,0.5); padding: 0.5rem; border-radius: 50px;
}
#font-size-control button, .theme-button {
    width: 32px; height: 32px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    border: none; transition: transform 0.2s;
}
#font-size-control button { background-color: var(--brand-gold); color: white; }
#font-size-control button:hover, .theme-button:hover { transform: scale(1.1); }
#font-size-display { font-family: 'Poppins', sans-serif; font-size: 0.9rem; color: #fff; min-width: 40px; text-align: center;}
.theme-button { border: 2px solid rgba(255,255,255,0.5); }
.theme-button.active { border-color: #fff; box-shadow: 0 0 10px #fff; }
#theme-dark { background-color: var(--dark-bg-reader); }
#theme-sepia { background-color: var(--sepia-bg-reader); }
#theme-light { background-color: var(--brand-light); }
#theme-toggle-button {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background-color: var(--brand-gold); color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    cursor: pointer; transition: transform 0.3s ease, background-color 0.3s, color 0.3s;
    border: none;
}
#theme-toggle-button:hover { transform: scale(1.1); }

/* Barra de Progresso do Leitor */
.progress-container {
    position: auto; /* Fixa no topo da tela */
    top: 100;
    left: 0;
    width: 100%; /* Largura total */
    height: 5px; /* Altura da barra (ajuste se quiser) */
    background-color: rgba(0, 0, 0, 0.2); /* Fundo sutil */
    z-index: 2000; /* Garante que fique acima de tudo */
    opacity: 1; /* Deixa sempre visível */
    transition: opacity 0.3s ease-in-out;
}

#theme-widget.visible-widget .progress-container { opacity: 1; }
.progress-bar {
    width: 0%; height: 100%;
    background-color: var(--brand-gold);
    transition: width 0.2s ease-out;
}
.widget-controls.visible + .progress-container { display: none; }

/* Loader */
#loader {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: #141414; color: white; display: flex;
    align-items: center; justify-content: center;
    font-family: 'Poppins', sans-serif; font-size: 1.2rem;
    z-index: 2000; user-select: none;
}
#loader img { width: 50px; height: auto; }

/* === ESTILOS PAINEL ADMIN === */
.admin-box {
    background-color: rgba(0,0,0,0.8);
    padding: 30px 40px;
    border-radius: 8px;
    width: 100%;
    max-width: 900px; /* Aumentado */
    border: 1px solid #333;
    margin-top: 100px; /* Espaço para header */
}
.admin-title {
    font-family: 'Anton', sans-serif;
    font-size: 2.5rem;
    color: var(--vip-gold);
    text-align: center;
    margin-bottom: 1.5rem;
}
.admin-input, .admin-select, .admin-textarea {
    background: #333; border-radius: 4px; border: 1px solid #555;
    color: var(--white-text); padding: 12px 20px;
    width: 100%; transition: all 0.2s ease;
}
.admin-input, .admin-select { height: 50px; }
.admin-textarea { height: 200px; font-family: monospace; }
.admin-input:focus, .admin-select:focus, .admin-textarea:focus {
    outline: none; border-color: var(--vip-gold);
}
.admin-button {
    background: var(--vip-gold); color: #000; border-radius: 4px;
    font-size: 1.1rem; font-weight: 700; padding: 16px; width: 100%;
    border: none; cursor: pointer; transition: background-color 0.2s;
}
.admin-button:disabled { background-color: #555; cursor: not-allowed; }
.admin-button.secondary { background-color: #374151; color: var(--white-text); }
.admin-button.secondary:hover { background-color: #4b5563; }

/* Abas do Admin */
.admin-tabs { display: flex; border-bottom: 1px solid #374151; margin-bottom: 1.5rem; }
.admin-tab {
    padding: 1rem 1.5rem; color: var(--light-text);
    font-weight: 500; cursor: pointer;
    border-bottom: 3px solid transparent;
}
.admin-tab:hover { color: var(--white-text); }
.admin-tab.active {
    color: var(--vip-gold);
    border-bottom-color: var(--vip-gold);
}
.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }

/* Tabela de Analytics */
.analytics-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}
.analytics-table th, .analytics-table td {
    border: 1px solid #374151;
    padding: 12px;
    text-align: left;
    color: var(--white-text);
}
.analytics-table th {
    background-color: var(--card-bg);
    color: var(--vip-gold);
    font-weight: 600;
}
.analytics-table tr:nth-child(even) { background-color: #2a374a; }
.analytics-table tr:hover { background-color: #3e506b; }
.table-cover-img { width: 50px; height: 75px; object-fit: cover; border-radius: 4px; }
.loading-text { color: var(--vip-gold); font-size: 1.2rem; text-align: center; margin-top: 2rem; }

/* Feedback de Cópia */
.generated-code-box {
    background-color: #111; border: 1px dashed #444; color: var(--vip-gold);
    padding: 20px; border-radius: 4px; text-align: center; font-weight: 600;
    font-size: 1.2rem; letter-spacing: 2px; cursor: pointer; margin-top: 1.5rem;
}
.copy-feedback {
    text-align: center; height: 20px; font-size: 0.9rem;
    color: #28a745; transition: opacity 0.5s;
}


/* === RESPONSIVIDADE (do index.css) === */
@media (max-width: 768px) {
    .page-header { padding: 1rem 1.5rem; }
    .logo-text { font-size: 1.5rem; }
    #hero-slider-container { height: 30vh; min-height: 200px; }
    .slide-content h2 { font-size: 2.5rem; }
    .slide-content p { font-size: 1rem; }
    .swiper-button-next, .swiper-button-prev { display: none; }
    
    .book-card { width: 30vw; } /* Cards da biblioteca maiores em mobile */
    
    .login-box { padding: 40px 24px; min-height: auto; }
    .modal-content { margin: 40% auto; width: 95%; padding: 1.5rem; }
    .modal-title { font-size: 1.5rem; }

    .details-cover-image { width: 200px; }
    .book-title-details { font-size: 2.2rem; }
    .synopsis { font-size: 1.1rem; padding: 1rem; }
    .read-button { padding: 0.8rem 2rem; font-size: 1rem; }
    .related-books-title { font-size: 1.5rem; }
    .related-books-row .book-card { width: 140px; margin-right: 0.75rem; }

    body.leitor-body { font-size: 1.1rem; /* Padrão mobile */ }
    
    .admin-box { margin-top: 80px; padding: 20px; }
    .admin-tab { padding: 0.8rem 1rem; font-size: 0.9rem; }
}

/* === NOVOS ESTILOS DE CATEGORIA (V2) === */
.category-section-v2 {
    position: relative;
    padding-top: 2rem; /* Espaço para o título */
    /* background-image é definido inline no HTML */
    background-size: cover;
    background-position: center;
    overflow: hidden; /* Garante que o overlay funcione */
    
    /* Fallback (cor de fundo se a imagem não carregar) */
    background-color: #1a1a1a; 
}

/* O overlay que escurece a arte de fundo para o texto ficar legível */
.banner-overlay-v2 {
    position: absolute;
    inset: 0; /* Cobre tudo: top, bottom, left, right */
    /* Gradiente: Começa escuro (embaixo) e fica mais transparente em cima */
    linear-gradient(to top, rgba(20, 20, 20, 0.95) 15%, /* Mais escuro onde os livros/prateleira estão */ rgb(20 20 20 / 0%) 60%, rgba(20, 20, 20, 0.8) 100%)
    z-index: 1; /* Fica atrás de todo o conteúdo */
}

/* O novo título da categoria */
.category-title-v2 {
    position: relative; /* Para ficar na frente do overlay */
    z-index: 2;
    font-size: 1.5rem; /* 40px */
    color: var(--white-text);
    margin-bottom: 1.5rem; /* Espaço entre o título e os livros */
    padding-left: 2rem; /* Alinhamento (pode ajustar) */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

/* O container da prateleira que agrupa os livros e a barra */
.shelf-container {
    position: relative;
    z-index: 2; /* Fica na frente do overlay */
}

/* A fileira de livros dentro da nova seção */
.category-section-v2 .book-row {
    padding-left: 2rem;
    padding-right: 2rem;
    /* Adiciona um padding-bottom para os cards não colarem na prateleira */
    padding-bottom: 1rem; 
}

/* A prateleira laranja */
.shelf-bar-v2 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px; /* Altura da prateleira (pode ajustar) */
    
    /* Usei um laranja-queimado da sua imagem de exemplo */
    background-color: #F98C2C; 
    
    z-index: 1; /* Fica atrás dos cards */
    box-shadow: 0 -2px 5px rgba(0,0,0,0.3);
}

/* Os cards de livro */
.category-section-v2 .book-card {
     position: relative; /* Garante que o card fique */
     z-index: 2; /* na frente da prateleira */
}


/* --- Modificações em seletores antigos --- */
/* Remove a margem-fundo do H2 antigo, já que não o usamos mais */
main .font-anton.text-3xl.md\:text-4xl {
    margin-bottom: 0; 
}

/* Ajuste de tamanho para "Continue Lendo" */
#continue-reading-row .book-card {
    width: 130px; /* <- O padrão era 180px. Ajuste como desejar. */
}

/* Ajuste para telas móveis */
@media (max-width: 768px) {
    #continue-reading-row .book-card {
        width: 30vw; /* <- O padrão era 40vw. Ajuste como desejar. */
    }
}
/* Ajuste de tamanho para o TÍTULO "Continue Lendo" */
#continue-reading-section h2 {
    /* O padrão era text-3xl (aprox 30px). 
       Vamos usar 1.5rem (aprox 24px) */
    font-size: 1.5rem;
}

/* Ajuste para telas médias (md) e maiores */
@media (min-width: 768px) {
    #continue-reading-section h2 {
         /* O padrão era md:text-4xl (aprox 36px).
            Vamos usar 1.75rem (aprox 28px) */
        font-size: 1.75rem;
    }
}
/* === NOVOS ESTILOS DE BUSCA (index.html) === */

/* Garante que o container de resultados ocupe o espaço */
#search-results-section {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Alinha a fileira de resultados */
#search-results-row {
    /* Faz os cards quebrarem a linha, em vez de ficarem em fileira única */
    flex-wrap: wrap; 
    
    /* Remove o scroll horizontal */
    overflow-x: hidden; 
    
    /* Adiciona um espaçamento entre os cards */
    gap: 1rem; 
    
    /* Centraliza os cards */
    justify-content: center; 
}

/* Ajusta o tamanho do card na busca (para ficar igual ao "continue lendo") */
#search-results-row .book-card {
    width: 130px;
}

@media (min-width: 768px) {
    #search-results-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    #search-results-row .book-card {
        width: 180px; /* Tamanho normal em desktop */
    }
}
/* === [NOVO] ESTILO PARA TAG "COMPRAR" === */
/* === [ATUALIZADO] ESTILO PARA TAG "COMPRAR" (Estilo Neon) === */
.buy-text-tag {
    position: absolute;
    bottom: 5px; /* Fica 5px da borda inferior */
    left: 5px;   /* Fica 5px da borda esquerda */
    background-color: rgba(0, 0, 0, 0.85); /* Fundo escuro para destacar o neon */
    color: #1E90FF; /* Azul Neon */
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.9rem; /* 9.6px - Padrão dos outros */
    padding: 2px 5px;
    border-radius: 3px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* Efeito neon */
    text-shadow: 
}
/* === [NOVO] Estilo do Logo no Header === */
.header-logo {
    height: 100px; /* Altura do logo */
    width: auto;
    object-fit: contain;
}

/* Ajuste específico para o header do Admin */
.page-header .admin-logo {
    height: 50px; 
    filter: brightness(0) invert(1); /* Deixa o logo branco */
    opacity: 0.8;
}
/* === [NOVO] ESTILOS SEÇÃO DEVOCIONAIS (index.html) === */
        
/* A fileira */
.devotional-row {
    gap: 1rem; /* Espaçamento entre os cards */
}

/* Esconde a barra de scroll (opcional, mas limpo) */
.devotional-row::-webkit-scrollbar {
    display: none;
}

/* O card quadrado */
.devotional-card {
    flex-shrink: 0;
    width: 150px; /* Tamanho do card em desktop */
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--card-bg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid #374151;
    cursor: pointer;
	position: relative; /* <--- ADICIONADO */
}

.devotional-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.devotional-card:hover {
    transform: translateY(-5px) scale(1.05);
    z-index: 10;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* Ajuste para mobile */
@media (max-width: 768px) {
    .devotional-card {
        width: 120px; /* Cards um pouco menores no mobile */
        height: 120px;
    }
    #devotional-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    #devotional-section .font-anton {
        font-size: 2.25rem; /* 36px */
    }
}
/* === [FIM] ESTILOS DEVOCIONAIS === */

/* === [NOVO] PÁGINA DE DEVOCIONAIS (devocionais.html) === */

.devotional-hero {
    position: relative;
    width: 100%;
    height: 60vh; /* 60% da altura da tela */
    min-height: 300px;
    max-height: 450px;
    background-size: cover;
    background-position: center 30%; /* Ajusta o foco da imagem */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.devotional-hero-overlay {
    position: absolute;
    inset: 0;
    /* Gradiente escuro para legibilidade */
    background: linear-gradient(to top, 
        rgba(20, 20, 20, 0.95) 0%,  
        rgba(20, 20, 20, 0.4) 50%, 
        rgba(20, 20, 20, 0.8) 100%
    );
    z-index: 1;
}

.devotional-hero-content {
    position: relative;
    z-index: 2;
    padding: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}

/* O grid de cards */
.devotional-grid {
    display: grid;
    /* Cria colunas responsivas: 
       - Tenta encaixar cards de 150px.
       - Em telas pequenas, 2 colunas (minmax 120px)
       - Em telas grandes, várias colunas.
    */
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem; /* Espaço entre os cards */
}

/* Reutilizando o .devotional-card que já criamos,
  mas garantindo que ele funcione bem no grid.
*/
.devotional-grid .devotional-card {
    width: 100%; /* O grid controla a largura */
    height: auto;
    aspect-ratio: 1 / 1; /* Força o card a ser quadrado */
}

/* Ajuste para mobile */
@media (max-width: 768px) {
    .devotional-hero {
        height: 40vh;
    }
    .devotional-hero-content .font-anton {
        font-size: 3.5rem; /* 56px */
    }
    .devotional-grid {
        /* Em telas menores, garante no mínimo 120px */
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }
}
/* === [FIM] PÁGINA DE DEVOCIONAIS === */

/* === [NOVO] BARRA DE NAVEGAÇÃO INFERIOR === */
.bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px; /* Altura da barra */
    background-color: #1B1B1B; /* Cor do rodapé antigo */
    border-top: 1px solid #374151; /* Linha sutil */
    display: flex;
    justify-content: space-around; /* Distribui os ícones */
    align-items: center;
    z-index: 1000;
}

.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--light-text); /* Cor padrão (cinza) */
    font-size: 0.75rem; /* 12px */
    font-weight: 500;
    transition: color 0.2s ease;
    flex-grow: 1; /* Faz todos os links ocuparem o mesmo espaço */
    padding: 8px 0;
}

.bottom-nav-link i {
    font-size: 1.25rem; /* 20px */
    margin-bottom: 4px;
}

/* Estilo do link ATIVO */
.bottom-nav-link.active {
    color: var(--white-text); /* Cor branca para o ícone ativo */
    /* Você pode adicionar um tom de cor VIP se quiser */
    /* color: var(--vip-gold); */
}

.bottom-nav-link:hover {
    color: var(--white-text);
}

/* [IMPORTANTE] Adiciona espaço no final da página */
/* para que o rodapé não cubra o conteúdo */
body.with-bottom-nav {
    padding-bottom: 80px; /* Um pouco mais que a altura da barra */
}

/* === [NOVO] Botão de Favoritos (detalhes.html) === */
.details-buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem; /* Espaço entre os botões */
    margin-bottom: 2.5rem; /* Margem que o .read-button tinha */
}

/* Ajusta o botão de leitura para o novo container */
.read-button {
    margin: 0; /* Remove a margem automática */
    flex-grow: 1; /* Faz o botão de leitura crescer */
    max-width: 400px; /* Limita o tamanho */
}

.favorite-button {
    flex-shrink: 0; /* Impede que o botão encolha */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--card-bg); /* Fundo cinza escuro */
    border: 1px solid var(--light-text);
    color: var(--light-text); /* Ícone cinza */
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.favorite-button:hover {
    border-color: var(--white-text);
    color: var(--white-text);
}

/* Estado Ativo (Favoritado) */
.favorite-button.active {
    background-color: var(--vip-gold);
    border-color: var(--vip-gold);
    color: var(--dark-bg); /* Ícone escuro */
}

.favorite-button .icon-solid {
    display: none; /* Esconde o ícone cheio por padrão */
}

.favorite-button.active .icon-solid {
    display: inline-block; /* Mostra o ícone cheio */
}
.favorite-button.active .icon-regular {
    display: none; /* Esconde o ícone vazio */
}

/* === [INÍCIO] NOVOS ESTILOS DA LOJA (loja.html) === */

.store-hero {
    position: relative;
    width: 100%;
    height: 50vh; /* 50% da altura da tela */
    min-height: 250px;
    max-height: 400px;
    background-size: cover;
    background-position: center 30%; /* Ajusta o foco da imagem */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.store-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        rgba(20, 20, 20, 0.95) 0%,  
        rgba(20, 20, 20, 0.4) 50%, 
        rgba(20, 20, 20, 0.8) 100%
    );
    z-index: 1;
}

.store-hero-content {
    position: relative;
    z-index: 2;
    padding: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}

/* Grid de Produtos */
.product-grid {
    display: grid;
    /* Colunas responsivas: Tenta encaixar cards de 280px */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem; /* Espaço entre os cards */
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid #374151;
    display: flex;
    flex-direction: column; /* Organiza o card verticalmente */
    transition: all 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.product-card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* Proporção da imagem */
    object-fit: cover;
}

.product-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Faz esta área crescer para preencher o espaço */
}

.product-title {
    font-size: 1.25rem; /* 20px */
    font-weight: 600;
    color: var(--white-text);
}

.product-description {
    font-size: 0.9rem; /* 14px */
    color: var(--light-text);
    margin: 0.5rem 0 1rem 0;
    line-height: 1.6;
    flex-grow: 1; /* Empurra o preço e botão para baixo */
}

.product-price {
    font-family: 'Anton', sans-serif;
    font-size: 1.75rem; /* 28px */
    color: var(--vip-gold);
    margin-bottom: 1rem;
}

.product-buy-button {
    display: block;
    background: var(--main-red);
    color: var(--white-text);
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    padding: 12px;
    width: 100%;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s;
    margin-top: auto; /* Garante que o botão fique no final */
}
.product-buy-button:hover {
    background-color: #f6121d;
}

/* Ajustes mobile para a loja */
@media (max-width: 768px) {
    .store-hero {
        height: 30vh;
    }
    .store-hero-content .font-anton {
        font-size: 3.5rem; /* 56px */
    }
    .product-grid {
        /* Em telas menores, garante no mínimo 250px */
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
}
/* === [FIM] NOVOS ESTILOS DA LOJA === */

/* === [INÍCIO] NOVOS ESTILOS DE AUDIOBOOK (index.html) === */

/* A fileira (igual à devotional-row) */
.audiobook-row {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1.5rem; /* Espaço para a prateleira */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-purple) transparent;
    gap: 1rem; /* Espaçamento entre os cards */
}

/* Esconde a barra de scroll (opcional, mas limpo) */
.audiobook-row::-webkit-scrollbar {
    display: none;
}

/* O card retangular (A MÁGICA ACONTECE AQUI) */
.audiobook-card {
    flex-shrink: 0;
    
    /* LARGURA do .devotional-card */
    width: 150px; 
    
    /* PROPORÇÃO do .book-card */
    aspect-ratio: 2 / 3; 
    height: auto; /* Altura automática baseada na proporção */

    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--card-bg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid #374151;
    cursor: pointer;
	position: relative; /* <--- ADICIONADO */
}

.audiobook-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.audiobook-card:hover {
    transform: translateY(-5px) scale(1.05);
    z-index: 10;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* Ajuste para mobile (largura do .devotional-card no mobile) */
@media (max-width: 768px) {
    .audiobook-card {
        width: 120px;
    }
}
/* === [FIM] NOVOS ESTILOS DE AUDIOBOOK === */

/* ======================================= */
/* ==== [NOVO] ESTILOS DE VÍDEOS (index.html) ==== */
/* ======================================= */

/* A fileira (igual à audiobook-row) */
.video-row {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1.5rem; /* Espaço para a prateleira */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-purple) transparent;
    gap: 1rem; /* Espaçamento entre os cards */
}

/* Esconde a barra de scroll (opcional, mas limpo) */
.video-row::-webkit-scrollbar {
    display: none;
}

/* O card retangular 16:9 */
.video-card {
    flex-shrink: 0;
    
    /* LARGURA (vamos fazê-lo maior que os outros) */
    width: 180px; 
    
    /* PROPORÇÃO 16:9 */
    aspect-ratio: 2 / 3; 
    height: auto; /* Altura automática baseada na proporção */

    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--card-bg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid #374151;
    cursor: pointer;
	position: relative; /* <--- ADICIONADO */
}

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card:hover {
    transform: translateY(-5px) scale(1.05);
    z-index: 10;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* Ajuste para mobile (um pouco menor no mobile) */
@media (max-width: 768px) {
    .video-card {
        width: 30vw;
    }
}
/* === [FIM] NOVOS ESTILOS DE VÍDEOS === */
/* === [NOVO] Layout Admin com Sidebar === */

/* Remove paddings e centralização do body nos painéis de admin */
body.admin-body {
    padding: 0 !important;
    margin: 0 !important;
    display: block; /* Sobrescreve o flex do body antigo */
}

/* Wrapper da senha */
#password-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 1rem;
    background-color: var(--dark-bg);
}
#password-wrapper.hidden {
    display: none;
}

/* O layout principal (sidebar + content) */
#admin-layout {
    display: flex;
    width: 100vw;
    height: 100vh;
}

/* A Sidebar */
#admin-sidebar {
    width: 280px; /* Largura da sidebar */
    background-color: #1a1a1a; /* Um pouco mais escuro */
    border-right: 1px solid #374151;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    flex-shrink: 0;
}

/* Header da Sidebar (Logo) */
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0.5rem;
    border-bottom: 1px solid #374151;
    margin-bottom: 1.5rem;
}
.sidebar-header .admin-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: none; /* Remove o filtro de inversão antigo */
    opacity: 1;
}
.sidebar-header .logo-text {
    font-family: 'Anton', sans-serif;
    font-size: 1.5rem;
    color: var(--white-text);
    line-height: 1;
}

/* Menu da Sidebar */
.admin-nav-menu {
    flex-grow: 1; /* Empurra o link 'voltar' para baixo */
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto; /* Adiciona scroll se o menu for muito grande */
}
.admin-nav-menu li {
    margin-bottom: 0.5rem;
}
.admin-nav-link {
    display: flex;
    align-items: center;
    padding: 0.85rem 1rem;
    color: var(--light-text);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.admin-nav-link i.fa-fw {
    width: 25px; /* Alinha os ícones */
    font-size: 1.1rem;
    margin-right: 0.75rem;
    text-align: center;
}
.admin-nav-link:hover {
    background-color: #2a2a2a;
    color: var(--white-text);
}
.admin-nav-link.active {
    background-color: var(--vip-gold);
    color: #000;
    font-weight: 700;
}

/* Link de Voltar (Rodapé da Sidebar) */
.sidebar-footer-link {
    display: flex;
    align-items: center;
    padding: 0.85rem 1rem;
    margin-top: 1rem;
    color: var(--light-text);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
}
.sidebar-footer-link i.fa-fw {
     width: 25px;
     font-size: 1.1rem;
     margin-right: 0.75rem;
     text-align: center;
}
.sidebar-footer-link:hover {
    background-color: var(--main-red);
    color: var(--white-text);
}

/* Área de Conteúdo Principal */
#admin-main-content {
    flex-grow: 1;
    overflow-y: auto; /* Permite scroll só no conteúdo */
    padding: 2.5rem;
    background-color: var(--dark-bg);
}

/* === [REMOÇÕES] Estilos Antigos === */
/* === [REMOÇÕES] Estilos Antigos === */
/* Esconde o header antigo e as abas SOMENTE nas páginas de admin */
body.admin-body .page-header,
body.admin-body .admin-tabs, 
body.admin-body .admin-tab { 
    display: none !important; 
}

/* O 'admin-box' só se aplica à senha agora */
.admin-box {
    margin-top: 0; /* Remove a margem do topo */
}

/* === [NOVO] Estilos dos Cards na Busca === */

/* Define um tamanho padrão para todos os cards dentro da busca */
#search-results-row .book-card,
#search-results-row .audiobook-card,
#search-results-row .devotional-card {
    width: 130px;
    margin-right: 0; /* O 'gap' do flexbox já cuida do espaço */
}

/* O card de vídeo (16:9) é mais largo */
#search-results-row .video-card {
    width: 200px; /* Um pouco maior */
    margin-right: 0;
}

/* Em telas maiores, aumenta o tamanho */
@media (min-width: 768px) {
    #search-results-row .book-card,
    #search-results-row .audiobook-card,
    #search-results-row .devotional-card {
        width: 150px;
    }

    #search-results-row .video-card {
        width: 250px; /* Tamanho padrão de desktop */
    }
}
a.swiper-slide {
    cursor: pointer;
    display: flex; /* Garante que o alinhamento do Swiper continue funcionando */
}
/* css/style.css - Adicionar ao final */

/* === STORIES / DESTAQUES === */
.stories-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1.5rem 1rem; /* Espaço para o anel */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
    background-color: #141414; /* Fundo escuro */
    border-bottom: 1px solid #333;
}
.stories-container::-webkit-scrollbar { 
    display: none; /* Chrome/Safari */
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 80px;
    flex-shrink: 0;
}

.story-ring {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    padding: 3px;
    /* Gradiente estilo Instagram/Destaque */
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
    position: relative;
    transition: transform 0.2s;
}
.story-item:hover .story-ring {
    transform: scale(1.05);
}

.story-ring.viewed {
    background: #555; /* Cor cinza para stories já vistos */
}

.story-thumbnail {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #141414; /* Borda interna preta para separar */
    background-color: #000;
}

.story-title {
    margin-top: 5px;
    font-size: 0.75rem;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* === VIEWER DE STORIES (TELA CHEIA) === */
#story-viewer-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #000;
    z-index: 3000;
    /* REMOVIDO: display: flex; (Isso causava o bloqueio) */
    justify-content: center;
    align-items: center;
}

/* Esta regra garante que quando removermos a classe 'hidden', ele vire flex */
#story-viewer-overlay:not(.hidden) {
    display: flex;
}

.story-content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 450px; /* Largura máxima mobile */
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
}

.story-media {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mostra a imagem/vídeo inteiro */
    background: #000;
}

/* Barra de Progresso Superior */
.story-progress-bar-container {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 10;
}
.story-progress-segment {
    flex: 1;
    height: 2px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
}
.story-progress-fill {
    height: 100%;
    background-color: #fff;
    width: 0%;
    /* A animação será controlada via JS */
}

/* Header do Story */
.story-header {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.story-close-btn {
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Áreas de Toque (Navegação) */
.story-tap-left, .story-tap-right {
    position: absolute;
    top: 0;
    bottom: 100px; /* Deixa espaço para o botão saiba mais */
    width: 30%;
    z-index: 5;
}
.story-tap-left { left: 0; }
.story-tap-right { right: 0; }

/* Botão Saiba Mais */
.story-cta-container {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}
.story-cta-btn {
    background-color: #fff;
    color: #000;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.story-cta-btn:hover {
    transform: scale(1.05);
}
/* === UTILITÁRIOS DE COR VIP === */
/* Adicione isso ao final do seu style.css para que os botões dourados funcionem */

.bg-vip-gold {
    background-color: var(--vip-gold) !important;
}

.text-vip-gold {
    color: var(--vip-gold) !important;
}

.border-vip-gold {
    border-color: var(--vip-gold) !important;
}
/* Estilos para o Player de Propaganda */
#ad-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #000;
    z-index: 100; /* Acima de tudo, inclusive da capa */
}

/* Botão de Pular Ativo */
#skip-ad-btn.can-skip {
    background-color: var(--white-text);
    color: #000;
    cursor: pointer;
    opacity: 1;
    border: 1px solid var(--white-text);
}
#skip-ad-btn.can-skip:hover {
    background-color: #ddd;
}