@charset "utf-8";

/* ============================================================
   mmain17 — 빈티지 라디오형
   크림 배경 + 앰버 강조 + FM 편성표 레이아웃
   ============================================================ */

:root {
	--rd-bg: #f5f0e8;
	--rd-panel: #1e1508;
	--rd-amber: #c8840a;
	--rd-amber-lt: rgba(200, 132, 10, 0.12);
	--rd-dial-bg: #e8dcc8;
	--rd-dial-bd: #b8a882;
	--rd-ink: #1a1209;
	--rd-muted: #7a6040;
	--rd-rule: #c4b090;
	--rd-row-hover: #ede7da;
}

body {
	background: var(--rd-bg);
}
body.dark {
	background: #120e08;
}

body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 9998;
	pointer-events: none;
	opacity: 0.18;
	mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.38' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)'/%3E%3C/svg%3E");
	background-size: 180px;
}

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

/* ── 공용 래퍼 ── */
.rd-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 60px;
}

/* ═══════════════════════════════════════════
   ① 히어로
   ═══════════════════════════════════════════ */
.rd-hero {
	padding: 120px 0 80px;
	min-height: 100vh;
	display: flex;
	align-items: center;
}
.rd-hero-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 48px;
}

/* ── 라디오 패널 ── */
.rd-panel {
	width: 100%;
	max-width: 780px;
	background: var(--rd-panel);
	border-radius: 10px;
	padding: 28px 36px 32px;
	box-shadow:
		0 14px 52px rgba(0, 0, 0, 0.45),
		0 2px 8px rgba(0, 0, 0, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.rd-panel-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.rd-panel-brand {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: var(--rd-amber);
	font-weight: 600;
}
.rd-vol-display {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: rgba(255, 255, 255, 0.4);
}

/* ── 다이얼 ── */
.rd-dial-face {
	position: relative;
	height: 80px;
	background: var(--rd-dial-bg);
	border-radius: 4px;
	border: 1px solid var(--rd-dial-bd);
	overflow: hidden;
	box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.15);
}

.rd-dial-scale {
	position: absolute;
	inset: 0;
}

.rd-tick {
	position: absolute;
	left: var(--p);
	transform: translateX(-50%);
	top: 10px;
}
.rd-tick::before {
	content: "";
	display: block;
	width: 1px;
	height: 14px;
	background: var(--rd-dial-bd);
}
.rd-tick--major::before {
	height: 22px;
	width: 1.5px;
	background: #8a7a5a;
}

/* 바늘 */
.rd-needle {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--rd-amber);
	left: 0%;
	transform: translateX(-50%);
	box-shadow:
		0 0 10px var(--rd-amber),
		0 0 24px rgba(200, 132, 10, 0.35);
	will-change: left;
}

/* 주파수 범위 라벨 */
.rd-dial-range {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 8px;
	padding: 0 2px;
}
.rd-dial-range span {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: rgba(200, 132, 10, 0.55);
	font-weight: 500;
}

/* ── 패널 하단 ── */
.rd-panel-bottom {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-top: 16px;
}
.rd-wave-canvas {
	flex: 1;
	height: 52px;
	display: block;
}
.rd-freq-readout {
	display: flex;
	align-items: baseline;
	gap: 6px;
	flex-shrink: 0;
}
.rd-freq-num {
	font-size: clamp(32px, calc(12px + 3vw), 52px);
	color: var(--rd-amber);
	font-weight: 700;
	text-shadow: 0 0 20px rgba(200, 132, 10, 0.5);
}
.rd-freq-unit {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: rgba(200, 132, 10, 0.65);
	font-weight: 500;
	align-self: flex-end;
	padding-bottom: 4px;
}
.rd-on-air-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: 6px;
	align-self: flex-end;
	padding-bottom: 5px;
}
.rd-on-air-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #e03030;
	animation: rd-blink 1.2s ease-in-out infinite;
}
@keyframes rd-blink {
	0%,
	45% {
		opacity: 1;
	}
	55%,
	100% {
		opacity: 0;
	}
}
.rd-on-air-txt {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: #e03030;
	font-weight: 600;
}

/* ── 히어로 카피 ── */
.rd-hero-copy {
	text-align: center;
}
.rd-hero-eyebrow {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: var(--rd-muted);
	text-transform: uppercase;
	margin-bottom: 12px;
}
.rd-hero-tit {
	font-size: clamp(40px, calc(16px + 4.5vw), 80px);
	color: var(--rd-ink);
	font-weight: 700;
}
.rd-hero-desc {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: var(--rd-muted);
	margin-top: 12px;
}

