/* Feature-ID: CAM-BROADCAST-CARD-001 -- Shared Cam broadcast preview card. */

html body .wpst-cam-graph-card-grid {
	display: grid;
	gap: var(--ui-card-grid-gap);
	grid-template-columns: repeat(var(--wpst-cams-per-row, 5), minmax(0, 1fr));
}

html body .wpst-cam-graph-card {
	background: var(--ui-surface);
	border: 1px solid var(--ui-border);
	border-radius: var(--ui-radius-md);
	box-shadow: none;
	box-sizing: border-box;
	container-name: cam-graph-card;
	container-type: inline-size;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	padding: var(--ui-card-frame-inset, 10px);
	position: relative;
	transform: translateZ(0);
	transition: background-color 160ms ease, border-color 160ms ease, transform 220ms cubic-bezier(.2, .7, .2, 1);
}

html body .wpst-cam-graph-card:hover,
html body .wpst-cam-graph-card:focus-within {
	background: var(--ui-surface-hover);
	border-color: var(--ui-border-strong, #454545);
	transform: translateY(-3px);
}

html body .wpst-cam-graph-card .wpst-cam-graph-card__media {
	aspect-ratio: 16 / 10 !important;
	background: #0d0d0f;
	border: 1px solid color-mix(in srgb, var(--ui-border, #2d2d2d) 82%, #ffffff 18%);
	border-radius: 6px;
	box-shadow: 0 12px 28px rgb(0 0 0 / 16%);
	box-sizing: border-box;
	flex: 0 0 auto;
	margin: 0;
	min-height: 0 !important;
	overflow: hidden;
	position: relative;
	transition: border-color 180ms ease, box-shadow 220ms ease;
	width: 100%;
}

html body .wpst-cam-graph-card:hover .wpst-cam-graph-card__media,
html body .wpst-cam-graph-card:focus-within .wpst-cam-graph-card__media {
	border-color: var(--ui-border-strong, #454545);
	box-shadow: 0 18px 38px rgb(0 0 0 / 26%);
}

.wpst-cam-graph-card__media::after {
	background: linear-gradient(180deg, rgb(0 0 0 / 4%) 42%, rgb(0 0 0 / 64%) 100%);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 1;
}

.wpst-cam-graph-card__media-link,
.wpst-cam-graph-card__media-link .post-thumbnail-container {
	display: block;
	height: 100%;
	width: 100%;
}

.wpst-cam-graph-card__media-link {
	position: relative;
}

html body .wpst-cam-graph-card__media .video-main-thumb,
html body .wpst-cam-graph-card__media img {
	height: 100% !important;
	object-fit: cover !important;
	object-position: center 15%;
	transform: scale(1.001);
	transition: transform 520ms cubic-bezier(.2, .7, .2, 1), filter 220ms ease;
	width: 100% !important;
}

.wpst-cam-graph-card:hover .wpst-cam-graph-card__media img,
.wpst-cam-graph-card:focus-within .wpst-cam-graph-card__media img {
	filter: saturate(1.05) contrast(1.03);
	transform: scale(1.045);
}

.wpst-cam-graph-card__live,
.wpst-cam-graph-card__enter {
	align-items: center;
	color: #ffffff;
	display: inline-flex;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1;
	position: absolute;
	text-shadow: 0 1px 3px rgb(0 0 0 / 92%);
	z-index: 2;
}

.wpst-cam-graph-card__live {
	background: var(--ui-accent, var(--wpst-main-color, #ef4b88));
	border: 0;
	border-radius: 3px;
	box-shadow: 0 5px 14px color-mix(in srgb, var(--ui-accent, var(--wpst-main-color, #ef4b88)) 28%, transparent);
	padding: 7px 8px 6px;
	right: 9px;
	text-transform: uppercase;
	top: 9px;
}

.wpst-cam-graph-card__status-dot {
	background: #f05b69;
	border: 1px solid rgb(255 255 255 / 88%);
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgb(240 91 105 / 18%), 0 1px 5px rgb(0 0 0 / 75%);
	flex: 0 0 7px;
	height: 7px;
	width: 7px;
}

.wpst-cam-graph-card--online .wpst-cam-graph-card__status-dot {
	background: var(--ui-success, #47b96b);
	box-shadow: 0 0 0 2px rgb(71 185 107 / 20%);
}

.wpst-cam-graph-card__enter {
	border-bottom: 1px solid rgb(255 255 255 / 72%);
	gap: 6px;
	left: 50%;
	opacity: 0;
	padding: 0 0 3px;
	pointer-events: none;
	text-transform: uppercase;
	top: 50%;
	transform: translate(-50%, calc(-50% + 5px));
	transition: opacity 180ms ease, transform 180ms ease;
	white-space: nowrap;
}

.wpst-cam-graph-card:hover .wpst-cam-graph-card__enter,
.wpst-cam-graph-card:focus-within .wpst-cam-graph-card__enter {
	opacity: 1;
	transform: translate(-50%, -50%);
}

.wpst-cam-graph-card__content {
	align-content: start;
	box-sizing: border-box;
	display: grid;
	gap: 2px;
	min-height: 42px;
	padding: 8px 2px 0;
}

.wpst-cam-graph-card__provider {
	align-items: center;
	color: var(--ui-text-muted, #999999);
	display: inline-flex;
	font-size: 12px;
	font-weight: 500;
	gap: 6px;
	line-height: 1.2;
	min-width: 0;
}

.wpst-cam-graph-card__provider > span:last-child {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wpst-cam-graph-card__name {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.2;
	margin: 0;
	min-width: 0;
}

.wpst-cam-graph-card__name a,
.wpst-cam-graph-card__name a:visited {
	color: var(--ui-text, #f5f5f5);
	display: block;
	overflow: hidden;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wpst-cam-graph-card__name a:hover {
	color: #ffffff;
}

.wpst-cam-graph-card a:focus-visible {
	border-radius: 6px;
	outline: 2px solid var(--ui-accent, var(--wpst-main-color, #ef4b88));
	outline-offset: 2px;
}

.wpst-cam-graph-card .wpst-cam-graph-card__media-link:focus-visible {
	outline-offset: -3px;
}

/* Feature-ID: CAM-ACTOR-GRAPH-CARD-002 -- Actor cards retain their existing
 * graph renderer and trailer hooks with the shared Actor card treatment. */
html body :is(
	.graph-card--actor,
	.home-hub-section--actors .graph-card--affiliate,
	.actors-list .wpst-show-more-grid .graph-card--affiliate,
	#main .hub-topic-actors__grid .graph-card--cta
) {
	background: var(--ui-surface);
	border: 1px solid var(--ui-border);
	border-radius: var(--ui-radius-md);
	box-shadow: none;
	box-sizing: border-box;
	min-width: 0;
	overflow: hidden;
	padding: var(--ui-card-frame-inset, 10px);
	position: relative;
	transform: translateZ(0);
	transition: background-color 160ms ease, border-color 160ms ease, transform 220ms cubic-bezier(.2, .7, .2, 1);
}

html body :is(
	.graph-card--actor,
	.home-hub-section--actors .graph-card--affiliate,
	.actors-list .wpst-show-more-grid .graph-card--affiliate,
	#main .hub-topic-actors__grid .graph-card--cta
):hover,
html body :is(
	.graph-card--actor,
	.home-hub-section--actors .graph-card--affiliate,
	.actors-list .wpst-show-more-grid .graph-card--affiliate,
	#main .hub-topic-actors__grid .graph-card--cta
):focus-within {
	background: var(--ui-surface-hover);
	border-color: var(--ui-border-strong, #454545);
	transform: translateY(-3px);
}

html body :is(
	.graph-card--actor,
	.home-hub-section--actors .graph-card--affiliate,
	.actors-list .wpst-show-more-grid .graph-card--affiliate,
	#main .hub-topic-actors__grid .graph-card--cta
) .graph-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
	padding: 0;
	text-decoration: none;
}

html body :is(
	.home-hub-section--actors .graph-card--affiliate,
	.actors-list .wpst-show-more-grid .graph-card--affiliate,
	#main .hub-topic-actors__grid .graph-card--cta
) .graph-card__media {
	aspect-ratio: 16 / 10 !important;
	background: #0d0d0f;
	border: 1px solid color-mix(in srgb, var(--ui-border, #2d2d2d) 82%, #ffffff 18%);
	border-radius: 6px;
	box-shadow: 0 12px 28px rgb(0 0 0 / 16%);
	box-sizing: border-box;
	margin: 0;
	min-height: 0;
	overflow: hidden;
	position: relative;
	transition: border-color 180ms ease, box-shadow 220ms ease;
	width: 100%;
}

html body :is(
	.graph-card--actor,
	.home-hub-section--actors .graph-card--affiliate,
	.actors-list .wpst-show-more-grid .graph-card--affiliate,
	#main .hub-topic-actors__grid .graph-card--cta
):hover .graph-card__media,
html body :is(
	.graph-card--actor,
	.home-hub-section--actors .graph-card--affiliate,
	.actors-list .wpst-show-more-grid .graph-card--affiliate,
	#main .hub-topic-actors__grid .graph-card--cta
):focus-within .graph-card__media {
	border-color: var(--ui-border-strong, #454545);
	box-shadow: 0 18px 38px rgb(0 0 0 / 26%);
}

html body :is(
	.graph-card--actor,
	.home-hub-section--actors .graph-card--affiliate,
	.actors-list .wpst-show-more-grid .graph-card--affiliate,
	#main .hub-topic-actors__grid .graph-card--cta
) .graph-card__media .video-main-thumb,
html body :is(
	.graph-card--actor,
	.home-hub-section--actors .graph-card--affiliate,
	.actors-list .wpst-show-more-grid .graph-card--affiliate,
	#main .hub-topic-actors__grid .graph-card--cta
) .graph-card__media video {
	height: 100% !important;
	object-fit: cover !important;
	object-position: center 15%;
	transform: scale(1.001);
	transition: transform 520ms cubic-bezier(.2, .7, .2, 1), filter 220ms ease;
	width: 100% !important;
}

html body :is(
	.graph-card--actor,
	.home-hub-section--actors .graph-card--affiliate,
	.actors-list .wpst-show-more-grid .graph-card--affiliate,
	#main .hub-topic-actors__grid .graph-card--cta
):hover .graph-card__media .video-main-thumb,
html body :is(
	.graph-card--actor,
	.home-hub-section--actors .graph-card--affiliate,
	.actors-list .wpst-show-more-grid .graph-card--affiliate,
	#main .hub-topic-actors__grid .graph-card--cta
):hover .graph-card__media video,
html body :is(
	.graph-card--actor,
	.home-hub-section--actors .graph-card--affiliate,
	.actors-list .wpst-show-more-grid .graph-card--affiliate,
	#main .hub-topic-actors__grid .graph-card--cta
):focus-within .graph-card__media .video-main-thumb,
html body :is(
	.graph-card--actor,
	.home-hub-section--actors .graph-card--affiliate,
	.actors-list .wpst-show-more-grid .graph-card--affiliate,
	#main .hub-topic-actors__grid .graph-card--cta
):focus-within .graph-card__media video {
	filter: saturate(1.05) contrast(1.03);
	transform: scale(1.045);
}

/* Feature-ID: ACTOR-CARD-COPY-CENTER-001 -- Actor names and video counts
 * align beneath their thumbnail without changing affiliate or CTA card copy. */
html body :is(
	.graph-card--actor,
	.home-hub-section--actors .graph-card--affiliate,
	.actors-list .wpst-show-more-grid .graph-card--affiliate,
	#main .hub-topic-actors__grid .graph-card--cta
) .graph-card__title {
	align-content: start;
	box-sizing: border-box;
	display: grid !important;
	gap: 2px;
	min-height: 42px !important;
	padding: 8px 2px 0 !important;
	text-align: center !important;
}

html body :is(
	.graph-card--actor,
	.home-hub-section--actors .graph-card--affiliate,
	.actors-list .wpst-show-more-grid .graph-card--affiliate,
	#main .hub-topic-actors__grid .graph-card--cta
) .graph-card__title .cat-title {
	color: var(--ui-text, #f5f5f5);
	display: block;
	font-size: 14px !important;
	font-weight: 600 !important;
	letter-spacing: 0;
	line-height: 1.2 !important;
	min-height: 0 !important;
	overflow: hidden;
	text-align: center !important;
	text-overflow: ellipsis;
	white-space: nowrap;
}

html body :is(
	.home-hub-section--actors .graph-card--affiliate,
	.actors-list .wpst-show-more-grid .graph-card--affiliate,
	#main .hub-topic-actors__grid .graph-card--cta
) .graph-card__title,
html body :is(
	.home-hub-section--actors .graph-card--affiliate,
	.actors-list .wpst-show-more-grid .graph-card--affiliate,
	#main .hub-topic-actors__grid .graph-card--cta
) .graph-card__title .cat-title {
	text-align: left !important;
}

/* Feature-ID: TOPIC-PERFORMER-SHOW-MORE-CTA-001 -- The Topic performer
 * directory CTA is an image-free continuation card. Keep its stacked-content
 * marker centered while inheriting the Cam actor card's 16:10 geometry. */
html body #main .hub-topic-actors__grid .graph-card--cta .graph-card__media {
	aspect-ratio: 16 / 10 !important;
	background: #17181a !important;
	display: grid;
	place-items: center;
}

html body #main .hub-topic-actors__grid .graph-card--cta .post-thumbnail-container {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	position: absolute;
	width: auto;
}

html body #main .hub-topic-actors__grid .graph-card--cta .graph-card__add-icon {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-sizing: border-box;
	color: #ffffff;
	display: flex;
	flex: 0 0 46px;
	height: 46px;
	justify-content: center;
	position: relative;
	width: 46px;
}

html body #main .hub-topic-actors__grid .graph-card--cta .graph-card__add-icon::before,
html body #main .hub-topic-actors__grid .graph-card--cta .graph-card__add-icon::after {
	display: none;
}

html body #main .hub-topic-actors__grid .graph-card--cta .graph-card__add-icon i {
	align-items: center;
	background: transparent;
	border: 2px solid #ffffff;
	border-radius: 50%;
	box-sizing: border-box;
	display: flex;
	flex: 0 0 46px;
	height: 46px;
	justify-content: center;
	line-height: 1;
	position: relative;
	width: 46px;
	z-index: 1;
}

html body #main .hub-topic-actors__grid .graph-card--cta .graph-card__add-icon i::before {
	background: #ffffff;
	border-radius: 1px;
	content: "";
	height: 5px;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 20px;
}

html body #main .hub-topic-actors__grid .graph-card--cta .graph-card__add-icon i::after {
	background: #ffffff;
	border-radius: 1px;
	content: "";
	height: 20px;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 5px;
}

html body #main .hub-topic-actors__grid .graph-card--cta .graph-card__title,
html body #main .hub-topic-actors__grid .graph-card--cta .graph-card__title .cat-title {
	text-align: center !important;
}

html body .graph-card--actor .graph-card__meta {
	color: var(--ui-text-muted, #999999) !important;
	display: block;
	font-size: 12px !important;
	font-weight: 500 !important;
	letter-spacing: 0;
	line-height: 1.2 !important;
	margin: 0 !important;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: center !important;
	white-space: nowrap;
}

html body:not(.single) .graph-card--actor .entry-header .graph-card__meta {
	font-weight: 500 !important;
}

/* Feature-ID: GRAPH-CARD-CAM-SURFACE-001 -- Topic and video graph cards use
 * the same Cam surface contract while retaining each card's source ratio. */
html body :is(
	.graph-card--topic,
	.graph-card--video,
	.thumb-block.loop-video
) {
	background: var(--ui-surface);
	border: 1px solid var(--ui-border);
	border-radius: var(--ui-radius-md);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	float: none;
	margin: 0 !important;
	min-width: 0;
	overflow: hidden;
	padding: var(--ui-card-frame-inset, 10px) !important;
	position: relative;
	transform: translateZ(0);
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
	width: auto;
}

html body .video-grid-list {
	gap: var(--ui-card-grid-gap);
	margin-left: 0;
	margin-right: 0;
}

/* Feature-ID: SEARCHER-SECTION-SPACING-001 -- Local actor, topic, and video
 * result grids are separate Sections, so their outer rhythm uses the shared
 * Section gap while the card-to-card rhythm remains the grid token above. */
html body .wpst-searcher-local-results > .wpst-searcher-local-grid ~ .wpst-searcher-local-grid {
	margin-top: var(--ui-section-upper-gap);
}

/* Feature-ID: CARD-GRID-SPACING-001 -- Remove the legacy thumb-block
 * spacing from graph cards so the grid gap is the only row/column rhythm. */
html body .video-grid-list > .graph-card {
	margin-bottom: 0 !important;
	padding: var(--ui-card-frame-inset, 10px) !important;
}

html body :is(
	.graph-card--topic,
	.graph-card--video,
	.thumb-block.loop-video
):hover,
html body :is(
	.graph-card--topic,
	.graph-card--video,
	.thumb-block.loop-video
):focus-within {
	background: var(--ui-surface-hover);
	border-color: var(--ui-border-strong, #454545);
	transform: translateY(-2px);
}

html body :is(
	.graph-card--topic,
	.graph-card--video,
	.thumb-block.loop-video
) > .graph-card__link,
html body .thumb-block.loop-video > a {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
	padding: 0;
}

html body :is(
	.graph-card--topic,
	.graph-card--video,
	.thumb-block.loop-video
) :is(.graph-card__media, .post-thumbnail) {
	border: 1px solid color-mix(in srgb, var(--ui-border, #2d2d2d) 82%, #ffffff 18%);
	border-radius: 6px;
	box-shadow: 0 12px 28px rgb(0 0 0 / 16%);
	box-sizing: border-box;
	margin: 0;
	transition: border-color 180ms ease, box-shadow 220ms ease;
	width: 100%;
}

html body :is(
	.graph-card--topic,
	.graph-card--video,
	.thumb-block.loop-video
):hover :is(.graph-card__media, .post-thumbnail),
html body :is(
	.graph-card--topic,
	.graph-card--video,
	.thumb-block.loop-video
):focus-within :is(.graph-card__media, .post-thumbnail) {
	border-color: var(--ui-border-strong, #454545);
	box-shadow: 0 18px 38px rgb(0 0 0 / 26%);
}

html body :is(
	.graph-card--topic,
	.graph-card--video,
	.thumb-block.loop-video
) :is(.graph-card__media, .post-thumbnail) :is(.video-main-thumb, img) {
	transform: scale(1.001);
	transition: transform 520ms cubic-bezier(.2, .7, .2, 1), filter 220ms ease;
}

html body :is(
	.graph-card--topic,
	.graph-card--video,
	.thumb-block.loop-video
):hover :is(.graph-card__media, .post-thumbnail) :is(.video-main-thumb, img),
html body :is(
	.graph-card--topic,
	.graph-card--video,
	.thumb-block.loop-video
):focus-within :is(.graph-card__media, .post-thumbnail) :is(.video-main-thumb, img) {
	filter: saturate(1.05) contrast(1.03);
	transform: scale(1.045);
}

html body :is(
	.graph-card--topic,
	.graph-card--video,
	.thumb-block.loop-video
) :is(.graph-card__title, .entry-header) {
	align-content: start;
	box-sizing: border-box;
	display: grid !important;
	gap: 2px;
	min-height: 0 !important;
	padding: 8px 2px 4px !important;
}

html body :is(
	.graph-card--topic,
	.graph-card--video,
	.thumb-block.loop-video
) :is(
	.graph-card__title .cat-title,
	.entry-header .video-card-tags--title,
	.entry-header .video-card-tags--tags
) {
	color: var(--ui-text, #f5f5f5) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	letter-spacing: 0;
	line-height: 1.2 !important;
	max-height: 2.4em !important;
	min-height: 2.4em !important;
}

html body :is(
	.graph-card--topic,
	.graph-card--video,
	.thumb-block.loop-video
) :is(.graph-card__meta, .video-card-meta) {
	color: var(--ui-text-muted, #999999) !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	margin-top: 0 !important;
}

/* Feature-ID: PUBLIC-GRAPH-CARD-FRAME-001 -- Promotional graph cards remain
 * content-list items when rendered in a public card grid, so they use the
 * same framed surface as Video, Topic, Actor, and Cam cards. Sidebar ad
 * creatives are intentionally outside this selector. */
html body :is(.video-grid-list, .wpst-cam-graph-card-grid) > :is(
	.graph-card--affiliate,
	.graph-card--cta,
	.graph-card--promo,
	.graph-card--ad
) {
	background: var(--ui-surface);
	border: 1px solid var(--ui-border);
	border-radius: var(--ui-radius-md);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	float: none;
	margin: 0 !important;
	min-width: 0;
	overflow: hidden;
	padding: var(--ui-card-frame-inset, 10px) !important;
	position: relative;
	transform: translateZ(0);
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

html body :is(.video-grid-list, .wpst-cam-graph-card-grid) > :is(
	.graph-card--affiliate,
	.graph-card--cta,
	.graph-card--promo,
	.graph-card--ad
):hover,
html body :is(.video-grid-list, .wpst-cam-graph-card-grid) > :is(
	.graph-card--affiliate,
	.graph-card--cta,
	.graph-card--promo,
	.graph-card--ad
):focus-within {
	background: var(--ui-surface-hover);
	border-color: var(--ui-border-strong, #454545);
	transform: translateY(-2px);
}

html body :is(.video-grid-list, .wpst-cam-graph-card-grid) > :is(
	.graph-card--affiliate,
	.graph-card--cta,
	.graph-card--promo,
	.graph-card--ad
) > .graph-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
	padding: 0;
}

html body :is(.video-grid-list, .wpst-cam-graph-card-grid) > :is(
	.graph-card--affiliate,
	.graph-card--cta,
	.graph-card--promo,
	.graph-card--ad
) :is(.graph-card__media, .post-thumbnail) {
	border: 1px solid color-mix(in srgb, var(--ui-border, #2d2d2d) 82%, #ffffff 18%);
	border-radius: 6px;
	box-shadow: 0 12px 28px rgb(0 0 0 / 16%);
	box-sizing: border-box;
	margin: 0;
	transition: border-color 180ms ease, box-shadow 220ms ease;
	width: 100%;
}

html body :is(.video-grid-list, .wpst-cam-graph-card-grid) > :is(
	.graph-card--affiliate,
	.graph-card--cta,
	.graph-card--promo,
	.graph-card--ad
):hover :is(.graph-card__media, .post-thumbnail),
html body :is(.video-grid-list, .wpst-cam-graph-card-grid) > :is(
	.graph-card--affiliate,
	.graph-card--cta,
	.graph-card--promo,
	.graph-card--ad
):focus-within :is(.graph-card__media, .post-thumbnail) {
	border-color: var(--ui-border-strong, #454545);
	box-shadow: 0 18px 38px rgb(0 0 0 / 26%);
}

@media only screen and (max-width: 767.98px) {
	html body :is(
		.graph-card--topic,
		.graph-card--video,
		.thumb-block.loop-video
	):hover,
	html body :is(
		.graph-card--topic,
		.graph-card--video,
		.thumb-block.loop-video
	):focus-within {
		transform: none;
	}
}

/* Feature-ID: VIDEO-CARD-STATS-POSITION-001 -- Thumbnail statistics stay
 * legible without a background and keep the existing icon-plus-text contract. */
html body .thumb-block.loop-video .post-thumbnail .video-card-thumbnail-stats {
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 3;
}

html body .thumb-block.loop-video .video-card-thumbnail-stats .video-card-meta__item {
	color: #ffffff !important;
	display: inline-flex !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	position: absolute;
	text-shadow: 0 1px 3px rgb(0 0 0 / 96%), 0 0 6px rgb(0 0 0 / 88%);
	white-space: nowrap;
}

html body .thumb-block.loop-video .video-card-thumbnail-stats .video-card-meta__item--visits {
	bottom: 8px;
	left: 8px;
}

html body .thumb-block.loop-video .video-card-thumbnail-stats .video-card-meta__item--likes {
	right: 8px;
	top: 8px;
}

html body .thumb-block.loop-video .video-card-thumbnail-stats .video-card-meta__item--duration {
	bottom: 8px;
	right: 8px;
}

/* Feature-ID: ACTOR-CARD-COUNT-POSITION-001 -- Actor counts can move onto
 * the 3:4 media without changing the avatar ratio or preview overlay. */
html body .graph-card--actor .graph-card__actor-count {
	align-items: center;
	display: inline-flex;
	gap: 4px;
}

html body .graph-card--actor .graph-card__actor-count-overlay {
	bottom: 8px;
	color: #ffffff;
	display: inline-flex;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	max-width: calc(100% - 16px);
	overflow: hidden;
	position: absolute;
	right: 8px;
	text-overflow: ellipsis;
	text-shadow: 0 1px 3px rgb(0 0 0 / 96%), 0 0 6px rgb(0 0 0 / 88%);
	white-space: nowrap;
	z-index: 3;
}

/* Bug-ID: ACTOR-CARD-CAM-VISUAL-001 -- Actor cards share the Cam broadcast
 * frame, including its 16:10 geometry and media treatment. */
html body .graph-card--actor .graph-card__media {
	aspect-ratio: 16 / 10 !important;
	background: #0d0d0f;
	border: 1px solid color-mix(in srgb, var(--ui-border, #2d2d2d) 82%, #ffffff 18%);
	border-radius: 6px;
	box-shadow: 0 12px 28px rgb(0 0 0 / 16%);
	box-sizing: border-box;
	flex: 0 0 auto;
	margin: 0;
	min-height: 0 !important;
	overflow: hidden;
	position: relative;
	transition: border-color 180ms ease, box-shadow 220ms ease;
	width: 100%;
}

html body .graph-card--actor .graph-card__media::after {
	background: linear-gradient(180deg, rgb(0 0 0 / 4%) 42%, rgb(0 0 0 / 64%) 100%);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 1;
}

html body :is(
	.graph-card--actor,
	.home-hub-section--actors .graph-card--affiliate,
	.actors-list .wpst-show-more-grid .graph-card--affiliate,
	#main .hub-topic-actors__grid .graph-card--cta
) .graph-card__link:focus-visible {
	border-radius: 6px;
	outline: 2px solid var(--ui-accent, var(--wpst-main-color, #ef4b88));
	outline-offset: 2px;
}

html body :is(
	.graph-card--actor,
	.home-hub-section--actors .graph-card--affiliate,
	.actors-list .wpst-show-more-grid .graph-card--affiliate,
	#main .hub-topic-actors__grid .graph-card--cta
) .graph-card__media:focus-within {
	outline: 2px solid var(--ui-accent, var(--wpst-main-color, #ef4b88));
	outline-offset: -3px;
}

@media (min-width: 768px) and (max-width: 1100px) {
	html body .wpst-cam-graph-card-grid {
		grid-template-columns: repeat(var(--wpst-cams-per-row, 5), minmax(0, 1fr));
	}
}

@media only screen and (max-width: 767.98px) {
	html body .wpst-cam-graph-card-grid,
	html body .wpst-lust-cam-connections-grid.wpst-cam-graph-card-grid {
		gap: var(--ui-card-grid-gap);
		grid-template-columns: repeat(var(--wpst-cams-per-row-mobile, 2), minmax(0, 1fr));
	}

	html body .wpst-cam-graph-card:hover,
	html body .wpst-cam-graph-card:focus-within {
		transform: none;
	}

	.wpst-cam-graph-card__content {
		min-height: 40px;
		padding-top: 7px;
	}

	.wpst-cam-graph-card__name {
		font-size: 13px;
	}

	.wpst-cam-graph-card__enter {
		display: none;
	}

	html body :is(
		.graph-card--actor,
		.home-hub-section--actors .graph-card--affiliate,
		.actors-list .wpst-show-more-grid .graph-card--affiliate,
		#main .hub-topic-actors__grid .graph-card--cta
	):hover,
	html body :is(
		.graph-card--actor,
		.home-hub-section--actors .graph-card--affiliate,
		.actors-list .wpst-show-more-grid .graph-card--affiliate,
		#main .hub-topic-actors__grid .graph-card--cta
	):focus-within {
		transform: none;
	}

	html body :is(
		.graph-card--actor,
		.home-hub-section--actors .graph-card--affiliate,
		.actors-list .wpst-show-more-grid .graph-card--affiliate,
		#main .hub-topic-actors__grid .graph-card--cta
	) .graph-card__title {
		min-height: 40px !important;
		padding-top: 7px !important;
	}

	html body :is(
		.graph-card--actor,
		.home-hub-section--actors .graph-card--affiliate,
		.actors-list .wpst-show-more-grid .graph-card--affiliate,
		#main .hub-topic-actors__grid .graph-card--cta
	) .graph-card__title .cat-title {
		font-size: 13px !important;
	}

	html body .graph-card--actor .graph-card__meta {
		font-size: 11px !important;
	}
}

@container cam-graph-card (max-width: 159px) {
	.wpst-cam-graph-card__live {
		padding: 6px 7px 5px;
		right: 7px;
		top: 7px;
	}

}

@media (prefers-reduced-motion: reduce) {
	.wpst-cam-graph-card,
	.wpst-cam-graph-card__media,
	.wpst-cam-graph-card__media img,
	.wpst-cam-graph-card__enter,
	:is(
		.graph-card--actor,
		.home-hub-section--actors .graph-card--affiliate,
		.actors-list .wpst-show-more-grid .graph-card--affiliate,
		#main .hub-topic-actors__grid .graph-card--cta
	),
	:is(
		.graph-card--actor,
		.home-hub-section--actors .graph-card--affiliate,
		.actors-list .wpst-show-more-grid .graph-card--affiliate,
		#main .hub-topic-actors__grid .graph-card--cta
	) .graph-card__media,
	:is(
		.graph-card--actor,
		.home-hub-section--actors .graph-card--affiliate,
		.actors-list .wpst-show-more-grid .graph-card--affiliate,
		#main .hub-topic-actors__grid .graph-card--cta
	) .graph-card__media .video-main-thumb,
	:is(
		.graph-card--actor,
		.home-hub-section--actors .graph-card--affiliate,
		.actors-list .wpst-show-more-grid .graph-card--affiliate,
		#main .hub-topic-actors__grid .graph-card--cta
	) .graph-card__media video {
		transition: none !important;
	}

	.wpst-cam-graph-card:hover,
	.wpst-cam-graph-card:focus-within,
	.wpst-cam-graph-card:hover .wpst-cam-graph-card__media img,
	.wpst-cam-graph-card:focus-within .wpst-cam-graph-card__media img,
	.wpst-cam-graph-card:hover .wpst-cam-graph-card__enter,
	.wpst-cam-graph-card:focus-within .wpst-cam-graph-card__enter,
	:is(
		.graph-card--actor,
		.home-hub-section--actors .graph-card--affiliate,
		.actors-list .wpst-show-more-grid .graph-card--affiliate,
		#main .hub-topic-actors__grid .graph-card--cta
	):hover,
	:is(
		.graph-card--actor,
		.home-hub-section--actors .graph-card--affiliate,
		.actors-list .wpst-show-more-grid .graph-card--affiliate,
		#main .hub-topic-actors__grid .graph-card--cta
	):focus-within,
	:is(
		.graph-card--actor,
		.home-hub-section--actors .graph-card--affiliate,
		.actors-list .wpst-show-more-grid .graph-card--affiliate,
		#main .hub-topic-actors__grid .graph-card--cta
	):hover .graph-card__media .video-main-thumb,
	:is(
		.graph-card--actor,
		.home-hub-section--actors .graph-card--affiliate,
		.actors-list .wpst-show-more-grid .graph-card--affiliate,
		#main .hub-topic-actors__grid .graph-card--cta
	):hover .graph-card__media video,
	:is(
		.graph-card--actor,
		.home-hub-section--actors .graph-card--affiliate,
		.actors-list .wpst-show-more-grid .graph-card--affiliate,
		#main .hub-topic-actors__grid .graph-card--cta
	):focus-within .graph-card__media .video-main-thumb,
	:is(
		.graph-card--actor,
		.home-hub-section--actors .graph-card--affiliate,
		.actors-list .wpst-show-more-grid .graph-card--affiliate,
		#main .hub-topic-actors__grid .graph-card--cta
	):focus-within .graph-card__media video {
		transform: none;
	}

	.wpst-cam-graph-card:hover .wpst-cam-graph-card__enter,
	.wpst-cam-graph-card:focus-within .wpst-cam-graph-card__enter {
		transform: translate(-50%, -50%);
	}
}
