/* -------------------------------------------------------------------------
	Black Tube Pro design system
	Dark surfaces + a dense 16:9 video grid, painted entirely from the
	--pt-* custom properties the Customizer emits (see inc/customizer.php).

	The palette is always dark. It comes either from one of the thirteen
	shipped Color Presets (Appearance > Customize > Color Presets) or from
	the seven saved "Custom colors" — there is no light mode and no header
	toggle. The :root block below is the static fallback (the original
	Classic Black scheme) for the rare case the inline custom properties are
	missing, and every preset keeps these token names. It mirrors the runtime
	derivation exactly; the :root block and inc/customizer.php must be
	changed together or the two will drift apart.
	---------------------------------------------------------------------- */

:root {
	/* Deliberately NO `color-scheme: dark` here. It is inherited by the whole
	   document and changes the browser's *default* text color (canvastext)
	   from black to white, which turns third-party ad markup that leans on
	   that default — a blank/srcdoc iframe, or a creative that sets a light
	   background and no explicit `color` — white-on-white and therefore
	   invisible. The end-of-body ad-network scripts are printed verbatim
	   (inc/theme-mods.php), so the theme cannot restyle that markup. Dark
	   native chrome is opted in per control below, where the theme owns the
	   element, and the page scrollbar is colored directly further down. */
	--pt-bg: #1b1b1b;
	--pt-bg-deep: #141414;
	--pt-bg-header: #292929;
	--pt-bg-card: #232323;
	--pt-bg-hover: #2d2d2d;
	--pt-bg-input: #141414;
	--pt-accent: #ffa31a;
	--pt-accent-contrast: #1b1b1b;
	--pt-accent-hover: #ffae35;
	/* Accent band (logo chip, HD badge, footer rule). Presets with two band
		colors get a real gradient here; a flat band in the accent color is the
		Classic Black fallback. --pt-band-a/-b expose the two stops. */
	--pt-accent-band: linear-gradient(90deg, #ffa31a 0%, #ffa31a 100%);
	--pt-accent-band-muted: linear-gradient(90deg, #ffa31a 0%, #ffa31a 100%);
	--pt-band-a: #ffa31a;
	--pt-band-b: #ffa31a;
	/* Soft accent tint (hover backgrounds, text selection) and the accent halo
		used for hover/focus elevation. Set --pt-glow: transparent to disable. */
	--pt-accent-soft: rgba(255, 163, 26, 0.14);
	--pt-glow: rgba(255, 163, 26, 0.3);
	--pt-scheme: custom;
	--pt-text: #ffffff;
	--pt-text-muted: #a0a0a0;
	--pt-text-dim: #a4a4a4; /* ≥ 4.5:1 on page and card surfaces (WCAG AA) */
	--pt-shadow-soft: rgba(0, 0, 0, 0.45);
	--pt-shadow: rgba(0, 0, 0, 0.5);
	--pt-shadow-strong: rgba(0, 0, 0, 0.6);
	--pt-border: #363636;
	--pt-border-strong: #8d8d8d;
	--pt-radius: 4px;
	--pt-radius-lg: 8px;
	--pt-gap: 16px;
	--pt-container: 1360px;
	--pt-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ------------------------------------------------------------------ Reset */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* Dark page scrollbar without opting the document into the dark
	   color-scheme (see the note in :root). Firefox + Chrome/Edge 121+. */
	scrollbar-color: var(--pt-border-strong) var(--pt-bg-deep);
}

/* Dark native chrome (caret, autofill, <select> popups) for the controls the
   theme styles itself. Scoped to these elements on purpose: it must not reach
   the document default ink that site-owner / ad-network markup inherits. */

button,
input,
select,
textarea {
	color-scheme: dark;
}

body {
	margin: 0;
	background: var(--pt-bg);
	color: var(--pt-text);
	font-family: var(--pt-font);
	/* 15px at the browser default; scales with the user's font-size setting. */
	font-size: 0.9375rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	/* Long URLs / unbroken words wrap instead of widening the page
	   (horizontal overflow on small screens). Inherited by all text. */
	overflow-wrap: break-word;
}

img,
video,
iframe {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
	border: 0;
}

a {
	color: var(--pt-accent);
	text-decoration: none;
	transition: color 0.15s ease;
}

a:hover {
	color: var(--pt-accent-hover);
	text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.6em;
	font-weight: 700;
	line-height: 1.25;
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
}

input,
textarea,
select,
button {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

/* ----------------------------------------------------------------- Layout */

.pt-container {
	width: 100%;
	max-width: var(--pt-container);
	margin: 0 auto;
	padding-left: 16px;
	padding-right: 16px;
}

.pt-main {
	min-height: 60vh;
	padding: 22px 0 48px;
}

.pt-btn {
	display: inline-block;
	padding: 10px 22px;
	background: var(--pt-accent);
	color: var(--pt-accent-contrast);
	font-weight: 700;
	border: 0;
	border-radius: var(--pt-radius);
	transition: filter 0.15s ease, transform 0.15s ease;
}

.pt-btn:hover {
	color: var(--pt-accent-contrast);
	filter: brightness(1.08);
}

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

.pt-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--pt-bg-header);
	border-bottom: 1px solid var(--pt-border);
	box-shadow: 0 2px 12px var(--pt-shadow-soft);
}

.pt-header-row {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 62px;
	padding-top: 8px;
	padding-bottom: 8px;
}

.pt-logo {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}

.pt-logo-link {
	display: inline-flex;
	align-items: center;
	font-size: 30px;
	font-weight: 900;
	letter-spacing: 1px;
	line-height: 1;
	white-space: nowrap;
}

.pt-logo-word {
	color: var(--pt-text);
}

.pt-logo-accent {
	margin-left: 4px;
	padding: 4px 8px;
	background: var(--pt-accent);
	color: var(--pt-accent-contrast);
	border-radius: var(--pt-radius);
}

.pt-logo-tagline {
	font-size: 11px;
	line-height: 1.2;
	color: var(--pt-text-muted);
	white-space: nowrap;
}

.pt-header .custom-logo {
	max-height: 42px;
	width: auto;
}

.pt-footer-logo .custom-logo {
	max-height: 36px;
	width: auto;
}

/* Search */

.pt-search {
	display: flex;
	flex: 1 1 420px;
	max-width: 620px;
	margin-left: auto;
	margin-right: auto;
}

.pt-search-input {
	flex: 1;
	min-width: 0;
	padding: 10px 14px;
	background: var(--pt-bg-input);
	color: var(--pt-text);
	border: 1px solid var(--pt-border-strong);
	border-right: 0;
	border-radius: var(--pt-radius) 0 0 var(--pt-radius);
	outline: none;
	transition: border-color 0.15s ease;
}

.pt-search-input:focus {
	border-color: var(--pt-accent);
}

.pt-search-input::placeholder {
	color: var(--pt-text-dim);
}

.pt-search-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	padding: 0;
	background: var(--pt-accent);
	color: var(--pt-accent-contrast);
	border: 1px solid var(--pt-accent);
	border-radius: 0 var(--pt-radius) var(--pt-radius) 0;
	transition: filter 0.15s ease;
}

.pt-search-btn:hover {
	filter: brightness(1.08);
}

/* Header actions / menu */

.pt-header-actions {
	display: flex;
	align-items: center;
}

.pt-header-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pt-header-menu li a {
	display: block;
	padding: 8px 12px;
	color: var(--pt-text-muted);
	font-size: 14px;
	font-weight: 600;
	background: transparent;
	border: 0;
	border-radius: var(--pt-radius);
	transition: color 0.15s ease, background 0.15s ease;
}

.pt-header-menu li a:hover {
	color: var(--pt-text);
	background: var(--pt-bg-hover);
}

.pt-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 40px;
	height: 40px;
	padding: 8px;
	background: transparent;
	border: 1px solid var(--pt-border);
	border-radius: var(--pt-radius);
}

.pt-nav-toggle span {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--pt-text);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.pt-nav-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.pt-nav-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.pt-nav-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* Filter tabs */

.pt-tabs-wrap {
	position: relative;
}

/* In-content tabs (home / archive / search): the tabs no longer live in the
   sticky header, they render above the video grid. */

.pt-main .pt-tabs-wrap {
	margin: 0 0 20px;
	border-bottom: 1px solid var(--pt-border);
}

/* One bar: the tabs take the free space and scroll, the active-filter pills
   and the "Filters" disclosure stay pinned to the right. The bar carries the
   padding (the tabs used to add their own on top of .pt-container's, which
   left them indented 16px further than the grid below). */

.pt-tabs-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0 0;
}

.pt-tabs {
	display: flex;
	align-items: center;
	gap: 2px;
	flex: 1 1 auto;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
	/* Proximity (not mandatory): mandatory snapping fights programmatic
	   smooth scrolling, which makes the arrow buttons "stick". */
	scroll-snap-type: x proximity;
	-webkit-scroll-snap-type: x proximity;
}

.pt-tabs::-webkit-scrollbar {
	display: none;
}

.pt-tab {
	position: relative;
	scroll-snap-align: start;
	-webkit-scroll-snap-align: start;
	padding: 9px 14px;
	color: var(--pt-text-muted);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	background: transparent;
	border: 0;
	border-radius: var(--pt-radius) var(--pt-radius) 0 0;
	transition: color 0.15s ease, background 0.15s ease;
}

.pt-tab:hover {
	color: var(--pt-text);
	background: var(--pt-bg-hover);
}

.pt-tab.is-active {
	color: var(--pt-text);
}

.pt-tab.is-active::after {
	content: "";
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 0;
	height: 3px;
	background: var(--pt-accent-band);
	border-radius: 3px 3px 0 0;
}

/* Category strip */

.pt-catnav {
	background: var(--pt-bg);
	border-top: 1px solid var(--pt-border);
}

/* The arrows live in the same flex row as the pills, so they are always
   vertically centered on the strip and can never drift over it — there is
   no absolute positioning anywhere in this chain to break. */

.pt-catnav-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.pt-catnav-inner {
	flex: 1;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
	/* Proximity (not mandatory): mandatory snapping fights programmatic
	   smooth scrolling, which makes the arrow buttons "stick". */
	scroll-snap-type: x proximity;
	-webkit-scroll-snap-type: x proximity;
}

.pt-catnav-inner::-webkit-scrollbar {
	display: none;
}

.pt-catnav-list {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 10px 0;
	list-style: none;
	white-space: nowrap;
}

.pt-catnav-list li {
	margin: 0;
	scroll-snap-align: start;
	-webkit-scroll-snap-align: start;
}

