/* ===== 예측 마켓 상세 ===== */
.back-btn { background:none; border:none; color:#fff; font-size:22px; cursor:pointer; }
.header-title { font-weight:800; font-size:16px; }
.pmd-main { padding:0 16px 120px; }
.pmd-loading { padding:60px; text-align:center; color:#777; }

.pmd-hero { padding:16px 0 8px; }
.pmd-img { width:100%; max-height:220px; object-fit:cover; border-radius:16px; margin-bottom:12px; }
.pmd-cat { font-size:12px; color:#3356ff; font-weight:800; }

/* 크리에이터(작성자) */
.pmd-creator { display:flex; align-items:center; gap:11px; margin:12px 0 4px; }
.pmd-creator-av {
  width:44px; height:44px; border-radius:50%; flex:0 0 auto;
  display:flex; align-items:center; justify-content:center;
  font-size:18px; font-weight:800; color:#fff;
  background:linear-gradient(135deg,#4a7bff,#6d4bff);
  box-shadow:0 0 0 2px rgba(74,123,255,.25);
}
.pmd-creator-info { min-width:0; }
.pmd-creator-line { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.pmd-creator-name { font-size:15px; font-weight:800; color:#fff; }
.pmd-creator-lv {
  font-size:11px; font-weight:800; color:#ffd977;
  background:rgba(255,196,0,.14); padding:1px 7px; border-radius:8px;
}
.pmd-creator-tag {
  font-size:10.5px; font-weight:800; color:#bcd0ff;
  background:rgba(74,123,255,.18); border:1px solid rgba(74,123,255,.4);
  padding:1px 7px; border-radius:8px;
}
.pmd-creator-sub { font-size:11.5px; color:#8296ba; margin-top:2px; }

.pmd-q { font-size:20px; font-weight:900; line-height:1.35; margin:6px 0; }
.pmd-desc { font-size:13px; color:#aaa; line-height:1.5; }
.pmd-status { display:flex; flex-wrap:wrap; gap:12px; margin-top:10px; font-size:13px; }
.pmd-time { color:#ffb020; font-weight:800; }
.pmd-vol { color:#999; }
.pmd-resolved { font-weight:900; }
.pmd-resolved.yes { color:#3356ff; }
.pmd-resolved.no { color:#ff4f6e; }

.pmd-prob-big { margin:16px 0; padding:16px; background:#0d0d0d; border:1px solid #1c1c1c; border-radius:16px; }
.pmd-prob-num { display:flex; align-items:baseline; gap:8px; }
.pmd-prob-yes { font-size:34px; font-weight:900; color:#6d8bff; }
.pmd-prob-label { font-size:13px; color:#999; font-weight:700; }
.pmd-bar { height:10px; border-radius:999px; background:#ff4f6e; overflow:hidden; margin-top:12px; }
.pmd-bar-yes { height:100%; background:#3356ff; border-radius:999px 0 0 999px; }
.pmd-bar-legend { display:flex; justify-content:space-between; margin-top:8px; font-size:13px; font-weight:800; }
.c-yes { color:#6d8bff; } .c-no { color:#ff4f6e; }

.pmd-chart { margin:8px 0 16px; }
.pmd-chart-svg { width:100%; height:120px; display:block; }
.pmd-chart-cap { font-size:11px; color:#777; text-align:center; margin-top:4px; }
.pmd-chart-empty { padding:30px; text-align:center; color:#666; font-size:13px; background:#0a0a0a; border-radius:12px; }

.pmd-pos { margin:16px 0; padding:14px 16px; background:#0d0d0d; border:1px solid #1c1c1c; border-radius:16px; }
.pmd-pos-title { font-weight:800; margin-bottom:8px; }
.pmd-pos-row { display:flex; justify-content:space-between; padding:4px 0; font-size:14px; }
.pmd-pos-row.payout b { color:#3356ff; }
.pmd-pos-hint { font-size:12px; color:#888; margin-top:6px; }

.pmd-trade { margin:16px 0; padding:16px; background:#0d0d0d; border:1px solid #1c1c1c; border-radius:16px; }
.pmd-side-toggle { display:flex; gap:8px; margin-bottom:12px; }
.pmd-side { flex:1; padding:12px; border-radius:10px; background:#111; border:1px solid #2a2a2a; color:#aaa; font-weight:800; cursor:pointer; }
.pmd-side.yes.active { background:rgba(51,86,255,.18); border-color:#3356ff; color:#3356ff; }
.pmd-side.no.active { background:rgba(255,79,110,.18); border-color:#ff4f6e; color:#ff4f6e; }
.pmd-amount-row { display:flex; flex-direction:column; gap:8px; }
.pmd-amount { width:100%; padding:14px; border-radius:10px; background:#050505; border:1px solid #2a2a2a; color:#fff; font-size:16px; font-weight:700; }
.pmd-quick { display:flex; gap:6px; }
.pmd-quick button { flex:1; padding:8px; border-radius:8px; background:#161616; border:1px solid #2a2a2a; color:#ccc; font-weight:700; font-size:12px; cursor:pointer; }
.pmd-est { font-size:13px; color:#bbb; margin:12px 0; text-align:center; }
.pmd-buy { width:100%; padding:15px; border-radius:999px; border:none; font-weight:900; font-size:16px; color:#fff; cursor:pointer; background:#3356ff; }
.pmd-buy.no { background:#ff4f6e; }
.pmd-buy:disabled { opacity:.6; }

.pmd-closed { margin:16px 0; padding:16px; text-align:center; background:#0d0d0d; border:1px solid #1c1c1c; border-radius:16px; color:#ffb020; font-weight:700; font-size:14px; }

.pmd-resolve { margin:16px 0; padding:16px; background:#160f0f; border:1px solid #40251f; border-radius:16px; }
.pmd-resolve-title { font-weight:800; color:#ffb020; }
.pmd-resolve-hint { font-size:12px; color:#999; margin:6px 0 12px; }
.pmd-resolve-btns { display:flex; gap:8px; }
.pmd-rz { flex:1; padding:12px; border-radius:10px; border:none; font-weight:800; cursor:pointer; color:#fff; }
.pmd-rz.yes { background:#3356ff; } .pmd-rz.no { background:#ff4f6e; }

/* ===== 상세 탭 (댓글/보유자/포지션/활동) ===== */
.pmd-tabs { margin: 20px 0 8px; }
.pmd-tabbar { display: flex; gap: 4px; border-bottom: 1px solid #222; }
.pmd-tab {
  flex: 1; padding: 12px 4px; background: none; border: none;
  color: #888; font-weight: 800; font-size: 13px; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.pmd-tab.active { color: #fff; border-bottom-color: #dfe5f0; }
.pmd-tab-body { padding: 14px 0; }
.pmd-tab-loading, .pmd-tab-empty { padding: 30px; text-align: center; color: #777; font-size: 13px; }

/* 활동 피드 */
.pmd-feed { display: flex; flex-direction: column; gap: 2px; }
.pmd-feed-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid #141414; font-size: 13px; }
.pmd-feed-side { font-weight: 900; font-size: 11px; padding: 2px 7px; border-radius: 6px; flex: 0 0 auto; }
.pmd-feed-side.yes { background: #0a1233; color: #aac4ff; }
.pmd-feed-side.no { background: #1a0808; color: #ffaaaa; }
.pmd-feed-txt { flex: 1; color: #ccc; min-width: 0; }
.pmd-feed-time { color: #666; font-size: 11px; flex: 0 0 auto; }

/* 상위 보유자 */
.pmd-holders { display: flex; flex-direction: column; gap: 6px; }
.pmd-holder-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #0d0d0d; border: 1px solid #1a1a1a; border-radius: 10px; }
.pmd-holder-rank { width: 22px; text-align: center; color: #dfe5f0; font-weight: 900; }
.pmd-holder-name { flex: 1; font-weight: 700; font-size: 14px; }
.pmd-holder-side { font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 6px; }
.pmd-holder-side.yes { background: #0a1233; color: #aac4ff; }
.pmd-holder-side.no { background: #1a0808; color: #ffaaaa; }

/* 포지션 2열 */
.pmd-pos-cols { display: flex; gap: 10px; }
.pmd-pos-col { flex: 1; background: #0d0d0d; border: 1px solid #1a1a1a; border-radius: 12px; padding: 10px; }
.pmd-pos-col-head { font-weight: 800; font-size: 12px; padding: 4px 6px 8px; }
.pmd-pos-col-head.yes { color: #6d8bff; }
.pmd-pos-col-head.no { color: #ff6f86; }
.pmd-pos-item { display: flex; justify-content: space-between; padding: 6px; font-size: 13px; border-top: 1px solid #161616; }
.pmd-pos-item b { color: #eee; }
.pmd-pos-none { color: #666; font-size: 12px; padding: 6px; }

/* 배틀식 댓글 */
.pmd-cmt-compose { margin-bottom: 14px; }
.pmd-cmt-sidesel { display: flex; gap: 8px; margin-bottom: 8px; }
.pmd-cmt-side { flex: 1; padding: 9px; border-radius: 8px; background: #111; border: 1px solid #2a2a2a; color: #999; font-weight: 800; font-size: 13px; cursor: pointer; }
.pmd-cmt-side.yes.active { background: #0a1233; border-color: #3356ff; color: #aac4ff; }
.pmd-cmt-side.no.active { background: #1a0808; border-color: #ff4f6e; color: #ffaaaa; }

/* 후보 선택(다중) + YES/NO(단일) 통합 버튼 — 후보=팀 */
.pmd-cmt-picksel { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.pmd-cmt-picksel.shake { animation: selShake .45s; }
.pmd-cmt-pick {
  padding: 8px 12px; border-radius: 999px;
  background: #111; border: 1px solid #2a2a2a; color: #aab; font-weight: 800; font-size: 12.5px; cursor: pointer;
  transition: transform .1s ease;
}
.pmd-cmt-pick:active { transform: scale(.96); }
.pmd-cmt-pick.yes.active { background: #0a1233; border-color: #3356ff; color: #aac4ff; }
.pmd-cmt-pick.no.active  { background: #1a0808; border-color: #ff4f6e; color: #ffaaaa; }
.pmd-cmt-pick.etc.active { background: rgba(255,255,255,.08); border-color: #666; color: #ddd; }
.pmd-cmt-inputrow { display: flex; gap: 8px; }
.pmd-cmt-input { flex: 1; padding: 12px; border-radius: 10px; background: #050505; border: 1px solid #2a2a2a; color: #fff; font-size: 14px; }
.pmd-cmt-send { padding: 0 18px; border-radius: 10px; border: none; background: #dfe5f0; color: #111; font-weight: 900; cursor: pointer; }

.pmd-cmt-list { display: flex; flex-direction: column; gap: 10px; }
.pmd-cmt { padding: 12px 14px; background: #0d0d0d; border: 1px solid #1a1a1a; border-radius: 12px; border-left: 3px solid #2a2a2a; }
.pmd-cmt.yes { border-left-color: #3356ff; }
.pmd-cmt.no { border-left-color: #ff4f6e; }
.pmd-cmt-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pmd-cmt-flag { font-size: 10px; font-weight: 900; padding: 2px 6px; border-radius: 5px; }
.pmd-cmt-flag.yes { background: #0a1233; color: #aac4ff; }
.pmd-cmt-flag.no { background: #1a0808; color: #ffaaaa; }
.pmd-cmt-name { font-weight: 700; font-size: 13px; }
.pmd-cmt-time { color: #666; font-size: 11px; margin-left: auto; }
.pmd-cmt-body { font-size: 14px; line-height: 1.45; color: #eaeaea; }
.pmd-cmt-like { margin-top: 8px; background: none; border: none; color: #777; font-size: 12px; font-weight: 700; cursor: pointer; padding: 0; }
.pmd-cmt-like.on { color: #ff4f6e; }

/* ===== 다중 후보 선택기 (상세) ===== */
.pmd-oc-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.pmd-oc { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 12px 14px; border-radius: 12px; background: #0d0d0d; border: 1px solid #1e1e1e; color: #fff; cursor: pointer; }
.pmd-oc.on { border-color: #3356ff; background: #0a1020; }
.pmd-oc.win { border-color: #dfe5f0; }
.pmd-oc-label { flex: 0 0 40%; font-weight: 700; font-size: 14px; }
.pmd-oc-bar { flex: 1; height: 8px; border-radius: 999px; background: #1a1a1a; overflow: hidden; }
.pmd-oc-bar span { display: block; height: 100%; background: #3356ff; border-radius: 999px; }
.pmd-oc-pct { flex: 0 0 auto; font-weight: 900; color: #6d8bff; font-size: 14px; }

.pmd-trade-oc { font-size: 13px; color: #aac4ff; margin-bottom: 10px; }
.pmd-resolve-multi { display: flex; flex-direction: column; gap: 6px; }
.pmd-rz-oc { padding: 11px; border-radius: 10px; border: 1px solid #3a1414; background: #160f0f; color: #ffd; font-weight: 800; cursor: pointer; }
.pmd-rz-oc:hover { border-color: #3356ff; }

/* ===== 대댓글 ===== */
.pmd-cmt-actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.pmd-cmt-reply { background: none; border: none; color: #888; font-size: 12px; font-weight: 700; cursor: pointer; padding: 0; }
.pmd-cmt-reply:hover { color: #aac4ff; }
.pmd-cmt-replies { margin-top: 10px; padding-left: 12px; border-left: 2px solid #1e1e1e; display: flex; flex-direction: column; gap: 8px; }
.pmd-cmt.reply { padding: 10px 12px; background: #0a0a0a; border-radius: 10px; border-left-width: 3px; }
.pmd-cmt-replybox { margin-top: 8px; }
.pmd-cmt-inputrow.reply .pmd-cmt-input { padding: 10px; font-size: 13px; }
.pmd-cmt-inputrow.reply .pmd-cmt-send { padding: 0 14px; }

/* ===== 상세 헤더: 로고 중앙, 로그인 없음 ===== */
.header-inner .hb-side { flex: 0 0 56px; width: 56px; display: flex; align-items: center; }
.header-inner .back-btn.hb-side { justify-content: flex-start; color: #c9c9c9; font-size: 13px; font-weight: 400; }
.header-inner .logo { flex: 0 0 auto; }

/* 거래 패널 보유 포인트 */
.pmd-trade-bal { font-size: 13px; color: #dfe5f0; font-weight: 800; margin-bottom: 10px; text-align: right; }

/* @멘션 */
.pmd-mention { color: #aac4ff; font-weight: 700; }

/* 댓글 스레드 (답글 flat) */
.pmd-cmt-thread { margin-bottom: 12px; }
.pmd-cmt-thread .pmd-cmt-replies { margin-top: 8px; padding-left: 14px; border-left: 2px solid #1e1e1e; display: flex; flex-direction: column; gap: 8px; }

/* ===== 관련 마켓 ===== */
.pmd-related { margin: 24px 0 8px; }
.pmd-related-title { font-size: 16px; font-weight: 900; margin-bottom: 12px; }
.pmd-related-list { display: flex; flex-direction: column; gap: 8px; }
.pmd-related-item {
  display: block; text-decoration: none; color: #fff;
  background: #0d0d0d; border: 1px solid #1a1a1a; border-radius: 12px; padding: 13px 14px;
}
.pmd-related-item:active { border-color: #3356ff; }
.pmd-related-q { font-size: 14px; font-weight: 700; line-height: 1.4; }
.pmd-related-meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: #999; }
.pmd-related-pct { color: #6d8bff; font-weight: 800; }

/* ===== 댓글 더보기 / 답글 접기 ===== */
.pmd-cmt-more {
  width: 100%; margin-top: 12px; padding: 12px; border-radius: 10px;
  background: #111; border: 1px solid #2a2a2a; color: #aac4ff; font-weight: 800; font-size: 13px; cursor: pointer;
}
.pmd-reply-toggle {
  margin-top: 6px; background: none; border: none; color: #6d8bff; font-size: 12px; font-weight: 800; cursor: pointer; padding: 4px 0;
}

/* 마켓 저장 버튼 */
.pmd-save {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 999px;
  background: #14161d; color: #aeb7c9;
  border: 1px solid #2a2e3a;
  font-size: 12px; font-weight: 700; cursor: pointer;
}
.pmd-save .ic-bookmark { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pmd-save.on { border-color: #f5c518; color: #f5c518; background: rgba(245,197,24,.1); }
.pmd-save.on .ic-bookmark { fill: #f5c518; }
.pmd-share {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 999px;
  background: #14161d; color: #aeb7c9;
  border: 1px solid #2a2e3a;
  font-size: 12px; font-weight: 700; cursor: pointer;
}
.pmd-share .ic-share { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ============================================================
   댓글 UX 개선: 진영 칩 / 홀더 뱃지 / 포지션 잠금 / 선택 강제
============================================================ */
.pmd-side-chip {
  font-size: 10px; font-weight: 900; letter-spacing: .5px;
  padding: 2px 8px; border-radius: 7px;
}
.pmd-side-chip.yes { color: #aac4ff; background: rgba(51,86,255,.2); border: 1px solid rgba(109,139,255,.5); }
.pmd-side-chip.no  { color: #ffaaba; background: rgba(255,79,110,.16); border: 1px solid rgba(255,111,134,.5); }

/* 역할 뱃지 — 팀색(칩)과 분리. 홀더=골드(참여) / 관전=회색(미참여) */
.pmd-cmt-role {
  font-size: 9.5px; font-weight: 800;
  padding: 1px 7px; border-radius: 6px; white-space: nowrap;
}
.pmd-cmt-role.holder { color: #ffd977; background: rgba(255,196,0,.14); border: 1px solid rgba(255,196,0,.55); }
.pmd-cmt-role.watch  { color: #9a9aa0; background: rgba(255,255,255,.05); border: 1px dashed #3a3a3a; }

/* 컴포저 상태 */
.pmd-cmt-locked {
  padding: 10px 12px; border-radius: 10px; margin-bottom: 10px;
  font-size: 12.5px; font-weight: 700;
}
.pmd-cmt-locked.yes { color: #aac4ff; background: rgba(51,86,255,.12); border: 1px solid rgba(109,139,255,.45); }
.pmd-cmt-locked.no  { color: #ffaaba; background: rgba(255,79,110,.1); border: 1px solid rgba(255,111,134,.45); }
.pmd-cmt-ask { font-size: 12.5px; font-weight: 800; color: #dfe3ec; margin-bottom: 8px; }
.pmd-cmt-ask-sub { font-size: 11px; color: #777; font-weight: 600; }

/* 선택 상태가 입력창까지 이어지게 */
.pmd-cmt-compose.side-yes .pmd-cmt-input { border-color: #3356ff; box-shadow: 0 0 10px rgba(51,86,255,.25); }
.pmd-cmt-compose.side-no  .pmd-cmt-input { border-color: #ff4f6e; box-shadow: 0 0 10px rgba(255,79,110,.22); }
.pmd-cmt-send.yes { background: #3356ff; }
.pmd-cmt-send.no  { background: #ff4f6e; }

/* 미선택 게시 시 흔들기 */
.pmd-cmt-sidesel.shake { animation: selShake .45s; }
@keyframes selShake { 0%,100%{transform:translateX(0);} 25%{transform:translateX(-6px);} 50%{transform:translateX(6px);} 75%{transform:translateX(-3px);} }

/* 다중 마켓 댓글: 현재 후보(ACTIVE) 지지로 자동 작성 안내 */
.pmd-cmt-active {
  padding: 9px 12px; border-radius: 10px; margin-bottom: 8px;
  background: #0d0d0d; border: 1px solid #2a2a2a;
  font-size: 12.5px; font-weight: 700; color: #cfcfd6;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.pmd-cmt-active-hint { margin-left: auto; font-size: 10.5px; font-weight: 600; color: #7a7a82; }

/* 다중 마켓 댓글 후보 드롭다운 (입력창 위) */
.pmd-cmt-ocsel {
  width: 100%; padding: 10px 12px; margin-bottom: 8px;
  border-radius: 10px; background: #0d0d0d; border: 1px solid #2a2a2a;
  color: #fff; font-size: 13px; font-weight: 700; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.pmd-cmt-ocsel:focus { outline: none; border-color: #dfe5f0; }
.pmd-cmt-ocsel.shake { animation: selShake .45s; }
