:root {
  --bg: #0b1220;
  --panel: rgba(15, 23, 42, 0.88);
  --text: #e5eefb;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #6366f1;
  --success: #34d399;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.broadcast-app {
  max-width: 720px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 16px 16px 32px;
}

.broadcast-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.live-badge {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.studio {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, #111827 0%, #1e1b4b 55%, #0f172a 100%);
  border: 1px solid rgba(148, 163, 184, 0.15);
  padding: 24px 20px;
}

.studio-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.18), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(99, 102, 241, 0.22), transparent 35%);
  pointer-events: none;
}

.anchor-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.anchor {
  width: 140px;
  height: 180px;
  position: relative;
}

.anchor-head {
  width: 88px;
  height: 88px;
  margin: 0 auto;
  position: relative;
}

.anchor-face {
  width: 72px;
  height: 82px;
  background: linear-gradient(180deg, #fde8d7 0%, #f5c9a8 100%);
  border-radius: 36px 36px 48px 48px;
  margin: 8px auto 0;
  position: relative;
}

.anchor-hair {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 42px;
  background: #1f2937;
  border-radius: 42px 42px 0 0;
}

.anchor-eye {
  width: 8px;
  height: 8px;
  background: #1f2937;
  border-radius: 50%;
  position: absolute;
  top: 38px;
}

.anchor-eye.left { left: 20px; }
.anchor-eye.right { right: 20px; }

.anchor-mouth {
  width: 18px;
  height: 6px;
  border-radius: 0 0 12px 12px;
  background: #c08484;
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  transition: height 0.1s ease;
}

.anchor.speaking .anchor-mouth {
  animation: talk 0.35s ease-in-out infinite alternate;
}

@keyframes talk {
  from { height: 6px; width: 18px; border-radius: 0 0 12px 12px; }
  to { height: 14px; width: 14px; border-radius: 50%; }
}

.anchor-body {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.anchor-suit {
  width: 110px;
  height: 72px;
  background: linear-gradient(180deg, #1e3a5f 0%, #0f2744 100%);
  border-radius: 18px 18px 8px 8px;
}

.anchor-tie {
  width: 12px;
  height: 36px;
  background: #38bdf8;
  margin-top: -58px;
  border-radius: 4px;
}

.anchor-info {
  text-align: center;
}

.anchor-info strong {
  display: block;
  font-size: 18px;
}

.anchor-info span {
  color: var(--muted);
  font-size: 13px;
}

.wave-bars {
  display: flex;
  gap: 4px;
  height: 24px;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.2s;
}

.wave-bars.active {
  opacity: 1;
}

.wave-bars span {
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
}

.wave-bars.active span {
  animation: wave 0.8s ease-in-out infinite;
}

.wave-bars span:nth-child(2) { animation-delay: 0.1s; }
.wave-bars span:nth-child(3) { animation-delay: 0.2s; }
.wave-bars span:nth-child(4) { animation-delay: 0.3s; }
.wave-bars span:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
  0%, 100% { height: 8px; }
  50% { height: 22px; }
}

.teleprompter {
  margin-top: 20px;
  background: var(--panel);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  padding: 16px;
  min-height: 120px;
}

.teleprompter-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
}

.teleprompter-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #f8fafc;
}

.controls {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.ctrl-btn {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 10px;
  font-size: 15px;
}

.ctrl-btn.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border: none;
  color: #fff;
  font-weight: 600;
}

.ctrl-btn:disabled {
  opacity: 0.45;
}

.script-list {
  display: grid;
  gap: 10px;
}

.script-item {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
}

.script-item.active {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.15);
}

.script-item h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--accent);
}

.script-item p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.tip {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  margin-top: 18px;
}
