/* 스포츠 실시간 — 10_Sports_live main-content 레이아웃·톤, .idx-sl-* 는 목록 전용 (idx-sp-* 와 병행) */

@media (min-width: 1025px) {
  .idx-sp-page #idx-sl-m-catbar {
    display: none !important;
  }
}

.idx-sl-live {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
}

.idx-sl-live > .idx-sl-dcats,
.idx-sl-live > .idx-sp-board-filter {
  flex-shrink: 0;
}

.idx-sl-live > .idx-sl-live__cols {
  flex: 1 1 auto;
  min-height: 0;
}

.idx-sl-dcats {
  display: none;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 2px;
  padding: 6px;
  background-color: #272a31;
  border-radius: 16px;
  overflow: hidden;
  box-sizing: border-box;
}

@media (min-width: 1025px) {
  .idx-sl-dcats {
    display: flex;
  }

  .idx-sp-page .idx-sp-board-list-stack:has(#idx-sl-live-root) {
    align-self: stretch;
    min-height: 0;
  }

  .idx-sp-page .idx-sp-board-list:has(#idx-sl-live-root) {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
  }

  .idx-sp-page #idx-sl-live-root {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
  }

  .idx-sp-page #idx-sl-live-root > .idx-sl-live__cols {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
    padding-bottom: 28px;
    box-sizing: border-box;
  }

  .idx-sp-page #idx-sl-live-root > .idx-sl-live__cols::-webkit-scrollbar {
    width: 6px;
  }

  .idx-sp-page #idx-sl-live-root > .idx-sl-live__cols::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 3px;
  }

  .idx-sl-dcat > span {
    display: block;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
  }
}

.idx-sl-dcat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1 1 0;
  min-width: 0;
  padding: 5px 3px;
  margin: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  opacity: 0.35;
  cursor: pointer;
  font: 400 12px/1.2 var(--font-kr, "Noto Sans KR", Helvetica, sans-serif);
  letter-spacing: -0.06px;
  color: #fff;
  box-sizing: border-box;
}

.idx-sl-dcat--active,
.idx-sl-dcat:hover {
  opacity: 1;
  background-color: #3b3f46;
}

.idx-sl-dcat:focus-visible {
  outline: 2px solid #eeff00;
  outline-offset: 2px;
}

.idx-sl-dcat img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.idx-sl-live__cols {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.idx-sl-live__list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  width: 100%;
}

.idx-sl-lc {
  display: flex;
  flex-direction: column;
  padding: 10px 20px;
  background-color: #272a31;
  border-radius: 16px;
  overflow: hidden;
  box-sizing: border-box;
}

.idx-sl-lc__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.idx-sl-lc__flag {
  flex-shrink: 0;
}

.idx-sl-lc__ttl {
  flex: 1;
  font: 400 12px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  letter-spacing: -0.06px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.idx-sl-lc__sport img {
  display: block;
  border-radius: 6px;
}

.idx-sl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background-color: #272a31;
  border-radius: 16px;
  box-sizing: border-box;
  overflow: visible;
}

/* 10_Sports_live live-new-3: 그라데이션 링만, 레이아웃·패딩 불변 */
.idx-sl-card--selected::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fa52ff 0%, rgba(250, 82, 255, 0.5) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.idx-sl-card__hdr {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 6px;
  width: 100%;
  min-height: 40px;
  min-width: 0;
  overflow: visible;
}

.idx-sl-card__teams {
  grid-column: 1;
  justify-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
  width: max-content;
  overflow: visible;
  font: 600 12px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  color: #fff;
}

/* 홈·원정 각각 한 줄, 말줄임 없음(… 없이 전부 노출, 넘치면 영역 밖으로 그려질 수 있음) */
.idx-sl-card__teams > span {
  white-space: nowrap;
  overflow: visible;
  max-width: none;
}

.idx-sl-card__vs {
  font-weight: 600;
  white-space: nowrap;
  overflow: visible;
}

.idx-sl-card__scorecol {
  grid-column: 2;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  justify-content: center;
  gap: 3px;
  flex: 0 0 auto;
}

.idx-sl-card__period {
  font: 400 10px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  color: #9c9c9c;
  text-align: center;
  white-space: nowrap;
}

.idx-sl-card__bet {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 65px;
  min-height: 25px;
  padding: 0 6px;
  box-sizing: border-box;
  background-color: #fa52ff;
  border-radius: 4px;
  font: 500 12px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
}

.idx-sl-card .idx-sl-score.idx-sl-card__scoreplate {
  border-radius: 4px;
}

