.lv-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: stretch;
  position: relative;
}

.lv-stage__video {
  position: relative;
  min-width: 0;
}

.lv-chat {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  max-height: 72vh;
  border: 1px solid rgba(16, 247, 255, 0.22);
  border-radius: 16px;
  background: rgba(6, 10, 16, 0.92);
  color: #eef6f8;
  overflow: hidden;
}

.lv-chat__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lv-chat__title {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: auto;
}

.lv-chat__btn,
.lv-chat__link {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #d5e4ea;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}

.lv-chat__btn.is-on {
  border-color: rgba(255, 124, 42, 0.8);
  color: #ffb27a;
}

.lv-chat__log {
  flex: 1;
  overflow: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lv-chat__text {
  color: #eef6f8;
}

.lv-chat__media {
  display: block;
  margin-top: 4px;
  max-width: 100%;
  max-height: 140px;
  border-radius: 8px;
}

.lv-chat__name {
  color: #8ee7ff;
  margin-right: 6px;
  font-weight: 700;
}

.lv-chat__name.is-staff {
  color: #ffb27a;
}

.lv-chat__form,
.lv-chat__signin {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lv-chat__form input {
  flex: 1;
  min-width: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 8px 10px;
}

.lv-chat__form button,
.lv-chat__signin a {
  border: 0;
  border-radius: 10px;
  background: #ff7c2a;
  color: #1a0d05;
  font-weight: 700;
  padding: 8px 12px;
  text-decoration: none;
}

.lv-chat__status {
  min-height: 1.1em;
  padding: 0 12px 6px;
  color: #ffb4a2;
  font-size: 12px;
}

.lv-stage.is-overlay {
  grid-template-columns: 1fr;
}

.lv-stage.is-overlay .lv-chat {
  position: absolute;
  z-index: 4;
  right: 28px;
  top: 28px;
  width: min(320px, 38%);
  height: min(62%, 480px);
  max-height: none;
  min-height: 0;
  background: rgba(5, 8, 12, 0.62);
}

.lv-obs-note {
  margin-top: 10px;
  color: #9eb0b8;
  font-size: 13px;
}

.lv-obs-note a {
  color: #8ee7ff;
}

@media (max-width: 900px) {
  .lv-stage,
  .lv-stage.is-overlay {
    grid-template-columns: 1fr;
  }
  .lv-stage.is-overlay .lv-chat {
    position: static;
    width: auto;
    max-height: 50vh;
    bottom: auto;
  }
  .lv-chat {
    max-height: 50vh;
    min-height: 280px;
  }
}
