/* ==========================================================================
   Viva Porno — dark theme
   Original design. Genre conventions (dark chrome, 16:9 grid, duration badges)
   without borrowing any specific site's branding.
   ========================================================================== */

:root {
	--bg:            #0d0d0f;
	--bg-elevated:   #141419;
	--surface:       #1a1a20;
	--surface-hover: #22222a;
	--surface-raise: #26262f;
	--border:        #2a2a34;
	--border-soft:   #202028;

	--text:          #f2f2f5;
	--text-dim:      #a6a6b3;
	--text-muted:    #6f6f7e;

	--accent:        #ff2e63;
	--accent-hi:     #ff4d7a;
	--accent-lo:     #e8114e;
	--accent-ghost:  rgba(255, 46, 99, 0.12);

	/* Second accent, used only to distinguish male performers from female ones. */
	--accent-male:      #2e8bff;
	--accent-male-hi:   #5aa6ff;
	--accent-male-ghost: rgba(46, 139, 255, 0.12);

	--radius:     8px;
	--radius-sm:  5px;
	--shell:      1280px;

	--shadow:     0 2px 10px rgba(0, 0, 0, 0.45);
	--shadow-lg:  0 10px 30px rgba(0, 0, 0, 0.55);

	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	padding: 0;
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.5;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; border: 0; }

a { color: var(--text); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-hi); text-decoration: none; }

h1, h2, h3, h4 { margin: 0 0 12px; font-weight: 700; line-height: 1.25; }

ul, ol { margin: 0; padding: 0; }
.top-menu ul, .topnav ul, .paginate ul, .thumb-tags ul, .footer-links ul { list-style: none; }

input, button, select, textarea { font-family: inherit; font-size: inherit; }

::selection { background: var(--accent); color: #fff; }

/* Focus ring — keyboard only, so mouse users never see it. */
:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

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

.container {
	width: 100%;
	max-width: var(--shell);
	margin: 0 auto;
	padding: 0 20px;
}

#main {
	display: block;
	min-height: 60vh;
	padding: 22px 0 40px;
}

.clearfix::after { content: ""; display: table; clear: both; }
.float-left  { float: left; }
.float-left2 { float: left; }

.sr-only {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* --------------------------------------------------------------------------
   Header — thin utility bar, main bar with logo + search, category strip
   -------------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--bg-elevated);
	border-bottom: 1px solid var(--border);
	box-shadow: 0 1px 0 rgba(0, 0, 0, .4);
}

/* Row 1 — logo, primary nav, search */
.header-bar {
	display: flex;
	align-items: center;
	gap: 26px;
	min-height: 62px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.logo { flex: 0 0 auto; display: block; }
.logo img { height: 38px; width: auto; }

.nav-primary { flex: 1 1 auto; min-width: 0; }

.nav-primary ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px;
	list-style: none;
}

.nav-primary a {
	position: relative;
	display: block;
	padding: 9px 13px;
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: .01em;
	color: var(--text-dim);
	border-radius: var(--radius-sm);
	white-space: nowrap;
}

.nav-primary a:hover { color: #fff; background: rgba(255, 255, 255, .05); }

.nav-primary a.is-current { color: #fff; }

.nav-primary a.is-current::after {
	content: "";
	position: absolute;
	left: 13px; right: 13px; bottom: 2px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--accent-hi), var(--accent-lo));
}

/* 200px, not 340.
   The header bar is logo + nav + search + account links, and .nav-primary ul
   wraps rather than overflowing — so the moment the row is a few pixels short,
   the last nav item drops onto a second line instead of anything looking
   cramped. The account links were added after this width was chosen and took
   the row past that point. The search is the one thing here that still works
   at half the size. */
.header-search {
	flex: 0 1 200px;
	display: flex;
	min-width: 0;
}

.header-search input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 9px 14px;
	font-size: 14px;
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--border);
	border-right: 0;
	border-radius: var(--radius) 0 0 var(--radius);
	transition: border-color .15s ease, background .15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.header-search input::placeholder { color: var(--text-muted); }

.header-search input:focus {
	outline: none;
	background: var(--surface-hover);
	border-color: var(--accent);
}

.header-search button {
	flex: 0 0 auto;
	padding: 9px 18px;
	font-size: 14px;
	color: #fff;
	cursor: pointer;
	background: linear-gradient(180deg, var(--accent-hi), var(--accent-lo));
	border: 0;
	border-radius: 0 var(--radius) var(--radius) 0;
	transition: filter .15s ease;
}

.header-search button:hover { filter: brightness(1.12); }

.nav-toggle {
	display: none;
	flex: 0 0 auto;
	padding: 9px 13px;
	font-size: 17px;
	color: var(--text-dim);
	cursor: pointer;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
}

