/**
 * Speach Before & After — frontend styles.
 * All rules are scoped under .speach-ba (no :root variables).
 *
 * @package Speach_Before_After
 */

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

.speach-ba {
	--speach-ba-bg-page: #f8f9fa;
	--speach-ba-navy: #1a2b4c;
	--speach-ba-text: #374151;
	--speach-ba-text-muted: #6b7280;
	--speach-ba-text-caption: #9ca3af;
	--speach-ba-card-white: #ffffff;
	--speach-ba-border-sub: #e9ecef;
	--speach-ba-shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
	--speach-ba-tag-blue-bg: #eff6ff;
	--speach-ba-tag-blue-text: #1d4ed8;
	--speach-ba-before-bg: #fee2e2;
	--speach-ba-before-text: #b91c1c;
	--speach-ba-after-bg: #dcfce7;
	--speach-ba-after-text: #15803d;
	--speach-ba-wave-before: rgba(248, 113, 113, 0.55);
	--speach-ba-wave-after: rgba(74, 222, 128, 0.6);
	--speach-ba-improve-bg: #f3f4f6;
	--speach-ba-radius-card: 20px;
	--speach-ba-radius-inner: 8px;
	--speach-ba-font-sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;

	font-family: var(--speach-ba-font-sans);
	background: var(--speach-ba-bg-page);
	padding: 100px 0 88px;
	color: var(--speach-ba-text);
	line-height: 1.6;
	margin: 0;
	max-width: none;
	width: 100%;
	position: relative;
}

.speach-ba__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.speach-ba__header {
	text-align: center;
	margin-bottom: 52px;
	margin-top: 0;
	padding: 0;
	border: none;
	background: transparent;
}

.speach-ba__kicker {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 0 0 14px;
	padding: 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--speach-ba-text-muted);
	border: none;
	background: transparent;
}

.speach-ba__kicker::before,
.speach-ba__kicker::after {
	content: "";
	width: 36px;
	height: 1px;
	background: #cbd5e1;
	flex-shrink: 0;
}

.speach-ba h2.speach-ba__title {
	font-family: var(--speach-ba-font-sans);
	font-size: 36px;
	font-weight: 700;
	color: var(--speach-ba-navy);
	letter-spacing: -0.02em;
	line-height: 1.35;
	margin: 0 0 16px;
	padding: 0;
	border: none;
	text-align: center;
	background: transparent;
	max-width: none;
}

.speach-ba p.speach-ba__lead {
	font-size: 16px;
	font-weight: 400;
	color: var(--speach-ba-text-muted);
	max-width: 540px;
	margin: 0 auto;
	padding: 0;
	line-height: 1.65;
	text-align: center;
	border: none;
	background: transparent;
}

.speach-ba__cards-row {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 0;
	align-items: stretch;
	margin-bottom: 40px;
}

.speach-ba__divider {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 48px;
	flex-shrink: 0;
	align-self: center;
	padding: 0 4px;
}

.speach-ba__divider-line {
	width: 1px;
	flex: 1;
	min-height: 48px;
	border-left: 1px dashed #d1d5db;
	background: none;
}

.speach-ba__divider-line--short {
	min-height: 40px;
}

.speach-ba__mic-wrap {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 10px 0;
}

.speach-ba__mic-wrap img {
	width: 30px;
	height: 30px;
	opacity: 0.4;
	object-fit: contain;
	margin: 0;
	padding: 0;
	border: none;
	vertical-align: middle;
	max-width: none;
	display: block;
}

.speach-ba article.speach-ba__card {
	background: var(--speach-ba-card-white);
	border-radius: var(--speach-ba-radius-card);
	box-shadow: var(--speach-ba-shadow-card);
	padding: 40px 36px 32px;
	min-width: 0;
	margin: 0;
	border: none;
}

.speach-ba__profile {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 22px;
}

.speach-ba__avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 1px solid #e5e7eb;
	background: #fafafa;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.speach-ba__avatar img {
	width: 32px;
	height: auto;
	opacity: 0.55;
	margin: 0;
	padding: 0;
	border: none;
	max-width: 100%;
	vertical-align: middle;
}

.speach-ba__profile-text {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-start;
	min-width: 0;
}

.speach-ba__profile-name {
	font-size: 16px;
	font-weight: 700;
	color: #1f2937;
	line-height: 1.3;
	margin: 0;
	padding: 0;
}

.speach-ba__course-tag {
	font-size: 12px;
	font-weight: 600;
	color: var(--speach-ba-tag-blue-text);
	background: var(--speach-ba-tag-blue-bg);
	padding: 5px 12px;
	border-radius: 999px;
	letter-spacing: -0.01em;
	margin: 0;
	border: none;
	display: inline-block;
}

.speach-ba__compare {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 20px;
}

.speach-ba__clip {
	border: 1px solid var(--speach-ba-border-sub);
	border-radius: var(--speach-ba-radius-inner);
	padding: 16px 14px 14px;
	background: #fff;
	margin: 0;
}

