/* 흑백(검정 배경) — 색은 영상 미리보기에만. 화면 요소는 검정·흰색·회색과 가는 선만 씁니다. */
:root {
  --bg: #0a0a0a;
  --text: #f5f5f5;
  --muted: #8f8f8f;
  --line: #262626;
  --surface: #141414;
  --max: 1240px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.text-link { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 머리말 / 꼬리말 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; letter-spacing: -0.04em; white-space: nowrap; }
.logo-mark { width: 22px; height: 22px; fill: currentColor; flex: none; }
.nav { display: flex; gap: 6px; font-size: 14px; flex-wrap: wrap; }
.nav a { padding: 7px 14px; border-radius: 999px; }
.nav a:hover { background: var(--surface); }

.site-footer { border-top: 1px solid var(--line); margin-top: 96px; color: var(--muted); font-size: 13px; }
.site-footer .bar { padding-top: 12px; padding-bottom: 12px; }
.site-footer p { margin: 0; }
.site-footer .nav { font-size: 13px; }

/* ---------- 메인: 가운데 정렬 소개 ---------- */
.intro { text-align: center; padding: 72px 0 8px; }
.intro h1 {
  margin: 0 auto 18px;
  max-width: 16ch;
  font-size: clamp(30px, 4.8vw, 58px);
  line-height: 1.16;
  letter-spacing: -0.045em;
  font-weight: 700;
  word-break: keep-all;
}
.intro p { margin: 0 auto 28px; max-width: 56ch; color: var(--muted); word-break: keep-all; }

.search { max-width: 520px; margin: 0 auto; }
.search input {
  width: 100%;
  padding: 13px 22px;
  font: inherit; color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--text); }

.chips { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 20px 0 0; }
.chip {
  font: inherit; font-size: 14px; cursor: pointer;
  color: var(--muted); background: transparent;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 16px;
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip[aria-pressed="true"] { color: var(--bg); background: var(--text); border-color: var(--text); font-weight: 600; }

.chip span { margin-left: 4px; font-variant-numeric: tabular-nums; opacity: 0.7; }

/* 자주 찾는 태그: 카테고리 버튼보다 작고 조용하게 */
.tag-row { display: flex; justify-content: center; gap: 4px 2px; flex-wrap: wrap; max-width: 760px; margin: 14px auto 0; }
.tag-row:empty { display: none; }
.tag-chip {
  font: inherit; font-size: 13px; cursor: pointer;
  color: var(--muted); background: transparent;
  border: 0; border-radius: 999px; padding: 4px 9px;
}
.tag-chip:hover { color: var(--text); }
.tag-chip[aria-pressed="true"] { color: var(--text); font-weight: 600; background: var(--surface); }

.count { color: var(--muted); font-size: 13px; margin: 0 0 12px; font-variant-numeric: tabular-nums; }

/* ---------- 용도별 ---------- */
.use { padding-top: 64px; scroll-margin-top: 72px; }
.use-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.use-head h2 { margin: 0 0 2px; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.035em; font-weight: 700; }
.use-head p { margin: 0; color: var(--muted); font-size: 15px; word-break: keep-all; }
.use-head .count { margin: 0; white-space: nowrap; }

/* 메인 맨 위: 자주 쓰는 모션 (큰 카드 3열) */
.popular { padding-top: 48px; }
.popular .use-head .text-link { font-size: 14px; white-space: nowrap; }
.popular-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 16px; }
.pop-note { margin: 10px 2px 0; font-size: 14px; color: var(--muted); word-break: keep-all; }
.pop-note strong { display: block; font-size: 16px; color: var(--text); letter-spacing: -0.02em; }
.list-title { margin: 0 0 4px; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.035em; font-weight: 700; }

/* 메인: 제목 → 모션 → 카테고리(검색·버튼·분야) 순서 */
.intro { padding-bottom: 0; }
.intro p { margin-bottom: 0; }
.popular { padding-top: 36px; }
.finder { padding-top: 72px; text-align: center; }
.finder h2 { margin: 0 0 20px; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.035em; font-weight: 700; }
.finder .by-use { text-align: left; }

