/*
 * One stylesheet, no framework. The whole point of this build is that a
 * performer page ships its own markup and this file, rather than a builder's
 * per-layout CSS.
 */

:root {
	/* One number decides the site's colour. Everything below is derived from it,
	   so giving a sibling site its own identity is a single edit at rollout
	   rather than a hand-mixed palette per domain - and the estate stops looking
	   like thirteen copies of one template to anyone who visits two of them.
	   The theme sets it; a child theme or a filter can override it.

	   blowjob: 190. Each property gets its own hue so two sibling
	   sites never look like the same template. */
	--site-h: 190;

	--bg:      hsl(var(--site-h) 55% 9%);
	--surface: hsl(var(--site-h) 42% 14%);
	--line:    hsl(var(--site-h) 30% 23%);
	--ink:     hsl(var(--site-h) 25% 94%);
	--muted:   hsl(var(--site-h) 16% 66%);
	--accent:  hsl(var(--site-h) 72% 58%);

	--radius: 4px;
	--gap: 14px;
	--max: 1400px;
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }

.site-head, .site-foot, #content {
	max-width: var(--max);
	margin-inline: auto;
	padding-inline: 16px;
}

.site-head {
	display: flex; align-items: center; justify-content: space-between;
	gap: var(--gap); padding-block: 14px; border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
/* Logos in this estate are wide wordmarks at wildly different pixel sizes, so
   they are capped by height and left to keep their own ratio. */
.brand--logo { display: flex; align-items: center; }
.brand--logo img { display: block; height: 34px; width: auto; max-width: 260px; object-fit: contain; }
.site-nav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; font-size: 15px; }

h1, h2 { line-height: 1.15; text-wrap: balance; margin: 28px 0 12px; }
h1 { font-size: clamp(24px, 3.4vw, 34px); }
h2 { font-size: clamp(18px, 2.2vw, 22px); }

/* Performer grid ------------------------------------------------------- */
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: var(--gap);
}
@media (min-width: 1100px) {
	/* Wider screens get more tiles rather than bigger ones - card sources are
	   small and stretch badly. */
	.grid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
}
.card {
	border-radius: var(--radius); overflow: hidden;
	background: linear-gradient(158deg, hsl(var(--h, 340) 36% 24%), hsl(var(--h, 340) 30% 13%));
}
/* Holds its shape with or without an image, so a blocked CDN cannot collapse
   the grid. The card background below the image is the placeholder. */
.card-link { display: block; position: relative; aspect-ratio: 4 / 3; }
.card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-name {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 6px 8px; font-size: 14px; font-weight: 600;
	background: linear-gradient(to top, rgba(0,0,0,.82), transparent);
}

/* Performer page ------------------------------------------------------- */
.model-title { margin-top: 22px; }
/* The embed and the poster both sit on hosts that blocklists commonly catch.
   When either is blocked the element is hidden or removed, and this drawn-in-CSS
   panel underneath is what the visitor sees - never an empty black box. The
   aspect ratio lives on the container so the page does not reflow either way. */
/* 4:3 matches what the networks actually send - Chaturbate 360x270, CamSoda
   320x240, StripCash 1000x750. A 16:9 frame threw away a third of every
   picture and turned portrait mobile broadcasts into a close-up. */
/* Two columns on desktop: facts on the left, picture on the right and as large
   as the grid will give it. The page is a shop window, so the image gets the
   room. Source sizes support it - StripCash ships 1000x750, BongaCams 640x480. */
.model-top {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 22px;
	margin-top: 18px;
	align-items: start;
}
@media (min-width: 900px) {
	.model-top { grid-template-columns: minmax(260px, 330px) minmax(0, 1fr); gap: 30px; }
	/* Source order leads with the picture so it comes first on a phone; on
	   desktop the facts move to the left rail without changing the markup. */
	.model-facts { order: 1; }
	.model-media { order: 2; }
	.model-facts > * { position: static; }
}
.model-media { min-width: 0; }
.model-facts h2 { margin-top: 0; }

.player {
	position: relative; aspect-ratio: 4 / 3;
	background: #000; border-radius: var(--radius); overflow: hidden;
}
.player-fallback {
	position: absolute; inset: 0; z-index: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 2px; padding: 16px; text-align: center;
	background:
		radial-gradient(115% 85% at 50% 0, hsl(var(--h, 340) 46% 27%), transparent 70%),
		linear-gradient(158deg, hsl(var(--h, 340) 32% 16%), hsl(var(--h, 340) 26% 10%));
}
.player-fallback-name { margin: 0; font-size: clamp(21px, 3.2vw, 30px); font-weight: 700; letter-spacing: -.01em; }
.player-fallback-note { margin: 0; color: var(--muted); font-size: 15px; }