.nav-toggle:hover { color: #fff; border-color: var(--accent); }

/* Row 2 — category strip */
.cat-strip {
	background: #0b0b0e;
	border-top: 1px solid var(--border-soft);
}

.cat-strip .container {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 44px;
}

.cat-strip-list {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: 1 1 auto;
	min-width: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.cat-strip-list::-webkit-scrollbar { display: none; }

.cat-strip-list a {
	display: block;
	padding: 6px 12px;
	font-size: 12.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--text-muted);
	white-space: nowrap;
	border-radius: var(--radius-sm);
}

.cat-strip-list a:hover { color: #fff; background: var(--accent-ghost); }

.topnav-select { flex: 0 0 auto; }

.topnav-select select {
	padding: 8px 32px 8px 12px;
	color: var(--text-dim);
	background-color: var(--surface);
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23a6a6b3' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 11px center;
	background-size: 10px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.topnav-select select:hover { border-color: var(--accent); color: var(--text); }
.topnav-select select option { background: var(--surface); color: var(--text); }

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */

.panel-heading,
.section-title {
	position: relative;
	margin: 26px 0 16px;
	padding-left: 13px;
	font-size: 19px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
	color: var(--text);
}

/* Wrapper around a title and its subtitle — not a heading itself. It used to be
   grouped with the two above, which gave it the accent bar as well, so every
   page using it drew two bars: one on the wrapper, one on the <h1> inside. */
.heading {
	margin: 26px 0 24px;
}

.heading .panel-heading,
.heading .section-title {
	margin: 0 0 6px;
}

/* Inside the wrapper the subtitle belongs to the title above it, so it sits
   close to it and the wrapper owns the gap to whatever follows. Its own
   20px/12px margins did the opposite: they pushed it away from its title and
   left it nearer the grid below, which read as part of the grid. */
.heading .heading-secondary {
	margin: 0;
}

.panel-heading::before,
.section-title::before {
	content: "";
	position: absolute;
	left: 0; top: 50%;
	width: 4px; height: 20px;
	margin-top: -10px;
	border-radius: 2px;
	background: linear-gradient(180deg, var(--accent-hi), var(--accent-lo));
}

.heading-secondary {
	margin: 20px 0 12px;
	font-size: 16px;
	font-weight: 600;
	color: var(--text-dim);
}

.panel { margin-bottom: 20px; }
.panel-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; }

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

.movielist {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
	gap: 20px 16px;
	margin-bottom: 26px;
}

.movie-i,
.movie-i2 { min-width: 0; }

.pack { position: relative; }

.thumb {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--surface);
	aspect-ratio: 16 / 9;
}

/* Fallback for browsers without aspect-ratio. */
@supports not (aspect-ratio: 16 / 9) {
	.thumb { height: 0; padding-bottom: 56.25%; }
	.thumb > a { position: absolute; inset: 0; }
}

.thumb > a { display: block; width: 100%; height: 100%; }

.thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease, opacity .2s ease;
}

.movie-i:hover .thumb img,
.movie-i2:hover .thumb img { transform: scale(1.06); }

/* Play affordance on hover */
.thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(13, 13, 15, 0.35);
	opacity: 0;
	transition: opacity .2s ease;
	pointer-events: none;
}

.movie-i:hover .thumb::after,
.movie-i2:hover .thumb::after { opacity: 1; }

/* Badges sitting on the thumbnail */
.marker-duration,
.marker-views {
	position: absolute;
	bottom: 8px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 7px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	background: rgba(8, 8, 10, 0.86);
	border-radius: 4px;
	backdrop-filter: blur(2px);
}

.marker-duration { right: 8px; }
.marker-views    { left: 8px; }

.video-title {
	margin: 10px 0 5px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.video-title a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--text);
}

.video-title a:hover { color: var(--accent-hi); }

.video-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	font-size: 12.5px;
	color: var(--text-muted);
}

.video-meta span { display: inline-flex; align-items: center; gap: 5px; }
.video-meta i { font-size: 11px; opacity: .8; }
.meta-channel { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Duration already sits on the thumbnail as a badge — no need to repeat it. */
.video-meta .meta-duration { display: none; }

.thumb-tags { margin-top: 7px; }

.thumb-tags ul {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.thumb-tags a {
	display: block;
	padding: 2px 8px;
	font-size: 11.5px;
	color: var(--text-muted);
	background: var(--surface);
	border: 1px solid var(--border-soft);
	border-radius: 20px;
}

.thumb-tags a:hover {
	color: #fff;
	background: var(--accent-ghost);
	border-color: var(--accent);
}

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

.paginate {
	margin: 30px 0 10px;
	text-align: center;
}

.paginate ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.paginate li { display: block; }

.paginate a,
.paginate li.active,
.paginate li.disabled {
	display: block;
	min-width: 40px;
	padding: 9px 13px;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-dim);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
}

.paginate a:hover {
	color: #fff;
	background: var(--surface-hover);
	border-color: var(--accent);
}

.paginate li.active {
	color: #fff;
	background: linear-gradient(180deg, var(--accent-hi), var(--accent-lo));
	border-color: transparent;
}

.paginate li.disabled { opacity: .4; }

/* --------------------------------------------------------------------------
   Video page
   -------------------------------------------------------------------------- */

.video-page { padding-top: 6px; }

.video-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 26px;
	align-items: start;
}