.speach-ba__label-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 8px;
	margin-bottom: 10px;
}

.speach-ba__pill {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 4px 9px;
	border-radius: 6px;
	margin: 0;
	border: none;
	display: inline-block;
}

.speach-ba__pill--before {
	background: var(--speach-ba-before-bg);
	color: var(--speach-ba-before-text);
}

.speach-ba__pill--after {
	background: var(--speach-ba-after-bg);
	color: var(--speach-ba-after-text);
}

.speach-ba__label-hang {
	font-size: 12px;
	font-weight: 500;
	color: var(--speach-ba-text-muted);
	margin: 0;
}

.speach-ba__wave {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2px;
	height: 40px;
	margin-bottom: 12px;
	padding: 0 2px;
}

.speach-ba__wave span {
	flex: 1;
	min-width: 3px;
	border-radius: 2px;
	background: currentColor;
}

.speach-ba__wave--before {
	color: var(--speach-ba-wave-before);
}

.speach-ba__wave--after {
	color: var(--speach-ba-wave-after);
}

.speach-ba__player {
	display: flex;
	align-items: center;
	gap: 10px;
}

.speach-ba button.speach-ba__play {
	-webkit-appearance: none;
	appearance: none;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: var(--speach-ba-navy);
	color: #fff;
	cursor: pointer;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, transform 0.1s ease;
	padding: 0 0 0 3px;
	margin: 0;
	font: inherit;
	line-height: 1;
	min-height: 0;
	box-shadow: none;
	text-shadow: none;
	letter-spacing: normal;
}

.speach-ba button.speach-ba__play:hover {
	background: #152238;
	color: #fff;
}

.speach-ba button.speach-ba__play:active {
	transform: scale(0.97);
}

.speach-ba button.speach-ba__play.speach-ba__play--playing {
	background: #c53030;
	padding-left: 0;
}

.speach-ba__play svg {
	width: 15px;
	height: 15px;
	display: block;
}

.speach-ba__progress-wrap {
	flex: 1;
	min-width: 0;
}

.speach-ba__progress {
	width: 100%;
	height: 3px;
	background: #e8ecef;
	border-radius: 999px;
	cursor: pointer;
	position: relative;
	margin: 0 0 6px;
	padding: 0;
	border: none;
}

.speach-ba__progress-fill {
	height: 100%;
	border-radius: 999px;
	background: var(--speach-ba-navy);
	width: 0%;
	transition: width 0.08s linear;
}

.speach-ba__progress-thumb {
	position: absolute;
	top: 50%;
	width: 11px;
	height: 11px;
	background: var(--speach-ba-navy);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	pointer-events: none;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
	left: 0%;
	margin: 0;
	padding: 0;
	border: none;
}

.speach-ba__times {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	font-weight: 500;
	color: var(--speach-ba-text-muted);
	font-variant-numeric: tabular-nums;
	margin: 0;
	padding: 0;
}

.speach-ba__duration-foot {
	font-size: 11px;
	color: var(--speach-ba-text-caption);
	margin-top: 8px;
	text-align: left;
	margin-bottom: 0;
	padding: 0;
	border: none;
	background: transparent;
}

.speach-ba .speach-ba__duration-foot strong.speach-ba__dur {
	font-weight: 600;
	color: var(--speach-ba-text-muted);
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
}

.speach-ba__improve {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: var(--speach-ba-improve-bg);
	border-radius: var(--speach-ba-radius-inner);
	padding: 16px 18px;
	margin: 0;
	border: none;
}

.speach-ba__improve-ico {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--speach-ba-navy);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.speach-ba__improve-ico img {
	width: 22px;
	height: 22px;
	filter: brightness(0) invert(1);
	opacity: 0.95;
	margin: 0;
	padding: 0;
	border: none;
	max-width: 100%;
}

.speach-ba h4.speach-ba__improve-title {
	font-family: var(--speach-ba-font-sans);
	font-size: 14px;
	font-weight: 700;
	color: #1f2937;
	margin: 0 0 6px;
	padding: 0;
	border: none;
	background: transparent;
	line-height: 1.3;
}

.speach-ba p.speach-ba__improve-text {
	font-size: 13px;
	line-height: 1.65;
	color: #4b5563;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
}

.speach-ba p.speach-ba__footnote {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 11px;
	color: var(--speach-ba-text-caption);
	letter-spacing: -0.01em;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	text-align: center;
}

.speach-ba p.speach-ba__footnote img {
	width: 18px;
	height: 18px;
	opacity: 0.45;
	flex-shrink: 0;
	margin: 0;
	padding: 0;
	border: none;
	vertical-align: middle;
	display: block;
}

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

@media (max-width: 1024px) {
	.speach-ba__cards-row {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.speach-ba__divider {
		display: none;
	}

	.speach-ba__compare {
		grid-template-columns: 1fr;
	}

	.speach-ba h2.speach-ba__title {
		font-size: 28px;
	}

	.speach-ba {
		padding: 72px 0 64px;
	}
}
