/*
Theme Name: MySoundNew
Theme Description: Dark, modern theme for MySoundMix. Keeps the ClearWave tone player, Polylang languages and Rank Math schema working.
Version: 1.1.0
Text Domain: mysoundnew
Requires at least: 6.4
Requires PHP: 8.0
*/

:root {
	--bg: #050d1c;
	--surf: #0a1628;
	--surf2: #0f1e38;
	--line: #162844;
	--accent: #1a6cff;
	--accent-hover: #0a5ae8;
	--accent2: #00cdb8;
	--fg: #ebf2ff;
	--fg2: #7a96bc;
	--fg3: #364e6e;
	--r: 12px;
	--r-lg: 18px;
	--header-bg: rgba(5, 13, 28, 0.88);
	color-scheme: dark;
}

:root[data-theme="light"] {
	--bg: #f6f8fc;
	--surf: #ffffff;
	--surf2: #eef2f9;
	--line: #dbe3f0;
	--accent: #1a6cff;
	--accent-hover: #0a5ae8;
	--accent2: #00a08c;
	--fg: #0b1528;
	--fg2: #4a5b78;
	--fg3: #8a9ab3;
	--header-bg: rgba(246, 248, 252, 0.9);
	--shadow: 0 8px 24px rgba(11, 21, 40, 0.08);
	color-scheme: light;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 90px;
	-webkit-text-size-adjust: 100%;
}

body {
	background: var(--bg);
	color: var(--fg);
	font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	cursor: pointer;
	font-family: inherit;
}

:focus-visible {
	outline: 3px solid var(--accent2);
	outline-offset: 3px;
	border-radius: 6px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	background: var(--accent);
	color: #fff;
	padding: 8px 14px;
	border-radius: 8px;
	z-index: 200;
}

.skip-link:focus {
	top: 12px;
}

.display {
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.05;
	text-wrap: balance;
}

.label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fg2);
}

.wrap {
	max-width: 1140px;
	margin: 0 auto;
	padding-left: max(24px, env(safe-area-inset-left, 0px));
	padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* ── Header ── */
.site-header {
	position: fixed;
	top: env(safe-area-inset-top, 0px);
	inset-inline: 0;
	z-index: 100;
	background: var(--header-bg);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border-bottom: 1px solid var(--line);
}

.header-tools .btn,
.lang-menu__toggle {
	height: 38px;
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-block: 18px;
	padding-left: max(24px, env(safe-area-inset-left, 0px));
	padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.site-brand {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	font-weight: 800;
	font-size: 1.15rem;
	letter-spacing: -0.02em;
}

.site-brand__icon {
	width: 28px;
	height: 28px;
	background: var(--accent);
	border-radius: 7px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.site-brand__icon svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: #fff;
	stroke-width: 2.2;
	stroke-linecap: round;
}

.primary-nav {
	margin-left: auto;
}

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

.primary-nav a {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--fg2);
	transition: color 0.2s;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
	color: var(--fg);
}

.header-tools {
	display: flex;
	align-items: center;
	gap: 10px;
}

.language-bar__nav {
	display: flex;
	align-items: center;
	gap: 2px;
	font-size: 0.8rem;
	font-weight: 600;
}

.language-bar__link {
	padding: 0.25rem 0.5rem;
	border-radius: 50px;
	color: var(--fg2);
	white-space: nowrap;
	transition: all 0.18s;
}

.language-bar__link:hover {
	color: var(--fg);
	background: var(--surf2);
}

.language-bar__link.is-active {
	color: var(--accent);
	background: rgba(26, 108, 255, 0.15);
	border: 1px solid rgba(26, 108, 255, 0.3);
}

.language-bar__sep {
	display: none;
}

.color-scheme-toggle {
	display: none;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0.55rem 1.2rem;
	border-radius: 50px;
	font-weight: 600;
	font-size: 0.875rem;
	border: 1px solid transparent;
	white-space: nowrap;
	transition: all 0.2s;
}

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

.btn--accent:hover {
	background: var(--accent-hover);
	transform: translateY(-1px);
	box-shadow: 0 4px 18px rgba(26, 108, 255, 0.4);
	text-decoration: none;
}

.btn--ghost {
	background: transparent;
	color: var(--fg2);
	border-color: var(--line);
}

.btn--ghost:hover {
	color: var(--fg);
	border-color: var(--fg2);
	text-decoration: none;
}

.btn--lg {
	padding: 0.75rem 1.8rem;
	font-size: 1rem;
}

.btn svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

@media (max-width: 1020px) {
	.primary-nav {
		display: none;
	}
}

body.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 1200px) {
	.header-tools .btn--ghost {
		display: none;
	}
}

