:root {
  --brand-primary: #1A73E8;
  --brand-secondary: #0B57D0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #111318;
  color: #f2f2f2;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--brand-primary);
}

.topbar img { height: 28px; }

#app {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1rem;
}

section { display: flex; flex-direction: column; gap: 0.75rem; }
/* Una regla de autor como "section{display:flex}" prima sobre el
   [hidden]{display:none} del user-agent aunque este último tenga más
   especificidad — el origen de la cascada (autor > user-agent) se evalúa
   antes que la especificidad. Sin esto, las 4 vistas se ven a la vez. */
section[hidden] { display: none; }

input {
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #333;
  background: #1c1f26;
  color: #fff;
}

button {
  padding: 0.6rem 1rem;
  border-radius: 6px;
  border: none;
  background: var(--brand-primary);
  color: #fff;
  cursor: pointer;
}

button:hover { background: var(--brand-secondary); }

.hint { color: #999; font-size: 0.85rem; }

#video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem;
}

#video-grid video {
  width: 100%;
  border-radius: 8px;
  background: #000;
}

.controls { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.recording-banner {
  background: #b3261e;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  width: fit-content;
}

#waiting-list { list-style: none; padding: 0; }
#waiting-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0.6rem;
  background: #1c1f26;
  border-radius: 6px;
  margin-bottom: 0.3rem;
}