.idx-sl-card__scoreplate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 55px;
  padding: 4px 6px;
  background-color: #3b3f46;
}

.idx-sl-card__score-txt {
  font: 700 15px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  color: #fff;
  letter-spacing: -0.07px;
}

.idx-sl-score {
  margin: 0;
  padding: 4px 10px;
  border: none;
  border-radius: 10px;
  background-color: #303338;
  color: #fff;
  cursor: pointer;
  font: inherit;
  box-sizing: border-box;
}

.idx-sl-card .idx-sl-score {
  background-color: #3b3f46;
}

.idx-sl-card .idx-sl-score--selected {
  background-color: #fa52ff;
}

.idx-sl-score:focus-visible {
  outline: 2px solid #eeff00;
  outline-offset: 2px;
}

.idx-sl-score--selected {
  background-color: #3b3f46;
}

.idx-sl-card__mkt {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.idx-sl-card__mkt-h {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  font: 400 10px/1.2 var(--font-sans, "Inter", Helvetica, sans-serif);
  color: #99a1af;
}

.idx-sl-card__mkt-bar {
  width: 2px;
  height: 10px;
  border-radius: 2px;
  background-color: #fa52ff;
  flex-shrink: 0;
}

.idx-sl-card .idx-sl-oddcell.idx-sl-score {
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 10px 0 0 10px;
}

.idx-sl-card .idx-sl-oddcell.idx-sl-score.idx-sl-oddcell--end {
  border-radius: 0 10px 10px 0;
}

.idx-sl-card__mkt-row {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.idx-sl-oddcell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
  padding: 6px 8px;
  font: 400 10px/1.3 var(--font-sans, "Inter", Helvetica, sans-serif);
  color: #fff;
}

.idx-sl-oddcell--end {
  flex-direction: row;
  justify-content: space-between;
}

.idx-sl-odd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: #fff;
  font-size: 10px;
}

.idx-sl-odd img {
  width: 6px;
  height: 7px;
  object-fit: contain;
  flex-shrink: 0;
}

.idx-sl-odd.idx-sp-gl__ou,
.idx-sp-gl__ou {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.idx-sp-gl__arr {
  width: 7px;
  height: 8px;
  flex-shrink: 0;
  background: url(../img/ico-sp-ou-up.svg) center / 7px 8px no-repeat;
}

.idx-sp-gl__arr--dn {
  background-image: url(../img/ico-sp-ou-down.svg);
  background-size: 7px 8px;
}

.idx-sl-cap {
  flex: 0 0 60px;
  width: 60px;
  text-align: center;
  padding: 8px 10px;
  box-sizing: border-box;
  font: 600 10px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  color: #eeff00;
  background-color: #3b3f46;
  border-radius: 0;
  height: 30px;
}

/* 승무패 가운데: 라인·스코어(idx-sl-cap) + 무 배당 버튼 세로 스택 (+10px 여유) */
.idx-sl-mid-stack {
  flex: 0 0 70px;
  width: 70px;
  min-width: 70px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  box-sizing: border-box;
}

.idx-sl-mid-stack .idx-sl-cap {
  flex: 0 0 auto;
  width: 100%;
  padding: 4px 4px;
  font-size: 9px;
  line-height: 1.25;
  word-break: break-all;
}

/* 라인 + (스코어) 두 줄 — 실시간 카드 가운데 캡 */
.idx-sl-cap.idx-sl-cap--stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1.15;
  flex: 0 0 70px;
  width: 70px;
  min-width: 70px;
  box-sizing: border-box;
}

.idx-sl-mid-stack .idx-sl-cap.idx-sl-cap--stacked {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.idx-sl-cap.idx-sl-cap--stacked .idx-sl-cap__line {
  font-weight: 600;
}

.idx-sl-cap.idx-sl-cap--stacked .idx-sl-cap__paren {
  font-weight: 600;
  font-size: 8px;
  opacity: 0.92;
}

.idx-sl-mid-stack .idx-sl-score.idx-sl-oddcell {
  flex: 1 1 auto;
  min-height: 22px;
  width: 100%;
  border-radius: 0;
  padding: 4px 6px;
}

/* 승무패 무(가운데): 홈/원정과 동일한 배당 타이포, 세로 정렬 — 일반 .idx-sl-oddcell.idx-sl-score 라운드 규칙보다 우선 */
.idx-sl-card .idx-sl-score.idx-sl-oddcell.idx-sl-oddcell--mid-draw {
  flex: 0 0 60px;
  width: 60px;
  min-width: 60px;
  max-width: 60px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  border-radius: 0;
  padding: 6px 4px;
}

.idx-sl-card .idx-sl-mid-stack .idx-sl-score.idx-sl-oddcell.idx-sl-oddcell--mid-draw {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
}

.idx-sl-sched {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 11px;
  background-color: #272a31;
  border-radius: 16px;
  overflow: visible;
  box-sizing: border-box;
}

.idx-sl-sched__head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
}