.pt-catnav-list li a {
	display: block;
	padding: 6px 12px;
	color: var(--pt-text-muted);
	font-size: 13px;
	font-weight: 600;
	background: var(--pt-bg-card);
	border: 1px solid var(--pt-border);
	border-radius: 999px;
	transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.pt-catnav-list li a:hover {
	color: var(--pt-text);
	background: var(--pt-bg-hover);
	border-color: var(--pt-border-strong);
}

.pt-catnav-list li.current-cat a,
.pt-catnav-list .pt-catnav-all.is-active a {
	color: var(--pt-accent-contrast);
	background: var(--pt-accent);
	border-color: var(--pt-accent);
}

/* The index pill (opens the /categories/ visual index) stands out from
   the category pills: accent outline, fills accent on hover. */

.pt-catnav-list .pt-catnav-index a {
	color: var(--pt-text);
	border-color: var(--pt-accent);
}

.pt-catnav-list .pt-catnav-index a:hover {
	color: var(--pt-accent-contrast);
	background: var(--pt-accent);
	border-color: var(--pt-accent);
}

/* Category strip arrows */

.pt-catnav button.pt-catnav-arrow {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	appearance: none;
	-webkit-appearance: none;
	background: var(--pt-bg-header);
	color: var(--pt-text-muted);
	border: 1px solid var(--pt-border);
	border-radius: 50%;
	box-shadow: 0 2px 10px var(--pt-shadow);
	/* No text selection / touch callout while pressing-and-holding. */
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
	touch-action: manipulation;
	/* Start invisible; main.js adds .is-in right after the strip is set up
	   so the arrows fade in softly instead of popping in. */
	opacity: 0;
	transition: opacity 0.45s ease, color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.pt-catnav button.pt-catnav-arrow.is-in {
	opacity: 1;
}

.pt-catnav button.pt-catnav-arrow:hover,
.pt-catnav button.pt-catnav-arrow:focus-visible {
	color: var(--pt-text);
	background: var(--pt-bg-hover);
	border-color: var(--pt-border-strong);
}

.pt-catnav button.pt-catnav-arrow.is-disabled {
	/* Snappy fade between enabled/disabled (the load fade-in uses 0.45s). */
	opacity: 0.25;
	pointer-events: none;
	transition-duration: 0.18s;
}

/* ---------------------------------------------------------------- Page head */

.pt-page-head {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 12px;
	margin: 4px 0 18px;
}

.pt-page-title {
	margin: 0;
	font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
	line-height: 1.2;
}

.pt-page-num {
	color: var(--pt-text-dim);
	font-size: 14px;
}

.pt-search-term {
	color: var(--pt-accent);
}

.pt-archive-description {
	margin-top: 6px;
	color: var(--pt-text-muted);
	font-size: 14px;
	max-width: 720px;
}

/* Author page header */

.pt-author {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 4px 0 18px;
	padding: 18px 20px;
	background: var(--pt-bg-card);
	border: 1px solid var(--pt-border);
	border-radius: var(--pt-radius-lg);
}

.pt-author-avatar img {
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	border: 2px solid var(--pt-accent);
}

.pt-author-name {
	margin: 0 0 2px;
	font-size: 24px;
}

.pt-author-count {
	margin: 0 0 4px;
	color: var(--pt-accent);
	font-size: 13px;
	font-weight: 600;
}

.pt-author-bio {
	margin: 0;
	color: var(--pt-text-muted);
	font-size: 14px;
}

.pt-archive-banner {
	margin: -6px 0 18px;
	border-radius: var(--pt-radius-lg);
	overflow: hidden;
}

.pt-archive-banner img {
	width: 100%;
	max-height: 220px;
	object-fit: cover;
}

.pt-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 56px 20px;
	text-align: center;
	color: var(--pt-text-muted);
	background: var(--pt-bg-card);
	border: 1px dashed var(--pt-border);
	border-radius: var(--pt-radius-lg);
}

.pt-empty-icon {
	color: var(--pt-accent);
	opacity: 0.9;
}

.pt-empty-title {
	margin: 4px 0 0;
	color: var(--pt-text);
	font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
}

.pt-empty-text {
	max-width: 46ch;
	margin: 0;
}

.pt-empty-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 8px;
}

.pt-empty-cats {
	justify-content: center;
	margin-top: 14px;
}

/* ------------------------------------------- Visual term index grids */

/* /categories/, /tags/ and /actors/: every term as a 16:9 card with a
   random representative thumbnail. Shares .pt-grid column behavior. */

.pt-tax-card {
	display: block;
	text-decoration: none;
}

.pt-tax-card-name {
	display: block;
	margin-bottom: 2px;
	font-size: 13.5px; /* matches .pt-card-title */
	font-weight: 600;
	line-height: 1.3;
	color: var(--pt-text);
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pt-tax-card-count {
	display: block;
	color: var(--pt-text-muted);
	font-size: 12px; /* matches .pt-card-meta */
	text-align: center;
}

/* "No videos yet" pill on empty term cards (actors/models index). */
.pt-tax-card-empty {
	display: block;
	width: fit-content;
	margin: 4px auto 0;
	padding: 2px 9px;
	border: 1px solid var(--pt-border);
	border-radius: 999px;
	color: var(--pt-text-dim);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.5px;
	line-height: 1.5;
	text-transform: uppercase;
	white-space: nowrap;
}

.pt-tax-no-thumb {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--pt-text-muted);
}

/* A-Z letter bar + compact tag list + letter pagination: browse large
   term indexes (/tags/ with thousands of tags) without rendering
   thousands of image cards at once. */

.pt-letterbar {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin: 0 0 calc(var(--pt-gap) * 1.5);
	padding: 12px;
	background: var(--pt-bg-card);
	border: 1px solid var(--pt-border);
	border-radius: var(--pt-radius);
}

.pt-letter {
	display: inline-flex;
	align-items: baseline;
	justify-content: center;
	gap: 5px;
	min-width: 34px;
	padding: 4px 8px;
	border: 1px solid var(--pt-border);
	border-radius: var(--pt-radius);
	color: var(--pt-text);
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.pt-letter:hover {
	border-color: var(--pt-accent);
	background: var(--pt-bg-hover);
}

.pt-letter.is-active {
	background: var(--pt-accent);
	border-color: var(--pt-accent);
	color: var(--pt-accent-contrast);
}

.pt-letter-count {
	font-size: 10px;
	font-weight: 600;
	color: var(--pt-text-dim);
}

.pt-letter.is-active .pt-letter-count {
	color: var(--pt-accent-contrast);
	opacity: 0.75;
}

/* Live text filter above the compact term list */

.pt-tag-filter {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: var(--pt-gap);
}

.pt-tag-filter-input {
	flex: 0 1 360px;
	min-width: 0;
	padding: 9px 14px;
	background: var(--pt-bg-input);
	color: var(--pt-text);
	border: 1px solid var(--pt-border-strong);
	border-radius: var(--pt-radius);
	outline: none;
	transition: border-color 0.15s ease;
}

.pt-tag-filter-input:focus {
	border-color: var(--pt-accent);
}

.pt-tag-filter-input::placeholder {
	color: var(--pt-text-dim);
}

.pt-tag-filter-count {
	color: var(--pt-text-muted);
	font-size: 12px;
	white-space: nowrap;
}

.pt-tag-chip.is-hidden {
	display: none;
}

/* Compact "All tags" view: text chips instead of image cards once the
   term count is too large for a card grid. */

.pt-tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pt-tag-chip {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	padding: 5px 12px;
	background: var(--pt-bg-card);
	border: 1px solid var(--pt-border);
	border-radius: 999px;
	color: var(--pt-text);
	font-size: 13px;
	text-decoration: none;
	transition: border-color 0.18s ease, background 0.18s ease;
}

.pt-tag-chip:hover {
	border-color: var(--pt-accent);
	background: var(--pt-bg-hover);
}

.pt-tag-chip-count {
	font-size: 11px;
	color: var(--pt-text-dim);
}

/* Numbered pagination under a letter-filtered term grid. */

.pt-term-pages {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin-top: var(--pt-gap);
}

.pt-term-pages a {
	min-width: 34px;
	padding: 5px 9px;
	border: 1px solid var(--pt-border);
	border-radius: var(--pt-radius);
	color: var(--pt-text);
	font-size: 13px;
	text-align: center;
	text-decoration: none;
	transition: border-color 0.18s ease, background 0.18s ease;
}

.pt-term-pages a:hover {
	border-color: var(--pt-accent);
	background: var(--pt-bg-hover);
}

.pt-term-pages a[aria-current="page"] {
	background: var(--pt-accent);
	border-color: var(--pt-accent);
	color: var(--pt-accent-contrast);
	font-weight: 700;
}

/* Collapsed page range: same box the links occupy, so the row keeps its rhythm. */
.pt-term-pages-gap {
	min-width: 34px;
	padding: 5px 9px;
	color: var(--pt-text);
	font-size: 13px;
	opacity: 0.55;
	text-align: center;
}

/* ------------------------------------------------------------- Video grid */

.pt-grid {
	display: grid;
	/* Column count comes from Customizer > Layout via the inline :root vars. */
	grid-template-columns: repeat(var(--pt-grid-cols, 5), 1fr);
	gap: var(--pt-gap);
}

/* Card */

.pt-card {
	position: relative;
	/* Card typography adapts to the card's own width (see the @container
	   rules further down), not the viewport, so 5-column desktop grids and
	   2-column phone grids both read well. */
	container-type: inline-size;
	background: var(--pt-bg-card);
	border: 1px solid var(--pt-border);
	border-radius: var(--pt-radius);
	overflow: hidden;
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.pt-card:hover {
	transform: translateY(-3px);
	border-color: var(--pt-accent);
	background: var(--pt-bg-hover);
	box-shadow: 0 10px 24px var(--pt-shadow);
}

/* The hover background is lighter than the card — lift the dim meta text
   to the muted shade so it stays ≥ 4.5:1 (WCAG AA) on hover too. */

.pt-card:hover .pt-card-meta,
.pt-card:hover .pt-card-excerpt {
	color: var(--pt-text-muted);
}

.pt-card-media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--pt-bg-deep);
}

.pt-card-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease, opacity 0.2s ease;
}

.pt-card:hover .pt-card-thumb {
	transform: scale(1.06);
}

/* Badges */

.pt-badge-duration {
	position: absolute;
	right: 6px;
	bottom: 6px;
	z-index: 2;
	padding: 2px 6px;
	background: rgba(0, 0, 0, 0.75);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
	border-radius: 3px;
	pointer-events: none;
}

.pt-badge-hd {
	position: absolute;
	left: 6px;
	top: 6px;
	z-index: 2;
	padding: 2px 6px;
	background: var(--pt-accent);
	color: var(--pt-accent-contrast);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.5px;
	line-height: 1.4;
	border-radius: 3px;
	pointer-events: none;
}

/* Play overlay on hover */

.pt-card-play {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	background: rgba(0, 0, 0, 0.25);
	transition: opacity 0.18s ease;
}

/* A plain opacity fade, deliberately not a clip-path reveal: animating the
   clip from a zero-height band in the middle of the box to the full box
   sweeps a dark strip up across the poster before the play button is whole,
   which reads as a flash on hover rather than as a fade. */

.pt-card:hover .pt-card-play,
.pt-card:focus-within .pt-card-play {
	opacity: 1;
}

/* The Shitty.com pattern: the preview video (and any future in-card media)
   sits in the same inset:0 layer as .pt-card-play but below it, so the
   play button can still cover it on hover. Cards can now carry a
   .pt-card-video / .pt-card-iframe / .pt-card-image in-card media layer
   without the card's normal hover treat treating the whole card as
   interactive. */

.pt-card > video,
.pt-card > iframe,
.pt-card > img {
	position: absolute;
	inset: 0;
	z-index: 0;
	max-width: none;
	border: 0;
	pointer-events: auto;
	object-fit: cover;
	object-position: center;
	will-change: transform;
}

/* Cards that also carry an in-card media layer should still lift on hover
   (the play button is a separate layer, so enabling pointer events on the
   media does not stop the card from lifting). */

.pt-card.has-media:hover {
	transform: translateY(-3px);
}

.pt-card.has-media .pt-card-thumb {
	transition: transform 0.35s ease, opacity 0.2s ease;
}

.pt-card.has-media:hover .pt-card-thumb {
	transform: scale(1);
}