.video-main { min-width: 0; }

.video-heading { margin-bottom: 14px; }

.movie-title {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

/* Channel then performers, directly under the title and above the player. */
.video-credits {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	margin: 0 0 12px;
	list-style: none;
}

.video-credits .chip i {
	margin-right: 2px;
	font-size: 11px;
	opacity: .85;
}

/* The channel is a different kind of thing from a performer, so it reads as
   neutral rather than taking either of the two performer accents. */
.chip-channel {
	color: var(--text);
	font-weight: 600;
	background: var(--surface-raise);
	border-color: var(--border);
}

.chip-channel i { color: var(--text-muted); }

.chip-channel:hover {
	color: #fff;
	background: rgba(255, 255, 255, .08);
	border-color: var(--text-muted);
}


.video-meta-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	font-size: 13px;
	color: var(--text-muted);
}

.video-meta-bar span { display: inline-flex; align-items: center; gap: 6px; }

.movie-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #000;
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
}

@supports not (aspect-ratio: 16 / 9) {
	.movie-frame { height: 0; padding-bottom: 56.25%; }
}

.movie-frame iframe,
.movie-frame video,
.movie-frame embed,
.movie-frame object {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	border: 0;
}

.video-details {
	margin-top: 16px;
	background: var(--surface);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	overflow: hidden;
}

/* Stats strip directly beneath the player */
.video-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 18px;
	padding: 14px 20px;
	background: var(--bg-elevated);
	border-bottom: 1px solid var(--border-soft);
}

.video-stats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
	font-size: 13.5px;
	color: var(--text-dim);
}

.video-stats span { display: inline-flex; align-items: center; gap: 7px; }
.video-stats i { font-size: 13px; color: var(--text-muted); }

.video-report {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--text-muted);
	background: transparent;
	border: 1px solid var(--border);
	border-radius: 20px;
	transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.video-report:hover {
	color: var(--accent-hi);
	background: var(--accent-ghost);
	border-color: var(--accent);
}

.video-description {
	padding: 18px 20px;
	color: var(--text-dim);
	border-bottom: 1px solid var(--border-soft);
}

/* Categories / models / tags, each as a labelled row of chips */
.video-taxonomy { padding: 6px 20px 18px; }

.tax-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 14px;
	padding: 13px 0;
	border-bottom: 1px solid var(--border-soft);
}

.tax-row:last-child { border-bottom: 0; padding-bottom: 2px; }

.tax-label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	flex: 0 0 auto;
	min-width: 104px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--text-muted);
}

.tax-label i { color: var(--accent); opacity: .9; font-size: 12px; }

.chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	list-style: none;
	flex: 1 1 260px;
}

.chip {
	display: block;
	padding: 5px 12px;
	font-size: 13px;
	font-weight: 500;
	color: var(--text-dim);
	background: var(--surface-raise);
	border: 1px solid var(--border);
	border-radius: 20px;
	transition: color .15s ease, background .15s ease, border-color .15s ease;
}

.chip:hover {
	color: #fff;
	background: var(--accent-ghost);
	border-color: var(--accent);
}

/* Categories are the primary navigation out of a video page — weight them. */
.chip-cat {
	color: var(--text);
	font-weight: 600;
}

.chip-star {
	color: var(--accent-hi);
	font-weight: 600;
}

.video-sidebar { min-width: 0; }

.video-sidebar .section-title { margin-top: 0; }

.video-sidebar .movielist {
	grid-template-columns: 1fr;
	gap: 16px;
}

.video-related { margin-top: 32px; }
.recomandate { margin-top: 10px; }

.distribution { margin: 30px 0 10px; }

.cast-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 12px;
	list-style: none;
}

.cast-card a {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 11px 13px;
	background: var(--surface);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	transition: border-color .18s ease, transform .18s ease;
}

.cast-card a:hover { transform: translateY(-2px); }
.cast-card.is-model a:hover    { border-color: var(--accent); }
.cast-card.is-pornstar a:hover { border-color: var(--accent-male); }

.cast-pic {
	flex: 0 0 auto;
	width: 52px; height: 52px;
	object-fit: cover;
	border-radius: 50%;
	background: var(--surface-raise);
}

/* Fallback for the few performers whose profile carries no picture. */
.cast-pic-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 800;
	color: #fff;
	background: linear-gradient(145deg, var(--accent-hi), var(--accent-lo));
}

.cast-card.is-pornstar .cast-pic-empty {
	background: linear-gradient(145deg, var(--accent-male-hi), var(--accent-male));
}

/* Name and role stacked beside the avatar, not strung out next to it.
   min-width: 0 is the part that is easy to leave out and hard to spot: a flex
   item will not shrink below its content by default, so without it the column
   pushes the card wider instead of letting the name ellipsis do its job. */
.cast-text {
	flex: 1;
	min-width: 0;
}

