/* Movie card styles (HaLim Options > Layout > Movie card style). Style 1 is the theme default in style.css. */

/* ---------- Style 2: gold episode badge, no quality badge, 5px gutter ---------- */
.halim-card-style-2 .halim_box .grid-item,
.halim-card-style-2 .grid-item { padding: 5px; }
.halim-card-style-2 .owl-item .grid-item { padding: 0; }
/* Pull the grid out by the card gutter so the outer cards line up with the slider edges */
.halim-card-style-2 .halim_box { margin-left: -5px; margin-right: -5px; }
.halim-card-style-2 .grid-item .status { display: none; }
.halim-card-style-2 .grid-item .episode {
	top: 0;
	left: 0;
	padding: 3px 5px 1px;
	color: #fff;
	font-size: 11px;
	text-transform: capitalize;
	/* same blue gradient as the episode label on the movie page (.new-ep) */
	background-color: #043ea5;
	background-image: linear-gradient(to right, #25aae1, #043ea5, #04befe, #3f86ed);
	background-size: 300% 100%;
	border-radius: 3px 0 2px 0;
	transition: background-position .7s ease;
}
.halim-card-style-2 .grid-item .episode::after { display: none; }
.halim-card-style-2 .grid-item:hover .episode { background-position: right center; }
/* Squarer corners (theme default is 5-6px) */
.halim-card-style-2 .grid-item .halim-item,
.halim-card-style-2 .grid-item figure,
.halim-card-style-2 .grid-item img,
.halim-card-style-2 .grid-item:hover .icon_overlay { border-radius: 3px; }
.halim-card-style-2 .grid-item .halim-post-title-box { border-radius: 0 0 3px 3px; }
.halim-card-style-2 .grid-item .is_trailer { top: 0; right: 0; border-radius: 0 3px 0 2px; }
.halim-card-style-2 .grid-item .is_trailer::after { display: none; }

/* ---------- Style 3: 2:3 poster with 6px corners, pill badges, title below ---------- */
.halim-card-style-3 .halim_box .grid-item,
.halim-card-style-3 .grid-item { padding: 6px; }
.halim-card-style-3 .owl-item .grid-item { padding: 0; }
.halim-card-style-3 .halim_box { margin-left: -6px; margin-right: -6px; }
.halim-card-style-3 .grid-item .halim-item { border-radius: 0; background: none; }
.halim-card-style-3 .grid-item .halim-thumb { display: block; }
.halim-card-style-3 .grid-item figure {
	position: relative;
	display: block;
	aspect-ratio: 2 / 3;
	margin: 0;
	overflow: hidden;
	background: #2a2b31;
	border-radius: 6px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}
.halim-card-style-3 .grid-item figure img {
	display: block;
	width: 100%;
	height: 100% !important;
	max-height: none !important;
	object-fit: cover;
	border-radius: 0;
	transition: transform .35s ease;
}
.halim-card-style-3 .grid-item:hover figure img { transform: scale(1.05); }
.halim-card-style-3 .grid-item .icon_overlay { height: auto; aspect-ratio: 2 / 3; border-radius: 6px; }
.halim-card-style-3 .grid-item:hover .icon_overlay { border-radius: 6px; }

/* Badges as pills on the poster */
.halim-card-style-3 .grid-item .episode,
.halim-card-style-3 .grid-item .status,
.halim-card-style-3 .grid-item .status.mv,
.halim-card-style-3 .grid-item .is_trailer {
	top: 8px;
	bottom: auto;
	padding: 3px 8px;
	font-size: 11px;
	font-weight: 600;
	line-height: 16px;
	background-image: none;
	border-radius: 20px;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.halim-card-style-3 .grid-item .episode {
	left: 8px;
	right: auto;
	max-width: calc(100% - 70px);
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: #fff;
	background-color: rgba(0, 0, 0, .65);
}
.halim-card-style-3 .grid-item .status,
.halim-card-style-3 .grid-item .status.mv { left: auto; right: 8px; color: #1c1c1c; background-color: #ffc107; }
.halim-card-style-3 .grid-item .is_trailer { left: auto; right: 8px; color: #fff; background-color: #cc7c01; }
.halim-card-style-3 .grid-item .episode::after,
.halim-card-style-3 .grid-item .status::after,
.halim-card-style-3 .grid-item .is_trailer::after { display: none; }
.halim-card-style-3 .grid-item .has_password { top: 8px; right: 8px; bottom: auto; }

/* Title block below the poster */
.halim-card-style-3 .grid-item .halim-post-title-box {
	position: static;
	height: auto;
	padding: 0;
	background: none;
	border-radius: 0;
}
.halim-card-style-3 .grid-item .halim-post-title {
	position: static;
	height: auto;
	padding: 8px 2px 2px;
	background: none;
}
.halim-card-style-3 .grid-item .entry-title {
	display: -webkit-box;
	margin: 0 0 2px;
	overflow: hidden;
	color: #fff;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 19px;
	white-space: normal;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	transition: color .2s ease;
}
.halim-card-style-3 .grid-item .halim-post-title.title-2-line .entry-title { -webkit-line-clamp: 2; }
.halim-card-style-3 .grid-item .original_title {
	margin: 0;
	padding: 0;
	overflow: hidden;
	color: #8a9eaf;
	font-size: 12px;
	line-height: 17px;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.halim-card-style-3 .grid-item:hover .entry-title { color: #ffc107; }

body.halim-light-mode.halim-card-style-3 .grid-item .entry-title { color: #1f2430; }
body.halim-light-mode.halim-card-style-3 .grid-item .original_title { color: #6b7280; }

@media (max-width: 767px) {
	.halim-card-style-3 .halim_box .grid-item,
	.halim-card-style-3 .grid-item { padding: 4px; }
	.halim-card-style-3 .halim_box { margin-left: -4px; margin-right: -4px; }
	.halim-card-style-3 .grid-item figure,
	.halim-card-style-3 .grid-item .icon_overlay { border-radius: 5px; }
	.halim-card-style-3 .grid-item .entry-title { font-size: 13px; }
}
