/* Masque l'image "a la une" du module GP Premium (meme souci que sur
   l'archive kdrama), affichee au-dessus du <main> avant le titre. */
.post-type-archive-acteur .content-area > figure.post-image {
	display: none;
}

/* Empeche la rangee a defilement horizontal de deborder de son propre bloc
   (piege classique flexbox : sans min-width:0, le contenu pousse le parent
   au lieu de scroller dans sa propre boite). Corrige uniquement les blocs
   concernes, sans toucher aux conteneurs globaux partages avec le reste du
   site (qui a cause un souci d'affichage different). */
.post-type-archive-acteur .kf-actors-strip {
	min-width: 0;
}

/* ---- En-tete ---- */

.kf-actors-header {
	text-align: center;
	margin: 0 0 1.75rem;
}

.kf-actors-header .page-title {
	margin-bottom: 0.3rem;
}

.kf-actors-sub {
	color: #666666;
	margin: 0 0 1.2rem;
}

.kf-actors-search {
	position: relative;
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	max-width: 420px;
	margin: 0 auto 1.1rem;
}

.kf-actor-suggest {
	position: absolute;
	top: 100%;
	left: 0;
	right: 68px;
	margin-top: 0.35rem;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
	max-height: 320px;
	overflow-y: auto;
	z-index: 30;
	display: none;
	text-align: left;
}

.kf-actor-suggest.is-open {
	display: block;
}

.kf-actor-suggest-item {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.5rem 0.7rem;
	text-decoration: none;
	color: #222222;
}

.kf-actor-suggest-item:hover {
	background: #f4f4f5;
}

.kf-actor-suggest-photo {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	overflow: hidden;
	background: #f4f4f5;
	display: block;
}

.kf-actor-suggest-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.kf-actor-suggest-name {
	font-size: 0.9rem;
	font-weight: 600;
}

.kf-actors-search input[type="search"] {
	flex: 1;
	padding: 0.6rem 0.9rem;
	border: 1px solid #e2e2e2;
	border-radius: 999px;
	font-size: 0.95rem;
}

.kf-actors-search button {
	background: #e5195f;
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 0.6rem 1.2rem;
	font-weight: 700;
	cursor: pointer;
}

.kf-actors-gender {
	display: flex;
	justify-content: center;
	gap: 0.4rem;
	flex-wrap: wrap;
}

/* ---- Chips partagees (genre, tri) ---- */

.kf-chip {
	display: inline-block;
	border: 1px solid #e2e2e2;
	background: #f4f4f5;
	color: #222222;
	border-radius: 999px;
	padding: 0.4rem 0.95rem;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.kf-chip:hover {
	border-color: #e5195f;
	color: #e5195f;
}

.kf-chip.is-active {
	background: #e5195f;
	border-color: #e5195f;
	color: #fff;
}

/* ---- Rangees horizontales (du moment / anniversaires) ---- */

.kf-actors-strip {
	margin: 0 0 1.75rem;
	min-width: 0;
	max-width: 100%;
}

.kf-actors-strip h2 {
	margin-bottom: 0.2rem;
}

.kf-actors-strip-sub {
	color: #666666;
	margin: 0 0 0.8rem;
	font-size: 0.9rem;
}

.kf-actors-strip-row {
	display: flex;
	gap: 0.9rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 0.4rem;
	min-width: 0;
	max-width: 100%;
}

.kf-actor-mini {
	flex: 0 0 auto;
	width: 92px;
	text-align: center;
	text-decoration: none;
	color: #222222;
}

.kf-actor-mini-photo {
	display: block;
	width: 72px;
	height: 72px;
	margin: 0 auto 0.4rem;
	border-radius: 50%;
	overflow: hidden;
	background: #f4f4f5;
}

.kf-actor-mini-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.kf-actor-mini-name {
	display: block;
	font-size: 0.78rem;
	line-height: 1.25;
}

.kf-actor-mini:hover .kf-actor-mini-name {
	color: #e5195f;
}

/* ---- Barre de tri ---- */

.kf-actors-sort {
	margin: 0 0 1.75rem;
}

.kf-actors-sort h2 {
	margin-bottom: 0.7rem;
}

.kf-actors-sort-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 0.5rem;
}

/* ---- Grille d'acteurs ---- */

.kf-actors-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 1.25rem;
}

@media (min-width: 1024px) {
	.kf-actors-grid {
		grid-template-columns: repeat(6, 1fr);
	}
}

@media (max-width: 480px) {
	.kf-actors-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.85rem;
	}
}

.kf-actor-card {
	list-style: none;
	margin: 0;
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
}

.kf-actor-card-link {
	display: block;
	color: inherit;
	text-decoration: none;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.kf-actor-card-link:hover {
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.kf-actor-card-photo {
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: #f4f4f5;
}

.kf-actor-card-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.kf-actor-card-body {
	padding: 0.6rem 0.75rem 0.8rem;
}

.kf-actor-card-name {
	font-size: 0.95rem;
	margin: 0 0 0.4rem;
	line-height: 1.25;
	color: #222222;
	font-weight: 700;
}

.kf-actor-card-body .kf-badge {
	background: #f4f4f5;
	color: #222222;
	border-radius: 999px;
	padding: 0.15rem 0.55rem;
	font-size: 0.72rem;
	font-weight: 600;
	display: inline-block;
}

.kf-actors-empty {
	color: #666666;
	text-align: center;
	padding: 2rem 0;
}

/* ---- Pagination (meme technique que l'archive kdrama) ---- */

.post-type-archive-acteur .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin: 2rem 0 0;
	width: 100%;
}

.post-type-archive-acteur .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.4rem;
	height: 2.4rem;
	padding: 0 0.9rem;
	border-radius: 999px;
	border: 1px solid #e2e2e2;
	background: #fff;
	color: #222222 !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 0.9rem;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.post-type-archive-acteur .page-numbers:hover {
	border-color: #e5195f;
	color: #e5195f !important;
}

.post-type-archive-acteur .page-numbers.current {
	background: #e5195f;
	border-color: #e5195f;
	color: #fff !important;
}

.post-type-archive-acteur .page-numbers.dots {
	border: none;
	background: transparent;
	min-width: auto;
}
