@charset "utf-8";

/* ============================================================
   msub18 — 오디오 에세이형
   타이머 시뮬레이션 + 단락 하이라이트 + 스티키 플레이어
   ============================================================ */

/* ============================================================
   S1: 히어로
   ============================================================ */
.ae-hero {
	position: relative;
	height: 100vh;
	min-height: 600px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.ae-hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform: scale(1.06);
	will-change: transform;
}

.ae-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(7, 11, 18, 0.55) 0%, rgba(7, 11, 18, 0.35) 40%, rgba(7, 11, 18, 0.88) 100%);
}

.ae-hero-inner {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 0 40px;
	color: #fff;
}

.ae-label {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-weight: 500;
	color: rgba(255, 255, 255, 0.55);
	text-transform: uppercase;
	margin-bottom: 28px;
}

.ae-hero-tit {
	font-family: var(--font-sub-title);
	font-size: clamp(44px, calc(20px + 5vw), 96px);
	font-weight: 900;
	color: #fff;
	margin-bottom: 20px;
	line-height: 1.3;
}

.ae-hero-desc {
	font-size: clamp(16px, calc(10px + 1vw), 22px);
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 16px;
}

.ae-hero-meta {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: rgba(255, 255, 255, 0.4);
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-bottom: 52px;
}

.ae-dot {
	opacity: 0.4;
}

/* 히어로 재생 버튼 */
.ae-play-big {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	border: 1.5px solid rgba(255, 255, 255, 0.35);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
	backdrop-filter: blur(10px);
	transition:
		background 0.25s ease,
		transform 0.2s ease;
}

.ae-play-big:hover {
	background: rgba(255, 255, 255, 0.22);
	transform: scale(1.08);
}

/* 스크롤 인디케이터 */
.ae-scroll-ind {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
}

.ae-scroll-ind span {
	display: block;
	width: 1px;
	height: 56px;
	background: rgba(255, 255, 255, 0.25);
	position: relative;
	overflow: hidden;
}

.ae-scroll-ind span::after {
	content: "";
	position: absolute;
	top: -100%;
	left: 0;
	width: 100%;
	height: 100%;
	background: #fff;
	animation: aeScrollLine 1.6s ease infinite;
}

@keyframes aeScrollLine {
	0% {
		top: -100%;
	}
	100% {
		top: 100%;
	}
}

/* ============================================================
   S2: 스티키 플레이어
   ============================================================ */
.ae-player {
	position: sticky;
	top: 90px;
	z-index: 200;
	background: rgba(7, 11, 18, 0.9);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	transition: top 0.25s ease;
}

.ae-player-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 14px 60px;
	display: flex;
	align-items: center;
	gap: 18px;
}