.by-use { padding-top: 28px; }
.by-use .use-tiles { margin-top: 0; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.by-use .use-tile { padding: 14px 16px; }
.by-use .use-tile span { display: none; }      /* 맨 위에서는 이름과 개수만 */
.by-use .use-tile em { margin-top: 4px; color: var(--muted); }

/* 메인의 용도 바로가기 타일 */
.use-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 24px; }
.use-tile {
  display: flex; flex-direction: column; gap: 4px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  padding: 18px 20px;
  transition: border-color 0.2s ease;
}
.use-tile:hover { border-color: var(--text); }
.use-tile strong { font-size: 17px; letter-spacing: -0.02em; }
.use-tile span { font-size: 13px; color: var(--muted); word-break: keep-all; }
.use-tile em { font-style: normal; font-size: 13px; margin-top: 12px; font-variant-numeric: tabular-nums; }

.specs dd a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 목록: 미리보기만 촘촘하게 ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.card { display: block; border-radius: 10px; }
.thumb {
  position: relative; aspect-ratio: 16 / 9;
  background: #000; overflow: hidden;
  border: 1px solid var(--line); border-radius: 10px;
  transition: border-color 0.2s ease;
}
.thumb canvas, .thumb video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .thumb, .field-card:hover .thumb { border-color: var(--text); }

/* 분야별 입구: 분야마다 대표 모션 하나와 설명 */
.field-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 16px; margin-top: 44px; }
.field-card { display: flex; flex-direction: column; gap: 3px; }
.field-card .thumb { margin-bottom: 10px; }
.field-card strong { font-size: 17px; letter-spacing: -0.02em; }
.field-card span { font-size: 13px; color: var(--muted); word-break: keep-all; }
.field-card em { font-style: normal; font-size: 13px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.card:hover .thumb canvas, .card:hover .thumb video { transform: scale(1.05); }
.tag, .dur {
  position: absolute; bottom: 8px;
  font-size: 12px; line-height: 1.5;
  color: #f5f5f5; background: rgba(10, 10, 10, 0.78);
  padding: 2px 9px; border-radius: 6px;
}
.edit {
  position: absolute; top: 8px; left: 8px;
  font-size: 11px; font-weight: 700; line-height: 1.5;
  color: #0a0a0a; background: #f5f5f5;
  padding: 2px 8px; border-radius: 6px;
}
.tag { left: 8px; font-weight: 600; max-width: calc(100% - 70px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dur { right: 8px; font-variant-numeric: tabular-nums; }

.more {
  display: block; margin: 32px auto 0;
  font: inherit; font-size: 14px; cursor: pointer;
  color: var(--text); background: transparent;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 26px;
}
.more:hover { border-color: var(--text); }

.empty { text-align: center; color: var(--muted); padding: 64px 0; }

/* ---------- 광고 ---------- */
.ad-slot { margin: 36px 0; text-align: center; }
.ad-label { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0.14em; margin-bottom: 6px; }
.ad-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 1px dashed #3d3d3d; border-radius: 10px;
  background: var(--surface);
  color: var(--muted); font-size: 13px;
}
.ad-placeholder strong { color: var(--text); font-size: 14px; font-weight: 600; }
.ad-slot[data-ad="top"] .ad-placeholder,
.ad-slot[data-ad="infeed"] .ad-placeholder { min-height: 90px; }
.ad-slot[data-ad="detail"] .ad-placeholder,
.ad-slot[data-ad="gate"] .ad-placeholder { min-height: 250px; }

/* ---------- 메인 아래 안내 구역 ---------- */
.block { padding: 88px 0 0; }
.block h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 36px); line-height: 1.25; letter-spacing: -0.035em; font-weight: 700;
  word-break: keep-all;
}
.block > p, .split p { color: var(--muted); max-width: 58ch; word-break: keep-all; }
.block.center { text-align: center; }
.block.center > p { margin-left: auto; margin-right: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split p { margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.split p:last-of-type { border-bottom: 0; }
.circle { width: min(100%, 400px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; overflow: hidden; background: #000; border: 1px solid var(--line); }
.circle canvas, .circle video { display: block; width: 100%; height: 100%; object-fit: cover; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 32px 0 0; padding: 0; list-style: none; text-align: left; }
.steps li { border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: var(--surface); }
.step-no { display: block; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 28px; }
.steps h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.02em; }
.steps p { margin: 0; font-size: 14px; color: var(--muted); word-break: keep-all; }

.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px auto 0; padding: 0; list-style: none; max-width: 760px; }
.platforms li { font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; }

.faq { max-width: 820px; margin: 32px auto 0; text-align: left; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 2px; cursor: pointer; list-style: none;
  font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--muted); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; padding: 0 2px; color: var(--muted); word-break: keep-all; }

/* ---------- 다운로드 페이지 ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding: 24px 0 18px; margin: 0; }
.crumbs a:hover { color: var(--text); }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0 36px; align-items: start; }
.detail .side { grid-column: 2; grid-row: 1 / span 2; }
.detail > .ad-slot { grid-column: 1; }
.player { background: #000; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.player canvas, .player video { display: block; width: 100%; height: 100%; object-fit: contain; }

.side .kind { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.side h1 { margin: 0 0 10px; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; letter-spacing: -0.04em; font-weight: 700; word-break: keep-all; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 22px; padding: 0; list-style: none; }
.tags li { font-size: 12px; color: var(--muted); }
.tags a { display: block; color: inherit; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.tags a:hover, .tags a:focus-visible { color: var(--text); border-color: var(--muted); }

/* 글씨 바꾸기 */
.editor { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 16px 18px 18px; margin: 0 0 16px; }
.editor h2 { margin: 0 0 2px; font-size: 16px; letter-spacing: -0.01em; }
.editor .hint { margin: 0 0 4px; font-size: 13px; color: var(--muted); word-break: keep-all; }
.field { margin-top: 12px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.field input {
  width: 100%; padding: 10px 12px;
  font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
}
.field input:focus { outline: none; border-color: var(--text); }
.field input:disabled { opacity: 0.5; }
.field-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 6px 12px;
  font: inherit; font-size: 13px; cursor: pointer;
  color: var(--muted); background: var(--bg);
  border: 1px solid var(--line); border-radius: 999px;
}
.opt::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--swatch, transparent); border: 1px solid var(--line); }
.opt:not([style])::before { display: none; }   /* 색 견본이 없는 선택지(비율, 방향)는 점을 숨김 */
.opt[aria-pressed="true"] { color: var(--text); border-color: var(--text); }
.opt:disabled { opacity: 0.5; cursor: default; }

