/* =====================================================================
   예측마켓 (predictlist) 스킨 — 프리미엄 리디자인
   ===================================================================== */
.pm-list, .pm-view, .pm-write {
    --pm-bg:#f8fafc; --pm-surface:#ffffff; --pm-ink:#0f172a; --pm-sub:#64748b; --pm-mut:#94a3b8;
    --pm-line:#eef2f7; --pm-line2:#e2e8f0;
    --pm-accent:#4f46e5; --pm-accent2:#6366f1;
    --pm-yes:#16a34a; --pm-yes2:#22c55e; --pm-no:#dc2626; --pm-no2:#ef4444;
    --pm-r:16px; --pm-r-sm:12px;
    --pm-sh:0 1px 2px rgba(15,23,42,.04), 0 4px 16px rgba(15,23,42,.05);
    --pm-sh-lg:0 10px 30px rgba(15,23,42,.10);
    color:var(--pm-ink);
    -webkit-font-smoothing:antialiased;
    font-feature-settings:"tnum" 1;
}

/* ===== 버튼 ===== */
.pm-btn {
    display:inline-flex; align-items:center; gap:7px; height:42px; padding:0 18px;
    font-size:14px; font-weight:600; border-radius:var(--pm-r-sm);
    border:1.5px solid var(--pm-line2); background:#fff; color:#475569;
    cursor:pointer; text-decoration:none; transition:all .16s ease; white-space:nowrap;
}
.pm-btn:hover { background:#f1f5f9; color:var(--pm-ink); text-decoration:none; transform:translateY(-1px); }
.pm-btn--primary { background:linear-gradient(135deg,var(--pm-accent2),var(--pm-accent)); border-color:transparent; color:#fff; box-shadow:0 6px 16px rgba(79,70,229,.28); }
.pm-btn--primary:hover { color:#fff; filter:brightness(1.05); box-shadow:0 8px 22px rgba(79,70,229,.36); }
.pm-btn--ghost { background:#fff; }

/* ===== 상태 뱃지 ===== */
.pm-st {
    display:inline-flex; align-items:center; gap:6px; height:24px; padding:0 11px;
    font-size:11px; font-weight:700; letter-spacing:.02em; border-radius:999px; line-height:1;
}
.pm-st::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; opacity:.9; }
.pm-st--open { background:#dcfce7; color:#15803d; }
.pm-st--closed { background:#fef3c7; color:#b45309; }
.pm-st--resolved { background:#e0e7ff; color:#4338ca; }
.pm-st--cancelled { background:#e5e7eb; color:#6b7280; }
.pm-approval { display:inline-flex; align-items:center; height:24px; padding:0 9px; font-size:11px; font-weight:700; border-radius:999px; background:#fff7ed; }
.pm-result { display:inline-flex; align-items:center; height:24px; padding:0 11px; font-size:11px; font-weight:800; letter-spacing:.03em; border-radius:999px; line-height:1; }
.pm-result--yes { background:var(--pm-yes); color:#fff; }
.pm-result--no { background:var(--pm-no); color:#fff; }

/* ===== 확률 바 ===== */
.pm-bar { display:flex; height:10px; border-radius:999px; overflow:hidden; background:var(--pm-line2); box-shadow:inset 0 1px 2px rgba(15,23,42,.06); }
.pm-bar--lg { height:14px; }
.pm-bar__fill { height:100%; transition:width .5s cubic-bezier(.22,1,.36,1); }
.pm-bar__fill--yes { background:linear-gradient(90deg,var(--pm-yes2),var(--pm-yes)); }
.pm-bar__fill--no  { background:linear-gradient(90deg,var(--pm-no),var(--pm-no2)); }
.pm-bar__legend { display:flex; justify-content:space-between; align-items:center; margin-top:9px; font-size:13px; }
.pm-leg--yes { color:var(--pm-yes); font-weight:600; }
.pm-leg--yes strong, .pm-leg--no strong { font-size:15px; font-weight:800; }
.pm-leg--no  { color:var(--pm-no); font-weight:600; }
.pm-pool { color:var(--pm-sub); font-size:12px; }

/* ===== 목록 ===== */
.pm-list__top { display:flex; align-items:center; justify-content:space-between; padding:18px 0 16px; flex-wrap:wrap; gap:12px; }
.pm-list__title { font-size:20px; font-weight:800; letter-spacing:-.01em; display:flex; align-items:center; gap:9px; }
.pm-list__title i { color:var(--pm-accent); }

.pm-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.pm-card {
    position:relative; display:flex; flex-direction:column; background:var(--pm-surface);
    border:1px solid var(--pm-line); border-radius:var(--pm-r); padding:18px 18px 16px;
    text-decoration:none; color:inherit; box-shadow:var(--pm-sh);
    transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    overflow:hidden;
}
.pm-card::before { content:""; position:absolute; left:0; top:0; height:3px; width:100%;
    background:linear-gradient(90deg,var(--pm-yes2),var(--pm-no2)); opacity:0; transition:opacity .18s; }
.pm-card:hover { transform:translateY(-3px); box-shadow:var(--pm-sh-lg); border-color:#dbe2ec; text-decoration:none; color:inherit; }
.pm-card:hover::before { opacity:1; }
.pm-card--done { opacity:.78; }
.pm-card__topbar { display:flex; align-items:center; gap:7px; margin-bottom:12px; flex-wrap:wrap; }
/* 폴리마켓식 썸네일(끝이 둥근 정사각형) + 질문 헤드 */
.pm-card__head { display:flex; gap:12px; align-items:flex-start; margin-bottom:14px; }
.pm-card__thumb { flex:0 0 56px; width:56px; height:56px; border-radius:14px; overflow:hidden; background:#f1f5f9; }
.pm-card__thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.pm-card__thumb-ph { width:100%; height:100%; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,var(--pm-accent2),var(--pm-accent)); color:#fff; font-size:22px; }
.pm-card__headmain { flex:1; min-width:0; }
.pm-card__headmain .pm-card__topbar { margin-bottom:8px; }
.pm-card__headmain .pm-card__q { min-height:0; margin:0; -webkit-line-clamp:3; }
.pm-card__status { display:flex; justify-content:center; gap:6px; margin-top:12px; flex-wrap:wrap; }
.pm-card__q { font-size:15.5px; font-weight:700; line-height:1.45; margin:0 0 16px; min-height:45px; letter-spacing:-.01em;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.pm-card .pm-bar__legend { margin-top:8px; }
.pm-card__meta { display:flex; align-items:center; flex-wrap:wrap; row-gap:6px; gap:0; margin-top:14px; padding-top:12px; border-top:1px solid var(--pm-line); font-size:12px; color:var(--pm-mut); }
.pm-card__meta .pm-card__meta-st { gap:5px; }
.pm-card__meta span { display:inline-flex; align-items:center; gap:4px; }
.pm-card__meta span + span { margin-left:14px; padding-left:14px; border-left:1px solid var(--pm-line); }

/* 공지 */
.pm-notices { background:var(--pm-surface); border:1px solid var(--pm-line); border-radius:var(--pm-r-sm); padding:8px 14px; margin-bottom:14px; box-shadow:var(--pm-sh); }
.pm-notice { display:flex; align-items:center; gap:8px; padding:6px 0; font-size:14px; }
.pm-notice__badge { background:#fee2e2; color:#dc2626; font-size:11px; font-weight:700; border-radius:6px; padding:3px 9px; }
.pm-notice a { color:var(--pm-ink); text-decoration:none; font-weight:500; }
.pm-notice a:hover { color:var(--pm-accent); }

.pm-empty { text-align:center; padding:72px 20px; color:var(--pm-mut); background:var(--pm-surface); border:1px dashed var(--pm-line2); border-radius:var(--pm-r); }
.pm-empty i { font-size:44px; display:block; margin-bottom:14px; opacity:.6; }
.pm-empty p { margin:0 0 18px; font-size:15px; }

.pm-paging { display:flex; justify-content:center; padding:28px 0 8px; }
.pm-paging .pagination { display:flex; gap:4px; padding:0; margin:0; list-style:none; }
.pm-paging .page-item .page-link { min-width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center;
    border:1px solid var(--pm-line2); border-radius:10px; color:var(--pm-sub); text-decoration:none; font-weight:600; background:#fff; transition:all .15s; }
.pm-paging .page-item .page-link:hover { border-color:var(--pm-accent); color:var(--pm-accent); }
.pm-paging .page-item.active .page-link { background:var(--pm-accent); border-color:var(--pm-accent); color:#fff; box-shadow:0 4px 12px rgba(79,70,229,.3); }

.pm-search { display:flex; gap:7px; justify-content:center; padding:18px 0; }
.pm-search select, .pm-search input { height:42px; border:1.5px solid var(--pm-line2); border-radius:10px; padding:0 14px; font-size:14px; background:#fff; color:var(--pm-ink); }
.pm-search input:focus, .pm-search select:focus { outline:none; border-color:var(--pm-accent); box-shadow:0 0 0 3px rgba(79,70,229,.12); }
.pm-search button { height:42px; padding:0 18px; border:none; background:var(--pm-ink); color:#fff; border-radius:10px; cursor:pointer; font-weight:600; }
.pm-search button:hover { background:#1e293b; }

/* ===== 상세 ===== */
.pm-view { max-width:760px; margin:0 auto; }
.pm-view__head { padding:6px 0 20px; border-bottom:1px solid var(--pm-line); margin-bottom:20px; }
.pm-view__statline { display:flex; gap:7px; align-items:center; margin-bottom:14px; flex-wrap:wrap; }
.pm-view__q { font-size:25px; font-weight:800; line-height:1.35; margin:0 0 14px; letter-spacing:-.02em; }
.pm-view__by { display:flex; align-items:center; gap:10px; font-size:13px; color:var(--pm-sub); flex-wrap:wrap; }
.pm-by-label { font-weight:600; }
.pm-view__by .sv_member { display:inline-flex; align-items:center; gap:7px; color:var(--pm-ink); font-weight:700; text-decoration:none; }
.pm-view__by .profile_img { display:inline-flex; }
.pm-view__by .profile_img img { width:28px; height:28px; border-radius:50%; object-fit:cover; border:1px solid var(--pm-line2); }
.pm-view__by strong { color:var(--pm-ink); }
.pm-view__date { color:var(--pm-mut); display:inline-flex; align-items:center; gap:5px; }

/* 확률 히어로 패널 */
.pm-panel { background:var(--pm-surface); border:1px solid var(--pm-line); border-radius:var(--pm-r); padding:22px 24px; margin-bottom:18px; box-shadow:var(--pm-sh); }
.pm-hero { display:grid; grid-template-columns:auto 1fr auto; gap:20px; align-items:center; }
.pm-hero__side { text-align:center; min-width:78px; }
.pm-hero__pct { display:flex; align-items:baseline; justify-content:center; gap:1px; line-height:1; }
.pm-hero__pct strong { font-size:38px; font-weight:800; letter-spacing:-.03em; }
.pm-hero__pct span { font-size:17px; font-weight:700; opacity:.6; }
.pm-hero__lbl { margin-top:5px; font-size:12px; font-weight:800; letter-spacing:.08em; }
.pm-hero__side--yes { color:var(--pm-yes); }
.pm-hero__side--no { color:var(--pm-no); }
.pm-hero__center { min-width:0; }
.pm-hero__pool { margin-top:11px; text-align:center; font-size:12.5px; color:var(--pm-sub); }
.pm-hero__pool strong { color:var(--pm-ink); font-weight:700; }

/* 베팅 패널 */
.pm-bet { background:var(--pm-surface); border:1px solid var(--pm-line); border-radius:var(--pm-r); padding:20px; margin-bottom:22px; box-shadow:var(--pm-sh); }
.pm-bet__balance { font-size:13px; color:var(--pm-sub); margin-bottom:14px; text-align:right; }
.pm-bet__balance strong { color:var(--pm-accent); font-weight:800; font-size:15px; }
.pm-bet__picks { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:16px; }
.pm-pick { display:flex; flex-direction:column; align-items:center; gap:5px; padding:18px 16px;
    border:2px solid var(--pm-line2); border-radius:14px; background:#fff; cursor:pointer; transition:all .15s ease; position:relative; }
.pm-pick span { font-size:20px; font-weight:800; letter-spacing:.02em; }
.pm-pick em { font-size:13px; font-style:normal; font-weight:600; color:var(--pm-mut); }
.pm-pick--yes:hover { border-color:var(--pm-yes2); background:#f0fdf4; transform:translateY(-1px); }
.pm-pick--yes.on { border-color:var(--pm-yes); background:#f0fdf4; box-shadow:0 0 0 4px rgba(22,163,74,.14); }
.pm-pick--yes span { color:var(--pm-yes); }
.pm-pick--no:hover { border-color:var(--pm-no2); background:#fef2f2; transform:translateY(-1px); }
.pm-pick--no.on { border-color:var(--pm-no); background:#fef2f2; box-shadow:0 0 0 4px rgba(220,38,38,.14); }
.pm-pick--no span { color:var(--pm-no); }
.pm-pick.on::after { content:"\2713"; position:absolute; top:9px; right:11px; font-size:12px; font-weight:800; }
.pm-pick--yes.on::after { color:var(--pm-yes); }
.pm-pick--no.on::after { color:var(--pm-no); }

.pm-bet__amount { margin-bottom:16px; }
.pm-bet__amount input { width:100%; height:52px; border:1.5px solid var(--pm-line2); border-radius:12px;
    padding:0 16px; font-size:18px; font-weight:700; outline:none; color:var(--pm-ink); transition:all .15s; }
.pm-bet__amount input::placeholder { font-weight:500; color:var(--pm-mut); font-size:15px; }
.pm-bet__amount input:focus { border-color:var(--pm-accent); box-shadow:0 0 0 3px rgba(79,70,229,.12); }
.pm-bet__quick { display:flex; gap:7px; margin-top:10px; flex-wrap:wrap; }
.pm-bet__quick button { height:34px; padding:0 13px; border:1px solid var(--pm-line2); background:#f8fafc;
    border-radius:9px; font-size:12px; font-weight:700; color:#475569; cursor:pointer; transition:all .15s; }
.pm-bet__quick button:hover { background:#eef2ff; border-color:var(--pm-accent); color:var(--pm-accent); }

.pm-btn--bet { width:100%; height:54px; justify-content:center; border:none; border-radius:13px;
    background:linear-gradient(135deg,var(--pm-accent2),var(--pm-accent)); color:#fff; font-size:16px; font-weight:800;
    box-shadow:0 8px 20px rgba(79,70,229,.30); transition:all .16s; letter-spacing:-.01em; }
.pm-btn--bet:hover:not(:disabled) { filter:brightness(1.06); transform:translateY(-1px); box-shadow:0 10px 26px rgba(79,70,229,.4); }
.pm-btn--bet:disabled { background:#cbd5e1; box-shadow:none; cursor:not-allowed; }
.pm-bet__hint { text-align:center; margin:12px 0 0; font-size:13px; font-weight:600; min-height:18px; }
.pm-bet__closed { text-align:center; padding:24px 18px; color:var(--pm-sub); font-size:14.5px; background:#f8fafc; border-radius:12px; }
.pm-bet__closed i { display:block; font-size:26px; margin-bottom:10px; opacity:.55; }
.pm-bet__closed a { color:var(--pm-accent); font-weight:700; }
.pm-bet__mine { display:flex; align-items:center; gap:9px; margin-top:16px; padding-top:16px; border-top:1px solid var(--pm-line); font-size:13px; color:var(--pm-sub); flex-wrap:wrap; }
.pm-mine { font-weight:800; border-radius:999px; padding:5px 12px; font-size:12.5px; }
.pm-mine--yes { background:#f0fdf4; color:var(--pm-yes); }
.pm-mine--no { background:#fef2f2; color:var(--pm-no); }

.pm-view__body { margin-bottom:22px; }
.pm-view__bodytit { font-size:16px; font-weight:800; margin:0 0 14px; display:flex; align-items:center; gap:8px; letter-spacing:-.01em; }
.pm-view__bodytit i { color:var(--pm-accent); }
.pm-view__con { line-height:1.75; font-size:15px; word-break:break-word; color:#334155; }

.pm-admin { display:flex; align-items:center; gap:9px; padding:14px 16px; background:#fffbeb;
    border:1px solid #fde68a; border-radius:14px; margin-bottom:22px; flex-wrap:wrap; }
.pm-admin__lbl { font-weight:800; color:#92400e; font-size:13px; display:inline-flex; align-items:center; gap:6px; }
.pm-view__btns { display:flex; gap:9px; margin-bottom:22px; flex-wrap:wrap; }

.pm-discuss { margin-top:24px; padding-top:8px; }

/* ===== 토론(댓글) ===== */
.pm-discuss .cmt_btn { display:none; }                 /* 중복 토글 버튼 숨김 */
.pm-discuss #bo_vc { display:block !important; margin:0 0 6px; }
.pm-discuss #bo_vc > h2 { font-size:13px; color:var(--pm-mut); margin:0 0 6px; font-weight:700; }
.pm-discuss #bo_vc article { display:flex; gap:12px; padding:14px 2px; border-top:1px solid var(--pm-line); margin:0; }
.pm-discuss #bo_vc article:first-of-type { border-top:none; }
/* 아바타 사진 + 레벨아이콘 스택 (자유게시판 free-community 비율 복제: 38px 사진 / 28px 배지 하단중앙 -5px 겹침) */
.pm-discuss .pf_img { position:relative; flex:0 0 38px; width:38px; align-self:flex-start; padding-bottom:5px; line-height:0; }
.pm-discuss .pf_img .lv-badge-wrap { width:38px !important; height:38px; border-radius:50%; overflow:hidden; display:inline-block; }
.pm-discuss .pf_img .lv-profile-img, .pm-discuss .pf_img img { width:38px; height:38px; border-radius:50%; object-fit:cover; }
.pm-discuss .pf_img .xp-icon { position:absolute; bottom:-5px; left:50%; transform:translateX(-50%); z-index:2; margin:0; line-height:0; }
.pm-discuss .pf_img .xp-icon img { height:28px !important; width:auto !important; display:block; filter:drop-shadow(0 0.8px 1px rgba(0,0,0,.15)); }
.pm-discuss .cm_wrap { flex:1; min-width:0; }
.pm-discuss .cm_wrap header { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:13px; color:var(--pm-sub); margin-bottom:5px; }
.pm-discuss .cm_wrap header > h2 { display:none; }     /* 스크린리더용 제목 숨김 */
/* 작성자: 닉네임(클릭형) + 레벨아이콘(xp-icon). 아바타 사진은 .pf_img 열에서 lv_badge_split3 가 렌더 */
.pm-discuss .cm_wrap header .sv_member { display:inline-flex; align-items:center; gap:6px; color:var(--pm-ink); font-weight:700; text-decoration:none; }
.pm-discuss .cm_wrap header .member, .pm-discuss .cm_wrap header strong { color:var(--pm-ink); font-weight:700; }
.pm-discuss .bo_vc_hdinfo { color:var(--pm-mut); font-size:12px; }
.pm-discuss .cmt_contents { font-size:14.5px; line-height:1.65; color:#334155; word-break:break-word; }
.pm-discuss .cmt_contents p { margin:0; }
.pm-discuss #bo_vc_empty { text-align:center; color:var(--pm-mut); padding:22px 0; }
.pm-discuss .bo_vl_opt { position:relative; margin-left:auto; }
.pm-discuss .btn_cm_opt { background:none; border:none; color:var(--pm-mut); cursor:pointer; padding:4px 8px; }
.pm-discuss .bo_vc_act { position:absolute; right:0; top:100%; background:var(--pm-surface); border:1px solid var(--pm-line2); border-radius:9px; box-shadow:var(--pm-sh-lg); list-style:none; padding:4px; margin:0; display:none; min-width:96px; z-index:5; }
.pm-discuss .bo_vc_act li a { display:block; padding:7px 12px; font-size:13px; color:var(--pm-ink); text-decoration:none; border-radius:6px; }
.pm-discuss .bo_vc_act li a:hover { background:#f1f5f9; }

.pm-discuss #bo_vc_w { display:block; margin-top:14px; padding-top:16px; border-top:2px solid var(--pm-line); }
.pm-discuss #bo_vc_w > h2 { font-size:14px; color:var(--pm-ink); margin:0 0 10px; font-weight:800; }
.pm-discuss #bo_vc_w textarea { width:100%; min-height:88px; border:1.5px solid var(--pm-line2); border-radius:12px; padding:12px 14px; font-size:14px; outline:none; resize:vertical; color:var(--pm-ink); font-family:inherit; line-height:1.6; box-sizing:border-box; }
.pm-discuss #bo_vc_w textarea:focus { border-color:var(--pm-accent); box-shadow:0 0 0 3px rgba(79,70,229,.12); }
.pm-discuss .bo_vc_w_wr { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px; flex-wrap:wrap; }
.pm-discuss .bo_vc_w_info { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.pm-discuss .bo_vc_w_info input { height:40px; border:1.5px solid var(--pm-line2); border-radius:9px; padding:0 12px; font-size:14px; background:#fff; color:var(--pm-ink); }
.pm-discuss .btn_confirm { display:flex; align-items:center; gap:14px; margin-left:auto; }
.pm-discuss .secret_cm { font-size:13px; color:var(--pm-sub); display:inline-flex; align-items:center; gap:5px; }
.pm-discuss #char_cnt { font-size:12px; color:var(--pm-mut); }
.pm-discuss .btn_submit { height:44px; padding:0 22px; border:none; border-radius:11px; background:linear-gradient(135deg,var(--pm-accent2),var(--pm-accent)); color:#fff; font-weight:800; font-size:14px; cursor:pointer; box-shadow:0 6px 16px rgba(79,70,229,.28); transition:all .15s; }
.pm-discuss .btn_submit:hover { filter:brightness(1.06); transform:translateY(-1px); }
html.dark-mode .pm-discuss #bo_vc_w textarea, html.dark-mode .pm-discuss .bo_vc_w_info input { background:#0f172a; border-color:var(--pm-line2); color:var(--pm-ink); }
html.dark-mode .pm-discuss .bo_vc_act { background:#0f172a; }

/* ===== 작성 폼 ===== */
.pm-write { max-width:680px; margin:0 auto; }
.pm-write__head { margin-bottom:22px; }
.pm-write__h { font-size:22px; font-weight:800; margin:0 0 6px; letter-spacing:-.02em; }
.pm-write__desc { color:var(--pm-sub); font-size:14px; margin:0; }
.pm-write__field { margin-bottom:20px; }
.pm-write__field > label { display:block; font-weight:700; font-size:14px; margin-bottom:9px; }
.pm-req { color:var(--pm-no); font-size:11px; margin-left:4px; }
.pm-opt { color:var(--pm-mut); font-size:11px; margin-left:4px; }
.pm-input { width:100%; height:48px; border:1.5px solid var(--pm-line2); border-radius:12px; padding:0 15px; font-size:15px; outline:none; color:var(--pm-ink); transition:all .15s; }
.pm-input:focus { border-color:var(--pm-accent); box-shadow:0 0 0 3px rgba(79,70,229,.12); }
.pm-hint { font-size:12px; color:var(--pm-mut); margin:7px 0 0; }
.pm-write__notice { background:#eef2ff; border:1px solid #c7d2fe; color:#3730a3; border-radius:12px; padding:13px 15px; font-size:13px; margin-bottom:20px; line-height:1.6; }
.pm-write__btns { display:flex; gap:10px; justify-content:flex-end; }

/* ===== 다크모드 ===== */
html.dark-mode .pm-list, html.dark-mode .pm-view, html.dark-mode .pm-write {
    --pm-bg:#0b1220; --pm-surface:#161e2e; --pm-ink:#e8edf5; --pm-sub:#94a3b8; --pm-mut:#64748b;
    --pm-line:#243042; --pm-line2:#2f3c52;
    --pm-sh:0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
    --pm-sh-lg:0 12px 32px rgba(0,0,0,.5);
}
html.dark-mode .pm-btn { background:#1e293b; color:#cbd5e1; }
html.dark-mode .pm-btn:hover { background:#243042; }
html.dark-mode .pm-pick, html.dark-mode .pm-bet__amount input, html.dark-mode .pm-input,
html.dark-mode .pm-search input, html.dark-mode .pm-search select, html.dark-mode .pm-paging .page-link { background:#0f172a; border-color:var(--pm-line2); color:var(--pm-ink); }
html.dark-mode .pm-pick--yes:hover, html.dark-mode .pm-pick--yes.on { background:rgba(22,163,74,.12); }
html.dark-mode .pm-pick--no:hover, html.dark-mode .pm-pick--no.on { background:rgba(220,38,38,.12); }
html.dark-mode .pm-bet__closed, html.dark-mode .pm-bet__quick button { background:#0f172a; }
html.dark-mode .pm-bar { background:#2f3c52; }
html.dark-mode .pm-admin { background:rgba(146,64,14,.15); border-color:#78350f; }
html.dark-mode .pm-admin__lbl { color:#fbbf24; }
html.dark-mode .pm-write__notice { background:rgba(79,70,229,.12); border-color:#3730a3; color:#c7d2fe; }
html.dark-mode .pm-mine--yes { background:rgba(22,163,74,.14); }
html.dark-mode .pm-mine--no { background:rgba(220,38,38,.14); }

/* ===== 반응형 ===== */
@media (max-width:1024px) {
    .pm-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:767px) {
    .pm-grid { grid-template-columns:1fr; gap:13px; }
    .pm-view__q { font-size:21px; }
    .pm-hero { gap:12px; }
    .pm-hero__side { min-width:62px; }
    .pm-hero__pct strong { font-size:30px; }
    .pm-panel { padding:18px 16px; }
}

/* 상세 대표 이미지 */
.pm-view__media { margin:0 0 16px; border-radius:14px; overflow:hidden; line-height:0; background:#0f172a0d; }
.pm-view__media img { display:block; width:100%; height:auto; max-height:420px; object-fit:cover; }

/* ============================================
   상단 배너 (자유게시판 fb-banner와 동일 사이즈 · 예측마켓 톤)
   ============================================ */
.pm-banner { padding: 0; background: transparent; border: none; border-radius: 0; margin-bottom: 14px; }
.pm-banner-inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 28px 32px;
	background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 55%, #4c1d95 100%);
	border-radius: 16px;
	overflow: hidden;
	min-height: 100px;
}
.pm-banner-deco { position: absolute; border-radius: 50%; opacity: 0.1; background: #fff; }
.pm-banner-deco--1 { width: 180px; height: 180px; top: -60px; right: 60px; }
.pm-banner-deco--2 { width: 100px; height: 100px; bottom: -30px; right: -10px; }
.pm-banner-content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; }
.pm-banner-badge {
	display: inline-flex; align-items: center; width: fit-content;
	padding: 3px 10px; background: rgba(255,255,255,0.2); border-radius: 20px;
	font-size: 10.5px; font-weight: 700; color: #fff; letter-spacing: 1.5px; backdrop-filter: blur(4px);
}
.pm-banner-title { font-size: 17px; font-weight: 800; color: #fff; margin: 0; letter-spacing: -0.5px; line-height: 1.35; }
.pm-banner-desc { font-size: 12.5px; font-weight: 400; color: rgba(255,255,255,0.78); margin: 0; letter-spacing: -0.2px; }
.pm-banner-icon-area {
	position: relative; z-index: 1;
	display: flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; min-width: 52px;
	background: rgba(255,255,255,0.15); border-radius: 14px; color: #fff; font-size: 24px; backdrop-filter: blur(4px);
}
@media (max-width: 575px) {
	.pm-banner-inner { padding: 22px 20px; min-height: 85px; }
	.pm-banner-title { font-size: 15px; }
	.pm-banner-icon-area { width: 44px; height: 44px; min-width: 44px; font-size: 20px; }
}
