/* K-NGRE TV 3.4 — Chat editorial oscuro. Componente independiente del video. */
.live-chat{position:relative;z-index:1;min-width:0;margin:16px 0 0;overflow:hidden;border:1px solid rgba(255,255,255,.115);border-radius:13px;background:#0e141f;box-shadow:0 12px 34px rgba(0,0,0,.18)}
.chat-topline{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:21px 23px 17px;border-bottom:1px solid rgba(255,255,255,.08);background:linear-gradient(110deg,#151a25 0%,#101520 75%)}
.chat-heading-copy{min-width:0}.chat-kicker{display:flex;align-items:center;gap:9px;color:#c2cbd9;letter-spacing:.115em;font-size:9px;font-weight:700}.chat-kicker .live-dot{width:6px;height:6px;box-shadow:0 0 12px rgba(243,42,71,.4)}
.chat-heading-copy h2{margin:10px 0 0;color:#f8f9fc;font:800 clamp(18px,1.65vw,24px)/1.1 'Montserrat',Arial,sans-serif;letter-spacing:-.057em}.chat-heading-copy h2 span{color:#fc4361}
.chat-flag{border:1px solid rgba(255,255,255,.17);border-radius:5px;padding:8px 10px;color:#adb6c7;font-size:8px;font-weight:800;letter-spacing:.12em;white-space:nowrap}
.chat-status{min-height:35px;padding:10px 20px;color:#9daec5;background:#0b111a;border-bottom:1px solid rgba(255,255,255,.06);font-size:10px;font-weight:600;line-height:1.5}
.chat-status[data-state="connected"]::before{content:'●';color:#38d7a0;margin-right:8px}.chat-status[data-state="error"]{color:#ffafbc}.chat-status[data-state="paused"]{color:#ffd08d}
.chat-feed{height:240px;overflow:auto;overscroll-behavior:contain;padding:15px 20px;background:radial-gradient(circle at 100% 0%,rgba(43,56,91,.11),transparent 60%),#0b1018;scrollbar-color:#354052 transparent;scrollbar-width:thin}
.chat-feed:focus-visible{outline:2px solid #f32a47;outline-offset:-2px}.chat-empty{display:flex;min-height:205px;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center}.chat-empty-symbol{font-size:26px;color:#f32a47}.chat-empty strong{color:#ccd3df;font-size:10px;font-weight:800;letter-spacing:.07em}.chat-empty small{color:#858fa1;font-size:10px}
.chat-message{display:grid;grid-template-columns:36px minmax(0,1fr);gap:11px;margin-bottom:15px;max-width:100%;animation:chat-appear .15s ease-out}.chat-message:last-child{margin-bottom:0}.chat-avatar{display:grid;place-items:center;width:34px;height:34px;border:1px solid #55647f55;border-radius:9px;color:#d9e7ff;background:#1b2536;font-size:12px;font-weight:800}.chat-message[data-own="true"] .chat-avatar{color:#ffced6;background:#4d1d30}
.chat-bubble{min-width:0}.chat-meta{display:flex;align-items:baseline;gap:9px;margin-bottom:4px}.chat-author{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:67%;color:#edf1f8;font:800 10px 'Montserrat',Arial,sans-serif}.chat-message[data-own="true"] .chat-author{color:#ff8295}.chat-time{font-size:9px;color:#7f8a9a;font-variant-numeric:tabular-nums}.chat-body{overflow-wrap:anywhere;color:#d8dce6;font:500 11px/1.6 'Montserrat',Arial,sans-serif;white-space:pre-wrap}
.chat-form{display:flex;flex-direction:column;gap:7px;padding:16px 20px 12px;border-top:1px solid rgba(255,255,255,.1);background:#121a26}.chat-field-label{color:#bbc6d7;font-size:9px;font-weight:800;letter-spacing:.09em}.chat-field-label span{font-weight:500;text-transform:none;color:#6f7d92;letter-spacing:0}.chat-form input{width:100%;height:40px;min-width:0;border:1px solid #ffffff26;border-radius:7px;outline:none;background:#090f18;color:#f8faff;font:500 12px 'Montserrat',Arial,sans-serif;padding:0 12px}.chat-form input::placeholder{color:#6f7d91}.chat-form input:focus{border-color:#fc5271;box-shadow:0 0 0 2px #f32a471c}.chat-message-label{margin-top:8px}.chat-compose{display:flex;gap:8px;min-width:0}.chat-compose input{flex:1}.chat-compose button{display:inline-flex;align-items:center;justify-content:center;gap:9px;flex:none;padding:0 14px;border:0;border-radius:7px;color:white;background:#e82146;font:800 10px 'Montserrat',Arial,sans-serif;letter-spacing:.05em}.chat-compose button:hover:not(:disabled){background:#f94361}.chat-compose button:disabled{cursor:not-allowed;opacity:.5}.chat-compose button .ic{width:15px;height:15px}
.chat-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:11px 20px;color:#78899d;background:#0d131e;border-top:1px solid rgba(255,255,255,.055);font-size:9px;font-weight:600}.chat-footer>span:first-child{letter-spacing:.05em}.chat-footer>span:last-child{color:#a0aabc;text-align:right}
@keyframes chat-appear{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:650px){.live-chat{margin:15px 0 0;border-radius:10px}.chat-topline{padding:18px 13px 15px}.chat-flag{font-size:7px;padding:6px}.chat-heading-copy h2{font-size:20px}.chat-kicker{font-size:8px}.chat-status{padding:10px 13px}.chat-feed{padding:13px;height:220px}.chat-form{padding:14px 13px 12px}.chat-compose button{padding:0 12px}.chat-footer{padding:10px 13px;font-size:8px}}
@media(prefers-reduced-motion:reduce){.chat-message{animation:none}}
/* Pantalla de administración separada (no visible en la web pública). */
.chat-admin-page{min-height:100vh;background:#090e16;padding:35px 18px 85px;color:#f8faff}.chat-admin-shell{max-width:1030px;margin:auto}.chat-admin-header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:24px}.chat-admin-header img{height:60px;width:auto}.chat-admin-subtitle{font-size:10px;letter-spacing:.15em;font-weight:800;color:#a8b2c5}.chat-admin-title{margin:0 0 8px;font-size:clamp(25px,4vw,42px);letter-spacing:-.055em}.chat-admin-card{background:#111925;border:1px solid #ffffff22;border-radius:12px;padding:20px;margin:16px 0}.chat-admin-card h2{margin:0 0 12px;font-size:18px}.chat-admin-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.chat-admin-controls button,.chat-admin-controls input{min-height:43px;padding:10px 12px;background:#0a101a;color:white;border:1px solid #ffffff39;border-radius:7px;font-size:12px}.chat-admin-controls button{font-weight:800;background:#b91c3a}.chat-admin-controls button:disabled{opacity:.5}.chat-admin-controls input{flex:1;min-width:190px}.chat-admin-feedback{padding:12px 0;font-size:12px;color:#b8c9de}.chat-admin-list{display:flex;flex-direction:column;gap:12px;max-height:570px;overflow:auto}.chat-admin-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:13px;border-radius:8px;background:#0a111b;border:1px solid #ffffff16}.chat-admin-row>div{min-width:0}.chat-admin-row strong{color:#fff}.chat-admin-row p{font-size:12px;line-height:1.65;overflow-wrap:anywhere;white-space:pre-wrap}.chat-admin-row small{color:#8ea2bd;font-size:10px}.chat-admin-actions{display:flex;flex-wrap:wrap;gap:8px}.chat-admin-actions button{font:700 10px 'Montserrat',Arial,sans-serif;padding:9px 10px;border-radius:6px;border:1px solid #ffffff40;background:#252d3d;white-space:nowrap}.chat-admin-actions .danger{background:#a82540;border-color:#c43553}.chat-admin-row[data-hidden="true"]{opacity:.58}.chat-admin-row[data-hidden="true"] p{text-decoration:line-through}
