/* 게시판 표, 글 상세, 글쓰기, 아카이브, 액터 카드, 관리자 화면, 사이드바 */

/* 게시판 표 (카페형) */
.board-wrap{ overflow-x:auto; }
table.board{ width:100%; border-collapse: collapse; font-size:14px; font-variant-numeric: tabular-nums; min-width: 560px; }
table.board thead th{
  font-family: var(--f-head); font-weight:400; font-size:11.5px; letter-spacing:.2em; color: var(--gold);
  text-align:center; padding: 11px 8px; border-bottom:1px solid var(--line); background: rgba(var(--bg-rgb),.2); white-space:nowrap;
}
table.board td{ padding: 11px 8px; border-bottom:1px solid var(--line-2); color: var(--text-2); text-align:center; white-space:nowrap; }
table.board td.subject{ text-align:left; white-space:normal; color: var(--text); }
table.board tbody tr{ cursor:pointer; }
table.board tbody tr:hover{ background: rgba(var(--text-rgb),.04); }
table.board tbody tr.pinned td{ background: rgba(var(--accent-rgb),.07); }
table.board tbody tr.static{ cursor:default; }
table.board .no{ color: var(--text-3); font-size:12.5px; width:52px; }
@media (max-width: 620px){
  table.board{ min-width:0; }
  table.board .col-by, table.board .col-hit, table.board .col-visit, table.board .col-tw{ display:none; }
}
.tag{
  display:inline-block; font-family: var(--f-head); font-size:10.5px; letter-spacing:.14em; padding: 2px 7px;
  border:1px solid var(--line); color: var(--gold); border-radius:2px; margin-right:8px; vertical-align:1px;
}
.tag.must{ color: var(--accent); border-color: rgba(var(--accent-rgb),.5); }
.tag.pv{ color: var(--sub); border-color: rgba(var(--sub-rgb),.6); }
.tag.img{ color: var(--sub); border-color: rgba(var(--sub-rgb),.6); }
.tag.done{ color: var(--sub); border-color: rgba(var(--sub-rgb),.6); }   /* 답변완료 */
.tag.wait{ color: var(--gold); border-color: rgba(var(--gold-rgb),.5); } /* 답변대기 */
.tag.lock{ color: var(--text-3); border-color: var(--line-2); }         /* 비밀글 */
.cmt{ color: var(--accent); font-size:12.5px; margin-left:6px; }

/* 게시판 안내문 (질문게시판·이벤트 신청 상단) */
.board-hint{
  margin:0; padding: 11px 16px; border-bottom:1px solid var(--line);
  font-size:13px; color: var(--text-2); background: rgba(var(--text-rgb),.02);
}
.board-hint b{ color: var(--gold); font-weight:400; }

/* 질문게시판 · 운영진 답변 */
.qna-answer{
  margin: 22px 0 4px; padding: 15px 18px 17px; border:1px solid rgba(var(--accent-rgb),.35);
  border-left:3px solid var(--accent); background: rgba(var(--accent-rgb),.05); border-radius:2px;
}
.qna-answer.empty{ border-color: var(--line); border-left-color: var(--line-2); background: rgba(var(--text-rgb),.02); }
.qa-head{ display:flex; align-items:center; gap:12px; margin-bottom:9px; }
.qa-mark{ font-family: var(--f-head); font-size:13px; letter-spacing:.18em; color: var(--accent); }
.qna-answer.empty .qa-mark{ color: var(--text-3); }
.qa-by{ font-size:12px; color: var(--text-3); }
.qa-head .btn{ margin-left:auto; }
.qa-body{ font-size:14.5px; line-height:1.85; color: var(--text); white-space:pre-wrap; word-break:break-word; }
.qa-none{ color: var(--text-3); }
.qa-form textarea{ width:100%; margin-bottom:10px; }

