/* =========================================================
   NOVIDADES — novidades.php
   ========================================================= */

.novidades-page {
    width: 100%;
    padding: 100px 48px 60px;
    min-height: 70vh;
}

.novidades-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.novidades-header-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.novidades-title {
    color: #fff;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 2.4em;
    font-weight: 900;
    letter-spacing: -1px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.novidades-title-bar {
    display: inline-block;
    width: 6px;
    height: 36px;
    border-radius: 3px;
    background: linear-gradient(180deg, #e50914, #ff3d47);
    box-shadow: 0 0 14px rgba(229, 9, 20, 0.6);
}

.novidades-subtitle {
    color: #9a9caa;
    font-family: Arial, sans-serif;
    font-size: 0.95em;
    margin: 0;
    padding-left: 20px;
}

.novidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
    width: 100%;
}

.novidade-card {
    text-decoration: none;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: #0e0b14;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
    transition: transform 0.4s cubic-bezier(.2,.9,.3,1.2), box-shadow 0.4s ease;
}

.novidade-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.85),
                0 0 0 2px rgba(229, 9, 20, 0.65);
    z-index: 3;
}

.novidade-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.novidade-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.novidade-card:hover .novidade-cover img { transform: scale(1.08); }

.novidade-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    padding: 6px 12px;
    background: linear-gradient(135deg, #e50914, #ff3d47);
    color: #fff;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 0.7em;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border-radius: 100px;
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.5);
    animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.novidade-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 14px 14px;
    background: linear-gradient(180deg,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.5) 50%,
        rgba(0,0,0,0.94) 100%);
    z-index: 2;
    pointer-events: none;
}

