/* =========================================================================
   IPTV Pro — section layouts
   Tokens, reset, typography and buttons live in style.css.
   Order: 1 Hero · 2 Why Choose Us · 3 Pricing · 4 Content grids · 5 CTA
          6 Skeletons · 7 Responsive · 8 Motion
   ========================================================================= */

.ip-main {
	display: block;
	overflow-x: clip;
}

/* =========================================================================
   1. HERO SLIDER
   ========================================================================= */
.ip-hero {
	position: relative;
	overflow: hidden;
	background: var(--ip-surface);
}

.ip-hero__viewport {
	overflow: hidden;
}

.ip-hero__track {
	display: flex;
	transition: transform .7s var(--ip-ease);
	will-change: transform;
}

.ip-hero.is-dragging .ip-hero__track {
	transition: none;
}

.ip-hero__slide {
	position: relative;
	flex: 0 0 100%;
	min-width: 100%;
	height: clamp(460px, 82vh, 900px);
	display: flex;
	align-items: center;
	overflow: hidden;
}

.ip-hero__media {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.ip-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Two scrims: a vertical fade that blends into the page, plus a horizontal one
   so left-aligned copy always sits on the darkest part of the image. */
.ip-hero__slide::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background:
		linear-gradient(to top, var(--ip-bg) 1%, rgba(10, 10, 10, .2) 55%, rgba(10, 10, 10, .05) 100%),
		linear-gradient(to right, rgba(10, 10, 10, calc(var(--ip-overlay, .55) + .28)) 0%, rgba(10, 10, 10, var(--ip-overlay, .55)) 46%, rgba(10, 10, 10, .12) 100%);
}

.ip-hero__slide--center::after {
	background:
		linear-gradient(to top, var(--ip-bg) 1%, rgba(10, 10, 10, .18) 60%, rgba(10, 10, 10, .05) 100%),
		linear-gradient(to bottom, rgba(10, 10, 10, var(--ip-overlay, .55)), rgba(10, 10, 10, var(--ip-overlay, .55)));
}

.ip-hero__inner {
	position: relative;
	z-index: 3;
	width: 100%;
}

.ip-hero__content {
	max-width: 660px;
}

.ip-hero__slide--center .ip-hero__content {
	max-width: 780px;
	margin-inline: auto;
	text-align: center;
}

.ip-hero__badge {
	display: inline-block;
	margin-bottom: 18px;
	padding: 7px 15px;
	border: 1px solid rgba(var(--ip-accent-rgb), .5);
	border-radius: var(--ip-radius-pill);
	background: rgba(var(--ip-accent-rgb), .16);
	color: #fff;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.ip-hero__title {
	margin: 0 0 14px;
	font-size: clamp(2rem, 5.4vw, 4.25rem);
	font-weight: 900;
	line-height: 1.04;
}

.ip-hero__subtitle {
	margin: 0 0 12px;
	color: var(--ip-gold);
	font-size: clamp(1rem, 1.6vw, 1.2rem);
	font-weight: 600;
}

.ip-hero__text {
	max-width: 56ch;
	margin: 0 0 30px;
	color: rgba(255, 255, 255, .85);
	font-size: clamp(.95rem, 1.2vw, 1.07rem);
	line-height: 1.7;
}

.ip-hero__slide--center .ip-hero__text {
	margin-inline: auto;
}

.ip-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.ip-hero__slide--center .ip-hero__actions {
	justify-content: center;
}

/* Copy rises in as each slide becomes active. */
.ip-hero__content > * {
	opacity: 0;
	transform: translateY(24px);
}

.ip-hero__slide.is-active .ip-hero__content > * {
	animation: ip-rise .65s var(--ip-ease) forwards;
}

.ip-hero__slide.is-active .ip-hero__content > *:nth-child(1) { animation-delay: .05s; }
.ip-hero__slide.is-active .ip-hero__content > *:nth-child(2) { animation-delay: .15s; }
.ip-hero__slide.is-active .ip-hero__content > *:nth-child(3) { animation-delay: .25s; }
.ip-hero__slide.is-active .ip-hero__content > *:nth-child(4) { animation-delay: .35s; }
.ip-hero__slide.is-active .ip-hero__content > *:nth-child(5) { animation-delay: .45s; }

@keyframes ip-rise {
	to { opacity: 1; transform: none; }
}

/* Slow zoom on the active background. */
.ip-hero__slide.is-active .ip-hero__img {
	animation: ip-kenburns 9s var(--ip-ease) forwards;
}