.pt-card-play::before {
	content: "";
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--pt-accent);
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231b1b1b'><path d='M8 5v14l11-7z'/></svg>");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 60%;
	box-shadow: 0 4px 14px var(--pt-shadow);
}

/* Card body */

.pt-card-body {
	padding: 10px 12px 12px;
}

.pt-card-title {
	margin: 0 0 6px;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pt-card-title a {
	color: var(--pt-text);
}

.pt-card-title a:hover {
	color: var(--pt-accent);
}

.pt-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px 16px;
	margin-bottom: 3px;
	color: var(--pt-text-dim);
	font-size: 12px;
	text-align: center;
}

/* Keep each meta item on one line ("12.3K views" must not break between
   the number and the word); the row itself wraps between items when three
   of them do not fit. */
.pt-card-meta > * {
	white-space: nowrap;
}

.pt-card-excerpt {
	margin: 6px 0 8px;
	color: var(--pt-text-dim);
	font-size: 12px;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pt-card-rating {
	color: var(--pt-accent);
	font-weight: 700;
}

.pt-card-rating--none {
	color: inherit;
	font-weight: 400;
}

/* ---------------------------------------------------- Favorites (save) */

.pt-fav {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 9px;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 6px;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pt-fav:hover,
.pt-fav:focus-visible {
	background: var(--pt-accent);
	border-color: var(--pt-accent);
	color: var(--pt-accent-contrast);
	text-decoration: none;
}

.pt-fav.is-saved {
	background: var(--pt-accent);
	border-color: var(--pt-accent);
	color: var(--pt-accent-contrast);
}

.pt-fav.is-saved .pt-fav-icon {
	fill: currentColor;
}

.pt-fav.is-disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.pt-fav-icon {
	flex: none;
}

/* Card variants: icon-only overlay on the thumbnail (top-right for video
   cards, top-left for photo cards to clear the photo-count badge) */

.pt-fav--card,
.pt-fav--photo {
	padding: 7px;
	border-radius: 50%;
}

.pt-fav--card .pt-fav-label,
.pt-fav--photo .pt-fav-label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.pt-fav--photo {
	top: 8px;
	left: 8px;
	right: auto;
}

/* Blog list variant: sits inline in the item's meta row */

.pt-fav--inline {
	position: static;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 12px;
}

/* Single-page variant: sits under the rating widget with a text label */

.pt-fav--single {
	position: static;
	margin-bottom: 18px;
}

/* Favorites gallery page */

.pt-fav-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.pt-fav-tab {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 16px;
	background: var(--pt-bg-card);
	color: var(--pt-text-muted);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	border: 1px solid var(--pt-border);
	border-radius: 999px;
	transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.pt-fav-tab:hover {
	color: var(--pt-text);
	border-color: var(--pt-border-strong);
}

.pt-fav-tab.is-active {
	background: var(--pt-accent);
	border-color: var(--pt-accent);
	color: var(--pt-accent-contrast);
}

.pt-fav-tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	background: rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 700;
}

.pt-fav-tab:not(.is-active) .pt-fav-tab-count {
	background: var(--pt-bg-deep);
	color: var(--pt-text-dim);
}

/* Panels are hidden by JS only — without JS every tab's list stays
   visible (progressive enhancement, matching the theme's no-JS support). */

.pt-fav-panel.is-hidden {
	display: none;
}

.pt-favorites-count {
	margin: 0 0 14px;
	color: var(--pt-text-muted);
	font-size: 14px;
}

.pt-favorites-note {
	padding: 18px 20px;
	background: var(--pt-bg-card);
	border: 1px solid var(--pt-border);
	border-radius: var(--pt-radius);
}

.pt-favorites-note .pt-btn {
	margin-top: 6px;
}

/* --------------------------------------------------------------- Single */

.pt-single {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 24px;
	align-items: start;
}

.pt-single-main {
	min-width: 0;
}

.pt-player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: var(--pt-radius-lg);
	overflow: hidden;
	box-shadow: 0 6px 24px var(--pt-shadow);
}

.pt-player > * {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.pt-player video,
.pt-player iframe {
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: contain;
}

/* Custom HTML5 player (native MP4s): centered play button + ad overlays */

.pt-player-html5 {
	position: relative;
	width: 100%;
	height: 100%;
	background: #000;
	cursor: pointer;
}

.pt-player-html5 video {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
}

.pt-player-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 78px;
	height: 78px;
	padding: 0;
	appearance: none;
	-webkit-appearance: none;
	background: rgba(20, 20, 20, 0.6);
	color: var(--pt-text);
	border: 2px solid rgba(255, 255, 255, 0.85);
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, opacity 0.2s ease;
}

.pt-player-play svg {
	margin-left: 4px;
}

.pt-player-play:hover,
.pt-player-play:focus-visible {
	background: var(--pt-accent);
	border-color: var(--pt-accent);
	color: var(--pt-accent-contrast);
	transform: translate(-50%, -50%) scale(1.06);
}

/* While playing, hide the big button; it reappears on pause. */

.pt-player-html5.is-playing .pt-player-play {
	opacity: 0;
	pointer-events: none;
}

/* Slim bottom control bar: seek, time, mute/volume, fullscreen. Fades away
   while the video plays until the cursor moves over the player. */

.pt-player-bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 8;
	padding: 20px 10px 8px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
	transition: opacity 0.2s ease;
}

.pt-player-html5.is-controls-hidden .pt-player-bar {
	opacity: 0;
	pointer-events: none;
}

.pt-player-progress {
	position: relative;
	height: 4px;
	margin: 0 2px 8px;
	background: rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	cursor: pointer;
}

.pt-player-progress-fill {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 0%;
	background: var(--pt-accent);
	border-radius: 999px;
}

.pt-player-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--pt-text);
}

.pt-player-toggle,
.pt-player-mute,
.pt-player-fs {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	color: var(--pt-text);
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}

.pt-player-toggle:hover,
.pt-player-mute:hover,
.pt-player-fs:hover,
.pt-player-toggle:focus-visible,
.pt-player-mute:focus-visible,
.pt-player-fs:focus-visible {
	background: rgba(255, 255, 255, 0.15);
}

.pt-player-time {
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	color: var(--pt-text);
	white-space: nowrap;
}

.pt-player-spacer {
	flex: 1;
}

/* Icon swapping by player state. */

.pt-player-html5 .pt-icon-pause,
.pt-player-html5 .pt-icon-muted,
.pt-player-html5 .pt-icon-fs-out {
	display: none;
}

.pt-player-html5.is-playing .pt-icon-play {
	display: none;
}

.pt-player-html5.is-playing .pt-icon-pause {
	display: block;
}

.pt-player-html5.is-muted .pt-icon-volume {
	display: none;
}

.pt-player-html5.is-muted .pt-icon-muted {
	display: block;
}

.pt-player-html5.is-fullscreen .pt-icon-fs-in {
	display: none;
}

.pt-player-html5.is-fullscreen .pt-icon-fs-out {
	display: block;
}

/* Volume slider. */

.pt-player-volume {
	width: 70px;
	height: 4px;
	appearance: none;
	-webkit-appearance: none;
	background: rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	cursor: pointer;
}

.pt-player-volume::-webkit-slider-thumb {
	appearance: none;
	-webkit-appearance: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--pt-accent);
	border: 0;
}

.pt-player-volume::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--pt-accent);
	border: 0;
}

/* Fullscreen state. */

.pt-player-html5:fullscreen {
	width: 100vw;
	height: 100vh;
	cursor: none;
}

.pt-player-html5:fullscreen .pt-player-bar {
	cursor: auto;
}

/* Ad overlays (pre / mid / post-roll) */

.pt-player-ad {
	position: absolute;
	inset: 0;
	z-index: 10;
	display: flex;
	flex-direction: column;
	background: rgba(0, 0, 0, 0.85);
}

.pt-player-ad[hidden],
.pt-player-play[hidden],
.pt-player-fs[hidden],
.pt-player-bar[hidden] {
	display: none;
}

.pt-player-ad-code {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.pt-player-ad-code > * {
	max-width: 100%;
}

.pt-player-ad-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 16px;
	background: rgba(0, 0, 0, 0.6);
}