.rd-scroll-hint {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: var(--rd-muted);
	opacity: 0.7;
}
.rd-scroll-hint span {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
}

/* ═══════════════════════════════════════════
   ② 편성표
   ═══════════════════════════════════════════ */
.rd-schedule {
	padding: 80px 0 100px;
	border-top: 2px solid var(--rd-ink);
}

.rd-sched-hd {
	display: flex;
	align-items: baseline;
	gap: 20px;
	margin-bottom: 12px;
}
.rd-sched-eyebrow {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: var(--rd-muted);
}
.rd-sched-tit {
	font-size: clamp(28px, calc(16px + 2.4vw), 52px);
	color: var(--rd-ink);
	font-weight: 700;
}
.rd-sched-rule {
	flex: 1;
	display: block;
	height: 1px;
	background: var(--rd-rule);
	align-self: center;
}

.rd-sched-table {
	border-top: 1px solid var(--rd-rule);
}
.rd-sched-row {
	display: grid;
	grid-template-columns: 200px 1fr;
	border-bottom: 1px solid var(--rd-rule);
	transition: background 0.2s;
}
.rd-sched-row:hover {
	background: var(--rd-row-hover);
}

/* 좌: 슬롯 */
.rd-slot {
	padding: 28px 24px;
	border-right: 1px solid var(--rd-rule);
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.rd-slot-ch {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: var(--rd-muted);
	font-weight: 600;
}
.rd-slot-cat {
	font-size: clamp(18px, calc(12px + 1.2vw), 24px);
	color: var(--rd-ink);
	font-weight: 700;
}
.rd-slot-status {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: var(--rd-muted);
}

/* NOW PLAYING 강조 */
.rd-sched-row--now .rd-slot {
	border-left: 3px solid var(--rd-amber);
}
.rd-sched-row--now .rd-slot-status {
	color: var(--rd-amber);
	font-weight: 600;
}
.rd-sched-row--now {
	background: var(--rd-amber-lt);
}
.rd-sched-row--now:hover {
	background: rgba(200, 132, 10, 0.15);
}

/* 우: 기사 링크 */
.rd-art-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 28px 32px;
	text-decoration: none;
	color: inherit;
}
.rd-art-body {
	flex: 1;
}
.rd-art-tit {
	font-size: clamp(18px, calc(12px + 1.2vw), 26px);
	color: var(--rd-ink);
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.rd-art-exc {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: var(--rd-muted);
	margin-top: 8px;
}
.rd-art-arrow {
	font-size: 22px;
	color: var(--rd-muted);
	flex-shrink: 0;
	transition:
		transform 0.2s,
		color 0.2s;
}
.rd-sched-row:hover .rd-art-arrow {
	transform: translateX(6px);
	color: var(--rd-amber);
}

/* ═══════════════════════════════════════════
   ③ CTA
   ═══════════════════════════════════════════ */
.rd-cta {
	background: var(--rd-panel);
	padding: 80px 0;
}
.rd-cta-inner {
	max-width: 540px;
	margin: 0 auto;
	text-align: center;
}
.rd-cta-tag {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: var(--rd-amber);
	font-weight: 600;
	margin-bottom: 16px;
}
.rd-cta-tit {
	font-size: clamp(22px, calc(14px + 2vw), 40px);
	color: #fff;
	font-weight: 700;
	margin-bottom: 12px;
}
.rd-cta-desc {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: rgba(255, 255, 255, 0.45);
	margin-bottom: 32px;
}
.rd-cta-form {
	display: flex;
	max-width: 420px;
	margin: 0 auto;
}
.rd-cta-input {
	flex: 1;
	padding: 14px 20px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-right: none;
	border-radius: 4px 0 0 4px;
	color: #fff;
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	outline: none;
}
.rd-cta-input::placeholder {
	color: rgba(255, 255, 255, 0.3);
}
.rd-cta-input:focus {
	border-color: var(--rd-amber);
}
.rd-cta-btn {
	padding: 14px 24px;
	background: var(--rd-amber);
	border: 1px solid var(--rd-amber);
	border-radius: 0 4px 4px 0;
	color: #fff;
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.2s;
	white-space: nowrap;
}
.rd-cta-btn:hover {
	opacity: 0.85;
}

/* ═══════════════════════════════════════════
   반응형
   ═══════════════════════════════════════════ */
@media (max-width: 999px) {
	.rd-hero {
		padding: 100px 0 60px;
	}
	.rd-panel {
		padding: 20px 24px 24px;
		max-width: 100%;
	}
	.rd-dial-face {
		height: 68px;
	}
	.rd-sched-row {
		grid-template-columns: 160px 1fr;
	}
}

@media (max-width: 768px) {
	.rd-wrap {
		padding: 0 24px;
	}
	.rd-hero {
		padding: 90px 0 40px;
		min-height: auto;
	}
	.rd-hero-inner {
		gap: 28px;
	}
	.rd-panel {
		padding: 16px 16px 20px;
	}
	.rd-panel-bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	.rd-wave-canvas {
		width: 100%;
	}
	.rd-sched-row {
		grid-template-columns: 1fr;
		border-bottom: none;
	}
	.rd-slot {
		border-right: none;
		border-top: 2px solid var(--rd-ink);
		border-bottom: 1px solid var(--rd-rule);
		padding: 20px 16px 16px;
		flex-direction: row;
		align-items: center;
		gap: 12px;
	}
	.rd-sched-row--now .rd-slot {
		border-top-color: var(--rd-amber);
		border-left: none;
		padding-left: 16px;
	}
	.rd-art-link {
		padding: 16px 16px 24px;
		border-bottom: none;
	}
	.rd-sched-row:last-child .rd-art-link {
		border-bottom: 1px solid var(--rd-rule);
	}
	.rd-schedule {
		padding: 48px 0 60px;
	}
	.rd-cta {
		padding: 48px 0;
	}
	.rd-cta-form {
		flex-direction: column;
	}
	.rd-cta-input {
		border-right: 1px solid rgba(255, 255, 255, 0.14);
		border-bottom: none;
		border-radius: 4px 4px 0 0;
	}
	.rd-cta-btn {
		border-radius: 0 0 4px 4px;
	}
	.rd-sched-hd {
		flex-wrap: wrap;
	}
	.rd-sched-rule {
		display: none;
	}
}

@media (max-width: 499px) {
	.rd-panel {
		padding: 14px 12px 16px;
	}
	.rd-dial-face {
		height: 56px;
	}
	.rd-schedule {
		padding: 32px 0 48px;
	}
	.rd-sched-hd {
		gap: 8px;
	}
	.rd-slot {
		flex-direction: column;
		gap: 4px;
	}
}

/* ── 다크모드 ── */
body.dark .rd-panel {
	background: #1e1508;
	box-shadow:
		0 0 0 1px rgba(200, 132, 10, 0.25),
		0 14px 52px rgba(0, 0, 0, 0.6);
}
body.dark .rd-dial-face {
	background: #2a2418;
	border-color: #4a3e28;
}
body.dark .rd-tick::before {
	background: #5a4e38;
}
body.dark .rd-tick--major::before {
	background: #6a5a3a;
}
body.dark .rd-dial-range span {
	color: rgba(200, 132, 10, 0.5);
}
body.dark .rd-schedule {
	border-top-color: rgba(255, 255, 255, 0.15);
}
body.dark .rd-sched-table { border-color: rgba(255, 255, 255, 0.1); }
body.dark .rd-sched-row { border-color: rgba(255, 255, 255, 0.1); }
body.dark .rd-sched-row:hover {
	background: rgba(255, 255, 255, 0.04);
}
body.dark .rd-sched-row--now {
	background: rgba(200, 132, 10, 0.1);
}
body.dark .rd-sched-row--now:hover {
	background: rgba(200, 132, 10, 0.14);
}
body.dark .rd-slot {
	border-top-color: rgba(255, 255, 255, 0.25);
	border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.dark .rd-sched-row:last-child .rd-art-link { border-bottom-color: rgba(255, 255, 255, 0.08); }
body.dark .rd-slot-ch,
body.dark .rd-slot-status,
body.dark .rd-sched-eyebrow,
body.dark .rd-hero-eyebrow,
body.dark .rd-hero-desc,
body.dark .rd-art-exc {
	color: rgba(255, 255, 255, 0.45);
}
body.dark .rd-slot-cat,
body.dark .rd-art-tit,
body.dark .rd-sched-tit,
body.dark .rd-hero-tit {
	color: rgba(255, 255, 255, 0.92);
}
body.dark .rd-art-arrow {
	color: rgba(255, 255, 255, 0.4);
}
body.dark .rd-sched-rule {
	background: rgba(255, 255, 255, 0.1);
}
body.dark .rd-scroll-hint {
	color: rgba(255, 255, 255, 0.4);
}
body.dark .rd-cta {
	background: #080604;
}
body.dark .rd-row-hover {
	background: rgba(255, 255, 255, 0.04);
}