/* ── 갤러리 ─────────────────────────────────────────────── */
.gal-filter{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.gal-chip{
  font-family: var(--f-head); font-size:12.5px; letter-spacing:.1em; color: var(--text-2);
  border:1px solid var(--line); background:none; padding:6px 14px; border-radius:2px; transition: color .15s, border-color .15s, background .15s;
}
.gal-chip:hover{ color: var(--text); border-color: var(--line-2); }
.gal-chip[aria-current="true"]{ color: var(--accent); border-color: rgba(var(--accent-rgb),.5); background: rgba(var(--accent-rgb),.08); }

.gal-compose{ border:1px solid var(--line); background: rgba(var(--text-rgb),.02); padding:16px; margin-bottom:18px; border-radius:2px; }
.gal-compose-row{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:12px; }
.gal-compose-row > div:first-child{ flex:0 0 160px; }
.gal-compose-cap{ flex:1 1 220px; }

.gal-grid{ columns: 2; column-gap: 14px; }
@media (max-width:560px){ .gal-grid{ columns:1; } }
.gal-card{ break-inside: avoid; margin:0 0 14px; border:1px solid var(--line); background: var(--panel); border-radius:2px; overflow:hidden; }
.gal-imgs img{ width:100%; display:block; cursor: zoom-in; }
.gal-imgs img + img{ border-top:1px solid var(--line); }
.gal-foot{ padding:10px 12px; }
.gal-cap{ margin:0 0 8px; font-size:13.5px; line-height:1.7; color: var(--text); white-space:pre-wrap; word-break:break-word; }
.gal-meta{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.gal-by{ font-size:11.5px; color: var(--text-3); }
.gal-tools{ margin-left:auto; display:flex; gap:4px; }
.gal-edit{ padding:12px; }

/* 글 상세 */
.post-view{ padding: 22px 24px 26px; }
.pv-head{ border-bottom:1px solid var(--line); padding-bottom:14px; margin-bottom:18px; }
.pv-title{ font-family: var(--f-head); font-weight:400; font-size:24px; line-height:1.4; margin:6px 0 8px; color: var(--text); text-wrap: balance; }
.pv-meta{ display:flex; gap:14px; flex-wrap:wrap; font-size:12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.pv-meta b{ font-weight:400; color: var(--text-2); font-family: var(--f-head); }
.pv-body{ white-space:pre-wrap; line-height:2; color: var(--text); font-size:15px; max-width: 68ch; }
.pv-imgs{ display:grid; gap:12px; margin-top:20px; }
.pv-imgs img{ border:1px solid var(--line); }
.pv-foot{ display:flex; gap:8px; margin-top:24px; padding-top:16px; border-top:1px solid var(--line-2); flex-wrap:wrap; }

/* 글쓰기 */
.editor{ display:grid; gap:14px; padding: 20px 22px 24px; }
.editor .two{ display:grid; grid-template-columns: 150px 1fr; gap:12px; }
@media (max-width:560px){ .editor .two{ grid-template-columns:1fr; } }
.editor textarea.inp{ min-height: 260px; font-size:15px; line-height:1.95; }
.dropzone{
  border:1px dashed var(--line); padding: 14px; text-align:center; font-size:13px; color: var(--text-3);
  cursor:pointer; border-radius:2px; transition: border-color .18s, background .18s;
}
.dropzone:hover{ border-color: var(--gold); background: rgba(var(--gold-rgb),.06); color: var(--text-2); }
.dropzone input{ display:none; }
.previews{ display:grid; grid-template-columns: repeat(auto-fill, minmax(110px,1fr)); gap:10px; }
.previews figure{ margin:0; position:relative; aspect-ratio:1; overflow:hidden; border:1px solid var(--line); }
.previews img{ width:100%; height:100%; object-fit:cover; }
.previews button{
  position:absolute; top:4px; right:4px; width:22px; height:22px; border-radius:50%;
  border:0; background: rgba(var(--bg-rgb),.75); color: var(--text); font-size:13px; line-height:1;
}
.editor-actions{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

/* 아카이브 타임라인 */
.feed{ display:flex; flex-direction:column; }
.post{ display:grid; grid-template-columns: 46px minmax(0,1fr); gap: 13px; padding: 17px 18px; border-bottom:1px solid var(--line-2); }
.post:last-child{ border-bottom:0; }
.post:hover{ background: rgba(var(--text-rgb),.025); }
.av{
  width:46px; height:46px; border-radius:50%; display:grid; place-items:center;
  font-family: var(--f-brush); font-size:26px; line-height:1; color: var(--text);
  border:1px solid var(--line); background: linear-gradient(145deg, var(--av-a), var(--av-b));
}
:root[data-mode="light"] .av{ color:#FCF6E9; }
.post-head{ display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; margin-bottom:3px; }
.p-name{ font-family: var(--f-head); font-size:15px; color: var(--text); cursor:pointer; }
.p-name:hover{ color: var(--gold); }
.p-name .seal{ color: var(--accent); font-size:11px; margin-left:4px; }
.p-handle, .p-time{ font-size:12.5px; color: var(--text-3); }
.p-body{ margin:0; color: var(--text); line-height:1.9; white-space:pre-wrap; }
.p-body .mention{ color: var(--sub); }
.p-body .hash{ color: var(--gold); }
.p-media{
  margin-top:11px; border:1px solid var(--line); border-radius:2px; aspect-ratio: 16/9; display:grid; place-items:center;
  background: repeating-linear-gradient(135deg, rgba(var(--text-rgb),.028) 0 1px, transparent 1px 12px), linear-gradient(160deg, var(--banner-a), var(--banner-b));
  font-family: var(--f-head); font-size:11px; letter-spacing:.18em; color: rgba(var(--gold-rgb),.75);
}
.p-media img{ width:100%; height:100%; object-fit:cover; }
.p-acts{ display:flex; gap:22px; margin-top:11px; font-size:12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; align-items:center; }
.p-acts span, .p-like{ display:inline-flex; gap:6px; align-items:center; }
.p-acts .ico{ color: var(--gold); opacity:.75; font-style:normal; }
.p-like{ background:none; border:0; padding:0; font: inherit; color: var(--text-3); transition: color .15s; }
.p-like:not(:disabled):hover{ color: var(--accent); }
.p-like:not(:disabled):hover .ico, .p-like.on .ico{ color: var(--accent); opacity:1; }
.p-like.on{ color: var(--accent); }
.p-like:disabled{ cursor:default; }
.p-tools{ margin-left:auto; display:inline-flex; gap:2px; }
.p-del{
  background:none; border:1px solid transparent; color: var(--text-3);
  width:24px; height:24px; border-radius:2px; font-size:12px; line-height:1; opacity:.55; transition: all .15s;
}
.post:hover .p-del{ opacity:1; }
.p-del:hover{ color: var(--accent); border-color: rgba(var(--accent-rgb),.5); }
.feed-edit{ display:grid; gap:10px; margin-top:4px; }
/* 첨부 사진 — 1장은 크게, 2~4장은 격자 */
.p-media-grid{ display:grid; gap:4px; margin-top:11px; border:1px solid var(--line); border-radius:2px; overflow:hidden; }
.p-media-grid img{ width:100%; height:100%; object-fit:cover; aspect-ratio: 16/9; }
.p-media-grid.n2{ grid-template-columns:1fr 1fr; } .p-media-grid.n2 img{ aspect-ratio: 4/5; }
.p-media-grid.n3{ grid-template-columns:1fr 1fr; } .p-media-grid.n3 img:first-child{ grid-row: span 2; aspect-ratio:auto; } .p-media-grid.n3 img{ aspect-ratio: 8/5; }
.p-media-grid.n4{ grid-template-columns:1fr 1fr; } .p-media-grid.n4 img{ aspect-ratio: 8/5; }

/* 관리자 작성창 (트위터식) */
.compose{ display:grid; grid-template-columns: 46px minmax(0,1fr); gap:13px; padding: 16px 18px 14px; border-bottom:1px solid var(--line); background: rgba(var(--accent-rgb),.05); }
.compose-body{ display:grid; gap:10px; }
.compose-top{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.cp-who{ width:auto; min-width:220px; font-family: var(--f-head); font-size:13px; padding:6px 10px; }
.cp-text{ min-height:0; font-size:15px; line-height:1.9; resize:none; overflow:hidden; }
.compose-foot{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.cp-attach{
  cursor:pointer; font-family: var(--f-head); font-size:11.5px; letter-spacing:.14em; color: var(--gold);
  border:1px solid var(--line); padding:5px 11px; border-radius:2px; transition: background .15s;
}
.cp-attach:hover{ background: rgba(var(--gold-rgb),.12); }
.cp-attach input{ display:none; }
.cp-count{ margin-left:auto; font-size:11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
@media (max-width:560px){ .compose{ grid-template-columns: 1fr; } .compose > .av{ display:none; } .cp-who{ width:100%; } }

/* 액터 프로필 — 증명사진형 카드 */
.actors{ display:grid; grid-template-columns: repeat(auto-fill, minmax(170px,1fr)); gap:14px; }
@media (max-width:560px){ .actors{ grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px; } }
.actor{
  position:relative; aspect-ratio: 3/4; border:1px solid var(--line); overflow:hidden; cursor:pointer;
  background: linear-gradient(170deg, var(--banner-a), var(--banner-b));
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.actor:hover{ transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow); }
/* ▼ 증명사진 자리: .portrait 안에 <img src="actor-일화.jpg"> 넣으면 배경으로 꽉 참 ▼ */
.actor .portrait{ position:absolute; inset:0; }
.actor .portrait img{ width:100%; height:100%; object-fit:cover; object-position: top center; }
.actor .ph{
  position:absolute; inset:0; display:grid; place-items:center;
  font-family: var(--f-brush); font-size: clamp(90px, 18vw, 150px); color: rgba(var(--text-rgb),.08); line-height:1;
}
.actor .ph small{
  position:absolute; top:10px; left:10px; font-family: var(--f-head); font-size:9.5px; letter-spacing:.14em;
  color: rgba(var(--gold-rgb),.7); border:1px dashed rgba(var(--gold-rgb),.4); padding:2px 7px;
}
.actor .veil{
  position:absolute; inset:auto 0 0 0; height:62%;
  background: linear-gradient(180deg, transparent, rgba(var(--bg-rgb),.82) 55%, rgba(var(--bg-rgb),.95));
}
:root[data-mode="light"] .actor .veil{ background: linear-gradient(180deg, transparent, rgba(252,246,233,.85) 55%, rgba(252,246,233,.97)); }
.actor .info{ position:absolute; left:16px; right:16px; bottom:14px; }
.actor h4{ margin:0; font-family: var(--f-brush); font-size: clamp(30px, 4vw, 40px); line-height:1.05; color: var(--text); font-weight:400; }
.actor .hanja{ font-family: var(--f-head); font-size:11px; letter-spacing:.3em; color: var(--gold); margin:4px 0 8px; }
.actor .tagline{ margin:0 0 10px; font-size:12.5px; color: var(--text-2); line-height:1.6; }
.chip{
  display:inline-block; font-family: var(--f-head); font-size:10.5px; letter-spacing:.18em; color: var(--sub);
  border:1px solid rgba(var(--sub-rgb),.55); padding:2px 9px; border-radius:2px;
}

/* 액터 상세 */
.actor-hero{ display:grid; grid-template-columns: minmax(200px, 300px) minmax(0,1fr); gap:24px; padding: 22px; }
@media (max-width:700px){ .actor-hero{ grid-template-columns: 1fr; } }
.portrait-lg{
  position:relative; aspect-ratio:3/4; border:1px solid var(--line); overflow:hidden;
  background: linear-gradient(170deg, var(--banner-a), var(--banner-b));
}
.portrait-lg img{ width:100%; height:100%; object-fit:cover; object-position: top center; }
.portrait-lg .ph{ position:absolute; inset:0; display:grid; place-items:center; font-family: var(--f-brush); font-size:160px; color: rgba(var(--text-rgb),.08); }
.portrait-lg .ph small{ position:absolute; top:10px; left:10px; font-family: var(--f-head); font-size:9.5px; letter-spacing:.14em; color: rgba(var(--gold-rgb),.7); border:1px dashed rgba(var(--gold-rgb),.4); padding:2px 7px; }
.ah-name{ font-family: var(--f-brush); font-size: clamp(44px, 7vw, 64px); line-height:1; margin:0; color: var(--text); font-weight:400; }
.ah-hanja{ font-family: var(--f-head); font-size:12px; letter-spacing:.34em; color: var(--gold); margin:6px 0 14px; }
.ah-meta{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:18px; font-size:12.5px; color: var(--text-3); }
.ah-credit{ margin:-10px 0 16px; font-family: var(--f-head); font-size:11.5px; letter-spacing:.2em; color: var(--gold); }
.ah-intro{
  position:relative; padding: 16px 18px 16px 22px; border-left:2px solid var(--accent);
  background: rgba(var(--text-rgb),.03); white-space:pre-wrap; line-height:2; color: var(--text); font-size:14.5px;
}
.ah-intro::before{ content:"「"; position:absolute; left:6px; top:2px; font-family: var(--f-brush); font-size:22px; color: var(--gold); }
.ah-sign{ text-align:right; font-family: var(--f-brush); font-size:26px; color: var(--text-2); margin:8px 0 0; }
.sec-title{
  font-family: var(--f-head); font-weight:400; font-size:13px; letter-spacing:.26em; color: var(--gold);
  margin: 0 0 12px; padding-bottom:8px; border-bottom:1px solid var(--line-2); display:flex; gap:10px; align-items:center;
}
.sec-title::before{ content:"◆"; color: var(--accent); font-size:9px; }
.tl{ list-style:none; margin:0; padding:0 0 0 18px; border-left:1px solid var(--line); }
.tl li{ position:relative; padding: 0 0 14px 14px; font-size:14px; color: var(--text); }
.tl li::before{ content:""; position:absolute; left:-23px; top:9px; width:9px; height:9px; border-radius:50%; background: var(--panel); border:1.5px solid var(--gold); }
.tl li:first-child::before{ background: var(--accent); border-color: var(--accent); }
.tl .d{ font-family: var(--f-head); font-size:12px; letter-spacing:.1em; color: var(--gold); display:block; font-variant-numeric: tabular-nums; }
.two-col{ display:grid; grid-template-columns: 1fr 1fr; gap:22px; padding: 4px 22px 22px; }
@media (max-width:700px){ .two-col{ grid-template-columns:1fr; } }
.actor-edit-grid{ display:grid; grid-template-columns: minmax(180px, 240px) minmax(0,1fr); gap:20px; }
@media (max-width:700px){ .actor-edit-grid{ grid-template-columns:1fr; } }

/* 관리자 */
.adm-stats{ display:grid; grid-template-columns: repeat(auto-fit, minmax(128px,1fr)); gap:12px; margin-bottom:18px; }
.adm-stat{ border:1px solid var(--line); padding:14px; background: rgba(var(--bg-rgb),.2); }
.adm-stat .n{ font-family: var(--f-head); font-size:27px; color: var(--text); font-variant-numeric: tabular-nums; line-height:1.2; }
.adm-stat .k{ font-family: var(--f-head); font-size:10.5px; letter-spacing:.2em; color: var(--gold); margin-top:3px; }
.adm-note{ font-size:12.5px; color: var(--text-3); margin: 0 0 16px; line-height:1.8; }
.badge{ display:inline-block; font-family: var(--f-head); font-size:10px; letter-spacing:.14em; padding:1px 7px; border-radius:2px; border:1px solid var(--line); color: var(--text-2); }
.badge.admin{ color: var(--accent); border-color: rgba(var(--accent-rgb),.5); }
.badge.pending{ color: var(--gold); border-color: rgba(var(--gold-rgb),.5); }
.badge.ok{ color: var(--sub); border-color: rgba(var(--sub-rgb),.6); }
.pend-count{ display:inline-grid; place-items:center; min-width:18px; height:18px; padding:0 5px; border-radius:9px; background: var(--accent); color: var(--accent-ink); font-size:11px; font-family: var(--f-head); margin-left:6px; vertical-align:2px; }
.adm-form{ display:grid; grid-template-columns: 1fr 1fr auto; gap:10px; align-items:end; }
@media (max-width:620px){ .adm-form{ grid-template-columns:1fr; } }
.run-form{ display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; }
.run-form .span2{ grid-column: span 2; }
@media (max-width:620px){ .run-form{ grid-template-columns:1fr; } .run-form .span2{ grid-column: auto; } }
.run-form input[type="date"], .run-form input[type="time"]{ font-family: var(--f-head); letter-spacing:.04em; color-scheme: dark; }
:root[data-mode="light"] .run-form input[type="date"], :root[data-mode="light"] .run-form input[type="time"]{ color-scheme: light; }
.rounds-edit{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.round-chip{ position:relative; display:inline-flex; align-items:center; }
.round-chip input{
  width:104px; background: rgba(var(--text-rgb),.05); border:1px solid var(--line);
  border-radius:2px; color: var(--text); font-family: var(--f-head); font-size:13px;
  padding:7px 26px 7px 11px; text-align:center;
}
.round-chip input:focus{ border-color: var(--gold); }
.round-chip button{
  position:absolute; right:4px; background:none; border:0; color: var(--text-3);
  font-size:12px; line-height:1; padding:3px; border-radius:2px;
}
.round-chip button:hover{ color: var(--accent); }
.round-add{
  background:none; border:1px dashed var(--line); color: var(--gold);
  font-family: var(--f-head); font-size:12px; letter-spacing:.14em;
  padding:8px 14px; border-radius:2px;
}
.round-add:hover{ border-color: var(--gold); background: rgba(var(--gold-rgb),.1); }
.rounds-none{ font-size:12.5px; color: var(--text-3); }
.run-preview{
  margin-top:14px; padding:14px 16px; border:1px dashed var(--line); background: rgba(var(--gold-rgb),.05);
  display:grid; grid-template-columns: 1fr auto; gap:12px; align-items:center;
}
@media (max-width:620px){ .run-preview{ grid-template-columns:1fr; } }
.run-preview .big{ font-family: var(--f-brush); font-size:30px; line-height:1.1; color: var(--text); }
.run-preview .sm{ font-size:12.5px; color: var(--text-3); }
.empty{ padding: 34px 18px; text-align:center; color: var(--text-3); font-size:13.5px; }

/* 사이드바 */
.side .win__body{ padding:15px; }
.who{ display:flex; align-items:center; gap:10px; font-size:13px; color: var(--text-2); }
.who .av{ width:36px; height:36px; font-size:20px; }
.who b{ color: var(--text); font-family: var(--f-head); font-weight:400; font-size:14.5px; }
.btn-out{ width:100%; margin-top:12px; background:none; border:1px solid var(--line); color: var(--text-3); font-family: var(--f-head); font-size:11px; letter-spacing:.2em; padding:8px; border-radius: var(--radius); }
.btn-out:hover{ color: var(--accent); border-color: rgba(var(--accent-rgb),.45); }
.run-info dl{ margin:0; font-size:13.5px; }
.run-info dt{ font-family: var(--f-head); font-size:10.5px; letter-spacing:.2em; color: var(--gold); margin-top:12px; }
.run-info dt:first-child{ margin-top:0; }
.run-info dd{ margin:3px 0 0; color: var(--text); }
.run-info dd small{ display:block; color: var(--text-3); font-size:12px; }
.countdown{ margin-top:15px; padding-top:14px; border-top:1px solid var(--line-2); text-align:center; }
.countdown .cd-num{ font-family: var(--f-brush); font-size:46px; line-height:1; color: var(--accent); font-variant-numeric: tabular-nums; }
.countdown .cd-lbl{ font-family: var(--f-head); font-size:10.5px; letter-spacing:.24em; color: var(--text-3); display:block; margin-top:5px; }
.side-search{ display:flex; gap:8px; }
.side-search .inp{ font-size:13px; padding:8px 10px; }
.side-search button{ flex:0 0 auto; background: rgba(var(--text-rgb),.05); border:1px solid var(--line); color: var(--gold); font-family: var(--f-head); font-size:11px; letter-spacing:.2em; padding:0 13px; border-radius: var(--radius); }
.side-search button:hover{ background: rgba(var(--gold-rgb),.16); }
.mini-actors{ list-style:none; margin:0; padding:0; }
.mini-actors li{ display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--line-2); cursor:pointer; }
.mini-actors li:hover .m-name{ color: var(--gold); }
.mini-actors li:last-child{ border-bottom:0; }
.mini-actors .av{ width:32px; height:32px; font-size:18px; }
.mini-actors .m-name{ font-family: var(--f-head); font-size:13.5px; color: var(--text); }
.mini-actors .m-handle{ font-size:11.5px; color: var(--text-3); }
.mini-actors .dot{ margin-left:auto; width:6px; height:6px; border-radius:50%; background: var(--sub); box-shadow: 0 0 8px rgba(var(--sub-rgb),.8); }

/* 푸터 */
footer{ position:relative; z-index:1; margin-top: 26px; border-top:1px solid var(--line); background: rgba(var(--bg-rgb),.34); padding: 34px var(--gut) calc(env(safe-area-inset-bottom, 0px) + 34px); }
.foot-in{ max-width:1120px; margin:0 auto; text-align:center; }
.foot-label{ font-family: var(--f-head); font-size:10.5px; letter-spacing:.42em; color: var(--gold); margin:0 0 10px; text-transform: uppercase; }
.foot-dates{ font-family: var(--f-brush); font-size: clamp(34px, 7vw, 58px); line-height:1.15; margin:0; color: var(--text); }
.foot-time{ font-family: var(--f-head); font-size:13px; letter-spacing:.2em; color: var(--text-2); margin:8px 0 0; }
.foot-rule{ width:56px; height:1px; background: var(--gold); margin:22px auto; opacity:.6; }
.foot-fine{ font-size:12px; color: var(--text-3); margin:0; line-height:2; }
.foot-seal{ display:inline-grid; place-items:center; width:40px; height:40px; border:1.5px solid var(--accent); color: var(--accent); font-family: var(--f-head); font-size:15px; border-radius:3px; margin-top:16px; }


/* ── 확인창 (브라우저 기본 confirm 대신 — 샌드박스에서도 동작) ── */
.ask-back{
  position:fixed; inset:0; z-index:90; display:grid; place-items:center;
  padding: calc(env(safe-area-inset-top,0px) + 20px) var(--gut) calc(env(safe-area-inset-bottom,0px) + 20px);
  background: rgba(var(--bg-rgb),.72); animation: askFade .16s ease-out;
}
@keyframes askFade{ from{ opacity:0 } to{ opacity:1 } }
.ask-box{
  position:relative; width:100%; max-width:420px; background: var(--panel);
  border:1px solid var(--line); box-shadow: var(--shadow); padding: 26px 26px 20px;
  animation: askIn .18s ease-out;
}
@keyframes askIn{ from{ opacity:0; transform: translateY(-8px) } to{ opacity:1; transform:none } }
.ask-box::before{ content:""; position:absolute; inset:6px; border:1px solid var(--line-2); pointer-events:none; }
.ask-title{ font-family: var(--f-brush); font-size:28px; line-height:1.3; margin:0 0 8px; color: var(--text); }
.ask-msg{ margin:0 0 20px; font-size:14px; color: var(--text-2); line-height:1.9; white-space:pre-line; }
.ask-acts{ display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap; }


/* 「이 기기에서 로그인 유지」 — 글씨가 왼쪽, 체크박스가 바로 옆.
   inline-flex 라서 글자 길이만큼만 차지하고 왼쪽에 붙습니다. */
.keep-login{
  display:inline-flex; align-items:center; gap:8px;
  margin-top:10px; font-size:12.5px; color: var(--text-3); cursor:pointer;
  user-select:none;
}
.keep-login:hover{ color: var(--text-2); }
.keep-login input{
  flex:0 0 auto; width:14px; height:14px; margin:0;
  accent-color: var(--accent); cursor:pointer;
}
/* 사이트 편집 — 그림 미리보기 */
.img-slot{ position:relative; border:1px solid var(--line); overflow:hidden; background: linear-gradient(160deg, var(--banner-a), var(--banner-b)); display:grid; place-items:center; }
.img-slot img{ width:100%; height:100%; object-fit:cover; }
.img-slot .ph{ font-family: var(--f-head); font-size:11px; letter-spacing:.16em; color: rgba(var(--gold-rgb),.75); }
.img-slot.banner-ratio{ aspect-ratio: 1600/460; }
.img-slot.bg-ratio{ aspect-ratio: 16/9; }
.edit-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:18px; }
@media (max-width:700px){ .edit-grid{ grid-template-columns:1fr; } }
.slot-acts{ display:flex; gap:8px; margin-top:8px; flex-wrap:wrap; align-items:center; }
.switch{ display:inline-flex; align-items:center; gap:10px; font-size:13.5px; color: var(--text); cursor:pointer; }
.switch input{ width:36px; height:20px; appearance:none; background: rgba(var(--text-rgb),.15); border-radius:10px; position:relative; transition: background .2s; cursor:pointer; }
.switch input::after{ content:""; position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%; background: var(--text-2); transition: transform .2s, background .2s; }
.switch input:checked{ background: var(--accent); }
.switch input:checked::after{ transform: translateX(16px); background: var(--accent-ink); }
/* 백업 */
.backup-box textarea{ font-family: ui-monospace, Menlo, Consolas, monospace; font-size:11.5px; line-height:1.5; min-height:120px; }
.meter{ height:6px; background: rgba(var(--text-rgb),.1); border-radius:3px; overflow:hidden; margin-top:6px; }
.meter i{ display:block; height:100%; background: var(--sub); }
.meter i.warn{ background: var(--gold); } .meter i.full{ background: var(--accent); }
/* 이미지 확대 보기 */
.lightbox{ position:fixed; inset:0; z-index:95; background: rgba(0,0,0,.86); display:grid; place-items:center; padding: 24px; cursor: zoom-out; animation: askFade .16s ease-out; }
.lightbox img{ max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.zoomable{ cursor: zoom-in; }
.pv-body a, .p-body a{ color: var(--sub); text-decoration: underline; text-underline-offset: 3px; }
.ask-box .inp{ margin-bottom:16px; }
#toast{ position:fixed; left:50%; bottom: calc(env(safe-area-inset-bottom,0px) + 28px); transform: translate(-50%, 20px); z-index:99;
  background: var(--panel-2); color: var(--text); border:1px solid var(--line); box-shadow: var(--shadow);
  font-family: var(--f-head); font-size:13px; letter-spacing:.08em; padding: 10px 18px; opacity:0; pointer-events:none; transition: opacity .2s, transform .2s; }
#toast.on{ opacity:1; transform: translate(-50%, 0); }

/* 페이지 나누기 */
.pager{ display:flex; gap:6px; justify-content:center; align-items:center; flex-wrap:wrap; padding:16px; border-top:1px solid var(--line-2); }
.pager button{
  min-width:32px; height:32px; padding:0 9px; background:none; border:1px solid var(--line);
  color: var(--text-2); font-family: var(--f-head); font-size:13px; border-radius:2px;
  font-variant-numeric: tabular-nums; transition: all .15s;
}
.pager button:hover:not(:disabled){ color: var(--text); border-color: var(--gold); background: rgba(var(--gold-rgb),.1); }
.pager button[aria-current="true"]{ color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.pager button:disabled{ opacity:.3; cursor:default; }
.pager .gap{ color: var(--text-3); padding:0 2px; }
.pager .info{ margin-left:8px; font-size:12px; color: var(--text-3); }
/* 새 글 N */
.new-badge{
  display:inline-block; margin-left:6px; font-family: var(--f-head); font-size:9.5px; line-height:1;
  color: var(--accent-ink); background: var(--accent); padding:2px 4px; border-radius:2px; vertical-align:2px;
}
/* 임시저장 */
.draft-note{
  display:flex; gap:10px; align-items:center; flex-wrap:wrap;
  border:1px dashed rgba(var(--gold-rgb),.45); background: rgba(var(--gold-rgb),.08);
  padding:9px 13px; font-size:12.5px; color: var(--text-2); margin-bottom:2px;
}
.draft-tick{ margin-left:auto; font-size:11.5px; color: var(--text-3); }
/* 영상 */
.embed{ margin-top:18px; }
.embed-frame{ position:relative; aspect-ratio:16/9; border:1px solid var(--line); background:#000; overflow:hidden; }
.embed-frame iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.embed-block{
  aspect-ratio:16/9; border:1px solid var(--line); display:grid; place-items:center; text-align:center; gap:10px;
  background: linear-gradient(160deg, var(--banner-a), var(--banner-b)); padding:20px;
}
.embed-block .k{ font-family: var(--f-head); font-size:12px; letter-spacing:.16em; color: var(--gold); }
.embed-block .d{ font-size:12.5px; color: var(--text-3); max-width:46ch; line-height:1.8; }
/* 회원 검색·정렬 */
.user-tools{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:12px; }
.user-tools .inp{ flex:1 1 180px; min-width:0; font-size:13px; padding:8px 11px; }
.user-tools select.inp{ flex:0 0 auto; width:auto; font-family: var(--f-head); }
table.board th.sortable{ cursor:pointer; user-select:none; }
table.board th.sortable:hover{ color: var(--text); }
table.board th .arw{ opacity:.5; font-size:9px; }
/* 저장 공간 설정 */
.cap-form{ display:flex; gap:8px; align-items:flex-end; flex-wrap:wrap; }
.cap-form .inp{ width:110px; text-align:right; font-variant-numeric: tabular-nums; }
.cap-form select.inp{ width:auto; text-align:left; font-family: var(--f-head); }
