/* =========================================================
   WorldofPC — homepage poster carousel (vertical posters, dark band)
   Driven by the per-post "Slider Poster" field.
   ========================================================= */

.wopc-hero-slider {
	width: 100%;                 /* fluid up to the 1180px site width */
	max-width: 1180px;           /* match header div.wrap / .wrap-middle exactly */
	margin: 0 auto;              /* no vertical gaps (they'd show the bg image); padding gives the dark spacing */
	padding: 26px 0 30px;
	box-sizing: border-box;
	background:
		radial-gradient(120% 140% at 50% 0%, #1b2647 0%, #0d1428 55%, #0a0f1f 100%);
	box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .04);
}

.wopc-hero-inner {
	position: relative;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 15px;
	box-sizing: border-box;
}

/* ---- Swiper viewport ---- */
.wopc-swiper {
	overflow: hidden;
	padding: 8px 4px 14px;
	margin: 0 -4px;
}
.wopc-swiper .swiper-wrapper { align-items: flex-start; }

/* Slide width drives the visible count (slidesPerView:'auto' in home-slider.js).
   Width = (100% - N*gap)/N fits exactly N posters per view; gap matches the
   Swiper spaceBetween (18px). Mobile-first: 2.2 -> 3 -> 4 across.
   box-sizing so the width is the border-box, not content + Swiper's margin. */
.wopc-swiper .swiper-slide {
	height: auto;
	box-sizing: border-box;
	width: calc((100% - (2.2 * 18px)) / 2.2);   /* phones: 2.2 posters (swipe hint) */
}
@media (min-width: 600px) {
	.wopc-swiper .swiper-slide { width: calc((100% - (3 * 18px)) / 3); }   /* tablet: 3 */
}
@media (min-width: 992px) {
	.wopc-swiper .swiper-slide { width: calc((100% - (4 * 18px)) / 4); }   /* desktop: 4 */
}

/* ---- Card ---- */
.wopc-card { display: block; text-decoration: none; }

.wopc-card-poster {
	position: relative;
	aspect-ratio: 280 / 357;          /* vertical poster ratio */
	border-radius: 12px;
	overflow: hidden;
	background: #161d33;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
	transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease;
}
.wopc-card:hover .wopc-card-poster {
	transform: translateY(-6px);
	box-shadow: 0 18px 38px rgba(0, 0, 0, .6), 0 0 0 2px #fd0005;
}

.wopc-poster-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .65s cubic-bezier(.2, .7, .2, 1);
}
.wopc-card:hover .wopc-poster-img { transform: scale(1.06); }

/* subtle bottom shade for depth */
.wopc-card-poster::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(6, 9, 18, .55) 0%, rgba(6, 9, 18, 0) 35%);
	pointer-events: none;
}

/* category pill */
.wopc-pill {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
	background: #fd0005;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .4px;
	text-transform: uppercase;
	padding: 4px 9px;
	border-radius: 999px;
	box-shadow: 0 3px 10px rgba(253, 0, 5, .45);
}

/* play / open hint */
.wopc-play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 3;
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(253, 0, 5, .95);
	border-radius: 50%;
	box-shadow: 0 8px 20px rgba(253, 0, 5, .5);
	opacity: 0;
	transform: translate(-50%, -50%) scale(.55);
	transition: opacity .35s ease, transform .35s cubic-bezier(.2, .7, .2, 1);
}
.wopc-card:hover .wopc-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.wopc-play svg { width: 22px; height: 22px; fill: #fff; }

/* ---- Caption (title under the poster) ---- */
.wopc-card-caption { padding: 12px 6px 0; text-align: center; }
.wopc-card-title {
	margin: 0;
	color: #eef1f8;
	font-family: 'Droid Sans', Helvetica, Arial, sans-serif;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color .25s ease;
}
.wopc-card:hover .wopc-card-title { color: #fff; }

/* ---- Navigation arrows ---- */
.wopc-nav {
	position: absolute;
	top: 42%;
	transform: translateY(-50%);
	z-index: 12;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .18);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .25s ease, transform .25s ease, border-color .25s ease;
}
.wopc-nav:hover { background: #fd0005; border-color: #fd0005; transform: translateY(-50%) scale(1.06); }
.wopc-nav svg { width: 18px; height: 18px; fill: currentColor; }
.wopc-prev { left: 6px; }
.wopc-next { right: 6px; }
.wopc-nav.swiper-button-disabled { opacity: .3; pointer-events: none; }

/* ---- Pagination dots ---- */
/* Swiper sets an inline width (e.g. 80px) for dynamic bullets, so centre the
   whole block with auto margins instead of relying on text-align. */
.wopc-pagination { position: static; margin: 14px auto 0 !important; text-align: center; }
.wopc-hero-slider .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background: rgba(255, 255, 255, .35);
	opacity: 1;
	transition: width .25s ease, background .25s ease;
}
.wopc-hero-slider .swiper-pagination-bullet-active {
	width: 22px;
	border-radius: 4px;
	background: #fd0005;
}

/* ---- Responsive ---- */
@media (max-width: 1000px) {
	.wopc-prev { left: 4px; }
	.wopc-next { right: 4px; }
}
@media (max-width: 600px) {
	.wopc-nav { display: none; }
	.wopc-card-title { font-size: 12.5px; }
	.wopc-hero-slider { padding: 22px 0 26px; }
}
