/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%;
    background: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

body {
    background: #000;
}

#app {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

/* ==========================================================
   HEADER
========================================================== */
.header {
    width: 100%;
    background: #000;
    border-bottom: 1px solid #111;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    height: 54px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-btn {
    color: #fff;
    border: none;
    background: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.back-text {
    font-size: 13px;
    color: #ccc;
}

.more-header-btn {
    background: none;
    border: none;
    font-size: 26px;
    color: #fff;
    cursor: pointer;
}

.logo {
    width: 86px;
}

/* ==========================================================
   ISSUE HERO
========================================================== */
.issue-hero {
    padding: 20px 16px 14px;
}

.issue-category-time {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #888;
}

#issue-title {
    margin-top: 6px;
    font-size: 22px;
    font-weight: 900;
    color: #fff;
}

#issue-desc {
    margin-top: 6px;
    font-size: 14px;
    color: #bbb;
    line-height: 1.4;
}

.issue-author {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #ddd;
}

.follow-btn {
    padding: 5px 12px;
    font-size: 11px;
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
}

/* ==========================================================
   MEDIA (4:5 세로형)
========================================================== */
.issue-media {
    width: 100%;
    aspect-ratio: 4 / 5;
    position: relative;
    overflow: hidden;
    background: #111;
    margin-top: 12px;
    flex-shrink: 0;
}

/* 영상은 인스타 피드 추천 세로형 4:5 (1080x1350)
   .issue-media 정의가 파일 뒤쪽에 하나 더 있어 우선순위 확보용 복합 선택자 사용 */
.issue-media.issue-media--video {
    aspect-ratio: 9 / 16;   /* 인스타처럼 세로 영상 전체 표시(잘림 없음) */
}

.issue-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.issue-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 전체 화면 보기 배지 — 글자 없이 아이콘만(26.9.19 사장님: 「릴스·쇼츠 단어 자체를 빼, 사람들은 UX 로 안다」) */
.vid-reels-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: 0; line-height: 0;
    font-weight: 700;
    padding: 6px; display: inline-flex;
    border-radius: 999px;
    z-index: 3;
    pointer-events: none;
}

/* 플레이 오버레이 */
.issue-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
}
.issue-play-overlay.hidden { display: none; }
.issue-play-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}
.issue-play-tri {
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid #fff;
    margin-left: 4px;
}
.issue-vid-dur {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 5px;
}
.issue-vid-mute,
.issue-media--video .vid-mute,
.issue-slide--video .vid-mute {
    position: absolute;
    bottom: 10px;
    right: 10px;   /* 오른쪽 아래로 통일(26.9.20) */
    background: rgba(0,0,0,0.55);
    border: none;
    color: #fff;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: transform .12s ease;
}
.issue-media--video .vid-mute:active,
.issue-slide--video .vid-mute:active { transform: scale(.88); }
.issue-media--video .vid-mute svg,
.issue-slide--video .vid-mute svg { width: 17px; height: 17px; display: block; }
/* 캐러셀 영상 슬라이드 — 영상이 슬라이드를 꽉 채움 */
.issue-slide .issue-cvid { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }

