:root {
  --bg: #0f1419;
  --panel: #1a222c;
  --text: #e8eef4;
  --muted: #8b9aab;
  --accent: #3d9cfd;
  --accent-dim: #2a6fba;
  --danger: #e55;
  --line: #2a3542;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, #1a3050 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 80%, #1a2838 0%, transparent 50%),
    var(--bg);
  color: var(--text);
}

.app {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.top h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.sub {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin: 1.75rem 0 1.25rem;
  padding: 1rem;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 160px;
  flex: 1;
}

.field span {
  font-size: 0.8rem;
  color: var(--muted);
}

input {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1116;
  color: var(--text);
  font-size: 1rem;
}

input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent);
  border-color: var(--accent);
}

button {
  padding: 0.7rem 1.1rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: var(--accent-dim);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#hangupBtn {
  background: var(--danger);
}

.status {
  width: 100%;
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.video-wrap {
  position: relative;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.video-wrap span {
  position: absolute;
  left: 0.6rem;
  bottom: 0.55rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 0.75rem;
  color: #fff;
}

@media (max-width: 700px) {
  .videos {
    grid-template-columns: 1fr;
  }
}