.pt-player-ad-label {
	color: var(--pt-text-muted);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.pt-player-ad-skip {
	appearance: none;
	-webkit-appearance: none;
	background: var(--pt-bg-header);
	color: var(--pt-text);
	border: 1px solid var(--pt-border-strong);
	border-radius: 4px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.pt-player-ad-skip:hover,
.pt-player-ad-skip:focus-visible {
	background: var(--pt-accent);
	color: var(--pt-accent-contrast);
	border-color: var(--pt-accent);
}

/* Video failed to load: restore the native player and hide the custom UI. */

.pt-player-html5.is-error .pt-player-play,
.pt-player-html5.is-error .pt-player-fs,
.pt-player-html5.is-error .pt-player-bar {
	display: none;
}


/* Host player bridge: an embed wrapped in the theme's own chrome. The frame
   keeps the 16:9 box and the host player fills it; the bar is the same one
   the native player uses, which is why the wrapper carries the same class. */

.pt-player-embed {
	cursor: default;
}

.pt-player-embed.is-bridged {
	cursor: pointer;
}

.pt-player-embed-frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.pt-player-embed iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* VR / 360°: the canvas covers the <video> but never the bar. The media
   element keeps playing — and keeps decoding — underneath, so every control
   in player.js still acts on the thing the visitor is watching. */

.pt-player-html5[data-vr] {
	cursor: default;
}

.pt-player-canvas {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
	width: 100%;
	height: 100%;
	background: #000;
	cursor: grab;
	touch-action: none;
}

.pt-player-canvas.is-dragging {
	cursor: grabbing;
}

.pt-player-vr-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 6;
	padding: 3px 8px;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	border-radius: 4px;
	pointer-events: none;
}

.pt-player-vr-reset,
.pt-player-vr-motion,
.pt-player-vr-xr {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 9;
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	background: rgba(0, 0, 0, 0.65);
	color: var(--pt-text);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.pt-player-vr-motion {
	right: 58px;
}

.pt-player-vr-xr {
	right: 150px;
}

.pt-player-vr-reset:hover,
.pt-player-vr-motion:hover,
.pt-player-vr-xr:hover,
.pt-player-vr-reset:focus-visible,
.pt-player-vr-motion:focus-visible,
.pt-player-vr-xr:focus-visible,
.pt-player-vr-motion[aria-pressed="true"] {
	background: var(--pt-accent);
	color: var(--pt-accent-contrast);
	border-color: var(--pt-accent);
}

.pt-player-vr-reset[hidden],
.pt-player-vr-motion[hidden],
.pt-player-vr-xr[hidden] {
	display: none;
}

.pt-single-head {
	margin-top: 18px;
}

.pt-single-title {
	margin: 0 0 10px;
	font-size: clamp(1.125rem, 0.95rem + 0.7vw, 1.5rem);
	line-height: 1.3;
}

.pt-single-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-bottom: 10px;
	color: var(--pt-text-dim);
	font-size: 13.5px;
}

.pt-single-views {
	color: var(--pt-text-muted);
	font-weight: 600;
}

.pt-single-rating {
	color: var(--pt-accent);
	font-weight: 700;
}

.pt-single-duration {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.pt-single-uploader {
	display: inline-flex;
	align-items: center;
}

.pt-single-uploader-label {
	margin-right: 7px;
	color: var(--pt-text-dim);
}

.pt-single-duration::before {
	content: "⏱";
	font-size: 12px;
}

.pt-single-tax {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin-bottom: 18px;
	font-size: 13px;
}

.pt-single-label {
	color: var(--pt-text-dim);
}

/* Star rating widget (single page) */

.pt-rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	padding: 10px 14px;
	background: var(--pt-bg-card);
	border: 1px solid var(--pt-border);
	border-radius: var(--pt-radius);
}

.pt-rating-label {
	color: var(--pt-text-muted);
	font-size: 13.5px;
	font-weight: 600;
}

.pt-rating-stars {
	display: inline-flex;
	gap: 2px;
}

.pt-star {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	color: var(--pt-text-dim);
	font-size: 22px;
	line-height: 1;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
	transition: color 0.12s ease, transform 0.12s ease;
}

.pt-star:hover,
.pt-star:focus-visible {
	color: var(--pt-accent);
	transform: scale(1.18);
}

.pt-star.is-active {
	color: var(--pt-accent);
}

.pt-rating.is-rated .pt-star {
	cursor: default;
}

.pt-rating.is-rated .pt-star:hover {
	transform: none;
}

.pt-rating-value {
	color: var(--pt-accent);
	font-weight: 700;
}

.pt-rating-count {
	color: var(--pt-text-muted);
	font-size: 12px;
}

.pt-single-cats a,
.pt-single-actors a {
	color: var(--pt-text-muted);
}

.pt-single-cats a:hover,
.pt-single-actors a:hover {
	color: var(--pt-accent);
}

/* Category and actor chips on the single page: keeps multiple terms
   visually separate instead of running together as a blob of text.
   NOTE: keep this block AFTER the .pt-single-cats a:hover and
   .pt-single-actors a:hover rules above — they have equal specificity,
   so order decides the chip hover color. */

.pt-chip-row {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.pt-chip {
	display: inline-block;
	padding: 3px 11px;
	background: var(--pt-bg-card);
	color: var(--pt-text-muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
	border: 1px solid var(--pt-border);
	border-radius: 999px;
	transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.pt-chip:hover {
	color: var(--pt-text);
	background: var(--pt-bg-hover);
	border-color: var(--pt-border-strong);
}

/* Term chip tooltip (name + video count). Rendered as a fixed-position
   element by main.js so it is never clipped by card overflow. */

.pt-chip-tip {
	position: fixed;
	z-index: 200;
	max-width: 320px;
	padding: 5px 10px;
	background: var(--pt-bg-deep);
	color: var(--pt-text);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	border: 1px solid var(--pt-border-strong);
	border-radius: var(--pt-radius);
	box-shadow: 0 6px 18px var(--pt-shadow);
	opacity: 0;
	visibility: hidden; /* Kept out of the accessibility tree while hidden. */
	pointer-events: none;
	transform: translateY(3px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.pt-chip-tip.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Description */

.pt-description {
	margin: 6px 0 20px;
	padding: 18px 20px;
	background: var(--pt-bg-card);
	border: 1px solid var(--pt-border);
	border-radius: var(--pt-radius-lg);
	color: var(--pt-text-muted);
	font-size: 14px;
}

.pt-description-title {
	margin: 0 0 8px;
	font-size: 15px;
	color: var(--pt-text);
}

/* Share */

.pt-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 4px 0 24px;
}

.pt-share-label {
	color: var(--pt-text-dim);
	font-size: 13px;
	margin-right: 2px;
}

.pt-share-link {
	display: inline-block;
	padding: 7px 14px;
	background: var(--pt-bg-card);
	color: var(--pt-text-muted);
	font-size: 13px;
	font-weight: 600;
	border: 1px solid var(--pt-border);
	border-radius: 999px;
	transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.pt-share-link:hover {
	color: var(--pt-text);
	background: var(--pt-bg-hover);
	border-color: var(--pt-border-strong);
}

.pt-share-copy {
	cursor: pointer;
}

.pt-share-copy.is-copied {
	color: var(--pt-accent-contrast);
	background: var(--pt-accent);
	border-color: var(--pt-accent);
}

/* Related sidebar */

.pt-single-side {
	position: sticky;
	top: 90px;
}

.pt-related-title {
	margin: 0 0 12px;
	font-size: 16px;
}

/* "More like this" between the video and the comments on the single page. It is
   the theme's own `.pt-grid` — same cards, same gap, same Customizer column
   count — capped at four columns: it sits in the single page's main column
   beside the 360px sidebar, where the five-column default would cramp the
   cards. The cap is a token of its own (--pt-strip-cols, min( cols, 4 ), like
   the rankings grid), so the owner's setting still leads: a three-column site
   gets three here. The media queries mirror the grid's own responsive caps —
   with one step of its own at 1280px, where the main column is already too
   narrow for four — and must stay after the base rule: same specificity, so
   source order decides. */

.pt-strip {
	margin-block: 22px 8px;
}

.pt-strip .pt-grid {
	grid-template-columns: repeat(var(--pt-strip-cols, 4), 1fr);
}

@media (max-width: 1280px) {
	/* The main column is down to ~860px here — roughly 200px per card at four
		columns — so the strip steps down one, ahead of the archive grid's own
		tablet step: it has less room to spend than a full-width grid. */
	.pt-strip .pt-grid {
		grid-template-columns: repeat(var(--pt-strip-cols-tab, 3), 1fr);
	}
}

@media (max-width: 900px) {
	/* The single layout stacks here, so the strip spans the full container and
		goes back to the archive tokens — which are ≤ 4 by construction. */
	.pt-strip .pt-grid {
		grid-template-columns: repeat(var(--pt-grid-cols-sm, 3), 1fr);
	}
}

@media (max-width: 760px) {
	.pt-strip .pt-grid {
		grid-template-columns: repeat(var(--pt-grid-cols-xs, 2), 1fr);
	}
}

@media (max-width: 460px) {
	.pt-strip .pt-grid {
		grid-template-columns: 1fr;
	}
}

.pt-strip-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-block-end: 10px;
}

.pt-strip-title {
	margin: 0;
	font-size: 16px;
	color: var(--pt-text);
}

.pt-strip-more {
	font-size: 12px;
	color: var(--pt-accent);
	text-decoration: none;
}

.pt-strip-more:hover,
.pt-strip-more:focus-visible {
	text-decoration: underline;
}

.pt-related-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.pt-related-item {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
}

.pt-related-media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--pt-radius);
	aspect-ratio: 16 / 9;
	background: var(--pt-bg-deep);
}

.pt-related-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.pt-related-item:hover .pt-related-media img {
	transform: scale(1.05);
}

.pt-related-item-title {
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pt-related-item-title a {
	color: var(--pt-text);
}

.pt-related-item-title a:hover {
	color: var(--pt-accent);
}

.pt-related-meta {
	color: var(--pt-text-dim);
	font-size: 12px;
}

/* ------------------------------------------------------------- Comments */

.pt-comments {
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px solid var(--pt-border);
}

.pt-comments-title {
	font-size: 17px;
}

.pt-comment-list {
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.pt-comment-list .comment {
	margin: 0 0 14px;
	padding: 14px 16px;
	background: var(--pt-bg-card);
	border: 1px solid var(--pt-border);
	border-radius: var(--pt-radius-lg);
}

.pt-comment-list .children {
	margin: 12px 0 0 20px;
	padding: 0;
	list-style: none;
	border-left: 2px solid var(--pt-border);
}

.pt-comment-list .comment-body {
	font-size: 14px;
	color: var(--pt-text-muted);
}

.pt-comment-list .comment-author {
	color: var(--pt-text);
	font-weight: 700;
	font-size: 14px;
}

.pt-comment-list .comment-author .avatar {
	border-radius: 50%;
	margin-right: 8px;
}

.pt-comment-list .comment-metadata {
	margin: 2px 0 8px;
	font-size: 12px;
	color: var(--pt-text-dim);
}

.pt-comment-list .comment-metadata a {
	color: var(--pt-text-dim);
}

.pt-comment-list .reply a {
	font-size: 13px;
	font-weight: 600;
}

.pt-comments-closed {
	color: var(--pt-text-dim);
	font-size: 14px;
}

#commentform .comment-form-comment label,
#commentform .comment-form-author label,
#commentform .comment-form-email label,
#commentform .comment-form-url label {
	display: block;
	margin-bottom: 4px;
	font-size: 13px;
	color: var(--pt-text-muted);
}

#commentform textarea,
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"] {
	width: 100%;
	padding: 10px 12px;
	background: var(--pt-bg-input);
	color: var(--pt-text);
	border: 1px solid var(--pt-border-strong);
	border-radius: var(--pt-radius);
	outline: none;
}

#commentform textarea:focus,
#commentform input:focus {
	border-color: var(--pt-accent);
}

.comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--pt-text-dim);
}

/* ------------------------------------------------------------- Load more */

.pt-loadmore-wrap {
	margin-top: 26px;
	text-align: center;
}

.pt-loadmore {
	min-width: 220px;
}

.pt-loadmore.is-loading {
	opacity: 0.65;
	cursor: wait;
}

/* A failed request says so on the button itself (see reportFailure() in
   main.js) instead of silently snapping back to the normal label. The
   error message is carried by the text; the accent border only makes the
   state visible. Deliberately no new colour token: the palette engine's
   token set is contrast-audited per preset, so inventing a "danger" colour
   here would either be an undefined property (silently ignored) or an
   unaudited colour outside the WCAG contract. */
.pt-loadmore.is-error {
	border-color: var(--pt-accent);
	color: var(--pt-text);
}

/* ------------------------------------------------------------ Pagination */

/* No-JS fallback under the Load more button: a centered button-like
   "Next page" link. Only renders for visitors without JavaScript. */

.pt-pagination-noscript {
	display: block;
	margin-top: 26px;
	text-align: center;
}

.pt-pagination-noscript a {
	display: inline-block;
	padding: 10px 22px;
	background: var(--pt-accent);
	color: var(--pt-accent-contrast);
	font-weight: 700;
	border-radius: var(--pt-radius);
}

.pt-pagination-noscript a:hover {
	filter: brightness(1.08);
}

.navigation.pagination {
	margin-top: 28px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	background: var(--pt-bg-card);
	color: var(--pt-text-muted);
	font-size: 14px;
	font-weight: 600;
	border: 1px solid var(--pt-border);
	border-radius: var(--pt-radius);
	transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.page-numbers:hover {
	color: var(--pt-text);
	background: var(--pt-bg-hover);
	border-color: var(--pt-border-strong);
}

.page-numbers.current {
	background: var(--pt-accent);
	border-color: var(--pt-accent);
	color: var(--pt-accent-contrast);
}

.page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

/* ------------------------------------------------------------------ Page */

.pt-page-content {
	max-width: 860px;
	color: var(--pt-text-muted);
	font-size: 15px;
}

.pt-page-content a {
	color: var(--pt-accent);
}

/* Actors / Models page template: editor content shown as an intro block
   above the pornstar grid. */
.pt-actors-intro {
	margin: 0 0 24px;
}

.pt-page-links {
	margin-top: 20px;
	font-size: 14px;
}

/* ------------------------------------------------------ Video Rankings */

.pt-rankings-section {
	margin-bottom: 36px;
}

.pt-rankings-head {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 14px;
}

.pt-rankings-title {
	position: relative;
	margin: 0;
	padding-left: 12px;
	font-size: 19px;
	line-height: 1.3;
}

.pt-rankings-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	bottom: 2px;
	width: 4px;
	background: var(--pt-accent);
	border-radius: 2px;
}

.pt-rankings-all {
	margin-left: auto;
	color: var(--pt-text-muted);
	font-size: 13px;
	font-weight: 600;
}

.pt-rankings-all:hover {
	color: var(--pt-accent);
}

