/* ---------- Cruz Azul TV en claro (spec 26) ---------- */
/* Reproductor: el video es el único bloque oscuro de la pantalla. Antes de dar play es una tarjeta como el en vivo del Inicio:
   la foto a sangre (16:10, mínimo 212 px) con velo navy abajo, el badge arriba y el título en blanco con el play abajo.
   Al dar play, el título baja a la franja blanca compacta y el chat aparece debajo */
.tv-page{container-type:inline-size}
.player{position:relative;overflow:hidden;border-radius:var(--r-tile);background:var(--white);color:var(--text);box-shadow:0 8px 20px rgba(4,11,31,.22)}
.player .screen{position:relative;height:max(212px,62.5cqw);color:var(--white);background:var(--abyss) url(../../assets/video/conferencia-en-vivo.jpg) 30% center/cover}
.player .screen::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(4,11,31,.28) 0%,rgba(4,11,31,.1) 30%,rgba(4,11,31,.45) 55%,rgba(4,11,31,.94) 100%)}
.tv-bt{position:absolute;z-index:2;left:16px;right:16px;bottom:16px;display:flex;align-items:flex-end;gap:14px}
.tv-bt h2{flex:1;min-width:0;font-family:var(--tech-wide);font-weight:600;font-size:1.25rem;line-height:1.28;color:var(--white);text-shadow:0 1px 2px rgba(4,11,31,.45);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.player .screen .tv-bt .play{position:static;flex:none;transform:none;width:52px;height:52px;box-shadow:0 4px 12px rgba(4,11,31,.35)}
.player .screen .tv-bt .play svg{width:22px;height:22px;margin-left:3px}
.player .screen.on .tv-bt{display:none}
@container (max-width:300px){ .tv-bt{left:14px;right:14px;bottom:14px} .tv-bt h2{font-size:1.12rem;-webkit-line-clamp:3} }
.player .screen video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:var(--navy-g1)}
.player .screen .lv-tag{position:absolute;left:14px;top:14px;z-index:2}
.player .screen .play{position:absolute;left:50%;top:50%;z-index:2;transform:translate(-50%,-50%);width:68px;height:68px;border-radius:50%;display:grid;place-items:center;background:var(--white);color:var(--navy-g1);box-shadow:0 8px 24px rgba(4,11,31,.4)}
.player .screen .play svg{width:28px;height:28px;margin-left:3px}
.player .screen.on::after{background:linear-gradient(180deg,rgba(0,0,0,.35),transparent 28%,transparent 70%,rgba(0,0,0,.55))}
.player .screen.on .play{display:none}
.player .screen.on .lv-tag{left:58px;top:17px}
/* En vivo: X para salir arriba a la izquierda y controles propios abajo a la derecha (sin línea de tiempo) */
.live-x{position:absolute;left:10px;top:10px;z-index:3;display:none;width:40px;height:40px;border-radius:50%;place-items:center;color:var(--white);background:rgba(4,11,31,.62)}
.live-x svg{width:20px;height:20px}
.player .screen.on .live-x{display:grid}
.live-ctl{position:absolute;right:0;bottom:0;z-index:2;display:none;align-items:center;gap:8px;padding:10px}
.player .screen.on .live-ctl{display:flex}
.lc{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:40px;height:40px;padding:0 8px;border-radius:12px;color:var(--white);background:rgba(4,11,31,.62)}
.lc svg{width:20px;height:20px}
.lc.is-muted{background:var(--navy-g1);font-size:.8rem;font-weight:700;padding:0 12px}
/* Información de la transmisión: solo en vivo, en una franja blanca compacta sobre el chat */
.player .info{display:none}
.player.is-live .info{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:14px 16px}
.player .info h2{font-family:var(--tech-wide);font-weight:600;font-size:1.1rem;line-height:1.25;color:var(--navy)}
.player .info p{font-size:.84rem;line-height:1.45;color:var(--muted)}

