@import url('./fonts.css');

.wc-screen { position: relative; aspect-ratio: 16 / 9; container-type: size; overflow: hidden; background: #000; }
.wc-screen[data-ar="43"] { aspect-ratio: 4 / 3; }
.wc-layer { position: absolute; inset: 0; transition: opacity .3s ease; overflow: hidden; }
.wc-mtop-in { position: absolute; inset: 0; background: #000; }
.wc-yt-in { position: absolute; inset: 0; background: #000; }
.wc-yt-in.st { top: 11cqh; }
.wc-yt-in iframe, .wc-yt-p { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wc-yt-thumb { position: absolute; inset: 0; background: #000 center / contain no-repeat; }
.wc-yt-thumb span { position: absolute; left: 3%; bottom: 5%; background: rgba(204,0,0,.9); color: #fff; font: 700 6cqh/1.4 sans-serif; padding: 0 2.4cqh; border-radius: 1cqh; }
.wc-mtop-in > div, .wc-mtop-in > video { position: absolute; inset: 0; width: 100%; height: 100%; background: center / contain no-repeat; object-fit: contain; }
.wc-img { position: absolute; inset: 5cqh 5cqw; background: center / contain no-repeat; object-fit: contain; width: 90cqw; height: 90cqh; }
.wc-bg { position: absolute; inset: 0; width: 100%; height: 100%; background-position: center; background-repeat: no-repeat; object-fit: cover; }
.wc-textwrap { position: absolute; inset: 7cqh 6cqw; display: flex; flex-direction: column; }
.wc-text-main { white-space: normal; word-break: keep-all; }
.wc-ref { color: #ffe9a8; margin-top: 2cqh; font-weight: 700; text-shadow: 0 .3cqh 1cqh rgba(0,0,0,.8); }
.wc-el { position: absolute; box-sizing: border-box; overflow: hidden; }
.wc-text { white-space: normal; word-break: keep-all; line-height: 1.25; padding: .6cqh 1cqw; font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Noto Sans', 'Noto Sans Thai', 'Noto Sans Myanmar', sans-serif; }
.wc-table { border-collapse: collapse; font-family: 'Noto Sans KR', 'Noto Sans', 'Noto Sans Thai', 'Noto Sans Myanmar', sans-serif; }
.wc-table td { border: .15cqh solid rgba(255,255,255,.5); padding: .5cqh .8cqw; }

/* 방송 자막 */
.wc-ov { position: absolute; left: 6cqw; right: 6cqw; padding: 1.6cqh 3cqw 2cqh; border-radius: 1.2cqh; text-align: center; }
.wc-ov-title { color: #ffd76a; font-weight: 700; margin-bottom: .6cqh; letter-spacing: .05em; }
.wc-ov-text { word-break: keep-all; text-shadow: 0 .2cqh .6cqh rgba(0,0,0,.6); }

/* 프롬프터 */
.wc-stage { background: #0d0f14; color: #fff; font-family: 'Noto Sans KR', 'Noto Sans', 'Noto Sans Thai', 'Noto Sans Myanmar', sans-serif; display: flex; flex-direction: column; padding: 3cqh 4cqw; box-sizing: border-box; }
.wc-st-top { display: flex; gap: 3cqw; font-size: 3.4cqh; color: #9aa4b8; align-items: center; }
.wc-st-top span:first-child { color: #fff; font-weight: 700; flex: 1; }
.wc-st-status { color: #ff6b6b; }
.wc-clock { font-size: 5cqh; color: #7ee0a1; font-weight: 700; }
.wc-st-cur { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center; font-size: 12cqh;   /* 150% (8 → 12). 넘치면 render.js fitStage 가 그 슬라이드만 줄임 */ font-weight: 700; line-height: 1.35; word-break: keep-all; }
.wc-st-ref { font-size: 4cqh; color: #ffd76a; margin-top: 2cqh; }
.wc-st-next { flex: none; font-size: 7cqh; line-height: 1.3; color: #b9c2d3; border-top: .2cqh solid #2a3140; padding-top: 2cqh; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; word-break: keep-all; }   /* 다음 가사: 크게(4 → 7), 두 줄까지 */
.wc-st-next b { color: #6aa8ff; margin-right: 1cqw; }

/* 글머리 강조 (광고·순서 제목 테마) */
.wc-head { font-weight: 800; margin-bottom: .35em; letter-spacing: .02em; }
.wc-sub { font-weight: inherit; }
.wc-html { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.wc-pip-ph { position: absolute; right: 3cqw; bottom: 4cqh; width: 26cqw; aspect-ratio: 16 / 9; border: .35cqh dashed rgba(255,255,255,.9); background: rgba(0,0,0,.6); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; font: 700 2.8cqh 'Noto Sans KR', sans-serif; border-radius: 1cqh; }
.wc-pip-ph small { font-size: 1.8cqh; font-weight: 400; opacity: .8; }

/* ── 움직이는 배경 ─────────────────────────────── */
.wc-motion { position: absolute; inset: 0; overflow: hidden; }
.wc-motion i { position: absolute; display: block; will-change: transform; }
.wc-still .wc-motion, .wc-still .wc-motion * { animation-play-state: paused !important; }
.m-video::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.28); }
@keyframes wc-drift { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes wc-twinkle { from { opacity: .35 } to { opacity: 1 } }
@keyframes wc-neb { from { transform: rotate(-8deg) scale(1) } to { transform: rotate(8deg) scale(1.18) } }
@keyframes wc-pulse { from { opacity: .55 } to { opacity: 1 } }
@keyframes wc-sway { from { transform: rotate(-9deg) } to { transform: rotate(9deg) } }
@keyframes wc-rise { 0% { transform: translate(0, 0); opacity: 0 } 12% { opacity: 1 } 50% { transform: translate(3cqw, -65cqh) } 88% { opacity: 1 } 100% { transform: translate(-2cqw, -135cqh); opacity: 0 } }
@keyframes wc-wave { 0% { transform: translate(0, 0) } 50% { transform: translate(-25%, 4%) } 100% { transform: translate(-50%, 0) } }
@keyframes wc-aur1 { from { transform: translate(0, 0) scale(1) rotate(0) } to { transform: translate(28%, 12%) scale(1.35) rotate(25deg) } }
@keyframes wc-aur2 { from { transform: translate(0, 0) scale(1.1) rotate(0) } to { transform: translate(-30%, 16%) scale(.85) rotate(-22deg) } }
@keyframes wc-sky { from { background-position: 0 0 } to { background-position: 0 100% } }

/* 은하수 */
.m-galaxy { background: radial-gradient(ellipse at 50% 120%, #1c1446 0%, #080b20 55%, #020309 100%); }
.g-st { top: 0; left: 0; width: 200%; height: 100%; background-size: 50% 100%; background-repeat: repeat-x; animation: wc-drift linear infinite; }
.g-st.tw { animation: wc-drift 140s linear infinite, wc-twinkle 3.5s ease-in-out infinite alternate; }
.g-st.still { width: 100%; background-size: 100% 100%; animation: none; opacity: .6; }
.g-neb { inset: -30%; background:
  radial-gradient(ellipse 34% 18% at 40% 45%, rgba(140,90,255,.38), transparent 70%),
  radial-gradient(ellipse 28% 16% at 62% 55%, rgba(60,140,255,.32), transparent 70%),
  radial-gradient(ellipse 20% 12% at 52% 48%, rgba(255,120,200,.2), transparent 70%);
  animation: wc-neb 80s ease-in-out infinite alternate; }
.g-band { inset: -25%; background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.06) 46%, rgba(205,215,255,.13) 50%, rgba(255,255,255,.06) 54%, transparent 62%);
  animation: wc-neb 120s ease-in-out infinite alternate-reverse; }

/* 물결 */
.m-water { background: linear-gradient(180deg, #021a33 0%, #04355c 48%, #0a6a8a 100%); }
.w-glow { inset: -20%; background: radial-gradient(ellipse 50% 32% at 50% 0%, rgba(140,220,255,.35), transparent 70%); animation: wc-neb 30s ease-in-out infinite alternate; }
.w-ray { top: 0; left: 0; width: 200%; height: 100%; background: repeating-linear-gradient(100deg, rgba(255,255,255,0) 0 5cqw, rgba(180,230,255,.07) 6.5cqw, rgba(255,255,255,0) 8cqw);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); animation: wc-drift 50s linear infinite; }
.mw { left: 0; width: 200%; bottom: 0; background-size: 50% 100%; background-repeat: repeat-x; animation: wc-wave linear infinite; }
.w1 { height: 42%; animation-duration: 30s; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'><path d='M0 30 Q 125 0 250 30 T 500 30 T 750 30 T 1000 30 V100 H0Z' fill='rgba(90,190,240,0.22)'/></svg>"); }
.w2 { height: 32%; animation-duration: 19s; animation-direction: reverse; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'><path d='M0 35 Q 125 70 250 35 T 500 35 T 750 35 T 1000 35 V100 H0Z' fill='rgba(60,160,220,0.3)'/></svg>"); }
.w3 { height: 22%; animation-duration: 12s; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'><path d='M0 40 Q 125 10 250 40 T 500 40 T 750 40 T 1000 40 V100 H0Z' fill='rgba(20,110,170,0.45)'/></svg>"); }

/* 빛줄기 */
.m-rays { background: radial-gradient(ellipse 85% 75% at 50% -10%, #6e5124 0%, #2b1e10 48%, #0b0806 100%); }
.r-rays { left: -50%; top: -70%; width: 200%; height: 200%; transform-origin: 50% 35%;
  background: repeating-conic-gradient(from 0deg at 50% 35%, rgba(255,232,175,.11) 0deg 3deg, transparent 3deg 11deg);
  -webkit-mask-image: radial-gradient(circle at 50% 35%, #000 0%, transparent 55%); mask-image: radial-gradient(circle at 50% 35%, #000 0%, transparent 55%);
  animation: wc-sway 28s ease-in-out infinite alternate; }
.r-glow { inset: 0; background: radial-gradient(ellipse 42% 32% at 50% 0%, rgba(255,222,150,.45), transparent 70%); animation: wc-pulse 6s ease-in-out infinite alternate; }

/* 빛망울·먼지·거품·불씨 (아래에서 위로 떠오름) */
.m-bokeh { background: linear-gradient(160deg, #1b1033 0%, #3a1d3f 50%, #0d1a33 100%); }
.pt { bottom: -25cqh; border-radius: 50%; animation: wc-rise linear infinite; }
.pt.dust, .pt.bub, .pt.ember { bottom: -3cqh; }
.m-embers { background: radial-gradient(ellipse 75% 55% at 50% 112%, #7a2e0a 0%, #2a0d05 55%, #0a0403 100%); }
.e-glow { inset: 0; background: radial-gradient(ellipse 55% 30% at 50% 100%, rgba(255,140,60,.35), transparent 70%); animation: wc-pulse 3.2s ease-in-out infinite alternate; }

/* 오로라 */
.m-aurora { background: linear-gradient(180deg, #01040d 0%, #04122a 60%, #062236 100%); }
.a-b { width: 90%; height: 75%; border-radius: 50%; }
.a1 { left: -12%; top: -12%; background: radial-gradient(ellipse at center, rgba(40,255,170,.42), transparent 65%); animation: wc-aur1 21s ease-in-out infinite alternate; }
.a2 { right: -15%; top: 4%; background: radial-gradient(ellipse at center, rgba(130,80,255,.40), transparent 65%); animation: wc-aur2 27s ease-in-out infinite alternate; }
.a3 { left: 18%; top: 24%; background: radial-gradient(ellipse at center, rgba(0,200,255,.28), transparent 65%); animation: wc-aur1 34s ease-in-out infinite alternate-reverse; }

/* 새벽 하늘 */
.m-dawn { background: linear-gradient(180deg, #14213d 0%, #3c3b6e 32%, #a35d7c 66%, #f2a65a 100%); background-size: 100% 165%; animation: wc-sky 45s ease-in-out infinite alternate; }
.d-sun { left: 50%; bottom: -32cqh; width: 70cqh; height: 70cqh; margin-left: -35cqh; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,232,185,.75), rgba(255,180,100,.25) 40%, transparent 70%); animation: wc-pulse 8s ease-in-out infinite alternate; }
.d-cl { top: 0; left: 0; width: 200%; height: 100%; background-size: 50% 100%; background-repeat: repeat-x; animation: wc-drift linear infinite;
  background-image: radial-gradient(ellipse 18% 6% at 20% 30%, rgba(255,255,255,.26), transparent 70%), radial-gradient(ellipse 25% 7% at 60% 22%, rgba(255,230,240,.2), transparent 70%),
  radial-gradient(ellipse 15% 5% at 85% 45%, rgba(255,255,255,.18), transparent 70%), radial-gradient(ellipse 22% 6% at 40% 62%, rgba(255,220,200,.15), transparent 70%); }
.d-cl.c1 { animation-duration: 150s; }
.d-cl.c2 { animation-duration: 95s; top: 12%; opacity: .7; }

/* HTML 파일 자료: 1920×1080 으로 그린 뒤 줄임 */
.wc-hfile { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; pointer-events: none; background: #000; }
/* 방송 '화면 일부': 원래 크기로 그린 뒤 줄여서 구석에 */
.wc-circ-img { position: absolute; inset: 0; }
.wc-circ { position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; box-sizing: border-box;
  border: .6cqh solid rgba(255,255,255,.92); box-shadow: 0 .8cqh 3cqh rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; }
.wc-circ-ph { color: #fff; font-size: 3cqh; font-weight: 700; text-shadow: 0 0 .6cqh #000; }
.wc-part { position: absolute; width: 100%; height: 100%; border-radius: 2.2cqh; overflow: hidden; box-shadow: 0 1cqh 4cqh rgba(0,0,0,.6); outline: .55cqh solid rgba(255,255,255,.85); }
.wc-media { position: absolute; background-position: center; background-repeat: no-repeat; }

/* ── 타이머 ── */
.wc-extra { z-index: 6 !important; }
.wc-tm { color: #fff; font-family: 'Noto Sans KR', 'Noto Sans', 'Noto Sans Thai', 'Noto Sans Myanmar', sans-serif; font-variant-numeric: tabular-nums; text-align: center; }
.wc-tm-big { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0,0,0,.55); }
.wc-tm-big .wc-tm-l { font-size: 6cqh; font-weight: 700; margin-bottom: 1cqh; text-shadow: 0 .4cqh 1.2cqh rgba(0,0,0,.7); }
.wc-tm-big .wc-tm-v { font-size: 24cqh; font-weight: 900; letter-spacing: .03em; text-shadow: 0 .6cqh 2cqh rgba(0,0,0,.7); }
.wc-tm-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }   /* 배경 위에 타이머만 (로고처럼, 어둡게 덮지 않음) */
.wc-tm-over .wc-tm-l { font-size: 6.5cqh; font-weight: 700; margin-bottom: 1cqh; text-shadow: 0 .4cqh 1.6cqh rgba(0,0,0,.85); }
.wc-tm-over .wc-tm-v { font-size: 26cqh; font-weight: 900; letter-spacing: .03em; text-shadow: 0 .6cqh 2.4cqh rgba(0,0,0,.85); }
.wc-tm-corner { position: absolute; right: 3cqw; bottom: 4cqh; background: rgba(0,0,0,.62); padding: 1cqh 2.2cqw; border-radius: 1.4cqh; }
.wc-tm-corner .wc-tm-l { font-size: 2.6cqh; opacity: .85; }
.wc-tm-corner .wc-tm-v { font-size: 5.5cqh; font-weight: 800; }
.wc-tm-stage { position: absolute; right: 4cqw; bottom: 14cqh; background: #1d2433; border: .3cqh solid #3b4660; padding: 1.2cqh 2.4cqw; border-radius: 1.6cqh; }
.wc-tm-stage .wc-tm-l { font-size: 3cqh; color: #9aa4b8; }
.wc-tm-stage .wc-tm-v { font-size: 9cqh; font-weight: 800; color: #7ee0a1; }
.wc-tm.over .wc-tm-v { color: #ff6b6b !important; }
/* ── 이름 자막 (화면 아래·위 왼쪽 띠) ── */
.wc-prop { position: absolute; left: 5cqw; max-width: 70cqw; padding: 1.4cqh 3cqw 1.6cqh 2.4cqw; color: #fff; font-family: 'Noto Sans KR', 'Noto Sans', 'Noto Sans Thai', 'Noto Sans Myanmar', sans-serif;
  background: linear-gradient(90deg, rgba(11,29,58,.94), rgba(11,29,58,.78)); border-left: .9cqh solid #ffd76a; border-radius: 0 1.2cqh 1.2cqh 0;
  box-shadow: 0 .6cqh 2.4cqh rgba(0,0,0,.45); animation: wc-prop-in .45s ease-out both; }
.wc-prop-bottom { bottom: 8cqh; } .wc-prop-top { top: 6cqh; }
.wc-prop-t { font-size: 4.6cqh; font-weight: 800; line-height: 1.25; }
.wc-prop-s { font-size: 2.8cqh; opacity: .88; margin-top: .4cqh; }
@keyframes wc-prop-in { from { transform: translateX(-6cqw); opacity: 0 } to { transform: none; opacity: 1 } }
/* ── 무대 메시지 (프롬프터에만) ── */
.wc-msg { position: absolute; left: 0; right: 0; top: 0; background: #ffd400; color: #111; font: 800 6.5cqh 'Noto Sans KR', sans-serif; text-align: center;
  padding: 2cqh 3cqw; word-break: keep-all; animation: wc-msg-blink 1.2s ease-in-out 3; }
@keyframes wc-msg-blink { 50% { background: #ff8a00; } }
/* 내 영상(파일) — 유튜브 영상과 같은 자리 */
.wc-yt-v { object-fit: contain; background: #000; }
.wc-yt-thumb span.mine { background: rgba(47,109,246,.92); }
