/*
Theme Name: IPTV UK Max
Theme URI: https://iptvukmax.com/
Author: IPTVUKmax
Description: The iptvukmax.com design as a classic WordPress theme. Import site-pages.xml and blog-posts.xml (Tools > Import > WordPress) to get the site's pages and posts.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: Proprietary
Text Domain: iptvukmax
*/

/*
 * The site's styles are in assets/css/site.css (the old site's compiled
 * stylesheet, unchanged). This file only adjusts for the WordPress admin bar,
 * which logged-in administrators see and visitors never do.
 */
.admin-bar header.sticky {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar header.sticky {
		top: 46px;
	}
}

@media screen and (max-width: 600px) {
	.admin-bar header.sticky {
		top: 0;
	}
}

/* Sports rail and movie poster rows: keep moving in a loop, never paused by
   a hover, click or tap (a tap counts as hover on phones), and the cards
   can't be dragged or selected. They are decorative (aria-hidden). */
.sports-rail:hover .sports-row,
.sports-rail:active .sports-row,
.sports-rail:focus-within .sports-row,
.poster-row:hover {
	animation-play-state: running;
}

.sports-rail,
.poster-row {
	pointer-events: none;
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}

.sports-rail img,
.poster-row img {
	-webkit-user-drag: none;
}

/* Homepage "Movies & Series On Demand": one living-room TV picture in place
   of the poster rows. Under the heading on phones; behind the copy on the
   right from 1024px, with the section's navy fade lightened to keep the TV
   bright. */
.on-demand-art {
	order: 2;
	position: relative;
	z-index: 1;
	width: 100%;
	margin: 24px 0;
}

.on-demand-art img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: 88% 45%;
	-webkit-user-drag: none;
	-webkit-user-select: none;
	user-select: none;
}

@media (min-width: 1024px) {
	.on-demand-art {
		order: 0;
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		width: 72%;
		margin: 0;
	}

	.on-demand-art img {
		height: 100%;
		aspect-ratio: auto;
		object-position: 50% 45%;
	}

	.on-demand-art + div[aria-hidden="true"] {
		background: linear-gradient(90deg, #012169 0%, #012169 27%, rgba(1, 33, 105, .85) 36%, rgba(2, 11, 46, .35) 50%, transparent 62%), linear-gradient(180deg, rgba(2, 11, 46, .5), transparent 14%, transparent 86%, rgba(2, 11, 46, .5)) !important;
	}
}

/* Sections that fade in (.reveal) were skipped by the renderer until near
   the screen (content-visibility: auto), which held back their lazy images
   until the last moment. Rendering them normally lets the browser start
   those downloads well before they scroll into view. */
.reveal {
	content-visibility: visible;
}

/* Homepage "On this page" table of contents. */
.home-toc {
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
}

.home-toc__inner {
	max-width: 80rem;
	margin: 0 auto;
	padding: 1.25rem 1rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem 1.25rem;
}

.home-toc__title {
	margin: 0;
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #012169;
}

.home-toc__list {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-toc__list a {
	display: inline-block;
	padding: .375rem .75rem;
	border: 1px solid #cbd5e1;
	border-radius: 9999px;
	background: #fff;
	font-size: .875rem;
	font-weight: 600;
	color: #012169;
	text-decoration: none;
	transition: border-color .15s, color .15s;
}

.home-toc__list a:hover,
.home-toc__list a:focus-visible {
	border-color: #c8102e;
	color: #c8102e;
}

html {
	scroll-padding-top: 5rem;
}

/* Blog post: reading progress bar. */
.read-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 60;
	pointer-events: none;
}

.read-progress span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #c8102e, #ff3b5c);
	transform: scaleX(0);
	transform-origin: 0 50%;
	will-change: transform;
}

.post-updated {
	color: #6ee7b7;
}

/* Blog post: "In this guide". */
.post-toc {
	margin: 0 0 2.5rem;
	border: 1px solid #e2e8f0;
	border-radius: 1rem;
	background: linear-gradient(180deg, #f8fafc, #fff);
	box-shadow: 0 1px 2px rgba(1, 33, 105, .04), 0 8px 24px -12px rgba(1, 33, 105, .12);
	overflow: hidden;
}

.post-toc summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	cursor: pointer;
	list-style: none;
}

