/* TV-UO — reproductor del canal. Prefijo tv- (fl- es de Fake Live, wf- de webinarfake). */
.tv-wrap{--tv-rojo:#e01e37;--tv-tx:#1d1d1f;--tv-gris:#6e6e73;max-width:1100px;margin:0 auto;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--tv-tx)}
.tv-player{position:relative;aspect-ratio:16/9;background:#000;border-radius:14px;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.18);-webkit-tap-highlight-color:transparent}
@supports not (aspect-ratio:16/9){.tv-player{height:0;padding-top:56.25%}}
.tv-v{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000;opacity:0;pointer-events:none}
.tv-v.tv-on{opacity:1}
.tv-tapa .tv-v.tv-on{opacity:0}   /* 1.1.5: tapa de sincronía (ver tvuo.js) */
.tv-tapa .tv-load{background:#000}

/* EN VIVO + contador */
.tv-badge{position:absolute;top:14px;left:14px;z-index:3;display:flex;align-items:center;gap:8px;background:rgba(0,0,0,.55);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:#fff;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:6px 11px;border-radius:999px;line-height:1}
.tv-badge i{width:8px;height:8px;border-radius:50%;background:var(--tv-rojo);box-shadow:0 0 0 0 rgba(224,30,55,.7);animation:tv-pulso 1.6s infinite}
.tv-badge span{background:var(--tv-rojo);padding:3px 7px;border-radius:4px;margin:-3px 0}
.tv-cont{font-weight:600;letter-spacing:0;text-transform:none;opacity:.9}
.tv-cont:not(:empty)::before{content:"\25CF\00a0";font-size:7px;vertical-align:2px;opacity:.6}
@keyframes tv-pulso{70%{box-shadow:0 0 0 7px rgba(224,30,55,0)}100%{box-shadow:0 0 0 0 rgba(224,30,55,0)}}

/* cargando */
.tv-load{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.35);transition:opacity .35s}
.tv-spin{width:44px;height:44px;border-radius:50%;border:3px solid rgba(255,255,255,.25);border-top-color:#fff;animation:tv-gira .8s linear infinite}
@keyframes tv-gira{to{transform:rotate(360deg)}}

/* el único toque */
.tv-gate{position:absolute;inset:0;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;width:100%;border:0;margin:0;padding:0;cursor:pointer;background:linear-gradient(180deg,rgba(0,0,0,.15),rgba(0,0,0,.55));color:#fff;font:inherit}
.tv-gate[hidden]{display:none}
.tv-gate-ic{display:flex;align-items:center;justify-content:center;width:84px;height:84px;border-radius:50%;background:var(--tv-rojo);font-size:30px;padding-left:6px;box-sizing:border-box;box-shadow:0 8px 24px rgba(224,30,55,.45);transition:transform .2s}
.tv-gate:hover .tv-gate-ic{transform:scale(1.06)}
.tv-gate-tx{font-size:17px;font-weight:600;text-shadow:0 1px 6px rgba(0,0,0,.5)}

/* controles: solo sonido y pantalla completa */
.tv-ctrl{position:absolute;right:12px;bottom:12px;z-index:3;display:flex;gap:8px;opacity:0;transition:opacity .25s}
.tv-ctrl[hidden]{display:none}
.tv-player:hover .tv-ctrl,.tv-ctrl.tv-show{opacity:1}
.tv-ctrl button{width:42px;height:42px;border-radius:50%;border:0;background:rgba(0,0,0,.6);color:#fff;font-size:18px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}

/* fuera del aire / error */
.tv-off{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;background:#111;color:#fff;font-size:18px;font-weight:600}
.tv-off[hidden]{display:none}
.tv-err{text-align:center;color:#fff;padding:20px}
.tv-err-t{font-size:18px;font-weight:700;margin:0 0 4px}
.tv-err-s{font-size:14px;opacity:.8;margin:0 0 14px}
.tv-err-b{background:#fff;color:#111;border:0;border-radius:999px;padding:10px 22px;font-weight:700;cursor:pointer}

/* guía: ahora / después */
.tv-guia{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.tv-guia[hidden]{display:none}
.tv-g{flex:1 1 260px;display:flex;align-items:baseline;gap:10px;background:#f5f5f7;border-radius:12px;padding:12px 16px;min-width:0}
.tv-g[hidden]{display:none}
.tv-g b{flex:none;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--tv-gris)}
.tv-ahora b{color:var(--tv-rojo)}
.tv-g span{font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tv-luego .tv-hora{flex:none;font-style:normal;font-size:15px;font-weight:600;color:var(--tv-gris);font-variant-numeric:tabular-nums}
.tv-luego .tv-hora:empty{display:none}

/* botón temporizado */
.tv-res-box{margin-top:14px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid #e5e5ea;border-radius:12px;padding:14px 16px;opacity:0;transform:translateY(6px);transition:opacity .35s,transform .35s}
.tv-res-box.tv-res-in{opacity:1;transform:none}
.tv-res-box p{margin:0;font-size:16px;font-weight:600;flex:1 1 240px}
.tv-res-btn{flex:none;display:inline-block;background:var(--tv-rojo);color:#fff!important;text-decoration:none!important;font-weight:700;font-size:15px;padding:12px 22px;border-radius:999px}

/* pantalla completa imitada (iPhone) */
.tv-player.tv-pseudo-fs{position:fixed;inset:0;z-index:999999;border-radius:0;aspect-ratio:auto;width:100vw;height:100vh;height:100dvh;padding:0}
html.tv-fs-lock,html.tv-fs-lock body{overflow:hidden}
.tv-player:fullscreen{border-radius:0}

.tv-debug{position:relative;margin:10px 0 0;padding:10px 12px;background:#111;color:#7CFC9A;font:12px/1.45 Menlo,Consolas,monospace;border-radius:8px;white-space:pre-wrap;overflow:auto}

@media (max-width:600px){
	.tv-player{border-radius:10px}
	.tv-badge{top:8px;left:8px;font-size:10px;padding:4px 8px;gap:6px}
	/* 1.0.3 — en el móvil el botón del sonido no tapa el video: más pequeño y el texto más corto */
	.tv-gate{gap:8px}
	.tv-gate-ic{width:54px;height:54px;font-size:20px;padding-left:4px}
	.tv-gate-tx{font-size:14px}
	.tv-ctrl{opacity:1;right:8px;bottom:8px;gap:6px}
	.tv-ctrl button{width:34px;height:34px;font-size:15px;background:rgba(0,0,0,.45)}
	/* 1.0.3 — «Después» no se corta: el título baja a una segunda línea */
	.tv-guia{gap:8px;margin-top:10px}
	.tv-g{flex-basis:100%;padding:10px 12px;align-items:flex-start}
	.tv-g b{padding-top:2px}
	.tv-g span{font-size:14px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.3}
	.tv-res-btn{width:100%;text-align:center}
	/* 1.0.3 — a todo lo ancho (anchoMovil en tvuo.js): el video pegado a los bordes, el resto con aire */
	.tv-borde .tv-player{border-radius:0;box-shadow:none}
	.tv-borde .tv-guia,.tv-borde .tv-res,.tv-borde .tv-debug{margin-left:12px;margin-right:12px}
	.tv-borde .tv-player.tv-pseudo-fs{margin:0}
}

/* 1.1.0 — INSERTADO EN OTRA WEB (?tvuo_embed=N, p. ej. el club de Hotmart). Hotmart obliga a una
   caja 16:9 exacta: el video la llena entera y la guía «Ahora / Después» va ENCIMA, abajo, sobre
   un degradado (como los rótulos de la tele). El botón temporizado, justo encima de la guía.
   Los controles suben arriba a la derecha para no pisar la guía. */
html.tv-embed-html,html.tv-embed-html body{margin:0;padding:0;height:100%;background:#000;overflow:hidden}
.tv-wrap.tv-embed{max-width:none;height:100%;margin:0}
.tv-embed .tv-player{aspect-ratio:auto;height:100%;padding:0;border-radius:0;box-shadow:none}
.tv-embed .tv-off{position:absolute}
/* 1.1.1 — la guía insertada, como un rótulo de tele premium: degradado largo y suave, «Ahora»
   grande a la izquierda (el punto rojo es el único color), «Después» discreto a la derecha con la
   hora en cifras alineadas, (1.1.4: sin línea de progreso: daba sensación de pregrabado). */
.tv-embed .tv-guia{position:absolute;left:0;right:0;bottom:0;z-index:3;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end;column-gap:32px;row-gap:0;margin:0;padding:80px 24px 18px;background:linear-gradient(0deg,rgba(0,0,0,.8) 0%,rgba(0,0,0,.55) 35%,rgba(0,0,0,.2) 70%,rgba(0,0,0,0) 100%);pointer-events:none;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Inter","Segoe UI",Roboto,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased}
.tv-embed .tv-guia[hidden]{display:none}
.tv-embed .tv-g{display:flex;flex-direction:column;align-items:flex-start;gap:6px;background:none;border-radius:0;padding:0;min-width:0;color:#fff}
.tv-embed .tv-g[hidden]{display:none}
.tv-embed .tv-g b{display:flex;align-items:center;gap:8px;padding:0;font-size:10px;font-weight:600;letter-spacing:.2em;color:rgba(255,255,255,.6)}
.tv-embed .tv-ahora b{color:rgba(255,255,255,.85)}
.tv-embed .tv-ahora b::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:#ff3b52;box-shadow:0 0 0 3px rgba(255,59,82,.22)}
.tv-embed .tv-g b,.tv-embed .tv-luego .tv-hora,.tv-embed .tv-luego span{text-shadow:0 1px 3px rgba(0,0,0,.55),0 0 14px rgba(0,0,0,.45)}
.tv-embed .tv-g span{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:unset}
.tv-embed .tv-ahora span{font-size:clamp(15px,2.4vw,24px);font-weight:600;letter-spacing:-.015em;line-height:1.2;text-shadow:0 1px 14px rgba(0,0,0,.35)}
.tv-embed .tv-luego{flex-direction:row;flex-wrap:wrap;justify-content:flex-end;align-items:center;column-gap:10px;row-gap:6px;min-width:0;text-align:right}
.tv-embed .tv-luego .tv-hora{font-size:10px;font-weight:600;letter-spacing:.06em;color:rgba(255,255,255,.6)}
.tv-embed .tv-luego span{flex-basis:100%;font-size:clamp(15px,2.4vw,24px);font-weight:500;letter-spacing:-.015em;line-height:1.2;color:rgba(255,255,255,.78)}   /* 1.1.3: mismo tamaño que «Ahora» (pedido del usuario); lo distingue el tono */
.tv-embed .tv-res{position:absolute;left:24px;right:24px;bottom:84px;z-index:3}
.tv-embed.tv-sin-guia .tv-res{bottom:12px}
.tv-embed .tv-res-box{margin:0;padding:10px 12px;background:rgba(255,255,255,.96);border:0;box-shadow:0 6px 20px rgba(0,0,0,.3)}
.tv-embed .tv-res-box p{font-size:14px}
.tv-embed .tv-res-btn{padding:9px 16px;font-size:14px;width:auto}
.tv-embed .tv-ctrl{top:12px;bottom:auto}
.tv-ctrl button[hidden]{display:none}
.tv-embed .tv-debug{position:absolute;top:44px;left:8px;right:8px;z-index:6;margin:0;font-size:10px;opacity:.85;max-height:60%;pointer-events:none}
@media (max-width:600px){
	.tv-embed .tv-guia{padding:30px 12px 9px;column-gap:14px}
	.tv-embed .tv-g{gap:3px}
	.tv-embed .tv-g b{font-size:8px;letter-spacing:.16em;gap:6px}
	.tv-embed .tv-ahora b::before{width:5px;height:5px;box-shadow:0 0 0 2px rgba(255,59,82,.22)}
	.tv-embed .tv-ahora span{font-size:14px}
	.tv-embed .tv-luego{row-gap:3px;column-gap:6px}
	.tv-embed .tv-luego .tv-hora{font-size:8px}
	.tv-embed .tv-luego span{font-size:14px}
	.tv-embed .tv-res{left:8px;right:8px;bottom:50px}
	.tv-embed.tv-sin-guia .tv-res{bottom:8px}
	.tv-embed .tv-res-box{padding:7px 9px;gap:8px}
	.tv-embed .tv-res-box p{font-size:12px;flex-basis:120px}
	.tv-embed .tv-res-btn{width:auto;padding:7px 12px;font-size:12px}
	.tv-embed .tv-ctrl{top:8px}
}
