/* --- Estructura Global --- */
body.single-novel {
    background-color: #ffffff; /* Fondo Blanco */
    color: #111;
}

.novel-page-clean {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    padding: 60px 20px;
    max-width: 1100px;
    margin: var(--margin-main-container);
}

/* --- Columna Izquierda (Sidebar) --- */
.sticky-content {
    position: sticky;
    top: 100px;
}

.main-cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    height: 100%;
}

.category-label {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--color-tercary); /* Verde acento estilo Webtoon */
    font-weight: 800;
    text-transform: uppercase;
}

.info-header h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 5px 0;
    line-height: 1.1;
}

.author-name {
    color: #777;
    font-size: 14px;
    margin-bottom: 20px;
}

.btn-read-now {
    display: block;
    background: var(--color-primary);
    color: #fff;
    text-align: center;
    padding: 15px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 30px;
    transition: transform 0.2s;
}

.btn-read-now:hover {
    transform: scale(1.02);
    background: #333;
}

/* Sinopsis y Tags */
.synopsis-section h3, .tags-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

.synopsis-text {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 30px;
}

.tag-cloud a {
    display: inline-block;
    padding: 6px 15px;
    background: #f5f5f5;
    color: #666;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    margin: 0 5px 8px 0;
}

/* --- Columna Derecha (Episodios) --- */
.episodes-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #111;
    padding-bottom: 15px;
    margin-bottom: 10px;
}

.episodes-top-bar h2 {
    font-size: 20px;
    font-weight: 800;
    border-bottom: solid 2px;
}