.post-toc summary::-webkit-details-marker {
	display: none;
}

.post-toc summary::after {
	content: "";
	width: .6rem;
	height: .6rem;
	border-right: 2px solid #012169;
	border-bottom: 2px solid #012169;
	transform: rotate(45deg);
	transition: transform .2s;
	flex-shrink: 0;
}

.post-toc details[open] summary::after {
	transform: rotate(-135deg);
}

.post-toc__title {
	font-weight: 800;
	font-size: 1rem;
	color: #012169;
}

.post-toc__count {
	margin-left: auto;
	font-size: .75rem;
	font-weight: 600;
	color: #64748b;
}

.post-toc ol {
	margin: 0;
	padding: 0 .75rem 1rem;
	list-style: none;
	display: grid;
	gap: .125rem;
}

.post-toc li a {
	display: flex;
	gap: .75rem;
	align-items: baseline;
	padding: .5rem .5rem;
	border-radius: .5rem;
	font-size: .9375rem;
	line-height: 1.4;
	color: #334155;
	text-decoration: none;
	transition: background-color .15s, color .15s;
}

.post-toc li a:hover,
.post-toc li a:focus-visible {
	background: #fff1f2;
	color: #c8102e;
}

.post-toc__n {
	flex-shrink: 0;
	display: inline-grid;
	place-items: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 9999px;
	background: #012169;
	color: #fff;
	font-size: .75rem;
	font-weight: 700;
}

article h2[id] {
	scroll-margin-top: 5.5rem;
}

/* Homepage on phones: long secondary paragraphs fold to three lines. */
.fold {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fold.fold--open {
	display: block;
	-webkit-line-clamp: unset;
}

.fold-toggle {
	margin-top: .375rem;
	padding: .25rem 0;
	background: none;
	border: 0;
	font-size: .875rem;
	font-weight: 700;
	color: #c8102e;
	cursor: pointer;
}

.text-white\/75 + .fold-toggle,
[class*="text-white"] + .fold-toggle {
	color: #ffc62e;
}

@media (prefers-reduced-motion: reduce) {
	.post-toc summary::after,
	.read-progress span {
		transition: none;
	}
}

/* =========================================================================
 * Premium design layer, November 2026
 * ====================================================================== */

:root {
	--px-navy: #012169;
	--px-deep: #020b2e;
	--px-ink: #060a1f;
	--px-red: #c8102e;
	--px-red-2: #ff3b5c;
	--px-gold: #ffb703;
	--px-gold-2: #ffd166;
	--px-line: #e2e8f0;
	--px-ease: cubic-bezier(.22, 1, .36, 1);
}

html {
	scroll-behavior: smooth;
}

::selection {
	background: rgba(200, 16, 46, .16);
	color: var(--px-navy);
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

:focus-visible {
	outline: 2px solid var(--px-red);
	outline-offset: 2px;
}

/* Header: frosted glass. */
header.sticky > nav {
	background: rgba(255, 255, 255, .96) !important;
	box-shadow: 0 8px 30px -18px rgba(2, 11, 46, .35);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom-color: rgba(1, 33, 105, .08) !important;
}

header.sticky > nav ul a {
	position: relative;
}

header.sticky > nav ul a::after {
	content: "";
	position: absolute;
	left: .75rem;
	right: .75rem;
	bottom: .25rem;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--px-red), var(--px-red-2));
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform .3s var(--px-ease);
}

header.sticky > nav ul a:hover::after,
header.sticky > nav ul a[aria-current="page"]::after {
	transform: scaleX(1);
}