.cast-name {
	display: block;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cast-role {
	display: block;
	font-size: 12.5px;
	color: var(--text-muted);
}

.cast-card.is-model .cast-role i    { color: var(--accent); }
.cast-card.is-pornstar .cast-role i { color: var(--accent-male); }

.sidebarauthor,
.sidebarpublish {
	font-size: 13px;
	color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Categories page
   -------------------------------------------------------------------------- */

.categories-page { padding-top: 4px; }

.categories-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--border-soft);
}

.categories-title {
	margin: 0 0 6px;
	font-size: 26px;
	font-weight: 700;
}

.categories-subtitle {
	margin: 0;
	color: var(--text-muted);
}

.categories-count {
	display: inline-block;
	padding: 5px 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--accent-hi);
	background: var(--accent-ghost);
	border-radius: 20px;
}

.categorylist {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 16px;
}

.catbox {
	position: relative;
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	transition: border-color .18s ease, transform .18s ease;
}

.catbox:hover {
	border-color: var(--accent);
	transform: translateY(-2px);
}

.catbox .thumb {
	border-radius: 0;
	aspect-ratio: 16 / 10;
}

.catbox .thumb img { transition: transform .35s ease; }
.catbox:hover .thumb img { transform: scale(1.07); }

.catname {
	display: block;
	padding: 11px 13px 4px;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--text);
	text-transform: capitalize;
}

.cattotal {
	display: block;
	padding: 0 13px 12px;
	font-size: 12.5px;
	color: var(--text-muted);
}

/* Category image is often missing — keep the tile from collapsing. */
.catbox .thumb img[src$="/"],
.catbox .thumb img:not([src]) { display: none; }

/* --------------------------------------------------------------------------
   Pornstars
   -------------------------------------------------------------------------- */

.star-page { padding-top: 4px; }

.star-hero {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	margin-bottom: 26px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--border-soft);
}

.star-hero-media {
	flex: 0 0 auto;
	width: 170px;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--surface);
}

.star-hero-info { flex: 1 1 260px; min-width: 0; }

.star-kicker {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--accent);
}

.star-name {
	margin: 4px 0 10px;
	font-size: 28px;
	font-weight: 700;
}

.star-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	font-size: 13.5px;
	color: var(--text-muted);
}

.star-desc { margin-top: 12px; color: var(--text-dim); }

.star-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.star-section { margin-top: 26px; }

.star-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.star-section-title { margin: 0; font-size: 18px; font-weight: 700; }

.star-count {
	font-size: 13px;
	color: var(--text-muted);
}

.starlist {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 12px;
	list-style: none;
	margin-bottom: 30px;
}

.star {
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	transition: border-color .18s ease, transform .18s ease;
}

.star a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 13px;
}

.star:hover { transform: translateY(-2px); }

/* Women under /models/, men under /pornstars/ — our own split, so the two are
   worth telling apart at a glance. */
.star.is-model:hover    { border-color: var(--accent); }
.star.is-pornstar:hover { border-color: var(--accent-male); }

.star .thumb {
	flex: 0 0 auto;
	width: 44px; height: 44px;
	border-radius: 50%;
	aspect-ratio: auto;
	overflow: hidden;
}

.star .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* No performer photos are imported, so most fall back to an initial. */
.star-avatar {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	font-size: 18px;
	font-weight: 800;
	color: #fff;
	border-radius: 50%;
	background: linear-gradient(145deg, var(--accent-hi), var(--accent-lo));
}

.star.is-pornstar .star-avatar {
	background: linear-gradient(145deg, var(--accent-male-hi), var(--accent-male));
}

.starname {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.star-sub {
	display: block;
	font-size: 12.5px;
	color: var(--text-muted);
}

/* Performer chips on the video page */
.chip-star.is-model    { color: var(--accent-hi); }
.chip-star.is-pornstar { color: var(--accent-male-hi); }
.chip-star.is-pornstar:hover {
	background: var(--accent-male-ghost);
	border-color: var(--accent-male);
}

.star-empty {
	padding: 30px;
	text-align: center;
	color: var(--text-muted);
	background: var(--surface);
	border: 1px dashed var(--border);
	border-radius: var(--radius);
}

.years { color: var(--text-muted); font-size: 13px; }

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

.comments { margin-top: 30px; }

.comment_block {
	display: flex;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--border-soft);
}

.comment_thumb {
	flex: 0 0 auto;
	width: 42px; height: 42px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--surface-raise);
}

.comment_thumb img { width: 100%; height: 100%; object-fit: cover; }

.cmtContent { flex: 1 1 auto; min-width: 0; }

.comment_user { font-weight: 700; font-size: 14px; }
.comment_user a { color: var(--accent-hi); }

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

.comment_message { margin: 6px 0 8px; color: var(--text-dim); }

.comment_votes {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 13px;
	color: var(--text-muted);
}

.comment_vote,
.comment_reply { cursor: pointer; }

.comment_vote_up:hover   { color: var(--accent-hi); }
.comment_vote_down:hover { color: var(--text); }

.comment_childrenblock {
	margin-left: 56px;
	border-left: 2px solid var(--border-soft);
	padding-left: 16px;
}

/* --------------------------------------------------------------------------
   Account links in the header
   -------------------------------------------------------------------------- */

