/* Sonido Dance · chat en directo */

.chat-hero{padding:54px 0 30px;background:
  radial-gradient(800px 320px at 12% 0%,rgba(198,255,46,.16),transparent 65%),
  radial-gradient(700px 360px at 92% 10%,rgba(255,59,212,.12),transparent 60%),
  linear-gradient(160deg,#08090d,#101320 70%,#0b0d14)}
.chat-hero .kicker{color:var(--lime)}
.chat-hero h1{font-size:clamp(2rem,5vw,3.4rem);line-height:1.02;margin:10px 0 12px}
.chat-hero h1 em{font-style:normal;color:var(--lime)}
.chat-hero p{max-width:640px;color:var(--muted);font-size:1.02rem}
.chat-hero-stats{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.chat-hero-stats span{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border:1px solid var(--line2);border-radius:999px;background:rgba(255,255,255,.04);font-size:13px;color:var(--muted)}
.chat-hero-stats b{color:#fff}
.chat-hero-you{color:var(--lime)!important}

.chat-lobby{padding-top:34px}
.chat-lobby-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.chat-lobby-head h2{font-size:clamp(1.5rem,3vw,2.1rem)}
.chat-lobby-head h2 em{font-style:normal;color:var(--lime)}

.chat-create{margin-bottom:22px;padding:18px}
.chat-create-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:12px}
.chat-create-grid .full{grid-column:1/-1}
.chat-create-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:6px}
.chat-create-foot small{color:var(--muted);font-size:12px}

.chat-room-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.chat-room-card{display:flex;flex-direction:column;gap:8px;padding:16px;border:1px solid var(--line);border-radius:18px;background:var(--panel);transition:.18s;color:var(--text)}
.chat-room-card:hover{border-color:var(--line2);transform:translateY(-2px);box-shadow:0 16px 38px rgba(0,0,0,.28)}
.chat-room-card.live{border-color:rgba(198,255,46,.32)}
.chat-room-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.chat-room-top b{font-size:15px}
.chat-room-online{margin-left:auto;font-size:11px;font-weight:700;color:var(--muted);white-space:nowrap}
.chat-room-dot{width:8px;height:8px;border-radius:50%;background:#4b4f5c;flex:0 0 auto}
.chat-room-dot.on,.chat-room-card.live .chat-room-dot{background:var(--lime);box-shadow:0 0 0 4px rgba(198,255,46,.12)}
.chat-room-card p{font-size:12.5px;color:var(--muted);margin:0;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.chat-room-meta{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#7c8190;margin-top:auto}

.chat-page{padding:18px 0 40px;background:#06070b}
.chat-shell{display:grid;grid-template-columns:290px minmax(0,1fr);gap:16px;max-width:1220px;margin:0 auto;padding:0 20px}
.chat-side{display:flex;flex-direction:column;gap:14px;min-width:0}
.chat-back{font-size:12px;font-weight:700;color:var(--muted);letter-spacing:.02em}
.chat-back:hover{color:var(--lime)}
.chat-room-head{border:1px solid var(--line);border-radius:18px;background:var(--panel);padding:16px}
.chat-room-head h1{font-size:20px;line-height:1.1;margin:6px 0 4px}
.chat-room-prov{display:inline-block;font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--lime);background:rgba(198,255,46,.08);border:1px solid rgba(198,255,46,.25);padding:3px 8px;border-radius:999px}
.chat-room-head p{font-size:12.5px;color:var(--muted);margin:10px 0 0;line-height:1.5}
.chat-room-head small{display:block;margin-top:8px;font-size:11px;color:#767b89}

.chat-online-head{display:flex;align-items:center;justify-content:space-between;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);padding:0 2px}
.chat-online-head b{font-size:11px}
.chat-online{display:flex;flex-direction:column;gap:2px;overflow-y:auto;max-height:320px;border:1px solid var(--line);border-radius:16px;background:var(--panel);padding:8px}
.chat-user{display:flex;align-items:center;gap:9px;padding:7px 8px;border-radius:12px;position:relative}
.chat-user:hover{background:rgba(255,255,255,.04)}
.chat-user-copy{display:flex;flex-direction:column;min-width:0}
.chat-user-copy b{font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-user-copy span{line-height:1.5}
.chat-user-mod{margin-left:auto;background:transparent;border:1px solid var(--line2);color:var(--muted);width:26px;height:26px;border-radius:8px;cursor:pointer;font-weight:800}
.chat-user-mod:hover{color:var(--lime);border-color:var(--lime)}
.chat-rules{border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.02);padding:13px}
.chat-rules b{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.chat-rules p{font-size:12px;color:#8b90a0;margin:6px 0 0;line-height:1.5}

.chat-main{display:flex;flex-direction:column;min-width:0;height:calc(100vh - 205px);min-height:540px;border:1px solid var(--line);border-radius:20px;background:var(--panel);overflow:hidden}
.chat-head{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.02)}
.chat-head-copy{display:flex;flex-direction:column;min-width:0}
.chat-head-copy b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-status{font-size:11px;color:var(--muted)}
.chat-status.on{color:var(--lime)}
.chat-status.off{color:#ff6b6b}
.chat-head-online{margin-left:auto;font-size:11.5px;color:var(--muted);display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.chat-head-online i{width:7px;height:7px;border-radius:50%;background:var(--lime);display:inline-block}
.chat-side-toggle{display:none;background:transparent;border:1px solid var(--line2);color:var(--text);width:34px;height:34px;border-radius:10px;font-size:15px;cursor:pointer}

.chat-stream{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth}
.chat-msg{display:flex;gap:10px;align-items:flex-start;max-width:100%}
.chat-msg.own{flex-direction:row}
.chat-msg-avatar{flex:0 0 40px}
.chat-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;display:block}
.chat-avatar-initial{display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:15px;color:#08090d;background:var(--c,#c6ff2e)}
.chat-msg-avatar .chat-avatar{width:40px;height:40px}
.chat-user .chat-avatar{width:30px;height:30px}
.chat-msg-body{background:rgba(255,255,255,.045);border:1px solid var(--line);border-radius:4px 14px 14px 14px;padding:9px 12px;min-width:0;max-width:min(640px,88%)}
.chat-msg.own .chat-msg-body{background:rgba(198,255,46,.07);border-color:rgba(198,255,46,.22)}
.chat-msg-head{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:3px}
.chat-name{font-size:12.5px}
.chat-msg-head time{font-size:10.5px;color:#737887;margin-left:2px}
.chat-del{margin-left:auto;background:transparent;border:0;color:#6c7180;font-size:16px;line-height:1;cursor:pointer;padding:0 2px}
.chat-del:hover{color:#ff6b6b}
.chat-msg-text{font-size:13.5px;line-height:1.55;color:#e6e9f0;word-wrap:break-word;overflow-wrap:anywhere}
.chat-msg-text br{line-height:1.55}
.chat-msg-image{display:block;margin-top:7px}
.chat-msg-image img{max-width:260px;max-height:260px;border-radius:10px;border:1px solid var(--line2);display:block;object-fit:cover}
.chat-msg.deleted .chat-msg-text{color:#6c7180;font-style:italic}
.chat-msg.deleted .chat-avatar{opacity:.4}
.chat-system{align-self:center;font-size:11.5px;color:#8b90a0;background:rgba(255,255,255,.04);border:1px solid var(--line);border-radius:999px;padding:4px 12px;text-align:center}
.chat-empty{margin:auto;color:#6c7180;font-size:13px}
.chat-new-btn{position:absolute;left:50%;transform:translateX(-50%);bottom:86px;background:var(--lime);color:#08090d;border:0;border-radius:999px;padding:8px 16px;font-weight:800;font-size:12px;cursor:pointer;box-shadow:0 10px 24px rgba(0,0,0,.35);z-index:5}
.chat-main{position:relative}

.chat-badge{display:inline-block;font-size:9px;font-weight:800;letter-spacing:.06em;padding:2px 5px;border-radius:5px;vertical-align:middle}
.b-admin{background:#ffd76a;color:#241a00}
.b-mod{background:var(--lime);color:#0a0c05}
.b-type{background:#37e6ff;color:#04151a}
.b-verified{background:#4dffa6;color:#04220f}
.lvl-1{background:rgba(255,255,255,.09);color:#b7bcc9}
.lvl-2{background:rgba(55,230,255,.15);color:#8defff}
.lvl-3{background:rgba(139,92,255,.2);color:#c9b8ff}
.lvl-4{background:rgba(255,59,212,.18);color:#ffa8ea}

.chat-typing{min-height:18px;padding:0 16px 4px;font-size:11.5px;color:#8b90a0}
.chat-composer{display:flex;align-items:flex-end;gap:8px;padding:12px 14px;border-top:1px solid var(--line);background:rgba(255,255,255,.02)}
.chat-composer textarea{flex:1;resize:none;min-height:42px;max-height:140px;background:rgba(255,255,255,.05);border:1px solid var(--line2);border-radius:14px;color:var(--text);padding:11px 13px;font:inherit;font-size:13.5px;line-height:1.4}
.chat-composer textarea:focus{outline:none;border-color:rgba(198,255,46,.5)}
.chat-composer textarea:disabled{opacity:.55}
.chat-icon-btn{width:42px;height:42px;border-radius:12px;border:1px solid var(--line2);background:rgba(255,255,255,.04);color:var(--text);font-size:17px;cursor:pointer;flex:0 0 auto}
.chat-icon-btn:hover{border-color:var(--lime)}
.chat-send{height:42px;padding:0 18px;border-radius:12px;border:0;background:var(--lime);color:#08090d;font-weight:800;font-size:13px;cursor:pointer}
.chat-send:disabled{opacity:.5;cursor:not-allowed}
.chat-muted-note{padding:0 16px 12px;font-size:11.5px;color:#ffb3b3}

.chat-login-cta{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:14px 16px;border-top:1px solid var(--line);background:rgba(198,255,46,.04)}
.chat-login-cta b{display:block;font-size:13.5px}
.chat-login-cta span{font-size:12px;color:var(--muted)}
.chat-login-cta>div:last-child{display:flex;gap:8px;flex-wrap:wrap}

.chat-banned{margin:auto;text-align:center;padding:40px 24px;max-width:440px}
.chat-banned b{font-size:18px}
.chat-banned p{color:var(--muted);font-size:13.5px;margin:10px 0 18px;line-height:1.55}

.chat-mod-menu{position:absolute;z-index:60;width:190px;background:#151826;border:1px solid var(--line2);border-radius:12px;padding:6px;box-shadow:0 18px 40px rgba(0,0,0,.5)}
.chat-mod-menu button{display:block;width:100%;text-align:left;background:transparent;border:0;color:var(--text);font:inherit;font-size:12.5px;padding:8px 10px;border-radius:8px;cursor:pointer}
.chat-mod-menu button:hover{background:rgba(255,255,255,.06);color:var(--lime)}

@media (max-width:900px){
  .chat-shell{grid-template-columns:1fr;padding:0 14px}
  .chat-side{display:none}
  .chat-page.side-open .chat-side{display:flex}
  .chat-side-toggle{display:block}
  .chat-main{height:calc(100dvh - 150px);min-height:480px}
  .chat-create-grid{grid-template-columns:1fr}
}
@media (max-width:560px){
  .chat-hero{padding:36px 0 22px}
  .chat-hero-stats span{font-size:12px}
  .chat-room-grid{grid-template-columns:1fr}
  .chat-msg-body{max-width:86%}
  .chat-msg-image img{max-width:210px;max-height:210px}
  .chat-head-online{display:none}
  .chat-page{padding-top:10px}
}
