/* ================================================================
   Filmography section — cream bg, dual horizontal scroll-snap sliders
   ================================================================ */

.section-filmography {
	padding: 40px 0;
	background: rgb(241, 239, 235);
	scroll-margin-top: 70px;
}

@media (min-width: 768px) {
	.section-filmography {
		padding: 80px 0;
	}
}

.section-filmography__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 16px;
	display: flex;
	flex-direction: column;
	gap: 48px;
}

@media (min-width: 640px) {
	.section-filmography__inner {
		padding: 0 24px;
	}
}

@media (min-width: 1024px) {
	.section-filmography__inner {
		padding: 0 32px;
	}
}

/* ── Section heading ── */

.section-filmography__heading {
	margin-bottom: 0;
}

.section-filmography__title {
	font-family: var(--font-display);
	font-size: clamp(36px, 5vw, 50px);
	letter-spacing: 0.05em;
	line-height: 1;
	color: #000;
	margin: 0 0 16px;
}

.section-filmography__subtitle {
	font-family: var(--font-body);
	font-weight: var(--fw-regular);
	font-size: clamp(20px, 3vw, 30px);
	line-height: 1.3;
	color: #f7bd49;
	margin: 0;
}

/* ── Group (Film / Television) ── */

.section-filmography__group {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.section-filmography__group-label {
	font-family: var(--font-body);
	font-weight: var(--fw-medium);
	font-size: clamp(18px, 2.5vw, 24px);
	color: #1f2937;
	margin: 0;
}

/* ── Slider wrapper (relative for arrow positioning) ── */

.section-filmography__slider-wrap {
	position: relative;
}

/* ── Scroll track ── */

.section-filmography__track {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 8px;
	/* hide scrollbar */
	scrollbar-width: none;
}

.section-filmography__track::-webkit-scrollbar {
	display: none;
}

/* ── Slide item ── */

.section-filmography__item {
	scroll-snap-align: start;
	flex: 0 0 calc(100% / 2 - 6px);
}

@media (min-width: 640px) {
	.section-filmography__item {
		flex: 0 0 calc(100% / 3 - 8px);
	}
}

@media (min-width: 768px) {
	.section-filmography__item {
		flex: 0 0 calc(100% / 4 - 9px);
	}
}

@media (min-width: 1024px) {
	.section-filmography__item {
		flex: 0 0 calc(100% / 5 - 10px);
	}
}

@media (min-width: 1280px) {
	.section-filmography__item {
		flex: 0 0 calc(100% / 6 - 10px);
	}
}

/* ── Card link ── */

.section-filmography__card {
	display: block;
	text-decoration: none;
	color: inherit;
}

/* ── Film poster (2:3 aspect ratio) ── */

.section-filmography__poster--film {
	aspect-ratio: 2 / 3;
	background: #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 8px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	transition: box-shadow 0.3s ease;
}

.section-filmography__card:hover .section-filmography__poster--film {
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ── TV show thumbnail (16:9 aspect ratio) ── */

.section-filmography__poster--tv {
	aspect-ratio: 16 / 9;
	background: #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 8px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	transition: box-shadow 0.3s ease;
}

.section-filmography__card:hover .section-filmography__poster--tv {
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.section-filmography__poster-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.section-filmography__card:hover .section-filmography__poster-img {
	transform: scale(1.05);
}

/* ── Title + year ── */

.section-filmography__meta {
	padding: 0 2px;
}

.section-filmography__name {
	font-family: var(--font-body);
	font-weight: var(--fw-medium);
	font-size: 13px;
	color: #111827;
	margin: 0 0 4px;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.section-filmography__year {
	font-family: var(--font-body);
	font-size: 12px;
	color: #6b7280;
	margin: 0;
	line-height: 1.3;
}

.section-filmography__notes {
	font-style: italic;
}

/* ── Nav arrows ── */

.section-filmography__arrow {
	display: none;
	position: absolute;
	top: 30%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	background: #fff;
	border: none;
	border-radius: 50%;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	align-items: center;
	justify-content: center;
	z-index: 10;
	transition: background 0.2s ease;
}

.section-filmography__arrow:hover {
	background: #f3f4f6;
}

.section-filmography__arrow svg {
	width: 12px;
	height: 20px;
	color: #374151;
}

@media (min-width: 768px) {
	.section-filmography__arrow {
		display: flex;
	}

	.section-filmography__arrow--prev {
		left: -22px;
	}

	.section-filmography__arrow--next {
		right: -22px;
	}
}