.header-account {
	display: flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
}

.account-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--text-dim);
	font-size: 13.5px;
	font-weight: 600;
}
.account-link:hover { color: var(--text); text-decoration: none; }

.account-out { color: var(--text-muted); font-size: 12.5px; }
.account-out:hover { color: var(--text); }

.account-join {
	padding: 6px 13px;
	border-radius: 20px;
	background: var(--accent);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}
.account-join:hover { filter: brightness(1.08); text-decoration: none; }

/* --------------------------------------------------------------------------
   Rating buttons

   A form, not a pair of links: rating changes something, and a GET that
   changes something is a link a crawler will press.
   -------------------------------------------------------------------------- */

.video-rate {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.rate-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 13px;
	border: 1px solid var(--border);
	border-radius: 20px;
	background: var(--surface);
	color: var(--text-dim);
	font: inherit;
	font-size: 13px;
	cursor: pointer;
}
.rate-btn:hover { border-color: var(--text-muted); color: var(--text); }

.rate-up.is-mine {
	background: rgba(46, 204, 113, .16);
	border-color: rgba(46, 204, 113, .5);
	color: #2ecc71;
}
.rate-down.is-mine {
	background: rgba(255, 77, 77, .14);
	border-color: rgba(255, 77, 77, .45);
	color: #ff6b6b;
}

.rate-n { font-variant-numeric: tabular-nums; font-weight: 600; }

