/**
 * #Card
 */

.c-card {
	--front-rd-card: 10px;
	display: flex;
	flex-direction: column;
	gap: 15px;
	min-width: 0;
	color: var(--white);
	text-decoration: none;

	.c-card__thumb {
		position: relative;
		overflow: hidden;
		aspect-ratio: 295 / 198;
		border-radius: var(--front-rd-card);
		img {
			width: 100%;
			height: 100%;
			object-fit: cover;
		}

		&.is-placeholder {
			display: flex;
			align-items: center;
			justify-content: center;

			> img {
				width: 42%;
				height: auto;
				object-fit: contain;
				opacity: 0.3;
				mix-blend-mode: luminosity;
			}
		}
	}

	.c-card__play {
		position: absolute;
		left: 50%;
		top: 50%;
		z-index: 1;
		width: 56px;
		height: 56px;
		transform: translate(-50%, -50%);
		pointer-events: none;

		img {
			width: 100%;
			height: 100%;
			object-fit: contain;
		}

		@media (max-width: 768px) {
			width: 48px;
			height: 48px;
		}
	}

	.c-card__body {
		display: flex;
		flex-direction: column;
		gap: 20px;
		width: 100%;
		min-width: 0;
	}

	.c-card__title {
		margin: 0;
		min-width: 0;
		font-size: 20px;
		font-weight: 700;
		line-height: 1.5;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.c-card__meta {
		display: flex;
		align-items: center;
		justify-content: space-between;
		font-family: var(--ff-en);
		font-size: 17px;
		font-weight: 500;
	}

	@media (max-width: 768px) {
		.c-card__body {
			gap: 10px;
		}

		.c-card__meta {
			order: -1;
			flex-direction: column;
			align-items: flex-start;
			gap: 7px;
			font-size: 14px;
		}

		.c-card__title {
			display: -webkit-box;
			font-size: 16px;
			white-space: normal;
			-webkit-box-orient: vertical;
			-webkit-line-clamp: 2;
		}
	}
}

.c-card__cat {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 3px 13px;
	border: 1px solid currentColor;
	border-radius: 4px;
	font-family: var(--ff-sans);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.4;
	list-style: none;
	white-space: nowrap;
	/* background-color: var(--white); */
}

.c-card-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sz-4);

	@media (max-width: 768px) {
		grid-template-columns: 1fr;
	}
}
