/* ==========================================================================
   Flato People – صفحه‌ی فیلم/سریال، کارت‌های پوستر و فیلم‌شناسی
   ========================================================================== */
.fpt,
.fp-films {
	--fp-accent: var(--brand-color, #f98d00);
	--fp-accent-dark: var(--dark-brand-color, #c75b00);
	--fp-line: rgba(0, 0, 0, .08);
	--fp-soft: rgba(0, 0, 0, .035);
	--fp-muted: #757575;
}

/* ---------- کارت اصلی ---------- */
.fpt-hero {
	display: grid;
	grid-template-columns: minmax(0, 230px) minmax(0, 1fr);
	column-gap: 34px;
	align-items: start;
	margin-bottom: 25px;
}
.fpt-hero__crumb { grid-column: 1 / -1; margin-bottom: 18px; }
.fpt-hero__crumb #breadcrumb { margin: 0; }
.fpt-poster { position: relative; margin-bottom: 14px; }
.fpt-poster::before {
	content: "";
	position: absolute;
	inset-block: 10px -10px;
	inset-inline: -10px 10px;
	border: 2px solid var(--fp-accent);
	border-radius: 16px;
	opacity: .55;
}
.fpt-poster__img,
.fpt-poster__ph {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: 14px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
	background: var(--fp-soft);
}
.fpt-poster__ph {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 4em;
	font-weight: 700;
	color: var(--fp-accent-dark);
	background: rgba(249, 141, 0, .12);
}
.fpt-title {
	margin: 0;
	font-size: clamp(1.7rem, 3.4vw, 2.5rem);
	line-height: 1.35;
}
.fpt-sub { margin-top: 4px; color: var(--fp-muted); font-size: 1.05em; }
.fpt-year { white-space: nowrap; }
.fpt-chips { margin-top: 12px; }
.fpt-chips .fpt-kind { background: var(--fp-accent-dark); color: #fff; }
.fpt-chips a { color: inherit; text-decoration: none; }
.fpt-chips a:hover { text-decoration: underline; }
.fpt .fp-facts { margin-top: 20px; }
.fpt .fp-fact dd a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.fpt .fp-fact dd a:hover { color: var(--fp-accent-dark); }
.fpt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.fpt-btn {
	display: inline-block;
	padding: 8px 22px;
	border-radius: 999px;
	background: var(--fp-accent-dark);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	transition: background-color .2s;
}
.fpt-btn:hover, .fpt-btn:focus-visible { background: var(--fp-accent); color: #fff; }
.fpt-where { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fpt-where > span { color: var(--fp-muted); font-size: .9em; }
.fpt-where .fp-chips { margin: 0; }
.fpt-where .fp-chips a { color: inherit; text-decoration: none; }

/* ---------- بدنه ---------- */
.fpt-toc { margin: 0 0 26px; padding-bottom: 16px; border-bottom: 1px solid var(--fp-line); }
.fpt-toc ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fpt-toc li { margin: 0; }
.fpt-toc a {
	display: inline-block;
	padding: 3px 14px;
	border: 1px solid rgba(0, 0, 0, .14);
	border-radius: 999px;
	font-size: .88em;
	color: inherit;
	text-decoration: none;
}
.fpt-toc a:hover { background: var(--fp-accent); border-color: var(--fp-accent); color: #fff; }
.fpt-sec { margin: 0 0 36px; scroll-margin-top: 80px; }
.fpt-sec > h2,
.fpt-block > h2 {
	position: relative;
	margin: 0 0 14px;
	padding-inline-start: 14px;
	font-size: 1.25em;
	line-height: 1.5;
}
.fpt-sec > h2::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: .3em;
	bottom: .3em;
	width: 4px;
	border-radius: 4px;
	background: var(--fp-accent);
}
.fpt-synopsis { margin: 0 0 14px; line-height: 2.05; }
.fpt-content { line-height: 2.05; }

/* ---------- بازیگران ---------- */
.fpt-cast-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.fpt-person { margin: 0; }
.fpt-person a { display: block; color: inherit; text-decoration: none; text-align: center; }
.fpt-person__frame {
	display: block;
	margin-bottom: 8px;
	overflow: hidden;
	border-radius: 12px;
	background: var(--fp-soft);
}
.fpt-person__img,
.fpt-person__ph {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	transition: transform .3s;
}
.fpt-person__ph {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.6em;
	font-weight: 700;
	color: var(--fp-accent-dark);
	background: rgba(249, 141, 0, .12);
}
.fpt-person a:hover .fpt-person__img { transform: scale(1.04); }
.fpt-person__name { display: block; font-weight: 700; line-height: 1.5; }
.fpt-person__role { display: block; font-size: .84em; color: var(--fp-muted); line-height: 1.5; }
.fpt-more-cast { margin: 16px 0 0; color: var(--fp-muted); }
.fpt-more-cast a, .fpt-crew a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.fpt-crew { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 20px; margin: 22px 0 0; }
.fpt-crew dt { font-size: .82em; color: var(--fp-muted); margin: 0; }
.fpt-crew dd { margin: 0; font-weight: 700; }

/* ---------- تریلر (فقط با کلیک بارگذاری می‌شود) ---------- */
.fpt-trailer {
	position: relative;
	aspect-ratio: 16 / 9;
	max-width: 760px;
	overflow: hidden;
	border-radius: 14px;
	background: #111;
}
.fpt-trailer__play { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.fpt-trailer__play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.fpt-trailer__icon {
	position: absolute;
	inset: 50% auto auto 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--fp-accent-dark);
	color: #fff;
	font-size: 28px;
	padding-inline-start: 0;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .4);
	transition: background-color .2s, transform .2s;
}
.fpt-trailer__play:hover .fpt-trailer__icon,
.fpt-trailer__play:focus-visible .fpt-trailer__icon { background: var(--fp-accent); transform: translate(-50%, -50%) scale(1.07); }
.fpt-trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- اخبار و نقد ---------- */
.fpt-news__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.fpt-news__item { margin: 0; }
.fpt-news__item a { display: block; color: inherit; text-decoration: none; }
.fpt-news__frame { display: block; margin-bottom: 8px; overflow: hidden; border-radius: 10px; background: var(--fp-soft); }
.fpt-news__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s; }
.fpt-news__item a:hover .fpt-news__img { transform: scale(1.04); }
.fpt-news__title { display: block; font-weight: 700; line-height: 1.7; }
.fpt-news__item a:hover .fpt-news__title { color: var(--fp-accent-dark); }
.fpt-news__date { display: block; font-size: .82em; color: var(--fp-muted); }

/* ---------- کارت‌های پوستر (مشابه، زیر خبر، فیلم‌شناسی) ---------- */
.fpt-pcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.fpt-pc { margin: 0; }
.fpt-pc a { display: block; color: inherit; text-decoration: none; }
.fpt-pc__frame { display: block; margin-bottom: 8px; overflow: hidden; border-radius: 10px; background: var(--fp-soft); }
.fpt-pc__img,
.fpt-pc__ph { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; transition: transform .3s; }
.fpt-pc__ph { display: flex; align-items: center; justify-content: center; font-size: 2.6em; font-weight: 700; color: var(--fp-accent-dark); background: rgba(249, 141, 0, .12); }
.fpt-pc a:hover .fpt-pc__img { transform: scale(1.04); }
.fpt-pc__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; line-height: 1.6; }
.fpt-pc__meta { display: block; font-size: .8em; color: var(--fp-muted); }
.fpt-block { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--fp-line); clear: both; }
.fpt-block .fp-people__title { margin-bottom: 14px; }

.fpt-updated { margin: 8px 0 0; font-size: .85em; color: var(--fp-muted); }

/* ---------- فیلم‌شناسی در صفحه‌ی بازیگر ---------- */
.fp-films { grid-area: films; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--fp-line); min-width: 0; }
.fp-films__title { position: relative; margin: 0 0 14px; padding-inline-start: 14px; font-size: 1.25em; line-height: 1.5; }
.fp-films__title::before { content: ""; position: absolute; inset-inline-start: 0; top: .3em; bottom: .3em; width: 4px; border-radius: 4px; background: var(--fp-accent); }
.fp-films__list {
	display: flex;
	gap: 14px;
	margin: 0;
	padding: 0 0 10px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x proximity;
}
.fp-films__list .fpt-pc { flex: 0 0 130px; scroll-snap-align: start; }

/* ---------- موبایل ---------- */
@media (max-width: 767px) {
	.fpt-hero { padding-bottom: 20px; }
}
@media (max-width: 720px) {
	.fpt-hero { grid-template-columns: minmax(0, 1fr); text-align: center; }
	.fpt-poster { width: 170px; max-width: 100%; margin: 0 auto 20px; }
	.fpt-hero__crumb { text-align: start; }
	.fpt-chips, .fpt .fp-links, .fpt-actions, .fpt-where { justify-content: center; }
	.fpt .fp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: start; }
	.fpt-cast-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
	.fpt-news__list { grid-template-columns: 1fr; }
	.fpt-pcs { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
	.fpt-btn, .fpt-trailer__icon, .fpt-person__img, .fpt-news__img, .fpt-pc__img { transition: none; }
}
