/* Rajongói chat – fullscreen dark shell */
html,body.chat-fullscreen{height:100%;margin:0}
body.chat-fullscreen{
  --chat-bg:#0c0e16;
  --chat-panel:#12141e;
  --chat-panel-2:#161924;
  --chat-line:#252836;
  --chat-text:#f2f1f6;
  --chat-muted:#9a98ab;
  --chat-purple:#8b5cf6;
  --chat-purple-2:#a855f7;
  --chat-glow:rgba(139,92,246,.45);
  --chat-online:#22c55e;
  --chat-input:#1a1d2a;
  --chat-bubble:#1e2230;
  background:var(--chat-bg);
  color:var(--chat-text);
  overflow:hidden;
}
main.chat-main{
  display:flex;
  flex-direction:column;
  height:100%;
  max-width:none;
  margin:0;
  padding:0;
  box-sizing:border-box;
}
.chat-back-icon{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border-radius:10px;
  color:var(--chat-text);
  font-size:1.25rem;
  line-height:1;
  text-decoration:none;
  flex:none;
  transition:background .15s,color .15s;
}
.chat-back-icon:hover{
  background:rgba(255,255,255,.06);
  color:var(--chat-purple-2);
}
.chat-shell{
  display:grid;
  grid-template-columns:
    minmax(200px, 15fr)
    minmax(270px, 15fr)
    minmax(560px, 40fr)
    minmax(280px, 20fr)
    minmax(320px, 10fr);
  grid-template-rows:306px minmax(0,1fr);
  grid-template-areas:
    "rooms ad player side ads"
    "rooms chat chat side ads";
  gap:0;
  flex:1;
  min-height:0;
  height:100%;
  width:100%;
  background:var(--chat-bg);
  border:none;
  border-radius:0;
  overflow:hidden;
}
.chat-col{display:flex;flex-direction:column;min-height:0;background:var(--chat-panel)}
.chat-col-rooms{
  grid-area:rooms;
  border-right:1px solid var(--chat-line);
}
.chat-col-side{
  grid-area:side;
  border-left:1px solid var(--chat-line);
  border-right:1px solid var(--chat-line);
  background:var(--chat-panel-2);
  min-width:0;
}
.chat-col-ads{
  grid-area:ads;
  background:var(--chat-panel-2);
  padding:10px;
  box-sizing:border-box;
  align-items:center;
  gap:12px;
  overflow:auto;
  min-height:0;
}
.chat-col-ads .chat-ad-desktop{
  margin:0;
  padding:8px;
  width:300px;
  max-width:100%;
}
.chat-col-ads .chat-ad-top{margin-top:0}
.chat-col-ads .chat-ad-mid{margin-top:0}
.chat-col-ads .chat-ad-banner{margin-top:auto;margin-bottom:0}
.chat-col-chat{
  grid-area:chat;
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:0;
  background:linear-gradient(180deg,#10131c 0%,#0d1018 100%);
  border-top:1px solid var(--chat-line);
}
.chat-side-head{display:flex;align-items:center;gap:10px;padding:14px 12px;border-bottom:1px solid var(--chat-line);flex:none}
.chat-side-head h2{margin:0;font-size:.95rem;font-weight:700;flex:1}
.chat-room-list{list-style:none;margin:0;padding:10px;display:flex;flex-direction:column;gap:8px;overflow:auto;flex:1}
.chat-room{display:flex;align-items:flex-start;gap:10px;width:100%;text-align:left;padding:10px 10px;border-radius:12px;border:1px solid transparent;background:transparent;color:var(--chat-text);cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s}
.chat-room:hover{background:rgba(255,255,255,.03)}
.chat-room.is-active{border-color:var(--chat-purple);background:rgba(139,92,246,.12);box-shadow:0 0 18px var(--chat-glow)}
.chat-room-icon{width:36px;height:36px;border-radius:10px;background:rgba(139,92,246,.15);display:grid;place-items:center;flex:none;font-size:1.05rem}
.chat-room-body{flex:1;min-width:0}
.chat-room-body strong{display:block;font-size:.86rem;line-height:1.25}
.chat-room-body span{display:block;font-size:.72rem;color:var(--chat-muted);margin-top:2px}
.chat-room-count{display:flex;align-items:center;gap:5px;font-size:.75rem;color:var(--chat-muted);flex:none;padding-top:4px}
.chat-room-skel{display:flex;align-items:flex-start;gap:10px;width:100%;padding:10px;border-radius:12px;border:1px solid transparent;background:rgba(255,255,255,.02)}
.chat-room-skel-icon,.chat-room-skel-body span,.chat-room-skel-count{background:linear-gradient(90deg,rgba(255,255,255,.05) 25%,rgba(139,92,246,.28) 37%,rgba(255,255,255,.05) 63%);background-size:400% 100%;animation:chat-skel 1.15s ease infinite}
.chat-room-skel-icon{width:36px;height:36px;border-radius:10px;flex:none}
.chat-room-skel-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px;padding-top:4px}
.chat-room-skel-body span{display:block;height:11px;border-radius:6px}
.chat-room-skel-body span:first-child{width:68%}
.chat-room-skel-body span:last-child{width:92%;height:9px}
.chat-room-skel-count{width:28px;height:12px;border-radius:999px;margin-top:6px;flex:none}
@keyframes chat-skel{0%{background-position:100% 0}100%{background-position:0 0}}
@media(prefers-reduced-motion:reduce){.chat-room-skel-icon,.chat-room-skel-body span,.chat-room-skel-count{animation:none}}
.chat-dot{width:7px;height:7px;border-radius:50%;background:var(--chat-online);box-shadow:0 0 6px rgba(34,197,94,.7);flex:none}
.chat-dot.is-away{background:#eab308;box-shadow:0 0 6px rgba(234,179,8,.75)}
.chat-auth{margin-top:auto;padding:12px;border-top:1px solid var(--chat-line)}
.chat-auth-card{border:1px solid var(--chat-line);border-radius:14px;padding:14px;background:rgba(255,255,255,.02)}
.chat-auth-card [hidden]{display:none !important}
.chat-auth-card p.lead{margin:0 0 12px;font-size:.82rem;line-height:1.45;color:var(--chat-text)}
.chat-google-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;border:none;border-radius:10px;padding:8px 12px;background:#4285f4;color:#fff;font-weight:700;font-size:.78rem;line-height:1.15;cursor:pointer}
.chat-google-btn svg{width:16px;height:16px;flex:none}
.chat-google-label{display:flex;flex-direction:column;align-items:flex-start;text-align:left}
.chat-google-btn:hover{filter:brightness(1.06)}
.chat-google-btn:disabled{opacity:.6;cursor:wait}
.chat-auth-list{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:7px}
.chat-auth-list li{display:flex;gap:8px;align-items:flex-start;font-size:.72rem;color:var(--chat-muted);line-height:1.35}
.chat-auth-list li::before{content:"✓";color:var(--chat-online);font-weight:700;flex:none}
.chat-auth-user{display:flex;flex-direction:column;gap:12px}
.chat-user-chip{display:flex;align-items:center;gap:10px}
.chat-user-chip img{width:40px;height:40px;border-radius:50%;object-fit:cover;border:2px solid rgba(139,92,246,.55)}
.chat-user-chip .meta{flex:1;min-width:0}
.chat-user-chip strong{display:block;font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-user-status{display:block;margin-top:2px;font-size:.72rem;color:var(--chat-online)}
.chat-signout{width:100%;border:none;border-radius:10px;padding:10px 14px;background:linear-gradient(135deg,var(--chat-purple),#d946ef);color:#fff;font-weight:700;font-size:.85rem;cursor:pointer;box-shadow:0 8px 20px rgba(168,85,247,.28)}
.chat-signout:hover{filter:brightness(1.06)}
.chat-main-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--chat-line);background:rgba(0,0,0,.15);flex:none}
.chat-main-head .title{display:flex;gap:10px;align-items:center;min-width:0}
.chat-main-head .title-icon{width:36px;height:36px;border-radius:10px;background:rgba(139,92,246,.18);display:grid;place-items:center;flex:none}
.chat-main-head h2{margin:0;font-size:1.02rem;font-weight:700}
.chat-main-meta{display:flex;align-items:center;gap:8px;flex:none;color:var(--chat-muted);font-size:.8rem}
.chat-room-online{display:inline-flex;align-items:center;gap:6px;color:var(--chat-muted);white-space:nowrap}
.chat-thread{
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:0;
  flex:1;
  height:100%;
}
.chat-room-people{
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:0;
  flex:0 1 38%;
  max-height:42%;
  border-top:1px solid var(--chat-line);
  background:var(--chat-panel-2);
  overflow:hidden;
}
.chat-admin-btn{border:1px solid var(--chat-line);background:rgba(139,92,246,.15);color:var(--chat-text);border-radius:8px;padding:6px 10px;font-size:.75rem;cursor:pointer}
.chat-admin-btn:hover,.chat-admin-btn.is-on{border-color:var(--chat-purple);background:rgba(139,92,246,.28)}
.chat-messenger-wrap{position:relative;display:inline-flex;align-items:center;flex:none}
.chat-messenger-share{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid #0084FF;
  background:rgba(0,132,255,.12);
  color:#fff;
  border-radius:8px;
  padding:6px 10px;
  font-size:.75rem;
  font-weight:600;
  cursor:pointer;
  white-space:nowrap;
  box-shadow:0 0 0 0 rgba(0,132,255,.0);
  animation:chatMessengerPulse 27s ease-in-out infinite;
}
.chat-messenger-share img{width:16px;height:16px;flex:none;display:block}
.chat-messenger-share:hover{background:rgba(0,132,255,.22);border-color:#3aa0ff}
.chat-messenger-share:focus-visible{outline:2px solid #0084FF;outline-offset:2px}
.chat-messenger-tip{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  z-index:40;
  width:max-content;
  max-width:260px;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(0,132,255,.45);
  background:#1a1f2e;
  color:#e8ecf7;
  font-size:.72rem;
  font-weight:500;
  line-height:1.4;
  text-align:left;
  white-space:normal;
  box-shadow:0 10px 28px rgba(0,0,0,.45);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-4px);
  transition:opacity .15s ease,transform .15s ease,visibility .15s;
}
.chat-messenger-tip::before{
  content:"";
  position:absolute;
  top:-6px;
  right:18px;
  width:10px;
  height:10px;
  background:#1a1f2e;
  border-left:1px solid rgba(0,132,255,.45);
  border-top:1px solid rgba(0,132,255,.45);
  transform:rotate(45deg);
}
.chat-messenger-wrap:hover .chat-messenger-tip,
.chat-messenger-wrap:focus-within .chat-messenger-tip{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
@keyframes chatMessengerPulse{
  0%,92%,100%{box-shadow:0 0 0 0 rgba(0,132,255,0);border-color:#0084FF}
  94%,96%{box-shadow:0 0 0 3px rgba(0,132,255,.42);border-color:#3aa0ff}
}
.chat-back-mobile{display:none}.chat-mobile-bar{display:none;gap:8px;padding:8px 12px;border-bottom:1px solid var(--chat-line);flex:none}
.chat-mobile-bar button{flex:1;border:1px solid var(--chat-line);background:var(--chat-panel-2);color:var(--chat-text);border-radius:10px;padding:8px 10px;font-size:.8rem;cursor:pointer}
.chat-player-host{
  grid-area:player;
  position:relative;
  width:544px;
  height:306px;
  min-width:544px;
  min-height:306px;
  max-width:544px;
  max-height:306px;
  justify-self:center;
  align-self:center;
  background:#000;
}
.chat-player-host iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  display:block;
}
.chat-player-host .youtube-consent-hold{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:20px;
  text-align:center;
  background:linear-gradient(160deg,#12141e,#1a1030);
  color:var(--chat-muted);
  font-size:.85rem;
  line-height:1.45;
}
.chat-player-host .youtube-consent-hold img{opacity:.85}
.chat-player-host .youtube-consent-hold button{
  border:none;
  border-radius:10px;
  padding:10px 16px;
  background:linear-gradient(135deg,var(--chat-purple),#d946ef);
  color:#fff;
  font-weight:700;
  cursor:pointer;
}
.chat-playlist{
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:0;
  flex:1 1 62%;
  background:var(--chat-panel-2);
  overflow:hidden;
}
.chat-playlist-head{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:8px;
  padding:12px 12px 10px;
  border-bottom:1px solid var(--chat-line);
  font-size:.85rem;
  flex:none;
  position:relative;
  z-index:5;
}
.chat-pl-title{display:flex;align-items:center;gap:8px;font-weight:700}
.chat-pl-title-icon{color:var(--chat-purple-2);font-size:1rem;line-height:1}
.chat-pl-kicker{margin:0;font-size:.68rem;color:var(--chat-muted);letter-spacing:.02em}
.chat-pl-shuffle{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
  padding:8px 8px 2px;
  cursor:pointer;
}
.chat-pl-shuffle-icon{flex:none;width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:rgba(139,92,246,.18);color:#fff;font-size:.85rem}
.chat-pl-shuffle-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.chat-pl-shuffle-copy strong{font-size:.78rem;font-weight:700}
.chat-pl-shuffle-copy small{font-size:.66rem;color:var(--chat-muted)}
.chat-pl-shuffle input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.chat-pl-switch{flex:none;width:42px;height:24px;border-radius:999px;background:#2a2d3c;position:relative;transition:background .15s}
.chat-pl-switch::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .15s}
.chat-pl-shuffle input:checked + .chat-pl-switch{background:linear-gradient(135deg,var(--chat-purple),#d946ef)}
.chat-pl-shuffle input:checked + .chat-pl-switch::after{transform:translateX(18px)}
.chat-pl-shuffle input:focus-visible + .chat-pl-switch{outline:2px solid var(--chat-purple-2);outline-offset:2px}
.chat-pl-dd{
  position:relative;
  flex:1;
  min-width:0;
}
.chat-pl-dd-btn{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  border:1px solid var(--chat-line);
  border-radius:10px;
  background:#12141e;
  color:var(--chat-text);
  font:inherit;
  font-size:.8rem;
  font-weight:600;
  padding:6px 10px 6px 6px;
  cursor:pointer;
  text-align:left;
  transition:border-color .15s,background .15s;
}
.chat-pl-dd-btn:hover,
.chat-pl-dd.is-open .chat-pl-dd-btn{
  border-color:rgba(139,92,246,.55);
  background:#161826;
}
.chat-pl-dd-logo{
  width:28px;
  height:28px;
  border-radius:50%;
  object-fit:cover;
  flex:none;
  background:#2a2d3a;
}
.chat-pl-dd-label{
  flex:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.chat-pl-dd-caret{
  flex:none;
  color:#fff;
  font-size:1.45rem;
  font-weight:700;
  line-height:1;
  margin-right:2px;
  transition:transform .15s;
}
.chat-pl-dd.is-open .chat-pl-dd-caret{transform:rotate(180deg)}
.chat-pl-dd-menu{
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  right:0;
  margin:0;
  padding:6px;
  list-style:none;
  border:1px solid var(--chat-line);
  border-radius:12px;
  background:#12141e;
  box-shadow:0 12px 32px rgba(0,0,0,.45);
  max-height:min(320px,50vh);
  overflow:auto;
  z-index:20;
}
.chat-pl-dd-menu[hidden]{display:none}
.chat-pl-dd-option{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  border:1px solid transparent;
  border-radius:10px;
  background:transparent;
  color:var(--chat-text);
  font:inherit;
  font-size:.8rem;
  font-weight:600;
  padding:6px 8px;
  cursor:pointer;
  text-align:left;
  transition:background .15s,border-color .15s;
}
.chat-pl-dd-option:hover{background:rgba(255,255,255,.05)}
.chat-pl-dd-option.is-active{
  border-color:rgba(139,92,246,.45);
  background:rgba(139,92,246,.16);
}
.chat-pl-dd-option .chat-pl-dd-logo{width:32px;height:32px}
.chat-playlist-list{
  list-style:none;
  margin:0;
  padding:6px;
  overflow:auto;
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.chat-playlist-item{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  text-align:left;
  border:1px solid transparent;
  border-radius:10px;
  background:transparent;
  color:var(--chat-text);
  padding:6px 8px;
  cursor:pointer;
  transition:background .15s,border-color .15s;
}
.chat-playlist-item:hover{background:rgba(255,255,255,.04)}
.chat-playlist-item.is-active{
  border-color:rgba(139,92,246,.55);
  background:rgba(139,92,246,.18);
  box-shadow:0 0 16px rgba(139,92,246,.2);
}
.chat-playlist-thumb{
  width:64px;
  height:36px;
  border-radius:6px;
  object-fit:cover;
  flex:none;
  background:#222;
}
.chat-playlist-meta{flex:1;min-width:0}
.chat-playlist-meta strong{
  display:block;
  font-size:.78rem;
  font-weight:600;
  line-height:1.3;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.chat-playlist-meta span{display:block;font-size:.68rem;color:var(--chat-muted);margin-top:2px}
.chat-playlist-empty{padding:16px 12px;font-size:.8rem;color:var(--chat-muted);text-align:center}
.chat-messages-wrap{position:relative;flex:1;min-height:0;display:flex;flex-direction:column}
.chat-messages{flex:1;overflow:auto;padding:16px;display:flex;flex-direction:column;gap:14px;min-height:0}
.chat-jump{position:absolute;right:16px;bottom:12px;z-index:3;width:36px;height:36px;border:1px solid rgba(139,92,246,.5);border-radius:50%;background:rgba(22,16,40,.94);color:#e9d5ff;display:grid;place-items:center;cursor:pointer;box-shadow:0 8px 20px rgba(0,0,0,.35)}
.chat-jump:hover{background:#6d28d9;color:#fff}
.chat-jump[hidden]{display:none !important}
.chat-msg{display:flex;gap:10px;align-items:flex-start}
.chat-msg.is-self{flex-direction:row-reverse}
.chat-msg.is-self .chat-msg-body{display:flex;flex-direction:column;align-items:flex-end}
.chat-msg.is-self .chat-msg-meta{flex-direction:row-reverse}
.chat-msg.is-self .chat-msg-bubble{background:linear-gradient(135deg,#7c3aed,#a855f7);border-color:transparent;color:#fff}
.chat-msg.is-self .chat-msg-name{color:#e9d5ff}
.chat-msg-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;flex:none;background:#2a2d3a}
.chat-msg-body{min-width:0;flex:1}
.chat-msg-meta{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-bottom:4px}
.chat-msg-name{font-size:.86rem;font-weight:700}
.chat-msg-time{font-size:.72rem;color:var(--chat-muted)}
.chat-msg-bubble{display:inline-block;max-width:100%;padding:9px 12px;border-radius:12px;background:var(--chat-bubble);border:1px solid rgba(255,255,255,.04);font-size:.9rem;line-height:1.45;word-break:break-word;white-space:pre-wrap}
.chat-msg.is-deleted .chat-msg-bubble{color:var(--chat-muted);font-style:italic}
.chat-reactions{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.chat-reaction{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--chat-line);background:rgba(255,255,255,.03);color:var(--chat-text);border-radius:999px;padding:2px 8px;font-size:.75rem;cursor:pointer}
.chat-reaction.is-mine{border-color:rgba(139,92,246,.55);background:rgba(139,92,246,.15)}
.chat-reaction:disabled{opacity:.55;cursor:not-allowed}
.chat-msg-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;opacity:0;transition:opacity .15s}
.chat-msg:hover .chat-msg-actions,.chat-msg:focus-within .chat-msg-actions{opacity:1}
.chat-msg-actions button{border:none;background:transparent;color:var(--chat-muted);font-size:.72rem;cursor:pointer;padding:0 2px}
.chat-msg-actions button:hover{color:var(--accent,#cfb5ff)}
.chat-empty,.chat-loading{margin:auto;text-align:center;color:var(--chat-muted);font-size:.9rem;padding:24px}
.chat-composer-wrap{border-top:1px solid var(--chat-line);padding:12px 14px;background:rgba(0,0,0,.2);position:relative;flex:none}
.chat-composer{display:flex;align-items:center;gap:8px;background:var(--chat-input);border:1px solid var(--chat-line);border-radius:999px;padding:6px 6px 6px 12px}
.chat-composer.is-locked{opacity:.85}
.chat-emoji-btn,.chat-send{border:none;cursor:pointer;display:grid;place-items:center}
.chat-emoji-btn{width:36px;height:36px;border-radius:10px;background:transparent;color:var(--chat-muted);font-size:1.2rem}
.chat-emoji-btn:hover{color:var(--chat-text);background:rgba(255,255,255,.05)}
.chat-composer input{flex:1;min-width:0;border:none;background:transparent;color:var(--chat-text);font:inherit;font-size:.92rem;padding:10px 4px;outline:none}
.chat-composer input::placeholder{color:#6f6d80}
.chat-composer input:disabled{cursor:not-allowed}
.chat-send{display:inline-flex;align-items:center;gap:8px;border-radius:12px;padding:10px 16px;background:linear-gradient(135deg,var(--chat-purple),#d946ef);color:#fff;font-weight:700;font-size:.9rem;box-shadow:0 8px 24px rgba(168,85,247,.35)}
.chat-send:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.chat-guest-hint{margin:8px 2px 0;font-size:.78rem;color:var(--chat-muted)}
.chat-guest-hint button{border:none;background:none;color:var(--chat-purple-2);font:inherit;font-weight:700;cursor:pointer;padding:0;text-decoration:underline}
.chat-emoji-picker{position:absolute;bottom:70px;left:18px;z-index:5;display:none;grid-template-columns:repeat(6,1fr);gap:4px;padding:8px;border-radius:12px;border:1px solid var(--chat-line);background:#1a1d2a;box-shadow:0 12px 30px rgba(0,0,0,.45)}
.chat-emoji-picker.is-open{display:grid}
.chat-emoji-picker button{border:none;background:transparent;font-size:1.25rem;padding:6px;border-radius:8px;cursor:pointer}
.chat-emoji-picker button:hover{background:rgba(255,255,255,.08)}
.chat-online-head{display:flex;align-items:center;gap:8px;padding:16px 14px 12px;border-bottom:1px solid var(--chat-line);font-size:.9rem;font-weight:700;flex:none}
.chat-online-list{list-style:none;margin:0;padding:10px 12px;overflow:auto;flex:1;display:flex;flex-direction:column;gap:10px;min-height:0}
.chat-online-list li{display:flex;align-items:center;gap:10px}
.chat-online-avatar{position:relative;width:34px;height:34px;flex:none}
.chat-online-avatar img{width:34px;height:34px;border-radius:50%;object-fit:cover;background:#2a2d3a}
.chat-online-avatar .chat-dot{position:absolute;right:0;bottom:0;width:9px;height:9px;border:2px solid var(--chat-panel-2)}
.chat-online-list span{font-size:.85rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.chat-ban-btn{margin-left:auto;flex:0 0 auto;border:0;background:rgba(239,68,68,.16);color:#fecaca;border-radius:999px;padding:4px 10px;font:inherit;font-size:.72rem;font-weight:700;cursor:pointer}
.chat-ban-btn:hover{background:rgba(239,68,68,.28)}
.chat-online-more{padding:8px 14px 14px;font-size:.78rem;color:var(--chat-muted);flex:none}
.chat-online-empty{margin:8px 14px 16px;font-size:.8rem;line-height:1.4;color:var(--chat-muted)}
.chat-online-empty[hidden]{display:none}
.chat-ad-desktop{
  margin:8px 0 10px;
  width:100%;
  max-width:none;
  padding:8px 8px 10px;
  border-radius:18px;
  flex:none;
  box-sizing:border-box;
}
.chat-ad-desktop .ad-slot{
  width:300px;
  height:250px;
  max-width:100%;
}
.chat-ad-banner.ad-frame-300x50,
.ad-frame-300x50{
  --ad-w:300px;
  --ad-h:50px;
}
.chat-ad-banner .ad-slot{
  width:300px;
  height:50px;
  max-width:100%;
}
.chat-ad-inline{margin:12px 0 0 12px;align-self:flex-start}
.chat-ad-beside{
  grid-area:ad;
  justify-self:start;
  align-self:center;
  margin:0 0 0 5px;
  width:auto;
  height:auto;
  max-width:100%;
  padding:8px 8px 10px;
  border-radius:18px;
  overflow:visible;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  gap:4px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(124,77,255,.16), transparent 55%),
    radial-gradient(120% 80% at 100% 100%, rgba(90,216,255,.12), transparent 50%),
    #07070e;
}
.chat-ad-beside .ad-frame-label{
  position:static;
  top:auto;
  left:auto;
  right:auto;
  z-index:auto;
  margin:0;
  flex:none;
  pointer-events:none;
}
.chat-ad-beside .ad-slot{
  width:250px;
  height:250px;
  flex:none;
  margin:0;
  border-radius:12px;
  overflow:hidden;
}
.chat-ad-desktop.is-empty{
  display:none !important;
}
.chat-room-list,
.chat-messages,
.chat-playlist-list,
.chat-online-list,
.chat-pl-dd-menu,
.chat-col-ads{
  scrollbar-width:thin;
  scrollbar-color:rgba(139,92,246,.55) transparent;
}
.chat-room-list::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar,
.chat-playlist-list::-webkit-scrollbar,
.chat-online-list::-webkit-scrollbar,
.chat-pl-dd-menu::-webkit-scrollbar,
.chat-col-ads::-webkit-scrollbar{width:6px;height:6px}
.chat-room-list::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb,
.chat-playlist-list::-webkit-scrollbar-thumb,
.chat-online-list::-webkit-scrollbar-thumb,
.chat-pl-dd-menu::-webkit-scrollbar-thumb,
.chat-col-ads::-webkit-scrollbar-thumb{background:rgba(139,92,246,.55);border-radius:99px}
.chat-room-list::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track,
.chat-playlist-list::-webkit-scrollbar-track,
.chat-online-list::-webkit-scrollbar-track,
.chat-pl-dd-menu::-webkit-scrollbar-track,
.chat-col-ads::-webkit-scrollbar-track{background:transparent}
@media (max-width:1100px){
  .chat-ad-desktop{display:none !important}
}
.chat-admin-panel{display:none;border-top:1px solid var(--chat-line);padding:10px 12px;background:rgba(139,92,246,.08);max-height:180px;overflow:auto;flex:none}
.chat-admin-panel.is-open{display:block}
.chat-admin-panel h3{margin:0 0 8px;font-size:.8rem;letter-spacing:.04em;text-transform:uppercase;color:var(--chat-muted)}
.chat-admin-panel .report{font-size:.75rem;padding:8px;border:1px solid var(--chat-line);border-radius:8px;margin-bottom:6px;background:rgba(0,0,0,.2)}
.chat-admin-panel .report button{margin-top:6px;margin-right:6px;font-size:.72rem;border:1px solid var(--chat-line);background:transparent;color:var(--chat-text);border-radius:6px;padding:4px 8px;cursor:pointer}
.chat-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:80;background:#1e2230;border:1px solid var(--chat-purple);color:#fff;padding:10px 16px;border-radius:12px;font-size:.85rem;box-shadow:0 10px 30px rgba(0,0,0,.4);opacity:0;pointer-events:none;transition:opacity .2s}
.chat-toast.is-show{opacity:1}
.chat-backdrop{display:none;position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:40}
.chat-backdrop.is-open{display:block}
@media (max-width:1599px) and (min-width:1280px){
  .chat-col-ads{display:none}
  .chat-shell{
    grid-template-columns:
      minmax(200px, 18fr)
      minmax(270px, 18fr)
      minmax(560px, 44fr)
      minmax(280px, 20fr);
    grid-template-areas:
      "rooms ad player side"
      "rooms chat chat side";
  }
}
@media (max-width:1279px) and (min-width:1101px){
  .chat-ad-beside{display:none !important}
  .chat-col-ads{display:none}
  .chat-shell{
    grid-template-columns:minmax(200px,240px) minmax(560px,1fr) minmax(280px,320px);
    grid-template-rows:306px minmax(0,1fr);
    grid-template-areas:
      "rooms player side"
      "rooms chat side";
  }
}
@media (max-width:1100px){
  .chat-ad-beside{display:none !important}
  .chat-col-ads{display:none}
  .chat-shell{
    grid-template-columns:minmax(200px,240px) minmax(0,1fr) minmax(220px,280px);
    grid-template-rows:306px minmax(0,1fr);
    grid-template-areas:
      "rooms player side"
      "rooms chat side";
  }
  .chat-room-people{display:none}
  .chat-room-people.is-drawer{
    display:flex;
    position:fixed;
    top:0;right:0;bottom:0;
    width:min(320px,90vw);
    height:auto;
    max-height:none;
    flex:none;
    z-index:50;
    border-left:1px solid var(--chat-line);
    box-shadow:-12px 0 40px rgba(0,0,0,.4);
  }
  .chat-back-mobile{display:grid}.chat-mobile-bar{display:flex}
  .chat-mobile-bar .only-online{display:inline-flex}
  .chat-playlist{flex:1;max-height:none}
}
@media (max-width:760px){
  .chat-shell{
    grid-template-columns:1fr;
    grid-template-rows:auto auto minmax(0,1fr);
    grid-template-areas:
      "player"
      "side"
      "chat";
    overflow:auto;
  }
  .chat-col-rooms{display:none}
  .chat-col-rooms.is-drawer{
    display:flex;
    position:fixed;
    top:0;left:0;bottom:0;
    width:min(320px,92vw);
    z-index:50;
    border-right:1px solid var(--chat-line);
    box-shadow:12px 0 40px rgba(0,0,0,.4);
  }
  .chat-col-side{
    border-left:none;
    border-right:none;
    max-height:220px;
  }
  .chat-msg-actions{opacity:1}
  .chat-player-host{
    justify-self:center;
    align-self:center;
    width:544px;
    height:306px;
    min-width:544px;
    min-height:306px;
    max-width:544px;
    max-height:306px;
  }
  .chat-playlist{
    border-left:none;
    height:auto;
    max-height:none;
  }
  .chat-room-people{display:none}
  .chat-room-people.is-drawer{
    display:flex;
    position:fixed;
    top:0;right:0;bottom:0;
    width:min(320px,90vw);
    height:auto;
    max-height:none;
    z-index:50;
  }
}
.name-c0{color:#c084fc}.name-c1{color:#67e8f9}.name-c2{color:#fde047}.name-c3{color:#60a5fa}.name-c4{color:#f9a8d4}.name-c5{color:#86efac}.name-c6{color:#fda4af}.name-c7{color:#a5b4fc}
.chat-mobile-gate{display:none}
@media (max-width:1199px){
  html,body.chat-fullscreen{height:auto;min-height:100%;overflow:auto}
  body.chat-fullscreen{overflow:auto}
  main.chat-page{display:none !important}
  .chat-mobile-gate{
    display:flex;
    min-height:100vh;
    box-sizing:border-box;
    align-items:flex-start;
    justify-content:center;
    padding:28px 16px 40px;
  }
  .chat-mobile-card{
    width:min(440px,100%);
    text-align:center;
  }
  .chat-mobile-card h1{
    margin:0 0 18px;
    font-size:1.35rem;
    line-height:1.35;
  }
  .chat-mobile-card p{
    margin:0 0 14px;
    font-size:1rem;
    line-height:1.5;
    color:var(--chat-text);
  }
  .chat-mobile-thanks{margin-bottom:22px}
  .chat-mobile-ad{
    margin:8px auto 0;
    display:block;
  }
}