.idx-sl-sched__ttl {
  font: 400 10px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  letter-spacing: -0.05px;
  color: #d1d5dc;
}

.idx-sl-sched__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.idx-sl-league {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 2px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  box-sizing: border-box;
  cursor: pointer;
}

.idx-sl-league__time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 120px;
  flex-shrink: 0;
  padding: 8px 6px;
  background-color: #3b3f46;
  border-radius: 10px 0 0 10px;
  font: 400 11px/1.35 var(--font-sans, "Inter", Helvetica, sans-serif);
  color: #d1d5dc;
  text-align: center;
  box-sizing: border-box;
}

.idx-sl-league__time-date,
.idx-sl-league__time-clock {
  display: block;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

.idx-sl-league__time-clock {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
}

.idx-sl-league__body {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  column-gap: 6px;
  row-gap: 4px;
  align-items: center;
  padding: 4px 6px;
  background-color: #3b3f46;
  border-radius: 0 10px 10px 0;
  box-sizing: border-box;
}

.idx-sl-league__row {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.idx-sl-league__row:first-child {
  display: contents;
}

.idx-sl-league__ico {
  grid-column: 1;
  grid-row: 1;
  width: 15px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.idx-sl-league__ico img,
.idx-sl-league__ico .kor-1 {
  display: block;
  width: 15px;
  height: 10px;
  object-fit: cover;
  border-radius: 2px;
}

.idx-sl-league__name {
  grid-column: 2;
  grid-row: 1;
  margin-left: 0;
  min-width: 0;
  font: 400 10px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  color: #d1d5dc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.idx-sl-league__row:last-child {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-content: center;
  padding: 0;
  gap: 5px;
}

.idx-sl-league__row:last-child span:first-child,
.idx-sl-league__row:last-child span:last-child {
  flex: 1 1 0;
  min-width: 0;
  font: 400 12px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  color: #fff;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.idx-sl-league__vs {
  flex: 0 0 auto;
  font-weight: 600;
  color: #ff4e00;
}

.idx-sl-sched__list .idx-sl-league + .idx-sl-league {
  margin-top: 2px;
}

.idx-sl-league--selected .idx-sl-league__time,
.idx-sl-league--selected .idx-sl-league__body {
  background-color: #fa52ff;
}

.idx-sl-league--selected .idx-sl-league__time-date,
.idx-sl-league--selected .idx-sl-league__time-clock {
  color: #fff;
}

/* 모바일: 경기 일정 행 높이·행간 여유 */
@media (max-width: 1024px) {
  .idx-sp-page .idx-sp-board-list:has(#idx-sl-live-root) {
    padding-bottom: 28px;
    box-sizing: border-box;
  }

  .idx-sp-page #idx-sl-live-root > .idx-sl-live__cols {
    padding-bottom: 28px;
    box-sizing: border-box;
  }

  .idx-sl-league {
    gap: 4px;
    min-height: 52px;
  }

  .idx-sl-league__time {
    min-height: 52px;
    padding: 10px 8px;
    font-size: 11px;
    line-height: 1.35;
    gap: 4px;
  }

  .idx-sl-league__time-clock {
    font-size: 13px;
  }

  .idx-sl-league__body {
    gap: 6px;
    padding: 8px 10px;
    column-gap: 8px;
    row-gap: 6px;
  }

  .idx-sl-league__row {
    gap: 6px;
    min-height: 18px;
  }

  .idx-sl-league__name {
    line-height: 1.4;
    font-size: 11px;
  }

  .idx-sl-league__row:last-child {
    padding: 0;
    gap: 6px;
    min-height: 20px;
  }

  .idx-sl-league__row:last-child span:first-child,
  .idx-sl-league__row:last-child span:last-child {
    line-height: 1.45;
  }

  .idx-sl-sched__list .idx-sl-league + .idx-sl-league {
    margin-top: 6px;
  }

  .idx-sl-card {
    gap: 10px;
  }

  .idx-sl-card__mkt {
    gap: 8px;
  }

  .idx-sl-card__mkt-row {
    gap: 6px;
  }
}
