/* =========================================================
   OBS 오버레이 — 1920×1080 고정 무대, 투명 배경
   가운데(카메라가 테이블을 비추는 자리)는 비워 둔다
   ========================================================= */
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: transparent !important; }
body.ov-body { min-height: 0; font-size: 22px; line-height: 1.4; }
html.ov-preview, html.ov-preview body { background: #02050F !important; }

.ov-stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform: translate(-50%, -50%) scale(var(--k, 1)); overflow: hidden; color: var(--ink); font-family: var(--f-body); }
.ov-panel { background: rgba(4, 9, 28, .84); border: 1px solid rgba(150, 175, 255, .22); border-radius: 20px; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.ov-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 700 20px/1 var(--f-cond); letter-spacing: .16em; color: var(--volt); text-transform: uppercase; }
.ov-h em { font-style: normal; font: 700 17px/1 var(--f-cond); letter-spacing: .06em; color: var(--ink-3); text-transform: none; }
.ov-empty { padding: 14px 0 6px; font-size: 18px; color: var(--ink-3); }

/* 미리보기 배경 (?bg=1) — 카메라가 비추는 테이블 흉내 */
.ov-cam { position: absolute; inset: 0; display: none; }
html.ov-preview .ov-cam { display: block; background: radial-gradient(ellipse 62% 58% at 50% 55%, #1B4B78 0%, #0F2C4E 52%, #061223 100%); }
html.ov-preview .ov-cam::before { content: ''; position: absolute; left: 50%; top: 54%; width: 1000px; height: 620px; transform: translate(-50%, -50%); border-radius: 30px; background-image: radial-gradient(circle, rgba(255, 255, 255, .07) 1.5px, transparent 2px); background-size: 34px 34px; mask: radial-gradient(ellipse at center, #000 40%, transparent 75%); -webkit-mask: radial-gradient(ellipse at center, #000 40%, transparent 75%); }
.ov-cam-cards { position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%); display: flex; gap: 46px; }
.ov-cam-cards .tcg { --w: 210px; }
.ov-cam-cards .ov-cam-hit { box-shadow: 0 0 0 4px var(--volt), 0 0 60px rgba(255, 210, 63, .6); }
.ov-cam-l { position: absolute; left: 50%; top: 262px; transform: translateX(-50%); font-size: 17px; color: rgba(255, 255, 255, .32); white-space: nowrap; }

/* 상단: 브랜드 + 오늘의 히트 티커 */
.ov-top { position: absolute; left: 40px; right: 40px; top: 28px; height: 72px; display: flex; gap: 16px; }
.ov-brand { display: flex; align-items: center; gap: 16px; height: 100%; padding: 0 24px; border-radius: 20px; background: rgba(4, 9, 28, .88); border: 1px solid rgba(150, 175, 255, .22); flex: none; }
.ov-brand .logo-mark { width: 30px; height: 40px; }
.ov-brand .logo-ko { font-size: 38px; }
.ov-brand .live-pill { height: 32px; padding: 0 12px; font-size: 19px; border-radius: 8px; }
.ov-view { display: inline-flex; align-items: center; gap: 7px; font: 700 24px/1 var(--f-cond); letter-spacing: .03em; }
.ov-view .ic { width: 22px; height: 22px; color: var(--ink-2); }
.ov-url { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .18); font-size: 15px; font-weight: 700; color: var(--ink-2); line-height: 1.15; }
.ov-url b { display: block; font: 700 27px/1.1 var(--f-cond); letter-spacing: .02em; color: var(--volt); }
.ov-tick { position: relative; flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; overflow: hidden; border-radius: 20px; background: rgba(4, 9, 28, .84); border: 1px solid rgba(150, 175, 255, .22); }
.ov-tick-l { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; padding: 0 18px 0 24px; background: #070F2F; font: 700 21px/1 var(--f-cond); letter-spacing: .16em; color: var(--volt); }
.ov-tick-l::after { content: ''; position: absolute; left: 100%; top: 0; bottom: 0; width: 44px; background: linear-gradient(90deg, #070F2F, rgba(7, 15, 47, 0)); }
.ov-tick-track { display: flex; align-items: center; gap: 46px; width: max-content; padding-left: 230px; animation: tick 64s linear infinite; }
.ov-tk { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; color: var(--ink-2); white-space: nowrap; }
.ov-tk b { color: var(--ink); font-weight: 800; }
.ov-tk .rchip, .ov-hit .rchip { height: 26px; min-width: 42px; padding: 0 7px; font-size: 18px; border-radius: 6px; }

/* 왼쪽: 오늘의 히트 */
.ov-hits { position: absolute; left: 40px; top: 124px; width: 420px; padding: 18px 18px 8px; }
.ov-hits .ov-h { margin-bottom: 8px; }
.ov-hit { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 7px 6px; border-top: 1px solid rgba(255, 255, 255, .06); border-radius: 10px; }
.ov-hit .tcg { --w: 38px; box-shadow: none; }
.ov-hit-t { min-width: 0; }
.ov-hit-t b { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; white-space: nowrap; overflow: hidden; }
.ov-hit-t b span { overflow: hidden; text-overflow: ellipsis; }
.ov-hit-t > span { display: block; font-size: 15px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-hit time { font: 700 18px/1 var(--f-cond); color: var(--ink-3); }
.ov-hit.new { animation: ovFlash 1.3s ease 3; }
@keyframes ovFlash { 50% { background: rgba(255, 210, 63, .2); } }

/* 왼쪽 아래: 기여도 TOP 5 */
.ov-top5 { position: absolute; left: 40px; bottom: 40px; width: 420px; padding: 18px 18px 12px; }
.ov-top5 .ov-h { margin-bottom: 6px; }
.ov-rk { display: grid; grid-template-columns: 28px 36px minmax(0, 1fr) auto 64px; gap: 12px; align-items: center; padding: 6px 0; }
.ov-rk .av { --s: 36px; font-size: 16px; }
.ov-rk-n { font: 700 25px/1 var(--f-cond); color: var(--ink-3); text-align: center; }
.ov-rk:first-child .ov-rk-n { color: var(--volt); }
.ov-rk b { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-rk.me b { color: var(--volt); }
.ov-rk-v { font: 700 22px/1 var(--f-cond); letter-spacing: .02em; }
.ov-rk-p { font: 700 18px/1 var(--f-cond); color: var(--ink-3); text-align: right; }

/* 오른쪽: 지금 개봉 · 다음 · MVP · 예측 */
.ov-right { position: absolute; right: 40px; top: 124px; width: 432px; display: flex; flex-direction: column; gap: 14px; }
.ov-now { padding: 18px 20px 20px; }
.ov-who { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.ov-who .av { --s: 64px; font-size: 28px; }
.ov-who > div { min-width: 0; }
.ov-who b { display: flex; align-items: center; gap: 8px; font-size: 27px; font-weight: 900; line-height: 1.2; white-space: nowrap; }
.ov-who .lv { height: 22px; padding: 0 6px; font-size: 16px; }
.ov-who > div > span { display: block; font-size: 17px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-prog { display: flex; align-items: center; gap: 12px; margin-top: 16px; font: 700 20px/1 var(--f-cond); letter-spacing: .04em; color: var(--ink-2); white-space: nowrap; }
.ov-prog b { font-size: 32px; color: var(--volt); }
.ov-bar { flex: 1; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.ov-bar i { display: block; height: 100%; border-radius: 6px; background: var(--volt); transition: width .4s ease; }
.ov-slot { margin-top: 12px; font-size: 16px; font-weight: 700; color: var(--ink-2); }
.ov-kw { margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: var(--volt); color: var(--volt-ink); font-size: 23px; font-weight: 900; line-height: 1.3; transform: rotate(-1.2deg); box-shadow: 0 6px 0 #B07A00; }
.ov-kw small { display: block; margin-bottom: 3px; font: 700 14px/1 var(--f-cond); letter-spacing: .16em; opacity: .7; }
.ov-idle { display: grid; gap: 4px; margin-top: 14px; }
.ov-idle b { font-size: 24px; }
.ov-idle span { font-size: 17px; color: var(--ink-2); }
.ov-next { padding: 16px 18px 8px; }
.ov-nx { display: grid; grid-template-columns: 24px 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.ov-next .ov-h + div .ov-nx:first-child { margin-top: 8px; }
.ov-nx .av { --s: 40px; font-size: 18px; }
.ov-nx-n { font: 700 25px/1 var(--f-cond); color: var(--ink-3); text-align: center; }
.ov-nx > div { min-width: 0; }
.ov-nx b { display: block; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-nx > div span { display: block; font-size: 15px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-nx em { font: 700 19px/1 var(--f-cond); font-style: normal; color: var(--ink-2); white-space: nowrap; }
.ov-mvp { position: relative; padding: 16px 18px; overflow: hidden; background: linear-gradient(120deg, rgba(255, 210, 63, .26), rgba(4, 9, 28, .88) 68%); border-color: rgba(255, 210, 63, .42); }
.ov-mvp-in { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.ov-mvp-in .av { --s: 56px; font-size: 24px; }
.ov-mvp-in > div { min-width: 0; }
.ov-mvp-nm { display: flex; align-items: center; gap: 7px; font-size: 23px; font-weight: 900; }
.ov-mvp-sub { display: block; font-size: 15px; color: var(--ink-2); }
.ov-mvp-sub b { font-size: 17px; color: var(--ink); }
.ov-mvp-in > .ic { position: absolute; right: 16px; top: 12px; width: 34px; height: 34px; color: var(--volt); }
.ov-pred { padding: 16px 18px; border-color: rgba(110, 168, 255, .48); animation: ovDrop .45s cubic-bezier(.2, 1.2, .3, 1) both; }
.ov-pred .ov-h { color: #8FB8FF; }
.ov-pred-q { margin-top: 8px; font-size: 19px; font-weight: 800; line-height: 1.35; }
.ov-pred-bar { display: flex; height: 34px; margin-top: 12px; border-radius: 10px; overflow: hidden; font: 700 19px/34px var(--f-cond); letter-spacing: .04em; }
.ov-pred-bar span { padding: 0 12px; white-space: nowrap; transition: width .4s ease; }
.ov-pred-bar .o { background: #3D6BFF; }
.ov-pred-bar .x { flex: 1; background: #E8445E; text-align: right; }
.ov-pred-bar .win { box-shadow: inset 0 0 0 3px #fff; }
.ov-pred-n { margin-top: 8px; font-size: 14px; color: var(--ink-3); }

/* 가운데 위: 타임딜 · 공지 */
.ov-banners { position: absolute; left: 50%; top: 120px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ov-deal { display: flex; align-items: center; gap: 22px; padding: 12px 26px 12px 14px; border-radius: 20px; background: linear-gradient(100deg, #FF3D5A, #B80F2C); color: #fff; white-space: nowrap; box-shadow: 0 14px 34px rgba(0, 0, 0, .45); animation: ovDrop .5s cubic-bezier(.2, 1.2, .3, 1) both; }
.ov-deal-t { display: grid; justify-items: center; padding: 6px 14px; border-radius: 12px; background: rgba(0, 0, 0, .26); }
.ov-deal-t small { font: 700 14px/1 var(--f-cond); letter-spacing: .14em; }
.ov-deal-t b { font: 700 36px/1.1 var(--f-cond); letter-spacing: .03em; }
.ov-deal-m > b { display: block; font-size: 25px; font-weight: 900; }
.ov-deal-m span b { color: #FFE07A; font-weight: 900; }
.ov-deal-m span { font-size: 19px; }
.ov-deal-m s { opacity: .7; }
.ov-deal-q { display: grid; justify-items: end; font: 700 16px/1 var(--f-cond); letter-spacing: .08em; }
.ov-deal-q b { font-size: 34px; color: #FFE07A; }
.ov-deal-q b small { font-size: 20px; color: #fff; opacity: .7; }
.ov-notice { display: flex; align-items: center; gap: 12px; max-width: 980px; padding: 14px 28px; border-radius: 999px; background: var(--volt); color: var(--volt-ink); font-size: 27px; font-weight: 900; white-space: nowrap; box-shadow: 0 7px 0 #B07A00, 0 18px 40px rgba(0, 0, 0, .4); animation: ovDrop .5s cubic-bezier(.2, 1.2, .3, 1) both; }
.ov-notice span { overflow: hidden; text-overflow: ellipsis; }
.ov-notice .ic { width: 28px; height: 28px; }
@keyframes ovDrop { from { opacity: 0; transform: translateY(-28px) scale(.96); } }

/* 가운데 아래: 잭팟 게이지 */
.ov-gauges { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); width: 980px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ov-gauges .gauge { padding: 16px 20px 14px; border-radius: 20px; border-color: rgba(150, 175, 255, .24); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.ov-gauges .g-title { font-size: 18px; color: var(--ink); }
.ov-gauges .g-title i { font-size: 16px; }
.ov-gauges .g-hot { font-size: 15px; padding: 4px 9px; }
.ov-gauges .g-prize { font-size: 21px; margin-top: 6px; }
.ov-gauges .g-prize .ic { width: 22px; height: 22px; }
.ov-gauges .g-num b { font-size: 42px; }
.ov-gauges .g-num span { font-size: 19px; }
.ov-gauges .g-bar { height: 16px; }
.ov-gauges .g-meta { font-size: 16px; }
.ov-gauges .g-meta span:last-child { display: none; }

/* 주문 알림 */
.ov-toasts { position: absolute; left: 50%; bottom: 236px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 12; }
.ov-toast { display: flex; align-items: center; gap: 12px; padding: 12px 24px 12px 16px; border-radius: 999px; background: rgba(4, 9, 28, .92); border: 1.5px solid rgba(59, 224, 164, .55); font-size: 22px; white-space: nowrap; box-shadow: 0 12px 28px rgba(0, 0, 0, .45); animation: ovUp .45s cubic-bezier(.2, 1.2, .3, 1) both; }
.ov-toast .ic { width: 26px; height: 26px; color: var(--ok); }
.ov-toast.is-break { border-color: rgba(255, 210, 63, .6); }
.ov-toast.is-break .ic { color: var(--volt); }
.ov-toast.is-pred { border-color: rgba(110, 168, 255, .6); }
.ov-toast.is-pred .ic { color: #8FB8FF; }
.ov-toast.out { animation: fadeOut .4s ease forwards; }
@keyframes ovUp { from { opacity: 0; transform: translateY(22px) scale(.96); } }

/* NOW OPENING 스와이프 */
.ov-swipe { position: absolute; left: 0; right: 0; top: 318px; height: 150px; overflow: hidden; pointer-events: none; z-index: 14; }
.ov-sw-in { position: absolute; left: 50%; top: 10px; display: flex; flex-direction: column; align-items: center; padding: 16px 90px; opacity: 0; transform: translateX(-150%); text-align: center; white-space: nowrap; background: linear-gradient(90deg, transparent, rgba(4, 9, 28, .92) 14%, rgba(4, 9, 28, .92) 86%, transparent); }
.ov-swipe.go .ov-sw-in { animation: ovSwipe 3s cubic-bezier(.2, .8, .2, 1) both; }
.ov-sw-in small { font: 700 19px/1 var(--f-cond); letter-spacing: .32em; color: var(--volt); }
.ov-sw-in b { font-size: 48px; font-weight: 900; line-height: 1.25; }
.ov-sw-in span { font-size: 22px; color: var(--ink-2); }
@keyframes ovSwipe { 0% { opacity: 0; transform: translateX(-150%); } 14%, 82% { opacity: 1; transform: translateX(-50%); } 100% { opacity: 0; transform: translateX(40%); } }

/* 가운데 알림: 히트 · 잭팟 */
.ov-alert { position: absolute; inset: 0; z-index: 20; display: none; place-items: center; pointer-events: none; }
.ov-alert.on { display: grid; place-items: start center; padding-top: 112px; animation: fade .3s ease; background: radial-gradient(circle at 50% 46%, rgba(4, 9, 28, .74), rgba(4, 9, 28, .28) 48%, transparent 70%); }
.ov-alert.on.is-jp { place-items: center; padding-top: 0; }
.ov-alert.on.is-small { padding-top: 150px; background: radial-gradient(circle at 50% 40%, rgba(4, 9, 28, .55), transparent 40%); }
.is-small .ova-stamp { font-size: 76px; }
.is-small .ova-cap { font-size: 22px; padding: 10px 20px; }
.is-small .ova-cap span { font-size: 16px; }
.ov-alert.out { animation: fadeOut .45s ease forwards; }
.ova-in { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ova-stamp { font-size: 104px; }
.ova-slab { animation: slabDrop .7s cubic-bezier(.2, 1.1, .3, 1) .15s both; }
.ova-slab .tcg-foil { animation: foil 1.6s ease-in-out infinite alternate; }
.ova-cap { padding: 12px 26px; border-radius: 18px; background: rgba(4, 9, 28, .9); border: 1px solid rgba(255, 255, 255, .18); text-align: center; font-size: 27px; font-weight: 700; animation: ovUp .5s ease .35s both; }
.ova-cap b { color: var(--volt); font-weight: 900; }
.ova-cap span { display: block; margin-top: 2px; font-size: 19px; font-weight: 600; color: var(--ink-2); }
.is-jp .ova-stamp { color: #FFE07A; }
.ova-jp { min-width: 640px; padding: 26px 40px 24px; border-radius: 26px; text-align: center; background: linear-gradient(160deg, #3A2A06, #120C02); border: 2px solid #FFD86B; box-shadow: 0 0 70px rgba(255, 210, 63, .42); animation: slabDrop .6s cubic-bezier(.2, 1.1, .3, 1) .1s both; }
.ova-jp small { font: 700 20px/1 var(--f-cond); letter-spacing: .14em; color: #FFD86B; }
.ova-jp > b { display: block; margin: 10px 0 18px; font-size: 46px; font-weight: 900; line-height: 1.2; }
.ova-jprow { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; font-size: 26px; }
.ova-jl { min-width: 120px; text-align: right; font-size: 18px; font-weight: 700; color: #E8C978; }
.ova-jprow strong { font-weight: 900; }
.ova-jp p { margin-top: 16px; font-size: 16px; color: rgba(255, 240, 200, .6); }

/* 방송 꺼짐 */
.ov-off { position: absolute; inset: 0; z-index: 18; display: grid; place-items: center; pointer-events: none; }
.ov-off:empty { display: none; }
.ov-off-in { display: grid; justify-items: center; gap: 12px; padding: 40px 70px; border-radius: 30px; background: rgba(4, 9, 28, .92); border: 1px solid rgba(255, 255, 255, .18); text-align: center; }
.ov-off-in .live-pill { height: 32px; font-size: 19px; background: var(--ink-4); }
.ov-off-in .live-pill::before { animation: none; }
.ov-off-in b { font-size: 44px; font-weight: 900; }
.ov-off-in span { font-size: 21px; color: var(--ink-2); }
