.vxg-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

html .smileys-support .smileys-bar.vxg-smileys {
	position: relative;
	display: inline-flex;
	align-items: center;
	margin: 0 0 8px;
	padding: 0;
	overflow: visible;
	font-family: Inter, ui-sans-serif, system-ui, sans-serif;
	vertical-align: top;
}

html .profile-page .vxg-thread-smileys {
	overflow: visible;
}

html .vxg-smileys button,
html .vxg-smileys-panel button {
	font: inherit;
	-webkit-tap-highlight-color: transparent;
}

html .vxg-smileys-toggle,
html .vxg-smileys-close,
html .vxg-smileys-tabs button,
html .vxg-smiley-choice {
	appearance: none;
	border: 0;
	cursor: pointer;
}

html .vxg-smileys-toggle {
	position: relative;
	display: grid;
	width: 48px;
	height: 48px;
	padding: 5px;
	place-items: center;
	border: 1px solid var(--border, rgba(255, 255, 255, .11));
	border-radius: 13px;
	background: var(--surface-elevated, #202024);
	box-shadow: inset 0 1px rgba(255, 255, 255, .04);
	color: var(--foreground, #fff);
	transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

html .vxg-smileys-toggle::after {
	position: absolute;
	right: 3px;
	bottom: 3px;
	width: 7px;
	height: 7px;
	border: 2px solid var(--surface-elevated, #202024);
	border-radius: 50%;
	background: var(--primary, #d40727);
	content: "";
}

html .vxg-smileys-toggle-icon {
	display: block;
	width: 36px !important;
	height: 36px !important;
	object-fit: contain;
	pointer-events: none;
}

html .vxg-smileys.is-open .vxg-smileys-toggle {
	border-color: color-mix(in oklab, var(--primary, #d40727) 72%, white 12%);
	background: color-mix(in oklab, var(--primary, #d40727) 18%, var(--surface-elevated, #202024));
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary, #d40727) 16%, transparent), inset 0 1px rgba(255, 255, 255, .06);
}

html .vxg-smileys-panel {
	position: absolute;
	top: calc(100% + 9px);
	left: 0;
	z-index: 10020;
	display: flex;
	width: min(392px, calc(100vw - 24px));
	max-height: min(510px, calc(100vh - 24px));
	padding: 12px;
	flex-direction: column;
	gap: 10px;
	box-sizing: border-box;
	border: 1px solid var(--border, rgba(255, 255, 255, .11));
	border-radius: 18px;
	background: var(--surface, #171719);
	box-shadow: 0 24px 70px rgba(0, 0, 0, .52), 0 0 0 1px rgba(255, 255, 255, .025) inset;
	color: var(--foreground, #fff);
	isolation: isolate;
	overflow: hidden;
	animation: vxg-smileys-in .18s cubic-bezier(.22, 1, .36, 1) both;
}

html .vxg-smileys-panel[hidden] {
	display: none !important;
}

html .vxg-smileys.is-above .vxg-smileys-panel {
	top: auto;
	bottom: calc(100% + 9px);
	transform-origin: left bottom;
}

@media (min-width: 768px) {
	html .vxg-smileys-panel.is-portaled {
		position: fixed;
		top: auto;
		right: auto;
		bottom: auto;
		left: auto;
	}

	html .vxg-smileys-panel.is-portaled.is-above {
		transform-origin: left bottom;
	}
}

html .vxg-smileys-head {
	display: flex;
	min-height: 38px;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

html .vxg-smileys-head > div {
	display: grid;
	gap: 3px;
}

html .vxg-smileys-head strong {
	font-family: Outfit, Inter, ui-sans-serif, system-ui, sans-serif;
	font-size: 16px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.01em;
}

html .vxg-smileys-head span {
	color: var(--muted-foreground, #aaa);
	font-size: 10.5px;
	font-weight: 600;
	line-height: 1.2;
}

html .vxg-smileys-close {
	display: grid;
	width: 44px;
	height: 44px;
	padding: 0;
	place-items: center;
	border: 1px solid var(--border, rgba(255, 255, 255, .11));
	border-radius: 11px;
	background: var(--surface-elevated, #202024);
	color: var(--muted-foreground, #aaa);
	transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}

html .vxg-smileys-close svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

html .vxg-smileys-tabs {
	display: flex;
	margin: 0 -2px;
	padding: 2px;
	gap: 4px;
	overflow-x: auto;
	scrollbar-width: none;
}

html .vxg-smileys-tabs::-webkit-scrollbar {
	display: none;
}

html .vxg-smileys-tabs button {
	min-height: 44px;
	padding: 0 12px;
	flex: 0 0 auto;
	border: 1px solid transparent;
	border-radius: 9999px;
	background: transparent;
	color: var(--muted-foreground, #aaa);
	font-size: 10.5px;
	font-weight: 750;
	line-height: 1;
	transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}

html .vxg-smileys-tabs button[aria-pressed="true"] {
	border-color: color-mix(in oklab, var(--primary, #d40727) 36%, transparent);
	background: color-mix(in oklab, var(--primary, #d40727) 18%, transparent);
	color: #fff;
}

html .vxg-smileys-grid {
	display: grid;
	min-height: 0;
	max-height: min(354px, 46vh);
	padding: 2px;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 6px;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-color: color-mix(in oklab, var(--primary, #d40727) 48%, transparent) transparent;
	scrollbar-width: thin;
}

html .vxg-smiley-choice {
	position: relative;
	display: grid;
	width: 52px;
	height: 52px;
	min-width: 52px;
	padding: 5px;
	place-items: center;
	justify-self: center;
	border: 1px solid transparent;
	border-radius: 13px;
	background: color-mix(in oklab, var(--surface-elevated, #202024) 74%, transparent);
	transition: transform .15s cubic-bezier(.22, 1, .36, 1), border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

html .vxg-smiley-choice[hidden] {
	display: none !important;
}

html .vxg-smiley-choice .vxg-smiley-thumb {
	display: block;
	width: 42px !important;
	height: 42px !important;
	max-width: none;
	object-fit: contain;
	pointer-events: none;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .28));
	transition: transform .15s cubic-bezier(.22, 1, .36, 1);
}

html .vxg-smileys-toggle:focus-visible,
html .vxg-smileys-close:focus-visible,
html .vxg-smileys-tabs button:focus-visible,
html .vxg-smiley-choice:focus-visible {
	outline: 2px solid var(--primary-glow, #ff3658);
	outline-offset: 2px;
}

.vxg-smiley-inline {
	display: inline-block;
	width: 26px !important;
	height: 26px !important;
	max-width: 26px !important;
	margin: 0 .06em;
	object-fit: contain;
	vertical-align: -.38em;
}

@media (hover: hover) and (pointer: fine) {
	html .vxg-smileys-toggle:hover {
		border-color: color-mix(in oklab, var(--primary, #d40727) 48%, var(--border, #333));
		transform: translateY(-1px);
	}

	html .vxg-smileys-close:hover {
		border-color: color-mix(in oklab, var(--primary, #d40727) 42%, var(--border, #333));
		background: color-mix(in oklab, var(--primary, #d40727) 12%, var(--surface-elevated, #202024));
		color: #fff;
	}

	html .vxg-smileys-tabs button:hover {
		background: color-mix(in oklab, var(--foreground, #fff) 7%, transparent);
		color: var(--foreground, #fff);
	}

	html .vxg-smiley-choice:hover {
		border-color: color-mix(in oklab, var(--primary, #d40727) 42%, transparent);
		background: color-mix(in oklab, var(--primary, #d40727) 13%, var(--surface-elevated, #202024));
		box-shadow: 0 7px 18px rgba(0, 0, 0, .22);
		transform: translateY(-2px);
	}

	html .vxg-smiley-choice:hover .vxg-smiley-thumb {
		transform: scale(1.1);
	}
}

@media (max-width: 767px) {
	html .vxg-smileys-panel,
	html .vxg-smileys.is-above .vxg-smileys-panel {
		position: fixed;
		top: auto;
		right: 10px;
		bottom: calc(var(--vxg-tabbar-total, 0px) + env(safe-area-inset-bottom, 0px) + 10px);
		left: 10px;
		width: auto;
		max-height: min(54dvh, 430px);
		padding: 13px;
		border-radius: 20px;
		transform-origin: center bottom;
	}

	html .vxg-smileys-grid {
		max-height: min(330px, 37dvh);
		grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
		gap: 6px;
	}

	html .vxg-smiley-choice {
		width: 52px;
		height: 52px;
	}

	.vxg-smiley-inline {
		width: 24px !important;
		height: 24px !important;
		max-width: 24px !important;
	}
}

@media (max-width: 380px) {
	html .vxg-smileys-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 4px;
	}

	html .vxg-smiley-choice {
		width: 50px;
		height: 50px;
		min-width: 50px;
	}
}

/* Les visages détaillés restent lisibles dans les commentaires complets et les DM.
   Les aperçus, bios et invitations conservent 26/24 px afin de respecter leurs clamps. */
html .list-comments .comment-text,
html.vxg-watch-page .list-comments .comment-text,
html.vxg-model-page .list-comments .comment-text,
html .vxg-plv-comments .list-comments .comment-text {
	font-size: 15.5px;
	line-height: 1.65;
}

html .profile-page .vxg-thread-bubble {
	font-size: 15px;
	line-height: 1.55;
}

html .list-comments .comment-text .vxg-smiley-inline,
html .profile-page .vxg-thread-bubble .vxg-smiley-inline {
	width: 40px !important;
	height: 40px !important;
	max-width: 40px !important;
	margin: 0 .1em;
	vertical-align: middle;
}

@media (max-width: 767px) {
	html .list-comments .comment-text,
	html.vxg-watch-page .list-comments .comment-text,
	html.vxg-model-page .list-comments .comment-text,
	html .vxg-plv-comments .list-comments .comment-text {
		font-size: 15px;
		line-height: 1.6;
	}

	html .profile-page .vxg-thread-bubble {
		font-size: 14.5px;
		line-height: 1.55;
	}

	html .list-comments .comment-text .vxg-smiley-inline,
	html .profile-page .vxg-thread-bubble .vxg-smiley-inline {
		width: 36px !important;
		height: 36px !important;
		max-width: 36px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	html .vxg-smileys-panel,
	html .vxg-smileys-toggle,
	html .vxg-smileys-close,
	html .vxg-smileys-tabs button,
	html .vxg-smiley-choice,
	html .vxg-smiley-choice .vxg-smiley-thumb {
		animation: none !important;
		transition: none !important;
	}
}

@keyframes vxg-smileys-in {
	from {
		opacity: 0;
		transform: translateY(7px) scale(.975);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
