/* 스포츠 중계(/sports) — templates/sports/live.html. 처음 모양은 D:\DEV\named/static/app.css.
   지금은 이 사이트에서 따로 고친다(2026-10-26 사용자 지시: 단독 구성).
   모든 규칙이 .nlive 안에만 걸린다(원본의 :root·html·body → .nlive, @keyframes 이름 앞에 nl-,
   사이트 frame.css 와 겹치는 .game-grid → .nl-game-grid). 위쪽 큰 제목·ON AIR 판·머리줄 규칙은 뺐다. */
/* 사이트 CSS(mingo.css 의 테일윈드 기본값: 모든 요소 border 0 solid, html 줄 간격 1.5 …)가 스며들지 않게
   브라우저 기본값으로 되돌린다. 무게 (0,1,0)·맨 앞이라 아래 규칙이 모두 이긴다.
   svg 와 그 안쪽은 뺀다 — revert 가 d·cx·r 같은 도형 속성까지 지워 아이콘이 사라진다. */
.nlive :where(:not(svg, svg *)),
.nlive :where(:not(svg, svg *))::before,
.nlive :where(:not(svg, svg *))::after { all: revert; }
.nlive {
  --bg: #272b30;              /* 배팅 사이트(localhost) renew.css 의 --bg 와 같게. 폰(900px 이하)은 맨 끝에서 #262a2f */
  --bg-soft: #0d0d10;
  --panel: #111114;
  --panel-2: #151519;
  --panel-3: #1a1a1f;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f1e8;
  --muted: #97949e;
  --muted-2: #6d6a73;
  --signal: #ff3b30;
  --signal-deep: #c81219;
  --signal-soft: rgba(255, 59, 48, 0.12);
  --cream: #f1ebdd;
  --ink: #0a0a0b;
  --green: #6de3a5;
  --amber: #ffbd5c;
  --soccer: #63e6a5;
  --baseball: #ffbf63;
  --basketball: #ff7b5c;
  --volleyball: #66b8ff;
  --hockey: #bf9aff;
  --lol: #f3d45f;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font: "Pretendard", "SUIT", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --display: "Bahnschrift", "DIN Alternate", "Oswald", "Arial Narrow", var(--font);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}
.nlive *,
.nlive *::before,
.nlive *::after {
  box-sizing: border-box;
}
.nlive [hidden] {
  display: none !important;
}
.nlive {
  scroll-behavior: smooth;
}
.nlive {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.nlive button,
.nlive input,
.nlive select {
  font: inherit;
}
.nlive button,
.nlive a {
  -webkit-tap-highlight-color: transparent;
}
.nlive button {
  color: inherit;
}
.nlive a {
  color: inherit;
  text-decoration: none;
}
.nlive svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nlive ::selection {
  background: var(--signal);
  color: white;
}
.nlive .clock {
  display: flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}
.nlive .clock span {
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.nlive .clock strong {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.nlive .clock .clock-zone {
  color: var(--signal);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.nlive .icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.nlive .icon-button svg {
  width: 17px;
  height: 17px;
}
.nlive .icon-button:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}
.nlive .icon-button:active {
  transform: scale(0.94);
}
.nlive .shell {
  width: min(1450px, 100%);
  margin: 0 auto;
  padding: 0 clamp(18px, 3.6vw, 60px);
}
.nlive .live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 59, 48, 0.28);
  border-radius: 6px;
  color: #ff9b94;
  background: rgba(255, 59, 48, 0.09);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.nlive .live-tag i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.11);
  animation: nl-blink 1.4s ease-in-out infinite;
}
.nlive .control-deck {
  position: relative;
  z-index: 25;
  margin-top: clamp(20px, 3vw, 36px);
  margin-bottom: 32px;
  padding: 8px 12px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #0d0d10;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px) saturate(1.1);
}
.nlive .sport-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
}
.nlive .sport-tabs::-webkit-scrollbar {
  display: none;
}
.nlive .sport-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  height: 39px;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}
.nlive .sport-tab b {
  min-width: 17px;
  padding: 2px 5px;
  border-radius: 5px;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.055);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.nlive .sport-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}
