:root {
  color-scheme: dark;
  font-family: Inter, "Microsoft YaHei", system-ui, sans-serif;
  background: #07110f;
  color: #f3f7f5;
  --panel: #101d1a;
  --panel-2: #172723;
  --accent: #65e6a7;
  --accent-dark: #093b2a;
  --muted: #98aaa4;
  --danger: #ff7b76;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 50% 0, #18342b 0, #07110f 48%); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
.landing { padding: 10vh 0 64px; }
.hero { max-width: 760px; margin-bottom: 52px; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .2em; }
h1 { margin: 12px 0; font-size: clamp(34px, 6vw, 68px); line-height: 1.08; }
.hero > p:last-child { color: var(--muted); font-size: 19px; }
.role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.role-card { padding: 32px; border: 1px solid #294139; border-radius: 24px; color: inherit; text-decoration: none; background: rgba(16, 29, 26, .78); transition: .2s ease; }
.role-card:hover { transform: translateY(-4px); border-color: var(--accent); background: var(--panel-2); }
.role-card h2 { font-size: 26px; margin: 18px 0 8px; }
.role-card p { min-height: 48px; color: var(--muted); line-height: 1.6; }
.role-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: var(--accent); background: var(--accent-dark); font-size: 28px; }
.link-label { color: var(--accent); font-weight: 700; }
.app-shell { padding: 22px 0 60px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.brand { color: inherit; text-decoration: none; font-weight: 850; font-size: 20px; }
.status { padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.status.online { color: var(--accent); background: var(--accent-dark); }
.status.offline { color: #c3cbc8; background: #27312f; }
.stage { position: relative; display: grid; place-items: center; overflow: hidden; min-height: min(62vh, 680px); border: 1px solid #284139; border-radius: 24px; background: #030706; box-shadow: 0 24px 70px #0007; }
.stage video { width: 100%; height: 100%; max-height: min(72vh, 760px); object-fit: contain; }
.placeholder { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; padding: 24px; text-align: center; background: radial-gradient(circle, #11231e, #030706 72%); }
.placeholder[hidden] { display: none; }
.placeholder h1 { font-size: clamp(24px, 4vw, 38px); margin: 14px 0 6px; }
.placeholder p { color: var(--muted); }
.big-icon { color: var(--accent); font-size: 58px; }
.viewer-count { position: absolute; top: 16px; right: 16px; padding: 8px 12px; border-radius: 99px; background: #08110fbb; backdrop-filter: blur(10px); font-size: 13px; }
.control-panel { margin-top: 18px; padding: 20px; border: 1px solid #284139; border-radius: 20px; background: var(--panel); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { color: var(--muted); font-size: 13px; font-weight: 650; }
input { display: block; width: 100%; margin-top: 7px; padding: 12px 14px; border: 1px solid #344a43; border-radius: 11px; outline: none; color: #fff; background: #091310; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #65e6a722; }
input:disabled { opacity: .58; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
button { min-height: 46px; padding: 0 18px; border: 0; border-radius: 12px; cursor: pointer; font-weight: 760; }
button:disabled { cursor: not-allowed; opacity: .42; }
.primary { color: #062118; background: var(--accent); }
.secondary { color: #eaf1ee; background: #293a35; }
.talk { margin-left: auto; color: #062118; background: #ffd36b; user-select: none; touch-action: none; }
.talk.active { color: white; background: #e44f4a; transform: scale(.98); }
.message { margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
#remoteAudioContainer { display: none; }

@media (max-width: 700px) {
  .landing { padding-top: 7vh; }
  .role-grid, .field-row { grid-template-columns: 1fr; }
  .role-card p { min-height: auto; }
  .stage { min-height: 48vh; border-radius: 18px; }
  .viewer-buttons .talk { order: -1; width: 100%; height: 58px; margin-left: 0; }
}
