/* Perfil público del equipo TokkiNovel */
.tokki-staff-profile {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	color: #ffffff;
}

.tokki-staff-header {
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 24px;
	background: #1a191d;
	border-radius: 15px;
}

.tokki-staff-avatar {
	width: 120px;
	height: 120px;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 50%;
}

.tokki-staff-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.tokki-staff-name {
	margin: 0 0 6px;
	color: #ffffff;
	font-size: 28px;
	line-height: 1.2;
}

.tokki-staff-role {
	margin: 0 0 7px;
	color: #b98bdd;
	font-size: 15px;
	font-weight: 600;
}

.tokki-staff-member-since {
	margin: 0;
	color: #bfbec1;
	font-size: 14px;
}

.tokki-staff-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 16px;
	padding: 16px;
	background: #1a191d;
	border-radius: 15px;
}

.tokki-staff-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 80px;
	padding: 12px;
	background: #222124;
	border-radius: 10px;
	text-align: center;
	border: 1px solid rgba(255,255,255,.07);
    box-sizing: border-box;
}

.tokki-staff-stat strong {
	color: #ffffff;
	font-size: 21px;
	line-height: 1;
}

.tokki-staff-stat span {
	margin-top: 7px;
	color: #bfbec1;
	font-size: 13px;
}

.tokki-staff-novels-section {
	margin-top: 28px;
}

.tokki-staff-section-title {
	margin: 0 0 18px;
	color: #ffffff;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.tokki-staff-novels-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 170px));
    justify-content: flex-start;
	gap: 16px;
}

.tokki-staff-novel-card {
	position: relative;
	overflow: hidden;
	border-radius: 15px;
	background: #1A191D;
}

.tokki-staff-novel-card {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	border-radius: 10px;
	background: #1A191D;
	text-decoration: none;
}

.tokki-staff-novel-card img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Degradado */
.tokki-staff-novel-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		#1A191D 0%,
		rgba(26, 25, 29, .96) 15%,
		rgba(26, 25, 29, .75) 28%,
		rgba(26, 25, 29, .25) 38%,
		rgba(26, 25, 29, 0) 50%
	);
	pointer-events: none;
}
.tokki-staff-novel-title {
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 14px;
	z-index: 2;

	color: #FFF;
	font-size: 17px;
	font-weight: 500 !important;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;

	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tokki-staff-novel-card:hover .tokki-staff-novel-title,
.tokki-staff-novel-card:visited .tokki-staff-novel-title,
.tokki-staff-novel-card:focus .tokki-staff-novel-title {
	color: #FFF;
	text-decoration: none;
}


.tokki-staff-novel-title {
	display: block;
	margin-top: 9px;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.tokki-staff-novel-title:visited,
.tokki-staff-novel-title:hover,
.tokki-staff-novel-title:focus,
.tokki-staff-novel-title:active {
	color: #ffffff;
	text-decoration: none;
}

.tokki-staff-message {
	padding: 18px;
	background: #1a191d;
	border-radius: 15px;
	color: #bfbec1;
}


/* Biografía pública del staff */
.tokki-staff-bio {
	margin-top: 20px;
	margin-bottom: 20px;
	padding: 24px;
	background: #1A191D;
	border-radius: 20px;
}

.tokki-staff-bio-title {
	margin: 0 0 14px;
	color: #BFBEC1;
	font-weight: 600 !important;
}

.tokki-staff-bio-content {
	color: #D7D6DA;
	font-size: 16px;
	line-height: 1.75;
	overflow-wrap: anywhere;
}

@media (max-width: 767px) {
	.tokki-staff-bio {
		padding: 20px;
		border-radius: 18px;
	}

	.tokki-staff-bio-content {
		font-size: 15px;
		line-height: 1.7;
	}
}




@media (max-width: 600px) {

	.tokki-staff-header {
		flex-direction: column;
		text-align: center;
	}

	.tokki-staff-avatar {
		width: 100px;
		height: 100px;
	}

	.tokki-staff-name {
		font-size: 24px;
	}

	.tokki-staff-stats {
		gap: 7px;
		padding: 12px;
	}

	.tokki-staff-stat {
		min-height: 72px;
		padding: 9px 5px;
	}

	.tokki-staff-stat strong {
		font-size: 18px;
	}

	.tokki-staff-stat span {
		font-size: 11px;
	}

	.tokki-staff-novels-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 13px;
	}
}



/* Tarjeta del traductor al final del capítulo */
.tokki-chapter-translator {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	margin-top: 42px;
	padding: 36px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.tokki-chapter-translator-avatar {
	width: 110px;
	height: 110px;
	min-width: 110px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
}

.tokki-chapter-translator-avatar a {
	display: block;
	width: 100%;
	height: 100%;
}

.tokki-chapter-translator-avatar img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
	border-radius: 50% !important;
}

.tokki-chapter-translator-content {
	flex: 1;
	min-width: 0;
}

.tokki-chapter-translator-heading {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 7px;
	margin-bottom: 12px;
}

.tokki-chapter-translator-name {
	color: #F1F0F3;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
}

.tokki-chapter-translator-name:hover {
	color: #F1F0F3;
	text-decoration: none;
}

.tokki-chapter-translator-role {
	color: #B98BDD;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.tokki-chapter-translator-bio {
	color: #D2D1D5;
	font-size: 16px;
	line-height: 1.75;
	overflow-wrap: anywhere;
}

/* Adaptación móvil */
@media (max-width: 767px) {

	.tokki-chapter-translator {
		display: grid;
		grid-template-columns: 56px minmax(0, 1fr);
		align-items: center;
		column-gap: 13px;
		row-gap: 0;

		margin-top: 32px;
		padding: 28px 0;
	}

	/*
	 * Permite que el encabezado y la biografía participen
	 * directamente en la cuadrícula principal.
	 */
	.tokki-chapter-translator-content {
		display: contents;
	}

	.tokki-chapter-translator-avatar {
		grid-column: 1;
		grid-row: 1;

		width: 56px;
		min-width: 56px;
		max-width: 56px;

		height: 56px;
		min-height: 56px;
		max-height: 56px;

		aspect-ratio: 1 / 1;
		align-self: center;

		border-radius: 50%;
	}

	.tokki-chapter-translator-heading {
		grid-column: 2;
		grid-row: 1;
		align-self: center;

		display: block;
		min-width: 0;
		margin: 0;
	}

	.tokki-chapter-translator-name,
	.tokki-chapter-translator-role {
		display: block;
	}

	.tokki-chapter-translator-name {
		font-size: 16px;
		line-height: 1.35;
	}

	.tokki-chapter-translator-role {
		margin-top: 2px;
		font-size: 13px;
		line-height: 1.4;
	}

	.tokki-chapter-translator-bio {
		grid-column: 1 / -1;
		grid-row: 2;

		width: 100%;
		min-width: 0;
		margin-top: 17px;

		color: #D2D1D5;
		font-size: 14px;
		line-height: 1.65;
		overflow-wrap: anywhere;
	}

	.tokki-chapter-translator-bio p:first-child {
		margin-top: 0;
	}

	.tokki-chapter-translator-bio p:last-child {
		margin-bottom: 0;
	}
}


/* =========================================================
 * Recomendaciones y guías del colaborador
 * ========================================================= */

.tokki-staff-recommendations-section {
	margin-top: 32px;
}

.tokki-staff-recommendations-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.tokki-staff-recommendation-item {
	min-width: 0;
}

.tokki-staff-recommendation-card {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;

	background: #2A292C;
	border: 1px solid #313034;
	border-radius: 18px;

	color: #FFFFFF;
	text-decoration: none;
	box-shadow: none;
	transform: none;

	transition:
		border-color 0.18s ease,
		transform 0.18s ease;
}

.tokki-staff-recommendation-card:hover,
.tokki-staff-recommendation-card:focus {
	border-color: rgba(185, 139, 221, 0.65);
	color: #FFFFFF;
	text-decoration: none;
	outline: none;
	transform: translateY(-2px);
}

.tokki-staff-recommendation-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.tokki-staff-recommendation-card:hover
	.tokki-staff-recommendation-image,
.tokki-staff-recommendation-card:focus
	.tokki-staff-recommendation-image {
	transform: scale(1.025);
}

.tokki-staff-recommendation-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;

	background:
		linear-gradient(
			135deg,
			#313034 0%,
			#222124 100%
		);

	color: #77747B;
	font-size: 34px;
}

