* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #101014;
  color: #f2f2f2;
}

/* --- Página inicial --- */
.home {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.home-card {
  background: #1b1b22;
  padding: 40px 48px;
  border-radius: 16px;
  text-align: center;
  max-width: 480px;
}

.home-card h1 {
  margin-top: 0;
  color: #e8c468;
}

.btn {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  padding: 12px 20px;
  transition: opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.85;
}

.btn-primario {
  background: #e8c468;
  color: #101014;
  font-weight: 600;
}

/* --- Sala --- */
.sala {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.topo {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: #1b1b22;
}

.sala-id {
  opacity: 0.7;
  font-size: 13px;
}

.btn-pequeno {
  margin-left: auto;
  background: #2a2a33;
  color: #fff;
  font-size: 13px;
  padding: 8px 14px;
}

.grade-videos {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
}

.video-wrapper {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-label {
  position: absolute;
  bottom: 8px;
  left: 10px;
  background: rgba(0, 0, 0, 0.55);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13px;
}

.controles {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  background: #1b1b22;
}

.btn-controle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #2a2a33;
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-controle.desligado {
  background: #e05252;
}

.btn-controle.ativo {
  background: #e8c468;
  color: #101014;
}

.btn-sair {
  background: #e05252;
  transform: rotate(135deg);
}

.hidden {
  display: none;
}