/* 직접 고르기(색 선택 창을 여는 버튼) */
.opt-pick { cursor: pointer; }
.opt-pick input { width: 0; height: 0; padding: 0; border: 0; opacity: 0; position: absolute; }

.opt-pick:focus-within { border-color: var(--text); color: var(--text); }

/* 편집 탭 (내용 · 스타일 · 배치) */
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }
.tabs button {
  min-height: 38px; padding: 6px 10px;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  color: var(--muted); background: transparent; border: 0; border-radius: 999px;
}
.tabs button[aria-selected="true"] { color: var(--bg); background: var(--text); }
.pane { padding-top: 4px; }
.pane .hint { margin: 8px 0 0; font-size: 12px; color: var(--muted); word-break: keep-all; }
.editor > .hint { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.pane .again { margin-top: 14px; }

/* 내 영상·사진 위에 미리 보기: 올린 파일은 그림판 뒤에 깔리고, 저장되는 파일에는 들어가지 않는다 */
.player { position: relative; }
.player .backdrop { display: none; }
.player.has-backdrop .backdrop { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player.has-backdrop canvas { position: relative; }
/* 영상 파일(스티커 등)을 내 영상 위에 얹어 볼 때: 원본 영상은 숨기고 초록을 지운 그림판을 보여 준다 */
.player.keyed > video:not(.backdrop) { position: absolute; inset: 0; opacity: 0; pointer-events: none; }

/* 지난번에 고른 스타일을 이어서 적용했다는 안내 */
.style-note { margin: 0 0 12px; font-size: 13px; color: var(--muted); word-break: keep-all; }
.style-note button { font: inherit; color: var(--text); background: transparent; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* 받은 뒤의 다음 안내 */
.next { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.next h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.next ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.next li { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 14px; }
.next strong { font-size: 13px; color: var(--muted); font-weight: 500; }
.next a { text-decoration: underline; text-underline-offset: 3px; }

.backdrop-note {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; color: #fff; background: #000c;
}

.slider label { display: flex; justify-content: space-between; }
.slider output { color: var(--text); font-variant-numeric: tabular-nums; }
.field.slider input[type="range"] { padding: 0; border: 0; background: transparent; accent-color: var(--text); height: 28px; }

/* 세로 영상은 세로로 긴 칸에, 정사각은 정사각 칸에 */
.player.portrait { aspect-ratio: 9 / 16; max-height: 72vh; margin: 0 auto; }
.player.square { aspect-ratio: 1; max-height: 72vh; margin: 0 auto; }
.again {
  display: block; width: 100%; margin-top: 10px; padding: 10px;
  font: inherit; font-size: 14px; cursor: pointer;
  color: var(--text); background: transparent;
  border: 1px solid var(--line); border-radius: 999px;
}
.again:hover { border-color: var(--text); }

.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 15px 18px;
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
  color: var(--bg); background: var(--text);
  border: 0; border-radius: 999px;
  transition: background 0.15s ease;
}
.btn:hover { background: #cfcfcf; }
.btn-inline { display: inline-flex; width: auto; padding: 14px 30px; margin-top: 20px; text-decoration: none !important; }
.btn.is-off { color: var(--muted); background: var(--surface); border: 1px solid var(--line); cursor: default; pointer-events: none; }
.custom-line { margin: 40px 0 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 15px; word-break: keep-all; }
.fine { font-size: 12px; color: var(--muted); margin: 12px 0 0; text-align: center; word-break: keep-all; }
.fine a { text-decoration: underline; text-underline-offset: 3px; }

.specs { margin: 26px 0 0; display: grid; grid-template-columns: auto 1fr; font-size: 14px; border-top: 1px solid var(--line); }
.specs dt, .specs dd { padding: 11px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

.gate { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--surface); }
.gate h2 { margin: 0 0 2px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.gate .status { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.gate .status b { color: var(--text); font-variant-numeric: tabular-nums; }
.progress { height: 3px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--text); transition: width 0.25s linear; }
.gate .ad-slot { margin: 18px 0; }
.gate .error { color: #ff8f85; }

.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 56px 0 0; padding: 0; list-style: none; }
.notes li { border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.notes h3 { margin: 0 0 4px; font-size: 16px; letter-spacing: -0.02em; }
.notes p { margin: 0; font-size: 14px; color: var(--muted); word-break: keep-all; }

.section-title { margin: 72px 0 20px; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }

.side .desc { margin: 0 0 12px; font-size: 14px; color: var(--muted); word-break: keep-all; }

/* 쿠키 동의 창 (화면 아래 띠) */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  font-size: 14px;
}
.consent p { margin: 0; flex: 1 1 260px; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.consent div { display: flex; gap: 8px; }
.consent button {
  min-height: 40px; padding: 8px 18px;
  font: inherit; font-size: 14px; cursor: pointer;
  color: var(--text); background: transparent;
  border: 1px solid var(--line); border-radius: 999px;
}
.consent button[data-v="yes"] { color: var(--bg); background: var(--text); border-color: var(--text); font-weight: 600; }

/* ---------- 정책 페이지 ---------- */
.doc { max-width: 760px; padding-top: 64px; }
.doc h1 { font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -0.045em; line-height: 1.1; margin: 0 0 24px; }
.doc h2 { margin: 56px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 20px; letter-spacing: -0.02em; scroll-margin-top: 88px; }
.doc p, .doc li { color: #c9c9c9; word-break: keep-all; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.doc .note { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px 16px; font-size: 14px; }
.doc .crumbs { padding: 0 0 14px; }
.doc ol li, .doc ul li { margin-bottom: 6px; }

/* 사용법 글 목록 */
.guide-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; }
.guide-list li { margin: 0; }
.guide-list a {
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px 22px; text-decoration: none;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.guide-list a:hover { border-color: var(--text); }
.guide-list strong { font-size: 18px; letter-spacing: -0.02em; color: var(--text); }
.guide-list span { font-size: 14px; color: var(--muted); }

/* ---------- 분야 전용 페이지 ---------- */
.field-head { padding: 20px 0 28px; max-width: 760px; }
.field-head h1 { margin: 0 0 12px; font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -0.045em; line-height: 1.1; }
.field-head .lead { margin: 0 0 14px; color: var(--muted); word-break: keep-all; }
.field-head .count { margin: 0; }
.more-line { margin-top: 20px; font-size: 15px; color: var(--muted); word-break: keep-all; }

/* ---------- 맞춤 제작 페이지 ---------- */
.work-form { margin-top: 20px; padding: 20px 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.work-form .field:first-child { margin-top: 0; }
.work-form .field { margin-top: 18px; }
.work-form textarea {
  width: 100%; min-height: 120px; padding: 10px 12px; resize: vertical;
  font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
}
.work-form textarea:focus { outline: none; border-color: var(--text); }
.work-form .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.work-form .actions .btn { width: auto; flex: 1 1 220px; }
.work-form .actions .again { width: auto; flex: 1 1 160px; margin: 0; }
.work-form .hint { margin: 12px 0 0; font-size: 13px; color: var(--muted); word-break: keep-all; }
.from-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 14px; }
.from-line button { font: inherit; font-size: 13px; color: var(--muted); background: transparent; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.case-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.case-list li { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.case-list img, .case-list video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.case-list div { padding: 14px 16px; }
.case-list strong { display: block; color: var(--text); }
.case-list span { font-size: 14px; color: var(--muted); }

/* 넓은 화면의 편집 화면: 설정을 아래로 내려도 미리보기가 따라오게 하고, 광고는 두 칸 아래에 둔다 */
@media (min-width: 901px) {
  .detail.has-editor .player { position: sticky; top: 84px; }
  .detail.has-editor .side { grid-row: 1; }
  .detail.has-editor > .ad-slot { grid-column: 1 / -1; grid-row: 2; margin: 40px 0 0; }
}

@media (max-width: 1100px) {
  .grid, .field-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .wrap { padding: 0 18px; }
  /* 휴대폰: 머리말은 화면에 붙지 않게 하고(공간 확보), 누르는 곳은 44px 이상으로 */
  .site-header { position: static; }
  .site-header .bar { padding-top: 8px; padding-bottom: 4px; gap: 0 16px; }
  .site-header .nav { font-size: 14px; gap: 0; margin-left: -10px; }
  .site-header .nav a { padding: 12px 10px; }
  .chip { padding: 11px 16px; }
  .text-link { display: inline-block; padding: 10px 0; }
  /* 글씨를 고치는 동안 미리보기가 화면 위에 붙어 있게 */
  .detail.has-editor .player { position: sticky; top: 8px; z-index: 5; }
  .use { padding-top: 48px; scroll-margin-top: 110px; }
  .intro { padding-top: 48px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .field-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 10px; margin-top: 32px; }
  .popular-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .popular .use-head { flex-wrap: wrap; }
  .block { padding-top: 64px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .steps, .notes, .case-list { grid-template-columns: 1fr; }
  .field-head { padding-top: 4px; }
  .work-form { padding: 16px 16px 20px; }
  .detail { grid-template-columns: 1fr; gap: 24px; }
  .detail .side, .detail > .ad-slot { grid-column: auto; grid-row: auto; }
  .detail > .ad-slot { margin: 8px 0 0; }
  .site-footer { margin-top: 72px; }
}

@media (max-width: 420px) {
  .dur { display: none; }
  .tag { max-width: calc(100% - 16px); }
}

@media (prefers-reduced-motion: reduce) {
  .thumb, .thumb canvas, .thumb video, .progress i { transition: none; }
  html { scroll-behavior: auto; }
}