.rate-score {
	color: var(--text-muted);
	font-size: 12.5px;
	font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Comment form and thread

   The block styles (.comment_block, .comment_thumb, .comment_childrenblock
   and friends) were already in this stylesheet, written for a comment system
   that did not exist yet. What follows is the rest of it.
   -------------------------------------------------------------------------- */

.comment_body { flex: 1; min-width: 0; }

.comment_initial {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: var(--surface-2, #262633);
	color: var(--text-muted);
	font-weight: 700;
	font-size: 16px;
}

.comment_notice {
	padding: 11px 14px;
	margin-bottom: 16px;
	border-radius: var(--radius-sm, 6px);
	border-left: 3px solid var(--accent);
	background: var(--surface);
	line-height: 1.55;
}
.comment_notice_ok      { border-left-color: #2ecc71; }
.comment_notice_pending { border-left-color: #f5a623; }

.comment_form {
	margin: 0 0 24px;
	padding: 16px;
	background: var(--surface);
	border: 1px solid var(--border-soft, var(--border));
	border-radius: var(--radius, 8px);
}

.comment_form textarea {
	width: 100%;
	padding: 11px 13px;
	border-radius: var(--radius-sm, 6px);
	border: 1px solid var(--border);
	background: var(--bg);
	color: var(--text);
	font: inherit;
	line-height: 1.6;
	resize: vertical;
	min-height: 84px;
	box-sizing: border-box;
}
.comment_form textarea:focus { outline: none; border-color: var(--accent); }

.comment_formfoot {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 11px;
	flex-wrap: wrap;
}

.comment_as { color: var(--text-muted); font-size: 13px; }
.comment_as strong { color: var(--text-dim); }

.comment_submit {
	margin-left: auto;
	padding: 9px 20px;
	border: 0;
	border-radius: var(--radius-sm, 6px);
	background: var(--accent);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.comment_submit:hover { filter: brightness(1.08); }

.comment_hint {
	margin: 11px 0 0;
	color: var(--text-muted);
	font-size: 12.5px;
	line-height: 1.6;
}

.comment_replyto {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	padding: 7px 11px;
	border-radius: var(--radius-sm, 6px);
	background: var(--bg);
	color: var(--text-dim);
	font-size: 13px;
}
.comment_replyto strong { color: var(--text); }

.comment_cancelreply {
	margin-left: auto;
	border: 0;
	background: none;
	color: var(--text-muted);
	font: inherit;
	font-size: 12.5px;
	cursor: pointer;
	text-decoration: underline;
}
.comment_cancelreply:hover { color: var(--text); }

.comment_signin,
.comment_empty {
	padding: 16px;
	background: var(--surface);
	border: 1px solid var(--border-soft, var(--border));
	border-radius: var(--radius, 8px);
	color: var(--text-dim);
	margin-bottom: 20px;
}
.comment_empty { text-align: center; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   The account page
   -------------------------------------------------------------------------- */

.account-page { max-width: 640px; }

.auth-ok {
	padding: 11px 14px;
	margin-bottom: 18px;
	border-radius: var(--radius-sm, 6px);
	border-left: 3px solid #2ecc71;
	background: var(--surface);
}

.account-stats {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 0 22px;
}
.account-stats > div {
	flex: 1;
	min-width: 88px;
	padding: 13px;
	background: var(--surface);
	border: 1px solid var(--border-soft, var(--border));
	border-radius: var(--radius, 8px);
	text-align: center;
}
.account-stats strong { display: block; font-size: 20px; line-height: 1.25; }
.account-stats span   { color: var(--text-muted); font-size: 12px; }

.account-heading {
	margin: 30px 0 14px;
	font-size: 17px;
	padding-top: 20px;
	border-top: 1px solid var(--border);
}

.account-note { color: var(--text-dim); line-height: 1.65; }

.account-comments { list-style: none; margin: 0; padding: 0; }
.account-comments li {
	padding: 13px 0;
	border-bottom: 1px solid var(--border-soft, var(--border));
}
.account-comments li:last-child { border-bottom: 0; }

.account-comment-head {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 5px;
	flex-wrap: wrap;
}
.account-comment-text { color: var(--text-dim); line-height: 1.6; font-size: 14px; }
.account-gone { color: var(--text-muted); font-style: italic; }

.account-tag {
	padding: 1px 8px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
}
.account-tag-ok   { background: rgba(46, 204, 113, .16); color: #2ecc71; }
.account-tag-wait { background: rgba(245, 166, 35, .18); color: #f5a623; }

.account-signout { margin: 30px 0 0; padding-top: 20px; border-top: 1px solid var(--border); }

@media only screen and (max-width: 680px) {
	.header-account .account-link span { display: none; }
	.video-rate { width: 100%; }
	.comment_submit { margin-left: 0; width: 100%; }
}

/* --------------------------------------------------------------------------
   Account forms — register, sign in, activate

   Narrower than the other text pages. A login form spread across 840px makes
   two short fields look like a spreadsheet.
   -------------------------------------------------------------------------- */

.auth-page { max-width: 460px; }

.auth-intro {
	color: var(--text-dim);
	line-height: 1.65;
	margin: -4px 0 20px;
}

.auth-form { margin: 0; }

.auth-field { display: block; margin-bottom: 16px; }

.auth-field > span {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
	font-size: 14px;
}

.auth-field input {
	width: 100%;
	padding: 10px 12px;
	border-radius: var(--radius-sm, 6px);
	border: 1px solid var(--border);
	background: var(--bg);
	color: var(--text);
	font: inherit;
	box-sizing: border-box;
}

.auth-field input:focus { outline: none; border-color: var(--accent); }

.auth-field small {
	display: block;
	margin-top: 5px;
	color: var(--text-muted);
	font-size: 12px;
	line-height: 1.5;
}

.auth-submit {
	display: block;
	width: 100%;
	padding: 11px 16px;
	border: 0;
	border-radius: var(--radius-sm, 6px);
	background: var(--accent);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	margin-top: 4px;
}
.auth-submit:hover { filter: brightness(1.08); text-decoration: none; }

.auth-submit-inline { display: inline-block; width: auto; }

.auth-error {
	padding: 11px 14px;
	margin-bottom: 18px;
	border-radius: var(--radius-sm, 6px);
	border-left: 3px solid var(--accent);
	background: var(--surface);
	color: var(--text);
	line-height: 1.55;
}

.auth-done {
	line-height: 1.7;
	color: var(--text-dim);
}
.auth-done p { margin: 0 0 12px; }
.auth-done strong { color: var(--text); }

.auth-alt {
	margin: 16px 0 0;
	text-align: center;
	color: var(--text-dim);
	font-size: 14px;
}

.auth-legal {
	margin: 14px 0 0;
	color: var(--text-muted);
	font-size: 12px;
	line-height: 1.6;
	text-align: center;
}

/* --------------------------------------------------------------------------
   News

   The listing is a stack of wide cards rather than the 16:9 grid the videos
   use: an article has a title and a summary to read, and squeezing those into
   a thumbnail tile makes both unreadable.
   -------------------------------------------------------------------------- */

.news-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 26px;
}

.news-card {
	display: flex;
	gap: 18px;
	background: var(--surface);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	overflow: hidden;
}

.news-thumb {
	flex: 0 0 240px;
	display: block;
	align-self: stretch;
	background: var(--bg);
}

.news-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 150px;
	object-fit: cover;
}

.news-body {
	flex: 1;
	min-width: 0;
	padding: 18px 20px 18px 0;
}

/* A card with no image loses the left column, so the text needs its padding
   back — otherwise it sits flush against the border. */
.news-card > .news-body:first-child { padding-left: 20px; }

.news-title { margin: 0 0 5px; font-size: 19px; line-height: 1.3; }
.news-title a { color: var(--text); }
.news-title a:hover { color: var(--accent); }

.news-date {
	margin: 0 0 9px;
	color: var(--text-muted);
	font-size: 12.5px;
}

.news-excerpt {
	margin: 0 0 12px;
	color: var(--text-dim);
	line-height: 1.6;
}

.news-more { font-weight: 600; font-size: 13.5px; }

/* --------------------------------------------------------------------------
   One article
   -------------------------------------------------------------------------- */

.article-meta {
	margin: -4px 0 20px;
	color: var(--text-muted);
	font-size: 13px;
}
.article-sep { margin: 0 6px; opacity: .6; }

.article-image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--radius);
	margin-bottom: 22px;
}

.article-body { line-height: 1.75; }
.article-body p { margin: 0 0 16px; }
.article-body p:last-child { margin-bottom: 0; }

.article-more {
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--border);
}
.article-more h2 { margin: 0 0 12px; font-size: 16px; }
.article-more ul { list-style: none; margin: 0; padding: 0; }
.article-more li {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	padding: 7px 0;
	border-bottom: 1px solid var(--border-soft);
}
.article-more li:last-child { border-bottom: 0; }
.article-more .muted { color: var(--text-muted); font-size: 12.5px; white-space: nowrap; }

.article-back { margin: 26px 0 0; }

@media only screen and (max-width: 680px) {
	.news-card { flex-direction: column; gap: 0; }
	.news-thumb { flex: none; width: 100%; }
	.news-thumb img { height: auto; aspect-ratio: 16 / 9; }
	.news-body,
	.news-card > .news-body:first-child { padding: 16px 17px; }
	.article-more li { flex-direction: column; gap: 2px; }
}

/* --------------------------------------------------------------------------
   Static text pages
   -------------------------------------------------------------------------- */

.text-page {
	/* Capped for readability — long measures are hard to read. Centred rather
	   than left-aligned, because a 440px gap down the right of a 1280px
	   container reads as an empty sidebar that someone forgot to fill. */
	max-width: 840px;
	margin: 14px auto 30px;
	padding: 26px 30px 30px;
	background: var(--surface);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	color: var(--text-dim);
}

.text-page .panel-heading { margin-top: 0; color: var(--text); }

.text-page h2 {
	margin: 28px 0 10px;
	padding-bottom: 7px;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: var(--text);
	border-bottom: 1px solid var(--border);
}

.text-page p { margin: 0 0 14px; }
.text-page ol, .text-page ul { margin: 0 0 16px; padding-left: 22px; }
.text-page li { margin-bottom: 9px; }
.text-page strong { color: var(--text); }

.text-page a { color: var(--accent-hi); text-decoration: underline; }
.text-page a:hover { color: var(--accent); }

.text-page .text-page-note {
	margin-top: 24px;
	padding: 13px 16px;
	font-size: 14px;
	background: var(--accent-ghost);
	border-left: 3px solid var(--accent);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* --------------------------------------------------------------------------
   Channels
   -------------------------------------------------------------------------- */

.channel-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
	margin: 10px 0 26px;
	padding: 22px;
	background: var(--surface);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
}

/* Initial-letter avatar — no channel artwork is imported from the source. */
.channel-avatar {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 76px; height: 76px;
	font-size: 32px;
	font-weight: 800;
	color: #fff;
	background: linear-gradient(145deg, var(--accent-hi), var(--accent-lo));
	border-radius: 50%;
}

.channel-avatar-sm { width: 44px; height: 44px; font-size: 18px; }

/* Real avatar, downloaded into media/channels/ — the source URLs are signed and
   expire, so they cannot be hotlinked. */
.channel-pic {
	flex: 0 0 auto;
	width: 76px; height: 76px;
	object-fit: cover;
	border-radius: 50%;
	background: var(--surface-raise);
}

img.channel-avatar-sm { object-fit: cover; }

/* Flag images from images/flags/, keyed by the code in fo_countries. */
.flag {
	display: inline-block;
	width: 20px;
	height: 15px;
	vertical-align: -2px;
	object-fit: cover;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
}

.cast-role .flag,
.star-sub .flag,
.starname .flag { width: 17px; height: 13px; vertical-align: -1px; }

.channel-name .flag { width: 26px; height: 19px; vertical-align: -3px; margin-left: 4px; }

.channel-hero-info { flex: 1 1 260px; min-width: 0; }

.channel-kicker {
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .09em;
	color: var(--accent);
}

.channel-name {
	margin: 4px 0 8px;
	font-size: 26px;
	font-weight: 700;
	word-break: break-word;
}

.channel-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	font-size: 13.5px;
	color: var(--text-muted);
}

.channel-meta span { display: inline-flex; align-items: center; gap: 7px; }
.channel-meta i { color: var(--accent); opacity: .85; font-size: 12px; }

.channel-desc { margin: 12px 0 0; color: var(--text-dim); }

.channel-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 12px;
	list-style: none;
	margin-bottom: 30px;
}

.channel-card a {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 12px 14px;
	background: var(--surface);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	transition: border-color .18s ease, transform .18s ease;
}

.channel-card a:hover { border-color: var(--accent); transform: translateY(-2px); }

.channel-card-body { min-width: 0; }

.channel-card-name {
	display: block;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.channel-card-count {
	display: block;
	font-size: 12.5px;
	color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Tag cloud (/tags)
   -------------------------------------------------------------------------- */

.tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	list-style: none;
	margin: 4px 0 30px;
}

.tag-cloud a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 500;
	color: var(--text-dim);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 24px;
	transition: color .15s ease, background .15s ease, border-color .15s ease;
}

.tag-cloud a:hover {
	color: #fff;
	background: var(--accent-ghost);
	border-color: var(--accent);
}

.tag-count {
	min-width: 22px;
	padding: 1px 7px;
	font-size: 11.5px;
	font-weight: 700;
	text-align: center;
	color: var(--text-muted);
	background: var(--bg);
	border-radius: 20px;
}

.tag-cloud a:hover .tag-count { color: var(--accent-hi); }

.notice-inline {
	margin: 0 0 18px;
	padding: 11px 15px;
	font-size: 13.5px;
	color: var(--text-dim);
	background: var(--surface);
	border-left: 3px solid var(--accent);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* --------------------------------------------------------------------------
   Error pages (404 / 410)
   -------------------------------------------------------------------------- */

.error-page {
	max-width: 620px;
	margin: 40px auto 60px;
	padding: 36px 30px 34px;
	text-align: center;
	background: var(--surface);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
}

.error-code {
	margin: 0;
	font-size: 68px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.02em;
	background: linear-gradient(180deg, var(--accent-hi), var(--accent-lo));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.error-heading {
	margin: 14px 0 8px;
	font-size: 20px;
	font-weight: 700;
	color: var(--text);
}

.error-page p {
	margin: 0;
	color: var(--text-dim);
}

.error-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 22px;
}

blockquote {
	margin: 18px 0;
	padding: 16px 20px;
	background: var(--surface);
	border-left: 3px solid var(--accent);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

blockquote p { margin: 0 0 6px; font-weight: 700; color: var(--text); }
blockquote footer { color: var(--text-dim); font-size: 14px; }
blockquote a { color: var(--accent-hi); text-decoration: underline; }

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

.site-footer {
	margin-top: 48px;
	padding: 38px 0 26px;
	font-size: 14px;
	color: var(--text-muted);
	background: #08080a;
	border-top: 1px solid var(--border);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.6fr repeat(3, 1fr);
	gap: 32px;
	padding-bottom: 30px;
	border-bottom: 1px solid var(--border-soft);
}

.footer-col { min-width: 0; }

.footer-col h3 {
	margin: 0 0 14px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: var(--text);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }

.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--accent-hi); }

.footer-brand { max-width: 380px; }

.footer-logo { display: inline-block; margin-bottom: 14px; }
.footer-logo img { height: 34px; width: auto; opacity: .9; }
.footer-logo:hover img { opacity: 1; }

.footer-brand p { margin: 0; line-height: 1.6; }

.footer-notice {
	padding: 22px 0;
	font-size: 12.5px;
	line-height: 1.65;
	color: #5c5c69;
	border-bottom: 1px solid var(--border-soft);
}

.footer-notice p { margin: 0 0 8px; }
.footer-notice p:last-child { margin-bottom: 0; }
.footer-notice strong { color: var(--text-dim); font-weight: 600; }

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 20px;
	padding-top: 20px;
	font-size: 12.5px;
}