.novidade-title {
    color: #fff;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 0.92em;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

/* Empty state */
.novidades-empty {
    width: 100%;
    max-width: 520px;
    margin: 60px auto;
    padding: 60px 32px;
    text-align: center;
    background: rgba(14, 11, 20, 0.5);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.novidades-empty-icon { font-size: 4em; line-height: 1; margin-bottom: 8px; }
.novidades-empty h2 {
    color: #fff; font-family: 'Roboto', Arial, sans-serif;
    font-size: 1.6em; font-weight: 800; margin: 0;
}
.novidades-empty p {
    color: #9a9caa; font-family: Arial, sans-serif;
    font-size: 0.95em; line-height: 1.6; margin: 0; max-width: 380px;
}
.novidades-empty-btn {
    display: inline-block; margin-top: 10px; padding: 14px 32px;
    background: linear-gradient(135deg, #e50914, #ff3d47);
    color: #fff; font-family: 'Roboto', Arial, sans-serif;
    font-size: 0.95em; font-weight: 700; text-decoration: none;
    border-radius: 12px; box-shadow: 0 10px 24px rgba(229, 9, 20, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.novidades-empty-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 32px rgba(229, 9, 20, 0.6);
}

/* Responsivo */
@media (max-width: 1099px) {
    .novidades-page  { padding: 90px 32px 50px; }
    .novidades-title { font-size: 2.1em; }
    .novidades-title-bar { height: 32px; }
    .novidades-grid  { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
}

@media (max-width: 767px) {
    .novidades-page    { padding: 80px 20px 40px; }
    .novidades-title   { font-size: 1.7em; gap: 10px; }
    .novidades-title-bar { height: 26px; }
    .novidades-subtitle { font-size: 0.88em; padding-left: 16px; }
    .novidades-grid    { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
    .novidade-overlay  { padding: 32px 12px 12px; }
    .novidade-title    { font-size: 0.85em; }
}

@media (max-width: 480px) {
    .novidades-page  { padding: 76px 12px 32px; }
    .novidades-title { font-size: 1.5em; }
    .novidades-grid  { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .novidade-title  { font-size: 0.78em; }
}



/* =========================================================
   BOTÃO NOVIDADES + BADGE
   ========================================================= */
.lupa.notif { position: relative; }

.notif-icon {
    font-size: 18px;
    line-height: 1;
    display: inline-block;
}

.notif-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #e50914;
    color: #fff;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 0.65em;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    border-radius: 100px;
    box-shadow: 0 3px 10px rgba(229, 9, 20, 0.6);
    animation: pulseBadge 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}




/* =========================================================
   MODAL NOVIDADES
   ========================================================= */
.modal-novidades-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-novidades-overlay.is-open { opacity: 1; }
.modal-novidades-overlay.is-closing { opacity: 0; }

.modal-novidades {
    position: relative;
    width: 100%;
    max-width: 880px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(180deg, #1a1c2b 0%, #0e0b14 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s cubic-bezier(.2,.9,.3,1.2);
    scrollbar-width: none;
}
.modal-novidades::-webkit-scrollbar { display: none; }
.modal-novidades-overlay.is-open .modal-novidades { transform: translateY(0) scale(1); }

.modal-nov-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(20, 20, 28, 0.7);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease;
    z-index: 2;
}

.modal-nov-close:hover {
    background: #e50914;
    transform: rotate(90deg);
}

.modal-nov-header {
    margin-bottom: 24px;
    padding-right: 44px;
}

.modal-nov-header h2 {
    color: #fff;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 1.9em;
    font-weight: 900;
    margin: 0 0 6px;
    letter-spacing: -0.8px;
}

.modal-nov-header p {
    color: #9a9caa;
    font-family: Arial, sans-serif;
    font-size: 0.95em;
    margin: 0;
}

.modal-nov-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.modal-nov-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.3s ease;
}

.modal-nov-card:hover { transform: translateY(-4px); }

.modal-nov-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: #0e0b14;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.modal-nov-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.modal-nov-card:hover .modal-nov-cover img { transform: scale(1.06); }

.modal-nov-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 3px 8px;
    background: #e50914;
    color: #fff;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 0.6em;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 100px;
    box-shadow: 0 3px 10px rgba(229, 9, 20, 0.6);
}

.modal-nov-title {
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 0.82em;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

.modal-nov-footer {
    text-align: center;
    padding-top: 8px;
}

.modal-nov-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #e50914, #ff3d47);
    color: #fff;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 0.95em;
    font-weight: 800;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(229, 9, 20, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.modal-nov-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(229, 9, 20, 0.6);
}

@media (max-width: 767px) {
    .modal-novidades { padding: 24px 18px; border-radius: 16px; }
    .modal-nov-header h2 { font-size: 1.5em; }
    .modal-nov-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; }
    .modal-nov-title { font-size: 0.75em; }
    .modal-nov-btn { padding: 11px 26px; font-size: 0.88em; }
}

@media (max-width: 480px) {
    .modal-novidades { padding: 20px 14px; }
    .modal-nov-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .modal-nov-title { font-size: 0.7em; }
}



/* =========================================================
   NOVIDADES — diferenciação série vs capítulo
   ========================================================= */

/* Capa padrão (capítulo) — vertical 2:3 */
.novidade-card .novidade-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    transition: aspect-ratio 0.3s ease;
}

/* Série — capa horizontal 16:10 */
.novidade-card.is-serie .novidade-cover {
    aspect-ratio: 16 / 10;
}

/* Ajusta a imagem pros dois formatos */
.novidade-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

/* Selo do tipo (Série / Capítulo) */
.novidade-tipo {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    padding: 4px 10px;
    background: rgba(20, 20, 28, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 0.65em;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.novidade-card.is-serie .novidade-tipo {
    background: rgba(229, 9, 20, 0.92);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.5);
}

/* Série — overlay mais alto (capa menor em altura) */
.novidade-card.is-serie .novidade-overlay {
    padding: 30px 14px 14px;
}

/* Série — título um pouco maior (tem mais espaço horizontal) */
.novidade-card.is-serie .novidade-title {
    font-size: 1.05em;
    -webkit-line-clamp: 2;
}

/* Série — sombra e hover com brilho extra */
.novidade-card.is-serie {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(229, 9, 20, 0.15);
}

.novidade-card.is-serie:hover {
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.85),
                0 0 0 2px rgba(229, 9, 20, 0.75),
                0 0 40px rgba(229, 9, 20, 0.25);
}

/* Grid — séries ocupam 2 colunas no desktop */
@media (min-width: 768px) {
    .novidades-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    .novidade-card.is-serie {
        grid-column: span 2;
    }
}

/* Responsivo — em mobile, série continua 1 coluna */
@media (max-width: 767px) {
    .novidade-card.is-serie {
        grid-column: auto;
    }
    .novidade-card.is-serie .novidade-title {
        font-size: 0.95em;
    }
}


/* Selo do tipo no modal */
.modal-nov-tipo {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 3px 8px;
    background: rgba(20, 20, 28, 0.9);
    color: #fff;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 0.6em;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-nov-card.is-serie .modal-nov-tipo {
    background: rgba(229, 9, 20, 0.92);
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(229, 9, 20, 0.5);
}

/* Série — capa horizontal no modal */
.modal-nov-card.is-serie .modal-nov-cover {
    aspect-ratio: 16 / 10;
}

/* Série — ocupa 2 colunas no grid do modal */
@media (min-width: 600px) {
    .modal-nov-card.is-serie {
        grid-column: span 2;
    }
}

/* Badge "Novo" — reposicionado pra não colidir com o selo do tipo */
.modal-nov-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 3px 8px;
    background: #e50914;
    color: #fff;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 0.6em;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 100px;
    box-shadow: 0 3px 10px rgba(229, 9, 20, 0.6);
}