/* [KAN-38] 클릭스포츠 실시간 검색어 위젯 (proc/_header_search.html + js/realtime_keyword.js). 헬로반티 KAN-35 위젯 이식. 색은 JS 가 설정값으로 칠한다. */
.rtk { display:none; position:relative; font-family:'Apple SD Gothic Neo','Malgun Gothic',sans-serif; font-size:13px; color:#222; text-align:left; line-height:1.2; letter-spacing:-0.2px; }
.rtk.rtk-on { display:block; }
.rtk * { box-sizing:border-box; }
.rtk ul, .rtk ol { list-style:none; margin:0; padding:0; }
.rtk-bar { display:flex; align-items:center; height:36px; padding:0 12px 0 8px; background:#fff; border:1px solid #e3e5ea; border-radius:12px; cursor:pointer; outline:none; -webkit-tap-highlight-color:transparent; }
.rtk-bar:focus { border-color:#9aa1b0; }
.rtk-pill { flex:none; font-size:11px; font-weight:700; color:#3b6fe0; background:#e8efff; border-radius:10px; padding:3px 8px; margin-right:10px; }
.rtk-roll { flex:1; min-width:0; height:34px; overflow:hidden; position:relative; }
.rtk-roll ul { transition:transform .45s ease; }
.rtk-roll li { display:flex; align-items:center; height:34px; white-space:nowrap; }
.rtk-n { flex:none; display:inline-block; width:22px; font-weight:700; color:#3b6fe0; }
.rtk-k { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rtk-mark { flex:none; display:inline-block; width:16px; margin-left:6px; font-size:11px; font-weight:700; text-align:center; }
.rtk-mark.new, .rtk-mark.up { color:#e2463a; }
.rtk-mark.down { color:#3b82f6; }
.rtk-mark.same { color:#bbb; }
.rtk-chev { flex:none; width:8px; height:8px; margin-left:8px; border-right:2px solid #666; border-bottom:2px solid #666; transform:translateY(-2px) rotate(45deg); }
.rtk-panel { display:none; position:absolute; left:0; top:0; width:100%; background:#fff; border:1px solid #e3e5ea; border-radius:14px; box-shadow:0 6px 24px rgba(0,0,0,.12); padding:12px 16px 8px; z-index:1001; }
.rtk.open .rtk-panel { display:block; }
.rtk-ph { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.rtk-ph b { font-size:15px; color:#3b6fe0; }
.rtk-ph-r { display:flex; align-items:center; }
.rtk-at { color:#888; font-size:12px; }
.rtk-close { width:24px; height:24px; margin-left:6px; padding:0; border:0; background:none; cursor:pointer; position:relative; }
.rtk-close:after { content:''; position:absolute; left:8px; top:10px; width:8px; height:8px; border-left:2px solid #666; border-top:2px solid #666; transform:rotate(45deg); }
.rtk-panel li a { display:flex; align-items:center; height:32px; color:#222; text-decoration:none; }
.rtk-panel li a:hover .rtk-k, .rtk-panel li a:focus .rtk-k { text-decoration:underline; }
@media (prefers-reduced-motion: reduce) {
  .rtk-roll ul { transition:none; }
}

/* PC: 검색창(.top_search) 바로 아래, 같은 폭 — 위치·폭은 JS(placePc)가 검색창을 재서 맞춘다 */
.rtk-pc { position:absolute; z-index:20; }
.rtk-pc.open { z-index:1001; }
/* 최근 검색어 펼침(.search_cont)은 위젯보다 위 */
.PJ_head_search .top_search .search_cont { z-index:1002; }
/* 슬라이드 검색 오버레이 사본에는 그리지 않는다 */
.PJ_bg_search .rtk { display:none !important; }
/* PC 헤더 높이 안에 들어가게 조금 낮게 (검색창 아래 ~ 헤더 구분선 위) */
.rtk-pc .rtk-bar { height:32px; border-radius:10px; }
.rtk-pc .rtk-roll, .rtk-pc .rtk-roll li { height:30px; }
