:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

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

body {
  margin: 0;
  background: #0e1117;
  color: #e5e7eb;
}

.site-header {
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid #30363d;
  background: #000000;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  display: block;
  height: clamp(118px, 5.5vw, 52px);
  width: auto;
  max-width: min(280px, 55vw);
  object-fit: contain;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2rem;
}

.full-width {
  width: 100%;
}

.page-tagline {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: #d1d5db;
}

.card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 1.1rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

input {
  width: 100%;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #30363d;
  background: #0d1117;
  color: #e5e7eb;
  margin-bottom: 0.5rem;
}

button {
  background: #7c3aed;
  border: 0;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

button.secondary {
  background: #374151;
}

.error {
  color: #fca5a5;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
}

.join-links-wrap {
  margin-top: 1rem;
}

.join-links-wrap a {
  color: #a78bfa;
}

.join-links {
  margin: 0.5rem 0 0.25rem;
  color: #9ca3af;
  font-size: 0.9rem;
}

.hint {
  font-size: 0.85rem;
  color: #9ca3af;
  margin: 0 0 1rem;
  line-height: 1.45;
}

.room-name {
  font-weight: 600;
  color: #e5e7eb;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.broadcaster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.9rem;
}

.broadcaster-card {
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 0.6rem;
  background: #0d1117;
}
