html, body.pitv-body {
	margin: 0;
	padding: 0;
	background: #0b0b0b;
	color: #f2f2f2;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.pitv-body * {
	box-sizing: border-box;
}

.pitv-wrap {
	background: #0b0b0b;
	padding: 24px 4vw 64px;
}

/* ---------------------------------------------------------------
 * Header
 * ------------------------------------------------------------- */

.pitv-header {
	display: flex;
	align-items: center;
	gap: 28px;
	background: #0b0b0b;
	padding: 16px 4vw;
	border-bottom: 1px solid #1e1e1e;
	position: sticky;
	top: 0;
	z-index: 500;
}

.pitv-nav-toggle {
	display: none;
}

.pitv-logo {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
}

.pitv-logo img {
	height: 32px;
	display: block;
}

.pitv-logo span {
	color: #fff;
	font-weight: 800;
	font-size: 1.2rem;
	letter-spacing: 0.02em;
}

.pitv-nav {
	flex: 1 1 auto;
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}

.pitv-nav a {
	color: #d9d9d9;
	text-decoration: none;
	font-size: 0.92rem;
	font-family: 'Oswald', sans-serif;
	font-weight: 700;
	white-space: nowrap;
}

.pitv-nav a:hover {
	color: #ffffff;
}

.pitv-back-btn {
	flex: 0 0 auto;
	border: 1px solid #d21f26;
	color: #d21f26;
	padding: 8px 16px;
	border-radius: 999px;
	text-decoration: none;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}

.pitv-back-btn:hover {
	background: #d21f26;
	color: #fff;
}

.pitv-back-label-short {
	display: none;
}

/* ---------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------- */

.pitv-hero {
	position: relative;
	height: clamp(420px, 44vw, 600px);
	overflow: hidden;
}

.pitv-hero-image {
	position: absolute;
	top: 0;
	right: 0;
	width: 78%;
	height: 100%;
	object-fit: cover;
	display: block;
	z-index: 1;
}

.pitv-hero-gradient {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(
		90deg,
		#0b0b0b 0%,
		#0b0b0b 20%,
		rgba(11, 11, 11, 0.85) 30%,
		rgba(11, 11, 11, 0.35) 40%,
		transparent 52%
	);
}

.pitv-hero-content {
	/* Absolutely positioned (not just relative) so it reliably overlays the
	   image/gradient layers regardless of how much text it holds — a
	   normal-flow box here could get pushed below the image on narrow
	   screens where the title wraps to more lines. */
	position: absolute;
	inset: 0;
	z-index: 3;
	max-width: 720px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: 0 4vw;
}

.pitv-hero-badge {
	max-height: 32px;
	width: auto;
	display: block;
	margin-bottom: 14px;
}

.pitv-hero-category {
	display: inline-block;
	color: #d21f26;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 10px;
}

.pitv-hero-title {
	font-size: clamp(1.6rem, 3.2vw, 2.6rem);
	font-weight: 800;
	margin: 0 0 12px;
	line-height: 1.15;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.pitv-hero-description {
	color: #dcdcdc;
	font-size: 1rem;
	line-height: 1.5;
	margin: 0 0 20px;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.pitv-play-btn {
	background: #d21f26;
	color: #fff;
	border: none;
	padding: 12px 28px;
	border-radius: 6px;
	font-weight: 800;
	font-size: 0.95rem;
	letter-spacing: 0.03em;
	cursor: pointer;
}

.pitv-play-btn:hover {
	background: #b31820;
}

/* ---------------------------------------------------------------
 * Category tile row
 * ------------------------------------------------------------- */

.pitv-tile-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
	padding: 28px 4vw 4px;
}

.pitv-tile {
	display: block;
	border-radius: 8px;
	overflow: hidden;
	background: #151515;
	border: 1px solid #262626;
	aspect-ratio: 16 / 9;
	position: relative;
	transition: transform 0.18s ease, border-color 0.18s ease;
}

.pitv-tile:hover {
	transform: scale(1.03);
	border-color: #d21f26;
}

.pitv-tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pitv-tile-fallback {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 800;
	text-align: center;
	padding: 10px;
	font-size: 1.1rem;
}

/* ---------------------------------------------------------------
 * Rows
 * ------------------------------------------------------------- */

.pitv-row {
	margin-bottom: 36px;
}

.pitv-row-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 12px;
}