@media (max-width: 680px) {
	.header-tools .btn--accent {
		display: none;
	}
}

main {
	display: block;
}

/* ── Hero ── */
.hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: calc(65px + env(safe-area-inset-top, 0px));
	overflow: hidden;
}

#wave-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0.55;
	pointer-events: none;
}

.hero__content {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: center;
	padding-block: 80px 60px;
}

@media (max-width: 860px) {
	.hero__content {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0.35rem 0.9rem;
	background: rgba(26, 108, 255, 0.1);
	border: 1px solid rgba(26, 108, 255, 0.2);
	border-radius: 50px;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--accent);
	letter-spacing: 0.04em;
	margin-bottom: 24px;
}

.pulse {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
	animation: pulse-ring 1.8s ease-in-out infinite;
}

@keyframes pulse-ring {
	0%,
	100% {
		box-shadow: 0 0 0 0 rgba(26, 108, 255, 0.6);
	}
	50% {
		box-shadow: 0 0 0 5px rgba(26, 108, 255, 0);
	}
}

.hero h1 {
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	font-weight: 800;
	font-size: clamp(2.8rem, 5vw, 4.8rem);
	letter-spacing: -0.04em;
	line-height: 1.05;
	margin-bottom: 20px;
	text-wrap: balance;
}

.hero h1 em {
	font-style: normal;
	color: var(--accent2);
}

.hero__sub {
	font-size: 1.1rem;
	color: var(--fg2);
	max-width: 440px;
	margin-bottom: 36px;
	line-height: 1.7;
}

.button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hero__meta {
	display: flex;
	gap: 28px;
	margin-top: 40px;
	flex-wrap: wrap;
}

.meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.82rem;
	color: var(--fg2);
}

.meta-item svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	opacity: 0.7;
}

/* ── Player card wraps the existing ClearWave tool ── */
.player-card {
	position: relative;
	background: var(--surf);
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 28px;
	overflow: hidden;
	min-width: 0;
}

.player-card::before {
	content: "";
	position: absolute;
	top: -60px;
	right: -60px;
	width: 200px;
	height: 200px;
	background: radial-gradient(circle, rgba(0, 205, 184, 0.15), transparent 70%);
	pointer-events: none;
}

.player-card__label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	position: relative;
}

.player-card .tool-embed {
	position: relative;
	min-width: 0;
	overflow-x: auto;
}

.warn-banner {
	margin-top: 16px;
	padding: 0.6rem 0.9rem;
	background: rgba(255, 200, 50, 0.07);
	border: 1px solid rgba(255, 200, 50, 0.2);
	border-radius: 8px;
	font-size: 0.78rem;
	color: rgba(255, 220, 100, 0.8);
	line-height: 1.5;
}

/* ── Sections ── */
.section {
	padding-block: 96px;
}

.section--surface {
	background: var(--surf);
	border-top: 1px solid var(--line);
}

.section__head {
	text-align: center;
	margin-bottom: 56px;
}

.section__head h2 {
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	font-weight: 800;
	font-size: clamp(1.8rem, 3vw, 2.8rem);
	letter-spacing: -0.03em;
	margin-top: 10px;
	text-wrap: balance;
}

.section__head p {
	color: var(--fg2);
	max-width: 520px;
	margin: 14px auto 0;
	font-size: 1.05rem;
	line-height: 1.7;
}

.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

@media (max-width: 680px) {
	.steps {
		grid-template-columns: 1fr;
	}
}

.step {
	background: var(--surf);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: 28px;
	position: relative;
	overflow: hidden;
	min-width: 0;
	transition: border-color 0.2s, transform 0.2s;
}

.step:hover {
	border-color: rgba(26, 108, 255, 0.3);
	transform: translateY(-2px);
}

.step__num {
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--fg3);
	margin-bottom: 18px;
}

