/* POWER SCORE 테마 · 그누보드와 함께 쓰기 위한 보충 규칙 (power.css · theme.css 다음에 불러온다) */

/* 화면에는 숨기고 낭독기에만 들려주는 그누보드 공통 요소 */
#hd_login_msg { position: absolute; top: 0; left: 0; width: 1px; height: 1px; font-size: 0; line-height: 0; overflow: hidden; }
.sound_only { display: inline-block !important; position: absolute; top: 0; left: 0; width: 0; height: 0; margin: 0 !important; padding: 0 !important; font-size: 0; line-height: 0; border: 0 !important; overflow: hidden !important; }

/* 팝업레이어 (관리자 > 팝업레이어 관리). 메인에서는 그누보드 기본 CSS 를 불러오지 않으므로 여기서 모양을 잡는다 */
#hd_pop { z-index: 1000; position: relative; width: 100%; max-width: 1280px; height: 0; margin: 0 auto; }
#hd_pop h2 { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }
.hd_pops { position: absolute; max-width: calc(100vw - 24px); border: 1px solid #DCE2E9; background: #fff; color: #0D1219; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.hd_pops img { max-width: 100%; }
.hd_pops_footer { position: relative; background: #000; color: #fff; text-align: left; }
.hd_pops_footer::after { content: ""; display: block; clear: both; }
.hd_pops_footer button { padding: 10px; border: 0; color: #fff; }
.hd_pops_footer .hd_pops_reject { background: #000; }
.hd_pops_footer .hd_pops_close { position: absolute; top: 0; right: 0; background: #393939; }

/* 최신글: 글이 없을 때 / 실제 사진 썸네일 */
.posts__empty { padding: 30px 16px; text-align: center; font-size: 13px; color: var(--muted); }
.posts .fa-lock { color: var(--muted); }
.ph--img::before, .ph--img::after { content: none; }
.ph--img img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 옆단 · 로그인 후 */
.member { padding: 16px; }
.member__top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.member__img { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--panel-2); }
.member__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.member__top p { min-width: 0; font-size: 14px; }
.member__top strong { font-weight: 700; }
.member__top small { display: block; font-size: 12px; color: var(--muted); }
.member__admin { margin-left: auto; padding: 5px 9px; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.member__admin:hover { color: var(--text); border-color: var(--accent-line); }
.member__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.member__stats a { display: grid; gap: 4px; padding: 10px 6px; text-align: center; border: 1px solid var(--line); border-radius: 5px; background: var(--panel-2); font-size: 12px; color: var(--text-2); }
.member__stats a:hover { border-color: var(--accent-line); }
.member__stats b { font-size: 18px; line-height: 1; color: var(--text); }
.member .login__links .btn { height: 36px; font-size: 12px; font-weight: 600; }

/* 서브 화면 본문 상자: 게시판 · 회원 스킨은 그누보드 기본 모양(default.scoped.css)을 이 안에서 그대로 쓴다.
   기본 스킨이 흰 바탕을 전제로 하므로 다크 모드에서도 이 상자만은 흰 바탕으로 둔다 */
.panel.g5 { min-height: 420px; padding: 20px; overflow: hidden; border-color: #DCE2E9; background: #fff; color: #000; font-size: 12px; line-height: 1.5; letter-spacing: 0; }
.g5 #container_title, .g5 .g5__title { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid #E9EDF1; font: 700 18px/1.3 "Pretendard Variable", Pretendard, "Malgun Gothic", sans-serif; color: #0D1219; }
.g5 #container_title span { display: block; margin: 0; line-height: inherit; }
.g5 img { max-width: 100%; }
.g5 table { max-width: 100%; }
.g5 :focus-visible { outline-color: #0D1219; }
@media (max-width: 640px) {
  .panel.g5 { padding: 14px 12px; }
}

/* ---------- 한줄 공지: 헤더 맨 윗줄에서 한 줄씩 위로 올라가며 바뀐다 (head.php 가 내고 js/site.js 가 돌린다) ---------- */
.util__notice .roll { display: block; flex: 1; min-width: 0; height: 20px; overflow: hidden; }
.util__notice .roll__list { display: block; transition: transform .5s cubic-bezier(.3, .7, .3, 1); will-change: transform; }
.util__notice .roll__item { display: block; height: 20px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .util__notice .roll__list { transition: none; } }

/* ---------- 순위 위젯: 표 대신 Sofascore 순위 아이프레임을 쓰는 리그 (js/site.js 가 넣는다) ---------- */
/* 종목 · 리그를 고르는 자리와 순위가 나오는 자리 사이에는 선만 긋는다 (바탕색은 순위 칸과 같게 둔다) */
.rank__leagues { padding-bottom: 12px; }
.rank__groups { padding-top: 0; padding-bottom: 12px; }
.rank__table, .rank__widget { margin-top: 0; border-top: 1px solid var(--line); }
.rank__widget { position: relative; overflow: hidden; border-radius: 0 0 7px 7px; --wbg: #171C1F; background: var(--wbg); }   /* --wbg: 위젯 카드의 바탕색(다크) */
[data-theme="light"] .rank__widget { --wbg: #FFFFFF; }                                                                          /* 위젯 카드의 바탕색(라이트) */
/* 위젯 카드는 모서리가 둥글어서(16px) 귀퉁이 바깥이 다른 색으로 비치고 곡선 테두리가 남는다. 테두리의 곧은 부분은 js 가 칸 밖으로 밀어 가리고,
   네 귀퉁이는 여기서 카드 바탕색 네모로 덮어 순위 칸에 빈틈 없이 붙은 네모로 보이게 한다 (귀퉁이에는 위젯의 내용이 없다) */
.rank__widget::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(var(--wbg), var(--wbg)) 0 0 / 14px 14px no-repeat, linear-gradient(var(--wbg), var(--wbg)) 100% 0 / 14px 14px no-repeat,
              linear-gradient(var(--wbg), var(--wbg)) 0 100% / 14px 14px no-repeat, linear-gradient(var(--wbg), var(--wbg)) 100% 100% / 14px 14px no-repeat; }
.rank__widget iframe { display: block; width: 100%; max-width: none; border: 0; transform-origin: 0 0; }
.rank__table[hidden], .rank__widget[hidden] { display: none; }