@keyframes ip-kenburns {
	from { transform: scale(1.02); }
	to   { transform: scale(1.12); }
}

/* Arrows */
.ip-hero__nav {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	transform: translateY(-50%);
	border: 1px solid var(--ip-border-strong);
	border-radius: 50%;
	background: rgba(10, 10, 10, .55);
	color: #fff;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: background var(--ip-speed) var(--ip-ease), transform var(--ip-speed) var(--ip-ease);
}

.ip-hero__nav:hover {
	background: var(--ip-accent);
	border-color: var(--ip-accent);
	transform: translateY(-50%) scale(1.06);
}

.ip-hero__nav--prev { left: 20px; }
.ip-hero__nav--next { right: 20px; }

/* Dots */
.ip-hero__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 24px;
	z-index: 5;
	display: flex;
	justify-content: center;
	gap: 9px;
}

.ip-hero__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .32);
	transition: all var(--ip-speed) var(--ip-ease);
}

.ip-hero__dot.is-active {
	width: 30px;
	border-radius: var(--ip-radius-pill);
	background: var(--ip-accent);
}

/* =========================================================================
   2. WHY CHOOSE US
   ========================================================================= */
.ip-why__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.ip-why__card {
	padding: 34px 30px;
	border: 1px solid var(--ip-border);
	border-radius: var(--ip-radius-lg);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0) 40%),
		var(--ip-surface);
	transition: transform var(--ip-speed) var(--ip-ease),
		border-color var(--ip-speed) var(--ip-ease),
		box-shadow var(--ip-speed) var(--ip-ease);
}

.ip-why__card:hover {
	transform: translateY(-6px);
	border-color: rgba(var(--ip-accent-rgb), .38);
	box-shadow: var(--ip-shadow);
}

/* Empty icon slot — styled so it reads as intentional, not as a missing asset.
   Drop an <img> or inline <svg> inside and it is centred automatically. */
.ip-why__icon {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	margin-bottom: 20px;
	border: 1px solid rgba(var(--ip-accent-rgb), .3);
	border-radius: 16px;
	background: rgba(var(--ip-accent-rgb), .12);
	color: var(--ip-accent);
	overflow: hidden;
}

.ip-why__icon img,
.ip-why__icon svg {
	width: 26px;
	height: 26px;
	object-fit: contain;
}

/* Faint dot so a genuinely empty tile still looks composed. */
.ip-why__icon:empty::before {
	content: "";
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: rgba(var(--ip-accent-rgb), .55);
}

.ip-why__title {
	margin: 0 0 10px;
	font-size: 1.25rem;
}

.ip-why__text {
	margin: 0;
	color: var(--ip-muted);
	font-size: 15px;
	line-height: 1.7;
}

/* =========================================================================
   3. PRICING
   ========================================================================= */
.ip-pricing__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	align-items: stretch;
}

.ip-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 36px 28px 30px;
	border: 1px solid var(--ip-border);
	border-radius: var(--ip-radius-lg);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, 0) 42%),
		var(--ip-surface);
	transition: transform var(--ip-speed) var(--ip-ease),
		border-color var(--ip-speed) var(--ip-ease),
		box-shadow var(--ip-speed) var(--ip-ease);
}

.ip-plan:hover {
	transform: translateY(-6px);
	border-color: var(--ip-border-strong);
	box-shadow: var(--ip-shadow);
}

.ip-plan.is-featured {
	border-color: rgba(var(--ip-accent-rgb), .55);
	background:
		linear-gradient(180deg, rgba(var(--ip-accent-rgb), .13), rgba(255, 255, 255, 0) 42%),
		var(--ip-surface-2);
	box-shadow: 0 0 0 1px rgba(var(--ip-accent-rgb), .3), var(--ip-glow);
	transform: scale(1.04);
	z-index: 2;
}

.ip-plan.is-featured:hover {
	transform: scale(1.04) translateY(-6px);
}

.ip-plan__ribbon {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 7px 18px;
	border-radius: var(--ip-radius-pill);
	background: var(--ip-gold);
	color: #16160f;
	font-size: 10.5px;
	font-weight: 900;
	letter-spacing: .12em;
	text-transform: uppercase;
	white-space: nowrap;
	box-shadow: 0 8px 22px rgba(245, 179, 1, .32);
}

.ip-plan__head {
	text-align: center;
	margin-bottom: 16px;
}

.ip-plan__name {
	margin: 0;
	font-size: 1.2rem;
	letter-spacing: 0;
}

