.live-match-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 460px;
  gap:24px;
  align-items:start;
}
body[data-viewer-page] .live-match-layout{
  flex:none;
  min-height:0;
  height:auto;
}
.live-match-main{
  min-width:0;
  display:flex;
  flex-direction:column;
}
.live-match-main .player-card{
  border-radius:30px;
}
.live-match-main .player-stage{
  aspect-ratio:16/9;
  min-height:0;
}
.live-match-side{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:12px;
  min-height:0;
  position:sticky;
  top:84px;
  align-self:start;
}
.live-match-side .discord-promo-banner{
  margin:0;
  border-radius:18px;
  background:#120414;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 18px 40px rgba(0,0,0,.28);
  flex:0 0 auto;
  overflow:hidden;
  padding:0;
  line-height:0;
}
.live-match-side .discord-promo-media{
  display:block;
  width:100%;
}
.live-match-side .discord-promo-media img{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
  object-position:center;
}
.live-widgets-panel{
  margin-top:22px;
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(320px,1.1fr);
  gap:18px;
  align-items:stretch;
}
.live-count-card,
.live-chat-card{
  border-radius:24px;
  border:1px solid rgba(255,255,255,.1);
  background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  box-shadow:0 24px 70px rgba(0,0,0,.34);
  backdrop-filter:blur(16px);
  overflow:hidden;
  min-height:0;
  display:flex;
  flex-direction:column;
  flex:1;
}
.live-match-side .live-chat-card{
  flex:none;
  min-height:680px;
  height:clamp(680px, calc(100vh - 210px), 860px);
  margin-top:10px;
}
.live-count-card{
  padding:20px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:18px;
}
.live-count-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:max-content;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(57,255,20,.12);
  border:1px solid rgba(57,255,20,.24);
  color:#d7ffd0;
  font-size:12px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.live-count-kicker::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:#ef4444;
  box-shadow:0 0 0 5px rgba(239,68,68,.14);
}
.live-count-value{
  display:block;
  font-size:clamp(2rem,5vw,4.5rem);
  line-height:.9;
  font-weight:900;
  color:#fff;
  text-shadow:0 10px 30px rgba(0,0,0,.36);
}
.live-count-label{
  margin-top:10px;
  color:rgba(255,255,255,.74);
  font-weight:700;
  line-height:1.55;
}
.live-chat-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,.09);
}
.live-chat-title{
  font-size:15px;
  font-weight:900;
}
.live-chat-sub{
  margin-top:2px;
  font-size:11px;
  opacity:.7;
  font-weight:700;
}
.live-chat-head a{
  color:#d8b4fe;
  text-decoration:none;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  padding:8px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.1);
}
.live-chat-body{
  flex:1;
  min-height:0;
  height:100%;
  overflow-y:auto;
  padding:14px 14px 10px;
  display:flex;
  flex-direction:column;
  gap:10px;
  background:
    radial-gradient(circle at top, rgba(57,255,20,.06), transparent 42%),
    rgba(5,9,14,.78);
}
.chat-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.chat-title{
  font-size:15px;
  font-weight:900;
}
.chat-top-meta{
  display:flex;
  align-items:center;
  gap:8px;
}
.chat-online{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--green);
}
.chat-online .dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:var(--green);
  box-shadow:0 0 0 0 rgba(57,255,20,.5);
  animation:liveDotPulse 1.6s ease-out infinite;
}
.chat-pseudo-btn{
  min-width:72px;
  height:30px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
}
.chat-pseudo-btn:hover{
  background:rgba(255,255,255,.12);
}
.chat-body{
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.24) transparent;
}
.chat-body::-webkit-scrollbar{
  width:8px;
}
.chat-body::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.16);
  border-radius:999px;
}
.chat-status{
  padding:8px 14px 0;
  font-size:11px;
  font-weight:800;
  color:rgba(255,255,255,.48);
}
.chat-status[data-tone="success"]{
  color:var(--green);
}
.chat-status[data-tone="error"]{
  color:#ff7d6b;
}
.chat-welcome{
  margin:auto 0;
  text-align:center;
  color:rgba(255,255,255,.56);
  font-size:13px;
  font-weight:700;
}
.msg{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:12px;
  border-radius:16px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
}
.msg-header{
  display:flex;
  align-items:center;
  gap:10px;
}
.msg-avatar{
  width:30px;
  height:30px;
  border-radius:999px;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:900;
  flex:0 0 auto;
}
.msg-n{
  font-size:12px;
  font-weight:900;
}
.msg-time{
  margin-left:auto;
  color:rgba(255,255,255,.42);
  font-size:11px;
  font-weight:800;
}
.msg-t{
  color:rgba(255,255,255,.84);
  font-size:13px;
  line-height:1.5;
  word-break:break-word;
}
.chat-input-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  padding:12px 14px 14px;
  border-top:1px solid rgba(255,255,255,.08);
  background:rgba(4,7,12,.9);
}
.chat-in{
  width:100%;
  height:40px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.05);
  color:#fff;
  padding:0 14px;
  outline:none;
  font-size:13px;
}
.chat-in:focus{
  border-color:rgba(57,255,20,.3);
  box-shadow:0 0 0 4px rgba(57,255,20,.08);
}
.chat-send{
  min-width:104px;
  height:40px;
  border:0;
  border-radius:12px;
  background:rgba(57,255,20,.14);
  border:1px solid rgba(57,255,20,.28);
  color:var(--green);
  font-size:12px;
  font-weight:900;
  letter-spacing:.04em;
  cursor:pointer;
}
.chat-send:hover{
  background:rgba(57,255,20,.2);
}
.pseudo-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(0,0,0,.78);
  backdrop-filter:blur(10px);
  align-items:center;
  justify-content:center;
  padding:20px;
}
.pseudo-box{
  width:min(100%,340px);
  padding:28px;
  border-radius:22px;
  background:#131313;
  border:1px solid rgba(57,255,20,.2);
  box-shadow:0 24px 70px rgba(0,0,0,.8);
}
.pseudo-box h2{
  margin:0 0 8px;
  font-size:24px;
  font-weight:900;
  letter-spacing:.04em;
  color:#fff;
}
.pseudo-box p{
  margin:0 0 16px;
  font-size:12px;
  color:rgba(255,255,255,.62);
  line-height:1.6;
}
.pseudo-box input{
  width:100%;
  height:40px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);
  color:#fff;
  padding:0 14px;
  outline:none;
  margin-bottom:12px;
}
.pseudo-box button{
  width:100%;
  height:40px;
  border-radius:12px;
  border:1px solid rgba(57,255,20,.28);
  background:rgba(57,255,20,.16);
  color:var(--green);
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}
.pseudo-box button:hover{
  background:rgba(57,255,20,.22);
}
.live-chat-frame{
  width:100%;
  height:100%;
  min-height:620px;
  border:0;
  display:block;
  background:#0b0b12;
}
.live-chat-fallback{
  min-height:620px;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:28px;
  text-align:center;
  color:rgba(255,255,255,.72);
  background:
    radial-gradient(circle at 50% 0%, rgba(145,70,255,.24), transparent 42%),
    #0b0b12;
}
.live-chat-fallback strong{
  color:#fff;
  font-size:18px;
  font-weight:900;
}
.live-chat-fallback span{
  max-width:320px;
  line-height:1.55;
  font-size:13px;
  font-weight:700;
}
.live-chat-fallback a{
  margin-top:4px;
  color:#fff;
  text-decoration:none;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  padding:11px 14px;
  border-radius:999px;
  background:#9146ff;
  border:1px solid rgba(255,255,255,.18);
}
.live-match-layout .source-row{
  margin-top:16px;
}
.viewer-box{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 2px;
  color:#ff7d6b;
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
}
.viewer-box svg{
  width:17px;
  height:17px;
  fill:currentColor;
  flex:0 0 auto;
}
.live-match-layout .viewer-box{
  padding:0 2px;
}
@media (max-width:900px){
  .live-match-layout,
  .live-widgets-panel{
    grid-template-columns:1fr;
  }
  .live-match-side{
    position:static;
    top:auto;
  }
  .live-match-main .player-stage{
    aspect-ratio:16/9;
    min-height:0;
  }
  .live-match-side .discord-promo-media img{
    height:auto;
  }
  .live-chat-card{
    min-height:420px;
  }
  .live-match-side .live-chat-card{
    min-height:460px;
    height:auto;
  }
  .live-chat-frame{
    min-height:420px;
    height:420px;
  }
  .live-chat-fallback{
    min-height:420px;
  }
  .chat-input-row{
    grid-template-columns:1fr;
  }
  .chat-send{
    width:100%;
  }
}
