.tokki-library {
	max-width: 1280px;
	margin: 0 auto;
	padding: 34px 18px;
}

.tokki-library-header {
	text-align: center;
	margin-bottom: 34px;
}

.tokki-library-header h1 {
	font-size: 40px !important;
	margin-bottom: 10px;
	color: #B98BDD!important;
}

.tokki-library-header p {
	max-width: 760px;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.7;
}

.tokki-library-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 14px 5px;
}

.tokki-library-cover {
	display: block;
	margin-bottom: 5px;
}

.tokki-library-cover img {
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	display: block;
	border-radius: 15px;
	border: 1px solid rgba(255,255,255,.08);
}

.tokki-library-title {
	font-size: 17px !important; 
	line-height: 1.35;
	margin: 0 0 10px;
}

.tokki-library-title a {
	color: #E6E6E7;
	text-decoration: none;
	font-weight: 600;
}

.tokki-library-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	font-size: 13px;
	line-height: 1.35;
}

.tokki-library-genres {
	display: contents;
}

.tokki-library-genres a,
.tokki-library-genre,
.tokki-library-meta .tokki-library-genres {
	background: #B98BDD;
	color: #fff;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
}

.tokki-library-status,
.tokki-library-chapters {
	width: 100%;
	color: #99979D;
	font-size: 14px;
	font-weight: 500;
	margin-top: 2px;
}


.tokki-library-cover {
	border-radius: 15px;
	overflow: hidden;
}

.tokki-library-cover img {
	border-radius: 15px;
	display: block;
}







/*en movil o mobile*/

@media (max-width: 768px) {

	.tokki-library-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 5px 3px;
	}
    
    .tokki-library-title {
    	font-size: 13px !important ;
    	line-height: 1.4;
    }
    .tokki-library-genre {
    	font-size: 12px !important;
    	padding: 3px 9px;
    }
    
    .tokki-library-status,
    .tokki-library-chapters {
    	font-size: 12px;
    }
    .tokki-library-header p {
    	font-size: 12px;
    }
    .tokki-library-header h1 {
	font-size: 30px !important;
    }

}








.tokki-library-card {
	background: #222124;
	border: 1px solid #313034;
	border-radius: 17px;
	padding: 7px;
	transition: .2s ease;
}

.tokki-library-card:hover {
	transform: translateY(-2px);
}

.tokki-library-content {
	padding: 2px 2px 4px;
}












/*============= FILTROS ==================*/
.tokki-library-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 32px;
	padding: 16px;
	background: #222124;
	border: 1px solid #313034;
	border-radius: 18px;
}

.tokki-library-search {
	display: flex;
	gap: 10px;
	flex: 1 1 280px;
}


.tokki-library-filters input,
.tokki-library-filters select {
	min-height: 42px;
	border-radius: 12px;
	border: 1px solid #313034;
	background: #1A191D;
	color: #E6E6E7!important;
	padding: 0 12px;
	font-size: 14px;
}

.tokki-library-search input:focus {
	background: #1A191D !important;
	border-color: #313034;
	outline: none;
}

.tokki-library-search input {
	width: 100%;
}

