/******************************************************************
 * MEDIA CARD — ROOT
 ******************************************************************/

.media-card {
	position: relative;
	display: block;
	width: 320px;
	min-width: 320px;
	overflow: hidden;
	color: #ffffff;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
	transform: translateY(0);
	transition:
		transform 260ms ease,
		box-shadow 260ms ease,
		border-color 260ms ease;
}

.media-card,
.media-card:hover,
.media-card:focus,
.media-card:visited {
	color: #ffffff;
	text-decoration: none;
}


/******************************************************************
 * POSTER
 ******************************************************************/

.media-card__poster-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	background: #050810;
}

.media-card__poster {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	object-position: center;
	transform: scale(1);
	transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}


/******************************************************************
 * OVERLAY
 ******************************************************************/

.media-card__overlay {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 32%;
	pointer-events: none;
	background:
		linear-gradient(
			180deg,
			rgba(2, 5, 10, 0) 0%,
			rgba(2, 5, 10, 0.26) 30%,
			rgba(2, 5, 10, 0.7) 68%,
			rgba(2, 5, 10, 0.94) 100%
		);
}


/******************************************************************
 * META
 ******************************************************************/

.media-card__meta {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 14px 14px;
	overflow: hidden;
	color: rgba(255, 255, 255, 0.94);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	text-shadow: 0 2px 9px rgba(0, 0, 0, 0.95);
}

.media-card__meta-item {
	display: inline-flex;
	align-items: center;
	min-width: 0;
}

.media-card__meta-item:not(:last-child)::after {
	content: "·";
	margin: 0 8px;
	color: rgba(255, 255, 255, 0.54);
}

.media-card__meta-item--rating {
	padding: 2px 6px;
	border: 1px solid rgba(255, 255, 255, 0.44);
	border-radius: 3px;
	background: rgba(0, 0, 0, 0.3);
	font-size: 11px;
	line-height: 1;
}

.media-card__meta-item--rating::after {
	margin-left: 8px !important;
}


/******************************************************************
 * HOVER / FOCUS
 ******************************************************************/

.media-card:hover {
	transform: translateY(-6px);
	border-color: rgba(194, 199, 208, 0.72);
	box-shadow:
		0 22px 52px rgba(0, 0, 0, 0.52),
		0 0 0 1px rgba(194, 199, 208, 0.34),
		inset 0 0 0 1px rgba(232, 234, 238, 0.12);
}

.media-card:hover .media-card__poster {
	transform: scale(1.035);
}

.media-card:focus-visible {
	outline: 3px solid rgba(255, 255, 255, 0.9);
	outline-offset: 5px;
}


/******************************************************************
 * RESPONSIVE
 ******************************************************************/

@media (max-width: 1200px) {
	.media-card {
		width: 280px;
		min-width: 280px;
	}
}

@media (max-width: 900px) {
	.media-card {
		width: 230px;
		min-width: 230px;
	}
}

@media (max-width: 620px) {
	.media-card {
		width: 180px;
		min-width: 180px;
		border-radius: 13px;
	}

	.media-card__meta {
		min-height: 42px;
		padding: 9px 9px 11px;
		font-size: 11px;
	}

	.media-card__meta-item:not(:last-child)::after {
		margin: 0 5px;
	}

	.media-card__meta-item--rating {
		padding: 2px 4px;
		font-size: 9px;
	}

	.media-card__meta-item--rating::after {
		margin-left: 5px !important;
	}
}


/******************************************************************
 * REDUCED MOTION
 ******************************************************************/

@media (prefers-reduced-motion: reduce) {
	.media-card,
	.media-card__poster {
		transition: none;
	}

	.media-card:hover,
	.media-card:hover .media-card__poster {
		transform: none;
	}
}
/******************************************************************
 * FAVORITES — MEDIA CARD HEART
 ******************************************************************/

.mr-favorite-card-shell {
	position: relative;
	flex: 0 0 auto;
	width: 320px;
	min-width: 320px;
}

.mr-favorite-card-shell > .media-card {
	width: 100%;
	min-width: 0;
}

.mr-favorite-heart {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 6;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	color: #fff;
	background: rgba(3, 7, 14, 0.62);
	box-shadow: 0 5px 18px rgba(0, 0, 0, 0.36);
	backdrop-filter: blur(6px);
	transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.mr-favorite-heart:hover,
.mr-favorite-heart:focus-visible {
	transform: scale(1.08);
	background: rgba(3, 7, 14, 0.82);
}

.mr-favorite-heart:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.mr-favorite-heart:disabled {
	cursor: wait;
	opacity: 0.58;
}

.mr-favorite-heart svg {
	width: 25px;
	height: 25px;
	overflow: visible;
}

.mr-favorite-heart path {
	fill: transparent;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: fill 180ms ease, stroke 180ms ease;
}

.mr-favorite-heart.is-favorite {
	color: #ff2f3f;
}

.mr-favorite-heart.is-favorite path {
	fill: currentColor;
	stroke: currentColor;
}

@media (max-width: 900px) {
	.mr-favorite-card-shell {
		width: 260px;
		min-width: 260px;
	}
}

@media (max-width: 600px) {
	.mr-favorite-card-shell {
		width: 210px;
		min-width: 210px;
	}

	.mr-favorite-heart {
		top: 10px;
		right: 10px;
		width: 38px;
		height: 38px;
	}
}

@media (max-width: 1200px) {
	.mr-favorite-card-shell {
		width: 280px;
		min-width: 280px;
	}
}

@media (max-width: 900px) {
	.mr-favorite-card-shell {
		width: 230px;
		min-width: 230px;
	}
}

@media (max-width: 620px) {
	.mr-favorite-card-shell {
		width: 180px;
		min-width: 180px;
	}
}