/* Chat de la Nación: solo durante la transmisión, en blanco */
.live-chat{display:none;border-top:1px solid var(--gray-lightest)}
.player.is-live .live-chat{display:block}
.lch-hd{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:14px 16px 8px}
.lch-hd b{font-family:var(--tech-wide);font-weight:600;font-size:1.05rem;color:var(--navy)}
.lch-hd small{font-size:.78rem;color:var(--muted)}
.lch-pin{display:flex;gap:10px;align-items:flex-start;margin:0 12px 6px;padding:10px 12px;border-radius:12px;background:var(--bg-card);font-size:.84rem;line-height:1.4;color:var(--text)}
.lch-pin .av{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--navy-g1);color:var(--white)}
.lch-pin .av svg{width:15px;height:15px}
.lch-pin b{display:block;color:var(--navy);font-size:.8rem}
.lch-list{list-style:none;margin:0;height:200px;overflow-y:auto;overscroll-behavior:contain;padding:6px 16px 10px;display:flex;flex-direction:column;gap:12px;scrollbar-width:thin;scrollbar-color:rgba(28,49,112,.25) transparent}
.msg{display:flex;gap:10px;align-items:flex-start;font-size:.88rem;line-height:1.4}
.msg .av{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--bg-card);color:var(--navy);font-size:.66rem;font-weight:700}
.msg p{margin:0;min-width:0;color:var(--text);overflow-wrap:anywhere}
.msg b{margin-right:6px;color:var(--sky-ink)}
.msg.me .av{background:var(--navy-g1);color:var(--white)}
.msg.me b{color:var(--navy)}
.lch-form{display:flex;gap:8px;padding:10px 12px 12px;border-top:1px solid var(--gray-lightest)}
.lch-form input{flex:1;min-width:0;height:44px;padding:0 16px;border:0;border-radius:22px;background:var(--gray-lightest);color:var(--text);font:inherit;font-size:.9rem}
.lch-form input::placeholder{color:var(--muted)}
.lch-form input:focus{outline:2px solid var(--sky-ink);outline-offset:0}
.lch-form button{flex:none;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--navy-g1);color:var(--white)}
.lch-form button svg{width:20px;height:20px}

/* Agenda: filas blancas con bandera; el evento en vivo con la bandera roja y la fecha en rojo */
.tv-agenda-head{align-items:flex-end;flex-wrap:nowrap}
.tv-agenda-head h2{flex:1}
/* Blu saludando entre el título y la primera tarjeta, como en Próximo partido del Inicio (spec 26): va al frente,
   con los pies dentro de la esquina superior derecha de la tarjeta, arriba de la campana, y la cabeza a la altura del título */