.pt-rankings-grid {
	grid-template-columns: repeat(var(--pt-rankings-cols, 4), 1fr);
}

/* ------------------------------------------------------------------- 404 */

.pt-404 {
	max-width: 640px;
	margin: 40px auto;
	padding: 48px 32px;
	text-align: center;
	background: var(--pt-bg-card);
	border: 1px solid var(--pt-border);
	border-radius: var(--pt-radius-lg);
}

.pt-404-code {
	margin: 0 0 6px;
	font-size: 72px;
	font-weight: 900;
	line-height: 1;
	color: var(--pt-accent);
}

.pt-404-search {
	max-width: 420px;
	margin: 20px auto;
}

/* ---------------------------------------------------------------- Footer */

.pt-footer {
	margin-top: 40px;
	background: var(--pt-bg-deep);
	border-top: 3px solid var(--pt-accent);
}

.pt-footer-legal {
	padding: 18px 0;
	background: rgba(255, 163, 26, 0.06);
	border-bottom: 1px solid var(--pt-border);
}

.pt-disclaimer {
	margin: 0;
	max-width: 900px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--pt-text-muted);
}

.pt-footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.2fr;
	gap: 32px;
	padding-top: 34px;
	padding-bottom: 20px;
}

.pt-footer-title {
	margin: 0 0 12px;
	font-size: 15px;
	color: var(--pt-text);
}

.pt-footer-col p {
	color: var(--pt-text-dim);
	font-size: 13.5px;
}

.pt-footer-col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Footer browse links (category/tag/pornstar indexes) sit above the menu. */

.pt-footer-col ul.pt-footer-browse {
	margin: 0 0 14px;
}

.pt-footer-col ul li {
	margin-bottom: 8px;
}

.pt-footer-col ul a {
	color: var(--pt-text-muted);
	font-size: 13.5px;
}

.pt-footer-col ul a:hover {
	color: var(--pt-accent);
}

/* Footer "Cookie settings" — a button styled as a link (reopens the
   GDPR modal via main.js). */

.pt-footer-col .pt-cookie-settings {
	display: inline-flex;
	padding: 0;
	background: transparent;
	color: var(--pt-text-muted);
	font-size: 13.5px;
	line-height: inherit;
	border: 0;
	transition: color 0.15s ease;
}

.pt-footer-col .pt-cookie-settings:hover {
	color: var(--pt-accent);
}

.pt-footer-logo {
	margin-bottom: 12px;
}

.pt-footer-logo .pt-logo-link {
	font-size: 24px;
}

.pt-footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
	padding-bottom: 24px;
}

.pt-footer-widgets .widget-title {
	font-size: 14px;
}

.pt-footer-widgets a {
	color: var(--pt-text-muted);
}

.pt-footer-bottom {
	padding: 16px 0;
	border-top: 1px solid var(--pt-border);
}

.pt-footer-bottom p {
	margin: 0;
	color: var(--pt-text-dim);
	font-size: 12.5px;
	text-align: center;
}

/* -------------------------------------------------------------- Widgets */

.widget {
	margin-bottom: 22px;
}

.widget-title {
	font-size: 15px;
	margin-bottom: 10px;
}

.widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget ul li {
	margin-bottom: 8px;
}

.widget a {
	color: var(--pt-text-muted);
}

.widget a:hover {
	color: var(--pt-accent);
}

/* --------------------------------------------------------- Widget zones */

/* Widget areas placed where ad banners belong (below the header, in the
   single-page sidebar, above the footer). Banners center nicely and the
   widget title shrinks to a small label so it can act as an ad-zone tag. */

.pt-zone {
	text-align: center;
}

.pt-zone-header {
	padding: 14px 0 0;
}

.pt-zone-footer {
	padding: 22px 0 0;
}

.pt-zone-side {
	padding: 0 0 20px;
}

.pt-zone .widget {
	margin-bottom: 0;
}

.pt-zone .widget-title {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: var(--pt-text-dim);
}

/* Center banner content. Intentional: these are ad zones — other widget
   types (e.g. text blocks) will also center, which is acceptable here. */

.pt-zone .widget > * {
	margin-left: auto;
	margin-right: auto;
}

.pt-zone-side .widget {
	margin-bottom: 20px;
}

/* --------------------------------------------------------------- Utilities */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 999;
	width: auto;
	height: auto;
	padding: 10px 16px;
	clip: auto;
	clip-path: none;
	background: var(--pt-accent);
	color: var(--pt-accent-contrast);
	font-weight: 700;
	border-radius: var(--pt-radius);
}

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

/* ------------------------------------------------------- Ad & widget zones */

/* Site-owner / ad-network code slots: the two "JavaScript at the start / end
   of the body" boxes (Customizer > Tracking & Ad Code), printed verbatim
   inside this wrapper by inc/theme-mods.php.

   Those tags are authored for a light page and lean on the browser's default
   ink, which on this dark theme resolves to white — the reason a pasted tag
   could render white-on-white and vanish. The wrapper restores what the tag
   assumes: black text, and a light `color-scheme` so a blank/srcdoc iframe the
   tag spawns resolves its own default (canvastext) to black too. It
   deliberately paints no background and reserves no space of its own — the
   tag's creative supplies that, and a stray panel at the end of <body> would
   be a visible bug on every page. Markup the tag appends to <body> directly
   (rather than writing in place) is outside this scope; for that case the
   theme keeps `color-scheme: dark` off the document root (see :root). */

.pt-adcode {
	color: #111;
	color-scheme: light;
}

/* The per-post under-player ad (RetroTube `unique_ad_under_player` meta)
   is the only .pt-ad user — every banner spot is otherwise a widget zone
   (.pt-zone, see the widget zones section below). */

.pt-ad {
	display: flex;
	justify-content: center;
	margin: 0 auto;
}

/* In-feed widget zone: spans the whole grid row in the every-5th-card
   slot (same behaviour the old Customizer in-feed slot had). */

.pt-zone-infeed {
	grid-column: 1 / -1;
	align-self: center;
	padding: 4px 0;
}

/* Below-player widget zone: sits under the player, inside the main column. */

.pt-zone-player {
	padding: 4px 0 18px;
}

/* Dismissible floating banner on the video player — widgets from the
   "Over video" sidebar render as a 300×250 box centered on the player,
   with the video visible (and clickable) around it. No full-player
   backdrop, so it reads as a banner rather than an ad takeover. The
   .is-hidden class is added by main.js on Close / Esc and hides the
   banner for the current page view only. */

.pt-video-overlay {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	/* safe center keeps the 300×250 zone + close button reachable on short
	   players; overflow-y: auto guards against clipping by .pt-player's
	   overflow: hidden. */
	justify-content: safe center;
	gap: 10px;
	padding: 16px;
	overflow-y: auto;
	/* Floating banner: no dim backdrop — the video stays visible and
	   clickable around the 300×250 zone. pointer-events: none lets clicks
	   on the video fall through to the player; only the banner and its
	   close button (below) re-enable them. */
	background: transparent;
	pointer-events: none;
	opacity: 1;
	visibility: visible;
	transition: opacity 250ms ease, visibility 250ms ease;
}

.pt-video-overlay.is-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

/* Fixed 300×250 medium-rectangle ad zone, centered on the player. Widget
   content fills the zone; oversized images are contained so they never
   distort or overflow. */

.pt-video-overlay__inner {
	width: 300px;
	height: 250px;
	max-width: 100%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--pt-bg-card);
	border: 1px solid var(--pt-border-strong);
	border-radius: var(--pt-radius-lg);
	box-shadow: 0 10px 30px var(--pt-shadow);
	pointer-events: auto;
}

.pt-video-overlay__inner img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.pt-video-overlay .widget {
	margin: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.pt-video-overlay .widget-title {
	display: none;
}

/* Themed close button — sits directly under the ad zone, styled with the
   theme accent to match the primary buttons. */

.pt-video-overlay__close {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 14px;
	background: var(--pt-accent);
	color: var(--pt-accent-contrast);
	border: 1px solid var(--pt-accent);
	border-radius: var(--pt-radius);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
	pointer-events: auto;
}

.pt-video-overlay__close:hover,
.pt-video-overlay__close:focus-visible {
	background: var(--pt-accent);
	border-color: var(--pt-accent);
	filter: brightness(1.1);
}

.pt-video-overlay__close svg {
	width: 14px;
	height: 14px;
}

.pt-video-overlay__close:focus-visible {
	outline: 2px solid var(--pt-accent);
	outline-offset: 2px;
}

/* --------------------------------------------------------------- Modals */

.pt-modal-open {
	overflow: hidden;
}

.pt-modal {
	position: fixed;
	inset: 0;
	z-index: 500;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.pt-modal.is-open {
	display: flex;
}

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

.pt-modal-box {
	position: relative;
	width: 100%;
	max-width: 480px;
	padding: 30px 28px 28px;
	background: var(--pt-bg-header);
	border: 1px solid var(--pt-border-strong);
	border-radius: var(--pt-radius-lg);
	box-shadow: 0 24px 64px var(--pt-shadow-strong);
	text-align: center;
	animation: pt-modal-in 0.22s ease;
}

@keyframes pt-modal-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.pt-modal-title {
	display: inline-block;
	margin: 0 0 14px;
	font-size: 24px;
	line-height: 1.25;
}

.pt-modal-title::after {
	content: "";
	display: block;
	width: 44px;
	height: 3px;
	margin: 10px auto 0;
	background: var(--pt-accent);
	border-radius: 2px;
}

.pt-modal-text {
	max-width: 400px;
	margin: 0 auto 20px;
	color: var(--pt-text-muted);
	font-size: 14px;
}

.pt-modal-link {
	display: inline-block;
	margin: -8px 0 18px;
	font-size: 13px;
	font-weight: 600;
}

.pt-modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.pt-btn-ghost {
	background: transparent;
	color: var(--pt-text-muted);
	border: 1px solid var(--pt-border-strong);
}

.pt-btn-ghost:hover {
	color: var(--pt-text);
	background: var(--pt-bg-hover);
}

/* -------------------------------------------------------------- Lightbox */

/* Photo gallery lightbox (single photo pages). The figure is display:contents
   so the <img> becomes the only flex child — it centers and sizes itself,
   and clicks on the dark backdrop (outside the image) close the dialog. */

.pt-lightbox {
	position: fixed;
	inset: 0;
	z-index: 490; /* above content, below the age gate / GDPR modals (500) */
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.92);
	padding: 20px;
}

.pt-lightbox[hidden] {
	display: none;
}

.pt-lightbox-figure {
	display: contents;
}

.pt-lightbox-img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: var(--pt-radius);
	box-shadow: 0 20px 60px var(--pt-shadow-strong);
}