.pitv-row-title {
	font-size: 1.3rem;
	font-weight: 700;
	margin: 0;
	color: #ffffff;
}

.pitv-view-all {
	color: #d21f26;
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 700;
	white-space: nowrap;
}

.pitv-view-all:hover {
	text-decoration: underline;
}

.pitv-row-scroller {
	position: relative;
}

.pitv-row-arrow {
	position: absolute;
	top: 0;
	bottom: 10px;
	width: 40px;
	background: rgba(0, 0, 0, 0.55);
	border: none;
	color: #fff;
	font-size: 1.1rem;
	cursor: pointer;
	z-index: 3;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.pitv-row-scroller:hover .pitv-row-arrow {
	opacity: 1;
}

.pitv-row-arrow-prev {
	left: 0;
}

.pitv-row-arrow-next {
	right: 0;
}

.pitv-row-track {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	overflow-y: hidden;
	padding-bottom: 10px;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
	scrollbar-color: #d21f26 #1a1a1a;
}

.pitv-row-track::-webkit-scrollbar {
	height: 8px;
}
.pitv-row-track::-webkit-scrollbar-thumb {
	background: #d21f26;
	border-radius: 4px;
}
.pitv-row-track::-webkit-scrollbar-track {
	background: #1a1a1a;
}

/* ---------------------------------------------------------------
 * Cards (shared by rows and grid)
 * ------------------------------------------------------------- */

.pitv-card {
	flex: 0 0 280px;
	scroll-snap-align: start;
	background: #151515;
	border: 1px solid #262626;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	text-align: left;
	padding: 0;
	color: inherit;
	transition: transform 0.18s ease, border-color 0.18s ease;
	display: flex;
	flex-direction: column;
}

.pitv-card:hover,
.pitv-card:focus-visible {
	transform: scale(1.04);
	border-color: #d21f26;
	z-index: 2;
}

.pitv-card-thumb {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
	background: #000;
}

.pitv-card-category {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #d21f26;
	font-weight: 700;
	padding: 10px 12px 0;
}

.pitv-card-title {
	font-size: 0.92rem;
	font-weight: 600;
	padding: 4px 12px 12px;
	line-height: 1.3;
}

/* ---------------------------------------------------------------
 * Full library grid (category archive page)
 * ------------------------------------------------------------- */

.pitv-archive-title {
	font-size: 1.8rem;
	font-weight: 800;
	margin: 8px 0 24px;
}

.pitv-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 18px;
}

.pitv-grid .pitv-card {
	flex: none;
	width: 100%;
}

.pitv-pagination {
	margin: 36px 0;
	display: flex;
	justify-content: center;
	gap: 10px;
}

.pitv-pagination .page-numbers {
	color: #d9d9d9;
	text-decoration: none;
	padding: 8px 14px;
	border: 1px solid #262626;
	border-radius: 4px;
}

.pitv-pagination .page-numbers.current {
	background: #d21f26;
	border-color: #d21f26;
	color: #fff;
}

.pitv-empty {
	color: #999;
	padding: 40px 0;
}

/* ---------------------------------------------------------------
 * Modal
 * ------------------------------------------------------------- */

.pitv-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
}

.pitv-modal.is-open {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.pitv-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.88);
}

.pitv-modal-dialog {
	position: relative;
	width: 100%;
	max-width: 960px;
	margin: 0;
	/* Slightly above dead-center, per request. */
	transform: translateY(-6%);
	background: #0b0b0b;
	border-radius: 10px;
	overflow: hidden;
	max-height: 88vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.pitv-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	border: none;
	font-size: 1.8rem;
	line-height: 1;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	z-index: 2;
}