/* 캐러셀 */
.issue-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.issue-slides {
    display: flex;
    height: 100%;
    transition: transform .28s ease;
}
.issue-slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    position: relative;
}
.issue-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.issue-arr {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.issue-arr.l { left: 8px; }
.issue-arr.r { right: 8px; }
.issue-c-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 2;
}
.issue-c-dot {
    width: 5px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255,255,255,0.3);
    transition: all .2s;
}
.issue-c-dot.on { background: #fff; width: 14px; }
.issue-c-cnt {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 9px;
    padding: 2px 7px;
    border-radius: 5px;
    font-weight: 700;
    z-index: 2;
}

/* 구 .issue-thumb 하위 호환 */
.issue-thumb { display: none; }

/* ==========================================================
   진영 버튼 (커스텀 라벨)
========================================================== */
.faction-btns {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}
.faction-btn {
    flex: 1;
    padding: 13px 8px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: none;
    line-height: 1.35;
    word-break: keep-all;
    transition: transform .1s, background .15s;
}
.faction-btn:active { transform: scale(.97); }
.faction-btn-a {
    background: #0a1233;
    color: #aac4ff;
    border: 1px solid #1a3a8a;
}
.faction-btn-b {
    background: #1a0808;
    color: #ffaaaa;
    border: 1px solid #8a1a1a;
}
.faction-btn-a.voted {
    background: #3356ff;
    color: #fff;
    border-color: #3356ff;
}
.faction-btn-b.voted {
    background: #ff4f6e;
    color: #fff;
    border-color: #ff4f6e;
}
.faction-btn.disabled { opacity: .6; pointer-events: none; }

/* 이슈 액션바 (좋아요/저장/공유) */
.issue-actions { display: flex; gap: 8px; padding: 2px 16px 14px; }
.ia-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: 12px;
  color: #cfd3db; font-size: 13px; font-weight: 700; font-family: inherit; padding: 11px 0; cursor: pointer;
  transition: transform .1s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.ia-btn svg { width: 20px; height: 20px; }
.ia-btn:active { transform: scale(.97); }
#issue-like-btn.on { color: #ff4d67; border-color: rgba(255,77,103,.5); background: rgba(255,77,103,.1); }
#issue-like-btn.on svg { fill: #ff4d67; stroke: #ff4d67; }
#issue-save-btn.on { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); }
#issue-save-btn.on svg { fill: #fff; }

/* ==========================================================
   SUMMARY
========================================================== */
.issue-explain {
    margin: 22px 16px 0;
    padding: 16px;
    background: linear-gradient(180deg, #0e0f14, #0b0c10);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
}

.white-title {
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -.2px;
}
.issue-explain .white-title { margin-bottom: 10px; }

.issue-explain p {
    font-size: 14px;
    color: #ddd;
    line-height: 1.55;
}

/* ==========================================================
   VOTE SECTION
========================================================== */
.vote-section {
    margin-top: 32px;
    padding: 0 16px;
}

.vote-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.vote-percent {
    margin-top: 8px;
    font-size: 13px;
    color: #aaa;
    display: flex;
    justify-content: space-between;
}

.vote-buttons {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.btn-pro, .btn-con {
    flex: 1;
    padding: 14px 0;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    color: #fff;
}

.btn-pro {
    background: #1d2c7a;
    border: 1px solid #3356ff;
}

.btn-con {
    background: #6e1a1a;
    border: 1px solid #ff4444;
}

/* ================================
   SUPPORT ACTIONS (FINAL)
================================ */

.support-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* ================================
   SUPPORT SECTION WRAP (FIX)
================================ */
/* SUPPORT HEADER */
.support-header {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
}

/* SUPPORT STATS */
.support-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 13px;
  color: #bbb;
}

/* EMPTY STATUS FIX */
.support-status-text:empty {
  display: none;
}

/* ================================
   SUPPORT STATUS BAR
================================ */

.support-bar {
  width: 100%;
  height: 16px;
  background: #111;
  border-radius: 12px;
  border: 1px solid #222;
  overflow: hidden;
  display: flex;
  margin-top: 12px;
}

.sup-pro {
  height: 100%;
  background: linear-gradient(90deg, #6fb2ff, #4da3ff);
  transition: width .3s ease;
}

.sup-con {
  height: 100%;
  background: linear-gradient(90deg, #ff7b7b, #ff4f6e);
  transition: width .3s ease;
}

/* ==========================================================
   AI 뉴스
========================================================== */
.ai-news {
    padding: 0 16px;
    margin-top: 38px;
}

.ai-news h3 {
    color: #fff !important;
    font-size: 18px;
    font-weight: 900;
}

.ai-tip {
    color: #aaa;
    font-size: 13px;
    margin-top: 6px;
}

.ai-sub {
    color: #eee;
    font-weight: 700;
    font-size: 15px;
    margin-top: 16px;
}

/* ==========================================================
   통계 SECTION
========================================================== */
.stats-section {
    padding: 26px 16px 40px;
    margin-top: 40px;
    background: #050505;

    /** 핵심 — flex/grid 붕괴 방지 **/
    display: block !important;
}

.stats-section > * {
    width: 100% !important;
}

.stats-header {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 22px;
}

/* ⏳ 통계 로딩 스켈레톤 — 집계 전 빈 통계 UI 플래시 대신 */
.stats-skel { padding: 4px 0 8px; }
.stats-skel[hidden] { display: none !important; }
.stats-skel-title {
    height: 22px; width: 52%; border-radius: 7px; margin: 0 0 18px;
    background: linear-gradient(90deg, rgba(255,255,255,.06) 25%, rgba(255,255,255,.13) 37%, rgba(255,255,255,.06) 63%);
    background-size: 400% 100%; animation: statsShimmer 1.4s ease-in-out infinite;
}
.stats-skel-card {
    height: 168px; border-radius: 16px;
    background: linear-gradient(90deg, rgba(255,255,255,.05) 25%, rgba(255,255,255,.11) 37%, rgba(255,255,255,.05) 63%);
    background-size: 400% 100%; animation: statsShimmer 1.4s ease-in-out infinite;
}
@keyframes statsShimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .stats-skel-title, .stats-skel-card { animation: none; } }

/* 통계 잠금 화면 참여 진행바 — '몇 명 더 모이면 공개' 참여 유도 */
.stats-progress {
  height: 8px; border-radius: 999px; margin: 12px 0 5px; overflow: hidden;
  background: rgba(255,255,255,.08);
}
.stats-progress > i {
  display: block; height: 100%; border-radius: 999px; min-width: 6px;
  background: linear-gradient(90deg, #3d6bff, #7aa0ff);
  transition: width .6s cubic-bezier(.22,1,.36,1);
}
.stats-progress-cap { font-size: 11px; color: #8b90a0; font-weight: 800; text-align: right; }

.stat-title {
    font-size: 17px;
    font-weight: 800;
    margin: 26px 0 12px;
}

/* 성별 듀얼바 */
.dual-bar-labels {
    display: flex;
    justify-content: space-between;
    color: #bbb;
    font-size: 14px;
}

.dual-bar {
    width: 100%;
    height: 20px;
    background: #111;
    border-radius: 12px;
    border: 1px solid #222;
    margin-top: 6px;
    overflow: hidden;
    display: flex;
}

.dual-left { background: #4da3ff; }
.dual-right { background: #ff79a8; }

/* 나이대 */
.age-row { margin-bottom: 18px; }

.age-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #ccc;
}

.age-bar {
    width: 100%;
    height: 16px;
    background: #111;
    border-radius: 10px;
    border: 1px solid #222;
    overflow: hidden;
}

.age-fill {
    height: 100%;
    background: linear-gradient(90deg, #dfe5f0, #ffcf48);
}

/* 지역 히트맵 */
.region-heatmap {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px;
}

.region-cell {
    padding: 14px 8px;
    border-radius: 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
}

/* 찬반 바 */
.vote-item { margin-bottom: 18px; }

.vote-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #ccc;
}

/* AI Summary */
.ai-summary {
    margin-top: 16px;
    padding: 18px;
    border-radius: 14px;
    background: #111;
    border: 1px solid #222;
    color: #ddd;
    font-size: 14px;
    line-height: 1.55;
}

/* ==========================================================
   COMMENTS
========================================================== */
.comment-section {
    padding: 0 16px;
    margin-top: 40px;
}

.comment-title {
    font-size: 18px;
    font-weight: 900;
}

.comment-sort {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

.sort-btn {
    padding: 6px 12px;
    background: #111;
    border-radius: 12px;
    border: 1px solid #333;
    color: #aaa;
    cursor: pointer;
}

.sort-btn.active {
    background: #dfe5f0;
    color: #000;
}

/* 메인 댓글 입력 */
.main-reply-box {
    margin-top: 16px;
    display: flex;
    gap: 10px;
}

#main-reply {
    flex: 1;
    background: #111;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 10px;
    color: #fff;
    font-size: 14px;
}

#main-reply-btn {
    padding: 0 14px;
    background: #dfe5f0;
    border-radius: 10px;
    color: #000;
    font-weight: 900;
    font-size: 14px;
    cursor: pointer;
}

.comment-item {
    background: #111;
    border-radius: 14px;
    padding: 14px;
    margin-top: 14px;
    border: 1px solid #222;
}

.comment-item.reply {
    margin-left: 20px;
    background: #151515;
}

.comment-header {
    font-size: 13px;
    color: #ccc;
    display: flex;
    justify-content: space-between;
}

.comment-text {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.4;
}

.comment-actions {
    margin-top: 10px;
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #aaa;
}

.like-btn, .dislike-btn, .reply-btn, .share-btn, .comment-menu {
    cursor: pointer;
}

/* 대댓글 입력 */
.reply-box {
    margin-top: 10px;
    background: #111;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 10px;
}

.reply-input {
    width: 100%;
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 8px;
    color: #fff;
    font-size: 14px;
}

.reply-submit, .reply-cancel {
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.reply-submit {
    background: #dfe5f0;
    color: #111;
}

.reply-cancel {
    background: #333;
    color: #aaa;
}

/* ==========================================================
   상단 ⋯ 메뉴
========================================================== */
.more-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.more-menu-backdrop[hidden] {
    display: none !important;
}

.more-menu-box {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #111;
    border-radius: 18px 18px 0 0;
    padding: 16px 0;
    box-shadow: 0 -2px 18px rgba(0,0,0,0.4);
}

.more-item {
    padding: 16px 20px;
    font-size: 15px;
    color: #fff;
    border-bottom: 1px solid #222;
}

.more-item.more-danger {
    color: #ff4f4f;
}

.more-close {
    width: 100%;
    padding: 18px 0;
    background: #222;
    color: #fff;
    border: none;
    font-size: 16px;
}

/* ==========================================================
   댓글 ⋯ 옵션 모달
========================================================== */
.comment-action-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: flex-end;
    z-index: 1000;
}

.comment-action-modal:not([hidden]) {
    display: flex;
}

.comment-action-sheet {
    width: 100%;
    max-width: 480px;
    background: #111;
    border-radius: 22px 22px 0 0;
    padding: 12px 0 18px;
    border: 1px solid #222;
    animation: slideUp .2s ease-out;
}

.action-item {
    font-size: 15px;
    padding: 16px;
    color: #eee;
    border-bottom: 1px solid #222;
    cursor: pointer;
}

.action-item.more-danger {
    color: #ff4f4f;
}

.comment-close-btn {
    width: 100%;
    padding: 16px 0;
    background: none;
    color: #dfe5f0;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================
   스피치 영상 Bottom Sheet
========================================================== */
.speech-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    display: none;
}

.speech-backdrop:not([hidden]) {
    display: block;
}

.speech-sheet {
    position: absolute;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 85%;
    background: #000;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    transition: bottom .35s ease;
}

.speech-header {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.speech-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.speech-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #fff;
    cursor: pointer;
}

#speech-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    color: rgba(255,255,255,0.8);
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
}

.progress-container {
    position: absolute;
    bottom: 16px;
    left: 12px;
    right: 12px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: #dfe5f0;
    border-radius: 3px;
    transition: width .15s linear;
}



/* ==========================================================
   REMIX / BATTLE
========================================================== */
.remix-section {
    margin-top: 40px;
    padding: 0 16px;
}

.remix-header {
    font-size: 16px;
    font-weight: 800;
}

.remix-stats {
    margin-top: 14px;
    display: flex;
    gap: 12px;
}

.remix-side {
    flex: 1;
    padding: 14px;
    border-radius: 14px;
    background: #111;
    border: 1px solid #222;
}

.remix-side.pro {
    border-color: #3356ff;
}

.remix-side.con {
    border-color: #ff4f6e;
}

.remix-title {
    font-size: 14px;
    font-weight: 800;
}

.remix-count {
    margin-top: 6px;
    font-size: 13px;
    color: #ccc;
}

.remix-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
}

.remix-btn {
    flex: 1;
    padding: 14px 0;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    color: #fff;
}

.remix-btn.pro {
    background: #1d2c7a;
    border: 1px solid #3356ff;
}

.remix-btn.con {
    background: #6e1a1a;
    border: 1px solid #ff4f4f;
}

.remix-desc {
    margin-top: 12px;
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

/* REMIX JOINED STATE */
.remix-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.remix-joined-text {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.remix-joined-text.pro {
  background: rgba(0,148,255,0.15);
  color: #4da3ff;
  border: 1px solid #3356ff;
}

.remix-joined-text.con {
  background: rgba(255,79,110,0.15);
  color: #ff6b8a;
  border: 1px solid #ff4f6e;
}

/* ==========================
   Author Support (UI Only)
========================== */
.author-support {
  margin: 24px 16px;
  padding: 16px;
  border-radius: 12px;
  background: #141414;
  border: 1px solid #222;
}

.author-support-header {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.author-support-desc {
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.9;
  margin-bottom: 12px;
}

.author-support-btn {
  width: 100%;
  padding: 12px 0;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  background: #333;
  color: #888;
}

.author-support-btn:disabled {
  cursor: not-allowed;
}

.author-support-hint {
  margin-top: 8px;
  font-size: 11px;
  opacity: 0.5;
  text-align: center;
}
/* ================================
   Instagram REAL Clamp (FINAL)
================================ */

.ig-clamp {
  font-size: 14px;
  line-height: 1.6;
  color: #ddd;
}

.ig-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  word-break: break-word;
  white-space: pre-wrap;   /* 작성자의 줄바꿈·띄어쓰기 그대로 살림 */
}

.ig-more {
  display: none;
  margin-left: 6px;
  font-size: 14px;
  color: #aaa;
  cursor: pointer;
  white-space: nowrap;
}

.ig-clamp.has-more .ig-more {
  display: inline;
}

.ig-clamp.expanded .ig-text {
  -webkit-line-clamp: unset;
}

.ig-clamp.expanded .ig-more {
  display: none;
}

/* ==========================
   VOTE BAR SCOPE FIX
========================== */

/* 투표 섹션 전용 */
.vote-section .vote-bar {
  width: 100%;
  height: 16px;
  background: #222;
  border-radius: 40px;
  overflow: hidden;
  display: flex;
}

.vote-section .vote-pro { background: #0094ff; }
.vote-section .vote-con { background: #ff3b6b; }

/* 통계 섹션 전용 */
.stats-section .vote-bar {
  width: 100%;
  height: 16px;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
}

.stats-section .vote-pro { background: #4da3ff; }
.stats-section .vote-con { background: #ff6767; }

/* =========================
   SUPPORT MODAL (CENTER)
========================= */

.support-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.support-modal[hidden] {
  display: none;
}

.support-modal-box {
  position: relative;
  width: 92%;
  max-width: 420px;
  background: #0d0d0d;
  border-radius: 20px;
  padding: 22px 18px 20px;
  border: 1px solid #1f1f1f;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.support-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  color: #aaa;
  cursor: pointer;
}

.support-title {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 8px;
}

.support-desc {
  font-size: 13px;
  color: #bbb;
  line-height: 1.5;
  margin-bottom: 18px;
}

/* 보탬 선택 */
.support-levels {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-level {
  text-align: left;
  padding: 14px;
  border-radius: 14px;
  background: #111;
  border: 1px solid #2a2a2a;
  cursor: pointer;
}

.support-level:hover {
  border-color: #555;
}

.level-title {
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

.level-desc {
  font-size: 12px;
  color: #aaa;
}

/* 직접 입력 */
.support-custom {
  margin-top: 16px;
}

.support-custom label {
  font-size: 13px;
  color: #ccc;
}

.support-custom input {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #333;
  background: #000;
  color: #fff;
}

.support-custom-desc {
  font-size: 12px;
  color: #bdbdbd; /* 기존 #888 → 밝게 */
  margin-top: 6px;
}

/* 푸터 */
.support-footnote {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.5;
  color: #b0b0b0;
  text-align: center;
}

/* 확인 버튼 */
.support-confirm {
  width: 100%;
  margin-top: 14px;
  padding: 14px 0;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 900;
  background: #dfe5f0;
  color: #000;
  border: none;
  cursor: pointer;
}

.support-confirm:disabled {
  background: #2b2b2b;
  color: #bdbdbd;
  opacity: 1;
  cursor: not-allowed;
}

/* hidden 기본 동작만 사용 */
[hidden] {
  display: none !important;
}

/* 오버레이 기본 */
.speech-backdrop,
.more-menu-backdrop,
.comment-action-modal,
.support-modal {
  pointer-events: auto;
}

/* =========================
   SUPPORT BUTTON – GOLD RING
========================= */
.support-btn {
  position: relative;
  flex: 1;
  padding: 14px 0;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  background: #0f0f0f;
  color: #fff;
  border: 1px solid rgba(255, 215, 120, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(255,215,120,0.25),
    0 0 0 0 rgba(255,215,120,0);
  transition: all .2s ease;
}

/* hover */
.support-btn:hover {
  box-shadow:
    inset 0 0 0 1px rgba(255,215,120,0.6),
    0 0 12px rgba(255,215,120,0.35);
}

/* 찬성 / 반대 컬러 미세 차별 */
.support-btn.pro {
  border-color: rgba(120,180,255,0.6);
}
.support-btn.con {
  border-color: rgba(255,120,120,0.6);
}

/* =========================
   GLOBAL OVERLAY CLICK FIX
========================= */
.speech-backdrop,
.more-menu-backdrop,
.comment-action-modal,
.support-modal {
  pointer-events: auto;
}

/* =========================
   SUPPORT SECTION – LAYOUT FIX
========================= */
.support-section {
  margin: 36px 16px 0;
  padding: 18px 16px 20px;
  background: #0b0b0b;
  border-radius: 18px;
  border: 1px solid #1f1f1f;

  /* 🔥 기준선 복구 */
  width: calc(100% - 32px);
  max-width: 100%;
  box-sizing: border-box;

  position: relative;
  z-index: 10;
}

.support-guide {
  margin-top: 14px;
  padding: 14px 14px 15px;
  border-radius: 14px;
  background: #111;
  border: 1px solid #222;
  width: 100%;
  box-sizing: border-box;
}

/* 🔥 열릴 때만 활성 */
.speech-backdrop.active,
.more-menu-backdrop.active,
.comment-action-modal.active {
  pointer-events: auto;
}

/* =========================
   REMIX CARD (SEPARATE BOX)
========================= */
.remix-card {
  margin: 36px 16px 0;
  padding: 18px 16px 20px;
  background: #0b0b0b;
  border-radius: 18px;
  border: 1px solid #1f1f1f;
  width: calc(100% - 32px);
  box-sizing: border-box;
  position: relative;
  z-index: 5;
}

/* 안내 박스 */
.remix-guide {
  margin-top: 14px;
  padding: 14px;
  background: #111;
  border-radius: 14px;
  border: 1px solid #222;
}

.remix-guide-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.remix-guide-text {
  font-size: 12px;
  color: #aaa;
  line-height: 1.4;
}

.remix-btn,
.support-btn {
  pointer-events: auto !important;
  position: relative;
  z-index: 20;
}

/* =========================
   SUPPORT MODAL TEXT FIX
========================= */

/* 모달 기본 텍스트 컬러 */
.support-modal-box {
  color: #eaeaea;
}

/* 제목 */
.support-title {
  color: #ffffff;
}

/* 상단 설명 */
.support-desc {
  color: #d0d0d0;
}

/* 보탬 카드 */
.support-level {
  color: #eaeaea;
}

.support-level .level-title {
  color: #ffffff;
}

.support-level .level-desc {
  color: #b5b5b5;
}

/* 활성 선택 */
.support-level.active {
  border-color: #dfe5f0;
  background: #161616;
  color: #dfe5f0; /* 🔥 핵심 */
}

.support-level.active .level-title {
  color: #dfe5f0;
}

/* 직접 입력 */
.support-custom label {
  color: #d0d0d0;
}

.support-custom-desc {
  color: #cfcfcf;
}

/* 하단 안내 */
.support-footnote {
  color: #c2c2c2;
}

/* 실행 버튼 */
.support-confirm {
  color: #000;
  background: #dfe5f0;
}

/* =========================
   SUPPORT LEVEL ACTIVE (FINAL)
========================= */
.support-level.active {
  border-color: #dfe5f0;
  background: #161616;
  box-shadow: 0 0 0 1px rgba(223,229,240,0.6);
}

.support-level.active .level-title {
  color: #dfe5f0;
}

.support-level.active .level-desc {
  color: #e6c96a;
}

.ai-news-box {
  padding: 14px;
  margin: 12px 0;
  border-radius: 12px;
  background: #111;
}

.ai-news-box.pro {
  border-left: 4px solid #3b82f6;
}

.ai-news-box.con {
  border-left: 4px solid #ef4444;
}

/* =========================
   AI NEWS Skeleton
========================= */
.ai-skeleton {
  margin: 10px 0 16px;
}

.sk-line {
  height: 14px;
  background: linear-gradient(
    90deg,
    #2a2a2a 25%,
    #3a3a3a 37%,
    #2a2a2a 63%
  );
  background-size: 400% 100%;
  animation: skeleton 1.4s ease infinite;
  border-radius: 6px;
  margin-bottom: 8px;
}

.sk-line.short {
  width: 60%;
}

@keyframes skeleton {
  0% { background-position: 100% 0 }
  100% { background-position: 0 0 }
}

.ai-argument-item {
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}

.ai-argument-badge {
  font-size: 11px;
  color: #999;
  margin-bottom: 6px;
}

.ai-argument-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.ai-argument {
  font-size: 14px;
  line-height: 1.6;
  color: #ddd;
}

.ai-news-item {
  padding: 10px 0;
  border-top: 1px dashed #333;
}

.ai-news-item a {
  color: #aaa;
  font-size: 13px;
  text-decoration: none;
}

.ai-news-summary {
  font-size: 12px;
  color: #777;
  margin-top: 4px;
}

.ai-news-meta {
  margin-bottom: 4px;
}

.ai-news-source {
  font-size: 11px;
  color: #888;
  border: 1px solid #333;
  border-radius: 999px;
  padding: 2px 8px;
  display: inline-block;
}

/* =========================
   AI BOX (공통 카드)
========================= */
.ai-box {
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px;
  margin: 24px 0;
}

/* 헤더 */
.ai-box-header {
  margin-bottom: 12px;
}

.ai-box-header .ai-tip {
  font-size: 12px;
  color: #aaa;
  margin-top: 4px;
}

/* 본문 */
.ai-box-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 그룹 */
.ai-group {
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 12px;
}

/* 논점 아이템 */
.ai-argument-item {
  padding: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  margin-bottom: 8px;
}

/* 뉴스 아이템 */
.ai-news-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ai-news-item:last-child {
  border-bottom: none;
}

/* AI 논점 카드 크기 통일 */
.ai-argument .ai-box {
  padding: 16px;
}

/* 내부 그룹 박스 제거 */
.ai-argument .ai-group {
  background: transparent;
  padding: 0;
  margin-top: 12px;
}

.ai-argument-item {
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  padding: 14px 14px 16px;
  margin-bottom: 10px;
}

.ai-argument-item {
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  padding: 14px 14px 16px;
  margin-bottom: 10px;
}

.ai-argument-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
}

.ai-argument-desc {
  font-size: 13px;
  color: #ccc;
  line-height: 1.5;
}

/* =========================
   AI ARGUMENT CARD
========================= */

.ai-argument-card {
  background: linear-gradient(180deg, #0e0f14, #0b0c10);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 16px;
  margin: 20px 16px;
}

.ai-argument-card h3 {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 800;
}
.ai-argument-card::after { display: none; }
.ai-argument-sub {
  font-size: 11.5px; color: #8a8f9a; margin-bottom: 12px;
}

.argument {
  position: relative;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  color: #e7ebf3;
  border: 1px solid var(--line-1, rgba(255,255,255,.07));
}
.argument p { margin: 0; }
.arg-label {
  display: block; font-size: 11px; font-weight: 800;
  letter-spacing: .2px; margin-bottom: 6px;
}

.argument + .argument {
  margin-top: 10px;
}

.argument.pro {
  color: #e7ebf3;
  background: linear-gradient(180deg, rgba(58,84,173,.14), rgba(58,84,173,.03));
  border-color: rgba(58,84,173,.4);
}
.argument.pro .arg-label { color: #8ba6ff; }

.argument.con {
  color: #e7ebf3;
  background: linear-gradient(180deg, rgba(176,74,96,.14), rgba(176,74,96,.03));
  border-color: rgba(176,74,96,.4);
}
.argument.con .arg-label { color: #e78d9c; }
.argument.pro p, .argument.con p { color: #e7ebf3; }

.ai-news-placeholder {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.15);
  text-align: center;
}

.ai-news-placeholder-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ai-news-placeholder-desc {
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.85;
}

.ai-news-placeholder-sub {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.6;
}

.stats-more-btn{
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 700;
}

.stats-section { 
  display: block !important; 
}

.ai-news[hidden] { 
  display: none !important; 
}

.stats-more-btn {
  width: 100%;
  margin-top: 16px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #333;
  background: #111;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================
   MEDIA (4:5 세로형) — v2
========================================================== */
.issue-media {
    width: 100%;
    aspect-ratio: 4 / 5;
    position: relative;
    overflow: hidden;
    background: #111;
    margin-top: 12px;
    flex-shrink: 0;
}
.issue-media video { width:100%; height:100%; object-fit:cover; display:block; }
.issue-media img { width:100%; height:100%; object-fit:cover; display:block; }

.issue-play-overlay {
    position:absolute; inset:0;
    display:flex; align-items:center; justify-content:center;
    background:rgba(0,0,0,0.2);
}
.issue-play-overlay.hidden { display:none; }
.issue-play-circle {
    width:58px; height:58px; border-radius:50%;
    background:rgba(255,255,255,0.15);
    border:2px solid rgba(255,255,255,0.4);
    display:flex; align-items:center; justify-content:center;
}
.issue-play-tri {
    width:0; height:0;
    border-top:12px solid transparent;
    border-bottom:12px solid transparent;
    border-left:20px solid #fff;
    margin-left:4px;
}
.issue-vid-dur {
    position:absolute; bottom:10px; right:10px;
    background:rgba(0,0,0,0.65); color:#fff;
    font-size:10px; padding:2px 7px; border-radius:5px;
}
.issue-vid-mute {   /* 다른 화면과 같은 모양·자리(원형·오른쪽 아래, 26.9.20) */
    position:absolute; bottom:10px; right:10px;
    background:rgba(0,0,0,0.55); border:none; color:#fff; padding:0;
    width:30px; height:30px; border-radius:50%; cursor:pointer; z-index:2;
    display:flex; align-items:center; justify-content:center;
    -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); transition:transform .12s ease;
}
.issue-vid-mute:active { transform:scale(.88); }
.issue-vid-mute svg { width:17px; height:17px; display:block; }
.issue-carousel { width:100%; height:100%; position:relative; overflow:hidden; }
.issue-slides { display:flex; height:100%; transition:transform .28s ease; }
.issue-slide { flex:0 0 100%; width:100%; max-width:100%; min-width:0; height:100%; }
.issue-slide img { width:100%; height:100%; object-fit:cover; display:block; }
.issue-arr {
    position:absolute; top:50%; transform:translateY(-50%);
    background:rgba(0,0,0,0.4); border:none; color:#fff;
    width:30px; height:30px; border-radius:50%;
    font-size:18px; cursor:pointer;
    display:flex; align-items:center; justify-content:center; z-index:2;
}
.issue-arr.l { left:8px; }
.issue-arr.r { right:8px; }
.issue-c-dots {
    position:absolute; bottom:10px; left:50%; transform:translateX(-50%);
    display:flex; gap:4px; z-index:2;
}
.issue-c-dot {
    width:5px; height:5px; border-radius:3px;
    background:rgba(255,255,255,0.3); transition:all .2s;
}
.issue-c-dot.on { background:#fff; width:14px; }
.issue-c-cnt {
    position:absolute; top:10px; right:10px;
    background:rgba(0,0,0,0.6); color:#fff;
    font-size:9px; padding:2px 7px; border-radius:5px; font-weight:700; z-index:2;
}
.issue-thumb { display:none !important; }

/* ==========================================================
   진영 버튼 (커스텀 라벨) — v2
========================================================== */
.faction-btns { display:flex; gap:10px; margin-top:14px; }
.faction-btn {
    flex:1; padding:13px 8px; border-radius:12px;
    font-size:13px; font-weight:700; text-align:center;
    cursor:pointer; border:none; line-height:1.35; word-break:keep-all;
    transition:transform .1s, background .15s;
}
.faction-btn:active { transform:scale(.97); }
.faction-btn-a { background:#0a1233; color:#aac4ff; border:1px solid #1a3a8a; }
.faction-btn-b { background:#1a0808; color:#ffaaaa; border:1px solid #8a1a1a; }
.faction-btn-a.voted { background:#3356ff; color:#fff; border-color:#3356ff; }
.faction-btn-b.voted { background:#ff4f6e; color:#fff; border-color:#ff4f6e; }
.faction-btn.disabled { opacity:.6; pointer-events:none; }

/* speech-btn 완전 제거 */
.speech-btn { display:none !important; }
.speech-backdrop { display:none !important; }

/* vote.core.js active-vote 호환 */
.faction-btn.active-vote {
    background: #dfe5f0 !important;
    color: #111 !important;
    border-color: #dfe5f0 !important;
}

/* ===== 인스타식 작성자 헤더 (미디어 위) — 이슈 페이지 ===== */
.media-author-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; padding: 12px 16px;
}
.media-author-head .mah-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.media-author-head .mah-avatar {
    width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, #3356ff, #ff4f6e);
}
.media-author-head .mah-avatar.generic { background: linear-gradient(135deg, #2a3550, #4a2e3a); }
.media-author-head .mah-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
[data-profile-uid] { cursor: pointer; }
#issue-author[data-profile-uid]:active, .media-author-head .mah-avatar[data-profile-uid]:active { opacity: .7; }
.media-author-head .mah-info { min-width: 0; }
.media-author-head .mah-line1 { display: flex; align-items: center; gap: 6px; }
.media-author-head .mah-line1 .author-name { font-size: 14px; font-weight: 700; }
.media-author-head .mah-line2 { font-size: 12px; color: #888; margin-top: 2px; }

/* 제목·설명 캡션 (미디어 아래) */
.issue-caption { padding: 14px 16px 4px; }
.issue-caption h1 { font-size: 20px; font-weight: 900; line-height: 1.35; margin: 0; }
.issue-caption p { font-size: 14px; color: #bbb; line-height: 1.5; margin: 6px 0 0; }

/* ============================================================
   갈라 인터랙티브 인포그래픽 (gi-*)
============================================================ */
@property --giP { syntax: '<number>'; inherits: false; initial-value: 0; }

.gi-card {
  background: linear-gradient(180deg, #0e0f14, #0a0b0f);
  border: 1px solid #1b1d25;
  border-radius: 16px;
  padding: 18px 16px;
}

/* ---- 성별 도넛 ---- */
.gi-gender { display: flex; align-items: center; gap: 20px; }
.gi-donut {
  --giP: 0;
  position: relative;
  width: 128px; height: 128px; flex: 0 0 128px;
  border-radius: 50%;
  background: conic-gradient(#4da3ff calc(var(--giP) * 1%), #ff79a8 0);
  -webkit-mask: radial-gradient(farthest-side, transparent 60%, #000 61%);
          mask: radial-gradient(farthest-side, transparent 60%, #000 61%);
  transition: --giP 1.1s cubic-bezier(.22,1,.36,1);
}
.gi-gender.gi-in .gi-donut { --giP: var(--giT); }
.gi-donut-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  -webkit-mask: none; mask: none;
}
.gi-donut-center b { font-size: 26px; font-weight: 900; color: #fff; line-height: 1; }
.gi-donut-center span { margin-top: 4px; font-size: 11px; color: #8b90a0; font-weight: 700; }
.gi-legend { display: flex; flex-direction: column; gap: 12px; }
.gi-leg { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #cfd4e0; font-weight: 700; }
.gi-leg b { color: #fff; }
.gi-dot { width: 12px; height: 12px; border-radius: 4px; }
.gi-leg.male .gi-dot { background: #4da3ff; box-shadow: 0 0 10px rgba(77,163,255,.6); }
.gi-leg.female .gi-dot { background: #ff79a8; box-shadow: 0 0 10px rgba(255,121,168,.55); }

/* ---- 나이대 바 ---- */
.gi-bars { display: flex; flex-direction: column; gap: 16px; }
.gi-bar-head { display: flex; justify-content: space-between; font-size: 13.5px; color: #aeb3c2; font-weight: 700; margin-bottom: 7px; }
.gi-bar-head b { color: #fff; font-variant-numeric: tabular-nums; }
.gi-track { height: 14px; background: #14161d; border-radius: 999px; overflow: hidden; }
.gi-fill {
  height: 100%; width: 0; border-radius: 999px;
  transition: width 1s cubic-bezier(.22,1,.36,1); transition-delay: var(--giD, 0ms);
}
.gi-fill.age { background: linear-gradient(90deg, #ffd15c, #ff9f45); box-shadow: 0 0 14px rgba(255,159,69,.4); }
.gi-in .gi-fill { width: var(--giW); }

/* ---- 지역 히트 그리드 ---- */
.gi-heat { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px; }
.gi-heat-cell {
  position: relative; border: 1px solid rgba(255,255,255,.08); border-radius: 14px;
  padding: 16px 8px 13px; text-align: center; cursor: pointer;
  color: #fff; background:
    linear-gradient(180deg, rgba(255,159,69,calc(var(--giA)*.9)), rgba(255,110,60,calc(var(--giA)*.55)));
  opacity: 0; transform: scale(.82) translateY(6px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22,1.4,.4,1);
  transition-delay: var(--giD, 0ms);
}
.gi-in.gi-heat .gi-heat-cell, .gi-heat.gi-in .gi-heat-cell { opacity: 1; transform: none; }
.gi-heat-cell:focus { outline: none; }
.gi-heat-cell.on { box-shadow: 0 0 0 2px #fff, 0 0 20px rgba(255,180,90,.6); }
.gi-heat-crown { position: absolute; top: -9px; right: -4px; font-size: 15px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.gi-heat-name { display: block; font-size: 13px; font-weight: 800; }
.gi-heat-pct { display: block; margin-top: 3px; font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums; }

/* ---- 찬반 diverging 바 ---- */
.gi-diverge { display: flex; flex-direction: column; gap: 15px; }
.gi-dv-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.gi-dv-label { font-size: 13.5px; font-weight: 800; color: #dfe3ec; }
.gi-dv-nums { font-size: 12.5px; font-weight: 700; }
.gi-dv-nums .pro { color: #6db4ff; } .gi-dv-nums .con { color: #ff8a8a; }
.gi-dv-track {
  position: relative; height: 22px; border-radius: 8px; overflow: hidden;
  background: #14161d; display: flex;
}
.gi-dv-pro, .gi-dv-con { height: 100%; width: 0; transition: width 1s cubic-bezier(.22,1,.36,1); transition-delay: var(--giD, 0ms); }
.gi-dv-pro { margin-left: auto; background: linear-gradient(90deg, rgba(77,163,255,.35), #4da3ff); border-radius: 8px 0 0 8px; }
.gi-dv-con { background: linear-gradient(90deg, #ff6767, rgba(255,103,103,.35)); border-radius: 0 8px 8px 0; }
.gi-in .gi-dv-pro { width: var(--giW); }
.gi-in .gi-dv-con { width: var(--giW); }
.gi-dv-mid { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.35); transform: translateX(-50%); z-index: 2; }

/* 🔴 일기토 LIVE 관전 배너 (이슈 상단) */
.duel-live-banner {
  display: flex; align-items: center; gap: 10px; margin: 8px 12px; padding: 11px 14px;
  border-radius: 14px; text-decoration: none; cursor: pointer;
  background: linear-gradient(100deg, #2a0e14, #14161c);
  border: 1px solid rgba(255,45,45,.4);
  box-shadow: 0 0 18px rgba(255,45,45,.14);
  animation: dlbGlow 2s ease-in-out infinite;
}
.dlb-live { flex: 0 0 auto; font-size: 11px; font-weight: 900; color: #fff;
  background: #ff2d2d; padding: 3px 8px; border-radius: 99px; animation: dpulseB 1.2s infinite; }
.dlb-txt { flex: 1; min-width: 0; color: #f0f0f2; font-size: 13px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlb-go { flex: 0 0 auto; color: #ff8098; font-weight: 900; font-size: 13px; }
@keyframes dlbGlow { 50% { box-shadow: 0 0 26px rgba(255,45,45,.28); } }
@keyframes dpulseB { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce){ .duel-live-banner,.dlb-live{ animation:none; } }

/* 🚀 부스트: 상단 고정 카드 배지 */
.card.pinned { border: 1px solid rgba(201,209,224,.4); box-shadow: 0 0 20px rgba(201,209,224,.12); position: relative; }
.pin-badge { position: absolute; top: 10px; right: 10px; z-index: 3; font-size: 11px; font-weight: 900;
  color: #0a0a0b; background: linear-gradient(135deg,#c9d1e0,#8b93a3); padding: 3px 9px; border-radius: 99px; }

/* ✨ 투표바 동적 채움 + 시머 (인포그래픽) */
#vote-pro-bar, #vote-con-bar { transition: width .85s cubic-bezier(.25,1,.35,1); background-size: 200% 100%; }
#vote-pro-bar { animation: voteShimmer 3s linear infinite; }
#vote-con-bar { animation: voteShimmer 3s linear infinite reverse; }
@keyframes voteShimmer { 0%{background-position:0 0} 100%{background-position:200% 0} }
@media (prefers-reduced-motion: reduce){ #vote-pro-bar,#vote-con-bar{animation:none;transition:none} }

/* 📰 관련 뉴스 (직접 등록 외부 링크) */
.related-links { padding: 8px 16px 4px; }
.related-links .white-title { margin: 0 0 10px; }
.rel-news-list { display: flex; flex-direction: column; gap: 10px; }
.rel-news-card { display: flex; align-items: center; gap: 12px; text-decoration: none;
  background: #14151a; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 10px 12px; }
.rel-news-card:active { transform: scale(.99); }
.rel-news-thumb { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 10px;
  background: #1a1c22 center/cover no-repeat; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.rel-news-thumb.none { color: #6c7280; }
.rel-news-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rel-news-src { font-size: 11px; font-weight: 800; color: #5b8cff; }
.rel-news-title { font-size: 14px; line-height: 1.35; color: #eef0f4; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rel-news-go { flex: 0 0 auto; color: #8a8f9a; font-size: 15px; font-weight: 900; }

/* 📰 관련 보도 (내부 뉴스 자동 매칭) */
.report-list { display: flex; flex-direction: column; gap: 8px; }
.report-card { display: flex; align-items: center; gap: 10px; text-decoration: none;
  background: #101216; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 11px 12px; }
.report-card:active { transform: scale(.99); }
.report-mid { flex: 1; min-width: 0; }
.report-src { font-size: 11px; font-weight: 800; color: #5b8cff; margin-bottom: 3px; }
.report-time { color: #7a8090; font-weight: 600; }
.report-title { font-size: 13.5px; line-height: 1.4; color: #e7ebf3; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.report-go { flex: 0 0 auto; color: #8a8f9a; font-size: 14px; font-weight: 900; }

/* 관련 링크·근거 tip / 유형 배지 */
.rel-news-tip { color: #8a8f9a; font-size: 12px; margin: 0 0 10px; padding: 0 2px; }
.rel-news-type { color: #c9d1e0; font-weight: 800; }

/* 이슈 승패 예측 배너 (이슈↔예측 연계) */
.issue-predict-banner{
  display:flex; align-items:center; gap:11px; margin:14px 16px 0;
  padding:13px 15px; border-radius:14px; text-decoration:none;
  background:radial-gradient(120% 100% at 50% 0%, #2b2208, #14100a);
  border:1px solid #4a380f; transition:transform .12s ease;
}
.issue-predict-banner:active{ transform:scale(.98); }
.issue-predict-banner .ipb-ic{ font-size:24px; }
.issue-predict-banner .ipb-m{ flex:1; min-width:0; }
.issue-predict-banner .ipb-t{ display:block; font-size:14px; font-weight:900; color:#fff; }
.issue-predict-banner .ipb-s{ display:block; font-size:11.5px; color:#c8b992; margin-top:2px; }
.issue-predict-banner .ipb-s b{ color:#ffcf3f; }
.issue-predict-banner .ipb-go{ font-size:13.5px; font-weight:900; color:#ffcf3f; flex:0 0 auto; }

/* 🪜 통계 관문 — 내 정보 3가지 넣고 보기(26.9.18) */
.sg-gate { margin-top: 6px; text-align: center; }
.sg-t { font-size: 16px; font-weight: 900; color: #f2f4f8; margin-bottom: 6px; }
.sg-s { font-size: 12.5px; color: #9aa0ae; line-height: 1.55; margin-bottom: 14px; }
.sg-s b { color: #e7e9f0; }
.sg-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.sg-in { height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: #121318; color: #e7e9f0;
  font-size: 16px; padding: 0 12px; appearance: none; -webkit-appearance: none; }
.sg-glab { font-size: 12px; font-weight: 700; color: #9aa0ae; margin: 2px 2px -2px; }
.sg-glab .sg-opt { font-size: 10.5px; font-weight: 800; color: #6f86ff; background: rgba(111,134,255,.14); padding: 1px 6px; border-radius: 6px; margin-left: 4px; }
.sg-chips { display: flex; gap: 8px; }
.sg-chip { flex: 1; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: #121318;
  color: #c9cdd8; font-size: 15px; font-weight: 800; cursor: pointer; }
.sg-chip.on { background: rgba(111,134,255,.18); border-color: #6f86ff; color: #fff; }
.sg-go { width: 100%; height: 48px; border: 0; border-radius: 14px; background: #4f6bff; color: #fff; font-size: 15px; font-weight: 900; cursor: pointer; }
.sg-go:disabled { opacity: .45; }
.sg-f { margin-top: 9px; font-size: 11.5px; color: #767c89; }

/* 📐 이슈 상세 — 모바일 폭 끝까지(26.9.19 사장님). 사진·제목·투표는 이미 끝까지였고, 아래 상자들이 좌우 14~16px 들어가 있었다.
   상자는 끝까지 + 모서리 없음, 글자는 상자 안쪽 여백으로. 누르는 요소(후원 버튼·입력칸)는 여백 유지.
   ⚠️ 다른 화면에 새지 않게 이슈 상세 범위(MPA body · SPA 뷰 호스트)로 가둔다. */
:is(body[data-page="issue"], .view-host[data-spa-view="issue"]) .issue-explain,
:is(body[data-page="issue"], .view-host[data-spa-view="issue"]) .ai-argument-card { margin-left: 0; margin-right: 0; border-radius: 0; border-left: 0; border-right: 0; }
:is(body[data-page="issue"], .view-host[data-spa-view="issue"]) .ai-news { padding-left: 0; padding-right: 0; }
:is(body[data-page="issue"], .view-host[data-spa-view="issue"]) .ai-news .ai-box { border-radius: 0; border-left: 0; border-right: 0; }
:is(body[data-page="issue"], .view-host[data-spa-view="issue"]) #stats-locked,
:is(body[data-page="issue"], .view-host[data-spa-view="issue"]) .fac-support { margin-left: -16px; margin-right: -16px; border-radius: 0; border-left: 0; border-right: 0; }
:is(body[data-page="issue"], .view-host[data-spa-view="issue"]) #battle-zone .comment-war-header,
:is(body[data-page="issue"], .view-host[data-spa-view="issue"]) #battle-zone .army-label,
:is(body[data-page="issue"], .view-host[data-spa-view="issue"]) #battle-zone .zone-list { margin-left: -14px; margin-right: -14px; border-radius: 0; border-left: 0; border-right: 0; }
:is(body[data-page="issue"], .view-host[data-spa-view="issue"]) #stats-locked { width: calc(100% + 32px) !important; max-width: none; box-sizing: border-box; }   /* .stats-section > * 가 width:100% !important 라 이겨야 한다(QA) */