.step__icon {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: rgba(26, 108, 255, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
}

.step__icon svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: var(--accent);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.step h3 {
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	font-weight: 700;
	font-size: 1.1rem;
	margin-bottom: 8px;
	letter-spacing: -0.02em;
}

.step p {
	color: var(--fg2);
	font-size: 0.9rem;
	line-height: 1.65;
}

/* ── Stats ── */
.stat-strip {
	background: var(--surf);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	padding-block: 32px;
}

.stat-strip__inner {
	display: flex;
	justify-content: space-around;
	gap: 16px;
	flex-wrap: wrap;
	padding-left: max(24px, env(safe-area-inset-left, 0px));
	padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.stat {
	text-align: center;
	flex: 1;
	min-width: 120px;
}

.stat__val {
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
	margin-bottom: 4px;
}

.stat__val span {
	color: var(--accent2);
}

.stat__desc {
	font-size: 0.8rem;
	color: var(--fg2);
}

/* ── Guides ── */
.guide-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

.guide-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: var(--surf);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 24px;
	min-width: 0;
	transition: border-color 0.2s, transform 0.2s;
}

.guide-card:hover {
	border-color: rgba(26, 108, 255, 0.3);
	transform: translateY(-3px);
}

.guide-card__tag {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent2);
}

.guide-card__title {
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: -0.02em;
	line-height: 1.4;
	text-wrap: balance;
}

.guide-card__excerpt {
	font-size: 0.85rem;
	color: var(--fg2);
	line-height: 1.6;
	flex: 1;
}

.guide-card__read {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--accent);
	margin-top: 4px;
}

/* ── FAQ ── */
.faq-list {
	max-width: 720px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.faq-item {
	background: var(--surf);
	border: 1px solid var(--line);
	border-radius: var(--r);
	overflow: hidden;
}

.faq-item summary {
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-item summary:hover {
	background: var(--surf2);
}

.faq-item summary::after {
	content: "";
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--fg2);
	border-bottom: 2px solid var(--fg2);
	transform: rotate(45deg);
	transition: transform 0.25s;
	margin-right: 6px;
}

.faq-item[open] summary::after {
	transform: rotate(225deg);
	border-color: var(--accent);
}

.faq-item p {
	padding: 0 20px 18px;
	font-size: 0.9rem;
	color: var(--fg2);
	line-height: 1.7;
	max-width: none;
}

/* ── CTA band ── */
.cta-band {
	padding-block: 80px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.cta-band::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(26, 108, 255, 0.1), transparent);
	pointer-events: none;
}

.cta-band .wrap {
	position: relative;
	z-index: 1;
}

.cta-band h2 {
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	font-weight: 800;
	font-size: clamp(1.8rem, 3.5vw, 3rem);
	letter-spacing: -0.04em;
	margin-bottom: 16px;
	text-wrap: balance;
}

.cta-band p {
	font-size: 1.05rem;
	color: var(--fg2);
	margin: 0 auto 32px;
	max-width: 420px;
}

/* ── Footer ── */
.site-footer {
	background: var(--surf);
	border-top: 1px solid var(--line);
	padding-block: 48px 32px;
	padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
}

.site-footer__inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
	margin-bottom: 40px;
}

@media (max-width: 640px) {
	.site-footer__inner {
		grid-template-columns: 1fr;
	}
}

.site-footer__brand p {
	font-size: 0.9rem;
	color: var(--fg2);
	max-width: 260px;
	line-height: 1.7;
	margin-top: 12px;
}

.site-footer h4 {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fg3);
	margin-bottom: 14px;
}

.site-footer ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.site-footer a {
	font-size: 0.88rem;
	color: var(--fg2);
	transition: color 0.15s;
}

.site-footer a:hover {
	color: var(--accent2);
}

.site-footer__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
	font-size: 0.8rem;
	color: var(--fg3);
}

/* ── Inner pages (guides, pages, 404) ── */
.entry {
	max-width: 720px;
	margin-inline: auto;
	padding-top: calc(65px + 56px + env(safe-area-inset-top, 0px));
	padding-bottom: 96px;
}

.entry__title {
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	font-weight: 800;
	font-size: clamp(2rem, 4vw, 3rem);
	letter-spacing: -0.03em;
	line-height: 1.1;
	margin-bottom: 0.5em;
	text-wrap: balance;
}

.entry__meta {
	color: var(--fg2);
	font-size: 0.9rem;
	margin-bottom: 32px;
}

.entry-content > * + * {
	margin-top: 1.2em;
}

.entry-content h2 {
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	margin-top: 1.6em;
}

.entry-content a {
	color: var(--accent2);
	text-decoration: underline;
}

.entry-content img {
	border-radius: var(--r);
}

.entry-content blockquote {
	border-left: 3px solid var(--accent);
	padding-left: 18px;
	color: var(--fg2);
}

.entry-content pre,
.entry-content code {
	background: var(--surf2);
	border-radius: 8px;
	font-size: 0.92em;
}

.entry-content pre {
	padding: 16px;
	overflow-x: auto;
}