.pt-lightbox-close,
.pt-lightbox-nav {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pt-lightbox-close:hover,
.pt-lightbox-nav:hover {
	background: var(--pt-accent);
	color: var(--pt-accent-contrast);
	border-color: var(--pt-accent);
}

.pt-lightbox-close {
	top: 16px;
	right: 16px;
}

.pt-lightbox-prev {
	top: 50%;
	left: 16px;
	transform: translateY(-50%);
}

.pt-lightbox-next {
	top: 50%;
	right: 16px;
	transform: translateY(-50%);
}

.pt-lightbox-count {
	position: absolute;
	bottom: 18px;
	left: 50%;
	transform: translateX(-50%);
	padding: 4px 12px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
}

/* ------------------------------------------------------------ Responsive */

@media (max-width: 1280px) {
	.pt-grid {
		grid-template-columns: repeat(var(--pt-grid-cols-tab, 4), 1fr);
	}
}

@media (max-width: 1024px) {
	.pt-footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 900px) {
	/* The single page needs the 360px ad sidebar beside the player as long as
	   the player stays watchable; below this width it drops under the video. */
	.pt-single {
		grid-template-columns: 1fr;
	}

	.pt-single-side {
		position: static;
	}

	.pt-grid {
		grid-template-columns: repeat(var(--pt-grid-cols-sm, 3), 1fr);
	}
}

@media (max-width: 1024px) {
	/* Compact header: hamburger menu + search on its own row. Without this
	   the horizontal menu (logo + search + all nav items) overflows the
	   viewport on anything narrower than ~1000px. */
	.pt-nav-toggle {
		display: flex;
	}

	.pt-header-row {
		flex-wrap: wrap;
	}

	.pt-logo {
		flex: 1;
	}

	.pt-search {
		order: 3;
		flex-basis: 100%;
		max-width: none;
		margin: 0;
	}

	.pt-header-actions {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--pt-bg-header);
		border-bottom: 1px solid var(--pt-border);
		padding: 10px 16px;
	}

	.pt-header-actions.is-open {
		display: flex;
	}

	.pt-header-menu {
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
	}

	.pt-header-menu li a {
		width: 100%;
	}
}

@media (max-width: 760px) {
	/* Phones: the tabs take the first row (they scroll natively) and the
	   active pills + "Filters" button drop to a right-aligned second row, so
	   neither is squeezed into a sliver by the other. */
	.pt-tabs-bar {
		flex-wrap: wrap;
		row-gap: 8px;
	}

	.pt-tabs {
		order: 1;
		flex: 1 0 100%;
	}

	.pt-filters {
		order: 2;
		margin-left: auto;
	}

	.pt-grid {
		grid-template-columns: repeat(var(--pt-grid-cols-xs, 2), 1fr);
		gap: 12px;
	}

	.pt-page-title {
		font-size: 22px;
	}
}

@media (max-width: 460px) {
	.pt-author {
		flex-direction: column;
		text-align: center;
	}

	.pt-grid {
		grid-template-columns: 1fr;
	}

	.pt-footer-grid {
		grid-template-columns: 1fr;
	}

	.pt-single-title {
		font-size: 18px;
	}

	.pt-related-item {
		grid-template-columns: 120px minmax(0, 1fr);
	}
}

/* --------------------------------------------------- Blog & Photos sections */

/* Blog list */

.pt-blog-list {
	display: flex;
	flex-direction: column;
	gap: var(--pt-gap);
}

.pt-blog-item {
	display: flex;
	gap: var(--pt-gap);
	background: var(--pt-bg-card);
	border: 1px solid var(--pt-border);
	border-radius: var(--pt-radius-lg);
	overflow: hidden;
	transition: border-color 0.18s ease, background 0.18s ease;
}

.pt-blog-item:hover {
	border-color: var(--pt-accent);
	background: var(--pt-bg-hover);
}

.pt-blog-thumb {
	flex: 0 0 220px;
	align-self: stretch;
	display: block;
	background: var(--pt-bg-deep);
}

.pt-blog-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pt-blog-content {
	flex: 1;
	min-width: 0;
	padding: 16px;
}

.pt-blog-title {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.3;
}

.pt-blog-title a {
	color: var(--pt-text);
}

.pt-blog-title a:hover {
	color: var(--pt-accent);
}

.pt-blog-excerpt {
	margin: 0 0 10px;
	color: var(--pt-text-muted);
	font-size: 14px;
}

.pt-blog-excerpt p {
	margin: 0;
}

.pt-blog-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	color: var(--pt-text-dim);
	font-size: 13px;
}

.pt-blog-cats a,
.pt-article-cats a,
.pt-article-tags a {
	color: var(--pt-accent);
}

/* Single article (blog + photos) */

/* Wide content (tables, code, wide embeds) scrolls inside its container
   instead of widening the page — applied to every content wrapper. */

.pt-description,
.pt-article-content,
.pt-page-content,
.pt-comment-list .comment-body {
	overflow-x: auto;
}

.pt-article {
	max-width: 820px;
}

.pt-article-head {
	margin-bottom: 18px;
}

.pt-article-thumb {
	margin: 0 0 18px;
}

.pt-article-thumb img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--pt-radius-lg);
}

.pt-article-content {
	color: var(--pt-text-muted);
	line-height: 1.7;
}

.pt-article-content a {
	color: var(--pt-accent);
}

.pt-article-tags {
	margin-top: 18px;
	color: var(--pt-text-dim);
	font-size: 14px;
}

/* Photo gallery grid */

.pt-photo-grid {
	display: grid;
	grid-template-columns: repeat(var(--pt-grid-cols, 5), 1fr);
	gap: var(--pt-gap);
}

.pt-photo-item {
	position: relative;
	background: var(--pt-bg-card);
	border: 1px solid var(--pt-border);
	border-radius: var(--pt-radius);
	overflow: hidden;
	transition: transform 0.18s ease, border-color 0.18s ease;
}

.pt-photo-item:hover {
	transform: translateY(-3px);
	border-color: var(--pt-accent);
}

.pt-photo-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--pt-bg-deep);
}

.pt-photo-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.18s ease;
}

.pt-photo-item:hover .pt-photo-thumb {
	transform: scale(1.04);
}

.pt-photo-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--pt-text-dim);
	font-size: 13px;
}

.pt-photo-count {
	position: absolute;
	top: 8px;
	right: 8px;
	padding: 2px 8px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-size: 12px;
	border-radius: 3px;
}

.pt-photo-title {
	margin: 0;
	padding: 12px 14px;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pt-photo-title a {
	color: var(--pt-text);
}

.pt-photo-title a:hover {
	color: var(--pt-accent);
}

/* Gallery prev/next nav */

.pt-gallery-nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 22px;
}

.pt-gallery-prev,
.pt-gallery-next {
	color: var(--pt-accent);
	font-size: 14px;
	max-width: 48%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pt-gallery-next {
	margin-left: auto;
	text-align: right;
}

.pt-gallery-count {
	color: var(--pt-accent);
	font-weight: 600;
}

@media (max-width: 1280px) {
	.pt-photo-grid {
		grid-template-columns: repeat(var(--pt-grid-cols-tab, 4), 1fr);
	}
}

@media (max-width: 900px) {
	.pt-photo-grid {
		grid-template-columns: repeat(var(--pt-grid-cols-sm, 3), 1fr);
	}
}

@media (max-width: 760px) {
	.pt-photo-grid {
		grid-template-columns: repeat(var(--pt-grid-cols-xs, 2), 1fr);
		gap: 12px;
	}

	.pt-blog-item {
		flex-direction: column;
	}

	.pt-blog-thumb {
		flex: none;
		aspect-ratio: 16 / 9;
	}
}

@media (max-width: 460px) {
	.pt-photo-grid {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------------- Back to top */

/* Floating circular button fixed to the right edge of the viewport
   (outside the centered grid). Hidden until the visitor scrolls down;
   .is-visible is toggled by main.js. Stacks below the modals (z-index
   500) so it never overlaps the age gate / GDPR dialogs. */

.pt-back-to-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 400;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: var(--pt-accent);
	color: var(--pt-accent-contrast);
	border: 0;
	border-radius: 50%;
	box-shadow: 0 6px 18px var(--pt-shadow-soft);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background 0.15s ease;
}

.pt-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.pt-back-to-top:hover {
	background: var(--pt-accent-hover); /* matches the link hover shade */
}

/* -------------------------------------------------- Card container queries */

/* Narrow cards (5 columns on a 1280px container, or 2 columns on a phone)
   tighten their type and padding; wide cards (3 columns on a 1920px
   container) get a touch more room. */

@container (max-width: 210px) {
	.pt-card-body {
		padding: 8px 10px 10px;
	}

	.pt-card-title {
		font-size: 12.5px;
	}

	.pt-card-excerpt {
		font-size: 11px;
	}

	.pt-card-meta {
		font-size: 10.5px;
		gap: 3px 12px;
	}
}

/* "Not rated" is wider than a percentage, so at 4-column widths the row
   tightens its gaps rather than wrapping to a second line. */
@container (max-width: 230px) {
	.pt-card-meta--unrated {
		gap: 4px 9px;
	}
}

@container (min-width: 340px) {
	.pt-card-title {
		font-size: 15px;
	}

	.pt-card-meta {
		font-size: 13px;
	}
}

/* ------------------------------------------------------ Skeleton cards */

/* Placeholders appended by main.js while "Load more" fetches, so the grid
   keeps its rhythm instead of the button being the only signal. */

.pt-card--skeleton {
	pointer-events: none;
	border-color: var(--pt-border);
}

.pt-card--skeleton:hover {
	transform: none;
	box-shadow: none;
	background: var(--pt-bg-card);
}

.pt-card--skeleton .pt-card-media,
.pt-skel-line {
	background: linear-gradient(90deg, var(--pt-bg-card) 25%, var(--pt-bg-hover) 50%, var(--pt-bg-card) 75%);
	background-size: 200% 100%;
	animation: pt-shimmer 1.3s ease-in-out infinite;
}

.pt-skel-line {
	display: block;
	width: 92%;
	height: 12px;
	margin: 6px 0;
	border-radius: 4px;
}

.pt-skel-line--short {
	width: 55%;
	height: 10px;
}

@keyframes pt-shimmer {
	from {
		background-position: 200% 0;
	}

	to {
		background-position: -200% 0;
	}
}

/* ------------------------------------------------------ Docked mini player */

/* .pt-player.is-mini is toggled by main.js once the visitor scrolls past
   the player on a single page; .pt-player-spacer holds its slot. Sits
   above the back-to-top button (bottom: 18px, 44px tall). */

.pt-player.is-mini {
	position: fixed;
	right: 18px;
	bottom: 74px;
	z-index: 350;
	width: min(420px, 42vw);
	height: auto;
	aspect-ratio: 16 / 9;
	border-radius: var(--pt-radius-lg);
	box-shadow: 0 14px 36px var(--pt-shadow-strong);
	animation: pt-mini-in 0.25s ease;
}

@keyframes pt-mini-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.pt-player > .pt-player-mini-close {
	position: absolute;
	inset: auto;
	top: 6px;
	right: 6px;
	z-index: 6;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.15s ease;
}

.pt-player > .pt-player-mini-close:hover,
.pt-player > .pt-player-mini-close:focus-visible {
	background: var(--pt-accent);
	color: var(--pt-accent-contrast);
}

.pt-player > .pt-player-mini-close[hidden] {
	display: none;
}

@media (max-width: 760px) {
	.pt-player.is-mini {
		right: 12px;
		bottom: 70px;
		width: min(320px, 62vw);
	}
}

/* ------------------------------------------------ Collapsing header strip */

/* On compact screens main.js adds .is-collapsed to the sticky header while
   scrolling down, sliding the category strip away; scrolling up brings it
   back. Desktop keeps the strip permanently. */

@media (max-width: 1024px) {
	.pt-catnav {
		max-height: 120px;
		overflow: hidden;
		transition: max-height 0.25s ease, opacity 0.2s ease;
	}

	.pt-header.is-collapsed .pt-catnav {
		max-height: 0;
		opacity: 0;
		border-top-width: 0;
	}
}

/* ------------------------------------------------------------------ Toasts */

.pt-toasts {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 450;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: max-content;
	max-width: calc(100vw - 32px);
	transform: translateX(-50%);
	pointer-events: none;
}

.pt-toast {
	padding: 10px 16px;
	background: var(--pt-bg-header);
	color: var(--pt-text);
	font-size: 13.5px;
	font-weight: 600;
	border-left: 3px solid var(--pt-accent);
	border-radius: var(--pt-radius);
	box-shadow: 0 10px 28px var(--pt-shadow-strong);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.pt-toast.is-visible {
	opacity: 1;
	transform: none;
}

.pt-toast--error {
	border-left-color: #f87171;
}

/* ---------------------------------------- Player: settings / PiP / keys */

.pt-player-settings {
	position: relative;
}

.pt-player-settings-btn,
.pt-player-pip,
.pt-player-keys-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	appearance: none;
	background: transparent;
	color: var(--pt-text);
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}

.pt-player-settings-btn:hover,
.pt-player-pip:hover,
.pt-player-keys-btn:hover,
.pt-player-settings-btn:focus-visible,
.pt-player-pip:focus-visible,
.pt-player-keys-btn:focus-visible {
	background: rgba(255, 255, 255, 0.15);
}

.pt-player-settings-btn[aria-expanded="true"] svg {
	transform: rotate(30deg);
}

.pt-player-settings-btn svg {
	transition: transform 0.2s ease;
}

.pt-player-html5.is-pip .pt-player-pip {
	color: var(--pt-accent);
}

.pt-player-menu {
	position: absolute;
	right: 0;
	bottom: 38px;
	z-index: 12;
	display: flex;
	gap: 4px;
	min-width: 150px;
	padding: 8px;
	background: rgba(20, 20, 20, 0.96);
	border: 1px solid var(--pt-border);
	border-radius: var(--pt-radius-lg);
	box-shadow: 0 12px 30px var(--pt-shadow-strong);
}

.pt-player-menu[hidden] {
	display: none;
}

.pt-player-menu-group {
	display: flex;
	flex-direction: column;
	min-width: 96px;
}

.pt-player-menu-group + .pt-player-menu-group {
	border-left: 1px solid var(--pt-border);
	padding-left: 6px;
	margin-left: 2px;
}

.pt-player-menu-title {
	padding: 2px 8px 6px;
	color: var(--pt-text-dim);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}

.pt-player-menu-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 8px;
	background: transparent;
	color: var(--pt-text);
	font-size: 13px;
	text-align: left;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}

.pt-player-menu-item::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: transparent;
	box-shadow: 0 0 0 1px var(--pt-text-dim);
	flex: none;
}