.episode-row {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.episode-row:hover {
    background: #fafafa;
}

.episode-thumb {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    margin-right: 20px;
}

.episode-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.episode-main-info {
    flex-grow: 1;
}

.ep-title {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: #111;
}

.ep-date {
    font-size: 12px;
    color: #999;
}

.episode-badge {
    font-size: 11px;
    font-weight: 800;
    color: var(--color-tercary);
    padding: 4px 8px;
    border: 1px solid var(--color-tercary);
    border-radius: 4px;
}

/* Móvil */
@media (max-width: 850px) {
    .novel-page-clean {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .sticky-content { position: static; }
    .main-cover { max-width: 300px; margin: 0 auto 20px; display: block; }
    .info-header { text-align: center; }
}


.chapter-tags {
    margin-bottom: 20px;
}

.kink-badge {
    display: inline-block;
    background-color: #f2f2f2;
    color: #444;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 8px;
    border: 1px solid #ddd;
    text-decoration: none;
}


/* --- OPTIMIZACIÓN MOBILE (Móviles y Tablets) --- */
@media (max-width: 850px) {
    .novel-page-clean {
        grid-template-columns: 1fr; /* Cambia a una sola columna */
        padding: 20px 15px;
        gap: 40px; /* Espacio entre la info y los episodios */
        margin-top: 0;
    }

    .sticky-content {
        position: static; /* Desactiva el modo pegajoso en móvil */
    }

    /* Portada: Centrada y con tamaño controlado */
    .main-cover {
        max-width: 320px; 
        width: 80%; /* Para que respire en pantallas muy pequeñas */
        margin: 0 auto 25px;
        display: block;
    }

    /* Cabecera de información centrada */
    .info-header {
        text-align: center;
    }

    .info-header h1 {
        font-size: 28px; /* Título ligeramente más pequeño */
        padding: 0 ;
    }

    .author-name {
        margin-bottom: 25px;
    }

    /* Botón de lectura más prominente */
    .btn-read-now {
        width: 100%;
        max-width: 350px;
        margin: 0 auto 35px;
        padding: 18px; /* Más fácil de tocar */
        font-size: 16px;
    }

    /* Tags: Convertidos en slider horizontal para ahorrar espacio vertical */
    .tag-cloud {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 8px;
        padding-bottom: 10px;
        scrollbar-width: none; /* Oculta scroll en Firefox */
        -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
    }

    .tag-cloud::-webkit-scrollbar {
        display: none; /* Oculta scroll en Chrome/Safari */
    }

    .tag-cloud a {
        margin: 0;
        flex-shrink: 0;
    }

    /* Ajustes en la lista de episodios */
    .episodes-top-bar {
        padding: 0 5px 15px;
    }

    .episode-row {
        padding: 18px 5px; /* Más espacio vertical para evitar clics accidentales */
    }

    .episode-thumb {
        width: 60px; /* Un poco más pequeña para dar prioridad al texto */
        height: 60px;
        margin-right: 15px;
    }

    .ep-title {
        font-size: 14px;
        line-height: 1.3;
    }
}

/* Ajuste extra para móviles muy pequeños (iPhone SE, etc) */
@media (max-width: 400px) {
    .info-header h1 {
        font-size: 24px;
    }
    
    .episode-badge {
        display: none; /* Ocultamos el badge "FREE" si no hay espacio para el título */
    }
}



/* Estilo para fila bloqueada */
.episode-row.locked-chapter {
    cursor: not-allowed;
    background: #f9f9f9;
    opacity: 0.8;
}

.episode-row.locked-chapter .ep-title {
    color: #999;
}

.episode-row.locked-chapter .locked-trigger {
    background: var(--color-primary);
    color: var(--color-tercary); /* Verde acento */
    border: none;
    font-size: 10px;
    padding: 5px 10px;
}

/* Opcional: difuminar un poco el texto para incitar a la membresía */
.episode-row.locked-chapter .ep-title {
    filter: blur(0.5px);
}


.upsell-text {
    color: #fff;
    display: flex;
    flex-direction: column;
}

.upsell-text strong {
    font-size: 16px;
    color: var(--color-tercary); /* Tu verde Webtoon */
    letter-spacing: 0.5px;
}

.upsell-text span {
    font-size: 13px;
    color: #999;
    margin-top: 2px;
}

.btn-beast-unlock {
    background: var(--color-tercary);
    color: #111 !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 12px;
    padding: 10px 20px;
    border-radius: 30px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-beast-unlock:hover {
    transform: scale(1.05);
}

/* Ajuste móvil */
@media (max-width: 600px) {
    .beast-upsell-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}




/* --- Estructura Global --- */
body.single-novel {
    background-color: #ffffff; /* Fondo Blanco */
    color: #111;
}

/* Integración con main_container */
.novel-page-clean {
    width: min(90vw, var(--max-main-width));
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    padding: 40px 0; /* Solo padding vertical, main_container maneja los márgenes */
}

/* --- Columna Izquierda (Sidebar) --- */
.sticky-content {
    position: sticky;
    top: 100px;
}

.main-cover {
    width: 100%;
    object-fit: cover;
    border-radius: 8px; /* Bordes ligeramente más suaves */
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin-bottom: 5px;
}

.category-label {
    font-size: 13px;
    color: #555; 
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.info-header h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.author-name {
    color: #777;
    font-size: 14px;
    margin-bottom: 15px;
}

.synopsis-text {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 20px;
}

/* Estilo de Tags adaptado a la imagen */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.tag-cloud a {
    display: inline-block;
    padding: 8px 14px;
    background: #f0f0f0;
    color: #333;
    border-radius: 6px; /* Borde estilo botón como en la captura */
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.btn-read-now {
    display: block;
    background: var(--color-primary);
    color: #fff;
    text-align: center;
    padding: 15px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 30px;
    transition: transform 0.2s;
}

.btn-read-now:hover {
    transform: scale(1.02);
    background: #333;
}

/* --- Columna Derecha (Episodios) --- */
.episodes-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 10px;
}

.episodes-top-bar h2 {
    font-size: 18px;
    font-weight: 800;
}

.episode-row {
    display: flex;
    align-items: center;
    padding: 12px 0; /* Sin padding lateral para alinear con el texto principal */
    text-decoration: none;
    transition: background 0.2s;
}

.episode-row:hover {
    background: #fafafa;
}

.episode-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    margin-right: 15px;
}

.episode-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.episode-main-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ep-title {
    display: block;
    font-weight: 700;
    font-size: 16px;
    color: #111;
    margin-bottom: 2px;
}

.ep-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.episode-badge {
    font-size: 13px;
    font-weight: 800;
    color: #111;
    text-transform: uppercase;
}


/* --- OPTIMIZACIÓN MOBILE (Clon visual de la app) --- */
@media (max-width: 850px) {
    .novel-page-clean {
        grid-template-columns: 1fr;
        padding: 0; /* Eliminamos padding extra, el main_container ya le da aire lateral */
        gap: 20px;
        width: min(90vw, var(--max-main-width));
        margin: var(--margin-main-container);
    }

    .sticky-content {
        position: static;
    }

    /* Portada full width tipo app */
    .main-cover {
        max-width: 100%; 
        width: 100%; 
        aspect-ratio: 1 / 1;
        border-radius: 8px;
        margin: 15px 0 15px 0;
        display: block;
    }

    /* Alineación izquierda estricta para emular la app */
    .info-header, .author-name, .synopsis-text, .category-label {
        text-align: left;
    }

    .info-header h1 {
        font-size: 26px; 
    }

    .synopsis-text {
        /* Opcional: Truncar el texto a 3 líneas como en la app */
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 15px;
    }

    .btn-read-now {
        width: 100%;
        max-width: none;
        padding: 16px; 
        font-size: 16px;
    }

    /* Ajustes en la lista de episodios para móvil */
    .episode-row {
        padding: 15px 0; 
    }

    .episode-thumb {
        width: 75px; 
        height: 75px;
        margin-right: 12px;
    }

    .ep-title {
        font-size: 15px;
    }
}


/* --- ESTILOS EXTRA (Bloqueados / Upsell) --- */

.episode-row.locked-chapter {
    cursor: not-allowed;
    opacity: 0.7;
}

.episode-row.locked-chapter .ep-title {
    color: #666;
}

.episode-row.locked-chapter .locked-trigger {
    background: var(--color-primary);
    color: #fff;
    border: none;
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
}




.upsell-text strong {
    font-size: 15px;
    color: #fff;
}

.upsell-text span {
    font-size: 12px;
    color: #aaa;
    display: block;
}

.btn-beast-unlock {
    background: #fff;
    color: #111 !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 12px;
    padding: 8px 16px;
    border-radius: 20px;
}

@media (max-width: 600px) {
    .beast-upsell-banner {
        flex-direction: row; /* Mantenlo en fila para parecerse al banner oscuro de la imagen */
        text-align: left;
        gap: 10px;
    }
}




.episodes-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 5px;
}

.episodes-top-bar h2 {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
}

.sort-episodes-btn {
    background: #f0f0f0;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #444;
    cursor: pointer;
    transition: all 0.2s;
}

.sort-episodes-btn:hover {
    background: #e5e5e5;
}

/* Fila de Episodio */
.episode-row {
    display: flex;
    align-items: center;
    padding: 20px 15px;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.3s ease, transform 0.2s;
    border-radius: 12px; /* Efecto de tarjeta al hacer hover */
}

.episode-row:hover:not(.locked-chapter) {
    background: #fff9fb; /* Un toque del color primario muy suave */
    transform: translateX(5px);
}

.episode-main-info {
    flex-grow: 1;
}

.ep-title {
    display: block;
    font-weight: 700;
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.ep-date {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

/* Estados Bloqueados */
.episode-row.locked-chapter {
    background: #fafafa;
    border-bottom: 1px solid #eee;
    margin: 5px 0;
}

.episode-row.locked-chapter .ep-title {
    color: #bbb;
}

.locked-badge {
    background: #ff408122; /* Fondo rosa suave */
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Banner Beast Mode Integrado */
.beast-upsell-banner {
    background: linear-gradient(135deg, #222 0%, #000 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-radius: 16px;
    margin: 25px 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

/* Adorno visual para el banner (opcional) */
.beast-upsell-banner::after {
    content: '🐾';
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 80px;
    opacity: 0.1;
    transform: rotate(-20deg);
}

.upsell-text strong {
    font-size: 18px;
    color: #fff;
    display: block;
    margin-bottom: 5px;
}

.upsell-text span {
    font-size: 14px;
    color: #aaa;
}

.btn-beast-unlock {
    background: var(--color-primary);
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    padding: 12px 24px;
    border-radius: 50px;
    z-index: 1;
    transition: transform 0.2s;
    box-shadow: 0 4px 15px rgba(255, 64, 129, 0.3);
}

.btn-beast-unlock:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 600px) {
    .beast-upsell-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
    }
}


/* Estilo para los Kinks dentro de la fila */
.ep-kinks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.ep-kinks a {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: #888;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.episode-row:hover .ep-kinks a {
    background: #e0e0e0;
    color: #444;
}

/* Ajuste de la fecha */
.ep-date {
    font-size: 12px;
    color: #999;
    font-weight: 400;
    display: block;
    margin-bottom: 2px;
}

/* Mejora visual de la fila para dar espacio a los kinks */
.episode-row {
    padding: 18px 15px;
    align-items: flex-start; /* Alineación arriba para que los kinks no empujen el centro */
}

.locked-badge {
    align-self: center; /* El badge de locked sí se queda centrado */
}





/* --- Sección de Recomendaciones --- */
.novel-recommendations {
    background-color: #fcfcfc;
    border-top: 1px solid #eee;
    padding: 60px 20px;
    margin-top: 40px;
}

.rec-container {
    max-width: 1100px;
    margin: 0 auto;
}

.rec-section-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #111;
}

.rec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.rec-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.rec-card:hover {
    transform: translateY(-8px);
}

.rec-image {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}

.rec-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rec-animal-tag {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--color-tercary); /* Usando el verde acento del tema */
    letter-spacing: 1px;
}

.rec-title {
    font-size: 16px;
    font-weight: 700;
    margin-top: 5px;
    line-height: 1.2;
}

/* Ajuste para móviles */
@media (max-width: 850px) {
    .rec-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .rec-section-title {
        text-align: center;
        font-size: 20px;
    }
}




/* --- Tags del Sidebar --- */
.novel-main-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0 20px 0;
}

.tag-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Estilo para Animales (Verde) */
.animal-badge {
    background-color: rgba(0, 211, 107, 0.1);
    color: var(--color-tercary);
    border: 1px solid rgba(0, 211, 107, 0.2);
}

/* Estilo para Kinks/Colección (Gris/Oscuro) */
.kink-badge {
    background-color: #f0f0f0;
    color: #666;
    border: 1px solid #ddd;
}

/* Ajuste del título para que no choque */
.info-header h1 {
    margin-bottom: 5px;
}


/* --- Tags del Sidebar --- */
.novel-main-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0 20px 0;
}

.tag-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Estilo para Animales (Verde) */
.animal-badge {
    background-color: rgba(0, 211, 107, 0.1);
    color: var(--color-tercary);
    border: 1px solid rgba(0, 211, 107, 0.2);
}

/* Estilo para Kinks/Colección (Gris/Oscuro) */
.kink-badge {
    background-color: #f0f0f0;
    color: #666;
    border: 1px solid #ddd;
}

/* Ajuste del título para que no choque */
.info-header h1 {
    margin-bottom: 5px;
}



/* Contenedor de la fila para alinear el botón a la derecha */
.episode-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
    border-bottom: 1px solid #f5f5f5;
}