.entry-content table {
	display: block;
	overflow-x: auto;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--line);
	padding: 8px 12px;
	text-align: left;
}

.tool-embed {
	min-width: 0;
	overflow-x: auto;
}

.not-found {
	text-align: center;
	padding-block: 160px 96px;
}

.pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 40px;
}

.pagination a,
.pagination span {
	padding: 8px 14px;
	border-radius: 50px;
	border: 1px solid var(--line);
	color: var(--fg);
	font-weight: 600;
	font-size: 0.9rem;
}

.pagination .current {
	background: var(--accent);
	color: #fff;
	border-color: transparent;
}

.lang-menu {
	position: relative;
}

.lang-menu__toggle {
	list-style: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0.45rem 0.8rem;
	border: 1px solid var(--line);
	border-radius: 50px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--fg);
	cursor: pointer;
	user-select: none;
}

.lang-menu__toggle::-webkit-details-marker {
	display: none;
}

.lang-menu__toggle:hover {
	border-color: var(--fg2);
}

.lang-menu__caret {
	width: 6px;
	height: 6px;
	border-right: 1.5px solid var(--fg2);
	border-bottom: 1.5px solid var(--fg2);
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.2s;
}

.lang-menu[open] .lang-menu__caret {
	transform: rotate(225deg) translateY(-2px);
}

.lang-menu__list {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	min-width: 170px;
	list-style: none;
	margin: 0;
	padding: 6px;
	background: var(--surf);
	border: 1px solid var(--line);
	border-radius: var(--r);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
	z-index: 110;
}

.lang-menu__list a {
	display: block;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--fg2);
}

.lang-menu__list a:hover {
	background: var(--surf2);
	color: var(--fg);
	text-decoration: none;
}

.lang-menu__list a[aria-current="true"] {
	color: var(--accent);
	background: rgba(26, 108, 255, 0.12);
}

@media (max-width: 680px) {
	.section {
		padding-block: 64px;
	}

	.player-card {
		padding: 16px;
		border-radius: 16px;
	}

	.hero__content {
		padding-block: 48px 40px;
	}

	.cta-band {
		padding-block: 56px;
	}
}

.site-header__inner {
	height: 68px;
	padding-block: 0;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
}

.site-header .site-brand {
	justify-self: start;
}

.site-header .header-tools {
	justify-self: end;
}

.site-brand {
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.primary-nav {
	margin: 0;
}

.primary-nav ul {
	gap: 2px;
	padding: 4px;
	background: var(--surf);
	border: 1px solid var(--line);
	border-radius: 999px;
}

.primary-nav a {
	display: block;
	padding: 7px 14px;
	border-radius: 999px;
	font-size: 0.85rem;
	transition: color 0.2s, background 0.2s;
}

.primary-nav a:hover {
	color: var(--fg);
	background: var(--surf2);
	text-decoration: none;
}

.primary-nav .current-menu-item > a {
	color: var(--fg);
	background: var(--surf2);
}

.header-tools {
	gap: 10px;
}

.cleaner {
	position: relative;
}

.cleaner__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.cleaner__status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--accent2);
}

.cleaner__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent2);
}

.cleaner.is-running .cleaner__dot {
	animation: pulse-ring 1s ease-in-out infinite;
}

.cleaner__readout {
	margin-top: 28px;
}

.cleaner__hz {
	font-weight: 800;
	font-size: clamp(4rem, 9vw, 5.5rem);
	letter-spacing: -0.04em;
	line-height: 1;
	color: var(--fg);
}

.cleaner__note {
	margin-top: 8px;
	font-size: 1.05rem;
	color: var(--fg2);
}

.cleaner__wave {
	display: flex;
	align-items: center;
	gap: 3px;
	height: 56px;
	margin-top: 26px;
}

.cleaner__wave span {
	flex: 1;
	height: 3px;
	border-radius: 2px;
	background: var(--fg3);
	transform-origin: center;
}

.cleaner.is-running .cleaner__wave span {
	height: 36px;
	background: var(--accent);
	animation: cleaner-bar 0.9s ease-in-out infinite alternate;
}

.cleaner.is-running .cleaner__wave span:nth-child(3n) {
	animation-delay: -0.3s;
}

.cleaner.is-running .cleaner__wave span:nth-child(3n + 1) {
	animation-delay: -0.6s;
}

@keyframes cleaner-bar {
	from { transform: scaleY(0.25); }
	to { transform: scaleY(1); }
}

.cleaner__progress {
	margin-top: 8px;
	font-size: 0.8rem;
	color: var(--fg3);
	text-align: right;
}