/* Gold buttons: richer gradient and a light sweep on hover. */
a.bg-brand-gold,
button.bg-brand-gold,
.px-btn--gold {
	position: relative;
	overflow: hidden;
	background-image: linear-gradient(180deg, var(--px-gold-2) 0%, var(--px-gold) 55%, #f59e0b 100%) !important;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 10px 28px -10px rgba(245, 158, 11, .75) !important;
	transition: transform .25s var(--px-ease), box-shadow .25s var(--px-ease) !important;
}

a.bg-brand-gold::before,
button.bg-brand-gold::before,
.px-btn--gold::before {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
	transform: skewX(-20deg);
	transition: left .7s var(--px-ease);
	pointer-events: none;
}

a.bg-brand-gold:hover::before,
button.bg-brand-gold:hover::before,
.px-btn--gold:hover::before {
	left: 130%;
}

a.bg-brand-gold:hover,
button.bg-brand-gold:hover,
.px-btn--gold:hover {
	transform: translateY(-2px);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 16px 36px -12px rgba(245, 158, 11, .9) !important;
}

/* Headline accents: brand red becomes a red gradient. */
h1 .text-brand-red,
h2 .text-brand-red,
h1 .text-brand-red-light,
.px-grad {
	background: linear-gradient(92deg, var(--px-red) 0%, var(--px-red-2) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent !important;
}

h2.font-display,
h2 .font-display,
.px-h2 {
	letter-spacing: -.025em;
}

/* Eyebrow pills: tighter, more refined. */
.eyebrow,
.eyebrow-dark {
	box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset;
	letter-spacing: .14em !important;
}

/* Cards: soft depth, lift and a red edge glow on hover (desktop pointers). */
main .rounded-2xl.border.bg-white,
main .rounded-3xl.border.bg-white,
main .rounded-2xl.border.border-slate-200 {
	transition: transform .35s var(--px-ease), box-shadow .35s var(--px-ease), border-color .35s var(--px-ease);
	box-shadow: 0 1px 2px rgba(2, 11, 46, .04), 0 12px 32px -18px rgba(2, 11, 46, .18);
}

@media (hover: hover) {
	main .rounded-2xl.border.bg-white:hover,
	main .rounded-3xl.border.bg-white:hover,
	main .rounded-2xl.border.border-slate-200:hover {
		transform: translateY(-4px);
		border-color: rgba(200, 16, 46, .28);
		box-shadow: 0 2px 4px rgba(2, 11, 46, .05), 0 26px 50px -22px rgba(1, 33, 105, .35);
	}
}

/* Pricing: the Best Value plan gets an animated gradient ring. */
.card-pulse {
	border-color: transparent !important;
	background:
		linear-gradient(#fff, #fff) padding-box,
		conic-gradient(from var(--px-angle, 0deg), var(--px-navy), var(--px-red), var(--px-gold), var(--px-navy)) border-box !important;
	box-shadow: 0 30px 60px -28px rgba(1, 33, 105, .55), 0 0 0 6px rgba(1, 33, 105, .04) !important;
	animation: px-spin 6s linear infinite;
}

@property --px-angle {
	syntax: "<angle>";
	initial-value: 0deg;
	inherits: false;
}

@keyframes px-spin {
	to {
		--px-angle: 360deg;
	}
}

/* Footer: brand line on top and a soft glow. */
footer.bg-brand-ink {
	position: relative;
	background:
		radial-gradient(60% 50% at 15% 0%, rgba(200, 16, 46, .12), transparent 70%),
		radial-gradient(50% 40% at 90% 10%, rgba(1, 33, 105, .45), transparent 70%),
		var(--px-ink) !important;
}

footer.bg-brand-ink::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: linear-gradient(90deg, var(--px-navy), var(--px-red), var(--px-gold), var(--px-red), var(--px-navy));
}

/* "On this page" bar: dark glass that continues the hero. */
.home-toc {
	background: linear-gradient(180deg, var(--px-deep), #04113a) !important;
	border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
}

.home-toc__title {
	color: rgba(255, 255, 255, .55) !important;
}

.home-toc__list a {
	background: rgba(255, 255, 255, .06) !important;
	border-color: rgba(255, 255, 255, .14) !important;
	color: #fff !important;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.home-toc__list a:hover,
.home-toc__list a:focus-visible {
	background: rgba(255, 183, 3, .14) !important;
	border-color: rgba(255, 183, 3, .6) !important;
	color: var(--px-gold-2) !important;
}

/* ---------- New sections: shared ---------- */
.px-section {
	position: relative;
	padding: 4rem 1rem;
}

@media (min-width: 768px) {
	.px-section {
		padding: 6rem 1rem;
	}
}

.px-wrap {
	max-width: 72rem;
	margin: 0 auto;
}

.px-head {
	max-width: 46rem;
	margin: 0 auto 2.5rem;
	text-align: center;
}

.px-h2 {
	margin-top: 1rem;
	font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem);
	line-height: 1.12;
	font-weight: 800;
	color: var(--px-navy);
}

.px-lead {
	margin-top: 1rem;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: #475569;
}

.px-ico {
	flex-shrink: 0;
}

.px-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .95rem 1.6rem;
	border-radius: .9rem;
	font-weight: 800;
	font-size: 1rem;
	text-decoration: none;
	transition: transform .25s var(--px-ease), background-color .25s, border-color .25s, color .25s;
}

.px-btn--gold {
	color: var(--px-navy);
}

.px-btn--ghost {
	border: 1.5px solid rgba(1, 33, 105, .2);
	color: var(--px-navy);
	background: #fff;
}

.px-btn--ghost:hover {
	border-color: var(--px-navy);
	transform: translateY(-2px);
}

.px-btn--ghost-dark {
	border: 1.5px solid rgba(255, 255, 255, .25);
	color: #fff;
	background: rgba(255, 255, 255, .04);
}

.px-btn--ghost-dark:hover {
	border-color: rgba(255, 255, 255, .6);
	transform: translateY(-2px);
}

.px-cta-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .75rem;
	margin-top: 2rem;
}

.px-cta-row--left {
	justify-content: flex-start;
}

.px-note {
	margin-top: 1rem;
	text-align: center;
	font-size: .75rem;
	color: #94a3b8;
}

/* ---------- Comparison ---------- */
.px-cmp {
	background:
		radial-gradient(50% 60% at 50% 0%, rgba(1, 33, 105, .06), transparent 70%),
		#f8fafc;
}

.px-cmp__card {
	border-radius: 1.5rem;
	background: #fff;
	border: 1px solid var(--px-line);
	box-shadow: 0 40px 80px -40px rgba(1, 33, 105, .35);
	overflow: hidden;
}

.px-cmp__table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: .9375rem;
}