.pt-player-menu-item[aria-checked="true"] {
	color: var(--pt-accent);
}

.pt-player-menu-item[aria-checked="true"]::before {
	background: var(--pt-accent);
	box-shadow: none;
}

.pt-player-menu-item:hover,
.pt-player-menu-item:focus-visible {
	background: rgba(255, 255, 255, 0.12);
}

/* Keyboard shortcuts overlay */

.pt-player-keys {
	position: absolute;
	inset: 0;
	z-index: 14;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 20px;
	background: rgba(0, 0, 0, 0.86);
	color: var(--pt-text);
	text-align: center;
	cursor: default;
}

.pt-player-keys[hidden] {
	display: none;
}

.pt-player-keys-title {
	margin: 0;
	font-size: 16px;
}

.pt-player-keys-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 200px));
	gap: 6px 24px;
	margin: 0;
	font-size: 13px;
}

.pt-player-keys-list > div {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pt-player-keys-list dt,
.pt-player-keys-list dd {
	margin: 0;
}

.pt-player-keys-list dd {
	color: var(--pt-text-muted);
}

.pt-player-keys kbd {
	display: inline-block;
	min-width: 26px;
	padding: 2px 7px;
	background: var(--pt-bg-header);
	font: inherit;
	font-weight: 700;
	border: 1px solid var(--pt-border-strong);
	border-bottom-width: 2px;
	border-radius: 4px;
}

@media (max-width: 460px) {
	.pt-player-keys-list {
		grid-template-columns: 1fr;
	}
}

/* Up next card */

.pt-player-upnext {
	position: absolute;
	inset: 0;
	z-index: 13;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px;
	background: rgba(0, 0, 0, 0.8);
	color: var(--pt-text);
	text-align: center;
}

.pt-player-upnext[hidden] {
	display: none;
}

.pt-player-upnext-label {
	color: var(--pt-text-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.pt-player-upnext-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	max-width: 320px;
	color: var(--pt-text);
}

.pt-player-upnext-media {
	position: relative;
	display: block;
	width: min(280px, 50vw);
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--pt-radius);
	background: var(--pt-bg-deep);
}

.pt-player-upnext-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pt-player-upnext-title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pt-player-upnext-actions {
	display: flex;
	gap: 10px;
}

.pt-player-upnext-count {
	display: inline-block;
	min-width: 1.4em;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 460px) {
	.pt-player-upnext-media {
		width: 44vw;
	}

	.pt-player-upnext-title {
		font-size: 12.5px;
	}
}

/* ------------------------------------------------- Continue watching row */

.pt-continue {
	margin: 0 0 22px;
}

.pt-continue[hidden] {
	display: none;
}

.pt-continue-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.pt-continue-title {
	margin: 0;
	font-size: 16px;
}

.pt-continue-clear {
	padding: 4px 8px;
	background: transparent;
	color: var(--pt-text-dim);
	font-size: 12px;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}

.pt-continue-clear:hover,
.pt-continue-clear:focus-visible {
	color: var(--pt-accent);
	background: var(--pt-bg-card);
}

.pt-continue-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: clamp(180px, 22vw, 240px);
	gap: 12px;
	overflow-x: auto;
	padding-bottom: 6px;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
}

.pt-continue-card {
	display: block;
	color: var(--pt-text);
	scroll-snap-align: start;
}

.pt-continue-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--pt-radius);
	background: var(--pt-bg-deep);
	border: 1px solid var(--pt-border);
	transition: border-color 0.18s ease;
}

.pt-continue-card:hover .pt-continue-media {
	border-color: var(--pt-accent);
}

.pt-continue-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pt-continue-pos {
	position: absolute;
	left: 6px;
	bottom: 6px;
	padding: 2px 6px;
	background: var(--pt-accent);
	color: var(--pt-accent-contrast);
	font-size: 10.5px;
	font-weight: 700;
	border-radius: 3px;
}

.pt-continue-title,
.pt-continue-card .pt-continue-title {
	display: block;
}

.pt-continue-card .pt-continue-title {
	margin-top: 6px;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ------------------------------------------------- Duration / HD filters */

/* The active filters and the "Filters" disclosure, right-aligned in the tab
   bar. Everything inside is a plain link, so the filters keep working with
   JavaScript off; the disclosure is a native <details>. */

.pt-filters {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	flex: none;
}

.pt-filters-active {
	display: flex;
	align-items: center;
	gap: 6px;
}

.pt-filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	background: var(--pt-bg-card);
	color: var(--pt-text-muted);
	font-size: 12.5px;
	font-weight: 600;
	border: 1px solid var(--pt-border);
	border-radius: 999px;
	transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.pt-filter-chip:hover,
.pt-filter-chip:focus-visible {
	color: var(--pt-text);
	border-color: var(--pt-border-strong);
	background: var(--pt-bg-hover);
}

.pt-filter-chip.is-active {
	background: var(--pt-accent);
	color: var(--pt-accent-contrast);
	border-color: var(--pt-accent);
}

/* The "remove this filter" cross. Was a ::after on the chip; it is a real
   span now so the active pill owns its own markup. */

.pt-filter-chip-x {
	font-weight: 800;
	opacity: 0.8;
}

.pt-filter-chip--hd {
	letter-spacing: 0.5px;
}

.pt-filters-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	background: var(--pt-bg-card);
	color: var(--pt-text);
	font-size: 12.5px;
	font-weight: 600;
	border: 1px solid var(--pt-border);
	border-radius: 999px;
	cursor: pointer;
	/* Hide the native disclosure triangle (both engines). */
	list-style: none;
	transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.pt-filters-toggle::-webkit-details-marker {
	display: none;
}

.pt-filters-toggle:hover,
.pt-filters-toggle:focus-visible {
	color: var(--pt-text);
	border-color: var(--pt-border-strong);
	background: var(--pt-bg-hover);
}

/* Open state: the button reads as "pressed" so it is obvious which control
   the panel below belongs to. */

.pt-filters-menu[open] > .pt-filters-toggle {
	border-color: var(--pt-accent);
}

.pt-filters-icon {
	flex: none;
	opacity: 0.85;
}

/* The panel is positioned against .pt-filters, so it hangs from the right edge
   of the bar at every width. Below the sticky header (z-index 100) on purpose:
   scrolled content passes under the header, the panel must too. */

.pt-filter-panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 60;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 210px;
	max-width: min(300px, calc(100vw - 32px));
	padding: 14px;
	background: var(--pt-bg-header);
	border: 1px solid var(--pt-border-strong);
	border-radius: var(--pt-radius-lg);
	box-shadow: 0 16px 40px var(--pt-shadow-strong);
}

.pt-filter-group-title {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: var(--pt-text-dim);
}

.pt-filter-options {
	display: flex;
	flex-direction: column;
}

.pt-filter-option {
	display: block;
	padding: 7px 10px;
	color: var(--pt-text-muted);
	font-size: 13px;
	font-weight: 600;
	border-radius: var(--pt-radius);
	transition: color 0.15s ease, background 0.15s ease;
}

.pt-filter-option:hover,
.pt-filter-option:focus-visible {
	color: var(--pt-text);
	background: var(--pt-bg-hover);
}

.pt-filter-option--clear {
	padding-top: 11px;
	border-top: 1px solid var(--pt-border);
	border-radius: 0 0 var(--pt-radius) var(--pt-radius);
	color: var(--pt-accent);
}

/* ------------------------------------------------------ Search suggestions */

.pt-search {
	position: relative;
}

.pt-suggest {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	z-index: 120;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: var(--pt-bg-header);
	border: 1px solid var(--pt-border-strong);
	border-radius: var(--pt-radius-lg);
	box-shadow: 0 16px 40px var(--pt-shadow-strong);
	max-height: min(60vh, 480px);
	overflow-y: auto;
}

.pt-suggest[hidden] {
	display: none;
}

.pt-suggest-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 8px;
	color: var(--pt-text);
	font-size: 13.5px;
	border-radius: var(--pt-radius);
	cursor: pointer;
}

.pt-suggest-item img {
	flex: none;
	width: 64px;
	height: 36px;
	object-fit: cover;
	border-radius: 3px;
	background: var(--pt-bg-deep);
}