/* Estilo del botón Read Now por capítulo */
.btn-read-episode {
    background-color: var(--color-primary); /* Tu color rosa/principal */
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 20px;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-left: 15px;
}

.btn-read-episode:hover {
    transform: scale(1.05);
    background-color: #333;
}

/* Tags de Kinks dentro del capítulo */
.ep-kinks {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.kink-tag {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: #888;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Ajuste móvil para que el botón no apriete el texto */
/* --- OPTIMIZACIÓN MÓVIL DE LA FILA DE EPISODIOS --- */
@media (max-width: 600px) {
    /* Mantiene la fila en formato horizontal (lado a lado) */
    .episode-row {
        flex-direction: row; 
        align-items: center; /* Centrado vertical */
        justify-content: space-between;
        gap: 10px;
        padding: 15px 10px; 
    }

    /* Evita que los textos largos empujen los botones fuera de la pantalla */
    .episode-main-info {
        flex: 1;
        min-width: 0; /* Clave para el truncamiento en flexbox */
    }
    
    /* Botón Read Now: Más compacto */
    .btn-read-episode {
        margin-left: 0;
        width: auto; /* Anulamos el 100% anterior */
        padding: 7px 14px;
        font-size: 14px;
    }

    /* Badge Early Access: Reducido para que quepa perfectamente */
    .early-access-badge {
        padding: 2px 6px;
        font-size: 9px;
        border-width: 1px;
        letter-spacing: 0;
    }

    .early-access-badge.desktop-badge {
        display: none !important;
    }

    /* Mostramos el que está al lado del título */
    .early-access-badge.mobile-badge {
        display: inline-block !important;
        padding: 2px 6px;
        font-size: 9px;
        border-width: 1px;
        margin-top: 1px;
    }
    
    /* Ajuste de alineación para el título y badge en móvil */
    .ep-title-wrapper {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap; /* Por si el título es muy largo */
    }

    .ep-actions {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
    }

}


/* Contenedor de la información a la izquierda */
.episode-main-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

/* Fila de Meta: Fecha + Kinks */
.ep-meta-row {
    display: flex;
    align-items: center; /* Alineación vertical */
    gap: 12px;           /* Espacio entre fecha y tags */
    flex-wrap: wrap;     /* Ajuste para móviles */
}

.ep-date {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

.ep-kinks {
    display: flex;
    gap: 6px;
    margin-top: 0 !important; /* Forzamos que no haya margen superior */
}

.kink-tag {
    background-color: #ff408122;
    color: var(--color-primary);
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}




.novel-stats-sidebar {
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    line-height: 1.6;
}

.stat-item strong {
    color: #111;
    font-weight: 700;
    margin-right: 5px;
}

.stat-item span {
    color: #666;
}



/* Estilo para Géneros (Azul) */
.genre-badge {
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

/* Ajuste general para que todas las etiquetas se vean iguales */
.tag-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
}

.novel-main-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}



.chapter-count-badge {
    color: var(--color-primary);
}








.ep-actions {
    display: flex;
    align-items: center;
    gap: 6px; /* Espacio entre el badge y el botón */
}

.early-access-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #2e7d32;
    border: 1.5px solid #2e7d32;
    border-radius: 6px;
    background-color: transparent;
    letter-spacing: 0.5px;
    white-space: nowrap;
}




/* Alineación del título y badge */
.ep-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.ep-title-wrapper .ep-title {
    margin-bottom: 0; /* Evita espacios extra */
}

/* Ocultar el badge móvil en escritorio por defecto */
.early-access-badge.mobile-badge {
    display: none !important;
}

.early-access-badge.desktop-badge {
    display: inline-block !important;
}





/* --- ESTADOS POR DEFECTO (Escritorio) --- */

/* Ocultamos el que va junto al título */
.early-access-badge.mobile-badge {
    display: none !important;
}

/* Mostramos el que va junto al botón */
.early-access-badge.desktop-badge {
    display: inline-block !important;
}

/* --- OPTIMIZACIÓN MÓVIL --- */
@media (max-width: 600px) {
    
    /* 1. Ocultamos el badge de escritorio (el de arriba del botón) */
    .early-access-badge.desktop-badge {
        display: none !important;
    }

    /* 2. Mostramos el badge móvil (el de al lado del título) */
    .early-access-badge.mobile-badge {
        display: inline-block !important;
        padding: 2px 6px;
        font-size: 10px;
        border-width: 1px;
        vertical-align: middle;
    }

    /* Aseguramos que el contenedor del título alinee bien ambos */
    .ep-title-wrapper {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }
}