/* ==========================================================================
   ICMB Movie Archive — light theme grid
   Loaded on the movie post type archive and language/genre taxonomy pages.
   ========================================================================== */

.icmb-archive-wrap {
	--icmb-accent:      #d92638;
	--icmb-accent-dark: #b01c2c;
	--icmb-ink:         #1c1c22;
	--icmb-ink-soft:    #55555f;
	--icmb-line:        #e6e6ec;
	--icmb-bg-soft:     #f7f7fa;
	--icmb-radius:      14px;
	--icmb-shadow:      0 1px 3px rgba(20, 20, 35, .06), 0 6px 20px rgba(20, 20, 35, .05);

	max-width: 1200px;
	margin: 0 auto;
	padding: 28px 16px 56px;
	color: var(--icmb-ink);
}

/* Header */
.icmb-archive-title {
	font-size: clamp(1.5rem, 3.5vw, 2.1rem);
	font-weight: 800;
	margin: 0 0 8px;
}

.icmb-archive-divider {
	height: 3px;
	width: 44px;
	background: var(--icmb-accent);
	border-radius: 3px;
	margin: 0 0 8px;
}

.icmb-archive-count {
	color: var(--icmb-ink-soft);
	font-size: .92rem;
	margin: 0;
}

/* Grid */
.icmb-archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
	gap: 24px 18px;
	margin-top: 24px;
}

/* Card */
.icmb-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--icmb-line);
	border-radius: var(--icmb-radius);
	overflow: hidden;
	box-shadow: var(--icmb-shadow);
	transition: transform .15s ease, box-shadow .15s ease;
}

.icmb-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 10px rgba(20, 20, 35, .08), 0 14px 34px rgba(20, 20, 35, .1);
}

.icmb-card-poster {
	display: block;
	aspect-ratio: 2 / 3;
	background: var(--icmb-bg-soft);
	overflow: hidden;
}

.icmb-card-poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 1 !important;   /* kill any inherited fade */
	transition: transform .25s ease;
}
.icmb-card:hover .icmb-card-poster img { transform: scale(1.04); }

.icmb-card-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	font-size: 2.4rem;
	border-bottom: 1px dashed var(--icmb-line);
}

.icmb-card-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px 12px 14px;
	flex: 1;
}

.icmb-card-title {
	font-size: .95rem;
	line-height: 1.35;
	margin: 0;
	font-weight: 700;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.7em;
}

.icmb-card-title a {
	color: var(--icmb-ink);
	text-decoration: none;
}
.icmb-card-title a:hover { color: var(--icmb-accent); }

.icmb-card-btn {
	margin-top: auto;
	display: block;
	text-align: center;
	background: var(--icmb-accent);
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 999px;
	padding: 8px 0;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	transition: background .15s ease;
}
.icmb-card-btn:hover { background: var(--icmb-accent-dark); }

/* Pagination */
.icmb-archive-pagination {
	margin-top: 36px;
	text-align: center;
}

.icmb-archive-pagination .nav-links {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.icmb-archive-pagination .page-numbers {
	display: inline-block;
	min-width: 40px;
	padding: 8px 14px;
	border: 1px solid var(--icmb-line);
	border-radius: 999px;
	background: #fff;
	color: var(--icmb-ink);
	text-decoration: none;
	font-weight: 600;
	font-size: .9rem;
	transition: border-color .15s ease, color .15s ease;
}

.icmb-archive-pagination .page-numbers:hover {
	border-color: var(--icmb-accent);
	color: var(--icmb-accent);
}

.icmb-archive-pagination .page-numbers.current {
	background: var(--icmb-accent);
	border-color: var(--icmb-accent);
	color: #fff;
}

.icmb-archive-pagination .page-numbers.dots {
	border: 0;
	background: transparent;
}

.icmb-archive-empty {
	margin-top: 30px;
	color: var(--icmb-ink-soft);
}

/* Responsive */
@media (max-width: 520px) {
	.icmb-archive-grid {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
		gap: 18px 12px;
	}
	.icmb-card-body { padding: 10px 10px 12px; }
	.icmb-card-title { font-size: .88rem; }
}