.tokki-library-filters button,
.tokki-library-clear {
	min-height: 42px;
	border-radius: 12px;
	border: none;
	background: #B98BDD;
	color: #fff;
	padding: 0 16px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.tokki-library-clear {
	background: transparent;
	color: #E6E6E7 ;
	border: 1px solid #E6E6E7 !important;
}


/*filtro en pc*/
@media (min-width: 769px) {

	.tokki-library-filters {
		display: grid !important;
		grid-template-columns: 1fr !important;
		align-items: start !important;
		gap: 16px !important;
	}

	.tokki-library-search {
		display: grid !important;
		grid-template-columns: 1fr 120px !important;
		gap: 12px !important;
		width: 100% !important;
		flex: unset !important;
	}

	.tokki-library-filters select {
		width: 100% !important;
		max-width: 320px !important;
		height: 44px !important;
		min-height: 44px !important;
		flex: unset !important;
	}

	.tokki-library-filters button {
		height: 44px !important;
		min-height: 44px !important;
		flex: unset !important;
	}

	.tokki-library-filter-group {
		width: 100% !important;
	}

	.tokki-library-clear {
		width: fit-content !important;
	}
	.tokki-library-selects {
		display: flex;
		gap: 14px;
		align-items: center;
	}

	.tokki-library-selects select {
		flex: 0 0 260px;
		margin-bottom: 0;
	}

}








/*====== filtros en movil ===*/

@media (max-width: 768px) {

	.tokki-library-filters {
    	display: flex !important;
    	flex-direction: column !important;
    	gap: 10px !important;
    	margin-top: 0 !important;
    	margin-bottom: 32px !important;
    }
    
    .tokki-library-search {
    	display: flex !important;
    	flex-direction: column !important;
    	flex: 0 0 auto !important;
    	width: 100%;
    	gap: 8px;
    	margin-bottom: 0 !important;
    }
	.tokki-library-filters {
		gap: 10px !important;
		margin-top: 0 !important;
	}

	.tokki-library-search {
		gap: 8px;
		margin-bottom: 0;
	}

	.tokki-library-filter-group {
		margin-top: 0;
		margin-bottom: 0;
	}

	.tokki-library-filter-label {
		margin-bottom: 8px;
	}

	.tokki-library-filters input,
	.tokki-library-filters select,
	.tokki-library-filters button,
	.tokki-library-clear {
		width: 100%;
	}
	
	.tokki-library-selects {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}

}


.tokki-library-filter-group {
	width: 100%;
}

.tokki-library-filter-label {
	display: block;
	color: #E6E6E7;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 10px;
}

.tokki-library-checkboxes {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tokki-library-checkbox input {
	display: none;
}

.tokki-library-checkbox span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #1A191D;
	color: #E6E6E7;
	border: 1px solid #313034;
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 13px;
	cursor: pointer;
	transition: .2s ease;
}

.tokki-library-checkbox input:checked + span {
	background: #B98BDD;
	color: #E6E6E7;
	border-color: #B98BDD;
}

.tokki-library-checkbox:hover span {
	border-color: #B98BDD !important;
	box-shadow: 0 0 0 1px #B98BDD;
}



/*barra*/
.tkn-profile-reading-progress {
	position: relative;
	width: 100%;
	height: 8px;
	margin: 8px 0 9px;
	overflow: hidden;
	background: #46454a;
	border-radius: 999px;
}

.tkn-profile-reading-progress-fill {
	display: block;
	width: 0;
	height: 100%;
	background: #b98bdd;
	border-radius: inherit;
	transition: width 0.35s ease;
}

.tkn-profile-reading-progress {
	position: relative;
	width: 100%;
	height: 7px;
	margin: 7px 0 10px;
	overflow: hidden;
	background: #515056;
	border-radius: 999px;
}

@media (max-width: 767px) {

	.tkn-profile-reading-progress {
		height: 4px;
		margin: 6px 0 8px;
	}

}





/* =========================================================
 * Vista previa del avatar al editar el perfil
 * ========================================================= */

.tokki-profile-avatar-field {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 18px;
}

.tokki-profile-avatar-preview {
	flex: 0 0 86px;
	width: 86px;
	height: 86px;
	overflow: hidden;
	border: 2px solid #313034;
	border-radius: 50%;
	background: #222124;
}

.tokki-profile-avatar-preview img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.tokki-profile-avatar-input {
	flex: 1;
	min-width: 0;
}

.tokki-profile-avatar-input label {
	display: block;
	margin-bottom: 8px;
}

.tokki-profile-avatar-input input[type="file"] {
	width: 100%;
	color: #BFBEC1;
	font-size: 13px;
}

.tokki-profile-avatar-help {
	margin: 7px 0 0;
	color: #8F8D94;
	font-size: 12px;
	line-height: 1.4;
}

@media (max-width: 600px) {
	.tokki-profile-avatar-field {
		align-items: flex-start;
		gap: 14px;
	}

	.tokki-profile-avatar-preview {
		flex-basis: 68px;
		width: 68px;
		height: 68px;
	}
}