/* -------------------------------------------------------------------------
	Black Tube Pro design system
	Dark surfaces + signature orange accent + dense 16:9 video grid.
	---------------------------------------------------------------------- */

:root {
	--pt-bg: #1b1b1b;
	--pt-bg-deep: #141414;
	--pt-bg-header: #292929;
	--pt-bg-card: #232323;
	--pt-bg-hover: #333333;
	--pt-bg-input: #141414;
	--pt-accent: #ffa31a;
	--pt-accent-contrast: #1b1b1b;
	--pt-text: #ffffff;
	--pt-text-muted: #a0a0a0;
	--pt-text-dim: #8c8c8c; /* ≥ 4.5:1 on page and card surfaces (WCAG AA) */
	--pt-border: #3a3a3a;
	--pt-border-strong: #4a4a4a;
	--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;
}

body {
	margin: 0;
	background: var(--pt-bg);
	color: var(--pt-text);
	font-family: var(--pt-font);
	font-size: 15px;
	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: #ffb84d;
	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 rgba(0, 0, 0, 0.45);
}

.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);
}

.pt-tabs {
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 8px 16px 0;
	max-width: var(--pt-container);
	margin: 0 auto;
	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);
	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 rgba(0, 0, 0, 0.55);
	/* 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: 26px;
	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 {
	padding: 60px 20px;
	text-align: center;
	color: var(--pt-text-dim);
	background: var(--pt-bg-card);
	border: 1px dashed var(--pt-border);
	border-radius: var(--pt-radius-lg);
}

/* ------------------------------------------- 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);
}

/* ------------------------------------------------------------- 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;
	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 rgba(0, 0, 0, 0.5);
}

/* 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;
	pointer-events: none;
}

.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 rgba(0, 0, 0, 0.5);
}

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

/* 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;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	margin-bottom: 3px;
	color: var(--pt-text-dim);
	font-size: 12px;
}

.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;
}

/* ---------------------------------------------------- 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 rgba(0, 0, 0, 0.5);
}

.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;
}

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

.pt-single-title {
	margin: 0 0 10px;
	font-size: 22px;
	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);
}

/* Actor chip tooltip (model 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: 240px;
	padding: 5px 10px;
	background: var(--pt-bg-deep);
	color: var(--pt-text);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	border: 1px solid var(--pt-border-strong);
	border-radius: var(--pt-radius);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
	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;
}

.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;
}

/* ------------------------------------------------------------ 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 */

/* 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 rgba(0, 0, 0, 0.5);
	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 rgba(0, 0, 0, 0.6);
	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 rgba(0, 0, 0, 0.6);
}

.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) {
	.pt-tabs {
		padding: 8px 16px 0;
	}

	.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 rgba(0, 0, 0, 0.45);
	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: #ffb84d; /* matches the link hover shade */
}

/* ---------------------------------------------------------- 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;
	}
}
