/* Studio von Stream Together (baut auf app.css und live.css auf) */

.st-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.4rem;
  border-bottom: 1px solid var(--line2);
  background: var(--panel);
}

.st-top .jn-brand {
  color: var(--txt);
  text-decoration: none;
}

.st-title {
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}

.st-chip b {
  margin-left: 0.2rem;
}

.st-result {
  margin: 0.8rem 1.4rem 0;
}

.st-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24rem;
  gap: 1.2rem;
  padding: 1.2rem 1.4rem;
}

.st-head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.st-head .kicker {
  margin: 0;
}

.st-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1rem;
}

.st-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line2);
  border-radius: 0.9rem;
  background: var(--panel);
}

.st-vid {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b0d10;
}

.st-vid iframe,
.st-vid video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.st-tile.me video {
  transform: scaleX(-1);
}

.st-over {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: var(--dim);
  text-align: center;
  pointer-events: none;
}

.st-over:empty {
  display: none;
}

.st-tile.offline .st-over {
  background: #0b0d10;
}

.st-air {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 2;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line2);
  border-radius: 0.35rem;
  background: rgba(11, 13, 16, 0.85);
  color: var(--dim);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  cursor: pointer;
}

.st-air.on {
  border-color: var(--live);
  background: var(--live);
  color: #fff;
}

span.st-air {
  cursor: default;
}

.st-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.8rem 0.3rem;
}

.st-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0.5rem var(--ok);
}

.st-tile.offline .st-dot {
  background: var(--danger);
  box-shadow: none;
}

.st-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-you {
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--acc);
  border-radius: 1rem;
  color: var(--acc-txt);
  font-size: 0.8rem;
  font-weight: 700;
}

.st-tools {
  display: flex;
  justify-content: flex-end;
  gap: 0.3rem;
  padding: 0 0.6rem;
}

.st-tools .icobtn.on {
  color: var(--danger);
}

.st-tools svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.st-vol {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.8rem 0.8rem;
  color: var(--dim);
  font-size: 0.9rem;
}

.st-vol input {
  flex: 1;
}

.st-side {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  min-width: 0;
}

.st-side .card {
  margin: 0;
}

.st-join {
  flex: 1;
}

.st-chat {
  display: flex;
  flex-direction: column;
  min-height: 22rem;
}

.st-chat .jn-msgs {
  flex: 1;
  max-height: 26rem;
}

@media (max-width: 70rem) {
  .st-main {
    grid-template-columns: minmax(0, 1fr);
  }
}