.tokki-staff-recommendation-overlay {
	position: absolute;
	inset: 0;

	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	flex-direction: column;
	gap: 8px;

	padding: 18px;
	box-sizing: border-box;

	background:
		linear-gradient(
			to bottom,
			rgba(26, 25, 29, 0.02) 20%,
			rgba(26, 25, 29, 0.6) 65%,
			rgba(26, 25, 29, 0.96) 100%
		);
}

.tokki-staff-recommendation-type {
	display: inline-flex;
	align-items: center;
	width: fit-content;

	padding: 4px 9px;

	background: rgba(26, 25, 29, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;

	color: #E6E6E7;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.2;
}

.tokki-staff-recommendation-overlay h3 {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;

	margin: 0;
	color: #FFFFFF;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.tokki-staff-recommendation-stats {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 18px;

	margin-top: 9px;
	padding: 0 4px;

	color: #99979D;
	font-size: 12px;
	line-height: 1;
}

.tokki-staff-recommendation-stat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 20px;
}

.tokki-staff-recommendation-stat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;

	width: 15px;
	height: 15px;
	color: #99979D;
}

.tokki-staff-recommendation-stat-icon svg {
	display: block;
	width: 15px;
	height: 15px;
	fill: currentColor;
}

.tokki-staff-recommendation-stat-icon i {
	display: block;
	font-size: 14px;
	line-height: 1;
}

.tokki-staff-recommendation-stat-value {
	color: #B9B7C0;
	font-weight: 500;
}

.tokki-staff-recommendation-reading-time {
	margin-left: auto;
	white-space: nowrap;
}
/* Tres estadísticas en una sola fila */

.tokki-staff-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.tokki-staff-stat {
	min-width: 0;
}


@media (max-width: 600px) {
	.tokki-staff-recommendations-section {
		margin-top: 26px;
	}

	.tokki-staff-recommendations-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.tokki-staff-recommendation-card {
		border-radius: 16px;
	}

	.tokki-staff-recommendation-overlay {
		padding: 15px;
	}

	.tokki-staff-recommendation-overlay h3 {
		font-size: 16px;
	}

	.tokki-staff-recommendation-stats {
		gap: 14px;
		padding: 0 2px;
		font-size: 11px;
	}
}
@media (max-width: 600px) {
	.tokki-staff-stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 7px;
	}

	.tokki-staff-stat {
		padding-left: 6px;
		padding-right: 6px;
	}

	.tokki-staff-stat strong {
		font-size: 19px;
	}

	.tokki-staff-stat span {
		font-size: 11px;
		text-align: center;
		overflow-wrap: anywhere;
	}
}
