/* ═══ 스트리머와 같이 보기 (#streamer, HP-876 시안 v9 — 8a 개선) ══════════════════════
   #discord(회색) 뒤 · #how(밝음) 앞의 흰 띠(band-white) — 색 리듬(tokens.css ③)을 지킨다. 어둠은 그림(방송 화면·내 화면) 안에만 둔다.
   구성: 머리(이름표·두 줄 제목 | 한 줄·설치 버튼)
     → 방송 화면(영상 + 영상 위 LIVE·시청자 수·희미한 컨트롤 줄 + 같이보기 타이머 iframe | 아래 채널 줄 | 오른쪽 방송 채팅)
     → 그 아래 오른쪽 '내 화면'(16:9 플레이어 안에 2.39:1 레터박스 작품 장면 + 구운 참여자 패널), 왼쪽에 '같은 장면' 배지.
   두 시각(방송 타이머 · 내 화면 플레이어)은 같은 빨간 테두리(.sx-ring)로 묶고, js/streamer.js 가 두 숫자의 자리를 재서
   SVG 연결선(.sx-wire)을 왼쪽 여백 → 배지 → 플레이어와 패널 사이 경계 순으로 그린다. 창 크기가 바뀌면 다시 잰다.
   방송 화면은 특정 플랫폼(치지직·SOOP·유튜브·트위치)의 이름·로고·고유 색·고유 아이콘을 쓰지 않는다 — 색은 토큰의 중립 어두운 색과 강조 빨강만.
   1040px 이하는 배지를 두 화면 사이에 두고, 760px 이하(휴대폰)는 연결선 없이 배지와 두 테두리만 둔다. */

.sx { border-block: 1px solid var(--line); line-height: normal; }

