:root {
  --bg: #14161a;
  --tile: #1f242c;
  --accent: #2e7d32;
  --danger: #b3261e;
  --text: #eef1f5;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
}

#bar {
  flex: 0 0 auto;
  padding: 8px 14px;
  font-size: 13px;
  color: #aeb6c2;
  background: #0f1115;
  border-bottom: 1px solid #262b33;
}

#grid {
  flex: 1 1 auto;
  display: grid;
  gap: 8px;
  padding: 8px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-content: start;
  overflow: auto;
}

.tile {
  position: relative;
  background: var(--tile);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.tile .label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.55);
}

#controls {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 10px;
  background: #0f1115;
  border-top: 1px solid #262b33;
}

#controls button {
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  background: #2a313b;
  cursor: pointer;
}

#controls button:hover { background: #333c48; }
#controls button.active { background: var(--accent); }
#controls button.off { background: #4a3030; }
#controls button.danger { background: var(--danger); }

.landing {
  text-align: center;
  color: #aeb6c2;
  padding: 40px;
}
.landing .brand {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