.pitv-modal-body {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.pitv-modal-body iframe.pitv-youtube-iframe,
.pitv-modal-body video {
	width: 100%;
	height: 100%;
	display: block;
}

.pitv-modal-info {
	padding: 18px 20px 24px;
}

.pitv-modal-info h2 {
	margin: 0 0 10px;
	font-family: 'Oswald', sans-serif;
	font-weight: 700;
	font-size: 1.7rem;
	line-height: 1.25;
}

.pitv-desc-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	padding: 0;
	color: #a8a8a8;
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
	margin-bottom: 8px;
}

.pitv-desc-toggle:hover {
	color: #ffffff;
}

.pitv-desc-toggle-arrow {
	display: inline-block;
	transition: transform 0.15s ease;
	font-size: 0.7rem;
}

.pitv-desc-toggle.is-expanded .pitv-desc-toggle-arrow {
	transform: rotate(180deg);
}

.pitv-modal-description {
	margin: 8px 0 0;
	color: #c7c7c7;
	font-size: 0.85rem;
	line-height: 1.55;
	white-space: pre-line;
}

/* ---------- Header/nav: collapses to a hamburger well before the nav
   links would ever wrap onto a second line. This breakpoint is wider than
   the phone-specific one below, since "not enough room for the full nav"
   happens at tablet/narrow-desktop widths too, not just on phones. ---------- */
@media (max-width: 1024px) {
	.pitv-header {
		flex-wrap: wrap;
		align-items: center;
		gap: 8px;
		position: sticky;
	}

	.pitv-nav-toggle {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		flex: 0 0 auto;
		width: 26px;
		height: 26px;
		background: none;
		border: none;
		padding: 0;
		cursor: pointer;
		order: 1;
	}
	.pitv-nav-toggle-bar {
		display: block;
		height: 2px;
		width: 100%;
		background: #fff;
		border-radius: 2px;
		transition: transform 0.15s ease, opacity 0.15s ease;
	}
	.pitv-nav-toggle.is-open .pitv-nav-toggle-bar:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}
	.pitv-nav-toggle.is-open .pitv-nav-toggle-bar:nth-child(2) {
		opacity: 0;
	}
	.pitv-nav-toggle.is-open .pitv-nav-toggle-bar:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	.pitv-logo {
		order: 2;
		flex: 0 1 auto;
		min-width: 0;
	}

	.pitv-back-btn {
		order: 3;
		flex: 0 0 auto;
		margin-left: auto;
		white-space: nowrap;
	}

	.pitv-nav {
		order: 4;
		flex-basis: 100%;
		width: 100%;
		display: none;
		flex-direction: column;
		gap: 16px;
		padding-top: 14px;
		margin-top: 4px;
		border-top: 1px solid #1e1e1e;
	}
	.pitv-nav.is-open {
		display: flex;
	}
}

@media (max-width: 640px) {
	/* Tighten sizing further on true phone widths — the 1024px rules
	   above already handle the hamburger/dropdown swap. */
	.pitv-header {
		padding: 12px 4vw;
	}
	.pitv-logo img {
		height: 22px;
		max-width: 100%;
	}
	.pitv-back-btn {
		font-size: 0.66rem;
		padding: 6px 10px;
	}
	.pitv-back-label-full {
		display: none;
	}
	.pitv-back-label-short {
		display: inline;
	}

	/* ---------- Hero: full clear thumbnail on top, info block below it
	   (no overlay) — a deliberately different layout from desktop ---------- */
	.pitv-hero {
		position: relative;
		height: auto;
		min-height: 0;
		overflow: visible;
		display: flex;
		flex-direction: column;
	}
	.pitv-hero-image {
		position: static;
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 9;
	}
	.pitv-hero-gradient {
		display: none;
	}
	.pitv-hero-content {
		position: static;
		max-width: none;
		padding: 20px 5vw 28px;
	}
	.pitv-hero-title {
		font-size: 1.6rem;
	}
	.pitv-hero-description {
		font-size: 0.9rem;
	}
}