.px-cmp__table th,
.px-cmp__table td {
	padding: 1rem 1.25rem;
	text-align: left;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
}

.px-cmp__table thead th {
	padding-top: 1.5rem;
	font-family: var(--font-display), system-ui, sans-serif;
	font-size: 1rem;
	font-weight: 800;
	color: var(--px-navy);
	background: #fff;
}

.px-cmp__table tbody th {
	font-weight: 700;
	color: #0f172a;
	width: 24%;
}

.px-cmp__table tbody tr:last-child > * {
	border-bottom: 0;
}

.px-cmp__table .px-cmp__us {
	background: linear-gradient(180deg, rgba(1, 33, 105, .045), rgba(200, 16, 46, .035));
	box-shadow: inset 2px 0 0 rgba(1, 33, 105, .12), inset -2px 0 0 rgba(1, 33, 105, .12);
}

.px-cmp__table thead .px-cmp__us {
	position: relative;
	color: var(--px-red);
	font-size: 1.15rem;
}

.px-cmp__badge {
	display: block;
	width: max-content;
	margin-bottom: .4rem;
	padding: .2rem .6rem;
	border-radius: 9999px;
	background: var(--px-gold);
	color: var(--px-navy);
	font-size: .65rem;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.px-cmp__v {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	color: #475569;
}

.px-cmp__v--strong,
.px-cmp__us .px-cmp__v {
	color: var(--px-navy);
	font-weight: 700;
}

.px-cmp__v .px-ico {
	width: 1.35rem;
	height: 1.35rem;
	padding: .2rem;
	border-radius: 9999px;
}

.px-cmp__v--yes .px-ico {
	background: #dcfce7;
	color: #15803d;
}

.px-cmp__v--no .px-ico {
	background: #fee2e2;
	color: #b91c1c;
}

.px-cmp__v--maybe .px-ico {
	background: #fef3c7;
	color: #b45309;
}

@media (hover: hover) {
	.px-cmp__table tbody tr:hover > * {
		background-color: #fafbff;
	}

	.px-cmp__table tbody tr:hover > .px-cmp__us {
		background: linear-gradient(180deg, rgba(1, 33, 105, .07), rgba(200, 16, 46, .05));
	}
}

/* Phones: each row becomes a card with three labelled values. */
@media (max-width: 767px) {
	.px-cmp__card {
		background: transparent;
		border: 0;
		box-shadow: none;
		overflow: visible;
	}

	.px-cmp__table thead {
		display: none;
	}

	.px-cmp__table,
	.px-cmp__table tbody,
	.px-cmp__table tr,
	.px-cmp__table th,
	.px-cmp__table td {
		display: block;
		width: 100%;
	}

	.px-cmp__table tr {
		margin-bottom: .875rem;
		border-radius: 1rem;
		border: 1px solid var(--px-line);
		background: #fff;
		box-shadow: 0 12px 28px -20px rgba(1, 33, 105, .35);
		overflow: hidden;
	}

	.px-cmp__table tbody th {
		width: 100%;
		padding: .85rem 1rem;
		background: var(--px-navy);
		color: #fff;
		font-size: .9375rem;
	}

	.px-cmp__table td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 1rem;
		padding: .7rem 1rem;
		font-size: .875rem;
	}

	.px-cmp__table td::before {
		content: attr(data-label);
		font-size: .75rem;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: .06em;
		color: #94a3b8;
	}

	.px-cmp__table td.px-cmp__us::before {
		color: var(--px-red);
	}

	.px-cmp__table .px-cmp__us {
		box-shadow: none;
	}

	.px-cmp__v {
		text-align: right;
	}
}