/* 재생/일시정지 버튼 */
.ae-btn-play {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.ae-btn-play:hover {
	background: rgba(255, 255, 255, 0.2);
}

/* 시간 표시 */
.ae-cur,
.ae-dur {
	flex-shrink: 0;
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-variant-numeric: tabular-nums;
	color: rgba(255, 255, 255, 0.5);
}

/* 프로그레스 바 */
.ae-bar-wrap {
	flex: 1;
	cursor: pointer;
	padding: 10px 0;
}

.ae-bar-track {
	height: 3px;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 2px;
	position: relative;
}

.ae-bar-fill {
	height: 100%;
	width: 0%;
	background: var(--color-primary);
	border-radius: 2px;
	transition: width 0.1s linear;
}

/* 챕터 마커 도트 */
.ae-ch-dot {
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
	border: 1.5px solid rgba(7, 11, 18, 0.9);
}

/* 웨이브폼 */
.ae-wave {
	display: flex;
	gap: 2px;
	align-items: center;
	height: 22px;
	flex-shrink: 0;
}

.ae-wave-bar {
	width: 2px;
	background: rgba(255, 255, 255, 0.25);
	border-radius: 1px;
	height: var(--h, 40%);
	transform-origin: center;
	animation: aeWave var(--dur, 0.5s) ease-in-out infinite alternate var(--delay, 0s);
	animation-play-state: paused;
}

.ae-player.is-playing .ae-wave-bar {
	background: var(--color-primary);
	opacity: 0.7;
	animation-play-state: running;
}

@keyframes aeWave {
	from {
		transform: scaleY(0.25);
	}
	to {
		transform: scaleY(1);
	}
}

/* 챕터명 */
.ae-ch-name {
	flex-shrink: 0;
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-weight: 600;
	color: rgba(255, 255, 255, 0.45);
	text-transform: uppercase;
	min-width: 60px;
	text-align: right;
}

/* ============================================================
   S3: 에세이 본문
   ============================================================ */
.ae-content {
	background: var(--color-bg-main);
	padding: 80px 0 160px;
}

.ae-wrap {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 60px;
}

/* 챕터 블록 */
.ae-chapter {
	margin-bottom: 72px;
}

.ae-chapter:last-child {
	margin-bottom: 0;
}

/* 챕터 헤더 */
.ae-ch-head {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 28px 0;
	border-top: 2px solid var(--color-text-main);
	border-bottom: 1px solid var(--color-border);
	margin-bottom: 0;
}

.ae-ch-num {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-weight: 700;
	color: var(--color-primary);
	font-variant-numeric: tabular-nums;
}

.ae-ch-tit {
	font-family: var(--font-sub-title);
	font-size: clamp(22px, calc(14px + 1.2vw), 34px);
	font-weight: 800;
	color: var(--color-text-main);
}

/* 단락 — 타임스탬프 + 텍스트 2열 */
.ae-para {
	display: grid;
	grid-template-columns: 52px 1fr;
	gap: 0 24px;
	padding: 20px 0;
	border-bottom: 1px solid var(--color-border);
	cursor: pointer;
	transition: background 0.2s ease;
}

.ae-para:last-child {
	border-bottom: none;
}

.ae-para:hover {
	background: rgba(0, 0, 0, 0.025);
}

/* 타임스탬프 */
.ae-para-ts {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	color: var(--color-text-muted);
	padding-top: 3px;
	transition: color 0.3s ease;
}

/* 본문 텍스트 */
.ae-para-body {
	font-size: clamp(16px, calc(10px + 1.1vw), 22px);
	color: var(--color-text-muted);
	padding-left: 16px;
	border-left: 2px solid transparent;
	transition:
		color 0.4s ease,
		border-color 0.3s ease;
}

/* 완료된 단락 */
.ae-para.is-done .ae-para-body {
	color: var(--color-text-main);
}

/* 활성 단락 */
.ae-para.is-active .ae-para-ts {
	color: var(--color-primary);
}

.ae-para.is-active .ae-para-body {
	color: var(--color-text-main);
	border-left-color: var(--color-primary);
}

/* ============================================================
   반응형 — 999px (태블릿)
   ============================================================ */
@media (max-width: 999px) {
	.ae-player {
		top: 70px;
	}
	.ae-player-inner {
		padding: 14px 40px;
		gap: 14px;
	}
	.ae-wave {
		display: none;
	}
	.ae-wrap {
		padding: 0 40px;
	}
}

/* ============================================================
   반응형 — 768px (모바일)
   ============================================================ */
@media (max-width: 768px) {
	.ae-player-inner {
		padding: 12px 24px;
		gap: 12px;
	}
	.ae-ch-name {
		display: none;
	}
	.ae-wrap {
		padding: 0 24px;
	}
	.ae-content {
		padding: 40px 0 60px;
	}
	.ae-ch-head {
		padding: 16px 0;
	}
	.ae-para {
		padding: 12px 0;
	}
	.ae-chapter {
		margin-bottom: 56px;
	}
}

/* ============================================================
   반응형 — 499px (소형 폰)
   ============================================================ */
@media (max-width: 499px) {
	.ae-player-inner {
		padding: 10px 20px;
		gap: 10px;
	}
	.ae-wrap {
		padding: 0 20px;
	}
	.ae-content {
		padding: 32px 0 60px;
	}
	/* 타임스탬프 컬럼 축소 — 텍스트 여백 확보 */
	.ae-para {
		grid-template-columns: 40px 1fr;
		gap: 0 14px;
	}
	.ae-para-body {
		padding-left: 10px;
	}
}