.footer-age {
	padding: 3px 11px;
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--accent-hi);
	background: var(--accent-ghost);
	border-radius: 20px;
}

@media only screen and (max-width: 900px) {
	.footer-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 28px 24px;
	}
	.footer-brand { grid-column: 1 / -1; max-width: none; }
}

@media only screen and (max-width: 480px) {
	.footer-grid { grid-template-columns: 1fr; gap: 24px; }
	.footer-bottom { justify-content: flex-start; }
}

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

@media only screen and (max-width: 1080px) {
	.video-hero {
		grid-template-columns: 1fr;
	}
	.video-sidebar .movielist {
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	}
}

@media only screen and (max-width: 980px) {
	/* Sticky costs too much vertical room once the bars stack. */
	.site-header { position: static; }

	.header-bar {
		flex-wrap: wrap;
		gap: 12px;
		padding-top: 12px;
		padding-bottom: 12px;
	}

	.logo { order: 1; margin-right: auto; }
	.nav-toggle { order: 2; display: block; }
	.header-search { order: 3; flex: 1 1 100%; }

	/* Collapsed behind the toggle; .is-open is set by the script in header.php. */
	.nav-primary {
		order: 4;
		flex: 1 1 100%;
		display: none;
	}
	.nav-primary.is-open { display: block; }

	.nav-primary ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 4px 0;
		border-top: 1px solid var(--border-soft);
	}

	.nav-primary a { padding: 11px 4px; border-radius: 0; }
	.nav-primary a.is-current::after { left: 4px; right: auto; width: 18px; bottom: 6px; }

	.cat-strip .container { gap: 10px; }
	.topnav-select select { max-width: 170px; }
}

@media only screen and (max-width: 640px) {
	body { font-size: 14px; }
	.container { padding: 0 14px; }
	.movielist {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
		gap: 16px 12px;
	}
	.logo img { height: 34px; }
	.movie-title { font-size: 18px; }
	.categories-title { font-size: 21px; }
	.star-name { font-size: 22px; }
	.text-page { padding: 20px 17px 24px; }
	.video-details { padding: 15px 16px; }
	.comment_childrenblock { margin-left: 22px; padding-left: 12px; }
	.panel-heading, .section-title { font-size: 17px; }
}

@media only screen and (max-width: 420px) {
	.movielist { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
	.star-hero-media { width: 130px; }
}
