@charset "utf-8";

/* ============================================================
   mcat14 — FM 채널 분류형
   모던 FM 스테이션 테마 + 좌우 분할 + 채널 전환 노이즈
   ============================================================ */

:root {
	--mc14-bg:     #ffffff;
	--mc14-red:    #e8002d;
	--mc14-ink:    #0a0a0a;
	--mc14-muted:  #888888;
	--mc14-rule:   #e8e8e8;
	--mc14-panel:  #f4f4f4;
	--mc14-track:  rgba(0, 0, 0, 0.1);
}

body {
	background: var(--mc14-bg);
}
body.dark {
	background: #0a0a0a;
}

body.page-light-header #header,
body.page-light-header #header.on,
body.page-light-header #header.act {
	background-color: var(--mc14-bg) !important;
}

/* ═══════════════════════════════════════════
   레이아웃 — 좌우 분할
   ═══════════════════════════════════════════ */
.mc14-layout {
	display: flex;
	min-height: 100vh;
	padding-top: 90px;
}

/* ── 좌: 채널 패널 ── */
.mc14-panel {
	width: 380px;
	flex-shrink: 0;
	min-height: calc(100vh - 90px);
	background: var(--mc14-panel);
	border-right: 1px solid var(--mc14-rule);
	display: flex;
	flex-direction: column;
	padding: 40px 40px 36px;
	gap: 24px;
	position: sticky;
	top: 90px;
	height: calc(100vh - 90px);
	overflow-y: auto;
}

.mc14-panel-hd {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.mc14-brand {
	font-size: clamp(14px, calc(8px + 0.8vw), 18px);
	font-weight: 700;
	color: var(--mc14-muted);
}
.mc14-live {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: clamp(12px, calc(6px + 0.6vw), 14px);
	font-weight: 700;
	color: var(--mc14-red);
}
.mc14-live-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--mc14-red);
	animation: mc14pulse 1.2s ease-in-out infinite;
}
@keyframes mc14pulse {
	0%, 100% { opacity: 1; }
	50%       { opacity: 0.15; }
}

.mc14-ch-display {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.mc14-ch-tag {
	font-size: clamp(14px, calc(8px + 0.8vw), 18px);
	font-weight: 700;
	color: var(--mc14-red);
	font-family: var(--font-mono, monospace);
}
.mc14-ch-label {
	font-size: clamp(28px, calc(12px + 2.8vw), 52px);
	font-weight: 900;
	color: var(--mc14-ink);
	transition: opacity 0.15s;
}

.mc14-wave {
	width: 100%;
	height: 36px;
	flex-shrink: 0;
}

/* 채널 버튼 목록 */
.mc14-ch-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
}
.mc14-ch-btn {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 16px;
	background: none;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-align: left;
	transition: background 0.15s;
}
.mc14-ch-btn:hover {
	background: rgba(0, 0, 0, 0.05);
}
.mc14-ch-btn--on {
	background: var(--mc14-ink) !important;
}
.mc14-btn-ch {
	font-size: clamp(12px, calc(6px + 0.7vw), 14px);
	font-weight: 700;
	font-family: var(--font-mono, monospace);
	color: var(--mc14-muted);
	min-width: 44px;
}
.mc14-ch-btn--on .mc14-btn-ch {
	color: var(--mc14-red);
}
.mc14-btn-cat {
	font-size: clamp(15px, calc(8px + 1vw), 18px);
	font-weight: 600;
	color: var(--mc14-ink);
}
.mc14-ch-btn--on .mc14-btn-cat {
	color: #fff;
}

/* 패널 하단 */
.mc14-panel-ft {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 16px;
	border-top: 1px solid var(--mc14-rule);
}
.mc14-ft-tag {
	font-size: clamp(12px, calc(5px + 0.8vw), 14px);
	color: var(--mc14-muted);
}
.mc14-ft-link {
	font-size: clamp(14px, calc(6px + 0.8vw), 18px);
	font-weight: 600;
	color: var(--mc14-red);
	text-decoration: none;
	transition: opacity 0.2s;
}
.mc14-ft-link:hover {
	opacity: 0.7;
}

/* ── 우: 콘텐츠 영역 ── */
.mc14-content {
	flex: 1;
	min-width: 0;
	padding: 60px 60px 80px;
}

