/* Portada · «Así lo ve tu audiencia»: un directo de ejemplo con widgets de Spectra */
.aud { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: stretch; }
.aud-stream { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #0b0812; border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(155, 92, 255, .12); container-type: inline-size; user-select: none; -webkit-user-select: none; }

/* Partida (ilustrada) o foto real si existe /img/demo-stream.jpg */
.gs, .gs-game, .gs-world { position: absolute; inset: 0; width: 100%; height: 100%; }
.gs-game { background-size: cover; background-position: center; }
.gs-world { transform: scale(1.06); transform-origin: 50% 60%; } /* fondo quieto: solo se mueve lo de Spectra */
@keyframes gs-sway { 0%, 100% { transform: scale(1.06) translate(0, 0); } 30% { transform: scale(1.06) translate(-1.2%, .4%); } 65% { transform: scale(1.06) translate(.9%, -.3%); } }
@keyframes gs-bob { 50% { transform: translate(-6px, 8px); } }
.gs-cross { position: absolute; left: 50%; top: 50%; width: 2.2cqw; height: 2.2cqw; transform: translate(-50%, -50%); }
.gs-cross::before, .gs-cross::after { content: ''; position: absolute; background: rgba(255, 255, 255, .85); box-shadow: 0 0 4px rgba(0, 0, 0, .6); }
.gs-cross::before { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); }
.gs-cross::after { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.gs-hud { position: absolute; bottom: 4.5%; color: #fff; font: 800 2.6cqw/1 'Inter', sans-serif; text-shadow: 0 2px 6px rgba(0, 0, 0, .7); display: flex; align-items: center; gap: .6cqw; }
.gs-hp { left: 3%; }
.gs-hp i { display: block; width: 11cqw; height: .8cqw; border-radius: 9px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.gs-hp em { display: block; width: 82%; height: 100%; background: #3ddc97; }
.gs-ammo { right: 23%; }
.gs-ammo span { font-size: 1.5cqw; opacity: .75; }
.gs-map { position: absolute; right: 2.5%; top: 4%; width: 9cqw; height: 9cqw; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); background: radial-gradient(circle, rgba(20, 14, 28, .55), rgba(20, 14, 28, .8)); }
.gs-map i { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: translate(-50%, -60%); border-left: .6cqw solid transparent; border-right: .6cqw solid transparent; border-bottom: 1.3cqw solid #ffcf5a; }
.gs-cam { position: absolute; right: 2.5%; bottom: 13%; width: 20%; aspect-ratio: 16 / 9; border-radius: 1.2cqw; overflow: hidden; border: 2px solid #9b5cff; box-shadow: 0 8px 22px rgba(0, 0, 0, .5); }
.gs-cam svg { width: 100%; height: 100%; display: block; }
.gs-person { animation: gs-talk 3.2s ease-in-out infinite; transform-origin: 160px 180px; }
@keyframes gs-talk { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-2deg) translateY(1px); } 60% { transform: rotate(1.5deg); } }
.aud-stream.has-photo .gs-game, .aud-stream.has-photo .gs-cam { display: none; }
/* Escenas con imagen: partida (Valorant) y charla (Just Chatting), con fundido */
.gs-photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .9s ease; transform: scale(1.02); }
.aud-stream.has-photo .gs-photo.on { opacity: 1; }
@keyframes gs-ken { from { transform: scale(1.02); } to { transform: scale(1.07) translate(-.6%, -.4%); } }
/* En la charla, todo va en el lado de la pared para no tapar al streamer */
.aud-stream.scene-chat .ov-gg { left: 29%; top: 55%; width: 15%; }
.aud-stream.scene-chat .ov-hl { max-width: 34%; }
.aud-stream.scene-chat .ov-goal { width: 28%; left: 53%; }

/* Capa del reproductor y widgets */
.aud-ui { position: absolute; inset: 0; pointer-events: none; font-family: 'Inter', system-ui, sans-serif; }
.tv-live { position: absolute; left: 2.5%; top: 4%; display: flex; align-items: center; gap: .7cqw; color: #fff; font-size: 1.4cqw; font-weight: 600; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.tv-live span { background: #e91916; padding: .25cqw .7cqw; border-radius: .4cqw; font-weight: 800; letter-spacing: .04em; text-shadow: none; }
.tv-live em { font-style: normal; font-weight: 800; }

.ov-goal { position: absolute; left: 50%; top: 4%; width: 34%; transform: translateX(-50%); padding: .9cqw 1.3cqw; border-radius: 1cqw; background: rgba(11, 9, 17, .72); backdrop-filter: blur(6px); color: #fff; }
.ov-goal .t { display: flex; justify-content: space-between; font-size: 1.45cqw; margin-bottom: .6cqw; }
.ov-goal .t span { font-weight: 700; opacity: .9; font-variant-numeric: tabular-nums; }
.ov-goal .bar { height: 1cqw; border-radius: 9px; background: rgba(155, 92, 255, .25); overflow: hidden; }
.ov-goal .bar i { display: block; height: 100%; width: 68%; border-radius: inherit; background: linear-gradient(90deg, #9b5cff, #ff4fd8); transition: width .8s cubic-bezier(.2, .8, .2, 1); }

.ov-counter { position: absolute; left: 2.5%; top: 13%; display: flex; align-items: baseline; gap: 1cqw; padding: .8cqw 1.5cqw; border-radius: 1cqw; background: rgba(11, 9, 17, .7); color: #fff; font: 800 2.4cqw/1 'Montserrat', 'Inter', sans-serif; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.ov-counter span { font-size: 1.6cqw; opacity: .85; text-transform: uppercase; letter-spacing: .05em; }
.ov-counter b { color: #ff6b81; display: inline-block; font-variant-numeric: tabular-nums; }
.ov-counter b.bump { animation: ov-bump .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes ov-bump { 35% { transform: scale(1.5); } }

.ov-hl { position: absolute; left: 2.5%; top: 34%; max-width: 40%; padding: 1.2cqw 1.6cqw; border-radius: 1.2cqw; background: rgba(11, 9, 17, .82); border-left: .45cqw solid #9b5cff; color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); opacity: 0; transform: translateX(-12%); transition: opacity .45s, transform .5s cubic-bezier(.2, .9, .3, 1.2); }
.ov-hl.show { opacity: 1; transform: none; }
.ov-hl .who { font-size: 1.3cqw; font-weight: 800; color: #b98bff; }
.ov-hl .msg { font-size: 1.85cqw; font-weight: 600; margin-top: .3cqw; }

.ov-gg { position: absolute; left: 52%; top: 26%; width: 17%; opacity: 0; transform: scale(.2) rotate(-25deg); filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .5)); }
.ov-gg.show { animation: ov-pop 2.8s cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes ov-pop { 0% { opacity: 0; transform: scale(.2) rotate(-25deg); } 14% { opacity: 1; transform: scale(1.12) rotate(6deg); } 22% { transform: scale(1) rotate(-4deg); } 82% { opacity: 1; transform: scale(1) rotate(-4deg); } 100% { opacity: 0; transform: scale(.85) rotate(-4deg) translateY(-6%); } }

/* Reproductor: cápsula oscura con barras de nivel que siguen a la música. */
.ov-music { position: absolute; left: 2.5%; bottom: 13%; display: flex; align-items: center; gap: 1.3cqw; padding: .95cqw 1.7cqw .95cqw 1.3cqw; border-radius: .9cqw; background: rgba(13, 17, 30, .86); border: 1px solid rgba(120, 140, 190, .22); color: #e8ecf6; box-shadow: 0 .6cqw 1.6cqw rgba(0, 0, 0, .35); }
.ov-music .eq { display: flex; align-items: flex-end; gap: .32cqw; height: 2.3cqw; }
.ov-music .eq i { width: .5cqw; height: 100%; border-radius: .15cqw; background: #2ee6ff; box-shadow: 0 0 .5cqw rgba(46, 230, 255, .45); transform-origin: bottom; transform: scaleY(var(--lv, .3)); transition: transform .09s linear; }
.ov-music .t { font-size: 1.45cqw; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.ov-music .t .note { margin-right: .5cqw; opacity: .9; }

/* Quién lo ha hecho: etiqueta con el color del mod, como en el estudio */
.ov-mod { position: absolute; padding: .3cqw .8cqw; border-radius: .5cqw; font: 700 1.2cqw/1.2 'Inter', sans-serif; color: #111; opacity: 0; transition: opacity .3s; white-space: nowrap; }
.ov-mod.show { opacity: 1; }

/* Actividad al lado del directo */
.aud-feed { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.aud-feed-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 14px; }
.aud-feed-head span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.aud-feed-head span i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.aud-feed ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.aud-feed li { display: grid; grid-template-columns: 9px 1fr auto; gap: 9px; align-items: baseline; font-size: 13px; color: var(--text-2); padding: 9px 10px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); animation: feed-in .45s cubic-bezier(.2, .9, .3, 1.1); }
.aud-feed li i { width: 9px; height: 9px; border-radius: 50%; transform: translateY(1px); }
.aud-feed li b { color: var(--text); font-weight: 600; }
.aud-feed li time { font-size: 11px; color: var(--text-3); }
@keyframes feed-in { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 1000px) {
  .aud { grid-template-columns: minmax(0, 1fr); }
  .aud-feed { max-height: 250px; }
}

/* Seguridad: esquema sencillo de cómo llega algo a tu directo */
.iso { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; align-items: stretch; }
.iso-node { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line-2); }
.iso-node b { display: block; font-size: 15.5px; }
.iso-node small { color: var(--text-3); font-size: 13px; }
.iso-node.brand { border-color: rgba(139, 92, 246, .55); background: linear-gradient(120deg, rgba(139, 92, 246, .18), rgba(139, 92, 246, .05)); }
.iso-ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(139, 92, 246, .14); color: var(--violet-2); }
.iso-ic .i { width: 22px; height: 22px; }
.iso-ic img { object-fit: contain; }
.iso-arrow { position: relative; height: 46px; margin-left: 37px; border-left: 2px dashed rgba(139, 92, 246, .5); }
.iso-arrow::after { content: ''; position: absolute; left: -7px; bottom: -2px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid rgba(139, 92, 246, .8); }
.iso-arrow span { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.iso-foot { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 13.5px; }
.iso-foot .i { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 1px; }
.iso-foot b { color: #ff8fa3; }
