:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #07070a; }
body { display: grid; place-items: center; }
.stage { position: relative; width: 100%; height: 100%; min-height: 100dvh; overflow: hidden; isolation: isolate; background: #111; }
video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -3; }
.shade { position: absolute; inset: 0; z-index: -2; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.32), transparent 26%, transparent 52%, rgba(0,0,0,.82) 100%); }
.livebar { position: absolute; top: max(16px, env(safe-area-inset-top)); left: 14px; right: 14px; display: flex; align-items: center; gap: 8px; }
.live-badge, .viewer-pill { min-height: 34px; display: flex; align-items: center; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 8px 28px rgba(0,0,0,.25); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.live-badge { gap: 7px; padding: 0 12px; border-radius: 9px; font-size: 12px; font-weight: 900; letter-spacing: .08em; background: linear-gradient(135deg, #ff245d, #e60035); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: white; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: livePulse 1.5s infinite; }
.viewer-pill { padding: 0 11px; border-radius: 9px; gap: 5px; color: rgba(255,255,255,.92); font-size: 12px; background: rgba(8,8,12,.42); }
.viewer-pill > span { font-size: 8px; color: #fff; }
.signal { margin-left: auto; height: 34px; display: flex; align-items: end; gap: 3px; padding: 9px 11px; border-radius: 9px; background: rgba(8,8,12,.42); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(12px); }
.signal i { display: block; width: 3px; border-radius: 3px; background: #56f39a; box-shadow: 0 0 7px rgba(86,243,154,.7); }
.signal i:nth-child(1) { height: 6px; } .signal i:nth-child(2) { height: 10px; } .signal i:nth-child(3) { height: 15px; animation: signal 1.6s infinite; }
.sound-button { position: absolute; z-index: 5; top: 50%; left: 50%; width: min(82%, 320px); min-height: 92px; display: grid; grid-template-columns: 50px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 12px; padding: 15px 20px; color: white; border: 1px solid rgba(255,255,255,.34); border-radius: 22px; background: rgba(5,5,9,.67); box-shadow: 0 14px 44px rgba(0,0,0,.45); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transform: translate(-50%, -50%); cursor: pointer; animation: soundPulse 1.8s ease-in-out infinite; }
.sound-button .sound-icon { grid-row: 1 / 3; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, #ff165d, #ef003c); font-size: 24px; }
.sound-button strong { align-self: end; text-align: left; font-size: 15px; }
.sound-button small { align-self: start; text-align: left; margin-top: 3px; color: rgba(255,255,255,.72); font-size: 12px; }
.sound-button.is-on { opacity: 0; pointer-events: none; transform: translate(-50%, -54%) scale(.96); transition: opacity .35s ease, transform .35s ease; animation: none; }
.comments { position: absolute; left: 14px; bottom: calc(108px + env(safe-area-inset-bottom)); width: min(78%, 330px); display: flex; flex-direction: column; align-items: flex-start; gap: 7px; pointer-events: none; }
.comment { max-width: 100%; padding: 8px 11px; border: 1px solid rgba(255,255,255,.13); border-radius: 15px 15px 15px 4px; color: #fff; background: rgba(11,11,16,.47); box-shadow: 0 8px 24px rgba(0,0,0,.16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 13px; animation: commentIn .42s cubic-bezier(.2,.9,.2,1) both; }
.comment strong { font-weight: 800; margin-right: 4px; }
.comment.system { color: rgba(255,255,255,.82); font-size: 12px; }
.comment.removing { animation: commentOut .3s ease forwards; }
.reactions { position: absolute; right: 15px; bottom: calc(106px + env(safe-area-inset-bottom)); width: 54px; height: 52%; pointer-events: none; }
.reaction { position: absolute; bottom: 0; right: 3px; font-size: var(--size); filter: drop-shadow(0 4px 5px rgba(0,0,0,.28)); animation: floatUp var(--duration) cubic-bezier(.18,.7,.2,1) forwards; }
.cta { position: absolute; left: 14px; right: 14px; bottom: max(16px, env(safe-area-inset-bottom)); min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid rgba(255,255,255,.34); border-radius: 20px; color: #fff; text-decoration: none; background: linear-gradient(135deg, #ff165d, #ef003c); box-shadow: 0 14px 34px rgba(238,0,61,.38), inset 0 1px rgba(255,255,255,.2); font-size: clamp(17px, 4.5vw, 20px); font-weight: 900; opacity: 0; transform: translateY(24px) scale(.98); pointer-events: none; }
.cta b { font-size: 30px; line-height: 1; font-weight: 400; }
.cta.visible { opacity: 1; transform: none; pointer-events: auto; transition: opacity .5s ease, transform .65s cubic-bezier(.2,.9,.2,1); animation: ctaPulse 2.4s 1.1s ease-in-out infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } }
@keyframes signal { 50% { height: 9px; opacity: .65; } }
@keyframes commentIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes commentOut { to { opacity: 0; transform: translateY(-7px); } }
@keyframes floatUp { 0% { opacity: 0; transform: translate(0,8px) scale(.7) rotate(-8deg); } 12% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--drift), -46vh) scale(1.18) rotate(12deg); } }
@keyframes ctaPulse { 0%, 100% { box-shadow: 0 14px 34px rgba(238,0,61,.38), inset 0 1px rgba(255,255,255,.2); transform: scale(1); } 50% { box-shadow: 0 16px 42px rgba(238,0,61,.58), inset 0 1px rgba(255,255,255,.25); transform: scale(1.018); } }
@keyframes soundPulse { 0%, 100% { box-shadow: 0 14px 44px rgba(0,0,0,.45), 0 0 0 0 rgba(255,22,93,.4); } 50% { box-shadow: 0 14px 44px rgba(0,0,0,.45), 0 0 0 9px rgba(255,22,93,0); } }
@media (min-width: 700px) { .stage { width: min(100%, 540px); box-shadow: 0 0 90px rgba(0,0,0,.75); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; } }