.nlive .sport-tab.is-active {
  color: var(--ink);
  background: var(--cream);
}
.nlive .sport-tab.is-active b {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.09);
}
.nlive .tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
}
.nlive .tab-dot.sport-soccer {
  background: var(--soccer);
}
.nlive .tab-dot.sport-baseball {
  background: var(--baseball);
}
.nlive .tab-dot.sport-basketball {
  background: var(--basketball);
}
.nlive .tab-dot.sport-volleyball {
  background: var(--volleyball);
}
.nlive .tab-dot.sport-hockey {
  background: var(--hockey);
}
.nlive .tab-dot.sport-lol {
  background: var(--lol);
}
.nlive .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.nlive .button svg {
  width: 15px;
  height: 15px;
}
.nlive .button:active {
  transform: translateY(1px);
}
.nlive .button-primary {
  border-color: rgba(255, 59, 48, 0.7);
  color: #fff;
  background: var(--signal-deep);
}
.nlive .button-primary:hover {
  border-color: var(--signal);
  background: var(--signal);
}
.nlive .button-small {
  height: 34px;
  padding: 0 11px;
  font-size: 10px;
}
.nlive .list-section {
  padding-bottom: 10px;
}
.nlive .notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 189, 92, 0.19);
  border-radius: 10px;
  color: #e9c88f;
  background: rgba(255, 189, 92, 0.055);
  font-size: 11px;
  line-height: 1.6;
}
.nlive .notice svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 1px;
}
.nlive .notice p {
  margin: 0;
}
.nlive .nl-game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.nlive .game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 16px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 38%),
    linear-gradient(180deg, #141418, #101013);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  animation: nl-card-in 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--index, 0) * 14ms);
}
.nlive .game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  width: 58px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--sport-color, var(--signal));
  opacity: 0.8;
}
.nlive .game-card::after {
  content: "";
  position: absolute;
  top: -60px;
  left: 22%;
  width: 200px;
  height: 120px;
  border-radius: 50%;
  background: var(--sport-color, var(--signal));
  opacity: 0.035;
  filter: blur(35px);
  pointer-events: none;
}
.nlive .game-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}
.nlive .game-card[data-sport="soccer"] {
  --sport-color: var(--soccer);
}
.nlive .game-card[data-sport="baseball"] {
  --sport-color: var(--baseball);
}
.nlive .game-card[data-sport="basketball"] {
  --sport-color: var(--basketball);
}
.nlive .game-card[data-sport="volleyball"] {
  --sport-color: var(--volleyball);
}
.nlive .game-card[data-sport="hockey"] {
  --sport-color: var(--hockey);
}
.nlive .game-card[data-sport="lol"] {
  --sport-color: var(--lol);
}
.nlive .card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.nlive .league {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.nlive .sport-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--sport-color);
  background: rgba(255, 255, 255, 0.025);
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.nlive .sport-chip i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.nlive .league-name {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nlive .card-top-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.nlive .live-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 21px;
  padding: 0 6px;
  border: 1px solid rgba(255, 59, 48, 0.26);
  border-radius: 4px;
  color: #ff9d96;
  background: rgba(255, 59, 48, 0.09);
  font-family: var(--display);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.nlive .live-chip i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--signal);
  animation: nl-blink 1.4s ease-in-out infinite;
}
.nlive .scrap-button {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: var(--muted-2);
  background: transparent;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}