.pt-suggest-title {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pt-suggest-duration {
	flex: none;
	color: var(--pt-text-dim);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

.pt-suggest-item:hover,
.pt-suggest-item.is-active {
	background: var(--pt-bg-hover);
}

.pt-suggest-item.is-active .pt-suggest-title {
	color: var(--pt-accent);
}

.pt-suggest-more {
	justify-content: center;
	margin-top: 4px;
	color: var(--pt-accent);
	font-weight: 600;
	border-top: 1px solid var(--pt-border);
	border-radius: 0;
}

.pt-suggest-empty {
	padding: 10px 8px;
	color: var(--pt-text-dim);
	font-size: 13px;
	text-align: center;
}

/* ---------------------------------------------------------- Reduced motion */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Single video actions row: tracking / sponsor button + save + report */

.pt-single-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-bottom: 18px;
}

.pt-single-actions .pt-fav--single {
	margin-bottom: 0;
}

/* Tracking / sponsor button (single videos) */

.pt-btn.pt-tracking {
	padding: 6px 14px;
	font-size: 13px;
	line-height: 1;
	border-radius: var(--pt-radius);
}

/* Report a video ----------------------------------------------------------- */

.pt-report {
	display: inline-block;
}

.pt-report.is-done {
	font-size: 13px;
	color: var(--pt-text-muted);
}

.pt-report-box {
	border: 1px solid var(--pt-border);
	border-radius: var(--pt-radius);
	background: var(--pt-bg-card);
}

.pt-report-toggle {
	display: inline-block;
	padding: 6px 14px;
	color: var(--pt-accent);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border-radius: var(--pt-radius);
	list-style: none;
	transition: color 0.15s ease, background 0.15s ease;
}

.pt-report-toggle::-webkit-details-marker {
	display: none;
}

.pt-report-toggle:hover,
.pt-report-toggle:focus-visible {
	color: var(--pt-accent-hover);
	background: var(--pt-bg-hover);
}

.pt-report-box[open] .pt-report-toggle {
	color: var(--pt-accent);
}

.pt-report-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px 14px 14px;
}

.pt-report-label {
	color: var(--pt-text-muted);
	font-size: 12.5px;
	font-weight: 600;
}

.pt-report-reason {
	padding: 8px 10px;
	color: var(--pt-text);
	background: var(--pt-bg);
	border: 1px solid var(--pt-border);
	border-radius: var(--pt-radius);
	font-size: 13px;
}

.pt-report-submit {
	align-self: flex-start;
	padding: 8px 16px;
	background: var(--pt-accent);
	color: var(--pt-accent-contrast);
	font-size: 13px;
	font-weight: 700;
	border: 0;
	border-radius: var(--pt-radius);
	cursor: pointer;
	transition: background 0.15s ease;
}

.pt-report-submit:hover,
.pt-report-submit:focus-visible {
	background: var(--pt-accent-hover);
}

.pt-report-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.pt-report-status {
	font-size: 12.5px;
	color: var(--pt-text-muted);
	min-height: 16px;
}

/* Confirmation step (built by main.js buildReportConfirm). Sits inside the
	same flex column as the reason select, so it inherits the spacing. */

.pt-report-confirm {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px 12px;
	background: var(--pt-bg-hover);
	border-radius: var(--pt-radius);
}

.pt-report-confirm-heading {
	margin: 0;
	color: var(--pt-text-muted);
	font-size: 12.5px;
}

.pt-report-confirm-reason {
	color: var(--pt-text);
	font-size: 13.5px;
}

.pt-report-confirm-hint {
	margin: 0;
	color: var(--pt-text-muted);
	font-size: 12px;
}

.pt-report-confirm-ack {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	color: var(--pt-text);
	font-size: 12.5px;
}

.pt-report-confirm-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

.pt-report-cancel {
	padding: 8px 14px;
	background: none;
	color: var(--pt-text-muted);
	font-size: 13px;
	font-weight: 600;
	border: 1px solid var(--pt-border);
	border-radius: var(--pt-radius);
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease;
}

.pt-report-cancel:hover,
.pt-report-cancel:focus-visible {
	color: var(--pt-text);
	background: var(--pt-bg-hover);
}

/* Queue badges on Tools → Report Queue. Tinted rather than solid so a table
	of them still reads as text. */

.pt-report-badge {
	display: inline-block;
	padding: 1px 7px;
	border-radius: 10px;
	font-size: 11.5px;
	font-weight: 600;
	white-space: nowrap;
}

.pt-report-badge.is-suspect {
	background: #fcf3d6;
	color: #7a5c00;
}

.pt-report-badge.is-supported {
	background: #e2f2e6;
	color: #1a5c2c;
}

.pt-report-badge.is-flagged {
	background: #fbe3e3;
	color: #8a1f1f;
}

/* Accent band: a solid gradient following the chosen accent (logo chip, HD
	badge, footer bar). Used decoratively only — never for text or UI
	boundaries. */

.pt-logo-accent {
	background: var(--pt-accent-band);
}

.pt-badge-hd {
	background: var(--pt-accent-band);
}

.pt-footer {
	border-top: 3px solid transparent;
	border-image: var(--pt-accent-band) 1;
}

/* -------------------------------------------------------------------------
	Color preset flourishes
	Every palette derives an accent halo (--pt-glow) and an accent tint
	(--pt-accent-soft); the two-tone presets also paint the category pill,
	the active filter tab and the HD badge with their own gradient band.
	Set --pt-glow: transparent in Custom CSS to switch the halo off.
	---------------------------------------------------------------------- */

.pt-card:hover,
.pt-card:focus-within {
	box-shadow:
		0 10px 24px var(--pt-shadow),
		0 0 0 1px var(--pt-glow),
		0 14px 34px var(--pt-glow);
}

.pt-catnav-list li.current-cat a,
.pt-catnav-list .pt-catnav-all.is-active a {
	background: var(--pt-accent-band);
	border-color: transparent;
}

::selection {
	background: var(--pt-accent-soft);
	color: var(--pt-text);
}

/* -------------------------------------------------------------------------
	Per-preset signature flourishes (html[data-pt-flourish="…"])
	A preset can opt into a small decorative detail through its `flourish`
	key (see blacktubepro_flourishes() in inc/palettes.php). These never
	touch text or accent colors, so the contrast contract is unaffected, and
	none of them animates, so prefers-reduced-motion needs no special case.
	A palette without a flourish (Custom colors, Classic Black, …) renders
	exactly as it did before this block existed.
	---------------------------------------------------------------------- */

html[data-pt-flourish="neon"] .pt-card-media::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: repeating-linear-gradient(
		to bottom,
		rgba(255, 255, 255, 0.055) 0 1px,
		transparent 1px 3px
	);
	mix-blend-mode: screen;
}

html[data-pt-flourish="royal"] .pt-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 2px;
	background: var(--pt-accent-band);
	opacity: 0.5;
	pointer-events: none;
	z-index: 2;
}

html[data-pt-flourish="emerald"] {
	--pt-radius: 10px;
	--pt-radius-lg: 16px;
}

html[data-pt-flourish="mocha"] .pt-card:hover,
html[data-pt-flourish="mocha"] .pt-card:focus-within {
	border-color: rgba(255, 171, 125, 0.34);
}

/* -------------------------------------------------------------------------
	Upload queue (front end)
	The poster-account form at /upload-video/ and the "Your submissions"
	list under it. The form shares .pt-form-row with the registration
	forms (inc/user-roles.php), which pick up the same control styling.
	---------------------------------------------------------------------- */

.pt-upload-form,
.pt-submissions {
	margin: 0 0 28px;
	padding: 22px;
	background: var(--pt-bg-card);
	border: 1px solid var(--pt-border);
	border-radius: var(--pt-radius-lg);
}

.pt-form-row {
	margin: 0 0 16px;
}

.pt-form-row label,
.pt-form-row legend {
	display: block;
	margin-bottom: 6px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--pt-text);
}

.pt-form-row input[type="text"],
.pt-form-row input[type="url"],
.pt-form-row input[type="email"],
.pt-form-row input[type="password"],
.pt-form-row textarea {
	width: 100%;
	padding: 10px 12px;
	background: var(--pt-bg-deep);
	color: var(--pt-text);
	border: 1px solid var(--pt-border);
	border-radius: var(--pt-radius);
	font: inherit;
	font-size: 14px;
	transition: border-color 0.15s ease;
}

.pt-form-row input:focus,
.pt-form-row textarea:focus {
	outline: none;
	border-color: var(--pt-accent);
}

.pt-form-row textarea {
	min-height: 90px;
	resize: vertical;
}

.pt-form-row ::placeholder {
	color: var(--pt-text-dim);
	opacity: 1;
}

.pt-upload-hint {
	display: block;
	margin-top: 5px;
	color: var(--pt-text-muted);
	font-size: 12.5px;
}

.pt-form-row-check label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	font-weight: 400;
	cursor: pointer;
}

.pt-form-row-check input[type="checkbox"] {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin-top: 2px;
	accent-color: var(--pt-accent);
}

.pt-upload-cats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px 14px;
	margin-top: 4px;
}

.pt-upload-cat {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--pt-text-muted);
	font-size: 13.5px;
	font-weight: 400;
	cursor: pointer;
}

.pt-upload-cat input {
	width: 15px;
	height: 15px;
	accent-color: var(--pt-accent);
}

.pt-upload-cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 16px;
}

.pt-form-status {
	margin: 0 0 18px;
	padding: 12px 16px;
	border: 1px solid var(--pt-border);
	border-left-width: 3px;
	border-radius: var(--pt-radius);
	font-size: 14px;
}

.pt-form-status.is-success {
	border-left-color: var(--pt-accent);
}

.pt-form-status.is-error {
	border-left-color: var(--pt-text-dim);
	color: var(--pt-text);
}

.pt-upload-submit {
	margin-bottom: 0;
}

.pt-submissions-title {
	margin: 0 0 14px;
	font-size: 1.05rem;
}

.pt-submissions-empty {
	margin: 0;
	color: var(--pt-text-muted);
	font-size: 14px;
}

.pt-submissions-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pt-submission {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border-top: 1px solid var(--pt-border);
}

.pt-submission:first-child {
	padding-top: 0;
	border-top: 0;
}

.pt-submission-thumb {
	flex: 0 0 auto;
	width: 120px;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--pt-radius);
}

.pt-submission-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.pt-submission-title {
	overflow: hidden;
	color: var(--pt-text);
	font-weight: 600;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

a.pt-submission-title:hover {
	color: var(--pt-accent);
}

.pt-submission-meta {
	color: var(--pt-text-muted);
	font-size: 12.5px;
}

.pt-status-badge {
	flex: 0 0 auto;
	margin-left: auto;
	padding: 3px 10px;
	color: var(--pt-text-muted);
	font-size: 11.5px;
	font-weight: 700;
	white-space: nowrap;
	border: 1px solid var(--pt-border);
	border-radius: 999px;
}

.pt-status-badge.pt-status-pending {
	background: var(--pt-accent-soft);
	border-color: transparent;
	color: var(--pt-text);
}

.pt-status-badge.pt-status-approved {
	background: var(--pt-accent);
	border-color: var(--pt-accent);
	color: var(--pt-accent-contrast);
}

.pt-upload-note {
	margin: 0 0 18px;
	color: var(--pt-text-muted);
	font-size: 13.5px;
}

.pt-upload-section {
	margin: 0 0 22px;
	padding: 18px;
	border: 1px solid var(--pt-border);
	border-radius: var(--pt-radius);
}

.pt-upload-section > legend {
	padding: 0 8px;
	font-size: 14.5px;
}

.pt-upload-more {
	margin: 0 0 16px;
}

.pt-upload-more > summary {
	margin-bottom: 10px;
	color: var(--pt-accent);
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
}

.pt-upload-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 14px;
}

.pt-upload-status {
	display: block;
	margin-top: 5px;
	color: var(--pt-accent);
	font-size: 12.5px;
}

.pt-submission-note {
	padding: 8px 12px;
	background: var(--pt-bg-deep);
	border-left: 3px solid var(--pt-text-dim);
	border-radius: var(--pt-radius);
	color: var(--pt-text);
	font-size: 13.5px;
}

@media (max-width: 600px) {
	.pt-upload-cols,
	.pt-upload-cats,
	.pt-upload-grid {
		grid-template-columns: 1fr;
	}

	.pt-submission-thumb {
		width: 88px;
	}
}