.cleaner__modes {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-top: 18px;
}

.cleaner__mode {
	padding: 14px 6px;
	font-size: 0.9rem !important;
	border-radius: 12px;
	border: 1px solid transparent;
	background: var(--surf2);
	color: var(--fg2);
	font: inherit;
	font-weight: 600;
	transition: all 0.2s;
}

.cleaner__mode.is-active {
	background: rgba(26, 108, 255, 0.14);
	border-color: rgba(26, 108, 255, 0.45);
	color: var(--accent);
}

.cleaner__row {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 22px;
}

.cleaner__play {
	position: relative;
	flex-shrink: 0;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: 0;
	background: var(--accent);
	color: #fff;
	display: grid;
	place-items: center;
	transition: transform 0.2s, box-shadow 0.2s;
}

.cleaner__play:hover {
	transform: scale(1.04);
	box-shadow: 0 0 0 8px rgba(26, 108, 255, 0.15);
}

.cleaner__icon {
	width: 22px;
	height: 22px;
	fill: #fff;
}

.cleaner__icon--stop {
	display: none;
}

.cleaner.is-running .cleaner__icon--play {
	display: none;
}

.cleaner.is-running .cleaner__icon--stop {
	display: block;
}

.cleaner__vol {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 0.85rem;
	color: var(--fg2);
}

.cleaner__vol-head {
	display: flex;
	justify-content: space-between;
}

.cleaner__vol input[type="range"] {
	width: 100%;
	height: 4px;
	appearance: none;
	-webkit-appearance: none;
	background: var(--line);
	border-radius: 2px;
	outline: none;
}

.cleaner__vol input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px rgba(26, 108, 255, 0.2);
	cursor: pointer;
}

.cleaner__vol input[type="range"]::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border: 0;
	border-radius: 50%;
	background: var(--accent);
}

.cleaner__extras {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
}

.cleaner__ghost {
	padding: 7px 12px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--fg2);
	font: inherit;
	font-size: 0.8rem;
	font-weight: 600;
}

.cleaner__ghost:hover {
	color: var(--fg);
	border-color: var(--fg2);
}

.cleaner__unsupported {
	margin-top: 10px;
	font-size: 0.8rem;
	color: var(--fg2);
}

.cleaner__unsupported[hidden] {
	display: none;
}

.cleaner__safety {
	margin-top: 20px;
	padding: 14px 16px;
	border-radius: 12px;
	background: rgba(255, 200, 50, 0.07);
	border: 1px solid rgba(255, 200, 50, 0.2);
	color: rgba(255, 220, 100, 0.85);
	font-size: 0.9rem;
	line-height: 1.55;
}

.hero__art {
	margin-top: 40px;
	max-width: 320px;
	opacity: 0.9;
}

.breadcrumbs {
	margin-bottom: 18px;
	font-size: 0.85rem;
	color: var(--fg2);
}

.breadcrumbs ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
}

.breadcrumbs li + li::before {
	content: "/";
	margin-right: 6px;
	color: var(--fg3);
}

.breadcrumbs a {
	color: var(--fg2);
}

.breadcrumbs a:hover {
	color: var(--fg);
}

.theme-toggle {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--fg2);
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s;
}

.theme-toggle:hover {
	color: var(--fg);
	border-color: var(--fg2);
}

.theme-toggle svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.theme-toggle__sun {
	display: none;
}

[data-theme="light"] .theme-toggle__moon {
	display: none;
}

[data-theme="light"] .theme-toggle__sun {
	display: block;
}

html[data-theme="light"] body.mysoundnew {
	background-color: var(--bg) !important;
	color: var(--fg) !important;
}

html[data-theme="light"] body.mysoundnew .site-header {
	background: var(--header-bg) !important;
	box-shadow: none;
}

html[data-theme="light"] body.mysoundnew a:not(.btn) {
	color: var(--accent);
}

html[data-theme="light"] body.mysoundnew .primary-nav a,
html[data-theme="light"] body.mysoundnew .site-brand {
	color: var(--fg2) !important;
}

html[data-theme="light"] body.mysoundnew .site-brand {
	color: var(--fg) !important;
}

html[data-theme="light"] body.mysoundnew a.btn--ghost {
	color: var(--fg) !important;
	border-color: var(--fg3) !important;
}

html[data-theme="light"] body.mysoundnew .site-footer a,
html[data-theme="light"] body.mysoundnew .language-bar__link {
	color: var(--fg2) !important;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.pulse {
		animation: none;
	}
}
