*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, sans-serif;
  background: #fff;
  color: #333;
  min-height: 100vh;
}

.top-banner {
  width: 100%;
  height: 100px;
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-banner img {
  height: 80px;
}

.container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #555;
}

/* Status badge */
.status {
  font-size: 1rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  text-align: center;
  min-width: 160px;
  transition: background 0.2s, color 0.2s;
}

.status-idle      { background: #f1f5f9; color: #64748b; }
.status-connecting{ background: #fef9c3; color: #92400e; }
.status-live      { background: #dcfce7; color: #166534; }
.status-waiting   { background: #dbeafe; color: #1e40af; }
.status-error     { background: #fee2e2; color: #991b1b; }

/* Buttons */
.btn {
  width: 100%;
  min-height: 56px;
  border: none;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn:active { opacity: 0.75; }

.btn-start { background: #1976d2; color: #fff; }
.btn-stop  { background: #dc2626; color: #fff; }

/* Audio level meter */
.meter-wrap {
  width: 100%;
}

.meter-wrap canvas {
  width: 100%;
  height: 20px;
  border-radius: 4px;
  background: #e2e8f0;
  display: block;
}

.hidden { display: none !important; }

/* Back link */
.back-link {
  font-size: 0.875rem;
  color: #333;
  text-decoration: none;
  align-self: flex-start;
}

.back-link:hover { text-decoration: underline; }

/* Info line */
.info {
  font-size: 0.8rem;
  color: #6c757d;
  min-height: 1.2em;
  text-align: center;
}

.note {
  font-size: 0.85rem;
  color: #6c757d;
  text-align: center;
  padding: 0.5rem 1rem;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  background: #f8f9fa;
  width: 100%;
}

@media (max-width: 600px) {
  .container {
    padding: 20px 15px;
  }
}