.nlive .scrap-button svg {
  width: 14px;
  height: 14px;
}
.nlive .scrap-button:hover {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
}
.nlive .scrap-button.is-scrapped {
  color: var(--amber);
}
.nlive .scrap-button.is-scrapped svg {
  fill: rgba(255, 189, 92, 0.22);
  stroke: var(--amber);
}
.nlive .matchup {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 16px 0 13px;
}
.nlive .team {
  min-width: 0;
  text-align: center;
}
.nlive .team-logo {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 7px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  color: var(--cream);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  overflow: hidden;
}
.nlive .team-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
}
.nlive .team-logo.is-fallback {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
}
.nlive .team-name {
  display: -webkit-box;
  max-height: 31px;
  overflow: hidden;
  color: #ded9cf;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.nlive .score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 92px;
  padding-top: 4px;
}
.nlive .score-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}
.nlive .score-line strong {
  min-width: 24px;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(38px, 3vw, 48px);
  font-weight: 600;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
}
.nlive .score-line em {
  padding-top: 5px;
  color: var(--muted-2);
  font-family: var(--display);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
}
.nlive .score-line strong.is-leading {
  color: #fff;
}
.nlive .score-line strong.is-trailing {
  color: #8c8991;
}
.nlive .phase {
  margin-top: 8px;
  padding: 4px 7px;
  border-radius: 4px;
  color: #ffaaa4;
  background: rgba(255, 59, 48, 0.075);
  font-size: 9px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.nlive .phase.is-paused {
  color: var(--amber);
  background: rgba(255, 189, 92, 0.08);
}
.nlive .periods {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 3px;
  margin: 0 0 12px;
  padding: 7px 0;
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  scrollbar-width: none;
}
.nlive .periods::-webkit-scrollbar {
  display: none;
}
.nlive .period-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 0 41px;
  justify-content: center;
  min-width: 0;
  padding: 1px 3px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.nlive .period-chip:last-child {
  border-right: 0;
}
.nlive .period-chip span {
  color: var(--muted-2);
  font-family: var(--display);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.nlive .period-chip b {
  color: var(--muted);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nlive .card-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.nlive .start-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-2);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nlive .start-time svg {
  width: 11px;
  height: 11px;
}
.nlive .card-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}
.nlive .watch-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 59, 48, 0.52);
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 59, 48, 0.85);
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.nlive .watch-button:hover {
  border-color: var(--signal);
  background: var(--signal);
  box-shadow: 0 6px 18px rgba(255, 59, 48, 0.24);
}
.nlive .watch-button svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
  stroke: none;
}
.nlive .watch-button .watch-play {
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
}
.nlive .watch-button .watch-play svg {
  width: 6px;
  height: 6px;
  margin-left: 1px;
}
.nlive .skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.nlive .skeleton-card {
  height: 276px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel);
}
.nlive .skeleton-card span,
.nlive .skeleton-card i,
.nlive .skeleton-card b {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
  background-size: 200% 100%;
  animation: nl-shimmer 1.4s linear infinite;
}
.nlive .skeleton-card span {
  width: 44%;
  height: 12px;
}
.nlive .skeleton-card i {
  height: 12px;
  margin-top: 18px;
}
.nlive .skeleton-card i:nth-child(3) {
  width: 72%;
  height: 54px;
  margin: 28px auto 12px;
}
.nlive .skeleton-card i:nth-child(4) {
  width: 52%;
  height: 12px;
  margin: 0 auto;
}
.nlive .skeleton-card b {
  height: 30px;
  margin-top: 38px;
}
.nlive .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 56px 20px;
  border: 1px dashed rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent);
  text-align: center;
}
.nlive .empty-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted-2);
}
.nlive .empty-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 1;
}
.nlive .empty-kicker {
  margin: 0 0 9px;
  color: var(--signal);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
}
.nlive .empty-state h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nlive .empty-state > p:not(.empty-kicker) {
  max-width: 400px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  word-break: keep-all;
}
.nlive .site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 54px;
  padding: 26px 0 32px;
  border-top: 1px solid var(--line);
}
.nlive .site-footer > div {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.nlive .footer-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted-2);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.nlive .site-footer p {
  margin: 0;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.7;
}
.nlive .footer-note {
  font-family: var(--display);
  font-size: 8px !important;
  letter-spacing: 0.13em;
  text-align: right;
  white-space: nowrap;
}
.nlive .footer-note span {
  color: var(--signal);
}
.nlive .modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}
.nlive .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}
.nlive .modal-panel {
  position: relative;
  width: min(1080px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: #101013;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
  animation: nl-modal-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.nlive .modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 18px 15px;
  border-bottom: 1px solid var(--line);
}
.nlive .modal-title-group {
  min-width: 0;
}
.nlive .modal-head h2 {
  overflow: hidden;
  margin: 0;
  color: var(--text);
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nlive .modal-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.nlive .modal-tools .icon-button {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}
.nlive .player-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 68vh;
  overflow: hidden;
  background: #000;
}
.nlive #streamFrame {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  transform-origin: 0 0;   /* live.js fitStreamFrame — 크게 그려 줄인다 */
}
.nlive .player-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 17px;
  color: var(--muted-2);
  background:
    radial-gradient(400px 200px at 50% 40%, rgba(255, 59, 48, 0.1), transparent 70%),
    #080809;
  font-size: 10px;
  letter-spacing: 0.05em;
}
.nlive .player-pulse {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 24px;
}
.nlive .player-pulse i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--signal);
  animation: nl-signal 0.8s ease-in-out infinite alternate;
}
.nlive .player-pulse i:nth-child(1) {
  height: 9px;
}
.nlive .player-pulse i:nth-child(2) {
  height: 20px;
  animation-delay: 0.2s;
}
.nlive .player-pulse i:nth-child(3) {
  height: 14px;
  animation-delay: 0.4s;
}
.nlive .player-shell.is-loaded .player-placeholder {
  display: none;
}
/* 편성표 영상(live.js playRelay) — iframe 자리에 <video>. 불러오는 중·못 틀 때는 안내 문구가 위에 */
.nlive #streamVideo {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  width: 100%;
  height: 100%;
  background: #000;
}
.nlive .player-shell.is-video #streamVideo { display: block; }
.nlive .player-shell.is-video #streamFrame { display: none; }
.nlive .player-shell.is-video .player-placeholder { z-index: 3; padding: 0 24px; font-size: 12px; text-align: center; }
.nlive .modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
}
.nlive .modal-foot p {
  margin: 0;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.5;
}
.nlive .toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 120;
  max-width: calc(100vw - 32px);
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: var(--text);
  background: rgba(26, 26, 31, 0.96);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.nlive .toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.nlive .toast.is-error {
  border-color: rgba(255, 59, 48, 0.28);
  color: #ffb0aa;
}
@keyframes nl-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes nl-card-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes nl-modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes nl-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
@keyframes nl-signal {
  from {
    transform: scaleY(0.45);
  }
  to {
    transform: scaleY(1);
  }
}
@keyframes nl-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes nl-shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
.nlive :focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}
@media (min-width: 980px) {
.nlive .control-deck {
    position: sticky;
    top: 0;
  }
}
@media (max-width: 1240px) {
.nlive .nl-game-grid,
.nlive .skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
.nlive .icon-button {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
.nlive .shell {
    padding: 0 16px;
  }
.nlive .control-deck {
    margin-bottom: 25px;
    padding: 7px 9px 0;
    border-radius: 13px;
  }
.nlive .sport-tab {
    height: 36px;
    padding: 0 9px;
    font-size: 10.5px;
  }
.nlive .nl-game-grid,
.nlive .skeleton-grid {
    grid-template-columns: minmax(0, 1fr);
  }
.nlive .skeleton-card {
    height: 260px;
  }
.nlive .game-card {
    padding: 15px 15px 13px;
  }
.nlive .team-logo {
    width: 48px;
    height: 48px;
  }
.nlive .score-line strong {
    font-size: 42px;
  }
.nlive .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 38px;
    padding: 22px 0 26px;
  }
.nlive .footer-note {
    text-align: left;
  }
.nlive .modal {
    padding: 10px;
  }
.nlive .modal-panel {
    border-radius: 12px;
  }
.nlive .modal-head {
    padding: 13px 13px 11px;
  }
.nlive .modal-foot {
    flex-direction: column;
    align-items: flex-start;
    padding: 11px 13px;
  }
.nlive .player-shell {
    max-height: none;
  }
}
@media (max-width: 520px) {
.nlive .shell {
    padding: 0 13px;
  }
.nlive .sport-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
  }
