/* Muze ME shared polish for theme-rendered pages. */
:root {
	--muze-pink: #ff3565;
	--muze-pink-soft: #ff7898;
	--muze-surface: #171417;
	--muze-surface-raised: #1d191d;
	--muze-border: rgba(255, 53, 101, .38);
	--muze-text: #fff;
	--muze-muted: #bdb4b8;
}

/* Semantic titles for app-like destinations stay available to assistive tech. */
.muze-screen-reader-title {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	border: 0 !important;
	white-space: nowrap !important;
}

/*
 * Footer signature: keep the original black-and-white artwork crisp while
 * surrounding it with two low-cost clusters of heart-shaped sparks. The image
 * glow is also the fallback for browsers without :has().
 */
.site-footer img.grayscale[alt="AMUZEME"][src*="MUZE-GIRL-LAY-LOGO.png"] {
	position: relative;
	z-index: 2;
	filter:
		grayscale(1)
		contrast(1.12)
		brightness(1.12)
		drop-shadow(0 0 5px rgba(255, 255, 255, .5))
		drop-shadow(0 0 14px rgba(255, 53, 101, .34));
	animation: muze-footer-logo-glow 3.8s ease-in-out infinite;
}

@supports selector(a:has(> img)) {
	.site-footer .logo-footer {
		overflow: visible;
	}

	.site-footer a:has(> img.grayscale[alt="AMUZEME"][src*="MUZE-GIRL-LAY-LOGO.png"]) {
		position: relative;
		display: inline-block;
		overflow: visible;
		isolation: isolate;
		border-radius: 18px;
		line-height: 0;
		-webkit-tap-highlight-color: transparent;
	}

	.site-footer a:has(> img.grayscale[alt="AMUZEME"][src*="MUZE-GIRL-LAY-LOGO.png"])::before,
	.site-footer a:has(> img.grayscale[alt="AMUZEME"][src*="MUZE-GIRL-LAY-LOGO.png"])::after {
		position: absolute;
		z-index: 3;
		top: 50%;
		left: 50%;
		width: 1em;
		height: 1em;
		content: "\2665";
		color: #fff;
		font-family: Arial, sans-serif;
		font-weight: 900;
		line-height: 1;
		text-align: center;
		text-shadow:
			-86px -26px 0 rgba(255, 255, 255, .96),
			-67px 25px 0 rgba(255, 53, 101, .96),
			-43px -35px 0 rgba(255, 146, 187, .9),
			-20px 34px 0 rgba(255, 255, 255, .92),
			18px -37px 0 rgba(255, 53, 101, .92),
			43px 34px 0 rgba(255, 208, 226, .96),
			68px -25px 0 rgba(255, 255, 255, .92),
			87px 15px 0 rgba(213, 109, 255, .88);
		filter:
			drop-shadow(0 0 2px rgba(255, 255, 255, .65))
			drop-shadow(0 0 5px rgba(255, 53, 101, .92));
		pointer-events: none;
	}

	.site-footer a:has(> img.grayscale[alt="AMUZEME"][src*="MUZE-GIRL-LAY-LOGO.png"])::before {
		margin: -.5em 0 0 -.5em;
		font-size: 13px;
		opacity: .28;
		transform: translateY(3px) scale(.7) rotate(-7deg);
		animation: muze-footer-heart-spark-a 3.8s ease-in-out infinite;
	}

	.site-footer a:has(> img.grayscale[alt="AMUZEME"][src*="MUZE-GIRL-LAY-LOGO.png"])::after {
		margin: -.5em 0 0 -.5em;
		font-size: 9px;
		opacity: .2;
		transform: translateY(-2px) scale(.76) rotate(9deg);
		text-shadow:
			-76px 7px 0 rgba(255, 181, 210, .9),
			-55px -17px 0 rgba(255, 255, 255, .92),
			-31px 21px 0 rgba(213, 109, 255, .9),
			-5px -26px 0 rgba(255, 53, 101, .96),
			25px 23px 0 rgba(255, 255, 255, .94),
			51px -13px 0 rgba(255, 123, 174, .94),
			77px 5px 0 rgba(255, 255, 255, .9);
		animation: muze-footer-heart-spark-b 4.6s ease-in-out -2.2s infinite;
	}
}

@keyframes muze-footer-logo-glow {
	0%,
	72%,
	100% {
		filter:
			grayscale(1)
			contrast(1.12)
			brightness(1.1)
			drop-shadow(0 0 5px rgba(255, 255, 255, .45))
			drop-shadow(0 0 13px rgba(255, 53, 101, .28));
	}
	82% {
		filter:
			grayscale(1)
			contrast(1.16)
			brightness(1.25)
			drop-shadow(0 0 7px rgba(255, 255, 255, .78))
			drop-shadow(0 0 19px rgba(255, 53, 101, .48));
	}
}

