/* ── 확장 위젯 B (v1.12.0) — 방송·일정 + 카페 데이터 표시 ── */

/* 이웃 카페 파도타기 */
.wg-wr { display: flex; flex-direction: column; height: 100%; }
.wg-wr-card { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); }
.wg-wr-name { font-family: var(--font-display); font-size: clamp(16px, 2vw, 20px); color: var(--c-primary, var(--brand)); }
.wg-wr-desc { font-size: 13px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wg-wr-owner { font-size: 12px; color: var(--muted); }
.wg-wr-go { align-self: flex-start; margin-top: auto; }
.wg-wr-nav { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.wg-wr-pos { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 글 검색 상자 */
.wg-sb { display: flex; align-items: center; gap: 8px; height: 100%; }
.wg-sb-ico { font-size: 18px; flex-shrink: 0; }
.wg-sb-in { flex: 1; min-width: 0; }
.wg-sb-btn { flex-shrink: 0; }

/* 게시판 탭 미리보기 */
.wg-bt { display: flex; flex-direction: column; height: 100%; }
.wg-bt-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 6px; scrollbar-width: none; }
.wg-bt-tabs::-webkit-scrollbar { display: none; }
.wg-bt-tab { flex-shrink: 0; border: none; background: none; padding: 7px 10px; font-size: 13px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.wg-bt-tab.on { color: var(--c-primary, var(--brand)); border-bottom-color: var(--c-primary, var(--brand)); }
.wg-bt-body { flex: 1; min-height: 0; overflow-y: auto; }
.wg-bt-more { display: block; text-align: right; padding: 8px 2px 0; }

/* 이주의 MVP */
.wg-mvp { display: flex; flex-direction: column; height: 100%; }
.wg-mvp-top { position: relative; text-align: center; padding: 18px 12px 12px; border-radius: 12px; background: linear-gradient(160deg, var(--brand-soft), var(--c-card, var(--card))); border: 1px solid var(--line); }
.wg-mvp-crown { display: block; font-size: clamp(24px, 3vw, 32px); line-height: 1; margin-bottom: 4px; animation: wg-mvp-float 2.4s ease-in-out infinite; }
.wg-mvp-name { font-family: var(--font-display); font-size: clamp(17px, 2.2vw, 22px); color: var(--c-primary, var(--brand)); }
.wg-mvp-pts { font-size: 14px; margin-top: 2px; }
.wg-mvp-pts b { font-size: 20px; color: var(--c-accent, var(--amber)); font-variant-numeric: tabular-nums; }
.wg-mvp-sum { font-size: 12px; color: var(--muted); margin-top: 3px; }
.wg-mvp-rest { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; }
.wg-mvp-row { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.wg-mvp-row-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.wg-mvp-row-pts { color: var(--muted); font-size: 12px; }
@keyframes wg-mvp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* 팬클럽 회원증 */
.wg-mc-wrap { display: flex; flex-direction: column; gap: 8px; height: 100%; justify-content: center; }
.wg-mc { position: relative; overflow: hidden; border-radius: 14px; padding: 14px 16px; color: #fff; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.wg-mc-purple { background: linear-gradient(135deg, #6D5DF6, #A78BFA 60%, #F0ABFC); }
.wg-mc-gold { background: linear-gradient(135deg, #B8860B, #F2C14E 55%, #FFF1B8); color: #3b2a00; }
.wg-mc-mint { background: linear-gradient(135deg, #0F9B8E, #4FD1C5 60%, #C6F6F1); color: #063b36; }
.wg-mc-night { background: linear-gradient(135deg, #0F172A, #1E293B 60%, #334155); }
.wg-mc-dim { filter: grayscale(.7) blur(1px); opacity: .6; }
.wg-mc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; opacity: .85; }
.wg-mc-cafe { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-mc-kind { flex-shrink: 0; }
.wg-mc-nick { font-family: var(--font-display); font-size: clamp(18px, 2.4vw, 24px); letter-spacing: .5px; }
.wg-mc-badge { font-style: normal; font-size: 11px; background: rgba(255,255,255,.28); border-radius: 99px; padding: 1px 8px; vertical-align: middle; }
.wg-mc-rows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 12px; font-size: 12px; }
.wg-mc-rows small { display: block; opacity: .75; font-size: 10px; }
.wg-mc-rows b { font-variant-numeric: tabular-nums; }
.wg-mc-bar { display: flex; gap: 2px; height: 22px; margin-top: 4px; opacity: .8; }
.wg-mc-bar i { display: block; background: currentColor; border-radius: 1px; }
.wg-mc-shine { position: absolute; top: -50%; left: -60%; width: 40%; height: 200%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: rotate(12deg); animation: wg-mc-shine 5s ease-in-out infinite; pointer-events: none; }
.wg-mc-login { text-align: center; }
.wg-mc-hint { font-size: 11px; text-align: center; }
@keyframes wg-mc-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }

/* 미니게임 랭킹 보드 */
.wg-hs { display: flex; flex-direction: column; gap: 6px; height: 100%; }
.wg-hs-list { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; min-height: 0; flex: 1; }
.wg-hs-row { display: flex; align-items: center; gap: 7px; font-size: 13px; padding: 4px 6px; border-radius: 8px; }
.wg-hs-row.top { background: var(--brand-soft); font-weight: 700; }
.wg-hs-no { width: 26px; text-align: center; font-weight: 800; flex-shrink: 0; }
.wg-hs-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-hs-score { flex-shrink: 0; font-variant-numeric: tabular-nums; color: var(--c-primary, var(--brand)); font-weight: 700; }
.wg-hs-foot { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 6px; }
.wg-hs-foot b { color: var(--c-primary, var(--brand)); }

/* 위시리스트 */
.wg-wl { display: flex; flex-direction: column; height: 100%; }
.wg-wl-list { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; min-height: 0; }
.wg-wl-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 4px; }
.wg-wl-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-wl-pct { color: var(--muted); font-size: 12px; flex-shrink: 0; }
.wg-wl-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.wg-wl-bar i { display: block; height: 100%; border-radius: 99px; background: var(--c-primary, var(--brand)); transition: width .6s ease; }
.wg-wl-item.done .wg-wl-bar i { background: var(--c-accent, var(--amber)); }
.wg-wl-item.done .wg-wl-pct { color: var(--c-accent, var(--amber)); font-weight: 700; }

/* 방송 빙고 */
.wg-bg { display: flex; flex-direction: column; height: 100%; gap: 6px; }
.wg-bg-status { font-size: 13px; color: var(--muted); }
.wg-bg-status.hit { color: var(--c-primary, var(--brand)); font-weight: 800; font-size: 15px; }
.wg-bg-grid { display: grid; gap: 4px; flex: 1; min-height: 0; }
.wg-bg-cell { border: 1px solid var(--line); border-radius: 8px; background: var(--paper); padding: 4px; font-size: clamp(10px, 1.3vw, 12px); line-height: 1.25; color: var(--c-text, var(--ink)); cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 0; word-break: keep-all; }
.wg-bg-cell span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.wg-bg-cell:hover { border-color: var(--c-primary, var(--brand)); }
.wg-bg-cell.on { background: var(--brand-soft); border-color: var(--c-primary, var(--brand)); color: var(--c-primary, var(--brand)); font-weight: 700; animation: wg-bg-pop .25s ease; }
.wg-bg-cell.line { background: var(--c-primary, var(--brand)); color: #fff; }
@keyframes wg-bg-pop { 0% { transform: scale(.92); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }

/* 팬 추천사 */
.wg-tm { position: relative; height: 100%; min-height: 90px; cursor: pointer; }
.wg-tm-item { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 6px 8px 22px; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.wg-tm-item.on { opacity: 1; pointer-events: auto; animation: wg-tm-in .6s ease; }
.wg-tm-q { font-family: var(--font-display); font-size: 36px; line-height: .6; color: var(--c-primary, var(--brand)); }
.wg-tm-text { font-size: clamp(13px, 1.6vw, 15px); font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.wg-tm-who { font-size: 12px; color: var(--muted); margin-top: 6px; }
.wg-tm-dots { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.wg-tm-dot { width: 7px; height: 7px; border-radius: 50%; border: none; background: var(--line); padding: 0; cursor: pointer; }
.wg-tm-dot.on { background: var(--c-primary, var(--brand)); }
@keyframes wg-tm-in { from { transform: translateY(6px); } to { transform: translateY(0); } }

/* 전적 카드 */
.wg-wn { display: flex; flex-direction: column; justify-content: center; height: 100%; gap: 6px; }
.wg-wn-rate { font-size: 13px; color: var(--muted); }
.wg-wn-rate b { color: var(--c-primary, var(--brand)); font-size: 16px; }
.wg-wn-nums { display: flex; justify-content: space-around; text-align: center; }
.wg-wn-nums b { display: block; font-family: var(--font-display); font-size: clamp(22px, 3vw, 32px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.wg-wn-nums small { font-size: 12px; color: var(--muted); }
.wg-wn-w b { color: var(--c-primary, var(--brand)); }
.wg-wn-d b { color: var(--muted); }
.wg-wn-l b { color: var(--danger); }
.wg-wn-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--line); }
.wg-wn-bar i { display: block; height: 100%; }
.wg-wn-bar .w { background: var(--c-primary, var(--brand)); }
.wg-wn-bar .d { background: var(--muted); }
.wg-wn-bar .l { background: var(--danger); }
.wg-wn-hint { text-align: center; }

/* 게임 티어 카드 */
.wg-tr { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; height: 100%; gap: 4px; }
.wg-tr-game { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .5px; }
.wg-tr-img { width: clamp(56px, 40%, 96px); aspect-ratio: 1; object-fit: contain; }
.wg-tr-ph { display: flex; align-items: center; justify-content: center; font-size: clamp(32px, 5vw, 52px); border-radius: 50%; background: var(--brand-soft); }
.wg-tr-tier { font-family: var(--font-display); font-size: clamp(18px, 2.6vw, 26px); color: var(--c-primary, var(--brand)); }
.wg-tr-pts { font-size: 13px; font-weight: 700; color: var(--c-accent, var(--amber)); }
.wg-tr-note { font-size: 12px; color: var(--muted); }

/* 방송 장비 */
.wg-gr { display: flex; flex-direction: column; height: 100%; }
.wg-gr-list { overflow-y: auto; min-height: 0; }
.wg-gr-row { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
.wg-gr-row:last-child { border-bottom: none; }
.wg-gr-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.wg-gr-k { color: var(--muted); font-weight: 700; width: 28%; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-gr-v { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 스폰서 배너 */
.wg-sp { display: flex; flex-direction: column; justify-content: center; height: 100%; overflow: hidden; }
.wg-sp-title { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .6px; text-transform: uppercase; margin-bottom: 8px; }
.wg-sp-track { display: flex; align-items: center; justify-content: space-around; gap: 16px; flex-wrap: wrap; }
.wg-sp.flow .wg-sp-track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; gap: 36px; animation: wg-sp-move 24s linear infinite; }
.wg-sp.flow:hover .wg-sp-track { animation-play-state: paused; }
.wg-sp-item { display: inline-flex; align-items: center; justify-content: center; height: clamp(32px, 5vw, 48px); flex-shrink: 0; opacity: .85; transition: opacity .2s; }
.wg-sp-item:hover { opacity: 1; }
.wg-sp-item img { height: 100%; width: auto; max-width: 160px; object-fit: contain; }
.wg-sp-text { font-weight: 800; font-size: 14px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; white-space: nowrap; }
@keyframes wg-sp-move { to { transform: translateX(-50%); } }

/* 굿즈 진열대 */
.wg-mh { display: flex; flex-direction: column; height: 100%; }
.wg-mh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(110px, 30%, 150px), 1fr)); gap: 10px; overflow-y: auto; min-height: 0; align-content: start; }
.wg-mh-card { display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; color: inherit; text-decoration: none; background: var(--c-card, var(--card)); transition: transform .15s, border-color .15s; }
a.wg-mh-card:hover { transform: translateY(-2px); border-color: var(--c-primary, var(--brand)); }
.wg-mh-img { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 30px; }
.wg-mh-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wg-mh-name { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }
.wg-mh-price { font-size: 13px; color: var(--c-primary, var(--brand)); font-weight: 800; }
.wg-mh-go { font-size: 11px; color: var(--muted); margin-top: auto; }

/* 후원 등급표 */
.wg-ti { display: flex; flex-direction: column; height: 100%; }
.wg-ti-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(clamp(120px, 28%, 180px), 1fr)); gap: 10px; align-items: stretch; overflow-y: auto; min-height: 0; padding-top: 8px; }
.wg-ti-col { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; background: var(--c-card, var(--card)); }
.wg-ti-col.hi { border-color: var(--c-primary, var(--brand)); box-shadow: 0 0 0 1px var(--c-primary, var(--brand)), 0 8px 20px rgba(0,0,0,.08); background: var(--brand-soft); }
.wg-ti-best { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 800; background: var(--c-accent, var(--amber)); color: #fff; border-radius: 99px; padding: 2px 9px; letter-spacing: .4px; }
.wg-ti-name { font-weight: 800; font-size: 15px; text-align: center; }
.wg-ti-price { font-family: var(--font-display); font-size: 17px; color: var(--c-primary, var(--brand)); text-align: center; }
.wg-ti-perks { list-style: none; padding: 0; margin: 4px 0 0; font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.wg-ti-perks li::before { content: '✓ '; color: var(--c-primary, var(--brand)); font-weight: 800; }
.wg-ti-perks .wg-ti-none { color: var(--muted); }
.wg-ti-perks .wg-ti-none::before { content: ''; }

/* 후원 랭킹 */
.wg-td { display: flex; flex-direction: column; height: 100%; }
.wg-td-list { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; min-height: 0; flex: 1; }
.wg-td-row { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 5px 6px; border-radius: 8px; }
.wg-td-row.medal { background: var(--paper); }
.wg-td-row.medal:first-child { background: var(--brand-soft); font-weight: 700; }
.wg-td-no { width: 26px; text-align: center; font-weight: 800; flex-shrink: 0; }
.wg-td-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-td-amt { flex-shrink: 0; font-size: 12px; color: var(--c-primary, var(--brand)); font-weight: 700; font-variant-numeric: tabular-nums; }
.wg-td-thanks { text-align: right; margin-top: 6px; }

/* 다중 목표 게이지 */
.wg-mg { display: flex; flex-direction: column; height: 100%; }
.wg-mg-list { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; min-height: 0; }
.wg-mg-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 4px; }
.wg-mg-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-mg-pct { color: var(--c-primary, var(--brand)); font-weight: 800; flex-shrink: 0; }
.wg-mg-bad { font-size: 11px; color: var(--danger); }
.wg-mg-bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.wg-mg-bar i { display: block; height: 100%; border-radius: 99px; background: var(--c-primary, var(--brand)); transition: width .6s ease; }
.wg-mg-item.done .wg-mg-bar i { background: var(--c-accent, var(--amber)); }
.wg-mg-meta { font-size: 11px; color: var(--muted); margin-top: 3px; text-align: right; font-variant-numeric: tabular-nums; }
.wg-mg-meta b { color: var(--c-text, var(--ink)); }

/* 채널 통계 카드 */
.wg-cs { display: flex; flex-direction: column; justify-content: center; height: 100%; }
.wg-cs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.wg-cs-tile { background: var(--brand-soft); border-radius: 12px; padding: 12px 10px; text-align: center; min-width: 0; }
.wg-cs-num { display: block; font-family: var(--font-display); font-size: clamp(18px, 2.6vw, 28px); color: var(--c-primary, var(--brand)); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-cs-tile small { font-size: 12px; color: var(--muted); font-weight: 700; }

/* 다시보기 목록 */
.wg-vod { display: flex; flex-direction: column; height: 100%; }
.wg-vod-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 0; }
.wg-vod-item { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; border-radius: 10px; padding: 4px; }
a.wg-vod-item:hover { background: var(--brand-soft); }
.wg-vod-thumb { flex: 0 0 clamp(80px, 30%, 128px); aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #111; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.wg-vod-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wg-vod-info { min-width: 0; flex: 1; }
.wg-vod-name { font-size: 13px; font-weight: 700; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wg-vod-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* 클립 모음 */
.wg-clp { display: flex; flex-direction: column; height: 100%; }
.wg-clp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(120px, 30%, 180px), 1fr)); gap: 10px; overflow-y: auto; min-height: 0; align-content: start; }
.wg-clp-card { display: block; color: inherit; text-decoration: none; }
.wg-clp-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, var(--brand-soft), var(--line)); }
.wg-clp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wg-clp-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; padding-left: 3px; }
a.wg-clp-card:hover .wg-clp-play { background: var(--c-primary, var(--brand)); }
.wg-clp-name { font-size: 13px; font-weight: 700; margin-top: 5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wg-clp-desc { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 이번 주 일정 목록 */
.wg-sl { display: flex; flex-direction: column; height: 100%; }
.wg-sl-list { display: flex; flex-direction: column; overflow-y: auto; min-height: 0; }
.wg-sl-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
.wg-sl-row:last-child { border-bottom: none; }
.wg-sl-row.past { opacity: .55; }
.wg-sl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-primary, var(--brand)); flex-shrink: 0; }
.wg-sl-main { flex: 1; min-width: 0; }
.wg-sl-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-sl-when { font-size: 12px; color: var(--muted); }
.wg-sl-tag { flex-shrink: 0; font-size: 11px; font-weight: 800; border-radius: 99px; padding: 2px 8px; background: var(--paper); color: var(--muted); }
.wg-sl-row.today .wg-sl-tag { background: var(--brand-soft); color: var(--c-primary, var(--brand)); }
.wg-sl-row.live .wg-sl-tag { background: var(--danger); color: #fff; }

/* 방송 경과 시간 */
.wg-up { display: flex; flex-direction: column; justify-content: center; height: 100%; }
.wg-up-off { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.wg-up-off span { font-size: 22px; }
.wg-up-live { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--danger); letter-spacing: .5px; }
.wg-up-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); animation: wg-up-pulse 1.4s ease-in-out infinite; }
.wg-up-clock { font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 40px); color: var(--c-primary, var(--brand)); font-variant-numeric: tabular-nums; line-height: 1.15; }
.wg-up-title { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes wg-up-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .45; } }

/* 구독 이모티콘 소개 */
.wg-em { display: flex; flex-direction: column; height: 100%; }
.wg-em-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; overflow-y: auto; min-height: 0; align-content: start; }
.wg-em-item { text-align: center; min-width: 0; }
.wg-em-img { width: 48px; height: 48px; margin: 0 auto; border-radius: 10px; background: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 24px; overflow: hidden; }
.wg-em-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wg-em-name { font-size: 11px; font-weight: 700; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-em-desc { font-size: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 구독 뱃지 안내 */
.wg-bd { display: flex; flex-direction: column; height: 100%; }
.wg-bd-steps { display: flex; align-items: flex-start; overflow-x: auto; padding: 6px 0; flex: 1; }
.wg-bd-step { position: relative; flex: 1 0 clamp(64px, 16%, 96px); text-align: center; min-width: 0; }
.wg-bd-step::before { content: ''; position: absolute; top: 22px; left: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.wg-bd-step:last-child::before { display: none; }
.wg-bd-circle { position: relative; z-index: 1; width: 44px; height: 44px; margin: 0 auto; border-radius: 50%; background: var(--brand-soft); border: 2px solid var(--c-primary, var(--brand)); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--c-primary, var(--brand)); overflow: hidden; }
.wg-bd-circle img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wg-bd-label { font-size: 11px; font-weight: 700; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }

/* 친구 스트리머 */
.wg-fr { display: flex; flex-direction: column; height: 100%; }
.wg-fr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(64px, 22%, 90px), 1fr)); gap: 10px 6px; overflow-y: auto; min-height: 0; align-content: start; }
.wg-fr-item { display: flex; flex-direction: column; align-items: center; text-align: center; color: inherit; text-decoration: none; min-width: 0; }
.wg-fr-ava { width: clamp(48px, 60%, 64px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; color: var(--c-primary, var(--brand)); border: 2px solid transparent; transition: border-color .15s, transform .15s; }
a.wg-fr-item:hover .wg-fr-ava { border-color: var(--c-primary, var(--brand)); transform: scale(1.05); }
.wg-fr-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wg-fr-name { font-size: 12px; font-weight: 700; margin-top: 5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-fr-desc { font-size: 10px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 노래 레퍼토리 */
.wg-sg { display: flex; flex-direction: column; height: 100%; gap: 6px; }
.wg-sg-cnt { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wg-sg-in { width: 100%; }
.wg-sg-list { flex: 1; min-height: 0; overflow-y: auto; }
.wg-sg-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
.wg-sg-row:last-child { border-bottom: none; }
.wg-sg-t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-sg-a { color: var(--muted); font-size: 12px; flex-shrink: 0; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 게임 목록 */
.wg-gl { display: flex; flex-direction: column; height: 100%; }
.wg-gl-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(clamp(110px, 28%, 200px), 1fr)); gap: 8px; overflow-y: auto; min-height: 0; align-items: start; }
.wg-gl-col { background: var(--paper); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 5px; border-top: 3px solid var(--line); }
.wg-gl-play { border-top-color: var(--c-primary, var(--brand)); }
.wg-gl-done { border-top-color: #2FAE62; }
.wg-gl-wish { border-top-color: var(--c-accent, var(--amber)); }
.wg-gl-head { font-size: 12px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
.wg-gl-head small { color: var(--muted); font-weight: 700; }
.wg-gl-card { background: var(--c-card, var(--card)); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-gl-none { font-size: 11px; color: var(--muted); text-align: center; padding: 6px 0; }

/* 지금 듣는 곡 */
.wg-np { display: flex; align-items: center; gap: 12px; height: 100%; color: inherit; text-decoration: none; }
.wg-np-cover { position: relative; flex: 0 0 clamp(48px, 30%, 72px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: radial-gradient(circle, #333 0 18%, #111 19% 100%); display: flex; align-items: center; justify-content: center; font-size: 22px; animation: wg-np-spin 9s linear infinite; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.wg-np-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wg-np-hole { position: absolute; top: 50%; left: 50%; width: 16%; height: 16%; transform: translate(-50%, -50%); border-radius: 50%; background: var(--c-card, var(--card)); box-shadow: 0 0 0 2px rgba(0,0,0,.4); }
.wg-np-info { flex: 1; min-width: 0; }
.wg-np-label { font-size: 10px; letter-spacing: 1px; font-weight: 800; color: var(--c-primary, var(--brand)); }
.wg-np-song { font-weight: 800; font-size: clamp(14px, 1.8vw, 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-np-artist { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-np-eq { display: flex; align-items: flex-end; gap: 3px; height: 22px; flex-shrink: 0; }
.wg-np-eq i { display: block; width: 4px; border-radius: 2px; background: var(--c-primary, var(--brand)); animation: wg-np-eq .9s ease-in-out infinite; }
.wg-np-eq i:nth-child(2) { animation-delay: .2s; }
.wg-np-eq i:nth-child(3) { animation-delay: .4s; }
@keyframes wg-np-spin { to { transform: rotate(360deg); } }
@keyframes wg-np-eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }

/* 방송 시간대 히트맵 */
.wg-hm { display: flex; flex-direction: column; height: 100%; }
.wg-hm-grid { display: grid; grid-template-columns: auto repeat(24, 1fr); gap: 2px; align-items: center; }
.wg-hm-h { font-size: 9px; color: var(--muted); text-align: left; line-height: 1; height: 10px; }
.wg-hm-d { font-size: 11px; font-weight: 700; color: var(--muted); padding-right: 6px; }
.wg-hm-d.today { color: var(--c-primary, var(--brand)); }
.wg-hm-c { aspect-ratio: 1; border-radius: 2px; background: var(--paper); min-width: 0; }
.wg-hm-c.today { background: var(--brand-soft); }
.wg-hm-c.on { background: var(--c-primary, var(--brand)); }
.wg-hm-c.on.today { box-shadow: inset 0 0 0 1px var(--c-accent, var(--amber)); }
.wg-hm-hint { margin-top: 8px; }

/* 마일스톤 기록 */
.wg-ml { display: flex; flex-direction: column; height: 100%; }
.wg-ml-list { overflow-y: auto; min-height: 0; border-left: 2px solid var(--line); margin-left: 9px; padding-left: 18px; }
.wg-ml-item { position: relative; padding-bottom: 14px; font-size: 13px; }
.wg-ml-item:last-child { padding-bottom: 2px; }
.wg-ml-ico { position: absolute; left: -29px; top: -1px; width: 20px; height: 20px; border-radius: 50%; background: var(--c-card, var(--card)); border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 11px; }
.wg-ml-item.latest .wg-ml-ico { border-color: var(--c-primary, var(--brand)); background: var(--brand-soft); }
.wg-ml-when { font-size: 11px; font-weight: 700; color: var(--muted); }
.wg-ml-item.latest .wg-ml-when { color: var(--c-primary, var(--brand)); }
.wg-ml-what { font-weight: 600; }
.wg-ml-item.latest .wg-ml-what { font-size: 15px; font-weight: 800; }

/* 콘텐츠 시리즈 */
.wg-se { display: flex; flex-direction: column; height: 100%; }
.wg-se-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; min-height: 0; }
.wg-se-item { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; font-size: 13px; }
.wg-se-list li:last-child .wg-se-item { border-bottom: none; }
a.wg-se-item:hover { background: var(--brand-soft); border-radius: 8px; }
.wg-se-no { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--c-primary, var(--brand)); font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wg-se-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wg-se-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-se-new { font-style: normal; font-size: 10px; background: var(--c-accent, var(--amber)); color: #fff; border-radius: 99px; padding: 1px 7px; margin-left: 4px; vertical-align: middle; }
.wg-se-desc { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-se-arrow { color: var(--muted); font-size: 18px; }

/* 오늘 방송 예고 */
.wg-ts { display: flex; flex-direction: column; justify-content: center; height: 100%; }
.wg-ts-off { font-size: clamp(14px, 1.8vw, 16px); color: var(--muted); text-align: center; padding: 8px 0; }
.wg-ts-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 0; }
.wg-ts-card { --wg-ts-c: var(--c-primary, var(--brand)); border-left: 4px solid var(--wg-ts-c); background: var(--brand-soft); border-radius: 0 12px 12px 0; padding: 10px 14px; }
.wg-ts-card.live { background: linear-gradient(90deg, var(--brand-soft), var(--c-card, var(--card))); }
.wg-ts-time { font-family: var(--font-display); font-size: clamp(16px, 2vw, 20px); color: var(--wg-ts-c); display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.wg-ts-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); animation: wg-up-pulse 1.4s ease-in-out infinite; }
.wg-ts-name { font-weight: 800; font-size: 15px; }
.wg-ts-memo { font-size: 12px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 시청 보상 안내 */
.wg-rw { display: flex; flex-direction: column; height: 100%; }
.wg-rw-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 0; }
.wg-rw-card { display: flex; align-items: center; gap: 12px; border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; min-width: 0; }
.wg-rw-card > div { min-width: 0; }
.wg-rw-ico { font-size: 22px; flex-shrink: 0; }
.wg-rw-cond { font-size: 12px; color: var(--muted); font-weight: 700; }
.wg-rw-gift { font-weight: 800; color: var(--c-primary, var(--brand)); }

/* 협업·문의 카드 */
.wg-bz { display: flex; flex-direction: column; justify-content: center; gap: 8px; height: 100%; border-left: 4px solid var(--c-primary, var(--brand)); padding-left: 14px; }
.wg-bz-top { display: flex; align-items: center; gap: 10px; }
.wg-bz-ico { font-size: 26px; }
.wg-bz-name { font-family: var(--font-display); font-size: clamp(16px, 2vw, 20px); }
.wg-bz-role { font-size: 12px; color: var(--muted); }
.wg-bz-mail { font-size: 13px; font-weight: 700; word-break: break-all; }
.wg-bz-extra { font-size: 12px; color: var(--muted); }
.wg-bz-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* 모션 최소화 — 이 파일의 애니메이션 전부 비활성 */
@media (prefers-reduced-motion: reduce) {
  .wg-mvp-crown, .wg-mc-shine, .wg-bg-cell.on, .wg-tm-item.on, .wg-sp.flow .wg-sp-track,
  .wg-up-dot, .wg-ts-dot, .wg-np-cover, .wg-np-eq i {
    animation: none;
  }
  .wg-sp.flow .wg-sp-track { flex-wrap: wrap; width: auto; justify-content: space-around; }
  .wg-tm-item, .wg-wl-bar i, .wg-mg-bar i, .wg-mh-card, .wg-fr-ava, .wg-sp-item { transition: none; }
}
