/* ANGELBET 인플레이(/sportsbook?tab=inplay) - 디자인 inplay.html 위에 얹는 것만(2026-11-20). 색·글자는 디자인 토큰 그대로 */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── 위 큰 경기 칸: 왼쪽 점수판, 오른쪽 트래커·영상(디자인 .pitch 자리). 영상은 칸 폭을 다 쓴다 ── */
.sl-center { grid-template-columns: minmax(0, 1fr) minmax(318px, 1.08fr); align-items: start; }
.sl-center[hidden] { display: none; }
.sl-center .center-top { align-self: center; }
.sl-center .center-lg span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sl-center .center-score b { overflow-wrap: anywhere; }
.sl-center .center-tabs button:disabled { color: var(--ink-3); opacity: 0.7; cursor: default; }
.sl-center[data-view="video"] { grid-template-columns: minmax(0, 1fr); }
.sl-center[data-view="video"] .center-top { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 14px 20px 0; }
.sl-center[data-view="video"] .center-lg { grid-column: 1 / -1; }
.sl-center[data-view="video"] .center-tabs { grid-column: 2; grid-row: 2; width: 220px; }
.sl-center[data-view="video"] .center-score { grid-column: 1; grid-row: 2; text-align: left; justify-content: start; }
.sl-c-act { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--sky-0); font-size: 13.5px; color: var(--navy); min-width: 0; }
.sl-c-act[hidden] { display: none; }
.sl-c-act i { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.sl-c-act b { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 800; }
.sl-c-act em { margin-left: auto; flex: none; font-style: normal; font-weight: 800; color: var(--ink-3); }
.sl-c-info[hidden] { display: none; }
.sl-per { overflow-x: auto; scrollbar-width: thin; }
.sl-per table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sl-per th, .sl-per td { height: 30px; padding: 0 6px; text-align: center; white-space: nowrap; border-bottom: 1px solid var(--line); }
.sl-per thead th { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.sl-per tbody th { max-width: 130px; text-align: left; font-weight: 700; color: var(--ink); }
.sl-per tbody th i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; vertical-align: 1px; }
.sl-per tbody th span { display: inline-block; max-width: 110px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.sl-per td { font-weight: 700; color: var(--ink-2); }
.sl-per .cur { color: var(--blue-700); background: var(--sky-0); }
.sl-per .tot { font-weight: 800; color: var(--navy); }
.sl-points { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: var(--ink-2); }

.sl-visual { position: relative; margin: 14px; min-height: 160px; border-radius: 14px; overflow: hidden; background: var(--sky-0); }
.sl-center[data-view="video"] .sl-visual { margin-top: 12px; }
.sl-trk-msg { display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 166px; padding: 20px; text-align: center; background: repeating-linear-gradient(90deg, #edf5ff 0 12.5%, #e6f0ff 12.5% 25%); border: 2px solid #fff; border-radius: 14px; box-shadow: inset 0 0 0 2px #cfe2fb; }
.sl-trk-msg b { font-size: 15px; font-weight: 800; color: var(--navy); }
.sl-trk-msg span { font-size: 13.5px; color: var(--ink-3); }
.sl-trk-msg .btn { height: 40px; margin-top: 6px; }
.sl-trk-wait { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; background: rgba(244, 249, 255, 0.92); font-size: 14px; font-weight: 700; color: var(--ink-2); }
.sl-trk-wait[hidden] { display: none; }
/* bet365 원본 트래커가 그려졌다고 알리면(sl-tracker.js data-mounted) 기다림 막을 걷는다 - 앱 Bet365Tracker 의 mounted 와 같다 */
.sl-b365[data-mounted] .sl-trk-wait { display: none; }
.sl-trk-wait .btn { height: 40px; margin-left: 6px; }

/* 경기장 그림(디자인 .pitch 와 같은 하늘색 면·흰 줄) */
.sl-field { position: relative; border: 2px solid #fff; border-radius: 14px; box-shadow: inset 0 0 0 2px #9fc5f5; overflow: hidden; background: #d9eaff; }
.sl-ar { display: block; width: 100%; height: auto; }
.sl-ar-l { fill: none; stroke: #fff; stroke-width: 0.55; }
.sl-ar-net { stroke: #0b2a6f; stroke-width: 0.25; stroke-dasharray: 0.5 0.4; }
.sl-ar-red { stroke: #e46a78; }
.sl-ar-blue { stroke: #6f9be0; }
.sl-ar-zone { transition: x 0.45s, y 0.45s, width 0.45s, height 0.45s, opacity 0.3s; }
.sl-ar-ball, .sl-ar-serve { transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s; }
.sl-ar-ball circle:last-child { fill: #fff; stroke: #0b2a6f; stroke-width: 0.3; }
.sl-ar-halo { fill: rgba(255, 180, 0, 0.45); animation: slhalo 1.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes slhalo { 50% { opacity: 0.35; transform: scale(1.35); } }
.sl-field .tag { position: absolute; left: 50%; bottom: 8px; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; background: rgba(11, 42, 111, 0.82); color: #fff; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.sl-field .tag[hidden], .sl-field-wait[hidden] { display: none; }
.sl-field-wait { position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.9); color: var(--ink-2); font-size: 12px; font-weight: 700; }
.sl-scoreonly .sl-trk-msg { min-height: 166px; }

/* bet365 원본·임베드 경기장 */
.sl-b365, .sl-frame { position: relative; height: 260px; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.sl-b365 { transition: height 0.2s; }
.sl-frame { height: 300px; }
.sl-frame.ts { height: 380px; }
.sl-b365 iframe, .sl-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.sl-court { display: grid; gap: 8px; min-height: 166px; padding: 14px 16px; border-radius: 14px; background: var(--sky-0); box-shadow: inset 0 0 0 1px var(--line); }
.sl-court-st { margin: 0; font-size: 15px; font-weight: 800; color: var(--navy); }
.sl-court-ct, .sl-court-rs { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.sl-plays { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.sl-plays li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sl-plays time { flex: none; width: 46px; font-weight: 700; color: var(--ink-3); }
.sl-plays i { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.sl-plays span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink); }

.sl-center { scroll-margin-top: 170px; }

/* ── 경기 판 ── */
.sl-book .lg-head small { flex: none; }
.sl-book .lv { cursor: pointer; }
.sl-book .lv-clock { white-space: normal; line-height: 1.3; }
.sl-book .fx-teams { display: grid; gap: 6px; width: 100%; min-width: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.sl-book .fx-teams:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
.sl-book .lv[aria-current="true"] .fx-teams i { color: var(--blue-700); }
.sl-book .fx-more { min-width: 44px; padding: 0 4px; }
.sl-book span.fx-more:hover { background: none; }
.sl-book .pick b { display: inline-flex; align-items: center; gap: 2px; }
.sl-lock { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; color: var(--ink-3); }
.sl-mv { font-style: normal; font-size: 10px; line-height: 1; }
.sl-mv.up { color: #d6324a; }
.sl-mv.down { color: #1e6bff; }
.pick.sl-up { border-color: #f2a3ae; }
.pick.sl-down { border-color: #9cc0ff; }
.pick[aria-pressed="true"] .sl-mv { color: #fff; }
.fx-odds.sl-odds-state { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: center; gap: 2px; min-height: 52px; width: calc(84px * 3 + 12px); padding: 0 10px; border-radius: 12px; background: var(--sky-0); border: 1.5px dashed var(--line); text-align: center; }
.sl-odds-state b { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 800; color: var(--ink-2); }
.sl-odds-state small { font-size: 12px; color: var(--ink-3); }
.sl-odds-state.is-pending b { color: var(--ink-3); }
.sl-state { margin: 0; padding: 36px 20px; text-align: center; font-size: 14.5px; color: var(--ink-3); }
.sl-state .btn { height: 40px; margin-left: 6px; }
.sl-empty { display: grid; justify-items: center; gap: 4px; padding: 56px 20px; }
.sl-empty b { font-size: 16px; font-weight: 800; color: var(--navy); }
.sl-empty span { font-size: 14px; }
.rail-list a { cursor: pointer; }

/* ── +N 전체 배당 ── */
.sl-mk-wrap { padding: 4px 14px 14px 16px; background: #f8fbff; border-bottom: 1px solid var(--line); }
.sl-mk-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 2px 6px; }
.sl-mk-head b { font-size: 14.5px; font-weight: 800; color: var(--navy); }
.sl-mk-head span { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.sl-mk-head em { font-style: normal; font-size: 12.5px; color: #b45309; }
.sl-mk-sec + .sl-mk-sec { margin-top: 8px; }
.sl-mk-sec h4 { margin: 6px 2px; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.sl-mk-row { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.sl-mk-name { font-size: 13.5px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.sl-mk-odds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.sl-mk-odds.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sl-mk-odds.one { grid-template-columns: minmax(0, 1fr); }
.sl-mk-odds .pick { height: auto; min-height: 48px; padding: 6px 8px; }
.sl-mk-odds .pick span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-mk-state { margin: 0; padding: 18px 4px; font-size: 14px; color: var(--ink-3); }
.sl-mk-state .btn { height: 40px; margin-left: 6px; }

@media (max-width: 1180px) {
  .sl-center { grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr); }
}
@media (max-width: 767px) {
  .sl-center { scroll-margin-top: 72px; }
  .sl-center, .sl-center[data-view="video"] { grid-template-columns: minmax(0, 1fr); }
  .sl-center[data-view="video"] .center-top { grid-template-columns: minmax(0, 1fr); padding: 14px 14px 4px; }
  .sl-center[data-view="video"] .center-score, .sl-center[data-view="video"] .center-tabs { grid-column: 1; grid-row: auto; }
  .sl-center[data-view="video"] .center-score { text-align: center; }
  .sl-center[data-view="video"] .center-tabs { width: min(100%, 260px); }
  .sl-visual { margin: 10px 14px 14px; min-height: 0; }
  .sl-field .sl-ar { max-height: 190px; }
  .sl-field .tag { left: 10px; transform: none; }
  .sl-trk-msg { min-height: 120px; }
  .sl-b365 { height: 220px; }
  .sl-frame { height: 260px; }
  .sl-frame.ts { height: 340px; }
  .sl-book .lv { grid-template-columns: minmax(0, 1fr) 44px; }
  .sl-book .fx-teams { grid-column: 1; }
  .fx-odds.sl-odds-state { width: auto; grid-column: 1 / -1; order: 3; }
  .sl-c-info { display: none; }
  .sl-mk-wrap { padding: 2px 10px 12px; }
  .sl-mk-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .sl-mk-odds .pick { min-height: 48px; }
}

/* ── 경기 칸을 오른쪽 기둥 슬립 위에(11/20 형님 "인플레이쪽은 배당 슬립 위에 트래커랑 영상 띄워") ──
   넓은 화면: 기둥 전체가 머리줄 아래에 붙는다(경기 칸 + 슬립이 화면보다 길면 아래 끝이 보이게 붙음 - 아래 1024px 칸).
   좁은 화면(1023px 이하, 슬립은 아래에서 올라오는 판): 기둥이 경기 판 위로 와서 경기 칸이 맨 위에 보인다 */
.sl-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; min-width: 0; }
.sl-side .sl-center, .sl-side .sl-center[data-view="video"] { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
.sl-side .sl-center .center-top, .sl-side .sl-center[data-view="video"] .center-top { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 16px 0; align-self: auto; }
.sl-side .sl-center[data-view="video"] .center-lg,
.sl-side .sl-center[data-view="video"] .center-score,
.sl-side .sl-center[data-view="video"] .center-tabs { grid-column: 1; grid-row: auto; }
.sl-side .sl-center[data-view="video"] .center-score { text-align: center; justify-content: normal; }
.sl-side .center-score { gap: 8px; }
.sl-side .center-score b { font-size: 15px; }
.sl-side .center-score strong { font-size: 34px; }
.sl-side .center-tabs, .sl-side .sl-center[data-view="video"] .center-tabs { width: 100%; }
.sl-side .sl-visual, .sl-side .sl-center[data-view="video"] .sl-visual { margin: 12px 14px 14px; min-height: 0; }
.sl-side .sl-trk-msg, .sl-side .sl-court, .sl-side .sl-scoreonly .sl-trk-msg { min-height: 140px; }
.sl-side .sl-b365 { height: 230px; }
.sl-side .sl-frame { height: 250px; }
.sl-side .sl-frame.ts { height: 330px; }
@media (min-width: 1024px) {
  /* 기둥이 화면보다 길면 sl-inplay.js 가 top 을 음수로 줄여(화면 높이 - 기둥 높이) 페이지를 내리면 슬립 배팅 단추까지 보인 뒤 붙는다(기둥 안 스크롤·잘림 없음).
     그때 위의 영상은 화면 밖이라 작은 창으로 경기 판 왼쪽 아래에 뜬다(sl-video.js) */
  .sticky.sl-side { top: var(--sl-side-top, 172px); }
  .sl-side .sl-center { scroll-margin-top: 172px; }
}
@media (max-width: 1023px) {
  .cols-book > .sl-side { order: 1; }
  .cols-book > .stack { order: 2; }
  .sl-side .sl-center .center-top { padding: 14px 14px 0; }
}
/* 무승부 없는 경기(2026-11-27 형님 "무 없으면 3칸 쓰지말고 2칸으로"): 빈 가운데 칸 없이 두 칸이 세 칸 폭(84 x 3 + 6 x 2 = 264px)을 나눠 쓴다. 스포츠 판 sb-board.css 에도 같은 규칙 */
.fx-odds.two { grid-template-columns: repeat(2, 129px); }
@media (max-width: 767px) {
  .fx-odds.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