.tv-agenda-head{position:relative;container-type:inline-size}
.tv-agenda-head h2{padding-right:76px}
.tv-masc{position:absolute;z-index:2;right:0;bottom:-46px;width:auto;height:112px;pointer-events:none}
@container (max-width:300px){ .tv-masc{height:96px;bottom:-34px} .tv-agenda-head h2{padding-right:64px} }
.sched{display:flex;flex-direction:column;gap:14px}
.ev{display:grid;grid-template-columns:60px minmax(0,1fr) auto;gap:14px;align-items:center;padding:16px;background:var(--white);border-radius:var(--r-tile);box-shadow:var(--shadow-soft)}
.ev .d{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:60px;border-radius:12px;background:var(--bg-card);color:var(--navy)}
.ev .d b{font-family:var(--tech-wide);font-weight:600;font-size:1.4rem;line-height:1}
.ev .d span{font-size:.7rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.ev.live .d{background:var(--red);color:var(--white)}
.ev.live .d span{color:rgba(255,255,255,.88)}
.ev .t{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.ev .t b{font-family:var(--tech-wide);font-weight:600;font-size:1.04rem;line-height:1.3;color:var(--navy)}
.ev .t small{font-size:.82rem;line-height:1.4;color:var(--muted)}
.ev .rem{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--bg-card);color:var(--navy);transition:background .15s}
.ev .rem svg{width:20px;height:20px}
.ev .rem.on{background:var(--navy-g1);color:var(--white)}
/* A 320 px la fecha y la campana se compactan para que el título respire */
.sched{container-type:inline-size}
@container (max-width:300px){ .ev{grid-template-columns:48px minmax(0,1fr) auto;gap:10px;padding:14px 12px} .ev .d{height:52px} .ev .d b{font-size:1.2rem} .ev .rem{width:40px;height:40px} }

/* Bajo demanda: carrusel de tarjetas blancas (hsWrap: flechas y arrastre en PC) */
.vod{display:flex;gap:14px;overflow-x:auto;overflow-y:hidden;margin:0 -16px;padding:2px 16px 10px;scroll-padding:0 16px;scroll-snap-type:x mandatory;scrollbar-width:none}
.vod::-webkit-scrollbar{display:none}
.tv-page .hs{--hs-top:52px}
.vod .v{flex:0 0 72%;max-width:260px;scroll-snap-align:start;display:flex;flex-direction:column;overflow:hidden;border-radius:var(--r-tile);background:var(--white);box-shadow:var(--shadow-soft);text-align:left}
.vod .thumb{position:relative;display:grid;place-items:center;aspect-ratio:16/9;background:var(--grad);color:var(--white)}
.vod .thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.vod .thumb .play-g{position:relative;z-index:1;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--white);color:var(--navy-g1);box-shadow:0 4px 12px rgba(4,11,31,.35)}
.vod .thumb .play-g svg{width:18px;height:18px;margin-left:2px}
.vod .thumb .dur{position:absolute;z-index:1;right:8px;bottom:8px;padding:2px 7px;border-radius:6px;background:rgba(4,11,31,.7);font-size:.72rem;font-weight:600;font-variant-numeric:tabular-nums}
.vod .tx{display:flex;flex-direction:column;gap:6px;padding:14px 16px 18px}
.vod .tx b{font-family:var(--tech-wide);font-weight:600;font-size:1rem;line-height:1.3;color:var(--navy)}
.vod .tx small{font-size:.8rem;line-height:1.4;color:var(--muted)}

/* Beneficios: una sola tarjeta con tres filas separadas por líneas finas; el ícono va sin recuadro, en azul */
.tv-perks{list-style:none;margin:0;padding:2px 18px;background:var(--white);border-radius:var(--r-tile);box-shadow:var(--shadow-soft)}
.tv-perks li{display:flex;align-items:flex-start;gap:14px;padding:16px 0}
.tv-perks li+li{border-top:1px solid var(--gray-lightest)}
.tv-perks li > svg{flex:none;width:24px;height:24px;margin-top:1px;color:var(--sky-ink)}
.tv-perks b{display:block;font-family:var(--tech-wide);font-weight:600;font-size:1rem;line-height:1.3;color:var(--navy)}
.tv-perks small{display:block;margin-top:4px;font-size:.84rem;line-height:1.45;color:var(--muted)}

/* ---------- En vivo que cabe en el alto de la pantalla ----------
   main mide su alto (#app.fit, container-type:size): la página ocupa ese alto y el chat se queda con lo que sobra.
   Solo se desplaza la lista de comentarios; el campo para escribir queda siempre arriba de la tabbar. */
#app.tv-live main{overflow:hidden}
#app.tv-live .tv-page > .section{display:none}
#app.tv-live .tv-page{height:100cqh;display:flex;flex-direction:column}
#app.tv-live .player{flex:1;min-height:0;display:flex;flex-direction:column}
#app.tv-live .player .screen{flex:none;height:min(calc(100cqw * .5625), 34cqh)}
#app.tv-live .player .info{flex:none;padding:10px 14px}
#app.tv-live .player .info h2{font-size:1.08rem;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
#app.tv-live .player .info p{font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
#app.tv-live .live-chat{flex:1;min-height:0;display:flex;flex-direction:column}
#app.tv-live .lch-hd{padding:10px 14px 6px}
#app.tv-live .lch-pin{margin:0 10px 4px;padding:8px 10px;font-size:.8rem}
#app.tv-live .lch-pin > span:last-child{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#app.tv-live .lch-list{flex:1;min-height:0;height:auto}
#app.tv-live .lch-form{flex:none;padding:8px 10px 10px}
/* Pantallas muy bajas: el mensaje fijado se oculta para dejarle espacio a los comentarios */
@container (max-height:520px){ #app.tv-live .lch-pin{display:none} #app.tv-live .lch-hd{padding-top:8px} }
