/* =========================
   TOKKINOVEL CMS
========================= */

/* Línea horizontal dentro del contenido público de los capítulos. */
.single-capitulo hr,
.single-capitulo .entry-content hr,
.single-capitulo .elementor-widget-theme-post-content hr,
.single-capitulo .elementor-widget-text-editor hr {
	height: 1px !important;
	border: 0 !important;
	background: #424045 !important;
	color: #424045 !important;
	margin: 24px 0;
}

/* ===== FICHA DE NOVELA ===== */

.tkn-novel-info{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.tkn-novel-info-item{
    display:flex;
    gap:6px;
    align-items:center;
}

.tkn-novel-info-label{
    font-weight:600;
}

.tkn-novel-info-value{
    opacity:.92;
}


/*detalles de titulo alternativo*/
.tkn-novel-info-item{
    align-items:flex-start;
}

.tkn-novel-info-item .tkn-novel-info-label{
    flex-shrink:0;
}

.tkn-novel-info-item .tkn-novel-info-value{
    display:block;
}

.tkn-alt-titles-item{
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
}

.tkn-novel-staff-name {
	color: #b98bdd !important;
	font-weight: 600;
}

/*link colaborador */
.tkn-novel-staff-link {
	color: #b98bdd;
	font-weight: 600;
	text-decoration: none;
}

.tkn-novel-staff-link:visited {
	color: #b98bdd;
}

.tkn-novel-staff-link:hover,
.tkn-novel-staff-link:focus {
	color: #b98bdd;
	text-decoration: underline;
}











/* ===== GENEROS ===== */

.tkn-genres{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.tkn-genre-link{
    text-decoration:none;
}

/* ===== MOVIL ===== */

@media (max-width:768px){

    .tkn-novel-info{
        gap:8px;
    }

    .tkn-novel-info-item{
        gap:4px;
    }

    .tkn-novel-info-label,
    .tkn-novel-info-value{
        font-size:13px;
    }

}

.tkn-novel-info-item:not(.tkn-raw-link) .tkn-novel-info-label,
.tkn-novel-info-item:not(.tkn-raw-link) .tkn-novel-info-value{
    color:#75727A;
}


/* ===== RAW ===== */

.tkn-raw-link{
    display:flex;
    gap:6px;
    align-items:center;

    text-decoration:none !important;

    pointer-events:auto !important;
    cursor:pointer;
}

/* ===== LISTA DE CAPITULOS ===== */

.tkn-chapters .tkn-chapters-list{
    display:flex;
    flex-direction:column;
    gap:5px;
}

.tkn-chapters .tkn-chapter-link{
    display:flex;
    flex-direction:column;
    gap:4px;

    padding:10px 20px;
    border-radius:16px;

    background:#222124;

    text-decoration:none;
    transition:all .2s ease;
}

.tkn-chapters .tkn-chapter-link:hover{
    background:#424045;
    transform:none;
}

.tkn-chapters .tkn-chapter-title{
    font-size:16px;
    font-weight:500;
    line-height:1.25;

    color:#E6E6E7;
}

.tkn-chapters .tkn-chapter-date{
    display:flex;
    align-items:center;
    gap:5px;

    font-size:12px;
    line-height:1.2;

    color:#75727A;
}

@media (max-width:768px){

    .tkn-chapters .tkn-chapter-link{
        padding:14px 16px;
        border-radius:14px;
    }

    .tkn-chapters .tkn-chapter-title{
        font-size:15px;
    }

    .tkn-chapters .tkn-chapter-date{
        font-size:11px;
    }

}

.tkn-chapters .tkn-chapter-link.tkn-chapter-read .tkn-chapter-title{
    color:#75727A !important;
}



/* Información secundaria de cada capítulo */
.tkn-chapter-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 5px;
	color: #85838A;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
}

/* Cada dato: icono + cantidad */
.tkn-chapter-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

/* Iconos Font Awesome */
.tkn-chapter-meta-item i {
	color: #85838A;
	font-size: 12px;
	line-height: 1;
}

/* Separadores */
.tkn-chapter-meta-separator {
	color: #68666C;
	font-size: 13px;
}

/* El enlace sigue mostrando título y datos en dos líneas */
.tkn-chapter-link {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

/* Móvil */
@media (max-width: 767px) {
	.tkn-chapter-meta {
		gap: 6px;
		font-size: 12px;
	}

	.tkn-chapter-meta-item {
		gap: 4px;
	}

	.tkn-chapter-meta-item i {
		font-size: 11px;
	}
}

















/* ===== NAVEGACION ===== */

.tkn-chapter-nav{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:24px;
}

.tkn-chapter-nav-link{
    display:flex;
    align-items:center;
    justify-content:center;

    text-decoration:none;
}

.tkn-nav-icon{
    font-size:22px;
}

.tkn-chapter-disabled{
    opacity:.35;
    pointer-events:none;
}


/* ===== NAVEGACION DE CAPITULOS ===== */

.tkn-chapter-navigation{
    display:flex;
    justify-content:center;
    align-items:center;

    gap:150px;

    width:100%;
    padding:10px 0;
}

.tkn-chapter-nav-link{
    display:flex;
    align-items:center;
    justify-content:center;

    text-decoration:none !important;
}

.tkn-nav-icon svg{
    width:48px;
    height:48px;

    color:#75727A;

    transition:.2s ease;
    display:block;
}

/* Hover */

.tkn-chapter-nav-link:hover svg{
    color:#B98BDD;
}

/* Deshabilitado */

.tkn-chapter-disabled svg{
    opacity:.35;
    pointer-events:none;
}

/* ===== MOVIL ===== */

@media (max-width:767px){

    .tkn-chapter-navigation{
        gap:100px;
    }

    .tkn-nav-icon svg{
        width:38px;
        height:38px;
    }

}




/* ===== ULTIMO CAPITULO ===== */

.tkn-latest-chapter{
    display:flex;
    gap:8px;

    text-decoration:none;
}


/* ===== GENEROS / TAGS ===== */

.tkn-genres{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.tkn-genres a{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:4px 10px;
    border-radius:999px;

    background:#B58AE0;
    color:#fff !important;

    font-size:15px;
    font-weight:600;
    text-decoration:none !important;
}

/* ===== MOVIL ===== */

@media (max-width:768px){

    .tkn-genres{
        gap:6px;
    }

    .tkn-genres a{
        padding:1px 10px;
        font-size:13px;
    }

}



/* =============CAPITULOS =============== */

/*sirve para el titulo de novela en capitulos*/
.tkn-related-novel{
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #B98BDD87;
    line-height: 1.2;
}

/* Móvil */
@media (max-width: 767px){
    .tkn-related-novel{
        font-size: 17px;
    }
}

/*titulo del capitulo en capitulos*/
.tokki-titulo-actual{
    text-align: center;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;

    color:#BFBEC1;
}

/* Móvil */
@media (max-width: 767px){

    .tokki-titulo-actual{
        font-size: 20px;
    }

}





/* Contenedor del botón de Me gusta */
.tkn-chapter-like {
	display: flex;
	justify-content: center;
	margin: 28px 0;
	
}

/* Botón */
.tkn-chapter-like-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 10px 16px;
	border: 1px solid #3A383E;
	border-radius: 999px;
	background: #222124;
	color: #BFBEC1;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition:
		border-color 0.2s ease,
		color 0.2s ease;
}

.tkn-chapter-like-button i {
	font-size: 15px;
}

/* Estado marcado */
.tkn-chapter-like-button.is-liked {
	border-color: #B98BDD;
	color: #B98BDD;
}

/* Cantidad */
.tkn-chapter-like-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	padding-left: 8px;
	border-left: 1px solid #454249;
}

/* Mientras se procesa */
.tkn-chapter-like-button:disabled {
	cursor: wait;
	opacity: 0.65;
}

@media (max-width: 767px) {
	.tkn-chapter-like {
		margin: 24px 0;
	}

	.tkn-chapter-like-button {
		min-height: 40px;
		padding: 9px 14px;
		font-size: 13px;
	}
}

/* Notas del traductor */
.tokki-note-term {
	border-bottom: 1px dotted #B98BDD;
	color: inherit;
	cursor: pointer;
	transition: color .2s ease, background-color .2s ease;
}

.tokki-note-term:hover,
.tokki-note-term:focus {
	background: rgba(185, 139, 221, .12);
	color: #D8B5F3;
	outline: none;
}

.tokki-note-overlay {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(10, 9, 12, .72);
	box-sizing: border-box;
}

.tokki-note-overlay[hidden] {
	display: none !important;
}

.tokki-note-dialog {
	position: relative;
	width: min(480px, 100%);
	padding: 28px;
	background: #222124;
	border: 1px solid rgba(185, 139, 221, .35);
	border-radius: 20px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
	color: #D2D1D5;
}

.tokki-note-label {
	display: block;
	margin: 0 42px 14px 0;
	color: #B98BDD;
	font-size: 17px;
	font-weight: 700;
}

.tokki-note-text {
	color: #D2D1D5;
	font-size: 15px;
	line-height: 1.7;
	white-space: pre-line;
}

.tokki-note-close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-width: 36px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	color: #99979D;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.tokki-note-close:hover,
.tokki-note-close:focus {
	background: rgba(185, 139, 221, .12);
	color: #B98BDD;
	outline: none;
}

html.tokki-note-is-open,
html.tokki-note-is-open body {
	overflow: hidden;
}

@media (max-width: 600px) {
	.tokki-note-overlay {
		align-items: flex-end;
		padding: 14px;
	}

	.tokki-note-dialog {
		padding: 24px 20px;
		border-radius: 20px 20px 16px 16px;
	}
}