.player-poster-img {
	position: absolute; inset: 0; z-index: 1;
	width: 100%; height: 100%; object-fit: cover;
}

/* The play control is a link to the network, not a player. It covers the whole
   frame so anywhere in the picture is a click through, and the disc is drawn in
   CSS so it survives a blocked image along with everything else. */
.player-play {
	position: absolute; inset: 0; z-index: 2;
	display: grid; place-items: center;
}
.player-play::before {
	content: ""; width: 76px; height: 76px; border-radius: 50%;
	background: rgba(0, 0, 0, .42);
	border: 2px solid rgba(255, 255, 255, .92);
	box-shadow: 0 2px 20px rgba(0, 0, 0, .5);
	transition: background-color .12s ease, transform .12s ease;
}
.player-play::after {
	content: ""; position: absolute; top: 50%; left: 50%;
	transform: translate(-40%, -50%);
	border-style: solid; border-width: 13px 0 13px 21px;
	border-color: transparent transparent transparent #fff;
}
.player-play:hover::before, .player-play:focus-visible::before {
	background: var(--accent); transform: scale(1.06);
}
/* Announced to screen readers, off the screen for everyone else. */
.player-play-label {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip-path: inset(50%); white-space: nowrap;
}

.cta { margin: 16px 0; }
.btn {
	display: inline-block; padding: 13px 26px; border-radius: var(--radius);
	background: var(--accent); color: #fff; font-weight: 700;
}
.btn:hover, .btn:focus-visible { background: #f25a82; color: #fff; }

.model-subject { color: var(--muted); margin: 12px 0 0; }

/* Performer-written text. Unmoderated, so it is capped in PHP and never
   given emphasis it has not earned. */
.blurb { max-width: 62ch; margin: 0 0 10px; }
.blurb-label {
	display: inline-block; margin-right: 8px;
	font-size: 13px; font-weight: 700; letter-spacing: .04em;
	text-transform: uppercase; color: var(--muted);
}

.termlist { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.termlist a {
	display: inline-block; padding: 5px 11px; font-size: 14px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.termlist--tags { margin-top: 14px; }

.stats { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; margin: 0; }
.stats dt { color: var(--muted); }
.stats dd { margin: 0; }

.prose { max-width: 68ch; }
.prose h1 { margin-top: 22px; }

.pager { display: flex; gap: 8px; justify-content: center; margin: 28px 0; flex-wrap: wrap; }
.pager .page-numbers { padding: 8px 13px; background: var(--surface); border-radius: var(--radius); }
.pager .current { background: var(--accent); color: #fff; }

.site-foot {
	margin-top: 44px; padding-block: 22px; border-top: 1px solid var(--line);
	color: var(--muted); font-size: 14px;
}
.site-foot ul { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0 0 8px; padding: 0; }
.disclaimer { margin: 0; }

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Contextual links to the sibling sites. Appears only where a term on the page
   matches a sibling niche, so it is a handful of pages, not a footer block. */
.network { margin: 34px 0 0; }
.network-list {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 10px; list-style: none; margin: 0; padding: 0;
}
.network-list a {
	display: block; padding: 12px 14px;
	background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius);
}
.network-list a:hover, .network-list a:focus-visible { border-color: var(--accent); }
.network-list strong { display: block; font-size: 15px; }
.network-list span { color: var(--muted); font-size: 13px; }

/* ---- tag layer ----------------------------------------------------------
   Three placements, one component: the homepage seeds the layer, an archive
   meshes it, the index guarantees reach. Rendered as a wrapping row of pills
   because the count varies from a dozen to a few hundred and a column list at
   300 items is unusable. */

.tags-heading { font-size: 17px; margin: 26px 0 10px; }

.tagrow {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 0 0 26px;
	padding: 0;
}
.tagrow a {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	padding: 5px 11px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink);
	text-decoration: none;
	font-size: 14px;
	line-height: 1.3;
}
.tagrow a:hover, .tagrow a:focus-visible {
	border-color: var(--accent);
	color: var(--accent);
}
/* The supply figure earns its place: it is what tells a visitor whether the
   page is worth opening, and it is real rather than decorative. */
.tagrow-n {
	font-size: 12px;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}
.tagrow a:hover .tagrow-n { color: inherit; }

.archive-intro { color: var(--muted); max-width: 70ch; margin: 0 0 22px; }

.foot-browse { margin-bottom: 10px; }
.foot-browse a { color: var(--ink); }