/* ---------- Promise ---------- */
.px-promise {
	overflow: hidden;
	color: #fff;
	background:
		radial-gradient(45% 60% at 10% 10%, rgba(200, 16, 46, .28), transparent 70%),
		radial-gradient(50% 70% at 95% 90%, rgba(255, 183, 3, .14), transparent 70%),
		linear-gradient(135deg, #031544 0%, var(--px-deep) 60%, var(--px-ink) 100%);
}

.px-promise::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
	mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
	pointer-events: none;
}

.px-promise__grid {
	position: relative;
	display: grid;
	gap: 2.5rem;
	align-items: center;
}

@media (min-width: 1024px) {
	.px-promise__grid {
		grid-template-columns: .9fr 1.1fr;
		gap: 4rem;
	}
}

.px-promise .px-h2 {
	color: #fff;
}

.px-promise .px-lead {
	color: rgba(255, 255, 255, .72);
}

.px-seal {
	width: 104px;
	height: 104px;
	margin-bottom: 1.25rem;
	color: var(--px-gold);
	filter: drop-shadow(0 10px 30px rgba(255, 183, 3, .35));
	animation: px-seal 28s linear infinite;
}

.px-seal svg {
	width: 100%;
	height: 100%;
}

@keyframes px-seal {
	to {
		transform: rotate(360deg);
	}
}

.px-promise__list {
	display: grid;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.px-promise__list {
		grid-template-columns: 1fr 1fr;
	}
}

.px-promise__item {
	display: flex;
	gap: 1rem;
	padding: 1.4rem;
	border-radius: 1.25rem;
	background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
	border: 1px solid rgba(255, 255, 255, .12);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	transition: transform .35s var(--px-ease), border-color .35s;
}

@media (hover: hover) {
	.px-promise__item:hover {
		transform: translateY(-4px);
		border-color: rgba(255, 183, 3, .45);
	}
}

.px-promise__ico {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: .9rem;
	background: linear-gradient(135deg, var(--px-red), var(--px-red-2));
	box-shadow: 0 10px 24px -10px rgba(255, 59, 92, .8);
	color: #fff;
}

.px-promise__item h3 {
	margin: 0;
	font-family: var(--font-display), system-ui, sans-serif;
	font-size: 1.05rem;
	font-weight: 800;
	color: #fff;
}

.px-promise__item p {
	margin: .35rem 0 0;
	font-size: .9rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, .7);
}

@media (prefers-reduced-motion: reduce) {
	.card-pulse,
	.px-seal {
		animation: none;
	}

	a.bg-brand-gold::before,
	button.bg-brand-gold::before,
	.px-btn--gold::before {
		display: none;
	}
}
