/* 흑백(검정 배경) — 색은 영상 미리보기에만. 화면 요소는 검정·흰색·회색과 가는 선만 씁니다. */
: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 .biz a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.request .req-mail { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.request .req-mail a { color: inherit; text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.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; }

/* 메인 찾기 버튼: 모양(무엇을 넣을까요?) · 영상 주제 · 세부 주제 */
.facets { margin: 22px auto 28px; max-width: 980px; }
.facet-row + .facet-row { margin-top: 14px; }
.facet-label { margin: 0 0 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.facet-chips { margin: 0; }
#sub-row { padding-top: 12px; border-top: 1px solid var(--line); }
/* 결과 위 한 줄: 고른 조건과 ✕ */
.picked .pick { display: inline-flex; align-items: center; gap: 2px; color: var(--text); font-weight: 600; }
.picked .pick button {
  font: inherit; font-size: 12px; cursor: pointer; color: var(--muted);
  background: transparent; border: 0; border-radius: 999px; padding: 4px 6px; line-height: 1;
}
.picked .pick button:hover { color: var(--text); background: var(--surface); }
.picked .dot { margin: 0 6px; }
.picked .also { white-space: nowrap; }
/* 주제를 골랐을 때 목록 중간의 "모든 주제에 어울리는 모션" 머리말 */
.grid-divider { grid-column: 1 / -1; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 16px; letter-spacing: -0.02em; }
.grid-divider small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 400; }

/* ---------- 용도별 ---------- */
.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; }
.popular-more { margin: 22px 0 0; text-align: center; font-size: 15px; }
.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;
}
/* 카드 왼쪽 위 딱지 줄: 인기, 글씨 수정 가능 등 */
.badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; }
.badges:empty { display: none; }
.hot {
  font-size: 11px; font-weight: 700; line-height: 1.5;
  color: #fff; background: #e5484d;
  padding: 2px 8px; border-radius: 6px;
}
.edit {
  font-size: 11px; font-weight: 700; line-height: 1.5;
  color: #0a0a0a; background: #f5f5f5;
  padding: 2px 8px; border-radius: 6px;
}
/* 템플릿 묶음(테마) 이름: 카드 오른쪽 위 */
.theme {
  position: absolute; top: 8px; right: 8px;
  font-size: 11px; font-weight: 600; line-height: 1.5;
  color: #f5f5f5; background: rgba(10, 10, 10, 0.78);
  padding: 2px 8px; border-radius: 6px;
  max-width: calc(100% - 110px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.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; }

/* 글꼴 고르기: 묶음마다 한 줄 제목과 버튼 칸. 버튼의 이름은 그 글꼴로 쓴다(download.html fontRow) */
.font-group { margin-top: 10px; }
.font-group-name { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.font-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; }
.font-opt {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px;
  min-height: 52px; padding: 6px 12px 7px; text-align: left;
  font: inherit; cursor: pointer;
  color: var(--muted); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px;
}
.font-opt .font-name { font-size: 16px; line-height: 26px; height: 26px; overflow: visible; color: var(--text); white-space: nowrap; }
.font-opt .font-desc { font-size: 11px; line-height: 1.3; word-break: keep-all; }
.font-opt[aria-pressed="true"] { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.font-opt[aria-pressed="true"] .font-desc { color: var(--text); }
.font-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; }
  /* 휴대폰: 찾기 버튼은 한 줄씩, 옆으로 밀어서 본다 (화면 끝까지 붙여 쓰고 페이지는 옆으로 밀리지 않게) */
  .facet-label { text-align: left; }
  .facet-chips {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain;
    margin: 0 -18px; padding: 0 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .facet-chips::-webkit-scrollbar { display: none; }
  .facet-chips .chip { flex: none; white-space: nowrap; }
  .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; }
}

/* ---------- 받을 형식 (일반 영상 / 투명 배경) ---------- */
.format-pick { margin: 0 0 14px; }
.format-pick .hint { margin: 8px 0 0; font-size: 12px; color: var(--muted); word-break: keep-all; }

