:root {
  color-scheme: dark;
  --bg: #131516;
  --panel: #1b1e20;
  --muted: #969a99;
  --line: #ffffff13;
  --gold: #e8be8a;
  --text: #eeeae3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 25% 20%, #31302940, transparent 50%), var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 14px;
}
button,
input,
select {
  font: inherit;
}
button,
.file-button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #292d2f;
  color: var(--text);
  padding: 11px 16px;
  transition:
    background 0.2s,
    transform 0.2s;
}
button:hover,
.file-button:hover {
  background: #3c4143;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.primary {
  background: var(--gold);
  color: #27221c;
  border-color: var(--gold);
  font-weight: 600;
}
.primary:hover {
  background: #f2d2a9;
}
.quiet {
  background: transparent;
  color: #b8bbba;
}
.active {
  color: var(--gold);
  border-color: #e8be8a66;
}
a {
  color: inherit;
  text-decoration: none;
}
header {
  height: 96px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 23px;
  letter-spacing: 4px;
}
.brand img {
  width: 39px;
  height: 39px;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 4px;
}
.connection {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.connection i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #888;
}
.connection i.online {
  background: #95c8a9;
  box-shadow: 0 0 10px #95c8a944;
}
main {
  max-width: 1540px;
  margin: auto;
  padding: 38px 4vw 60px;
}
.welcome {
  min-height: 65vh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10%;
  align-items: center;
  padding: 25px 4vw;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
}
h1,
h2,
p {
  margin-top: 0;
}
.welcome h1 {
  font-family: Georgia, "STSong", serif;
  font-weight: 400;
  font-size: clamp(40px, 4.5vw, 66px);
  line-height: 1.35;
  letter-spacing: 3px;
  margin: 24px 0;
}
.welcome p {
  color: var(--muted);
  line-height: 2;
}
.pills {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}
.pills span,
.tag {
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 30px;
  font-size: 11px;
  color: var(--muted);
}
#entry {
  background: linear-gradient(145deg, #2b2b28, #1b1e20);
  padding: 38px;
  border: 1px solid #e8be8a20;
  border-radius: 18px;
  box-shadow: 0 24px 80px #0003;
}
#entry h2 {
  font-size: 24px;
  font-weight: 500;
  margin: 20px 0 30px;
}
#entry label {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
#entry input {
  display: block;
  width: 100%;
  margin-top: 10px;
  border: 1px solid #ffffff20;
  background: #141617;
  padding: 14px;
  border-radius: 9px;
  color: var(--text);
}
#entry button {
  width: 100%;
  margin: 20px 0;
  text-align: left;
  display: flex;
  justify-content: space-between;
}
#entry p {
  font-size: 12px;
}
.entry-foot {
  font-size: 11px;
  color: #737978;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 28px;
}
.room-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 25px;
}
.room-title h1 {
  font-weight: 400;
  font-size: 29px;
  margin: 10px 0 0;
}
.room-title > div:last-child {
  display: flex;
  gap: 15px;
  align-items: center;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 26px;
}
.stage {
  position: relative;
  background: #090b0d;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  min-height: 440px;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.empty-stage {
  text-align: center;
  padding: 40px 20px;
  background: radial-gradient(ellipse, #57463225, transparent 65%);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.orbit {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid #e8be8a35;
  border-radius: 50%;
  box-shadow: 0 0 0 15px #e8be8a05;
  color: var(--gold);
  font-size: 32px;
  margin-bottom: 32px;
}
.empty-stage h2 {
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 1px;
}
.empty-stage p {
  font-size: 12px;
  line-height: 2;
  color: var(--muted);
}
.empty-stage .tag {
  margin-top: 18px;
}
.stage-bottom {
  position: absolute;
  bottom: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: linear-gradient(transparent, #000b);
  font-size: 11px;
  color: #aaa;
}
.stage-bottom button {
  padding: 8px;
}
.shares {
  display: flex;
  width: 100%;
  height: 100%;
  min-width: 0;
}
.share-card {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100%;
}
.share-card video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.video-label {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 11px;
  background: #101416b0;
  padding: 5px 8px;
  border-radius: 5px;
}
.share-card .video-label {
  top: 12px;
  bottom: auto;
}
.video-label span {
  margin-left: 8px;
  color: #a1aba6;
}
.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.toolbar button,
.file-button {
  font-size: 12px;
  padding: 11px 12px;
}
.divider {
  width: 1px;
  height: 24px;
  background: var(--line);
  margin: 0 4px;
}
.under-stage {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 0;
  font-size: 11px;
  color: var(--muted);
}
.under-stage p {
  max-width: 70%;
  line-height: 1.8;
}
.under-stage label {
  white-space: nowrap;
}
select {
  background: #25292a;
  color: var(--text);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 12px;
}
.section-heading h2 {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}
.section-heading span {
  font-size: 10px;
  color: var(--muted);
}
.camera-grid {
  display: grid;
  gap: 12px;
}
.camera-card {
  aspect-ratio: 16/9;
  background: linear-gradient(120deg, #303534, #202526);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.camera-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.camera-card #localCamera {
  transform: scaleX(-1);
}
.avatar {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #a8b6ae;
  font-family: Georgia, "STSong", serif;
  font-size: 29px;
  background: radial-gradient(ellipse, #51605535, transparent);
}
.avatar span {
  font-size: 10px;
  margin-top: 10px;
  color: #8b9590;
  font-family: "Microsoft YaHei", sans-serif;
}
.mixer {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 12px;
  margin-top: 20px;
}
.mixer label {
  display: block;
  font-size: 11px;
  color: #c0c4c1;
  margin: 18px 0;
}
.mixer output {
  float: right;
  color: var(--gold);
  font-size: 10px;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
  height: 4px;
  display: block;
  margin-top: 13px;
  cursor: pointer;
}
.mixer p {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}
.diagnostics {
  margin-top: 16px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.diagnostics summary {
  cursor: pointer;
}
.diagnostics p {
  white-space: pre-line;
  margin-top: 12px;
}
.diagnostics button {
  display: block;
  margin-top: 10px;
  font-size: 11px;
}
.movie-controls {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 14px 0;
}
.movie-controls input {
  flex: 1;
  margin: 0;
}
.movie-controls span {
  font-size: 11px;
  white-space: nowrap;
}
.movie-controls button {
  padding: 6px 12px;
}
footer {
  border-top: 1px solid var(--line);
  margin: 0 4vw;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  color: #727976;
  font-size: 10px;
  letter-spacing: 1px;
}
#notice {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  background: #e8be8a;
  color: #24211c;
  padding: 14px 24px;
  border-radius: 10px;
  box-shadow: 0 8px 40px #0006;
  z-index: 10;
  font-size: 13px;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
:fullscreen.stage {
  aspect-ratio: auto;
  border-radius: 0;
  width: 100%;
  height: 100%;
  background: #000;
}
@media (min-width: 1700px) {
  .stage {
    min-height: 560px;
  }
}
@media (max-width: 1000px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 16px;
  }
  main {
    padding: 28px 3vw;
  }
  .stage {
    min-height: 350px;
  }
  .toolbar {
    gap: 6px;
  }
  .welcome {
    gap: 6%;
    padding: 0;
  }
  #entry {
    padding: 28px;
  }
}
@media (max-width: 760px) {
  header {
    height: 78px;
    padding: 0 5vw;
    gap: 12px;
  }
  .brand {
    font-size: 20px;
  }
  .brand small {
    font-size: 6px;
  }
  .connection {
    font-size: 10px;
  }
  header .quiet {
    padding: 8px;
    font-size: 10px;
  }
  .welcome {
    grid-template-columns: 1fr;
    padding: 20px 4vw;
    gap: 36px;
  }
  .welcome h1 {
    font-size: 43px;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .stage {
    min-height: 240px;
    aspect-ratio: 16/10;
  }
  .camera-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mixer {
    margin-top: 14px;
  }
  .room-title h1 {
    font-size: 24px;
  }
  .room-title > div:last-child {
    gap: 6px;
  }
  .room-title .tag {
    display: none;
  }
  .under-stage {
    flex-wrap: wrap;
  }
  .under-stage p {
    max-width: 100%;
    margin: 0;
  }
  .empty-stage h2 {
    font-size: 15px;
  }
  .empty-stage .orbit {
    width: 45px;
    height: 45px;
    margin-bottom: 20px;
  }
  .empty-stage .tag {
    display: none;
  }
  .empty-stage {
    padding: 25px 12px;
  }
  .shares {
    flex-direction: column;
  }
  .share-card {
    min-height: 0;
  }
  .stage:has(.share-card:not([hidden]) + .share-card:not([hidden])) {
    aspect-ratio: auto;
    height: 520px;
  }
  footer {
    gap: 20px;
  }
  footer span:last-child {
    display: none;
  }
}

.main-column,
.camera-card {
  min-width: 0;
}
.video-label {
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.camera-grid {
  grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 760px) {
  .camera-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .connection {
    min-width: 0;
    max-width: 92px;
  }
  .brand {
    flex-shrink: 0;
  }
}
