/* ==========================================================
   video.css : 동영상 페이지 (/page/board/video.php)
========================================================== */
.mvd {
	--accent: #844ad7;
	--ink: #121212;
	--text: #4b4b52;
	--muted: #8b8b94;
	--line: #e9e7ee;
	--soft: #f7f6f9;
	max-width: calc(var(--wrap, 1200px) + var(--gutter, 40px) * 2);
	margin: 0 auto;
	padding: clamp(40px, 6vw, 88px) var(--gutter, 20px) clamp(64px, 8vw, 120px);
	box-sizing: border-box;
	color: var(--ink);
	font-family: 'Pretendard Variable', Pretendard, sans-serif;
	font-size: 16px; line-height: 1.6;
	word-break: keep-all;
}
.mvd :where(*, *:before, *:after) { box-sizing: border-box; }
.mvd :where(ul) { margin: 0; padding: 0; list-style: none; }
.mvd :where(h1, h2, p) { margin: 0; }
.mvd :where(a) { color: inherit; text-decoration: none; }
.mvd img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mvd button { font-family: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }

.mvd-head { margin-bottom: clamp(32px, 4vw, 56px); text-align: center; }
.mvd-eyebrow { margin-bottom: 12px; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.mvd-title { font-size: clamp(36px, 5vw, 64px); line-height: 1.1; font-weight: 900; letter-spacing: -0.045em; }
.mvd-desc { margin-top: 16px; font-size: 17px; color: var(--muted); }

/* 재생 버튼 */
.mvd-play {
	position: absolute; left: 50%; top: 50%;
	width: 84px; height: 84px; margin: -42px 0 0 -42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .22);
	border: 1px solid rgba(255, 255, 255, .6);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	transition: transform .3s, background-color .3s;
}
.mvd-play:after { content: ''; position: absolute; left: 50%; top: 50%; margin: -12px 0 0 -7px; border-left: 22px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.mvd-play--sm { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.mvd-play--sm:after { margin: -8px 0 0 -4px; border-left-width: 15px; border-top-width: 9px; border-bottom-width: 9px; }

/* 대표 영상 */
.mvd-feature {
	display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	gap: clamp(24px, 4vw, 56px); align-items: center;
	margin-bottom: clamp(40px, 5vw, 64px);
	padding: clamp(14px, 1.6vw, 20px);
	border-radius: 32px;
	background: #0e0d12; color: #fff;
}
.mvd-feature__player { position: relative; display: block; width: 100%; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 24px; }
.mvd-feature__player img { transition: transform .6s; }
.mvd-feature__player:hover img { transform: scale(1.03); }
.mvd-feature__player:hover .mvd-play { transform: scale(1.08); background: rgba(132, 74, 215, .7); }
.mvd-feature__body { padding: 8px 20px 8px 0; }
.mvd-tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.mvd-feature__title { margin: 16px 0 12px; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.3; font-weight: 800; letter-spacing: -0.03em; }
.mvd-feature__desc { font-size: 16px; color: rgba(255, 255, 255, .7); }
.mvd-feature .mvd-date { margin-top: 18px; color: rgba(255, 255, 255, .5); }
.mvd-date { display: block; font-size: 13px; color: var(--muted); }

/* 목록 */
.mvd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px) clamp(12px, 1.6vw, 24px); }
.mvd-card { display: block; width: 100%; }
.mvd-card__thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 20px; background: #ece9f1; box-shadow: 0 10px 30px rgba(0, 0, 0, .06); }
.mvd-card__thumb img { transition: transform .5s; }
.mvd-card:hover .mvd-card__thumb img { transform: scale(1.04); }
.mvd-card:hover .mvd-play { transform: scale(1.08); background: rgba(132, 74, 215, .7); }
.mvd-card__title { display: -webkit-box; margin: 14px 4px 4px; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 17px; line-height: 1.4; font-weight: 700; }
.mvd-card .mvd-date { margin: 0 4px; }

.mvd-empty { padding: 72px 20px; border-radius: 24px; background: var(--soft); text-align: center; color: var(--muted); }

/* 하단 */
.mvd-foot { position: relative; display: flex; justify-content: center; align-items: center; min-height: 52px; margin-top: clamp(40px, 5vw, 64px); }
.mvd-pages { display: flex; gap: 6px; }
.mvd-pages a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--text); }
.mvd-pages a.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.mvd-write { position: absolute; right: 0; top: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 52px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: #fff !important; font-size: 15px; font-weight: 700; line-height: 1.2; }
.mvd-write small { font-size: 11px; font-weight: 400; opacity: .6; }

.mvd-channel {
	display: flex; align-items: center; gap: 18px;
	margin-top: clamp(40px, 5vw, 64px);
	padding: 24px 28px;
	border-radius: 24px;
	background: var(--soft); border: 1px solid var(--line);
	transition: border-color .2s;
}
.mvd-channel:hover { border-color: var(--accent); }
.mvd-channel .mc-icon:first-child { width: 36px; height: 36px; color: #e0262b; }
.mvd-channel span { flex: 1; display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }
.mvd-channel b { font-size: 18px; color: var(--ink); }
.mvd-channel .mc-icon:last-child { width: 22px; height: 22px; color: var(--accent); }

/* 재생 팝업 */
.mvd-modal { width: min(1100px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.mvd-modal::backdrop { background: rgba(10, 8, 14, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mvd-modal__inner { position: relative; }
.mvd-modal__frame { overflow: hidden; aspect-ratio: 16 / 9; border-radius: 20px; background: #000; }
.mvd-modal__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.mvd-modal__title { margin-top: 14px; color: #fff; font-family: 'Pretendard Variable', Pretendard, sans-serif; font-size: 17px; font-weight: 700; }
.mvd-modal__close { position: absolute; right: 0; top: -52px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.mvd-modal__close .mc-icon { width: 22px; height: 22px; }

@media screen and (max-width: 1024px) {
	.mvd-feature { grid-template-columns: 1fr; }
	.mvd-feature__body { padding: 4px 8px 12px; }
	.mvd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 767px) {
	.mvd-feature { border-radius: 24px; padding: 10px; }
	.mvd-feature__player { border-radius: 18px; }
	.mvd-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
	.mvd-grid { grid-template-columns: 1fr; }
	.mvd-foot { flex-direction: column; gap: 16px; }
	.mvd-write { position: static; }
	.mvd-channel { padding: 18px; gap: 14px; }
	.mvd-channel b { font-size: 16px; }
}

/* 서버 mp4 (네이버 블로그 영상) */
.mvd-modal__frame video { display: block; width: 100%; height: 100%; background: #000; }