@keyframes muze-footer-heart-spark-a {
	0%,
	18%,
	100% { opacity: .26; transform: translateY(3px) scale(.72) rotate(-7deg); }
	28% { opacity: .95; transform: translateY(-1px) scale(1.08) rotate(-2deg); }
	40% { opacity: .36; transform: translateY(-4px) scale(.82) rotate(2deg); }
	58% { opacity: .88; transform: translateY(-7px) scale(1.02) rotate(5deg); }
	74% { opacity: .3; transform: translateY(-10px) scale(.76) rotate(8deg); }
}

@keyframes muze-footer-heart-spark-b {
	0%,
	24%,
	100% { opacity: .18; transform: translateY(-2px) scale(.76) rotate(9deg); }
	34% { opacity: .82; transform: translateY(-5px) scale(1.12) rotate(4deg); }
	49% { opacity: .28; transform: translateY(-8px) scale(.82) rotate(0deg); }
	64% { opacity: .76; transform: translateY(-11px) scale(1.04) rotate(-5deg); }
	80% { opacity: .22; transform: translateY(-14px) scale(.74) rotate(-9deg); }
}

/* Requested top-bar cleanup. The links remain available in Studio. */
#masthead .top-bar .membership a[href*="/my-profile"],
#masthead .top-bar .membership a[href*="/author/"] {
	display: none !important;
}

/* Consistent keyboard focus and touch target treatment. */
.muze-studio-shortcuts a:focus-visible,
body.muze-polish-live-cams .cbl-roomcard:focus-visible,
body.muze-polish-live-cams .cbaop-card:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

