/* 라이브스코어(/score) 공통 디자인 시스템 — 축구(integrated)와 비축구(canonical_scores) 두 화면이 함께 쓴다.
   상단 카드(제목·종목 카드·필터 컨트롤)와 목록 공통 토큰. 화면 루트에 .rt-score-shell 이 붙어 있을 때만 적용된다. */
.rt-score-shell:not(.itg) {
 --g-bg:rgba(13,19,46,.96); --g-bg2:rgba(8,10,26,.55); --g-line:rgba(149,107,255,.18); --g-line2:rgba(149,107,255,.32);
 --g-text:#e8eaf6; --g-sub:#9aa3c7; --g-brand:#956bff; --g-brand-soft:rgba(149,107,255,.18); --g-hover:rgba(149,107,255,.08);
 --g-live:#ef476f; --g-live-bg:rgba(239,71,111,.18); --g-up:#7db8ff; --g-fin:#aab1c7;
}
html[data-theme="light"] .rt-score-shell:not(.itg) {
 --g-bg:#fff; --g-bg2:#f3f4fa; --g-line:#e1e4f0; --g-line2:#c9cde3; --g-text:#1c2033; --g-sub:#5b6385; --g-brand:#6d3fe0; --g-brand-soft:#ece6ff; --g-hover:#f6f3ff;
 --g-live:#d62c52; --g-live-bg:#ffe5ec; --g-up:#2563c4; --g-fin:#6b7390;
}
/* ══ 상단 리뉴얼: 전체 너비 상단 카드(제목 · 전 종목 카드 · 필터 컨트롤) + 아래 2단(목록|상세) ══ */
html:root .rt-score-shell .itg-top { position:relative; margin:0 0 16px; padding:16px 18px 14px; border:1px solid rgba(149,107,255,.38); border-radius:18px; background:linear-gradient(135deg,rgba(52,36,126,.55),rgba(14,20,52,.92) 62%); box-shadow:0 8px 28px rgba(8,10,34,.35); }
html:root .rt-score-shell .itg-head { position:static; display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 14px; height:auto !important; flex-wrap:wrap; }
html:root .rt-score-shell .itg-headtxt { display:flex; align-items:center; gap:14px; flex-wrap:wrap; min-width:0; }
html:root .rt-score-shell .itg-title { position:static; width:auto; height:auto; margin:0; overflow:visible; clip:auto; white-space:normal; display:flex; align-items:center; gap:10px; font-size:26px; font-weight:900; letter-spacing:-.01em; color:var(--g-text); }
html:root .rt-score-shell .itg-title::before { content:""; flex:none; width:30px; height:30px; background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b99cff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='2.2' fill='%23b99cff'/%3E%3Cpath d='M7.8 7.8a6 6 0 0 0 0 8.4M16.2 7.8a6 6 0 0 1 0 8.4M4.9 4.9a10 10 0 0 0 0 14.2M19.1 4.9a10 10 0 0 1 0 14.2'/%3E%3C/svg%3E"); }
html:root .rt-score-shell .itg-sub { margin:0; font-size:14px; color:var(--g-sub); }
html:root .rt-score-shell .itg-upd { margin-left:auto; }
html:root .rt-score-shell .itg-toolbarwrap { margin:0; }
html:root .rt-score-shell .itg-toolbarwrap .pd-cs-toolbar { padding:0 !important; margin:0 !important; border:0 !important; background:none !important; box-shadow:none !important; gap:14px !important; display:flex; flex-direction:column; }

/* 종목 카드: PC 에서 전 종목을 한 줄에 */

/* 필터 줄: 독립 컨트롤(상태 탭 · 날짜 · 검색 · 승부예측) */
html:root .rt-score-shell .itg-toolbarwrap .pd-sc-bar { display:flex !important; flex-wrap:wrap !important; align-items:center; gap:12px !important; margin:0 !important; padding:0 !important; border:0 !important; }
html:root .rt-score-shell .pd-sc-tabs, html:root .rt-score-shell .pd-cs-datenav, html:root .rt-score-shell .pd-cs-search-field, html:root .rt-score-shell .itg-predfilter { box-sizing:border-box; height:46px; border:1px solid rgba(149,107,255,.38) !important; border-radius:13px !important; background:rgba(10,14,42,.78) !important; }
html:root .rt-score-shell .pd-sc-tabs { flex:0 0 auto; display:inline-flex; align-items:center; gap:2px; padding:4px !important; }
html:root .rt-score-shell .pd-sc-tabs .pd-sc-tab { height:36px !important; padding:0 16px !important; border:0 !important; border-radius:10px !important; font-size:14px !important; font-weight:800 !important; color:var(--g-sub); background:transparent !important; }
html:root .rt-score-shell .pd-sc-tabs .pd-sc-tab.is-active { background:linear-gradient(145deg,#7c4dff,#9b72ff) !important; color:#fff !important; box-shadow:0 3px 10px rgba(124,77,255,.4); }
html:root .rt-score-shell .pd-cs-dates { flex:0 0 auto; display:flex; align-items:center; gap:12px; margin:0 !important; }
html:root .rt-score-shell .pd-cs-datenav { display:inline-flex; align-items:center; overflow:visible; padding:0 !important; }
html:root .rt-score-shell .pd-cs-datenav .pd-sc-dstep { height:100% !important; min-width:40px; border:0 !important; background:transparent !important; color:var(--g-text); font-size:18px; }
html:root .rt-score-shell .pd-cs-datenav .rt-calendar-trigger { height:100% !important; padding:0 18px !important; border:0 !important; border-left:1px solid rgba(149,107,255,.28) !important; border-right:1px solid rgba(149,107,255,.28) !important; border-radius:0 !important; background:transparent !important; font-weight:800; font-size:15px; }
html:root .rt-score-shell .pd-cs-search { flex:1 1 220px; min-width:180px; margin:0 !important; }
html:root .rt-score-shell .pd-cs-search-field { display:flex; align-items:center; gap:10px; width:100%; padding:0 14px !important; }
html:root .rt-score-shell .pd-cs-search-input { height:100%; flex:1; background:transparent !important; border:0 !important; font-size:15px; }
html:root .rt-score-shell .itg-predfilter { display:inline-flex !important; align-items:center; gap:9px; margin:0 !important; padding:0 16px !important; font-size:13px !important; font-weight:800; white-space:nowrap; cursor:pointer; }
html:root .rt-score-shell .itg-predfilter input { width:18px; height:18px; accent-color:#8b5cf6; }


/* 라이트 */
html[data-theme="light"] .rt-score-shell .itg-top { background:linear-gradient(135deg,#f1ecff,#fff 62%); border-color:rgba(124,77,255,.35); box-shadow:0 6px 20px rgba(80,60,160,.12); }
html[data-theme="light"] .rt-score-shell .pd-sc-tabs, html[data-theme="light"] .rt-score-shell .pd-cs-datenav, html[data-theme="light"] .rt-score-shell .pd-cs-search-field, html[data-theme="light"] .rt-score-shell .itg-predfilter { background:#fff !important; border-color:rgba(124,77,255,.32) !important; }

/* 모바일/태블릿: 가로 스크롤 + 전체 펼치기 */
@media (max-width:1099px) {
 html:root .rt-score-shell .itg-top { padding:12px 12px 10px; border-radius:14px; margin-bottom:12px; }
 html:root .rt-score-shell .itg-head { margin-bottom:10px; }
 html:root .rt-score-shell .itg-title { font-size:20px; } html:root .rt-score-shell .itg-title::before { width:24px; height:24px; }
 html:root .rt-score-shell .itg-sub { display:none; }
 html:root .rt-score-shell .itg-toolbarwrap .pd-sc-bar { gap:8px !important; }
 html:root .rt-score-shell .pd-sc-tabs, html:root .rt-score-shell .pd-cs-datenav, html:root .rt-score-shell .pd-cs-search-field, html:root .rt-score-shell .itg-predfilter { height:42px; }
 html:root .rt-score-shell .pd-sc-tabs .pd-sc-tab { height:32px !important; padding:0 11px !important; font-size:13px !important; }
 html:root .rt-score-shell .itg-predfilter { font-size:11px !important; padding:0 12px !important; }
}
html:root .rt-score-shell .itg-toolbarwrap .pd-sc-tabs { order:1; } html:root .rt-score-shell .itg-toolbarwrap .pd-cs-dates { order:2; } html:root .rt-score-shell .itg-toolbarwrap .pd-cs-search { order:4; } html:root .rt-score-shell .itg-toolbarwrap .itg-predfilter { order:3; }

/* ── 비축구 경기 목록(.pd-cs-table)을 축구 목록(.itg-league)과 같은 체계로: 카드 테두리·행 구분선·호버·라이브 행 강조 없음·스코어 상자·상태 배지(라이트 포함).
      행 구조(리그|시간|홈|스코어|원정|기타)와 종목별 정보 배치, 모바일의 2줄 스코어는 그대로 둔다. ── */
html:root .rt-score-shell.pd-canonical-scores .pd-cs-table { border:1px solid var(--g-line2); border-radius:12px; background:var(--g-bg); overflow:hidden; }
html:root .rt-score-shell.pd-canonical-scores .pd-cs-columns { background:var(--g-bg2); color:var(--g-sub); border-bottom:1px solid var(--g-line); }
html:root .rt-score-shell.pd-canonical-scores .pd-sc-list .pd-sc-row { border-bottom:1px solid var(--g-line); }
html:root .rt-score-shell.pd-canonical-scores .pd-sc-list .pd-sc-row:hover { background:var(--g-hover); }
html:root .rt-score-shell.pd-canonical-scores.pd-scores .pd-sc-list .pd-sc-row.pd-sc-live, html:root .rt-score-shell.pd-canonical-scores.pd-scores .pd-sc-list .pd-sc-row.pd-sc-live:hover { box-shadow:none; background:transparent; }
html:root .rt-score-shell.pd-canonical-scores.pd-scores .pd-sc-list .pd-sc-row.pd-sc-live:hover { background:var(--g-hover); }
html:root .rt-score-shell.pd-canonical-scores .pd-sc-league { border-left:0; }
@media (max-width:600px) {
 html:root .rt-score-shell.pd-canonical-scores .pd-sc-league { border:1px solid var(--g-line2); border-left:1px solid var(--g-line2); border-radius:12px; background:var(--g-bg); }
 html:root .rt-score-shell.pd-canonical-scores .pd-cs-table { border:0; background:transparent; border-radius:0; overflow:visible; }
}
@media (min-width:601px) { html[data-theme="light"] .rt-score-shell.pd-canonical-scores .pd-sc-row .pd-sc-scores { background:rgba(255,255,255,.9); border-color:rgba(149,107,255,.3); }
 html[data-theme="light"] .rt-score-shell.pd-canonical-scores .pd-cs-actions .pd-cs-act { background:rgba(124,77,255,.08); border-color:rgba(124,77,255,.35); color:#6d3fe0; } }
html[data-theme="light"] .rt-score-shell.pd-canonical-scores .pd-sc-row .pd-sc-num { color:var(--g-text); }
/* 모바일: 행 오른쪽 기능 버튼 격자가 행 높이(66px)보다 길어 아래 행을 침범하던 것을 행 안에 맞춘다(버튼 5개 → 3줄 × 21px). */
@media (max-width:600px) { html:root .rt-score-shell.pd-canonical-scores .pd-sc-row .pd-cs-actions { grid-auto-rows:21px; } html:root .rt-score-shell.pd-canonical-scores .pd-sc-row .pd-cs-actions .pd-cs-act { height:21px; } }
html[data-theme="light"] .rt-score-shell.pd-canonical-scores .pd-sc-row:not(.pd-sc-live) .pd-sc-state { background:#eceef6; border-color:#c9cde3; color:#6b7390; }
html[data-theme="light"] .rt-score-shell.pd-canonical-scores .pd-sc-row.pd-sc-live .pd-sc-state { background:#ffe5ec; border-color:rgba(214,44,82,.45); color:#d62c52; }
html[data-theme="light"] .rt-score-shell.pd-canonical-scores .pd-cs-team-name { color:var(--g-text); }
html[data-theme="light"] .rt-score-shell.pd-canonical-scores .pd-sc-row:not(.pd-sc-live) .pd-cs-kickoff { color:#4b5578; }

/* 종목을 바꿔도 상단 카드의 위치·높이가 같도록(축구·비축구 두 화면의 바깥 여백·머리줄 높이 차이를 맞춘다) */
html:root .rt-score-shell .itg-head { height:34px !important; min-height:34px; }
html:root .rt-score-shell:not(.itg) .itg-top { margin-top:4px; }

/* 종목 칩은 승부예측(/market) 칩을 그대로 쓴다(market_*.css·prediction.css 의 .pd-chip 규칙). 그 목록 페이지의 바깥 틀(배경·여백·테두리)만 이 상단 카드 안에서 비운다. 칩·칩 묶음 규칙은 건드리지 않는다. */
html:root .rt-score-shell .itg-sportsbox.pd-wrap, html:root .rt-score-shell .itg-sportsbox .pd-main.rt-market-content, html:root .rt-score-shell .itg-sportsbox .pd-sports-toolbar { margin:0 !important; padding:0 !important; border:0 !important; background:none !important; box-shadow:none !important; min-height:0 !important; max-width:none !important; width:auto !important; }
html:root .rt-score-shell .itg-sportsbox .pd-sports-toolbar::before, html:root .rt-score-shell .itg-sportsbox .pd-sports-toolbar::after { content:none !important; }

/* PC(≥1100): 필터 줄 컨트롤을 달력 버튼의 세로 크기(36px)에 맞춘다. 모바일(42px로 모두 같음)은 그대로. */
@media (min-width:1100px) {
 html:root .rt-score-shell .pd-sc-tabs, html:root .rt-score-shell .pd-cs-datenav, html:root .rt-score-shell .pd-cs-search-field, html:root .rt-score-shell .itg-predfilter { height:36px !important; }
 html:root .rt-score-shell .pd-sc-tabs { padding:3px !important; }
 html:root .rt-score-shell .pd-sc-tabs .pd-sc-tab { height:28px !important; padding:0 14px !important; }
 html:root .rt-score-shell .itg-predfilter { padding:0 14px !important; }
 html:root .rt-score-shell .pd-cs-search-field { padding:0 12px !important; }
 html:root .rt-score-shell .itg-predfilter input { width:16px; height:16px; }
}
@media (min-width:1100px) { html:root .rt-score-shell .pd-cs-search { flex:0 0 229px !important; min-width:0 !important; margin-left:auto !important; } }   /* 검색창: 폭을 절반으로, 오른쪽 정렬(승부예측 체크 바로 왼쪽) */
/* 상단 제목·부제 제거: h1 은 접근성·SEO 용으로 화면 밖에 두고, 갱신 지연 알림(.itg-upd)이 있을 때만 줄을 연다 */
html:root .rt-score-shell .itg-title { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; display:block; }
html:root .rt-score-shell .itg-title::before { display:none; }
html:root .rt-score-shell .itg-head { height:0 !important; min-height:0 !important; margin:0 !important; }
html:root .rt-score-shell .itg-head:has(.itg-upd:not([hidden])) { height:auto !important; min-height:0 !important; margin:0 0 8px !important; }