/* 콘텐츠 헤더 (JS 렌더) */
.mc14-cnt-hd {
	padding-bottom: 32px;
	border-bottom: 2px solid var(--mc14-ink);
	margin-bottom: 40px;
}
.mc14-cnt-ch {
	font-size: clamp(14px, calc(8px + 0.8vw), 18px);
	font-weight: 700;
	color: var(--mc14-red);
	font-family: var(--font-mono, monospace);
	display: block;
	margin-bottom: 8px;
}
.mc14-cnt-tit {
	font-size: clamp(32px, calc(12px + 3.5vw), 64px);
	font-weight: 900;
	color: var(--mc14-ink);
}
.mc14-cnt-desc {
	font-size: clamp(15px, calc(6px + 1.1vw), 18px);
	color: var(--mc14-muted);
	margin-top: 14px;
	word-break: keep-all;
}

/* 기사 카드 그리드 (JS 렌더) */
.mc14-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0;
	border-top: 1px solid var(--mc14-rule);
	border-left: 1px solid var(--mc14-rule);
}
.mc14-card {
	border-right: 1px solid var(--mc14-rule);
	border-bottom: 1px solid var(--mc14-rule);
	overflow: hidden;
}
.mc14-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: background 0.2s;
}
.mc14-card-link:hover {
	background: rgba(0, 0, 0, 0.02);
}
.mc14-card-img {
	aspect-ratio: 3 / 2;
	overflow: hidden;
}
.mc14-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.mc14-card-link:hover .mc14-card-img img {
	transform: scale(1.04);
}
.mc14-card-body {
	padding: 20px 24px 24px;
}
.mc14-card-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}
.mc14-card-ch {
	font-size: clamp(12px, calc(5px + 0.8vw), 14px);
	font-weight: 700;
	color: var(--mc14-red);
	font-family: var(--font-mono, monospace);
}
.mc14-card-cat {
	font-size: clamp(12px, calc(5px + 0.8vw), 14px);
	color: var(--mc14-muted);
	padding: 2px 8px;
	border: 1px solid var(--mc14-rule);
	border-radius: 2px;
}
.mc14-card-tit {
	font-size: clamp(18px, calc(8px + 1.4vw), 24px);
	font-weight: 800;
	color: var(--mc14-ink);
	margin-bottom: 8px;
	word-break: keep-all;
}
.mc14-card-exc {
	font-size: clamp(15px, calc(6px + 1vw), 18px);
	color: var(--mc14-muted);
	word-break: keep-all;
}
.mc14-card-arr {
	display: block;
	margin-top: 16px;
	font-size: clamp(18px, calc(8px + 1vw), 22px);
	color: var(--mc14-red);
	opacity: 0;
	transition: opacity 0.2s, transform 0.2s;
	transform: translateX(-6px);
}
.mc14-card-link:hover .mc14-card-arr {
	opacity: 1;
	transform: translateX(0);
}

/* ── 노이즈 전환 오버레이 ── */
.mc14-noise {
	position: fixed;
	inset: 0;
	z-index: 400;
	pointer-events: none;
	opacity: 0;
}

/* ═══════════════════════════════════════════
   반응형 — 999px
   ═══════════════════════════════════════════ */
@media all and (max-width: 999px) {
	.mc14-layout { padding-top: 70px; }
	.mc14-panel {
		width: 300px;
		padding: 32px 28px 28px;
		top: 70px;
		height: calc(100vh - 70px);
		min-height: calc(100vh - 70px);
	}
	.mc14-content { padding: 44px 40px 60px; }
	.mc14-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   반응형 — 768px
   ═══════════════════════════════════════════ */
@media all and (max-width: 768px) {
	.mc14-layout {
		flex-direction: column;
		padding-top: 70px;
	}
	.mc14-panel {
		width: 100%;
		height: auto;
		min-height: unset;
		position: static;
		padding: 24px 20px 20px;
		gap: 16px;
		border-right: none;
		border-bottom: 1px solid var(--mc14-rule);
	}
	.mc14-ch-label { font-size: clamp(22px, calc(10px + 2.5vw), 36px); }
	.mc14-wave { height: 28px; }
	.mc14-ch-list {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 6px;
	}
	.mc14-ch-btn {
		padding: 8px 12px;
		gap: 6px;
		border: 1px solid var(--mc14-rule);
		border-radius: 4px;
	}
	.mc14-ch-btn--on {
		border-color: var(--mc14-ink);
	}
	.mc14-panel-ft { padding-top: 12px; }
	.mc14-content { padding: 28px 20px 48px; }
	.mc14-cnt-hd { padding-bottom: 24px; margin-bottom: 28px; }
	.mc14-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   반응형 — 499px
   ═══════════════════════════════════════════ */
@media all and (max-width: 499px) {
	.mc14-panel { padding: 20px 16px 16px; }
	.mc14-content { padding: 24px 16px 40px; }
	.mc14-card-body { padding: 16px 16px 20px; }
}