/* ── 머리 ── */
.sx-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 24px 64px; align-items: end; }
.sx-title h2 { margin-top: 14px; font-size: clamp(30px, 3.8vw, 52px); letter-spacing: -.05em; line-height: 1.08; }
.sx-lead { font-size: 17px; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.sx-act { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.sx-cta .cta-lab { display: inline-flex; align-items: center; gap: 9px; }
.sx-cta .cta-lab.rx-mobile-only { display: none; }
.rx-mobile-device .sx-cta .cta-lab.rx-pc-only { display: none; }
.rx-mobile-device .sx-cta .cta-lab.rx-mobile-only { display: inline-flex; }
.sx-cta .cta-lab svg { width: 18px; height: 18px; flex: none; }
.sx-note { font-size: 13.5px; color: var(--muted); }
.sx-note b { color: var(--ink-2); }

/* ── 방송 화면 ── */
.sx-stagewrap { position: relative; margin-top: clamp(40px, 5vw, 64px); }
.sx-cast { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 280px; border-radius: var(--r-lg); overflow: hidden;
  background: var(--screen); box-shadow: 0 1px 2px rgba(16,16,24,.06), 0 40px 80px -48px rgba(16,16,24,.55); }
.sx-cast svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sx-cast-main { min-width: 0; display: flex; flex-direction: column; }
.sx-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #17121f; }
/* 방송 장면 — AI 생성 그림 한 장(assets/scene/stream-vtuber.jpg, 기록 notes/stream-scene.md). 그림도 16:9 라 잘리지 않는다 */
.sx-room { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.sx-shade { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 46% at 0% 0%, rgba(12,10,20,.6), rgba(12,10,20,.26) 55%, transparent 80%),
              linear-gradient(transparent 78%, rgba(8,8,12,.55)); }

/* 영상 위 방송 표시 — 왼쪽 위 LIVE·경과 시간(세로로 쌓아 타이머 카드와 자리를 나눈다), 오른쪽 위 시청자 수 */
.sx-onair { position: absolute; left: 1.6%; top: 2.8%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.sx-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 8px; border-radius: 6px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.sx-live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: sx-blink 1.6s var(--ease) infinite; }
@keyframes sx-blink { 50% { opacity: .35; } }
.sx-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px;
  background: rgba(10,10,14,.62); color: var(--s-text); font-size: 12px; font-weight: 600; backdrop-filter: blur(4px); }
.sx-viewers { position: absolute; right: 1.6%; top: 2.8%; }
.sx-viewers svg { width: 15px; height: 15px; }
/* 같이보기 타이머 — overlay/index.html 은 권장 소스 480×200 기준으로 그리고 iframe 크기만큼 늘거나 준다(rem = 소스의 1px) */
.sx-timer { position: absolute; left: 10.6%; top: 2.2%; width: 32%; aspect-ratio: 480 / 200; }
.sx-timer iframe { display: block; width: 100%; height: 100%; border: 0; background: transparent; pointer-events: none; }
/* 희미한 컨트롤 줄 — 재생·소리 | 설정·전체화면 */
.sx-ctrl { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 16px 12px; display: flex; align-items: center; gap: 14px;
  color: #fff; opacity: .62; }
.sx-ctrl svg { width: 19px; height: 19px; }
.sx-ctrl svg.f, .sx-ctrl .fl { fill: currentColor; stroke: none; }
.sx-ctrl svg .fl { fill: currentColor; }
.sx-ctrl-gap { flex: 1; }

/* 채널 줄 */
.sx-channel { display: flex; align-items: center; gap: 13px; padding: 14px 18px 16px; background: var(--screen); color: var(--s-body); }
.sx-avatar { flex: none; width: 46px; height: 46px; padding: 2px; border-radius: 50%; border: 2px solid var(--accent); }
.sx-avatar i { display: block; width: 100%; height: 100%; border-radius: 50%;
  background: url(../assets/scene/stream-vtuber.jpg) 23.5% 50% / 667% auto no-repeat #2a2234; }
.sx-ch-text { min-width: 0; flex: 1; }
.sx-ch-title { display: flex; align-items: center; gap: 6px; color: var(--s-text); font-size: 15.5px; font-weight: 700; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-ch-title svg { flex: none; width: 16px; height: 16px; color: #f2d488; fill: currentColor; stroke: none; }
.sx-ch-meta { margin-top: 5px; display: flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; overflow: hidden; }
.sx-ch-meta b { margin-right: 4px; color: var(--s-body); font-weight: 700; }
.sx-tag { padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--s-muted); font-size: 12px; }
.sx-follow { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px 7px 11px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2); color: var(--s-text); font-size: 13px; font-weight: 700; }
.sx-follow svg { width: 14px; height: 14px; stroke-width: 2.4; }

/* 방송 채팅 — 촘촘한 줄, 닉네임 색, 작은 배지, 맨 아래 입력칸 */
.sx-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 12px 12px 12px; gap: 9px;
  background: var(--screen-2); border-left: 1px solid var(--s-line); color: var(--s-body); font-size: 12.5px; line-height: 1.42; }
.sx-chat-h { font-size: 12px; font-weight: 700; color: var(--s-muted); letter-spacing: .02em; padding: 0 2px 8px; border-bottom: 1px solid var(--s-line); }
.sx-pin { display: flex; gap: 8px; padding: 9px 10px; border-radius: 9px; background: rgba(255,255,255,.06); color: var(--s-text); }
.sx-pin svg { flex: none; width: 15px; height: 15px; margin-top: 1px; color: #f2d488; }
.sx-pin b { margin-right: 4px; color: #f2d488; }
.sx-pin u { text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 2px; color: var(--s-text); word-break: break-all; }
.sx-msgs { flex: 1; min-height: 0; list-style: none; margin: 0; padding: 0 2px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 34px); mask-image: linear-gradient(transparent, #000 34px); }
.sx-msgs li { flex: none; }
.sx-msgs b { margin-right: 6px; color: var(--c); font-weight: 700; }
.sx-bdg { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-right: 4px; border-radius: 4px; vertical-align: -3px; }
.sx-bdg svg { width: 10px; height: 10px; fill: currentColor; stroke: none; }
.sx-bdg--host { background: var(--accent); color: #fff; }
.sx-bdg--fan { background: rgba(255,255,255,.12); color: var(--s-body); }
.sx-chat-in { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 11px; border-radius: 9px;
  background: rgba(255,255,255,.05); border: 1px solid var(--s-line); color: var(--s-dim); font-size: 12.5px; }
.sx-chat-in span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-chat-in svg { flex: none; width: 17px; height: 17px; color: var(--s-muted); }
.sx-chat-in i { flex: none; font-style: normal; padding: 4px 9px; border-radius: 6px; background: rgba(255,255,255,.1); color: var(--s-body); font-size: 12px; font-weight: 700; }

/* ── 아래: '같은 장면' 배지 + 내 화면 ── */
.sx-low { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 840px); grid-template-rows: auto 1fr;
  column-gap: 40px; margin-top: 96px; }
.sx-same { grid-column: 1; grid-row: 1; justify-self: start; align-self: start; position: relative; z-index: 5; margin-top: -70px;
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 24px 12px 13px; border-radius: 18px;
  background: var(--accent); color: #fff; box-shadow: 0 14px 30px -12px rgba(229,9,20,.55);
  opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.sx-linked .sx-same { opacity: 1; transform: none; }
.sx-same > svg { flex: none; width: 38px; height: 38px; padding: 7px; border-radius: 50%; background: #fff; color: var(--accent);
  fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sx-same span { display: flex; flex-direction: column; }
.sx-same small { font-size: 12.5px; font-weight: 600; opacity: .88; letter-spacing: -.01em; }
.sx-same b { font-size: 29px; font-weight: 800; letter-spacing: -.04em; line-height: 1.15; }
.sx-foot { grid-column: 1; grid-row: 2; margin-top: 30px; max-width: 290px; font-size: 14px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

.sx-mine { grid-column: 2; grid-row: 1 / span 2; margin: 0; border-radius: 16px; overflow: hidden; background: #1b1b22; border: 1px solid rgba(16,16,24,.12);
  box-shadow: 0 2px 4px rgba(16,16,24,.08), 0 48px 90px -40px rgba(16,16,24,.6); }
.sx-mine-bar { height: 38px; padding: 0 14px; display: flex; align-items: center; gap: 12px; background: #24242c; color: #cfcfd6; font-size: 12.5px; }
.sx-dots { display: inline-flex; gap: 6px; }
.sx-dots i { width: 10px; height: 10px; border-radius: 50%; background: #45454f; }
.sx-tab { padding: 4px 12px; border-radius: 7px; background: #15151b; color: var(--s-text); font-weight: 600; }
.sx-mine-lab { margin-left: auto; padding: 3px 9px; border-radius: 6px; background: rgba(255,255,255,.1); color: var(--s-text); font-weight: 800; font-size: 11.5px; }
.sx-mine-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; }

/* 플레이어 — 16:9 안에 시네마 비율(2.39:1) 그림을 가운데 두고 위아래를 검은 띠로 남긴다.
   띠 높이 = 폭 × (9/16 − 1/2.39) / 2 ≈ 7.2cqw. 자막은 그림 아래쪽, 진행 막대·시각은 아래 띠(컨트롤 자리)에 둔다 */
.sx-player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; container-type: inline-size; }
.sx-pic { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); aspect-ratio: 2.39 / 1; overflow: hidden; }
/* '밤의 정원' 정지 그림 — 가운데 기준으로 잘라 두 인물(그림 높이 39~56%)과 등불 길을 남긴다(세로 28% 지점 기준). 아주 느린 확대로 살짝 살아 있게 */
.sx-still { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 28%;
  transform-origin: 60% 52%; animation: sx-kb 24s ease-in-out infinite alternate; }
@keyframes sx-kb { from { transform: scale(1); } to { transform: scale(1.05); } }
/* 자막 — 첫 화면(css/top.css .ys-sub)과 같은 꼴: 흰 굵은 글씨 + 검은 번짐 그림자, 그림 아래쪽 가운데 */
.sx-sub { position: absolute; z-index: 2; left: 50%; bottom: calc(7.2cqw + 2.2cqw); transform: translateX(-50%); max-width: 90%;
  text-align: center; color: #fff; font-weight: 700; font-size: max(11px, 2.6cqw); line-height: 1.34; letter-spacing: -.01em;
  text-shadow: 0 0 2px #000, 0 0 3px #000, 0 1px 4px rgba(0,0,0,.9), 0 0 9px rgba(0,0,0,.55); white-space: nowrap; pointer-events: none; }
.sx-pbar { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 7.2cqw; padding: 0 2.6cqw; display: flex; flex-direction: column; justify-content: center; gap: 1.1cqw;
  color: #fff; font-size: max(10px, 2.1cqw); }
.sx-ptrack { display: block; height: 3px; border-radius: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.sx-ptrack i { display: block; width: 68.3%; height: 100%; background: var(--accent); }
.sx-prow { display: flex; align-items: center; gap: .45em; line-height: 1.1; }
.sx-prow svg { width: 1.2em; height: 1.2em; fill: currentColor; margin-right: .2em; }
.sx-prow em { margin-left: auto; padding: 1px 3px; font-style: normal; font-weight: 800; font-size: 1.3em; }
.sx-panel.rxfit { position: relative; min-height: 0; background: #0b0b0f; border-left: 1px solid rgba(255,255,255,.06); }
/* 패널 iframe 은 줄여(transform) 그려도 자리 높이를 원래 크기로 차지한다 — 겉에서 빼서 칸 높이를 플레이어(16:9)가 정하게 한다 */
.sx-panel .rxp { position: absolute; left: 0; top: 0; }

/* ── 같은 장면 이음: 두 숫자의 테두리 + 연결선 ── */
.sx-ring { position: absolute; z-index: 4; left: 0; top: 0; width: 0; height: 0; pointer-events: none; border-radius: 8px;
  border: 2px solid var(--accent); box-shadow: 0 0 0 4px rgba(229,9,20,.22), 0 0 18px rgba(229,9,20,.45);
  opacity: 0; transition: opacity .5s var(--ease); }
.sx-linked .sx-ring { opacity: 1; }
.sx-ring.is-tick { animation: sx-tick .6s var(--ease); }
@keyframes sx-tick { 0% { box-shadow: 0 0 0 4px rgba(229,9,20,.22), 0 0 18px rgba(229,9,20,.45); }
  30% { box-shadow: 0 0 0 7px rgba(229,9,20,.34), 0 0 26px rgba(229,9,20,.7); } 100% { box-shadow: 0 0 0 4px rgba(229,9,20,.22), 0 0 18px rgba(229,9,20,.45); } }
.sx-wire { position: absolute; z-index: 3; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none;
  opacity: 0; transition: opacity .6s var(--ease) .1s; }
.sx-linked .sx-wire { opacity: 1; }
.sx-wire path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sx-wire-halo { stroke: rgba(255,255,255,.55); stroke-width: 6; }
.sx-wire-line { stroke: var(--accent); stroke-width: 2.2; }
.sx-wire-end { fill: var(--accent); stroke: #fff; stroke-width: 1.5; }

/* ── v13 태블릿·휴대폰: 무대(.sx-stagewrap)는 PC 구성 그대로 1194px 로 그리고 칸 폭에 맞춰 줄인다(js/streamer.js fit).
   휴대폰에서 쌓은 세부 화면은 스크롤이 길고, 휴대폰에서도 OTT 와 채팅을 같이 쓰는 것처럼 읽혀서 걷어 냈다(조현빈 2026-11-17). ── */
.sx-fit { position: relative; }
.sx-foot-m { display: none; }
@media (max-width: 1240px) {
  .sx-fit { overflow: hidden; }
  .sx-fit > .sx-stagewrap { width: 1194px; transform-origin: 0 0; }
}
@media (max-width: 1040px) {
  .sx-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .sx-foot { display: none; }
  .sx-foot-m { display: block; margin: 16px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
}
@media (max-width: 760px) {
  .sx-lead { font-size: 16px; }
  .sx-fit { margin-top: 28px; }
  .sx-fit > .sx-stagewrap { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sx-live i, .sx-still, .sx-ring.is-tick { animation: none; }
  .sx-same, .sx-ring, .sx-wire { transition: none; }
}

/* ── v11·v12(조현빈 2026-11-17 '같은 장면 표시를 가운데로', '시안 9처럼 시간을 선으로 잇게') — PC 는 배지를 두 화면 사이 가운데에 두고, 시안 9의 연결선(왼쪽 여백 → 배지 → 플레이어·패널 경계)이 그 배지를 지나간다.
   배지 안에 두 시각을 함께 흘려 '방송 타이머 = 내 화면'을 배지 하나로 읽게 하고, 원래 두 숫자의 빨간 테두리는 그대로 둔다. ── */
.sx-same small em { font-style: normal; font-weight: 800; opacity: 1; }
@media all {
  .sx-same { position: absolute; left: 50%; top: -48px; margin: 0; grid-column: auto; grid-row: auto;
    transform: translate(-50%, calc(-50% + 8px)); }
  .sx-linked .sx-same { transform: translate(-50%, -50%); }
  .sx-foot { grid-row: 1 / span 2; align-self: end; margin-top: 0; }
}

/* 휴대폰 — 내 화면 창에서 참여자 패널(채팅)을 걷고 플레이어만 둔다. 시각이 같다는 것만 보이면 된다(조현빈 2026-11-17) */
@media (max-width: 760px) {
  .sx-mine-body { grid-template-columns: minmax(0, 1fr); }
  .sx-mine-body > .sx-panel { display: none; }
}

/* v15 휴대폰 — 요소는 그대로 두고 밀도만 낮춘다(조현빈 2026-11-17).
   방송 채팅은 최근 몇 줄만, 스트리머 그림은 조금만 확대, 타이머는 스트리머 머리와 겹치지 않게 위로 붙인다. 내 화면은 플레이어 아래 제목만 뺀다. */
@media (max-width: 760px) {
  .sx-msgs li:nth-child(-n+9) { display: none; }
  .sx-msgs { gap: 10px; }
  .sx-room { transform: scale(1.12); transform-origin: 18% 55%; }
  .sx-timer { top: 1.4%; width: 29%; }
  .sx-prow > b { display: none; }
}

/* v16 — 같이보기 링크(채팅 공지)를 강조한다: 시청자가 들어오는 입구라 섹션에서 중요하다(조현빈 2026-11-17) */
.sx-pin { padding: 11px 12px; background: var(--accent); color: #fff; box-shadow: 0 10px 24px -12px rgba(229,9,20,.7); align-items: center; }
.sx-pin svg { width: 20px; height: 20px; margin: 0; color: #fff; stroke-width: 2.4; }
.sx-pin span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sx-pin b { margin: 0; color: #fff; font-size: 12px; opacity: .9; }
.sx-pin u { color: #fff; font-weight: 800; font-size: 14px; text-decoration: none; }
/* v16 휴대폰 — 스트리머·배경을 더 키우고, 타이머는 오른쪽 빈 벽으로. 링크 공지는 줄인 화면에서도 읽히게 크게 */
@media (max-width: 760px) {
  .sx-room { transform: scale(1.26); transform-origin: 8% 52%; }
  .sx-timer { left: auto; right: 2.4%; top: 12%; width: 36%; }
  .sx-pin { padding: 18px 16px; gap: 12px; border-radius: 14px; }
  .sx-pin svg { width: 34px; height: 34px; }
  .sx-pin b { font-size: 24px; }
  .sx-pin u { font-size: 27px; }
}
.sx-pin i { font-style: normal; }
@media (max-width: 760px) { .sx-pin-k, .sx-pin-q { display: none; } .sx-pin u { font-size: 24px; white-space: nowrap; } }

/* v18 — 방송 화면 안 오버레이 채팅창(OBS 등으로 얹은 것). PC 는 오른쪽 빈 벽 가운데, 휴대폰은 오른쪽 타이머 아래 */
.sx-ovchat { position: absolute; right: 2.4%; top: 34%; width: 25%; padding: 12px 14px; display: flex; flex-direction: column; gap: 7px;
  border-radius: 12px; background: rgba(12,10,20,.5); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  color: #fff; font-size: 14px; line-height: 1.35; }
.sx-ovchat p { margin: 0; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.sx-ovchat b { color: var(--c); font-weight: 800; margin-right: 7px; }
@media (max-width: 760px) {
  .sx-ovchat { right: 2.4%; top: 44%; width: 36%; padding: 16px 18px; gap: 9px; font-size: 22px; border-radius: 16px; }
  .sx-ovchat p:nth-child(n+5) { display: none; }
}

/* v19 — 내 화면을 넷플릭스 플레이어처럼(첫 화면 .nf 와 같은 모양: 위 뒤로 가기·신고 깃발, 아래 빨간 진행 막대·동그란 손잡이·버튼 줄·가운데 작품명).
   로고·워드마크는 쓰지 않는다. 시각 칸(data-sx-ring)은 진행 막대 오른쪽 시간 자리에 둔다(조현빈 2026-11-17) */
.sx-player { --u: 1cqw; }
.sx-nf-top { position: absolute; z-index: 3; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; padding: 1.8cqw 2.2cqw; color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,.55), transparent); }
.sx-nf-top svg { width: 3cqw; height: 3cqw; }
.sx-nf-bottom { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 2.6cqw 2.2cqw 1.6cqw; color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,.35) 65%, transparent); }
.sx-nf-bar { display: flex; align-items: center; gap: 1.6cqw; }
.sx-nf-track { position: relative; flex: 1; height: .7cqw; background: rgba(150,150,150,.55); }
.sx-nf-buf { position: absolute; inset: 0 auto 0 0; width: 77%; background: rgba(205,205,205,.55); }
.sx-nf-fill { position: absolute; inset: 0 auto 0 0; width: 68.3%; background: #e50914; }
.sx-nf-knob { position: absolute; top: 50%; left: 68.3%; width: 2.2cqw; height: 2.2cqw; margin: -1.1cqw 0 0 -1.1cqw; border-radius: 50%; background: #e50914; }
.sx-nf-bar em { flex: none; padding: 1px 3px; font-style: normal; font-weight: 800; font-size: 2.3cqw; }
.sx-nf-row { display: flex; align-items: center; gap: 2cqw; margin-top: 1.4cqw; }
.sx-nf-row svg { width: 3.1cqw; height: 3.1cqw; flex: none; display: block; }
.sx-nf-l, .sx-nf-r { display: flex; align-items: center; gap: 2.1cqw; flex: none; }
.sx-nf-title { flex: 1 1 auto; min-width: 0; text-align: center; font-size: 2cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-nf-title b { font-weight: 800; }
.sx-nf-title em { font-style: normal; color: #cfcfcf; margin-left: .6cqw; }
.sx-player .sx-sub { bottom: 15cqw; }

/* v20 — PC 도 내 화면 창의 참여자 패널(채팅)을 닫는다. 두 시각이 같다는 것만 보이면 된다(조현빈 2026-11-17) */
.sx-mine-body { grid-template-columns: minmax(0, 1fr); }
.sx-mine-body > .sx-panel { display: none; }
/* 패널이 빠진 만큼 내 화면 창을 줄여 섹션 높이를 그대로 둔다 */
.sx-low { grid-template-columns: minmax(0, 1fr) minmax(0, 660px); }
@media (max-width: 760px) { .sx-low { grid-template-columns: minmax(0, 1fr) minmax(0, 840px); } }

/* v22 — 같이보기 타이머를 오버레이 채팅창 바로 위에 붙여 하나의 방송 위젯 묶음처럼 보이게 한다(조현빈 2026-11-17).
   같은 폭·같은 오른쪽 선에 맞추고, 채팅창 바탕을 타이머 카드와 같은 어두운 판으로 맞춘다 */
.sx-timer { left: auto; right: 2.4%; top: 9%; width: 28%; }
.sx-ovchat { right: 2.4%; top: calc(9% + 28% * 200 / 480 * 16 / 9 + 1.2%); width: 28%;
  background: rgba(14,14,20,.82); backdrop-filter: none; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
@media (max-width: 760px) {
  .sx-timer { top: 10%; width: 38%; }
  .sx-ovchat { top: calc(10% + 38% * 200 / 480 * 16 / 9 + 1.5%); width: 38%; }
}
/* 타이머 페이지는 iframe 안쪽에 여백을 두고 카드를 그린다 — 채팅창을 카드 가장자리(폭·오른쪽 선)에 맞추고 바로 밑에 붙인다 */
.sx-ovchat { right: 3.7%; width: 25.5%; top: 26.6%; }
@media (max-width: 760px) { .sx-ovchat { right: 4%; width: 34.6%; top: 35.4%; } }

/* v23 — 내 화면 창을 방송 화면 오른쪽 아래에 겹쳐 올린다(가려지는 곳: 방송 컨트롤·팔로우·채팅 칸 아래 입력줄). 배지 자리는 js 가 정한다 */
.sx-low { margin-top: -72px; position: relative; z-index: 4; }
.sx-mine { position: relative; z-index: 2; }
.sx-same { position: absolute; z-index: 6; margin: 0; transform: translate(-50%, calc(-50% + 8px)); }
.sx-linked .sx-same { transform: translate(-50%, -50%); }
.sx-wire { z-index: 3; }

/* v24 강약(조현빈 2026-11-17) — 빨강은 '같은 장면' 이야기(두 시각 테두리·선·배지)에만 쓴다.
   같이보기 링크는 어두운 화면 위 흰 카드로 띄워 빨강과 다투지 않게 하고, 배경 그림·플랫폼 채팅·채널 줄은 한 단계 낮춘다. */
.sx-pin { background: #fff; color: #15151b; box-shadow: 0 10px 26px -10px rgba(0,0,0,.6); }
.sx-pin svg { color: var(--accent); }
.sx-pin b { color: #6b6b76; opacity: 1; }
.sx-pin u { color: #15151b; }
.sx-room { filter: saturate(.82) brightness(.9); }
.sx-msgs li { opacity: .5; }
.sx-chat-h, .sx-chat-in { opacity: .6; }
.sx-channel { opacity: .8; }
.sx-ovchat { opacity: .92; }
.sx-live { background: rgba(229,9,20,.85); }

/* v26 — PC 도 제목 밑에 설명, 그 밑에 설치 버튼을 차례로 쌓는다(조현빈 2026-11-17) */
.sx-head { grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.sx-side { max-width: 34em; }
.sx-act { margin-top: 20px; }