.ip-plan__price {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding-bottom: 22px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--ip-border);
}

.ip-plan__old {
	color: var(--ip-dim);
	font-size: 15px;
	text-decoration: line-through;
}

.ip-plan__amount {
	display: inline-flex;
	align-items: flex-start;
	gap: 2px;
	font-size: clamp(2.4rem, 3.2vw, 3rem);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -.03em;
}

.ip-plan__currency {
	margin-top: .35em;
	color: var(--ip-muted);
	font-size: .45em;
	font-weight: 700;
}

.ip-plan__period {
	color: var(--ip-muted);
	font-size: 13px;
}

.ip-plan__save {
	align-self: center;
	margin: -6px 0 18px;
	padding: 4px 12px;
	border: 1px solid rgba(34, 197, 94, .35);
	border-radius: var(--ip-radius-pill);
	background: rgba(34, 197, 94, .13);
	color: var(--ip-green);
	font-size: 12px;
	font-weight: 700;
}

.ip-plan__features {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0 0 26px;
}

.ip-plan__features li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: rgba(255, 255, 255, .86);
	font-size: 14.5px;
	line-height: 1.45;
}

.ip-plan__features svg {
	flex: 0 0 auto;
	margin-top: 2px;
}

.ip-plan__features .is-on svg { color: var(--ip-green); }

.ip-plan__features .is-off {
	color: var(--ip-dim);
	text-decoration: line-through;
	text-decoration-color: rgba(255, 255, 255, .2);
}

.ip-plan__features .is-off svg { color: var(--ip-dim); }

.ip-plan__cta {
	margin-top: auto;
}

/* =========================================================================
   4. CONTENT GRIDS — channels & movies
   ========================================================================= */
.ip-content__bar {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 30px;
}

.ip-content__bar .ip-eyebrow {
	margin-bottom: 6px;
}

.ip-content__title {
	margin: 0;
	font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.ip-grid {
	display: grid;
	gap: 20px;
}

.ip-grid--posters {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ip-grid--wide {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ip-card {
	min-width: 0;
}

.ip-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--ip-radius);
	background: var(--ip-surface-2);
	transition: transform var(--ip-speed) var(--ip-ease), box-shadow var(--ip-speed) var(--ip-ease);
}

.ip-card__media--poster { aspect-ratio: 2 / 3; }
.ip-card__media--wide { aspect-ratio: 16 / 9; }

.ip-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s var(--ip-ease);
}

.ip-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(10, 10, 10, .85), rgba(10, 10, 10, 0) 55%);
	opacity: .55;
	transition: opacity var(--ip-speed) var(--ip-ease);
}

.ip-card:hover .ip-card__media {
	transform: translateY(-6px);
	box-shadow: var(--ip-shadow-lg);
}

.ip-card:hover .ip-card__img { transform: scale(1.07); }
.ip-card:hover .ip-card__media::after { opacity: .85; }

.ip-card__badges {
	position: absolute;
	top: 10px;
	left: 10px;
	right: 10px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	pointer-events: none;
}

.ip-card__badges .ip-chip:only-child { margin-right: auto; }

.ip-card__play {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--ip-speed) var(--ip-ease);
}

.ip-card__play svg {
	width: 54px;
	height: 54px;
	padding: 14px;
	border-radius: 50%;
	background: rgba(var(--ip-accent-rgb), .94);
	color: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
	transform: scale(.82);
	transition: transform var(--ip-speed) var(--ip-ease);
}

.ip-card:hover .ip-card__play { opacity: 1; }
.ip-card:hover .ip-card__play svg { transform: scale(1); }

.ip-card__body {
	padding: 14px 2px 0;
}

.ip-card__title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ip-card__title a { transition: color var(--ip-speed) var(--ip-ease); }
.ip-card__title a:hover { color: var(--ip-accent); }

.ip-card__meta {
	margin: 6px 0 0;
	color: var(--ip-muted);
	font-size: 13px;
}

.ip-card--empty .ip-card__media { cursor: default; }
.ip-card--empty:hover .ip-card__media { transform: none; box-shadow: none; }

.ip-hint {
	margin: 26px 0 0;
	padding: 16px 20px;
	border: 1px dashed var(--ip-border-strong);
	border-radius: var(--ip-radius);
	color: var(--ip-muted);
	font-size: 14.5px;
	text-align: center;
}

.ip-hint a {
	color: var(--ip-accent);
	font-weight: 700;
}

/* =========================================================================
   5. CTA
   ========================================================================= */