.nlive .sport-tab {
    width: 100%;
    justify-content: center;
    gap: 5px;
    padding: 0 5px;
  }
.nlive .sport-tab b {
    min-width: 15px;
    padding: 1px 4px;
  }
.nlive .game-card {
    border-radius: 14px;
  }
.nlive .matchup {
    padding: 14px 0 11px;
  }
.nlive .score-block {
    min-width: 82px;
  }
.nlive .score-line strong {
    font-size: 39px;
  }
.nlive .team-name {
    font-size: 10.5px;
  }
.nlive .card-bottom {
    flex-wrap: wrap;
  }
.nlive .start-time {
    display: none;
  }
.nlive .card-actions {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }
.nlive .watch-button {
    height: 32px;
  }
.nlive .watch-button {
    margin-left: auto;
  }
.nlive .modal-head h2 {
    max-width: 58vw;
    font-size: 15px;
  }
.nlive .modal-foot p {
    font-size: 8px;
  }
.nlive .toast {
    bottom: 16px;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
.nlive *,
.nlive *::before,
.nlive *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- 사이트 안에 넣을 때 보정 ----
   · overflow-x:hidden 이면 .nlive 가 스크롤 상자가 되어 종목 탭 판(sticky)이 안 붙는다 → clip
   · 플레이어 창(z 100)은 사이트 머리글(z-50)보다 위 — 그래서 .nlive 를 쌓임 맥락으로 만들지 않는다.
   · 바탕은 배팅 사이트와 같은 단색(배경 격자·붉은 빛은 뺐다 — 색이 달라 보인다). */
.nlive { position: relative; overflow-x: clip; line-height: normal; }
@media (max-width: 900px) { .nlive { --bg: #262a2f; } }   /* renew.css 폰 바탕 */
.nlive .shell { padding-top: clamp(20px, 3vw, 36px); }

/* 시계 — 원래 머리줄 오른쪽에 있던 것을 종목 탭 줄 오른쪽 빈자리로(2026-10-26 사용자 지시).
   좁은 화면에서는 탭 위 오른쪽에 한 줄로. */
.nlive .deck-head { display: flex; align-items: center; gap: 12px; }
.nlive .deck-head .sport-tabs { flex: 1 1 auto; min-width: 0; }
.nlive .deck-head .clock { flex: 0 0 auto; padding: 0 10px 0 4px; }
@media (max-width: 820px) {
  .nlive .deck-head { flex-wrap: wrap; row-gap: 2px; }
  .nlive .deck-head .sport-tabs { flex-basis: 100%; }
  .nlive .deck-head .clock { order: -1; margin-left: auto; padding: 2px 4px 0; }
}

/* 탭 아래 검색·스크랩·정렬·목록 복사 줄, 진행선, LIVE BOARD 제목 줄은 뺐다(2026-10-26 사용자 지시).
   탭 판 아래 여백을 위와 맞추고 경기 목록을 바로 붙인다. */
.nlive .control-deck { padding-bottom: 8px; margin-bottom: 20px; }
@media (max-width: 820px) { .nlive .control-deck { padding-bottom: 7px; margin-bottom: 16px; } }

/* 플레이어 창 머리 — 팀명 한 줄. 글씨·여백·닫기 단추를 줄여 높이를 줄였다(사용자 지시 2026-10-26) */
.nlive .modal-head { align-items: center; gap: 10px; padding: 6px 8px 6px 14px; }
.nlive .modal-head h2 { font-size: 13px; line-height: 1.3; }
.nlive .modal-head .icon-button { width: 26px; height: 26px; border-radius: 7px; }
.nlive .modal-head .icon-button svg { width: 14px; height: 14px; }
@media (max-width: 820px) {
  .nlive .modal-head { padding: 5px 6px 5px 11px; }
  .nlive .modal-head h2 { font-size: 12px; }
}

/* 중계예정 카드 — 외부 편성표 목록만(링크 없음). 생중계 카드와 같은 틀에 LIVE·점수·스크랩·[생중계] 대신
   「중계예정」 표시(위 한 곳)와 시작 시각. 시작해서 생중계 목록에 잡히면 생중계 카드로 바뀐다(2026-10-26 사용자 지시). */
.nlive .game-card.is-upcoming { background: linear-gradient(180deg, #131317, #0f0f12); }
.nlive .game-card.is-upcoming::before { opacity: 0.45; }
.nlive .game-card.is-upcoming:hover { transform: none; box-shadow: none; border-color: var(--line); }
.nlive .upcoming-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 189, 92, 0.28);
  border-radius: 4px;
  color: var(--amber);
  background: rgba(255, 189, 92, 0.07);
  font-weight: 650;
  white-space: nowrap;
}
.nlive .upcoming-chip { height: 21px; padding: 0 7px; font-size: 9px; }
.nlive .score-line em.vs { padding: 12px 0 2px; color: var(--muted); font-size: 18px; letter-spacing: 0.08em; }
.nlive .phase.is-upcoming { color: var(--amber); background: rgba(255, 189, 92, 0.08); }
.nlive .matchup.is-single { grid-template-columns: minmax(0, 1fr); }
.nlive .upcoming-title {
  max-width: 100%;
  padding: 10px 6px 0;
  overflow: hidden;
  color: #ded9cf;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
/* 폰에서는 시작 시각 줄이 숨겨져(생중계 카드와 같음) 아래 줄이 비므로 통째로 뺀다 — 시각은 VS 아래에 있다 */
@media (max-width: 520px) {
  .nlive .game-card.is-upcoming .card-bottom { display: none; }
}