/* Creator Studio: put account/profile destinations beside creator tools. */
.muze-studio-shortcuts {
	display: grid;
	grid-template-columns: minmax(160px, .72fr) repeat(3, minmax(190px, 1fr));
	gap: 10px;
	width: min(1040px, 100%);
	margin: 24px auto 12px;
	padding: 12px;
	box-sizing: border-box;
	color: var(--muze-text);
	background: linear-gradient(120deg, #151216, #201520);
	border: 1px solid var(--muze-border);
	border-radius: 16px;
	box-shadow: 0 14px 34px rgba(0, 0, 0, .25);
}
.muze-studio-shortcuts__intro {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 8px 12px;
}
.muze-studio-shortcuts__intro span {
	color: var(--muze-pink-soft);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.muze-studio-shortcuts__intro strong { margin-top: 2px; font-size: 18px; }
.muze-studio-shortcuts a {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	min-height: 58px;
	padding: 8px 12px;
	box-sizing: border-box;
	color: #fff !important;
	background: rgba(255, 255, 255, .035);
	border: 1px solid rgba(255, 255, 255, .09);
	border-radius: 11px;
	text-decoration: none !important;
	transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.muze-studio-shortcuts a:hover {
	background: rgba(255, 53, 101, .08);
	border-color: var(--muze-border);
	transform: translateY(-1px);
}
.muze-studio-shortcuts a i {
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	background: linear-gradient(135deg, #ff3565, #aa28d8);
	border-radius: 10px;
	font-size: 17px;
	font-style: normal;
}
.muze-studio-shortcuts a span { min-width: 0; }
.muze-studio-shortcuts a strong,
.muze-studio-shortcuts a small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muze-studio-shortcuts a strong { color: #fff; font-size: 14px; }
.muze-studio-shortcuts a small { margin-top: 2px; color: var(--muze-muted); font-size: 11px; }
.muze-studio-shortcuts a b { color: var(--muze-pink-soft); font-size: 17px; }

/* Live Cams: remove the empty rail and make the directory match home cards. */
body.muze-polish-live-cams #primary,
body.muze-polish-live-cams #main.with-sidebar-right,
body.muze-polish-membership #primary {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
}
body.muze-polish-membership #main.with-sidebar-right {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
}
body.muze-polish-live-cams #secondary,
body.muze-polish-live-cams .sidebar,
body.muze-polish-membership #secondary,
body.muze-polish-membership .sidebar {
	display: none !important;
}
body.muze-polish-live-cams .entry-content > .wp-block-heading:not(:first-child) { display: none; }
body.muze-polish-live-cams .entry-content > .wp-block-heading:first-child {
	margin: 28px 0 12px;
	color: #fff;
	font: 800 clamp(22px, 3vw, 30px)/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	text-shadow: none !important;
}
body.muze-polish-live-cams .cbl-wrap {
	padding: 16px !important;
	background: linear-gradient(145deg, #151215, #1b171b) !important;
	border: 1px solid var(--muze-border);
	border-radius: 14px !important;
	box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
}
body.muze-polish-live-cams .cbl-wrap > h2 { display: none !important; }
body.muze-polish-live-cams .cbl-roomsgrid {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(150px, 1fr)) !important;
	gap: 12px !important;
}
body.muze-polish-live-cams .cbl-roomcard {
	display: flex !important;
	min-height: 170px;
	padding: 18px 12px !important;
	box-sizing: border-box;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #fff !important;
	background: var(--muze-surface-raised) !important;
	border: 1px solid rgba(255, 53, 101, .28) !important;
	border-radius: 12px !important;
	box-shadow: none !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	text-align: center;
	text-decoration: none !important;
	transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
body.muze-polish-live-cams .cbl-roomcard:hover {
	background: #211a20 !important;
	border-color: var(--muze-pink) !important;
	transform: translateY(-2px);
}
body.muze-polish-live-cams .cbl-roomava {
	display: block;
	width: 64px !important;
	height: 64px !important;
	margin: 0 auto 10px;
	border: 2px solid var(--muze-pink) !important;
	border-radius: 50% !important;
	overflow: hidden;
}
body.muze-polish-live-cams .cbl-roomava img { width: 100% !important; height: 100% !important; object-fit: cover; }
body.muze-polish-live-cams .cbl-roomname {
	color: #fff !important;
	font: 800 15px/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	letter-spacing: 0 !important;
	text-shadow: none !important;
}
body.muze-polish-live-cams .cbl-roommeta {
	margin-top: 4px;
	color: var(--muze-muted) !important;
	font: 400 11px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	text-shadow: none !important;
}
body.muze-polish-live-cams .cbaop-gallery {
	width: 100%;
	margin-top: 28px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.muze-polish-live-cams .cbaop-gallery-head {
	padding: 18px 20px;
	background: linear-gradient(120deg, #171417, #241820);
	border: 1px solid var(--muze-border);
	border-left: 4px solid var(--muze-pink);
	border-radius: 12px;
}
body.muze-polish-live-cams .cbaop-empty {
	padding: 26px 18px;
	background: #151315;
	border: 1px dashed rgba(255, 53, 101, .55);
	border-radius: 12px;
}

/* Keep the store hero visually identical while preserving one page-level H1. */
.muze-merch__hero h2.muze-merch__hero-title {
	max-width: 760px;
	margin: 0;
	color: #fff;
	font-size: clamp(2.05rem, 5vw, 4.9rem);
	font-weight: 900;
	letter-spacing: -.045em;
	line-height: .98;
	text-wrap: balance;
}
.muze-merch__hero h2.muze-merch__hero-title em {
	background: linear-gradient(90deg, #ff6d98 0%, var(--muze-pink) 42%, #d780ff 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-style: normal;
}

/*
 * Remove only the theme's Random videos widget everywhere. This does not
 * touch creator-owned profiles, galleries, locks, entitlements, or paid media.
 */
.widget.widget_videos_block { display: none !important; }
body.muze-polish-random-sidebar-cleared #primary,
body.muze-polish-random-sidebar-cleared #main.with-sidebar-right {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
}
body.muze-polish-random-sidebar-cleared #secondary,
body.muze-polish-random-sidebar-cleared #sidebar,
body.muze-polish-random-sidebar-cleared .widget-area.with-sidebar-right { display: none !important; }

/* Account, checkout, and policy pages remain focused even with other widgets. */
body.muze-polish-focus-page #primary,
body.muze-polish-focus-page #main.with-sidebar-right {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
}
body.muze-polish-focus-page #secondary,
body.muze-polish-focus-page #sidebar,
body.muze-polish-focus-page .sidebar {
	display: none !important;
}

@media (max-width: 1040px) {
	.muze-studio-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.muze-studio-shortcuts__intro { grid-column: 1 / -1; }
	body.muze-polish-live-cams .cbl-roomsgrid { grid-template-columns: repeat(4, minmax(140px, 1fr)) !important; }
}
@media (max-width: 720px) {
	.muze-studio-shortcuts { grid-template-columns: 1fr; margin-top: 16px; }
	.muze-studio-shortcuts__intro { grid-column: auto; }
	body.muze-polish-live-cams .cbl-wrap { padding: 10px !important; }
	body.muze-polish-live-cams .cbl-roomsgrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
	body.muze-polish-live-cams .cbl-roomcard { min-height: 160px; padding: 14px 8px !important; }
	body.muze-polish-live-cams .cbl-roomava { width: 56px !important; height: 56px !important; }
}
@media (max-width: 340px) {
	body.muze-polish-live-cams .cbl-roomsgrid { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
	.site-footer img.grayscale[alt="AMUZEME"][src*="MUZE-GIRL-LAY-LOGO.png"] {
		animation: none;
	}
	@supports selector(a:has(> img)) {
		.site-footer a:has(> img.grayscale[alt="AMUZEME"][src*="MUZE-GIRL-LAY-LOGO.png"])::before,
		.site-footer a:has(> img.grayscale[alt="AMUZEME"][src*="MUZE-GIRL-LAY-LOGO.png"])::after {
			animation: none;
		}
		.site-footer a:has(> img.grayscale[alt="AMUZEME"][src*="MUZE-GIRL-LAY-LOGO.png"])::before {
			opacity: .58;
			transform: translateY(-2px) scale(.9);
		}
		.site-footer a:has(> img.grayscale[alt="AMUZEME"][src*="MUZE-GIRL-LAY-LOGO.png"])::after {
			opacity: .32;
			transform: translateY(-4px) scale(.86);
		}
	}
	.muze-studio-shortcuts a,
	body.muze-polish-live-cams .cbl-roomcard { transition: none; }
}