/* ---------- 찜하기 ---------- */
/* 카드 오른쪽 위 하트. 누르면 찜 목록(saved.html)에 모인다 */
.fav-btn {
  position: absolute; right: 6px; top: 6px; z-index: 2;
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
  color: #f5f5f5; background: rgba(10, 10, 10, 0.72);
  opacity: 0; transition: opacity 0.15s ease;
}
.fav-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.fav-btn[aria-pressed="true"] { opacity: 1; color: #ff5a6e; }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }
.card:hover .fav-btn, .fav-btn:focus-visible { opacity: 1; }
@media (hover: none) { .fav-btn { opacity: 1; } }
/* 하트 자리를 비우도록 테마 이름을 왼쪽으로 민다 */
.card .theme { right: 44px; max-width: calc(100% - 150px); }
/* 다운로드 페이지 제목 옆 찜 버튼 */
.fav-line { margin: 0 0 16px; }
.fav-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 6px 14px;
  font: inherit; font-size: 13px; cursor: pointer;
  color: var(--text); background: transparent;
  border: 1px solid var(--line); border-radius: 999px;
}
.fav-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.fav-toggle[aria-pressed="true"] { border-color: #ff5a6e; }
.fav-toggle[aria-pressed="true"] svg { fill: #ff5a6e; stroke: #ff5a6e; }
.fav-toggle:hover { border-color: var(--muted); }
.nav .fav-count { margin-left: 4px; font-variant-numeric: tabular-nums; color: var(--muted); }

/* ---------- 이런 모션 있었으면 (요청) ---------- */
.request {
  max-width: 560px; margin: 8px auto 0; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  text-align: left;
}
.request h3 { margin: 0 0 4px; font-size: 16px; letter-spacing: -0.01em; }
.request p { margin: 0 0 12px; font-size: 13px; color: var(--muted); word-break: keep-all; }
.request textarea {
  width: 100%; min-height: 84px; resize: vertical; box-sizing: border-box;
  font: inherit; font-size: 14px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.request textarea:focus { outline: none; border-color: var(--text); }
.request .btn { margin-top: 10px; }
.request .done { margin: 10px 0 0; color: var(--text); font-size: 14px; }
.request-line { text-align: center; color: var(--muted); font-size: 14px; margin: 28px 0 0; }
.request-line button { font: inherit; color: var(--text); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

/* 커스텀 기능 페이지 (custom.html) */
.feature-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 36px; }
.feature-chip { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.feature-chip:hover { border-color: #444; }
.feature-chip strong { font-size: 16px; letter-spacing: -0.02em; }
.feature-chip span { color: var(--muted); font-size: 13px; word-break: keep-all; }
.feature-chip .new, .feature .new { align-self: flex-start; display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 11px; font-weight: 800; letter-spacing: 0.04em; vertical-align: middle; }
.feature-chip .new { margin-bottom: 6px; }
.feature .use-head h2 .new { font-size: 12px; position: relative; top: -3px; }
.feature-steps { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 18px; padding: 0; list-style: none; counter-reset: step; font-size: 14px; color: var(--muted); }
.feature-steps li { counter-increment: step; word-break: keep-all; }
.feature-steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 7px; border-radius: 50%; border: 1px solid var(--line); color: var(--text); font-size: 12px; font-weight: 700; }
.feature .again { margin-top: 16px; }
.feature-all { margin: 14px 0 0; font-size: 14px; }
@media (max-width: 900px) {
  .feature-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; }
  .feature-steps { flex-direction: column; }
}
.feature-news { text-align: center; margin: 18px 0 0; font-size: 14px; }
.feature-news a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); word-break: keep-all; }
.feature-news a:hover { border-color: #444; }
.feature-news .new { padding: 1px 7px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 11px; font-weight: 800; }
@media (max-width: 520px) {
  /* 메뉴가 늘어 한 줄을 넘을 때: 줄바꿈 대신 옆으로 밀어 보기 */
  .site-header .nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; max-width: calc(100vw - 16px); }
  .site-header .nav::-webkit-scrollbar { display: none; }
  .site-header .nav a { padding: 12px 8px; }
}

/* ---------- 편집 프로그램 적용법 버튼(캡컷·프리미어 프로·다빈치 리졸브) ---------- */
.app-ico { flex: none; width: 32px; height: 32px; display: block; }
.app-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.app-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 8px 16px 8px 8px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
  color: var(--text) !important; font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none !important; word-break: keep-all;
  transition: border-color 0.15s ease;
}
.app-btn:hover, .app-btn:focus-visible { border-color: var(--text); }
.app-btn .go { margin-left: auto; padding-left: 6px; color: var(--muted); }
/* 다운로드 페이지 아래 안내: 적용법 칸은 한 줄을 다 쓴다 */
.notes li.apply { grid-column: 1 / -1; }
.notes li.apply .app-btn { flex: 1 1 200px; }
/* 받은 뒤 안내(오른쪽 좁은 칸): 세로로 쌓기 */
.next .app-btns { flex-direction: column; margin-top: 6px; }
.next li.apps { padding-bottom: 12px; }
.next .app-btn { width: 100%; text-decoration: none; }
.hint .text-link, .hint a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
/* 가이드 글: 제목 옆 아이콘, 크게 보이는 단계 번호 */
.doc .doc-title { display: flex; align-items: center; gap: 14px; }
.doc .doc-title .app-ico { width: 48px; height: 48px; }
.doc .doc-title h1 { margin: 0; word-break: keep-all; }
.doc .doc-head { margin: 0 0 24px; }
.doc ol.step-list { list-style: none; counter-reset: step; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.doc ol.step-list > li {
  counter-increment: step; position: relative; margin: 0;
  padding: 16px 18px 16px 92px; min-height: 64px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.doc ol.step-list > li::before {
  content: counter(step) "단계"; position: absolute; left: 18px; top: 16px;
  font-size: 15px; font-weight: 800; letter-spacing: -0.02em; color: var(--bg);
  background: var(--text); border-radius: 999px; padding: 3px 10px; font-variant-numeric: tabular-nums;
}
.doc ol.step-list > li > strong { display: block; color: var(--text); font-size: 17px; letter-spacing: -0.02em; margin: 0 0 4px; }
.doc ol.step-list p { margin: 0; font-size: 15px; }
.doc .quick { border: 1px solid var(--text); border-radius: 14px; padding: 16px 18px; margin: 16px 0 0; }
.doc .quick h3 { margin: 0 0 6px; font-size: 17px; color: var(--text); }
.doc .quick p { margin: 0; }
.doc .other-apps .app-btn { flex: 1 1 240px; }
.guide-list a.has-ico { flex-direction: row; align-items: center; gap: 16px; }
.guide-list a.has-ico .app-ico { width: 44px; height: 44px; }
.guide-list a.has-ico > span.txt { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 600px) {
  .app-btn { flex: 1 1 100% !important; }
  .doc ol.step-list > li { padding: 52px 16px 16px; }
  .doc ol.step-list > li::before { top: 14px; left: 16px; }
}

/* 로그인·내 계정 (account.html) */
.account h1 { word-break: keep-all; }
.account-msg { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px 16px; font-size: 15px; margin: 0 0 24px; }
.login-buttons { display: grid; gap: 10px; max-width: 360px; margin: 28px 0 20px; }
.login-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 18px; border-radius: 12px;
  font-weight: 700; font-size: 16px; text-decoration: none !important;
  color: var(--bg); background: var(--text);
}
.login-btn svg { width: 20px; height: 20px; flex: none; }
.login-kakao { background: #FEE500; color: rgba(0, 0, 0, 0.85); }
.login-kakao svg { fill: #000; }
.login-google { background: #fff; color: #1f1f1f; }
.login-btn:hover { filter: brightness(0.94); }
.account .fine { font-size: 13px; color: var(--muted); text-align: left; }
.account-info { display: grid; gap: 0; margin: 24px 0; border-top: 1px solid var(--line); }
.account-info div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.account-info dt { color: var(--muted); }
.account-info dd { margin: 0; text-align: right; }
.account-info a { text-decoration: underline; text-underline-offset: 3px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.account-actions .again { width: auto; margin: 0; min-height: 44px; padding: 0 20px; }
.locked-note { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.locked-note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.doc h3 { margin: 32px 0 8px; font-size: 17px; letter-spacing: -0.02em; scroll-margin-top: 88px; }
