/* ================= POPUP OVERLAY ================= */
.film-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.8);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 16px;
	overflow-y: auto;
}

/* ================= POPUP CONTAINER ================= */
.film-popup {
	background: #111;
	width: 900px;
	max-width: 100%;
	border-radius: 14px;
	padding: 24px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.6);
	animation: popupFade .25s ease;
	margin: auto;
}

/* ================= HEADER ================= */
.popup-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

	.popup-header h3 {
		color: #fff;
		font-size: 22px;
		margin: 0;
		font-weight: 600;
	}

.popup-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 26px;
	cursor: pointer;
	transition: 0.2s;
}

	.popup-close:hover {
		opacity: 0.7;
	}

/* ================= GRID ================= */
.popup-body {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

/* ================= ITEM ================= */
.popup-item {
	width: 100%;
}

	.popup-item .sw-item {
		transition: transform 0.2s ease;
	}

		.popup-item .sw-item:hover {
			transform: translateY(-4px);
		}

	/* ================= IMAGE ================= */
	.popup-item img {
		width: 100%;
		aspect-ratio: 2 / 3;
		object-fit: cover;
		border-radius: 8px;
		display: block;
	}

/* ================= INFO ================= */
.info {
	margin-top: 8px;
}

	.info h3 {
		font-size: 15px;
		margin: 0;
		line-height: 1.3;
	}

.alias-title {
	font-size: 13px;
	margin: 4px 0 0;
	opacity: 0.7;
}

/* ================= TABLET ================= */
@media (max-width: 1024px) {

	.film-popup {
		width: 95%;
		padding: 20px;
	}

	.popup-body {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}

	.popup-header h3 {
		font-size: 18px;
	}
}

/* ================= MOBILE ================= */
@media (max-width: 600px) {

	.film-popup-overlay {
		padding: 10px;
	}

	.film-popup {
		width: 100%;
		padding: 16px;
		border-radius: 10px;
	}

	.popup-body {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.popup-item img {
		border-radius: 6px;
	}

	.info h3 {
		font-size: 13px;
	}

	.alias-title {
		font-size: 11px;
	}

	.popup-header h3 {
		font-size: 16px;
	}

	.popup-close {
		font-size: 22px;
	}
}

/* ================= ANIMATION ================= */
@keyframes popupFade {
	from {
		opacity: 0;
		transform: scale(0.95);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}