.ip-cta__box {
	padding: 64px 40px;
	border: 1px solid var(--ip-border);
	border-radius: var(--ip-radius-lg);
	background:
		radial-gradient(120% 140% at 50% 0%, rgba(var(--ip-accent-rgb), .16), rgba(255, 255, 255, 0) 60%),
		var(--ip-surface);
	text-align: center;
}

.ip-cta__title {
	margin: 0 0 10px;
	font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.ip-cta__text {
	max-width: 52ch;
	margin: 0 auto 26px;
	color: var(--ip-muted);
	font-size: 16px;
}

/* =========================================================================
   6. SKELETONS — empty-state placeholders
   ========================================================================= */
.ip-skel {
	display: block;
	border-radius: 6px;
	background: linear-gradient(90deg, var(--ip-surface-2) 25%, var(--ip-surface-3) 37%, var(--ip-surface-2) 63%);
	background-size: 400% 100%;
	animation: ip-shimmer 1.6s ease-in-out infinite;
}

.ip-skel--title {
	width: 78%;
	height: 13px;
	margin-bottom: 9px;
}

.ip-skel--meta {
	width: 45%;
	height: 10px;
}

@keyframes ip-shimmer {
	from { background-position: 100% 50%; }
	to   { background-position: 0 50%; }
}

/* =========================================================================
   7. RESPONSIVE
   ========================================================================= */

/* Laptop / small desktop */
@media (max-width: 1200px) {
	.ip-pricing__grid { gap: 18px; }
	.ip-plan { padding: 32px 22px 26px; }
}

/* Tablet */
@media (max-width: 1024px) {
	.ip-hero__slide { height: clamp(440px, 66vh, 620px); }

	.ip-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.ip-pricing__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

	/* Scaling the featured card would overlap its neighbour in a 2-up grid. */
	.ip-plan.is-featured { transform: none; }
	.ip-plan.is-featured:hover { transform: translateY(-6px); }

	.ip-grid--posters,
	.ip-grid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	.ip-hero__nav { width: 44px; height: 44px; }
	.ip-hero__nav--prev { left: 12px; }
	.ip-hero__nav--next { right: 12px; }
}

/* Mobile */
@media (max-width: 767px) {
	.ip-hero__slide {
		height: auto;
		min-height: 520px;
		align-items: flex-end;
		padding-block: 90px 56px;
	}

	.ip-hero__slide--center .ip-hero__content {
		margin-inline: 0;
		text-align: left;
	}

	.ip-hero__slide--center .ip-hero__text { margin-inline: 0; }
	.ip-hero__slide--center .ip-hero__actions { justify-content: flex-start; }

	.ip-hero__title { font-size: clamp(1.85rem, 8vw, 2.5rem); }
	.ip-hero__text { margin-bottom: 24px; }

	.ip-hero__actions { width: 100%; }
	.ip-hero__actions .ip-btn { flex: 1 1 auto; }

	/* Arrows are cramped on a phone — swipe handles navigation instead. */
	.ip-hero__nav { display: none; }
	.ip-hero__dots { bottom: 16px; }

	.ip-why__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.ip-why__card { padding: 26px 22px; }

	.ip-pricing__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }

	.ip-content__bar {
		align-items: flex-start;
		margin-bottom: 22px;
	}

	.ip-grid { gap: 14px; }
	.ip-grid--posters,
	.ip-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.ip-card__body { padding-top: 11px; }
	.ip-card__title { font-size: 14px; }
	.ip-card__meta { font-size: 12px; }
	.ip-card__play svg { width: 44px; height: 44px; padding: 11px; }

	.ip-cta__box { padding: 44px 22px; }
}

/* Small phones */
@media (max-width: 420px) {
	.ip-hero__actions { flex-direction: column; }
	.ip-hero__actions .ip-btn { width: 100%; }
	.ip-grid--wide { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================================
   8. MOTION & PRINT
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
	.ip-hero__track { transition: none; }

	.ip-hero__slide.is-active .ip-hero__img { animation: none; }

	.ip-hero__content > * {
		opacity: 1;
		transform: none;
		animation: none !important;
	}

	.ip-skel { animation: none; }

	.ip-card:hover .ip-card__media,
	.ip-card:hover .ip-card__img,
	.ip-plan:hover,
	.ip-why__card:hover { transform: none; }
}

@media print {
	.ip-hero__nav,
	.ip-hero__dots,
	.ip-card__play { display: none !important; }

	.ip-main { color: #000; }
}
