:root {
  --ink: #1a1a1a;
  --ink-2: #555;
  --muted: #6b6b6b;
  --line: #e4e4e0;
  --bg: #f6f6f4;
  --card: #ffffff;
  --dark: #222222;
  --accent: #ff5a1f;
  --heart: #d6455d;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Noto Sans KR', system-ui, -apple-system, 'Apple SD Gothic Neo', sans-serif; font-size: 15px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.ic { width: 1.1em; height: 1.1em; flex: none; }
[hidden] { display: none !important; }

/* 머리·꼬리 */
.site-head, .admin-head { background: var(--dark); color: #fff; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: #fff; }
.brand-sp { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }
.brand-lab { font-size: 13px; font-weight: 700; letter-spacing: 3px; color: var(--accent); }
.site-links { display: flex; gap: 18px; font-size: 13.5px; }
.site-links a { color: #ddd; text-decoration: none; }
.site-links a:hover { color: #fff; text-decoration: underline; }
.site-foot { padding: 32px 0 40px; color: var(--muted); font-size: 12.5px; }

/* 목록 */
.list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 36px 0 22px; flex-wrap: wrap; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 3px; color: var(--muted); }
.page-title { margin: 4px 0 6px; font-size: 32px; font-weight: 700; letter-spacing: -0.5px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 36px; padding: 0 15px; border-radius: 18px; border: 1px solid #cfcfca; background: #fff; color: #333; font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.chip:hover { border-color: var(--dark); }
.chip.on { background: var(--dark); border-color: var(--dark); color: #fff; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.card-img { aspect-ratio: 1 / 1; background: #ece8df; position: relative; display: flex; align-items: center; justify-content: center; color: #8a8478; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .ph { width: 40%; }
.card-tag { position: absolute; top: 10px; left: 10px; background: #fff; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 20px; color: var(--ink); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.4; }
.card-desc { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.counts { display: flex; gap: 10px; }
.count { display: inline-flex; align-items: center; gap: 3px; }
.heart-count .ic { color: var(--heart); }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }

@media (max-width: 1000px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 스마트폰: 사운드포스트 테마 목록처럼 한 줄씩 */
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .page-title { font-size: 26px; }
  .list-head { padding-top: 24px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; }
  .chip { flex: none; height: 34px; padding: 0 13px; }
  .cards { display: flex; flex-direction: column; gap: 0; }
  .card { flex-direction: row; gap: 14px; border: 0; border-bottom: 1px dotted #555; border-radius: 0; background: transparent; padding: 14px 0; }
  .card:hover { transform: none; box-shadow: none; }
  .card-img { width: 110px; flex: none; border: 1px solid var(--line); }
  .card-tag { display: none; }
  .card-body { padding: 0; gap: 4px; }
  .card-title { font-size: 16px; }
}

/* 글 내용 */
.detail { padding-top: 24px; padding-bottom: 20px; }
.back { display: inline-block; color: var(--ink-2); text-decoration: none; font-size: 13.5px; margin-bottom: 16px; }
.back:hover { text-decoration: underline; }
.detail-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 20px; background: #ece8df; }
.detail-title { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.3; }
.detail-summary { margin: 0; font-size: 16px; color: var(--ink-2); }
.reactions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.heart-btn { height: 44px; padding: 0 18px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e4b4bd; background: #fff5f7; color: #b3304a; border-radius: 22px; font-size: 14px; font-weight: 700; cursor: pointer; }
.heart-btn .ic { color: var(--heart); }
.heart-btn[aria-pressed="true"] { background: var(--heart); border-color: var(--heart); color: #fff; }
.heart-btn[aria-pressed="true"] .ic { color: #fff; fill: #fff; }
.heart-btn:disabled { opacity: .6; }
.comment-link { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13.5px; text-decoration: none; }
.shots { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.shots img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; font-size: 15.5px; line-height: 1.8; margin-bottom: 22px; }
.prose h2 { font-size: 19px; margin: 22px 0 6px; }
.prose h3 { font-size: 16.5px; margin: 18px 0 4px; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 22px; }
.prose a { color: #b3460f; }
.run-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.runs { display: flex; gap: 12px; }
.run { flex: 1; min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--dark); color: #fff; text-decoration: none; border-radius: var(--radius); font-size: 16px; font-weight: 700; padding: 8px 12px; text-align: center; }
.run:hover { background: #000; }
.run.off { background: #ececea; color: var(--muted); cursor: default; }
.hint { margin: 0; font-size: 12.5px; color: var(--muted); }
.app-box { margin-top: 8px; padding: 14px 16px; border: 1px dashed #cfcfca; border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; }
.store { min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--dark); border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 700; }
@media (max-width: 560px) {
  .detail-title { font-size: 26px; }
  .runs { flex-direction: column; }
  .prose { padding: 18px; }
}

/* 세 사이트 배너 */
.banners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.banner { min-height: 130px; border-radius: var(--radius); padding: 18px 18px 16px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.b-logo { font-size: 21px; font-weight: 700; letter-spacing: -0.5px; }
.b-logo.serif { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 23px; }
.b-logo.heavy { font-weight: 900; font-size: 20px; }
.b-line { font-size: 14px; line-height: 1.5; }
.b-go { margin-top: auto; font-size: 12.5px; font-weight: 700; }
.b-sp { background: var(--dark); color: #fff; }
.b-sp .b-go { color: #ff7a45; }
.b-fh { background: #fff; color: var(--ink); border: 1px solid var(--dark); }
.b-fh .b-go { color: var(--ink-2); }
.b-mb { background: #5f7480; color: #fff; }
@media (max-width: 760px) { .banners { grid-template-columns: 1fr; } .banner { min-height: 0; } }

/* 댓글 */
.section-title { font-size: 19px; margin: 0 0 14px; }
.comments { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.comment-form { border: 1px solid #cfcfca; border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.comment-form .row { display: flex; gap: 10px; }
.comment-form label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ink-2); }
.comment-form input, .comment-form textarea { border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; font-size: 15px; background: #fff; }
.comment-form input { height: 42px; }
.comment-form textarea { resize: vertical; min-height: 80px; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.form-msg { margin: 0; font-size: 13px; min-height: 1em; }
.form-msg.err { color: #b3261e; }
.form-msg.ok { color: #1f7a3a; }
.comment-list .comment { padding: 14px 0; border-bottom: 1px solid #eee; }
.comment-list .comment:last-child { border-bottom: 0; }
.comment.reply { margin: 10px 0 0 24px; padding: 12px 14px; background: var(--bg); border-radius: 8px; border-bottom: 0; }
.comment-head { display: flex; gap: 8px; align-items: center; font-size: 13.5px; flex-wrap: wrap; }
.comment-body { font-size: 14.5px; margin-top: 4px; white-space: normal; }
.badge-admin { font-size: 11.5px; padding: 2px 9px; border-radius: 10px; background: var(--dark); color: #fff; font-weight: 700; }
.link-btn { background: none; border: 0; padding: 4px 2px; color: var(--muted); font-size: 12.5px; cursor: pointer; text-decoration: underline; }
.comment-head .del-btn { margin-left: auto; }
.del-box { display: flex; gap: 6px; margin-top: 8px; }
.del-box input { height: 36px; border: 1px solid #cfcfca; border-radius: 6px; padding: 0 10px; width: 150px; }
.empty-comments { padding: 14px 0 0; }
@media (max-width: 560px) { .comment-form .row { flex-direction: column; } .comments { padding: 16px; } }

/* 버튼 */
.btn { min-height: 42px; padding: 0 18px; border: 1px solid var(--dark); background: #fff; border-radius: 8px; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; color: var(--ink); }
.btn.dark { background: var(--dark); color: #fff; font-weight: 700; }
.btn.dark:hover { background: #000; }
.btn.danger { border-color: #b3261e; color: #b3261e; }
.btn:disabled { opacity: .5; cursor: default; }

/* 관리자 */
.admin-nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.admin-nav a { color: #ddd; text-decoration: none; }
.admin-nav a:hover { color: #fff; text-decoration: underline; }
.admin-main { padding-top: 28px; padding-bottom: 60px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-top h1 { margin: 0; font-size: 24px; }
.admin-box { max-width: 420px; margin: 40px auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.admin-box h1 { margin: 0; font-size: 22px; }
.admin-box label, .editor label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.admin-box input, .editor input:not([type=checkbox]), .editor textarea { border: 1px solid #cfcfca; border-radius: 8px; padding: 10px 14px; font-size: 15px; font-weight: 400; background: #fff; }
.admin-box input, .editor input:not([type=checkbox]) { height: 46px; }
.err { color: #b3261e; margin: 0; }
.warn { color: #b3261e; font-weight: 700; }
.sort { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; font-size: 13.5px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid #eee; text-align: left; vertical-align: middle; }
.admin-table th { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.admin-table .num { text-align: right; }
.admin-table .actions a { margin-right: 8px; white-space: nowrap; }
.thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; background: #ece8df; display: block; }
.editor { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; display: flex; flex-direction: column; gap: 24px; max-width: 900px; }
.editor section { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid #eee; padding-top: 22px; }
.editor section:first-child { border-top: 0; padding-top: 0; }
.editor h2 { margin: 0; font-size: 15px; color: var(--muted); letter-spacing: 1px; }
.editor small { color: var(--muted); font-weight: 400; }
.editor textarea { min-height: 220px; line-height: 1.7; resize: vertical; }
.editor label.inline { display: grid; grid-template-columns: 120px 1fr; align-items: center; }
.editor label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.editor label.check input, .tag-opt input { width: 18px; height: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 14px; font-weight: 500; }
.tag-pick { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tag-pick legend { font-size: 14px; font-weight: 500; padding: 0; margin-bottom: 8px; }
.tag-opt { flex-direction: row !important; }
.tag-opt input { position: absolute; opacity: 0; }
.tag-opt span { height: 36px; padding: 0 16px; border-radius: 18px; border: 1px solid #ccc; display: inline-flex; align-items: center; font-weight: 400; font-size: 13.5px; cursor: pointer; }
.tag-opt input:checked + span { background: var(--dark); border-color: var(--dark); color: #fff; }
.tag-opt input:focus-visible + span { outline: 3px solid var(--accent); }
.card-pick { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.card-preview { width: 120px; height: 120px; border-radius: 8px; background: #ece8df; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
.card-preview img { width: 100%; height: 100%; object-fit: cover; }
.shot-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.shot { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #f3f1ec; }
.shot img { width: 100%; height: 110px; object-fit: cover; }
.shot-tools { display: flex; justify-content: space-between; padding: 4px 6px; font-size: 13px; }
.shot-tools button { background: none; border: 0; cursor: pointer; padding: 4px 6px; font-size: 13px; }
.shot.loading { height: 140px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
.editor-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid #eee; padding-top: 22px; }
.admin-comments { display: flex; flex-direction: column; gap: 10px; }
.admin-comment { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.admin-comment.mine { background: #faf9f6; }
.admin-comment-actions { display: flex; gap: 10px; margin-top: 6px; }
.danger-text { color: #b3261e; }
.reply-box { display: flex; gap: 8px; margin-top: 8px; }
.reply-box textarea { flex: 1; border: 1px solid #cfcfca; border-radius: 6px; padding: 8px 10px; min-height: 60px; }
code { background: #f1efe9; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
@media (max-width: 700px) {
  .editor { padding: 20px 16px; }
  .editor label.inline { grid-template-columns: 1fr; }
  .shot-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.field > .btn { align-self: flex-start; }

/* 한국어 / 영어 전환 */
.head-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.lang-switch { display: inline-flex; border: 1px solid #555; border-radius: 16px; overflow: hidden; font-size: 12px; font-weight: 700; }
.lang-switch a { color: #bbb; text-decoration: none; padding: 4px 10px; min-height: 24px; display: inline-flex; align-items: center; }
.lang-switch a:hover { color: #fff; }
.lang-switch a[aria-current="true"] { background: #fff; color: #222; }
