/* 경기분석 상세 정보 탭(경기분석 | 라인업 | H2H | 리그순위). 이 파일의 규칙은 .rtw-it 와 탭이 켜졌을 때의 본문 숨김만 다룬다.
   다크가 기본(속성 없음), 라이트는 html[data-theme="light"] 로 덮는다. 바이올렛·인디고 테마, 4칸 균등. */
.rtw-it { margin: 16px 0 0; padding: 0 var(--rtb-pad, 20px); }   /* 좌우 기준선은 아래 본문(.rtb-doc-body)과 같다 */
@media (min-width: 1024px) { .rtb-read .rtw-it { padding-left: 30px; padding-right: 30px; } }
.rtw-it-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 4px; border: 1px solid rgba(149, 107, 255, .28); border-radius: 14px; background: rgba(17, 15, 48, .88); box-sizing: border-box; }
.rtw-it-bar button { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; height: 56px; margin: 0; padding: 0 8px; border: 0; border-radius: 10px; background: none; color: #c9c6ee; font: inherit; font-size: 17px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s; }
.rtw-it-bar button > span { overflow: hidden; text-overflow: ellipsis; }
.rtw-it-bar button svg { flex: 0 0 auto; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rtw-it-bar button + button::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: rgba(149, 107, 255, .26); }
.rtw-it-bar button[aria-selected="true"]::before, .rtw-it-bar button[aria-selected="true"] + button::before { display: none; }
.rtw-it-bar button:hover { color: #fff; background: rgba(149, 107, 255, .10); }
.rtw-it-bar button[aria-selected="true"] { color: #fff; background: linear-gradient(180deg, #7c4dff 0%, #5a2fd8 100%); box-shadow: inset 0 -3px 0 #a78bfa, 0 6px 18px rgba(124, 77, 255, .32); }
.rtw-it-bar button[aria-selected="true"] svg { stroke-width: 2.2; }
.rtw-it-bar button:focus-visible { outline: 2px solid #a78bfa; outline-offset: 2px; }

.rtw-it-pane { margin-top: 16px; }
.rtw-it-pane[hidden] { display: none !important; }
/* 경기분석 외 탭이 켜지면 본문·AI 안내만 숨긴다(헤더·첨부·태그·댓글은 그대로). */
.rtb-doc.rtw-it-on .rtb-doc-body, .rtb-doc.rtw-it-on .rtb-ai-note { display: none !important; }

.rtw-it-note { margin: 0; padding: 34px 16px; border: 1px dashed rgba(149, 107, 255, .32); border-radius: 14px; background: rgba(17, 15, 48, .55); color: #a9aed0; font-size: 14px; line-height: 1.6; text-align: center; word-break: keep-all; }
.rtw-it-note.is-wait { border-style: solid; color: #8f95bd; }
.rtw-it-note.is-err { color: #f3a6b5; }
.rtw-it-note.is-sub { margin-top: 12px; padding: 12px; font-size: 13px; }

/* 서버 조각(라인업·H2H): 팝업 몸체가 아니라 페이지 안에 놓이므로 바깥 여백만 맞춘다. 조각 안의 모양은 기존 CSS 그대로. */
.rtw-it-frag > .pd-wrap { max-width: none; width: auto; margin: 0; }
.rtw-it-frag .pd-cs-pbody { padding: 0; }

/* 라인업 상태 줄·패널 제목(rtw_infotabs.js 가 단다) */
.rtw-it-lus { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 10px; }
.rtw-it-lus b { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 800; color: #d9ccff; background: rgba(149, 107, 255, .2); border: 1px solid rgba(149, 107, 255, .45); }
.rtw-it-lus.is-confirmed b { color: #7ee2b0; background: rgba(52, 211, 153, .14); border-color: rgba(52, 211, 153, .45); }
.rtw-it-lus small { font-size: 12.5px; color: #9aa3c7; }
.rtw-it-sh { grid-column: 1 / -1; flex: 0 0 100%; width: 100%; margin: 0 0 4px; font-size: 15px; font-weight: 800; color: #e8eaf6; }
/* 라이트: 교체·부상 패널은 /market 에서는 다른 모양으로 바뀌어 라이트 바탕이 없다 — 같은 라이트 카드 톤을 준다. */
html[data-theme="light"] .rtw-it-frag [data-pd-tab-panel="bench"], html[data-theme="light"] .rtw-it-frag [data-pd-tab-panel="out"] { background: #f4f2fc !important; border-color: #ddd6f7 !important; }
html[data-theme="light"] .rtw-it-lus b { color: #5b34d6; background: #efe9ff; border-color: #cbbcf7; }
html[data-theme="light"] .rtw-it-lus.is-confirmed b { color: #0f7a4f; background: #e3f7ee; border-color: #9fdcc0; }
html[data-theme="light"] .rtw-it-lus small { color: #5b6385; }
html[data-theme="light"] .rtw-it-sh { color: #1c2033; }

/* 리그순위 카드: 표 모양은 /market 의 .itg-lt 그대로(integrated.css). .itg 의 페이지용 폭·여백만 지운다. */
.rtw-it-itg.itg { max-width: none; margin: 0; padding: 0; }
.rtw-it-card { padding: 18px 20px 16px; border: 1px solid rgba(149, 107, 255, .26); border-radius: 14px; background: rgba(17, 15, 48, .88); box-sizing: border-box; }
.rtw-it-thead { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 0 2px 12px; border-bottom: 1px solid rgba(149, 107, 255, .22); }
.rtw-it-thead strong { font-size: 17px; font-weight: 800; color: #f1efff; }
.rtw-it-thead small { margin-left: auto; font-size: 13px; font-weight: 600; color: #9aa3c7; }
.rtw-it-flag { width: 24px; height: 18px; border-radius: 3px; object-fit: cover; }
.rtw-it-table .itg-lt-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

html[data-theme="light"] .rtw-it-bar { border-color: #ddd5fb; background: #fff; box-shadow: 0 1px 3px rgba(40, 30, 90, .06); }
html[data-theme="light"] .rtw-it-bar button { color: #4b5072; }
html[data-theme="light"] .rtw-it-bar button + button::before { background: #e4def8; }
html[data-theme="light"] .rtw-it-bar button:hover { color: #3a1fa0; background: #f4f0ff; }
html[data-theme="light"] .rtw-it-bar button[aria-selected="true"] { color: #fff; background: linear-gradient(180deg, #7c4dff 0%, #5b34d6 100%); box-shadow: inset 0 -3px 0 #a78bfa, 0 6px 16px rgba(109, 63, 224, .22); }
html[data-theme="light"] .rtw-it-note { border-color: #d9d1f7; background: #faf8ff; color: #5b6385; }
html[data-theme="light"] .rtw-it-note.is-err { color: #b8324f; }
html[data-theme="light"] .rtw-it-card { border-color: #e1dcf6; background: #fff; }
html[data-theme="light"] .rtw-it-thead { border-color: #ece8fb; }
html[data-theme="light"] .rtw-it-thead strong { color: #1c2033; }
html[data-theme="light"] .rtw-it-thead small { color: #5b6385; }

@media (max-width: 767px) {
	.rtw-it { margin-top: 12px; padding: 0; }
	.rtw-it-bar { padding: 3px; border-radius: 12px; }
	.rtw-it-bar button { flex-direction: row; gap: 5px; height: 44px; padding: 0 2px; border-radius: 9px; font-size: 13.5px; }
	.rtw-it-bar button svg { width: 16px; height: 16px; }
	.rtw-it-bar button + button::before { top: 12px; bottom: 12px; }
	.rtw-it-pane { margin-top: 12px; }
	.rtw-it-note { padding: 26px 12px; font-size: 13px; }
	.rtw-it-card { padding: 12px 10px; border-radius: 12px; }
	.rtw-it-thead { margin-bottom: 8px; padding-bottom: 10px; }
	.rtw-it-thead strong { font-size: 15px; }
}
@media (max-width: 359px) {
	.rtw-it-bar button svg { display: none; }
}

/* 2026-12-05 AI 예상 라인업 로봇 아이콘: 승부예측 상세(/market .itg-lu-bs.is-predicted svg)와 같은 크기·선 굵기. 색은 배지 글자색을 따른다(다크·라이트 공통). */
.rtw-it-lus.is-predicted b { gap: 6px; }
.rtw-it-lus.is-predicted b svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
